Build Information
Successful build of CustomToolTip, reference main (370678
), with Swift 6.1 for macOS (SPM) on 26 Apr 2025 17:38:32 UTC.
Swift 6 data race errors: 4
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/chipjarred/CustomToolTip.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/chipjarred/CustomToolTip
* branch main -> FETCH_HEAD
* [new branch] main -> origin/main
HEAD is now at 370678c Changed dependency on SwizzleHelper to use explicit version rather than named branch.
Cloned https://github.com/chipjarred/CustomToolTip.git
Revision (git rev-parse @):
370678c439eaac158928a70a802affbb55d95c02
SUCCESS checkout https://github.com/chipjarred/CustomToolTip.git at main
Fetching https://github.com/chipjarred/SwizzleHelper.git
[1/158] Fetching swizzlehelper
Fetched https://github.com/chipjarred/SwizzleHelper.git from cache (0.63s)
Computing version for https://github.com/chipjarred/SwizzleHelper.git
Computed https://github.com/chipjarred/SwizzleHelper.git at 1.0.2 (1.24s)
Creating working copy for https://github.com/chipjarred/SwizzleHelper.git
Working copy of https://github.com/chipjarred/SwizzleHelper.git resolved at 1.0.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": "customtooltip",
"name": "CustomToolTip",
"url": "https://github.com/chipjarred/CustomToolTip.git",
"version": "unspecified",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/CustomToolTip",
"dependencies": [
{
"identity": "swizzlehelper",
"name": "SwizzleHelper",
"url": "https://github.com/chipjarred/SwizzleHelper.git",
"version": "1.0.2",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/SwizzleHelper",
"dependencies": [
]
}
]
}
]
}
Fetching https://github.com/chipjarred/CustomToolTip.git
[2/193] Fetching customtooltip
Fetched https://github.com/chipjarred/CustomToolTip.git from cache (0.78s)
Fetching https://github.com/chipjarred/SwizzleHelper.git from cache
Fetched https://github.com/chipjarred/SwizzleHelper.git from cache (0.39s)
Computing version for https://github.com/chipjarred/SwizzleHelper.git
Computed https://github.com/chipjarred/SwizzleHelper.git at 1.0.2 (0.44s)
Creating working copy for https://github.com/chipjarred/SwizzleHelper.git
Working copy of https://github.com/chipjarred/SwizzleHelper.git resolved at 1.0.2
Creating working copy for https://github.com/chipjarred/CustomToolTip.git
Working copy of https://github.com/chipjarred/CustomToolTip.git resolved at main (370678c)
warning: '.resolve-product-dependencies': dependency 'customtooltip' is not used by any target
Found 1 product dependencies
- SwizzleHelper
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 6.1
Building package at path: $PWD
https://github.com/chipjarred/CustomToolTip.git
https://github.com/chipjarred/CustomToolTip.git
{
"dependencies" : [
{
"identity" : "swizzlehelper",
"requirement" : {
"range" : [
{
"lower_bound" : "1.0.1",
"upper_bound" : "2.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/chipjarred/SwizzleHelper.git"
}
],
"manifest_display_name" : "CustomToolTip",
"name" : "CustomToolTip",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
{
"name" : "macos",
"version" : "10.14"
}
],
"products" : [
{
"name" : "CustomToolTip",
"targets" : [
"CustomToolTip"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "CustomToolTipTests",
"module_type" : "SwiftTarget",
"name" : "CustomToolTipTests",
"path" : "Tests/CustomToolTipTests",
"sources" : [
"CustomToolTipTests.swift"
],
"target_dependencies" : [
"CustomToolTip"
],
"type" : "test"
},
{
"c99name" : "CustomToolTip",
"module_type" : "SwiftTarget",
"name" : "CustomToolTip",
"path" : "Sources/CustomToolTip",
"product_dependencies" : [
"SwizzleHelper"
],
"product_memberships" : [
"CustomToolTip"
],
"sources" : [
"CustomToolTipWindow.swift",
"Debugging.swift",
"NSBitmapImageRep+Extension.swift",
"NSCursor+Extension.swift",
"NSImage+Extension.swift",
"NSTrackingArea+Extension.swift",
"NSView+CustomToolTip.swift",
"ToolTipControl.swift"
],
"type" : "library"
}
],
"tools_version" : "5.3"
}
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/4] Write sources
[2/4] Write swift-version-2F0A5646E1D333AE.txt
[3/4] Compiling SwizzleHelperObjC swizzleHelper.m
[5/7] Compiling SwizzleHelper NSObject+AssociatedObjects.swift
[6/7] Emitting module SwizzleHelper
[7/7] Compiling SwizzleHelper NSObject+Swizzling.swift
[8/16] Compiling CustomToolTip NSTrackingArea+Extension.swift
[9/16] Compiling CustomToolTip NSImage+Extension.swift
[10/16] Compiling CustomToolTip NSCursor+Extension.swift
/Users/admin/builder/spi-builder-workspace/Sources/CustomToolTip/NSCursor+Extension.swift:3:17: warning: var 'cachedCursorRect' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
1 | import AppKit
2 |
3 | fileprivate var cachedCursorRect = CGRect.zero
| |- warning: var 'cachedCursorRect' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'cachedCursorRect' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make var 'cachedCursorRect' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
4 | fileprivate weak var cachedCursorImage: NSImage? = nil
5 |
/Users/admin/builder/spi-builder-workspace/Sources/CustomToolTip/NSCursor+Extension.swift:4:22: warning: var 'cachedCursorImage' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
2 |
3 | fileprivate var cachedCursorRect = CGRect.zero
4 | fileprivate weak var cachedCursorImage: NSImage? = nil
| |- warning: var 'cachedCursorImage' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'cachedCursorImage' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make var 'cachedCursorImage' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
5 |
6 | // -------------------------------------
[11/16] Compiling CustomToolTip Debugging.swift
[12/16] Compiling CustomToolTip NSBitmapImageRep+Extension.swift
[13/16] Emitting module CustomToolTip
/Users/admin/builder/spi-builder-workspace/Sources/CustomToolTip/CustomToolTipWindow.swift:3:12: warning: var 'defaultMargins' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
1 | import AppKit
2 |
3 | public var defaultMargins: CGSize = CGSize(width: 5, height: 5)
| |- warning: var 'defaultMargins' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'defaultMargins' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make var 'defaultMargins' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
4 | public var defaultBackgroundColor: NSColor = .windowBackgroundColor
5 |
/Users/admin/builder/spi-builder-workspace/Sources/CustomToolTip/CustomToolTipWindow.swift:4:12: warning: var 'defaultBackgroundColor' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
2 |
3 | public var defaultMargins: CGSize = CGSize(width: 5, height: 5)
4 | public var defaultBackgroundColor: NSColor = .windowBackgroundColor
| |- warning: var 'defaultBackgroundColor' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'defaultBackgroundColor' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make var 'defaultBackgroundColor' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
5 |
6 | // MARK:- Custom Tool Tip Window
/Users/admin/builder/spi-builder-workspace/Sources/CustomToolTip/NSCursor+Extension.swift:3:17: warning: var 'cachedCursorRect' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
1 | import AppKit
2 |
3 | fileprivate var cachedCursorRect = CGRect.zero
| |- warning: var 'cachedCursorRect' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'cachedCursorRect' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make var 'cachedCursorRect' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
4 | fileprivate weak var cachedCursorImage: NSImage? = nil
5 |
/Users/admin/builder/spi-builder-workspace/Sources/CustomToolTip/NSCursor+Extension.swift:4:22: warning: var 'cachedCursorImage' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
2 |
3 | fileprivate var cachedCursorRect = CGRect.zero
4 | fileprivate weak var cachedCursorImage: NSImage? = nil
| |- warning: var 'cachedCursorImage' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'cachedCursorImage' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make var 'cachedCursorImage' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
5 |
6 | // -------------------------------------
[14/16] Compiling CustomToolTip CustomToolTipWindow.swift
/Users/admin/builder/spi-builder-workspace/Sources/CustomToolTip/CustomToolTipWindow.swift:3:12: warning: var 'defaultMargins' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
1 | import AppKit
2 |
3 | public var defaultMargins: CGSize = CGSize(width: 5, height: 5)
| |- warning: var 'defaultMargins' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'defaultMargins' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make var 'defaultMargins' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
4 | public var defaultBackgroundColor: NSColor = .windowBackgroundColor
5 |
/Users/admin/builder/spi-builder-workspace/Sources/CustomToolTip/CustomToolTipWindow.swift:4:12: warning: var 'defaultBackgroundColor' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
2 |
3 | public var defaultMargins: CGSize = CGSize(width: 5, height: 5)
4 | public var defaultBackgroundColor: NSColor = .windowBackgroundColor
| |- warning: var 'defaultBackgroundColor' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'defaultBackgroundColor' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make var 'defaultBackgroundColor' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
5 |
6 | // MARK:- Custom Tool Tip Window
/Users/admin/builder/spi-builder-workspace/Sources/CustomToolTip/CustomToolTipWindow.swift:102:14: warning: call to main actor-isolated instance method 'orderOut' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
100 |
101 | // -------------------------------------
102 | deinit { orderOut(nil) }
| `- warning: call to main actor-isolated instance method 'orderOut' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
103 |
104 | // -------------------------------------
AppKit.NSWindow.orderOut:2:22: note: calls to instance method 'orderOut' from outside of its actor context are implicitly asynchronous
1 | class NSWindow {
2 | @MainActor open func orderOut(_ sender: Any?)}
| |- note: calls to instance method 'orderOut' from outside of its actor context are implicitly asynchronous
| `- note: main actor isolation inferred from inheritance from class 'NSResponder'
3 |
[15/16] Compiling CustomToolTip NSView+CustomToolTip.swift
/Users/admin/builder/spi-builder-workspace/Sources/CustomToolTip/NSView+CustomToolTip.swift:297:34: warning: call to main actor-isolated instance method 'scheduledShowToolTip()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
295 | let asyncDelay: DispatchTimeInterval = .milliseconds(Int(delay * 1000))
296 | dispatchQueue.asyncAfter(deadline: .now() + asyncDelay) {
297 | [weak self] in self?.scheduledShowToolTip()
| `- warning: call to main actor-isolated instance method 'scheduledShowToolTip()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
298 | }
299 | }
:
305 | to check again after a short delay.
306 | */
307 | private func scheduledShowToolTip()
| |- note: calls to instance method 'scheduledShowToolTip()' from outside of its actor context are implicitly asynchronous
| `- note: main actor isolation inferred from inheritance from class 'NSResponder'
308 | {
309 | let repeatDelay: TimeInterval = 0.1
[16/16] Compiling CustomToolTip ToolTipControl.swift
Build complete! (10.72s)
Build complete.
{
"dependencies" : [
{
"identity" : "swizzlehelper",
"requirement" : {
"range" : [
{
"lower_bound" : "1.0.1",
"upper_bound" : "2.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/chipjarred/SwizzleHelper.git"
}
],
"manifest_display_name" : "CustomToolTip",
"name" : "CustomToolTip",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
{
"name" : "macos",
"version" : "10.14"
}
],
"products" : [
{
"name" : "CustomToolTip",
"targets" : [
"CustomToolTip"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "CustomToolTipTests",
"module_type" : "SwiftTarget",
"name" : "CustomToolTipTests",
"path" : "Tests/CustomToolTipTests",
"sources" : [
"CustomToolTipTests.swift"
],
"target_dependencies" : [
"CustomToolTip"
],
"type" : "test"
},
{
"c99name" : "CustomToolTip",
"module_type" : "SwiftTarget",
"name" : "CustomToolTip",
"path" : "Sources/CustomToolTip",
"product_dependencies" : [
"SwizzleHelper"
],
"product_memberships" : [
"CustomToolTip"
],
"sources" : [
"CustomToolTipWindow.swift",
"Debugging.swift",
"NSBitmapImageRep+Extension.swift",
"NSCursor+Extension.swift",
"NSImage+Extension.swift",
"NSTrackingArea+Extension.swift",
"NSView+CustomToolTip.swift",
"ToolTipControl.swift"
],
"type" : "library"
}
],
"tools_version" : "5.3"
}
Done.