Build Information
Successful build of Signals with Swift 6.0 for macOS (SPM).
Swift 6 data race errors: 1
Build Command
env DEVELOPER_DIR=/Applications/Xcode-15.3.0.app xcrun --toolchain org.swift.600202405261a swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete
Build Log
========================================
RunAll
========================================
Builder version: 4.40.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/Kitura/BlueSignals.git
Reference: master
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/Kitura/BlueSignals
* branch master -> FETCH_HEAD
* [new branch] master -> origin/master
HEAD is now at a5ce527 Add SIGCHLD and other signals
Cloned https://github.com/Kitura/BlueSignals.git
Revision (git rev-parse @):
a5ce52795af4d91b3ff5dfb484ee3e45d9ed3d44
SUCCESS checkout https://github.com/Kitura/BlueSignals.git at master
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 6.0
Building package at path: $workDir
https://github.com/Kitura/BlueSignals.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-15.3.0.app xcrun --toolchain org.swift.600202405261a swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-6F35C1178C84523A.txt
[3/6] Compiling Signals SignalWatchHandler.swift
[4/6] Compiling Signals Signals.swift
[5/6] Emitting module Signals
/Users/admin/builder/spi-builder-workspace/Sources/Signals/SignalWatch.swift:12:23: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'SignalWatch' may have shared mutable state; this is an error in the Swift 6 language mode
9 |
10 | /// ``SignalWatch`` provides an interface around ``Signals`` that allows for multiple handlers to be registered for any given signal.
11 | public class SignalWatch {
| `- note: class 'SignalWatch' does not conform to the 'Sendable' protocol
12 | public static let shared = SignalWatch()
| |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'SignalWatch' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'shared' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
13 |
14 | typealias SignalNumber = Int32
[6/6] Compiling Signals SignalWatch.swift
/Users/admin/builder/spi-builder-workspace/Sources/Signals/SignalWatch.swift:12:23: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'SignalWatch' may have shared mutable state; this is an error in the Swift 6 language mode
9 |
10 | /// ``SignalWatch`` provides an interface around ``Signals`` that allows for multiple handlers to be registered for any given signal.
11 | public class SignalWatch {
| `- note: class 'SignalWatch' does not conform to the 'Sendable' protocol
12 | public static let shared = SignalWatch()
| |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'SignalWatch' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'shared' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
13 |
14 | typealias SignalNumber = Int32
/Users/admin/builder/spi-builder-workspace/Sources/Signals/SignalWatch.swift:90:48: warning: capture of 'self' with non-sendable type 'SignalWatch' in a `@Sendable` closure; this is an error in the Swift 6 language mode
9 |
10 | /// ``SignalWatch`` provides an interface around ``Signals`` that allows for multiple handlers to be registered for any given signal.
11 | public class SignalWatch {
| `- note: class 'SignalWatch' does not conform to the 'Sendable' protocol
12 | public static let shared = SignalWatch()
13 |
:
88 | private func didRecieve(signal: Signals.Signal) {
89 | return self.queue.async {
90 | guard let signalWatchHandlerList = self.signalsWatched[signal.rawValue] else { return }
| `- warning: capture of 'self' with non-sendable type 'SignalWatch' in a `@Sendable` closure; this is an error in the Swift 6 language mode
91 |
92 | for signalHandler in signalWatchHandlerList {
/Users/admin/builder/spi-builder-workspace/Sources/Signals/SignalWatch.swift:90:68: warning: capture of 'signal' with non-sendable type 'Signals.Signal' in a `@Sendable` closure; this is an error in the Swift 6 language mode
88 | private func didRecieve(signal: Signals.Signal) {
89 | return self.queue.async {
90 | guard let signalWatchHandlerList = self.signalsWatched[signal.rawValue] else { return }
| `- warning: capture of 'signal' with non-sendable type 'Signals.Signal' in a `@Sendable` closure; this is an error in the Swift 6 language mode
91 |
92 | for signalHandler in signalWatchHandlerList {
/Users/admin/builder/spi-builder-workspace/Sources/Signals/Signals.swift:39:14: note: consider making enum 'Signal' conform to the 'Sendable' protocol
37 | /// Common OS Signals
38 | ///
39 | public enum Signal {
| `- note: consider making enum 'Signal' conform to the 'Sendable' protocol
40 | case hup
41 | case int
Build complete! (16.84s)
Build complete.
{
"dependencies" : [
],
"manifest_display_name" : "Signals",
"name" : "Signals",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
{
"name" : "macos",
"version" : "10.15"
},
{
"name" : "ios",
"version" : "13.0"
},
{
"name" : "watchos",
"version" : "6.0"
},
{
"name" : "tvos",
"version" : "13.0"
}
],
"products" : [
{
"name" : "Signals",
"targets" : [
"Signals"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "Signals",
"module_type" : "SwiftTarget",
"name" : "Signals",
"path" : "Sources/Signals",
"product_memberships" : [
"Signals"
],
"sources" : [
"SignalWatch.swift",
"SignalWatchHandler.swift",
"Signals.swift"
],
"type" : "library"
}
],
"tools_version" : "5.1"
}
Done.