Build Information
Successful build of HotKey, reference master (4d02d8
), with Swift 6.0 for macOS (SPM) on 1 Dec 2024 23:26:50 UTC.
Swift 6 data race errors: 3
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/dagronf/HotKey.git
Reference: master
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/dagronf/HotKey
* branch master -> FETCH_HEAD
* [new branch] master -> origin/master
HEAD is now at 4d02d80 Add Swift version to podspec
Cloned https://github.com/dagronf/HotKey.git
Revision (git rev-parse @):
4d02d80de143d69b7eeb5962729591a157a57ede
SUCCESS checkout https://github.com/dagronf/HotKey.git at master
========================================
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": "hotkey",
"name": "HotKey",
"url": "https://github.com/dagronf/HotKey.git",
"version": "unspecified",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/HotKey",
"dependencies": [
]
}
]
}
Fetching https://github.com/dagronf/HotKey.git
[1/401] Fetching hotkey
Fetched https://github.com/dagronf/HotKey.git from cache (0.80s)
Creating working copy for https://github.com/dagronf/HotKey.git
Working copy of https://github.com/dagronf/HotKey.git resolved at master (4d02d80)
warning: '.resolve-product-dependencies': dependency 'hotkey' 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/dagronf/HotKey.git
{
"dependencies" : [
],
"manifest_display_name" : "HotKey",
"name" : "HotKey",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
],
"products" : [
{
"name" : "HotKey",
"targets" : [
"HotKey"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "HotKeyTests",
"module_type" : "SwiftTarget",
"name" : "HotKeyTests",
"path" : "Tests/HotKeyTests",
"sources" : [
"KeyComboTests.swift",
"ModifierFlagsTests.swift"
],
"target_dependencies" : [
"HotKey"
],
"type" : "test"
},
{
"c99name" : "HotKey",
"module_type" : "SwiftTarget",
"name" : "HotKey",
"path" : "Sources/HotKey",
"product_memberships" : [
"HotKey"
],
"sources" : [
"HotKey.swift",
"HotKeysController.swift",
"Key.swift",
"KeyCombo+System.swift",
"KeyCombo.swift",
"NSEventModifierFlags+HotKey.swift"
],
"type" : "library"
}
],
"tools_version" : "5.0"
}
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/9] Compiling HotKey NSEventModifierFlags+HotKey.swift
/Users/admin/builder/spi-builder-workspace/Sources/HotKey/NSEventModifierFlags+HotKey.swift:49:1: warning: extension declares a conformance of imported type 'ModifierFlags' to imported protocol 'CustomStringConvertible'; this will not behave correctly if the owners of 'AppKit' introduce this conformance in the future
47 | }
48 |
49 | extension NSEvent.ModifierFlags: CustomStringConvertible {
| |- warning: extension declares a conformance of imported type 'ModifierFlags' to imported protocol 'CustomStringConvertible'; this will not behave correctly if the owners of 'AppKit' introduce this conformance in the future
| `- note: add '@retroactive' to silence this warning
50 | public var description: String {
51 | var output = ""
[4/9] Compiling HotKey KeyCombo.swift
[5/9] Compiling HotKey Key.swift
[6/9] Compiling HotKey HotKeysController.swift
/Users/admin/builder/spi-builder-workspace/Sources/HotKey/HotKeysController.swift:23:13: warning: static property 'hotKeys' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
21 | // MARK: - Properties
22 |
23 | static var hotKeys = [UInt32: HotKeyBox]()
| |- warning: static property 'hotKeys' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'hotKeys' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'hotKeys' 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
24 | static private var hotKeysCount: UInt32 = 0
25 |
/Users/admin/builder/spi-builder-workspace/Sources/HotKey/HotKeysController.swift:24:21: warning: static property 'hotKeysCount' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
22 |
23 | static var hotKeys = [UInt32: HotKeyBox]()
24 | static private var hotKeysCount: UInt32 = 0
| |- warning: static property 'hotKeysCount' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'hotKeysCount' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'hotKeysCount' 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
25 |
26 | static let eventHotKeySignature: UInt32 = {
/Users/admin/builder/spi-builder-workspace/Sources/HotKey/HotKeysController.swift:40:21: warning: static property 'eventHandler' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
38 | ]
39 |
40 | private static var eventHandler: EventHandlerRef?
| |- warning: static property 'eventHandler' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'eventHandler' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'eventHandler' 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
41 |
42 | // MARK: - Registration
[7/9] Compiling HotKey KeyCombo+System.swift
/Users/admin/builder/spi-builder-workspace/Sources/HotKey/KeyCombo+System.swift:38:32: warning: main actor-isolated property 'mainMenu' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
35 | ///
36 | /// - returns: array of key combos
37 | public static func mainMenuKeyCombos() -> [KeyCombo] {
| `- note: add '@MainActor' to make static method 'mainMenuKeyCombos()' part of global actor 'MainActor'
38 | guard let menu = NSApp.mainMenu else {
| `- warning: main actor-isolated property 'mainMenu' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
39 | return []
40 | }
AppKit.NSApplication:72:25: note: property declared here
70 | open func setWindowsNeedUpdate(_ needUpdate: Bool)
71 | open func updateWindows()
72 | @MainActor open var mainMenu: NSMenu? { get set }
| `- note: property declared here
73 | @available(macOS 10.6, *)
74 | open var helpMenu: NSMenu? { get set }
/Users/admin/builder/spi-builder-workspace/Sources/HotKey/KeyCombo+System.swift:38:26: warning: main actor-isolated var 'NSApp' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
35 | ///
36 | /// - returns: array of key combos
37 | public static func mainMenuKeyCombos() -> [KeyCombo] {
| `- note: add '@MainActor' to make static method 'mainMenuKeyCombos()' part of global actor 'MainActor'
38 | guard let menu = NSApp.mainMenu else {
| `- warning: main actor-isolated var 'NSApp' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
39 | return []
40 | }
AppKit.NSApp:1:23: note: var declared here
1 | @MainActor public var NSApp: NSApplication!
| `- note: var declared here
[8/9] Compiling HotKey HotKey.swift
[9/9] Emitting module HotKey
/Users/admin/builder/spi-builder-workspace/Sources/HotKey/HotKeysController.swift:23:13: warning: static property 'hotKeys' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
21 | // MARK: - Properties
22 |
23 | static var hotKeys = [UInt32: HotKeyBox]()
| |- warning: static property 'hotKeys' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'hotKeys' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'hotKeys' 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
24 | static private var hotKeysCount: UInt32 = 0
25 |
/Users/admin/builder/spi-builder-workspace/Sources/HotKey/HotKeysController.swift:24:21: warning: static property 'hotKeysCount' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
22 |
23 | static var hotKeys = [UInt32: HotKeyBox]()
24 | static private var hotKeysCount: UInt32 = 0
| |- warning: static property 'hotKeysCount' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'hotKeysCount' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'hotKeysCount' 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
25 |
26 | static let eventHotKeySignature: UInt32 = {
/Users/admin/builder/spi-builder-workspace/Sources/HotKey/HotKeysController.swift:40:21: warning: static property 'eventHandler' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
38 | ]
39 |
40 | private static var eventHandler: EventHandlerRef?
| |- warning: static property 'eventHandler' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'eventHandler' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'eventHandler' 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
41 |
42 | // MARK: - Registration
/Users/admin/builder/spi-builder-workspace/Sources/HotKey/NSEventModifierFlags+HotKey.swift:49:1: warning: extension declares a conformance of imported type 'ModifierFlags' to imported protocol 'CustomStringConvertible'; this will not behave correctly if the owners of 'AppKit' introduce this conformance in the future
47 | }
48 |
49 | extension NSEvent.ModifierFlags: CustomStringConvertible {
| |- warning: extension declares a conformance of imported type 'ModifierFlags' to imported protocol 'CustomStringConvertible'; this will not behave correctly if the owners of 'AppKit' introduce this conformance in the future
| `- note: add '@retroactive' to silence this warning
50 | public var description: String {
51 | var output = ""
Build complete! (10.06s)
Build complete.
{
"dependencies" : [
],
"manifest_display_name" : "HotKey",
"name" : "HotKey",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
],
"products" : [
{
"name" : "HotKey",
"targets" : [
"HotKey"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "HotKeyTests",
"module_type" : "SwiftTarget",
"name" : "HotKeyTests",
"path" : "Tests/HotKeyTests",
"sources" : [
"KeyComboTests.swift",
"ModifierFlagsTests.swift"
],
"target_dependencies" : [
"HotKey"
],
"type" : "test"
},
{
"c99name" : "HotKey",
"module_type" : "SwiftTarget",
"name" : "HotKey",
"path" : "Sources/HotKey",
"product_memberships" : [
"HotKey"
],
"sources" : [
"HotKey.swift",
"HotKeysController.swift",
"Key.swift",
"KeyCombo+System.swift",
"KeyCombo.swift",
"NSEventModifierFlags+HotKey.swift"
],
"type" : "library"
}
],
"tools_version" : "5.0"
}
Done.