Build Information
Successful build of B9Action with Swift 6.0 for macOS (SPM).
Swift 6 data race errors: 0
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/b9swift/Action.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/b9swift/Action
* branch main -> FETCH_HEAD
* [new branch] main -> origin/main
HEAD is now at 32ccacb Correct spelling.
Cloned https://github.com/b9swift/Action.git
Revision (git rev-parse @):
32ccacba992b921e304438ca6d6cfa20fef6e840
SUCCESS checkout https://github.com/b9swift/Action.git at main
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 6.0
Building package at path: $workDir
https://github.com/b9swift/Action.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/4] Compiling B9Action B9Action.swift
/Users/admin/builder/spi-builder-workspace/Sources/B9Action/B9Action.swift:116:19: warning: call to main actor-isolated instance method 'sendAction(_:to:from:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
108 | ///
109 | /// - Parameter sender: An object sent with the selector message to the target, ignored when the closure is called.
110 | public func perform(sender: Any?) {
| `- note: add '@MainActor' to make instance method 'perform(sender:)' part of global actor 'MainActor'
111 | if #available(macOS 10.12, *) {
112 | dispatchPrecondition(condition: .onQueue(.main))
:
114 | guard isValid else { return }
115 | if let selector = selector {
116 | NSApp.sendAction(selector, to: target, from: sender)
| `- warning: call to main actor-isolated instance method 'sendAction(_:to:from:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
117 | }
118 | if let action = block {
AppKit.NSApplication:2:26: note: calls to instance method 'sendAction(_:to:from:)' from outside of its actor context are implicitly asynchronous
1 | extension NSApplication {
2 | @MainActor open func sendAction(_ action: Selector, to target: Any?, from sender: Any?) -> Bool
| `- note: calls to instance method 'sendAction(_:to:from:)' from outside of its actor context are implicitly asynchronous
3 | open func target(forAction action: Selector) -> Any?
4 | @available(swift, obsoleted: 3, renamed: "target(forAction:)")
/Users/admin/builder/spi-builder-workspace/Sources/B9Action/B9Action.swift:116:13: warning: main actor-isolated var 'NSApp' can not be referenced from a non-isolated context; this is an error in the Swift 6 language mode
108 | ///
109 | /// - Parameter sender: An object sent with the selector message to the target, ignored when the closure is called.
110 | public func perform(sender: Any?) {
| `- note: add '@MainActor' to make instance method 'perform(sender:)' part of global actor 'MainActor'
111 | if #available(macOS 10.12, *) {
112 | dispatchPrecondition(condition: .onQueue(.main))
:
114 | guard isValid else { return }
115 | if let selector = selector {
116 | NSApp.sendAction(selector, to: target, from: sender)
| `- warning: main actor-isolated var 'NSApp' can not be referenced from a non-isolated context; this is an error in the Swift 6 language mode
117 | }
118 | if let action = block {
AppKit.NSApp:1:23: note: var declared here
1 | @MainActor public var NSApp: NSApplication!
| `- note: var declared here
/Users/admin/builder/spi-builder-workspace/Sources/B9Action/B9Action.swift:116:19: warning: sending 'selector' risks causing data races; this is an error in the Swift 6 language mode
114 | guard isValid else { return }
115 | if let selector = selector {
116 | NSApp.sendAction(selector, to: target, from: sender)
| |- warning: sending 'selector' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'selector' to main actor-isolated instance method 'sendAction(_:to:from:)' risks causing data races between main actor-isolated and task-isolated uses
117 | }
118 | if let action = block {
/Users/admin/builder/spi-builder-workspace/Sources/B9Action/B9Action.swift:116:19: warning: sending task-isolated value of type 'Any?' with later accesses to main actor-isolated context risks causing data races; this is an error in the Swift 6 language mode
114 | guard isValid else { return }
115 | if let selector = selector {
116 | NSApp.sendAction(selector, to: target, from: sender)
| `- warning: sending task-isolated value of type 'Any?' with later accesses to main actor-isolated context risks causing data races; this is an error in the Swift 6 language mode
117 | }
118 | if let action = block {
/Users/admin/builder/spi-builder-workspace/Sources/B9Action/B9Action.swift:116:19: warning: sending task-isolated value of type 'Any?' with later accesses to main actor-isolated context risks causing data races; this is an error in the Swift 6 language mode
114 | guard isValid else { return }
115 | if let selector = selector {
116 | NSApp.sendAction(selector, to: target, from: sender)
| `- warning: sending task-isolated value of type 'Any?' with later accesses to main actor-isolated context risks causing data races; this is an error in the Swift 6 language mode
117 | }
118 | if let action = block {
[4/4] Emitting module B9Action
Build complete! (21.78s)
Build complete.
{
"dependencies" : [
],
"manifest_display_name" : "B9Action",
"name" : "B9Action",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
],
"products" : [
{
"name" : "B9Action",
"targets" : [
"B9Action"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "B9ActionTests",
"module_type" : "SwiftTarget",
"name" : "B9ActionTests",
"path" : "Tests/B9ActionTests",
"sources" : [
"B9ActionTests.swift"
],
"target_dependencies" : [
"B9Action"
],
"type" : "test"
},
{
"c99name" : "B9Action",
"module_type" : "SwiftTarget",
"name" : "B9Action",
"path" : "Sources/B9Action",
"product_memberships" : [
"B9Action"
],
"sources" : [
"B9Action.swift"
],
"type" : "library"
}
],
"tools_version" : "5.3"
}
Done.