Build Information
Successful build of DSFColorSampler, reference master (b7b082
), with Swift 6.1 for macOS (SPM) on 28 Apr 2025 06:22:04 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/dagronf/DSFColorSampler.git
Reference: master
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/dagronf/DSFColorSampler
* branch master -> FETCH_HEAD
* [new branch] master -> origin/master
HEAD is now at b7b082e Update podspec
Cloned https://github.com/dagronf/DSFColorSampler.git
Revision (git rev-parse @):
b7b082edd6e42e56d09a4e59c71ca40815ae258b
SUCCESS checkout https://github.com/dagronf/DSFColorSampler.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": "dsfcolorsampler",
"name": "DSFColorSampler",
"url": "https://github.com/dagronf/DSFColorSampler.git",
"version": "unspecified",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/DSFColorSampler",
"dependencies": [
]
}
]
}
Fetching https://github.com/dagronf/DSFColorSampler.git
[1/258] Fetching dsfcolorsampler
Fetched https://github.com/dagronf/DSFColorSampler.git from cache (0.65s)
Creating working copy for https://github.com/dagronf/DSFColorSampler.git
Working copy of https://github.com/dagronf/DSFColorSampler.git resolved at master (b7b082e)
warning: '.resolve-product-dependencies': dependency 'dsfcolorsampler' 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/dagronf/DSFColorSampler.git
https://github.com/dagronf/DSFColorSampler.git
{
"dependencies" : [
],
"manifest_display_name" : "DSFColorSampler",
"name" : "DSFColorSampler",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
{
"name" : "macos",
"version" : "10.13"
}
],
"products" : [
{
"name" : "DSFColorSampler",
"targets" : [
"DSFColorSampler"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "DSFColorSampler",
"module_type" : "SwiftTarget",
"name" : "DSFColorSampler",
"path" : "Sources/DSFColorSampler",
"product_memberships" : [
"DSFColorSampler"
],
"sources" : [
"DSFColorSampler.swift"
],
"type" : "library"
}
],
"tools_version" : "5.4"
}
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/4] Emitting module DSFColorSampler
/Users/admin/builder/spi-builder-workspace/Sources/DSFColorSampler/DSFColorSampler.swift:131:21: warning: static property 'shared' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
129 | // Private
130 |
131 | private static var shared = DSFColorSampler()
| |- warning: static property 'shared' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'shared' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'shared' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
132 | private var screenPickerWindow: DSFColorSamplerWindow?
133 | private var selectionHandlerBlock: ColorSelectedBlock?
[4/4] Compiling DSFColorSampler DSFColorSampler.swift
/Users/admin/builder/spi-builder-workspace/Sources/DSFColorSampler/DSFColorSampler.swift:131:21: warning: static property 'shared' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
129 | // Private
130 |
131 | private static var shared = DSFColorSampler()
| |- warning: static property 'shared' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'shared' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'shared' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
132 | private var screenPickerWindow: DSFColorSamplerWindow?
133 | private var selectionHandlerBlock: ColorSelectedBlock?
/Users/admin/builder/spi-builder-workspace/Sources/DSFColorSampler/DSFColorSampler.swift:150:29: warning: call to main actor-isolated initializer 'init(contentRect:styleMask:backing:defer:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
147 | }
148 |
149 | func run() {
| `- note: add '@MainActor' to make instance method 'run()' part of global actor 'MainActor'
150 | self.screenPickerWindow = DSFColorSamplerWindow(
| `- warning: call to main actor-isolated initializer 'init(contentRect:styleMask:backing:defer:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
151 | contentRect: NSRect(x: 0, y: 0, width: 125, height: 125),
152 | styleMask: .borderless,
:
235 | }
236 |
237 | override public init(
| |- note: calls to initializer 'init(contentRect:styleMask:backing:defer:)' from outside of its actor context are implicitly asynchronous
| `- note: main actor isolation inferred from inheritance from class 'NSWindow'
238 | contentRect: NSRect,
239 | styleMask style: NSWindow.StyleMask,
/Users/admin/builder/spi-builder-workspace/Sources/DSFColorSampler/DSFColorSampler.swift:156:28: warning: main actor-isolated property 'delegate' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
147 | }
148 |
149 | func run() {
| `- note: add '@MainActor' to make instance method 'run()' part of global actor 'MainActor'
150 | self.screenPickerWindow = DSFColorSamplerWindow(
151 | contentRect: NSRect(x: 0, y: 0, width: 125, height: 125),
:
154 | defer: true
155 | )
156 | self.screenPickerWindow!.delegate = self
| `- warning: main actor-isolated property 'delegate' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
157 |
158 | NotificationCenter.default.addObserver(
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSWindow.h:338:49: note: mutation of this property is only permitted within the actor
336 | @property (getter=isExcludedFromWindowsMenu) BOOL excludedFromWindowsMenu;
337 | @property (nullable, strong) __kindof NSView *contentView;
338 | @property (nullable, weak) id<NSWindowDelegate> delegate;
| `- note: mutation of this property is only permitted within the actor
339 | @property (readonly) NSInteger windowNumber;
340 |
/Users/admin/builder/spi-builder-workspace/Sources/DSFColorSampler/DSFColorSampler.swift:172:24: warning: call to main actor-isolated instance method 'activate(ignoringOtherApps:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
147 | }
148 |
149 | func run() {
| `- note: add '@MainActor' to make instance method 'run()' part of global actor 'MainActor'
150 | self.screenPickerWindow = DSFColorSamplerWindow(
151 | contentRect: NSRect(x: 0, y: 0, width: 125, height: 125),
:
170 | )
171 |
172 | NSApplication.shared.activate(ignoringOtherApps: true)
| `- warning: call to main actor-isolated instance method 'activate(ignoringOtherApps:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
173 | self.screenPickerWindow!.makeKeyAndOrderFront(self)
174 | self.screenPickerWindow!.orderedIndex = 0
AppKit.NSApplication.activate:3:24: note: calls to instance method 'activate(ignoringOtherApps:)' from outside of its actor context are implicitly asynchronous
1 | class NSApplication {
2 | @available(macOS, introduced: 10.0, deprecated: 100000, message: "This method will be deprecated in a future release. Use NSApp.activate instead.")
3 | @MainActor open func activate(ignoringOtherApps ignoreOtherApps: Bool)}
| |- note: calls to instance method 'activate(ignoringOtherApps:)' from outside of its actor context are implicitly asynchronous
| `- note: main actor isolation inferred from inheritance from class 'NSResponder'
4 |
/Users/admin/builder/spi-builder-workspace/Sources/DSFColorSampler/DSFColorSampler.swift:172:17: warning: main actor-isolated class property 'shared' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
147 | }
148 |
149 | func run() {
| `- note: add '@MainActor' to make instance method 'run()' part of global actor 'MainActor'
150 | self.screenPickerWindow = DSFColorSamplerWindow(
151 | contentRect: NSRect(x: 0, y: 0, width: 125, height: 125),
:
170 | )
171 |
172 | NSApplication.shared.activate(ignoringOtherApps: true)
| `- warning: main actor-isolated class property 'shared' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
173 | self.screenPickerWindow!.makeKeyAndOrderFront(self)
174 | self.screenPickerWindow!.orderedIndex = 0
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSApplication.h:193:61: note: class property declared here
191 | APPKIT_EXTERN __kindof NSApplication * _Null_unspecified NSApp NS_SWIFT_UI_ACTOR;
192 |
193 | @property (class, readonly, strong) __kindof NSApplication *sharedApplication;
| `- note: class property declared here
194 | @property (nullable, weak) id<NSApplicationDelegate> delegate;
195 |
/Users/admin/builder/spi-builder-workspace/Sources/DSFColorSampler/DSFColorSampler.swift:173:28: warning: call to main actor-isolated instance method 'makeKeyAndOrderFront' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
147 | }
148 |
149 | func run() {
| `- note: add '@MainActor' to make instance method 'run()' part of global actor 'MainActor'
150 | self.screenPickerWindow = DSFColorSamplerWindow(
151 | contentRect: NSRect(x: 0, y: 0, width: 125, height: 125),
:
171 |
172 | NSApplication.shared.activate(ignoringOtherApps: true)
173 | self.screenPickerWindow!.makeKeyAndOrderFront(self)
| `- warning: call to main actor-isolated instance method 'makeKeyAndOrderFront' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
174 | self.screenPickerWindow!.orderedIndex = 0
175 |
AppKit.NSWindow.makeKeyAndOrderFront:2:22: note: calls to instance method 'makeKeyAndOrderFront' from outside of its actor context are implicitly asynchronous
1 | class NSWindow {
2 | @MainActor open func makeKeyAndOrderFront(_ sender: Any?)}
| |- note: calls to instance method 'makeKeyAndOrderFront' from outside of its actor context are implicitly asynchronous
| `- note: main actor isolation inferred from inheritance from class 'NSResponder'
3 |
/Users/admin/builder/spi-builder-workspace/Sources/DSFColorSampler/DSFColorSampler.swift:174:28: warning: main actor-isolated property 'orderedIndex' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
147 | }
148 |
149 | func run() {
| `- note: add '@MainActor' to make instance method 'run()' part of global actor 'MainActor'
150 | self.screenPickerWindow = DSFColorSamplerWindow(
151 | contentRect: NSRect(x: 0, y: 0, width: 125, height: 125),
:
172 | NSApplication.shared.activate(ignoringOtherApps: true)
173 | self.screenPickerWindow!.makeKeyAndOrderFront(self)
174 | self.screenPickerWindow!.orderedIndex = 0
| `- warning: main actor-isolated property 'orderedIndex' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
175 |
176 | // prepare image for window's contentView in advance
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSWindowScripting.h:27:21: note: mutation of this property is only permitted within the actor
25 | @property (getter=isResizable, readonly) BOOL resizable;
26 | @property (getter=isZoomable, readonly) BOOL zoomable;
27 | @property NSInteger orderedIndex;
| `- note: mutation of this property is only permitted within the actor
28 |
29 | // Key value coding compliant set-accessors for the like-named attributes declared in Cocoa's definition of the Standard Suite. Attributes that don't have corresponding methods here are read-only.
/Users/admin/builder/spi-builder-workspace/Sources/DSFColorSampler/DSFColorSampler.swift:177:28: warning: call to main actor-isolated instance method 'mouseMoved(with:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
147 | }
148 |
149 | func run() {
| `- note: add '@MainActor' to make instance method 'run()' part of global actor 'MainActor'
150 | self.screenPickerWindow = DSFColorSamplerWindow(
151 | contentRect: NSRect(x: 0, y: 0, width: 125, height: 125),
:
175 |
176 | // prepare image for window's contentView in advance
177 | self.screenPickerWindow!.mouseMoved(with: NSEvent())
| `- warning: call to main actor-isolated instance method 'mouseMoved(with:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
178 | NSCursor.hide()
179 | }
:
252 | }
253 |
254 | override open func mouseMoved(with event: NSEvent) {
| |- note: calls to instance method 'mouseMoved(with:)' from outside of its actor context are implicitly asynchronous
| `- note: main actor isolation inferred from inheritance from class 'NSWindow'
255 | let point = NSEvent.mouseLocation
256 | let captureSize: CGFloat = self.frame.size.width / self.pixelZoom
/Users/admin/builder/spi-builder-workspace/Sources/DSFColorSampler/DSFColorSampler.swift:173:28: warning: sending value of non-Sendable type 'DSFColorSampler' risks causing data races; this is an error in the Swift 6 language mode
171 |
172 | NSApplication.shared.activate(ignoringOtherApps: true)
173 | self.screenPickerWindow!.makeKeyAndOrderFront(self)
| |- warning: sending value of non-Sendable type 'DSFColorSampler' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated value of non-Sendable type 'DSFColorSampler' to main actor-isolated instance method 'makeKeyAndOrderFront' risks causing races in between task-isolated and main actor-isolated uses
174 | self.screenPickerWindow!.orderedIndex = 0
175 |
Build complete! (6.13s)
Build complete.
{
"dependencies" : [
],
"manifest_display_name" : "DSFColorSampler",
"name" : "DSFColorSampler",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
{
"name" : "macos",
"version" : "10.13"
}
],
"products" : [
{
"name" : "DSFColorSampler",
"targets" : [
"DSFColorSampler"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "DSFColorSampler",
"module_type" : "SwiftTarget",
"name" : "DSFColorSampler",
"path" : "Sources/DSFColorSampler",
"product_memberships" : [
"DSFColorSampler"
],
"sources" : [
"DSFColorSampler.swift"
],
"type" : "library"
}
],
"tools_version" : "5.4"
}
Done.