Build Information
Successful build of AXSwift, reference main (e18a18
), with Swift 6.1 for macOS (SPM) on 26 Apr 2025 15:24:51 UTC.
Swift 6 data race errors: 1
Build Command
env DEVELOPER_DIR=/Applications/Xcode-16.3.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.61.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/tmandry/AXSwift.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/tmandry/AXSwift
* branch main -> FETCH_HEAD
* [new branch] main -> origin/main
HEAD is now at e18a184 No longer force casting attribute values to prevent a crash when the value doesn't match the expected type
Cloned https://github.com/tmandry/AXSwift.git
Revision (git rev-parse @):
e18a18453d135ad45809a384ee5139e05ea52def
SUCCESS checkout https://github.com/tmandry/AXSwift.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": "axswift",
"name": "AXSwift",
"url": "https://github.com/tmandry/AXSwift.git",
"version": "unspecified",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/AXSwift",
"dependencies": [
]
}
]
}
Fetching https://github.com/tmandry/AXSwift.git
[1/484] Fetching axswift
Fetched https://github.com/tmandry/AXSwift.git from cache (0.74s)
Creating working copy for https://github.com/tmandry/AXSwift.git
Working copy of https://github.com/tmandry/AXSwift.git resolved at main (e18a184)
warning: '.resolve-product-dependencies': dependency 'axswift' is not used by any target
Found 0 product dependencies
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 6.1
Building package at path: $PWD
https://github.com/tmandry/AXSwift.git
https://github.com/tmandry/AXSwift.git
{
"dependencies" : [
],
"manifest_display_name" : "AXSwift",
"name" : "AXSwift",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
],
"products" : [
{
"name" : "AXSwift",
"targets" : [
"AXSwift"
],
"type" : {
"library" : [
"automatic"
]
}
},
{
"name" : "AXSwiftObserverExample",
"targets" : [
"AXSwiftObserverExample"
],
"type" : {
"executable" : null
}
},
{
"name" : "AXSwiftExample",
"targets" : [
"AXSwiftExample"
],
"type" : {
"executable" : null
}
}
],
"targets" : [
{
"c99name" : "AXSwiftObserverExample",
"module_type" : "SwiftTarget",
"name" : "AXSwiftObserverExample",
"path" : "AXSwiftObserverExample",
"product_memberships" : [
"AXSwiftObserverExample"
],
"sources" : [
"AppDelegate.swift",
"main.swift"
],
"target_dependencies" : [
"AXSwift"
],
"type" : "executable"
},
{
"c99name" : "AXSwiftExample",
"module_type" : "SwiftTarget",
"name" : "AXSwiftExample",
"path" : "AXSwiftExample",
"product_memberships" : [
"AXSwiftExample"
],
"sources" : [
"AppDelegate.swift",
"main.swift"
],
"target_dependencies" : [
"AXSwift"
],
"type" : "executable"
},
{
"c99name" : "AXSwift",
"module_type" : "SwiftTarget",
"name" : "AXSwift",
"path" : "Sources",
"product_memberships" : [
"AXSwift",
"AXSwiftObserverExample",
"AXSwiftExample"
],
"sources" : [
"AXSwift.swift",
"Application.swift",
"Constants.swift",
"Error.swift",
"Observer.swift",
"SystemWideElement.swift",
"UIElement.swift"
],
"type" : "library"
}
],
"tools_version" : "4.0"
}
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.3.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/12] Write sources
[3/12] Write AXSwiftObserverExample-entitlement.plist
[3/12] Write AXSwiftExample-entitlement.plist
[5/12] Write swift-version-2F0A5646E1D333AE.txt
[7/20] Compiling AXSwift Error.swift
/Users/admin/builder/spi-builder-workspace/Sources/Error.swift:7:1: warning: extension declares a conformance of imported type 'AXError' to imported protocol 'CustomStringConvertible'; this will not behave correctly if the owners of 'ApplicationServices' introduce this conformance in the future
5 |
6 | // For some reason values don't get described in this enum, so we have to do it manually.
7 | extension AXError: CustomStringConvertible {
| |- warning: extension declares a conformance of imported type 'AXError' to imported protocol 'CustomStringConvertible'; this will not behave correctly if the owners of 'ApplicationServices' introduce this conformance in the future
| `- note: add '@retroactive' to silence this warning
8 | fileprivate var valueAsString: String {
9 | switch self {
[8/20] Compiling AXSwift Constants.swift
[9/20] Compiling AXSwift UIElement.swift
/Users/admin/builder/spi-builder-workspace/Sources/UIElement.swift:62:13: warning: reference to var 'kAXTrustedCheckOptionPrompt' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
60 | open class func isProcessTrusted(withPrompt showPrompt: Bool = false) -> Bool {
61 | let options = [
62 | kAXTrustedCheckOptionPrompt.takeUnretainedValue() as String: showPrompt as CFBoolean
| `- warning: reference to var 'kAXTrustedCheckOptionPrompt' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
63 | ]
64 | return AXIsProcessTrustedWithOptions(options as CFDictionary)
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/ApplicationServices.framework/Frameworks/HIServices.framework/Headers/AXUIElement.h:66:20: note: var declared here
64 | extern Boolean AXIsProcessTrustedWithOptions (CFDictionaryRef __nullable options) CF_AVAILABLE_MAC(10_9);
65 |
66 | extern CFStringRef kAXTrustedCheckOptionPrompt CF_AVAILABLE_MAC(10_9);
| `- note: var declared here
67 |
68 | /*!
[10/20] Compiling AXSwift Observer.swift
[11/20] Emitting module AXSwift
/Users/admin/builder/spi-builder-workspace/Sources/Error.swift:7:1: warning: extension declares a conformance of imported type 'AXError' to imported protocol 'CustomStringConvertible'; this will not behave correctly if the owners of 'ApplicationServices' introduce this conformance in the future
5 |
6 | // For some reason values don't get described in this enum, so we have to do it manually.
7 | extension AXError: CustomStringConvertible {
| |- warning: extension declares a conformance of imported type 'AXError' to imported protocol 'CustomStringConvertible'; this will not behave correctly if the owners of 'ApplicationServices' introduce this conformance in the future
| `- note: add '@retroactive' to silence this warning
8 | fileprivate var valueAsString: String {
9 | switch self {
/Users/admin/builder/spi-builder-workspace/Sources/SystemWideElement.swift:5:12: warning: var 'systemWideElement' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
3 |
4 | /// A singleton for the system-wide element.
5 | public var systemWideElement = SystemWideElement()
| |- warning: var 'systemWideElement' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'systemWideElement' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make var 'systemWideElement' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
6 |
7 | /// A `UIElement` for the system-wide accessibility element, which can be used to retrieve global,
[12/20] Compiling AXSwift SystemWideElement.swift
/Users/admin/builder/spi-builder-workspace/Sources/SystemWideElement.swift:5:12: warning: var 'systemWideElement' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
3 |
4 | /// A singleton for the system-wide element.
5 | public var systemWideElement = SystemWideElement()
| |- warning: var 'systemWideElement' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'systemWideElement' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make var 'systemWideElement' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
6 |
7 | /// A `UIElement` for the system-wide accessibility element, which can be used to retrieve global,
[13/20] Compiling AXSwift AXSwift.swift
/Users/admin/builder/spi-builder-workspace/Sources/AXSwift.swift:5:21: warning: reference to var 'kAXTrustedCheckOptionPrompt' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
3 | @discardableResult
4 | public func checkIsProcessTrusted(prompt: Bool = false) -> Bool {
5 | let promptKey = kAXTrustedCheckOptionPrompt.takeUnretainedValue() as String
| `- warning: reference to var 'kAXTrustedCheckOptionPrompt' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
6 | let opts = [promptKey: prompt] as CFDictionary
7 | return AXIsProcessTrustedWithOptions(opts)
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/ApplicationServices.framework/Frameworks/HIServices.framework/Headers/AXUIElement.h:66:20: note: var declared here
64 | extern Boolean AXIsProcessTrustedWithOptions (CFDictionaryRef __nullable options) CF_AVAILABLE_MAC(10_9);
65 |
66 | extern CFStringRef kAXTrustedCheckOptionPrompt CF_AVAILABLE_MAC(10_9);
| `- note: var declared here
67 |
68 | /*!
[14/20] Compiling AXSwift Application.swift
[15/26] Compiling AXSwiftObserverExample main.swift
[16/26] Compiling AXSwiftExample main.swift
[17/26] Emitting module AXSwiftExample
[18/26] Compiling AXSwiftExample AppDelegate.swift
/Users/admin/builder/spi-builder-workspace/AXSwiftExample/AppDelegate.swift:51:29: warning: reference to var 'systemWideElement' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
49 |
50 | NSLog("system wide:")
51 | NSLog("role: \(try! systemWideElement.role()!)")
| `- warning: reference to var 'systemWideElement' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
52 | // NSLog("windows: \(try! sys.windows())")
53 | NSLog("attributes: \(try! systemWideElement.attributes())")
/Users/admin/builder/spi-builder-workspace/Sources/SystemWideElement.swift:5:12: note: var declared here
3 |
4 | /// A singleton for the system-wide element.
5 | public var systemWideElement = SystemWideElement()
| `- note: var declared here
6 |
7 | /// A `UIElement` for the system-wide accessibility element, which can be used to retrieve global,
/Users/admin/builder/spi-builder-workspace/AXSwiftExample/AppDelegate.swift:53:35: warning: reference to var 'systemWideElement' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
51 | NSLog("role: \(try! systemWideElement.role()!)")
52 | // NSLog("windows: \(try! sys.windows())")
53 | NSLog("attributes: \(try! systemWideElement.attributes())")
| `- warning: reference to var 'systemWideElement' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
54 |
55 | NSRunningApplication.current.terminate()
/Users/admin/builder/spi-builder-workspace/Sources/SystemWideElement.swift:5:12: note: var declared here
3 |
4 | /// A singleton for the system-wide element.
5 | public var systemWideElement = SystemWideElement()
| `- note: var declared here
6 |
7 | /// A `UIElement` for the system-wide accessibility element, which can be used to retrieve global,
[18/26] Write Objects.LinkFileList
[20/26] Emitting module AXSwiftObserverExample
[21/26] Compiling AXSwiftObserverExample AppDelegate.swift
/Users/admin/builder/spi-builder-workspace/AXSwiftObserverExample/AppDelegate.swift:46:21: warning: sending 'updated' risks causing data races; this is an error in the Swift 6 language mode
44 | DispatchQueue.main.async {
45 | print("---")
46 | updated = false
| |- warning: sending 'updated' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'updated' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
47 | }
48 | }
[21/26] Write Objects.LinkFileList
[22/26] Linking AXSwiftObserverExample
[23/26] Linking AXSwiftExample
[24/26] Applying AXSwiftExample
[24/26] Applying AXSwiftObserverExample
Build complete! (7.78s)
Build complete.
{
"dependencies" : [
],
"manifest_display_name" : "AXSwift",
"name" : "AXSwift",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
],
"products" : [
{
"name" : "AXSwift",
"targets" : [
"AXSwift"
],
"type" : {
"library" : [
"automatic"
]
}
},
{
"name" : "AXSwiftObserverExample",
"targets" : [
"AXSwiftObserverExample"
],
"type" : {
"executable" : null
}
},
{
"name" : "AXSwiftExample",
"targets" : [
"AXSwiftExample"
],
"type" : {
"executable" : null
}
}
],
"targets" : [
{
"c99name" : "AXSwiftObserverExample",
"module_type" : "SwiftTarget",
"name" : "AXSwiftObserverExample",
"path" : "AXSwiftObserverExample",
"product_memberships" : [
"AXSwiftObserverExample"
],
"sources" : [
"AppDelegate.swift",
"main.swift"
],
"target_dependencies" : [
"AXSwift"
],
"type" : "executable"
},
{
"c99name" : "AXSwiftExample",
"module_type" : "SwiftTarget",
"name" : "AXSwiftExample",
"path" : "AXSwiftExample",
"product_memberships" : [
"AXSwiftExample"
],
"sources" : [
"AppDelegate.swift",
"main.swift"
],
"target_dependencies" : [
"AXSwift"
],
"type" : "executable"
},
{
"c99name" : "AXSwift",
"module_type" : "SwiftTarget",
"name" : "AXSwift",
"path" : "Sources",
"product_memberships" : [
"AXSwift",
"AXSwiftObserverExample",
"AXSwiftExample"
],
"sources" : [
"AXSwift.swift",
"Application.swift",
"Constants.swift",
"Error.swift",
"Observer.swift",
"SystemWideElement.swift",
"UIElement.swift"
],
"type" : "library"
}
],
"tools_version" : "4.0"
}
Done.