Build Information
Successful build of AXSwift, reference 0.3.2 (81dcc3
), with Swift 6.0 for macOS (SPM) on 28 Nov 2024 05:59:21 UTC.
Swift 6 data race errors: 1
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.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/tmandry/AXSwift.git
Reference: 0.3.2
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/tmandry/AXSwift
* tag 0.3.2 -> FETCH_HEAD
HEAD is now at 81dcc36 v0.3.2
Cloned https://github.com/tmandry/AXSwift.git
Revision (git rev-parse @):
81dcc36aced905d6464cc25e35f8d13184bbf21c
SUCCESS checkout https://github.com/tmandry/AXSwift.git at 0.3.2
========================================
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.78s)
Creating working copy for https://github.com/tmandry/AXSwift.git
Working copy of https://github.com/tmandry/AXSwift.git resolved at 0.3.2 (81dcc36)
warning: '.resolve-product-dependencies': dependency 'axswift' 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/tmandry/AXSwift.git
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/12] Write sources
[3/12] Write AXSwiftExample-entitlement.plist
[4/12] Write AXSwiftObserverExample-entitlement.plist
[5/12] Write swift-version--7754E27361AE5C74.txt
[7/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)
ApplicationServices.kAXTrustedCheckOptionPrompt:2:12: note: var declared here
1 | @available(macOS 10.9, *)
2 | public var kAXTrustedCheckOptionPrompt: Unmanaged<CFString>
| `- note: var declared here
/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: annotate 'systemWideElement' 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
6 |
7 | /// A `UIElement` for the system-wide accessibility element, which can be used to retrieve global,
[8/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: annotate 'systemWideElement' 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
6 |
7 | /// A `UIElement` for the system-wide accessibility element, which can be used to retrieve global,
[9/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 {
[10/20] Compiling AXSwift Constants.swift
[11/20] Compiling AXSwift Application.swift
[12/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)
ApplicationServices.kAXTrustedCheckOptionPrompt:2:12: note: var declared here
1 | @available(macOS 10.9, *)
2 | public var kAXTrustedCheckOptionPrompt: Unmanaged<CFString>
| `- note: var declared here
[13/20] Compiling AXSwift Observer.swift
[14/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: annotate 'systemWideElement' 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
6 |
7 | /// A `UIElement` for the system-wide accessibility element, which can be used to retrieve global,
[15/26] Compiling AXSwiftExample main.swift
[16/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,
[17/26] Emitting module AXSwiftExample
[17/26] Write Objects.LinkFileList
[19/26] Emitting module AXSwiftObserverExample
[20/26] Compiling AXSwiftObserverExample main.swift
[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
[25/26] Applying AXSwiftObserverExample
Build complete! (11.45s)
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.