Build Information
Successful build of B9Action, reference main (32ccac
), with Swift 6.0 for macOS (SPM) on 30 Nov 2024 00:58:11 UTC.
Swift 6 data race errors: 0
Build Command
env DEVELOPER_DIR=/Applications/Xcode-16.1.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures
Build Log
========================================
RunAll
========================================
Builder version: 4.58.1
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
========================================
ResolveProductDependencies
========================================
Resolving dependencies ...
{
"identity": ".resolve-product-dependencies",
"name": "resolve-dependencies",
"url": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
"version": "unspecified",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
"dependencies": [
{
"identity": "action",
"name": "B9Action",
"url": "https://github.com/b9swift/Action.git",
"version": "unspecified",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/Action",
"dependencies": [
]
}
]
}
Fetching https://github.com/b9swift/Action.git
[1/45] Fetching action
Fetched https://github.com/b9swift/Action.git from cache (0.70s)
Creating working copy for https://github.com/b9swift/Action.git
Working copy of https://github.com/b9swift/Action.git resolved at main (32ccacb)
warning: '.resolve-product-dependencies': dependency 'action' is not used by any target
Found 0 product dependencies
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 6.0
Building package at path: $PWD
https://github.com/b9swift/Action.git
{
"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"
}
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.1.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version--7754E27361AE5C74.txt
[3/4] Emitting module B9Action
[4/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 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: main actor-isolated var 'NSApp' can not be referenced from a nonisolated 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 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 {
Build complete! (8.17s)
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.