Build Information
Successful build of HotKey, reference master (4d02d8
), with Swift 6.1 for macOS (SPM) on 29 Apr 2025 13:02:09 UTC.
Swift 6 data race errors: 3
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.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
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 6.1
Building package at path: $PWD
https://github.com/dagronf/HotKey.git
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.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/2] Write sources
[1/2] Write swift-version-2F0A5646E1D333AE.txt
[3/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 | }
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSApplication.h:282:38: note: property declared here
280 | - (void)updateWindows;
281 |
282 | @property (nullable, strong) NSMenu *mainMenu;
| `- note: property declared here
283 |
284 | /**
/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 | }
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSApplication.h:191:58: note: var declared here
189 | @interface NSApplication : NSResponder <NSUserInterfaceValidations, NSMenuItemValidation, NSAccessibilityElement, NSAccessibility>
190 |
191 | APPKIT_EXTERN __kindof NSApplication * _Null_unspecified NSApp NS_SWIFT_UI_ACTOR;
| `- note: var declared here
192 |
193 | @property (class, readonly, strong) __kindof NSApplication *sharedApplication;
[4/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 = ""
[5/9] Compiling HotKey Key.swift
[6/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: add '@MainActor' to make static property 'hotKeys' part of global actor 'MainActor'
| `- 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: add '@MainActor' to make static property 'hotKeysCount' part of global actor 'MainActor'
| `- 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: add '@MainActor' to make static property 'eventHandler' part of global actor 'MainActor'
| `- 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 = ""
[7/9] Compiling HotKey HotKey.swift
[8/9] Compiling HotKey KeyCombo.swift
[9/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: add '@MainActor' to make static property 'hotKeys' part of global actor 'MainActor'
| `- 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: add '@MainActor' to make static property 'hotKeysCount' part of global actor 'MainActor'
| `- 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: add '@MainActor' to make static property 'eventHandler' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
41 |
42 | // MARK: - Registration
Build complete! (8.65s)
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.