Build Information
Successful build of ColorWellKit, reference main (3fa347
), with Swift 6.1 for macOS (SPM) on 28 Apr 2025 03:02:33 UTC.
Swift 6 data race errors: 16
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/jordanbaird/ColorWellKit.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/jordanbaird/ColorWellKit
* branch main -> FETCH_HEAD
* [new branch] main -> origin/main
HEAD is now at 3fa347b Rework exclusivity lock
Cloned https://github.com/jordanbaird/ColorWellKit.git
Revision (git rev-parse @):
3fa347b87fe935a4e1a3fc728f87d3d25c6f8d52
SPI manifest file found: $PWD/.spi.yml
SUCCESS checkout https://github.com/jordanbaird/ColorWellKit.git at main
========================================
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": "colorwellkit",
"name": "ColorWellKit",
"url": "https://github.com/jordanbaird/ColorWellKit.git",
"version": "unspecified",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/ColorWellKit",
"dependencies": [
]
}
]
}
Fetching https://github.com/jordanbaird/ColorWellKit.git
[1/593] Fetching colorwellkit
Fetched https://github.com/jordanbaird/ColorWellKit.git from cache (1.05s)
Creating working copy for https://github.com/jordanbaird/ColorWellKit.git
Working copy of https://github.com/jordanbaird/ColorWellKit.git resolved at main (3fa347b)
warning: '.resolve-product-dependencies': dependency 'colorwellkit' 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/jordanbaird/ColorWellKit.git
https://github.com/jordanbaird/ColorWellKit.git
{
"dependencies" : [
],
"manifest_display_name" : "ColorWellKit",
"name" : "ColorWellKit",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
{
"name" : "macos",
"version" : "10.13"
}
],
"products" : [
{
"name" : "ColorWellKit",
"targets" : [
"ColorWellKit"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "ColorWellKitTests",
"module_type" : "SwiftTarget",
"name" : "ColorWellKitTests",
"path" : "Tests/ColorWellKitTests",
"sources" : [
"ColorWellKitTests.swift"
],
"target_dependencies" : [
"ColorWellKit"
],
"type" : "test"
},
{
"c99name" : "ColorWellKit",
"module_type" : "SwiftTarget",
"name" : "ColorWellKit",
"path" : "Sources/ColorWellKit",
"product_memberships" : [
"ColorWellKit"
],
"sources" : [
"Utilities/ColorHelpers.swift",
"Utilities/Extensions.swift",
"Utilities/Geometry.swift",
"Utilities/LocalEventMonitor.swift",
"Utilities/LockedState.swift",
"Utilities/Logging.swift",
"Utilities/ObjectAssociation.swift",
"Utilities/Path.swift",
"Views/Cocoa/CWColorWell.Style.swift",
"Views/Cocoa/CWColorWell.swift",
"Views/Cocoa/CWColorWellBaseControl.swift",
"Views/Cocoa/CWColorWellDelegate.swift",
"Views/Cocoa/CWColorWellLayoutView.swift",
"Views/Cocoa/CWColorWellPopover.swift",
"Views/Cocoa/CWColorWellSegment.swift",
"Views/SwiftUI/Backports.swift",
"Views/SwiftUI/ColorPanelMode.swift",
"Views/SwiftUI/ColorWell.swift",
"Views/SwiftUI/ColorWellRepresentable.swift",
"Views/SwiftUI/ColorWellSecondaryActionDelegate.swift",
"Views/SwiftUI/ColorWellStyle.swift",
"Views/SwiftUI/EnvironmentValues.swift",
"Views/SwiftUI/ViewModifiers.swift"
],
"type" : "library"
}
],
"tools_version" : "5.9"
}
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/24] Emitting module ColorWellKit
/Users/admin/builder/spi-builder-workspace/Sources/ColorWellKit/Views/Cocoa/CWColorWellBaseControl.swift:23:20: warning: static property 'defaultStyle' is not concurrency-safe because non-'Sendable' type 'CWColorWell.Style' may have shared mutable state; this is an error in the Swift 6 language mode
21 | static let defaultColor = NSColor(red: 1, green: 1, blue: 1, alpha: 1)
22 |
23 | static let defaultStyle = CWColorWell.Style.default
| |- warning: static property 'defaultStyle' is not concurrency-safe because non-'Sendable' type 'CWColorWell.Style' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'defaultStyle' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
24 |
25 | static let defaultSize = NSSize(width: 38, height: 24)
/Users/admin/builder/spi-builder-workspace/Sources/ColorWellKit/Views/Cocoa/CWColorWell.Style.swift:10:23: note: consider making enum 'Style' conform to the 'Sendable' protocol
8 | extension CWColorWell {
9 | /// Constants that specify the appearance and behavior of a color well.
10 | @objc public enum Style: Int {
| `- note: consider making enum 'Style' conform to the 'Sendable' protocol
11 | /// The color well is displayed as a rectangular control that displays
12 | /// the selected color and shows the system color panel when clicked.
/Users/admin/builder/spi-builder-workspace/Sources/ColorWellKit/Views/Cocoa/CWColorWellBaseControl.swift:57:65: warning: main actor-isolated property 'attachedObjects' can not be referenced from a Sendable closure; this is an error in the Swift 6 language mode
55 | private static let colorPanelObservations: [NSKeyValueObservation] = [
56 | NSColorPanel.shared.observe(\.color) { colorPanel, _ in
57 | for case let colorWell as CWColorWell in colorPanel.attachedObjects {
| `- warning: main actor-isolated property 'attachedObjects' can not be referenced from a Sendable closure; this is an error in the Swift 6 language mode
58 | colorWell.updateColor(colorPanel.color, options: [
59 | .informDelegate,
/Users/admin/builder/spi-builder-workspace/Sources/ColorWellKit/Utilities/Extensions.swift:189:9: note: property declared here
187 |
188 | /// The objects that are currently attached to the color panel.
189 | var attachedObjects: [AnyObject] {
| `- note: property declared here
190 | get {
191 | Self.weakObjectStorage[self]?.compactMap { $0.object } ?? []
/Users/admin/builder/spi-builder-workspace/Sources/ColorWellKit/Views/Cocoa/CWColorWellBaseControl.swift:58:27: warning: call to main actor-isolated instance method 'updateColor(_:options:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
56 | NSColorPanel.shared.observe(\.color) { colorPanel, _ in
57 | for case let colorWell as CWColorWell in colorPanel.attachedObjects {
58 | colorWell.updateColor(colorPanel.color, options: [
| `- warning: call to main actor-isolated instance method 'updateColor(_:options:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
59 | .informDelegate,
60 | .informObservers,
/Users/admin/builder/spi-builder-workspace/Sources/ColorWellKit/Views/Cocoa/CWColorWell.swift:278:19: note: calls to instance method 'updateColor(_:options:)' from outside of its actor context are implicitly asynchronous
276 | // MARK: Overridden Instance Methods
277 |
278 | override func updateColor(_ newColor: NSColor?, options: ColorUpdateOptions) {
| |- note: calls to instance method 'updateColor(_:options:)' from outside of its actor context are implicitly asynchronous
| `- note: main actor isolation inferred from inheritance from class '_CWColorWellBaseControl'
279 | let newColor = newColor ?? .black
280 |
/Users/admin/builder/spi-builder-workspace/Sources/ColorWellKit/Views/Cocoa/CWColorWellBaseControl.swift:58:50: warning: main actor-isolated property 'color' can not be referenced from a Sendable closure; this is an error in the Swift 6 language mode
56 | NSColorPanel.shared.observe(\.color) { colorPanel, _ in
57 | for case let colorWell as CWColorWell in colorPanel.attachedObjects {
58 | colorWell.updateColor(colorPanel.color, options: [
| `- warning: main actor-isolated property 'color' can not be referenced from a Sendable closure; this is an error in the Swift 6 language mode
59 | .informDelegate,
60 | .informObservers,
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSColorPanel.h:56:27: note: property declared here
54 | @property BOOL showsAlpha;
55 | @property NSColorPanelMode mode;
56 | @property (copy) NSColor *color;
| `- note: property declared here
57 | @property (readonly) CGFloat alpha;
58 | - (void)setAction:(nullable SEL)selector;
/Users/admin/builder/spi-builder-workspace/Sources/ColorWellKit/Views/Cocoa/CWColorWellBaseControl.swift:66:28: warning: main actor-isolated property 'isVisible' can not be referenced from a Sendable closure; this is an error in the Swift 6 language mode
64 | },
65 | NSColorPanel.shared.observe(\.isVisible) { colorPanel, _ in
66 | if !colorPanel.isVisible {
| `- warning: main actor-isolated property 'isVisible' can not be referenced from a Sendable closure; this is an error in the Swift 6 language mode
67 | for case let colorWell as CWColorWell in colorPanel.attachedObjects {
68 | colorWell.deactivate()
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSWindow.h:435:45: note: property declared here
433 |
434 | @property (getter=isDocumentEdited) BOOL documentEdited;
435 | @property (getter=isVisible, readonly) BOOL visible;
| `- note: property declared here
436 | @property (getter=isKeyWindow, readonly) BOOL keyWindow;
437 | @property (getter=isMainWindow, readonly) BOOL mainWindow;
/Users/admin/builder/spi-builder-workspace/Sources/ColorWellKit/Views/Cocoa/CWColorWellBaseControl.swift:67:69: warning: main actor-isolated property 'attachedObjects' can not be referenced from a Sendable closure; this is an error in the Swift 6 language mode
65 | NSColorPanel.shared.observe(\.isVisible) { colorPanel, _ in
66 | if !colorPanel.isVisible {
67 | for case let colorWell as CWColorWell in colorPanel.attachedObjects {
| `- warning: main actor-isolated property 'attachedObjects' can not be referenced from a Sendable closure; this is an error in the Swift 6 language mode
68 | colorWell.deactivate()
69 | }
/Users/admin/builder/spi-builder-workspace/Sources/ColorWellKit/Utilities/Extensions.swift:189:9: note: property declared here
187 |
188 | /// The objects that are currently attached to the color panel.
189 | var attachedObjects: [AnyObject] {
| `- note: property declared here
190 | get {
191 | Self.weakObjectStorage[self]?.compactMap { $0.object } ?? []
/Users/admin/builder/spi-builder-workspace/Sources/ColorWellKit/Views/Cocoa/CWColorWellBaseControl.swift:68:31: warning: call to main actor-isolated instance method 'deactivate()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
66 | if !colorPanel.isVisible {
67 | for case let colorWell as CWColorWell in colorPanel.attachedObjects {
68 | colorWell.deactivate()
| `- warning: call to main actor-isolated instance method 'deactivate()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
69 | }
70 | }
/Users/admin/builder/spi-builder-workspace/Sources/ColorWellKit/Views/Cocoa/CWColorWell.swift:213:17: note: calls to instance method 'deactivate()' from outside of its actor context are implicitly asynchronous
211 | /// Until the color well is activated again, changes to the color panel will not
212 | /// affect the color well's state.
213 | public func deactivate() {
| |- note: calls to instance method 'deactivate()' from outside of its actor context are implicitly asynchronous
| `- note: main actor isolation inferred from inheritance from class '_CWColorWellBaseControl'
214 | withExclusivityLock(exclusivity.state) { isActive = false }
215 | }
/Users/admin/builder/spi-builder-workspace/Sources/ColorWellKit/Views/Cocoa/CWColorWellBaseControl.swift:80:24: warning: static property 'storage' is not concurrency-safe because non-'Sendable' type 'ObjectAssociation<CWColorWellLayoutView>' may have shared mutable state; this is an error in the Swift 6 language mode
78 | final var layoutView: CWColorWellLayoutView {
79 | enum Context {
80 | static let storage = ObjectAssociation<CWColorWellLayoutView>()
| |- warning: static property 'storage' is not concurrency-safe because non-'Sendable' type 'ObjectAssociation<CWColorWellLayoutView>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'storage' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
81 | }
82 | // force cast is okay here; at this point it should be guaranteed
/Users/admin/builder/spi-builder-workspace/Sources/ColorWellKit/Utilities/ObjectAssociation.swift:30:13: note: generic class 'ObjectAssociation' does not conform to the 'Sendable' protocol
28 | // MARK: - ObjectAssociation
29 |
30 | final class ObjectAssociation<Value> {
| `- note: generic class 'ObjectAssociation' does not conform to the 'Sendable' protocol
31 | private let policy: AssociationPolicy
32 |
/Users/admin/builder/spi-builder-workspace/Sources/ColorWellKit/Views/Cocoa/CWColorWellSegment.swift:719:20: warning: static property 'defaultImage' is not concurrency-safe because non-'Sendable' type 'NSImage' may have shared mutable state; this is an error in the Swift 6 language mode
717 | class CWToggleSegment: CWColorWellSegment {
718 | private enum Images {
719 | static let defaultImage: NSImage = {
| |- warning: static property 'defaultImage' is not concurrency-safe because non-'Sendable' type 'NSImage' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'defaultImage' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
720 | // force unwrap is okay here, as the image is an AppKit builtin
721 | // swiftlint:disable:next force_unwrapping
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSImage.h:66:12: note: class 'NSImage' does not conform to the 'Sendable' protocol
64 | __attribute__((objc_subclassing_restricted))
65 | #endif /* NSIMAGE_UNAVAILABLE_MACCATALYST */
66 | @interface NSImage : NSObject
| `- note: class 'NSImage' does not conform to the 'Sendable' protocol
67 |
68 | #pragma mark - Initialization
/Users/admin/builder/spi-builder-workspace/Sources/ColorWellKit/Views/Cocoa/CWColorWellSegment.swift:735:20: warning: static property 'enabledImageForDarkAppearance' is not concurrency-safe because non-'Sendable' type 'NSImage' may have shared mutable state; this is an error in the Swift 6 language mode
733 | }()
734 |
735 | static let enabledImageForDarkAppearance = defaultImage.tinted(to: .white, fraction: 1 / 3)
| |- warning: static property 'enabledImageForDarkAppearance' is not concurrency-safe because non-'Sendable' type 'NSImage' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'enabledImageForDarkAppearance' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
736 |
737 | static let enabledImageForLightAppearance = defaultImage.tinted(to: .black, fraction: 1 / 5)
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSImage.h:66:12: note: class 'NSImage' does not conform to the 'Sendable' protocol
64 | __attribute__((objc_subclassing_restricted))
65 | #endif /* NSIMAGE_UNAVAILABLE_MACCATALYST */
66 | @interface NSImage : NSObject
| `- note: class 'NSImage' does not conform to the 'Sendable' protocol
67 |
68 | #pragma mark - Initialization
/Users/admin/builder/spi-builder-workspace/Sources/ColorWellKit/Views/Cocoa/CWColorWellSegment.swift:737:20: warning: static property 'enabledImageForLightAppearance' is not concurrency-safe because non-'Sendable' type 'NSImage' may have shared mutable state; this is an error in the Swift 6 language mode
735 | static let enabledImageForDarkAppearance = defaultImage.tinted(to: .white, fraction: 1 / 3)
736 |
737 | static let enabledImageForLightAppearance = defaultImage.tinted(to: .black, fraction: 1 / 5)
| |- warning: static property 'enabledImageForLightAppearance' is not concurrency-safe because non-'Sendable' type 'NSImage' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'enabledImageForLightAppearance' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
738 |
739 | static let disabledImageForDarkAppearance = defaultImage.tinted(to: .gray, fraction: 1 / 3).withOpacity(0.5)
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSImage.h:66:12: note: class 'NSImage' does not conform to the 'Sendable' protocol
64 | __attribute__((objc_subclassing_restricted))
65 | #endif /* NSIMAGE_UNAVAILABLE_MACCATALYST */
66 | @interface NSImage : NSObject
| `- note: class 'NSImage' does not conform to the 'Sendable' protocol
67 |
68 | #pragma mark - Initialization
/Users/admin/builder/spi-builder-workspace/Sources/ColorWellKit/Views/Cocoa/CWColorWellSegment.swift:739:20: warning: static property 'disabledImageForDarkAppearance' is not concurrency-safe because non-'Sendable' type 'NSImage' may have shared mutable state; this is an error in the Swift 6 language mode
737 | static let enabledImageForLightAppearance = defaultImage.tinted(to: .black, fraction: 1 / 5)
738 |
739 | static let disabledImageForDarkAppearance = defaultImage.tinted(to: .gray, fraction: 1 / 3).withOpacity(0.5)
| |- warning: static property 'disabledImageForDarkAppearance' is not concurrency-safe because non-'Sendable' type 'NSImage' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'disabledImageForDarkAppearance' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
740 |
741 | static let disabledImageForLightAppearance = defaultImage.tinted(to: .gray, fraction: 1 / 5).withOpacity(0.5)
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSImage.h:66:12: note: class 'NSImage' does not conform to the 'Sendable' protocol
64 | __attribute__((objc_subclassing_restricted))
65 | #endif /* NSIMAGE_UNAVAILABLE_MACCATALYST */
66 | @interface NSImage : NSObject
| `- note: class 'NSImage' does not conform to the 'Sendable' protocol
67 |
68 | #pragma mark - Initialization
/Users/admin/builder/spi-builder-workspace/Sources/ColorWellKit/Views/Cocoa/CWColorWellSegment.swift:741:20: warning: static property 'disabledImageForLightAppearance' is not concurrency-safe because non-'Sendable' type 'NSImage' may have shared mutable state; this is an error in the Swift 6 language mode
739 | static let disabledImageForDarkAppearance = defaultImage.tinted(to: .gray, fraction: 1 / 3).withOpacity(0.5)
740 |
741 | static let disabledImageForLightAppearance = defaultImage.tinted(to: .gray, fraction: 1 / 5).withOpacity(0.5)
| |- warning: static property 'disabledImageForLightAppearance' is not concurrency-safe because non-'Sendable' type 'NSImage' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'disabledImageForLightAppearance' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
742 | }
743 |
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSImage.h:66:12: note: class 'NSImage' does not conform to the 'Sendable' protocol
64 | __attribute__((objc_subclassing_restricted))
65 | #endif /* NSIMAGE_UNAVAILABLE_MACCATALYST */
66 | @interface NSImage : NSObject
| `- note: class 'NSImage' does not conform to the 'Sendable' protocol
67 |
68 | #pragma mark - Initialization
/Users/admin/builder/spi-builder-workspace/Sources/ColorWellKit/Views/SwiftUI/EnvironmentValues.swift:11:16: warning: static property 'defaultValue' is not concurrency-safe because non-'Sendable' type '_ColorWellStyleConfiguration' may have shared mutable state; this is an error in the Swift 6 language mode
9 | @available(macOS 10.15, *)
10 | private struct ColorWellStyleConfigurationKey: EnvironmentKey {
11 | static let defaultValue = _ColorWellStyleConfiguration.default
| |- warning: static property 'defaultValue' is not concurrency-safe because non-'Sendable' type '_ColorWellStyleConfiguration' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'defaultValue' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
12 | }
13 |
/Users/admin/builder/spi-builder-workspace/Sources/ColorWellKit/Views/SwiftUI/ColorWellStyle.swift:12:15: note: consider making struct '_ColorWellStyleConfiguration' conform to the 'Sendable' protocol
10 | /// Values that configure a color well's style.
11 | @available(macOS 10.15, *)
12 | public struct _ColorWellStyleConfiguration {
| `- note: consider making struct '_ColorWellStyleConfiguration' conform to the 'Sendable' protocol
13 | /// The underlying style of the color well.
14 | let style: CWColorWell.Style
/Users/admin/builder/spi-builder-workspace/Sources/ColorWellKit/Views/SwiftUI/EnvironmentValues.swift:21:16: warning: static property 'defaultValue' is not concurrency-safe because non-'Sendable' type 'ColorWellSecondaryActionDelegate?' may have shared mutable state; this is an error in the Swift 6 language mode
19 | @available(macOS 10.15, *)
20 | private struct ColorWellSecondaryActionDelegateKey: EnvironmentKey {
21 | static let defaultValue: ColorWellSecondaryActionDelegate? = nil
| |- warning: static property 'defaultValue' is not concurrency-safe because non-'Sendable' type 'ColorWellSecondaryActionDelegate?' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'defaultValue' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
22 | }
23 |
/Users/admin/builder/spi-builder-workspace/Sources/ColorWellKit/Views/SwiftUI/ColorWellSecondaryActionDelegate.swift:8:7: note: class 'ColorWellSecondaryActionDelegate' does not conform to the 'Sendable' protocol
6 | import Foundation
7 |
8 | class ColorWellSecondaryActionDelegate: NSObject {
| `- note: class 'ColorWellSecondaryActionDelegate' does not conform to the 'Sendable' protocol
9 | private let action: () -> Void
10 |
/Users/admin/builder/spi-builder-workspace/Sources/ColorWellKit/Views/SwiftUI/EnvironmentValues.swift:26:16: warning: static property 'defaultValue' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
24 | @available(macOS 10.15, *)
25 | private struct ColorPanelModeConfigurationKey: EnvironmentKey {
26 | static var defaultValue: _ColorPanelModeConfiguration?
| |- warning: static property 'defaultValue' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'defaultValue' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'defaultValue' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
27 | }
28 |
[4/26] Compiling ColorWellKit CWColorWell.swift
/Users/admin/builder/spi-builder-workspace/Sources/ColorWellKit/Views/Cocoa/CWColorWellBaseControl.swift:23:20: warning: static property 'defaultStyle' is not concurrency-safe because non-'Sendable' type 'CWColorWell.Style' may have shared mutable state; this is an error in the Swift 6 language mode
21 | static let defaultColor = NSColor(red: 1, green: 1, blue: 1, alpha: 1)
22 |
23 | static let defaultStyle = CWColorWell.Style.default
| |- warning: static property 'defaultStyle' is not concurrency-safe because non-'Sendable' type 'CWColorWell.Style' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'defaultStyle' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
24 |
25 | static let defaultSize = NSSize(width: 38, height: 24)
/Users/admin/builder/spi-builder-workspace/Sources/ColorWellKit/Views/Cocoa/CWColorWell.Style.swift:10:23: note: consider making enum 'Style' conform to the 'Sendable' protocol
8 | extension CWColorWell {
9 | /// Constants that specify the appearance and behavior of a color well.
10 | @objc public enum Style: Int {
| `- note: consider making enum 'Style' conform to the 'Sendable' protocol
11 | /// The color well is displayed as a rectangular control that displays
12 | /// the selected color and shows the system color panel when clicked.
/Users/admin/builder/spi-builder-workspace/Sources/ColorWellKit/Views/Cocoa/CWColorWellBaseControl.swift:57:65: warning: main actor-isolated property 'attachedObjects' can not be referenced from a Sendable closure; this is an error in the Swift 6 language mode
55 | private static let colorPanelObservations: [NSKeyValueObservation] = [
56 | NSColorPanel.shared.observe(\.color) { colorPanel, _ in
57 | for case let colorWell as CWColorWell in colorPanel.attachedObjects {
| `- warning: main actor-isolated property 'attachedObjects' can not be referenced from a Sendable closure; this is an error in the Swift 6 language mode
58 | colorWell.updateColor(colorPanel.color, options: [
59 | .informDelegate,
/Users/admin/builder/spi-builder-workspace/Sources/ColorWellKit/Utilities/Extensions.swift:189:9: note: property declared here
187 |
188 | /// The objects that are currently attached to the color panel.
189 | var attachedObjects: [AnyObject] {
| `- note: property declared here
190 | get {
191 | Self.weakObjectStorage[self]?.compactMap { $0.object } ?? []
/Users/admin/builder/spi-builder-workspace/Sources/ColorWellKit/Views/Cocoa/CWColorWellBaseControl.swift:58:27: warning: call to main actor-isolated instance method 'updateColor(_:options:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
56 | NSColorPanel.shared.observe(\.color) { colorPanel, _ in
57 | for case let colorWell as CWColorWell in colorPanel.attachedObjects {
58 | colorWell.updateColor(colorPanel.color, options: [
| `- warning: call to main actor-isolated instance method 'updateColor(_:options:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
59 | .informDelegate,
60 | .informObservers,
/Users/admin/builder/spi-builder-workspace/Sources/ColorWellKit/Views/Cocoa/CWColorWell.swift:278:19: note: calls to instance method 'updateColor(_:options:)' from outside of its actor context are implicitly asynchronous
276 | // MARK: Overridden Instance Methods
277 |
278 | override func updateColor(_ newColor: NSColor?, options: ColorUpdateOptions) {
| |- note: calls to instance method 'updateColor(_:options:)' from outside of its actor context are implicitly asynchronous
| `- note: main actor isolation inferred from inheritance from class '_CWColorWellBaseControl'
279 | let newColor = newColor ?? .black
280 |
/Users/admin/builder/spi-builder-workspace/Sources/ColorWellKit/Views/Cocoa/CWColorWellBaseControl.swift:58:50: warning: main actor-isolated property 'color' can not be referenced from a Sendable closure; this is an error in the Swift 6 language mode
56 | NSColorPanel.shared.observe(\.color) { colorPanel, _ in
57 | for case let colorWell as CWColorWell in colorPanel.attachedObjects {
58 | colorWell.updateColor(colorPanel.color, options: [
| `- warning: main actor-isolated property 'color' can not be referenced from a Sendable closure; this is an error in the Swift 6 language mode
59 | .informDelegate,
60 | .informObservers,
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSColorPanel.h:56:27: note: property declared here
54 | @property BOOL showsAlpha;
55 | @property NSColorPanelMode mode;
56 | @property (copy) NSColor *color;
| `- note: property declared here
57 | @property (readonly) CGFloat alpha;
58 | - (void)setAction:(nullable SEL)selector;
/Users/admin/builder/spi-builder-workspace/Sources/ColorWellKit/Views/Cocoa/CWColorWellBaseControl.swift:66:28: warning: main actor-isolated property 'isVisible' can not be referenced from a Sendable closure; this is an error in the Swift 6 language mode
64 | },
65 | NSColorPanel.shared.observe(\.isVisible) { colorPanel, _ in
66 | if !colorPanel.isVisible {
| `- warning: main actor-isolated property 'isVisible' can not be referenced from a Sendable closure; this is an error in the Swift 6 language mode
67 | for case let colorWell as CWColorWell in colorPanel.attachedObjects {
68 | colorWell.deactivate()
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSWindow.h:435:45: note: property declared here
433 |
434 | @property (getter=isDocumentEdited) BOOL documentEdited;
435 | @property (getter=isVisible, readonly) BOOL visible;
| `- note: property declared here
436 | @property (getter=isKeyWindow, readonly) BOOL keyWindow;
437 | @property (getter=isMainWindow, readonly) BOOL mainWindow;
/Users/admin/builder/spi-builder-workspace/Sources/ColorWellKit/Views/Cocoa/CWColorWellBaseControl.swift:67:69: warning: main actor-isolated property 'attachedObjects' can not be referenced from a Sendable closure; this is an error in the Swift 6 language mode
65 | NSColorPanel.shared.observe(\.isVisible) { colorPanel, _ in
66 | if !colorPanel.isVisible {
67 | for case let colorWell as CWColorWell in colorPanel.attachedObjects {
| `- warning: main actor-isolated property 'attachedObjects' can not be referenced from a Sendable closure; this is an error in the Swift 6 language mode
68 | colorWell.deactivate()
69 | }
/Users/admin/builder/spi-builder-workspace/Sources/ColorWellKit/Utilities/Extensions.swift:189:9: note: property declared here
187 |
188 | /// The objects that are currently attached to the color panel.
189 | var attachedObjects: [AnyObject] {
| `- note: property declared here
190 | get {
191 | Self.weakObjectStorage[self]?.compactMap { $0.object } ?? []
/Users/admin/builder/spi-builder-workspace/Sources/ColorWellKit/Views/Cocoa/CWColorWellBaseControl.swift:68:31: warning: call to main actor-isolated instance method 'deactivate()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
66 | if !colorPanel.isVisible {
67 | for case let colorWell as CWColorWell in colorPanel.attachedObjects {
68 | colorWell.deactivate()
| `- warning: call to main actor-isolated instance method 'deactivate()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
69 | }
70 | }
/Users/admin/builder/spi-builder-workspace/Sources/ColorWellKit/Views/Cocoa/CWColorWell.swift:213:17: note: calls to instance method 'deactivate()' from outside of its actor context are implicitly asynchronous
211 | /// Until the color well is activated again, changes to the color panel will not
212 | /// affect the color well's state.
213 | public func deactivate() {
| |- note: calls to instance method 'deactivate()' from outside of its actor context are implicitly asynchronous
| `- note: main actor isolation inferred from inheritance from class '_CWColorWellBaseControl'
214 | withExclusivityLock(exclusivity.state) { isActive = false }
215 | }
/Users/admin/builder/spi-builder-workspace/Sources/ColorWellKit/Views/Cocoa/CWColorWellBaseControl.swift:80:24: warning: static property 'storage' is not concurrency-safe because non-'Sendable' type 'ObjectAssociation<CWColorWellLayoutView>' may have shared mutable state; this is an error in the Swift 6 language mode
78 | final var layoutView: CWColorWellLayoutView {
79 | enum Context {
80 | static let storage = ObjectAssociation<CWColorWellLayoutView>()
| |- warning: static property 'storage' is not concurrency-safe because non-'Sendable' type 'ObjectAssociation<CWColorWellLayoutView>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'storage' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
81 | }
82 | // force cast is okay here; at this point it should be guaranteed
/Users/admin/builder/spi-builder-workspace/Sources/ColorWellKit/Utilities/ObjectAssociation.swift:30:13: note: generic class 'ObjectAssociation' does not conform to the 'Sendable' protocol
28 | // MARK: - ObjectAssociation
29 |
30 | final class ObjectAssociation<Value> {
| `- note: generic class 'ObjectAssociation' does not conform to the 'Sendable' protocol
31 | private let policy: AssociationPolicy
32 |
/Users/admin/builder/spi-builder-workspace/Sources/ColorWellKit/Views/Cocoa/CWColorWellBaseControl.swift:113:29: warning: call to main actor-isolated instance method 'detach' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
111 | // detaching isn't strictly necessary, but we want to ensure the
112 | // immediate removal of the box that holds the reference
113 | NSColorPanel.shared.detach(self)
| `- warning: call to main actor-isolated instance method 'detach' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
114 | }
115 |
/Users/admin/builder/spi-builder-workspace/Sources/ColorWellKit/Utilities/Extensions.swift:242:10: note: calls to instance method 'detach' from outside of its actor context are implicitly asynchronous
240 | /// Removes the specified object from the color panel's list of attached
241 | /// objects.
242 | func detach(_ object: AnyObject) {
| |- note: calls to instance method 'detach' from outside of its actor context are implicitly asynchronous
| `- note: main actor isolation inferred from inheritance from class 'NSPanel'
243 | attachedObjects.removeAll { $0 === object }
244 | }
/Users/admin/builder/spi-builder-workspace/Sources/ColorWellKit/Views/Cocoa/CWColorWellBaseControl.swift:113:22: 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
111 | // detaching isn't strictly necessary, but we want to ensure the
112 | // immediate removal of the box that holds the reference
113 | NSColorPanel.shared.detach(self)
| `- 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
114 | }
115 |
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSColorPanel.h:46:51: note: class property declared here
44 | @interface NSColorPanel : NSPanel
45 |
46 | @property (class, readonly, strong) NSColorPanel *sharedColorPanel;
| `- note: class property declared here
47 | @property (class, readonly) BOOL sharedColorPanelExists;
48 | + (BOOL)dragColor:(NSColor *)color withEvent:(NSEvent *)event fromView:(NSView *)sourceView;
[5/26] Compiling ColorWellKit CWColorWellBaseControl.swift
/Users/admin/builder/spi-builder-workspace/Sources/ColorWellKit/Views/Cocoa/CWColorWellBaseControl.swift:23:20: warning: static property 'defaultStyle' is not concurrency-safe because non-'Sendable' type 'CWColorWell.Style' may have shared mutable state; this is an error in the Swift 6 language mode
21 | static let defaultColor = NSColor(red: 1, green: 1, blue: 1, alpha: 1)
22 |
23 | static let defaultStyle = CWColorWell.Style.default
| |- warning: static property 'defaultStyle' is not concurrency-safe because non-'Sendable' type 'CWColorWell.Style' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'defaultStyle' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
24 |
25 | static let defaultSize = NSSize(width: 38, height: 24)
/Users/admin/builder/spi-builder-workspace/Sources/ColorWellKit/Views/Cocoa/CWColorWell.Style.swift:10:23: note: consider making enum 'Style' conform to the 'Sendable' protocol
8 | extension CWColorWell {
9 | /// Constants that specify the appearance and behavior of a color well.
10 | @objc public enum Style: Int {
| `- note: consider making enum 'Style' conform to the 'Sendable' protocol
11 | /// The color well is displayed as a rectangular control that displays
12 | /// the selected color and shows the system color panel when clicked.
/Users/admin/builder/spi-builder-workspace/Sources/ColorWellKit/Views/Cocoa/CWColorWellBaseControl.swift:57:65: warning: main actor-isolated property 'attachedObjects' can not be referenced from a Sendable closure; this is an error in the Swift 6 language mode
55 | private static let colorPanelObservations: [NSKeyValueObservation] = [
56 | NSColorPanel.shared.observe(\.color) { colorPanel, _ in
57 | for case let colorWell as CWColorWell in colorPanel.attachedObjects {
| `- warning: main actor-isolated property 'attachedObjects' can not be referenced from a Sendable closure; this is an error in the Swift 6 language mode
58 | colorWell.updateColor(colorPanel.color, options: [
59 | .informDelegate,
/Users/admin/builder/spi-builder-workspace/Sources/ColorWellKit/Utilities/Extensions.swift:189:9: note: property declared here
187 |
188 | /// The objects that are currently attached to the color panel.
189 | var attachedObjects: [AnyObject] {
| `- note: property declared here
190 | get {
191 | Self.weakObjectStorage[self]?.compactMap { $0.object } ?? []
/Users/admin/builder/spi-builder-workspace/Sources/ColorWellKit/Views/Cocoa/CWColorWellBaseControl.swift:58:27: warning: call to main actor-isolated instance method 'updateColor(_:options:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
56 | NSColorPanel.shared.observe(\.color) { colorPanel, _ in
57 | for case let colorWell as CWColorWell in colorPanel.attachedObjects {
58 | colorWell.updateColor(colorPanel.color, options: [
| `- warning: call to main actor-isolated instance method 'updateColor(_:options:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
59 | .informDelegate,
60 | .informObservers,
/Users/admin/builder/spi-builder-workspace/Sources/ColorWellKit/Views/Cocoa/CWColorWell.swift:278:19: note: calls to instance method 'updateColor(_:options:)' from outside of its actor context are implicitly asynchronous
276 | // MARK: Overridden Instance Methods
277 |
278 | override func updateColor(_ newColor: NSColor?, options: ColorUpdateOptions) {
| |- note: calls to instance method 'updateColor(_:options:)' from outside of its actor context are implicitly asynchronous
| `- note: main actor isolation inferred from inheritance from class '_CWColorWellBaseControl'
279 | let newColor = newColor ?? .black
280 |
/Users/admin/builder/spi-builder-workspace/Sources/ColorWellKit/Views/Cocoa/CWColorWellBaseControl.swift:58:50: warning: main actor-isolated property 'color' can not be referenced from a Sendable closure; this is an error in the Swift 6 language mode
56 | NSColorPanel.shared.observe(\.color) { colorPanel, _ in
57 | for case let colorWell as CWColorWell in colorPanel.attachedObjects {
58 | colorWell.updateColor(colorPanel.color, options: [
| `- warning: main actor-isolated property 'color' can not be referenced from a Sendable closure; this is an error in the Swift 6 language mode
59 | .informDelegate,
60 | .informObservers,
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSColorPanel.h:56:27: note: property declared here
54 | @property BOOL showsAlpha;
55 | @property NSColorPanelMode mode;
56 | @property (copy) NSColor *color;
| `- note: property declared here
57 | @property (readonly) CGFloat alpha;
58 | - (void)setAction:(nullable SEL)selector;
/Users/admin/builder/spi-builder-workspace/Sources/ColorWellKit/Views/Cocoa/CWColorWellBaseControl.swift:66:28: warning: main actor-isolated property 'isVisible' can not be referenced from a Sendable closure; this is an error in the Swift 6 language mode
64 | },
65 | NSColorPanel.shared.observe(\.isVisible) { colorPanel, _ in
66 | if !colorPanel.isVisible {
| `- warning: main actor-isolated property 'isVisible' can not be referenced from a Sendable closure; this is an error in the Swift 6 language mode
67 | for case let colorWell as CWColorWell in colorPanel.attachedObjects {
68 | colorWell.deactivate()
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSWindow.h:435:45: note: property declared here
433 |
434 | @property (getter=isDocumentEdited) BOOL documentEdited;
435 | @property (getter=isVisible, readonly) BOOL visible;
| `- note: property declared here
436 | @property (getter=isKeyWindow, readonly) BOOL keyWindow;
437 | @property (getter=isMainWindow, readonly) BOOL mainWindow;
/Users/admin/builder/spi-builder-workspace/Sources/ColorWellKit/Views/Cocoa/CWColorWellBaseControl.swift:67:69: warning: main actor-isolated property 'attachedObjects' can not be referenced from a Sendable closure; this is an error in the Swift 6 language mode
65 | NSColorPanel.shared.observe(\.isVisible) { colorPanel, _ in
66 | if !colorPanel.isVisible {
67 | for case let colorWell as CWColorWell in colorPanel.attachedObjects {
| `- warning: main actor-isolated property 'attachedObjects' can not be referenced from a Sendable closure; this is an error in the Swift 6 language mode
68 | colorWell.deactivate()
69 | }
/Users/admin/builder/spi-builder-workspace/Sources/ColorWellKit/Utilities/Extensions.swift:189:9: note: property declared here
187 |
188 | /// The objects that are currently attached to the color panel.
189 | var attachedObjects: [AnyObject] {
| `- note: property declared here
190 | get {
191 | Self.weakObjectStorage[self]?.compactMap { $0.object } ?? []
/Users/admin/builder/spi-builder-workspace/Sources/ColorWellKit/Views/Cocoa/CWColorWellBaseControl.swift:68:31: warning: call to main actor-isolated instance method 'deactivate()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
66 | if !colorPanel.isVisible {
67 | for case let colorWell as CWColorWell in colorPanel.attachedObjects {
68 | colorWell.deactivate()
| `- warning: call to main actor-isolated instance method 'deactivate()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
69 | }
70 | }
/Users/admin/builder/spi-builder-workspace/Sources/ColorWellKit/Views/Cocoa/CWColorWell.swift:213:17: note: calls to instance method 'deactivate()' from outside of its actor context are implicitly asynchronous
211 | /// Until the color well is activated again, changes to the color panel will not
212 | /// affect the color well's state.
213 | public func deactivate() {
| |- note: calls to instance method 'deactivate()' from outside of its actor context are implicitly asynchronous
| `- note: main actor isolation inferred from inheritance from class '_CWColorWellBaseControl'
214 | withExclusivityLock(exclusivity.state) { isActive = false }
215 | }
/Users/admin/builder/spi-builder-workspace/Sources/ColorWellKit/Views/Cocoa/CWColorWellBaseControl.swift:80:24: warning: static property 'storage' is not concurrency-safe because non-'Sendable' type 'ObjectAssociation<CWColorWellLayoutView>' may have shared mutable state; this is an error in the Swift 6 language mode
78 | final var layoutView: CWColorWellLayoutView {
79 | enum Context {
80 | static let storage = ObjectAssociation<CWColorWellLayoutView>()
| |- warning: static property 'storage' is not concurrency-safe because non-'Sendable' type 'ObjectAssociation<CWColorWellLayoutView>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'storage' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
81 | }
82 | // force cast is okay here; at this point it should be guaranteed
/Users/admin/builder/spi-builder-workspace/Sources/ColorWellKit/Utilities/ObjectAssociation.swift:30:13: note: generic class 'ObjectAssociation' does not conform to the 'Sendable' protocol
28 | // MARK: - ObjectAssociation
29 |
30 | final class ObjectAssociation<Value> {
| `- note: generic class 'ObjectAssociation' does not conform to the 'Sendable' protocol
31 | private let policy: AssociationPolicy
32 |
/Users/admin/builder/spi-builder-workspace/Sources/ColorWellKit/Views/Cocoa/CWColorWellBaseControl.swift:113:29: warning: call to main actor-isolated instance method 'detach' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
111 | // detaching isn't strictly necessary, but we want to ensure the
112 | // immediate removal of the box that holds the reference
113 | NSColorPanel.shared.detach(self)
| `- warning: call to main actor-isolated instance method 'detach' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
114 | }
115 |
/Users/admin/builder/spi-builder-workspace/Sources/ColorWellKit/Utilities/Extensions.swift:242:10: note: calls to instance method 'detach' from outside of its actor context are implicitly asynchronous
240 | /// Removes the specified object from the color panel's list of attached
241 | /// objects.
242 | func detach(_ object: AnyObject) {
| |- note: calls to instance method 'detach' from outside of its actor context are implicitly asynchronous
| `- note: main actor isolation inferred from inheritance from class 'NSPanel'
243 | attachedObjects.removeAll { $0 === object }
244 | }
/Users/admin/builder/spi-builder-workspace/Sources/ColorWellKit/Views/Cocoa/CWColorWellBaseControl.swift:113:22: 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
111 | // detaching isn't strictly necessary, but we want to ensure the
112 | // immediate removal of the box that holds the reference
113 | NSColorPanel.shared.detach(self)
| `- 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
114 | }
115 |
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSColorPanel.h:46:51: note: class property declared here
44 | @interface NSColorPanel : NSPanel
45 |
46 | @property (class, readonly, strong) NSColorPanel *sharedColorPanel;
| `- note: class property declared here
47 | @property (class, readonly) BOOL sharedColorPanelExists;
48 | + (BOOL)dragColor:(NSColor *)color withEvent:(NSEvent *)event fromView:(NSView *)sourceView;
[6/26] Compiling ColorWellKit ObjectAssociation.swift
/Users/admin/builder/spi-builder-workspace/Sources/ColorWellKit/Utilities/Path.swift:129:36: warning: main actor-isolated class property 'edge' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
119 | }
120 |
121 | static func segmentPath(
| `- note: add '@MainActor' to make static method 'segmentPath(rect:controlSize:segmentType:shouldClose:)' part of global actor 'MainActor'
122 | rect: CGRect,
123 | controlSize: NSControl.ControlSize?,
:
127 | // flatten the opposite edge to join up with the
128 | // segment on the other side
129 | let flatEdge = segmentType.edge?.opposite
| `- warning: main actor-isolated class property 'edge' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
130 | return colorWellPath(
131 | rect: rect,
/Users/admin/builder/spi-builder-workspace/Sources/ColorWellKit/Views/Cocoa/CWColorWellSegment.swift:35:15: note: class property declared here
33 | /// The default value for the base segment class is `nil`, and should
34 | /// be overridden by subclasses.
35 | class var edge: Edge? { nil }
| `- note: class property declared here
36 |
37 | weak var colorWell: CWColorWell?
[7/26] Compiling ColorWellKit Path.swift
/Users/admin/builder/spi-builder-workspace/Sources/ColorWellKit/Utilities/Path.swift:129:36: warning: main actor-isolated class property 'edge' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
119 | }
120 |
121 | static func segmentPath(
| `- note: add '@MainActor' to make static method 'segmentPath(rect:controlSize:segmentType:shouldClose:)' part of global actor 'MainActor'
122 | rect: CGRect,
123 | controlSize: NSControl.ControlSize?,
:
127 | // flatten the opposite edge to join up with the
128 | // segment on the other side
129 | let flatEdge = segmentType.edge?.opposite
| `- warning: main actor-isolated class property 'edge' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
130 | return colorWellPath(
131 | rect: rect,
/Users/admin/builder/spi-builder-workspace/Sources/ColorWellKit/Views/Cocoa/CWColorWellSegment.swift:35:15: note: class property declared here
33 | /// The default value for the base segment class is `nil`, and should
34 | /// be overridden by subclasses.
35 | class var edge: Edge? { nil }
| `- note: class property declared here
36 |
37 | weak var colorWell: CWColorWell?
[8/26] Compiling ColorWellKit CWColorWell.Style.swift
/Users/admin/builder/spi-builder-workspace/Sources/ColorWellKit/Utilities/Path.swift:129:36: warning: main actor-isolated class property 'edge' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
119 | }
120 |
121 | static func segmentPath(
| `- note: add '@MainActor' to make static method 'segmentPath(rect:controlSize:segmentType:shouldClose:)' part of global actor 'MainActor'
122 | rect: CGRect,
123 | controlSize: NSControl.ControlSize?,
:
127 | // flatten the opposite edge to join up with the
128 | // segment on the other side
129 | let flatEdge = segmentType.edge?.opposite
| `- warning: main actor-isolated class property 'edge' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
130 | return colorWellPath(
131 | rect: rect,
/Users/admin/builder/spi-builder-workspace/Sources/ColorWellKit/Views/Cocoa/CWColorWellSegment.swift:35:15: note: class property declared here
33 | /// The default value for the base segment class is `nil`, and should
34 | /// be overridden by subclasses.
35 | class var edge: Edge? { nil }
| `- note: class property declared here
36 |
37 | weak var colorWell: CWColorWell?
[9/26] Compiling ColorWellKit CWColorWellPopover.swift
/Users/admin/builder/spi-builder-workspace/Sources/ColorWellKit/Views/Cocoa/CWColorWellSegment.swift:719:20: warning: static property 'defaultImage' is not concurrency-safe because non-'Sendable' type 'NSImage' may have shared mutable state; this is an error in the Swift 6 language mode
717 | class CWToggleSegment: CWColorWellSegment {
718 | private enum Images {
719 | static let defaultImage: NSImage = {
| |- warning: static property 'defaultImage' is not concurrency-safe because non-'Sendable' type 'NSImage' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'defaultImage' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
720 | // force unwrap is okay here, as the image is an AppKit builtin
721 | // swiftlint:disable:next force_unwrapping
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSImage.h:66:12: note: class 'NSImage' does not conform to the 'Sendable' protocol
64 | __attribute__((objc_subclassing_restricted))
65 | #endif /* NSIMAGE_UNAVAILABLE_MACCATALYST */
66 | @interface NSImage : NSObject
| `- note: class 'NSImage' does not conform to the 'Sendable' protocol
67 |
68 | #pragma mark - Initialization
/Users/admin/builder/spi-builder-workspace/Sources/ColorWellKit/Views/Cocoa/CWColorWellSegment.swift:735:20: warning: static property 'enabledImageForDarkAppearance' is not concurrency-safe because non-'Sendable' type 'NSImage' may have shared mutable state; this is an error in the Swift 6 language mode
733 | }()
734 |
735 | static let enabledImageForDarkAppearance = defaultImage.tinted(to: .white, fraction: 1 / 3)
| |- warning: static property 'enabledImageForDarkAppearance' is not concurrency-safe because non-'Sendable' type 'NSImage' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'enabledImageForDarkAppearance' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
736 |
737 | static let enabledImageForLightAppearance = defaultImage.tinted(to: .black, fraction: 1 / 5)
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSImage.h:66:12: note: class 'NSImage' does not conform to the 'Sendable' protocol
64 | __attribute__((objc_subclassing_restricted))
65 | #endif /* NSIMAGE_UNAVAILABLE_MACCATALYST */
66 | @interface NSImage : NSObject
| `- note: class 'NSImage' does not conform to the 'Sendable' protocol
67 |
68 | #pragma mark - Initialization
/Users/admin/builder/spi-builder-workspace/Sources/ColorWellKit/Views/Cocoa/CWColorWellSegment.swift:737:20: warning: static property 'enabledImageForLightAppearance' is not concurrency-safe because non-'Sendable' type 'NSImage' may have shared mutable state; this is an error in the Swift 6 language mode
735 | static let enabledImageForDarkAppearance = defaultImage.tinted(to: .white, fraction: 1 / 3)
736 |
737 | static let enabledImageForLightAppearance = defaultImage.tinted(to: .black, fraction: 1 / 5)
| |- warning: static property 'enabledImageForLightAppearance' is not concurrency-safe because non-'Sendable' type 'NSImage' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'enabledImageForLightAppearance' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
738 |
739 | static let disabledImageForDarkAppearance = defaultImage.tinted(to: .gray, fraction: 1 / 3).withOpacity(0.5)
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSImage.h:66:12: note: class 'NSImage' does not conform to the 'Sendable' protocol
64 | __attribute__((objc_subclassing_restricted))
65 | #endif /* NSIMAGE_UNAVAILABLE_MACCATALYST */
66 | @interface NSImage : NSObject
| `- note: class 'NSImage' does not conform to the 'Sendable' protocol
67 |
68 | #pragma mark - Initialization
/Users/admin/builder/spi-builder-workspace/Sources/ColorWellKit/Views/Cocoa/CWColorWellSegment.swift:739:20: warning: static property 'disabledImageForDarkAppearance' is not concurrency-safe because non-'Sendable' type 'NSImage' may have shared mutable state; this is an error in the Swift 6 language mode
737 | static let enabledImageForLightAppearance = defaultImage.tinted(to: .black, fraction: 1 / 5)
738 |
739 | static let disabledImageForDarkAppearance = defaultImage.tinted(to: .gray, fraction: 1 / 3).withOpacity(0.5)
| |- warning: static property 'disabledImageForDarkAppearance' is not concurrency-safe because non-'Sendable' type 'NSImage' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'disabledImageForDarkAppearance' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
740 |
741 | static let disabledImageForLightAppearance = defaultImage.tinted(to: .gray, fraction: 1 / 5).withOpacity(0.5)
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSImage.h:66:12: note: class 'NSImage' does not conform to the 'Sendable' protocol
64 | __attribute__((objc_subclassing_restricted))
65 | #endif /* NSIMAGE_UNAVAILABLE_MACCATALYST */
66 | @interface NSImage : NSObject
| `- note: class 'NSImage' does not conform to the 'Sendable' protocol
67 |
68 | #pragma mark - Initialization
/Users/admin/builder/spi-builder-workspace/Sources/ColorWellKit/Views/Cocoa/CWColorWellSegment.swift:741:20: warning: static property 'disabledImageForLightAppearance' is not concurrency-safe because non-'Sendable' type 'NSImage' may have shared mutable state; this is an error in the Swift 6 language mode
739 | static let disabledImageForDarkAppearance = defaultImage.tinted(to: .gray, fraction: 1 / 3).withOpacity(0.5)
740 |
741 | static let disabledImageForLightAppearance = defaultImage.tinted(to: .gray, fraction: 1 / 5).withOpacity(0.5)
| |- warning: static property 'disabledImageForLightAppearance' is not concurrency-safe because non-'Sendable' type 'NSImage' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'disabledImageForLightAppearance' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
742 | }
743 |
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSImage.h:66:12: note: class 'NSImage' does not conform to the 'Sendable' protocol
64 | __attribute__((objc_subclassing_restricted))
65 | #endif /* NSIMAGE_UNAVAILABLE_MACCATALYST */
66 | @interface NSImage : NSObject
| `- note: class 'NSImage' does not conform to the 'Sendable' protocol
67 |
68 | #pragma mark - Initialization
[10/26] Compiling ColorWellKit CWColorWellSegment.swift
/Users/admin/builder/spi-builder-workspace/Sources/ColorWellKit/Views/Cocoa/CWColorWellSegment.swift:719:20: warning: static property 'defaultImage' is not concurrency-safe because non-'Sendable' type 'NSImage' may have shared mutable state; this is an error in the Swift 6 language mode
717 | class CWToggleSegment: CWColorWellSegment {
718 | private enum Images {
719 | static let defaultImage: NSImage = {
| |- warning: static property 'defaultImage' is not concurrency-safe because non-'Sendable' type 'NSImage' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'defaultImage' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
720 | // force unwrap is okay here, as the image is an AppKit builtin
721 | // swiftlint:disable:next force_unwrapping
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSImage.h:66:12: note: class 'NSImage' does not conform to the 'Sendable' protocol
64 | __attribute__((objc_subclassing_restricted))
65 | #endif /* NSIMAGE_UNAVAILABLE_MACCATALYST */
66 | @interface NSImage : NSObject
| `- note: class 'NSImage' does not conform to the 'Sendable' protocol
67 |
68 | #pragma mark - Initialization
/Users/admin/builder/spi-builder-workspace/Sources/ColorWellKit/Views/Cocoa/CWColorWellSegment.swift:735:20: warning: static property 'enabledImageForDarkAppearance' is not concurrency-safe because non-'Sendable' type 'NSImage' may have shared mutable state; this is an error in the Swift 6 language mode
733 | }()
734 |
735 | static let enabledImageForDarkAppearance = defaultImage.tinted(to: .white, fraction: 1 / 3)
| |- warning: static property 'enabledImageForDarkAppearance' is not concurrency-safe because non-'Sendable' type 'NSImage' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'enabledImageForDarkAppearance' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
736 |
737 | static let enabledImageForLightAppearance = defaultImage.tinted(to: .black, fraction: 1 / 5)
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSImage.h:66:12: note: class 'NSImage' does not conform to the 'Sendable' protocol
64 | __attribute__((objc_subclassing_restricted))
65 | #endif /* NSIMAGE_UNAVAILABLE_MACCATALYST */
66 | @interface NSImage : NSObject
| `- note: class 'NSImage' does not conform to the 'Sendable' protocol
67 |
68 | #pragma mark - Initialization
/Users/admin/builder/spi-builder-workspace/Sources/ColorWellKit/Views/Cocoa/CWColorWellSegment.swift:737:20: warning: static property 'enabledImageForLightAppearance' is not concurrency-safe because non-'Sendable' type 'NSImage' may have shared mutable state; this is an error in the Swift 6 language mode
735 | static let enabledImageForDarkAppearance = defaultImage.tinted(to: .white, fraction: 1 / 3)
736 |
737 | static let enabledImageForLightAppearance = defaultImage.tinted(to: .black, fraction: 1 / 5)
| |- warning: static property 'enabledImageForLightAppearance' is not concurrency-safe because non-'Sendable' type 'NSImage' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'enabledImageForLightAppearance' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
738 |
739 | static let disabledImageForDarkAppearance = defaultImage.tinted(to: .gray, fraction: 1 / 3).withOpacity(0.5)
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSImage.h:66:12: note: class 'NSImage' does not conform to the 'Sendable' protocol
64 | __attribute__((objc_subclassing_restricted))
65 | #endif /* NSIMAGE_UNAVAILABLE_MACCATALYST */
66 | @interface NSImage : NSObject
| `- note: class 'NSImage' does not conform to the 'Sendable' protocol
67 |
68 | #pragma mark - Initialization
/Users/admin/builder/spi-builder-workspace/Sources/ColorWellKit/Views/Cocoa/CWColorWellSegment.swift:739:20: warning: static property 'disabledImageForDarkAppearance' is not concurrency-safe because non-'Sendable' type 'NSImage' may have shared mutable state; this is an error in the Swift 6 language mode
737 | static let enabledImageForLightAppearance = defaultImage.tinted(to: .black, fraction: 1 / 5)
738 |
739 | static let disabledImageForDarkAppearance = defaultImage.tinted(to: .gray, fraction: 1 / 3).withOpacity(0.5)
| |- warning: static property 'disabledImageForDarkAppearance' is not concurrency-safe because non-'Sendable' type 'NSImage' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'disabledImageForDarkAppearance' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
740 |
741 | static let disabledImageForLightAppearance = defaultImage.tinted(to: .gray, fraction: 1 / 5).withOpacity(0.5)
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSImage.h:66:12: note: class 'NSImage' does not conform to the 'Sendable' protocol
64 | __attribute__((objc_subclassing_restricted))
65 | #endif /* NSIMAGE_UNAVAILABLE_MACCATALYST */
66 | @interface NSImage : NSObject
| `- note: class 'NSImage' does not conform to the 'Sendable' protocol
67 |
68 | #pragma mark - Initialization
/Users/admin/builder/spi-builder-workspace/Sources/ColorWellKit/Views/Cocoa/CWColorWellSegment.swift:741:20: warning: static property 'disabledImageForLightAppearance' is not concurrency-safe because non-'Sendable' type 'NSImage' may have shared mutable state; this is an error in the Swift 6 language mode
739 | static let disabledImageForDarkAppearance = defaultImage.tinted(to: .gray, fraction: 1 / 3).withOpacity(0.5)
740 |
741 | static let disabledImageForLightAppearance = defaultImage.tinted(to: .gray, fraction: 1 / 5).withOpacity(0.5)
| |- warning: static property 'disabledImageForLightAppearance' is not concurrency-safe because non-'Sendable' type 'NSImage' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'disabledImageForLightAppearance' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
742 | }
743 |
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSImage.h:66:12: note: class 'NSImage' does not conform to the 'Sendable' protocol
64 | __attribute__((objc_subclassing_restricted))
65 | #endif /* NSIMAGE_UNAVAILABLE_MACCATALYST */
66 | @interface NSImage : NSObject
| `- note: class 'NSImage' does not conform to the 'Sendable' protocol
67 |
68 | #pragma mark - Initialization
[11/26] Compiling ColorWellKit EnvironmentValues.swift
/Users/admin/builder/spi-builder-workspace/Sources/ColorWellKit/Views/SwiftUI/EnvironmentValues.swift:11:16: warning: static property 'defaultValue' is not concurrency-safe because non-'Sendable' type '_ColorWellStyleConfiguration' may have shared mutable state; this is an error in the Swift 6 language mode
9 | @available(macOS 10.15, *)
10 | private struct ColorWellStyleConfigurationKey: EnvironmentKey {
11 | static let defaultValue = _ColorWellStyleConfiguration.default
| |- warning: static property 'defaultValue' is not concurrency-safe because non-'Sendable' type '_ColorWellStyleConfiguration' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'defaultValue' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
12 | }
13 |
/Users/admin/builder/spi-builder-workspace/Sources/ColorWellKit/Views/SwiftUI/ColorWellStyle.swift:12:15: note: consider making struct '_ColorWellStyleConfiguration' conform to the 'Sendable' protocol
10 | /// Values that configure a color well's style.
11 | @available(macOS 10.15, *)
12 | public struct _ColorWellStyleConfiguration {
| `- note: consider making struct '_ColorWellStyleConfiguration' conform to the 'Sendable' protocol
13 | /// The underlying style of the color well.
14 | let style: CWColorWell.Style
/Users/admin/builder/spi-builder-workspace/Sources/ColorWellKit/Views/SwiftUI/EnvironmentValues.swift:21:16: warning: static property 'defaultValue' is not concurrency-safe because non-'Sendable' type 'ColorWellSecondaryActionDelegate?' may have shared mutable state; this is an error in the Swift 6 language mode
19 | @available(macOS 10.15, *)
20 | private struct ColorWellSecondaryActionDelegateKey: EnvironmentKey {
21 | static let defaultValue: ColorWellSecondaryActionDelegate? = nil
| |- warning: static property 'defaultValue' is not concurrency-safe because non-'Sendable' type 'ColorWellSecondaryActionDelegate?' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'defaultValue' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
22 | }
23 |
/Users/admin/builder/spi-builder-workspace/Sources/ColorWellKit/Views/SwiftUI/ColorWellSecondaryActionDelegate.swift:8:7: note: class 'ColorWellSecondaryActionDelegate' does not conform to the 'Sendable' protocol
6 | import Foundation
7 |
8 | class ColorWellSecondaryActionDelegate: NSObject {
| `- note: class 'ColorWellSecondaryActionDelegate' does not conform to the 'Sendable' protocol
9 | private let action: () -> Void
10 |
/Users/admin/builder/spi-builder-workspace/Sources/ColorWellKit/Views/SwiftUI/EnvironmentValues.swift:26:16: warning: static property 'defaultValue' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
24 | @available(macOS 10.15, *)
25 | private struct ColorPanelModeConfigurationKey: EnvironmentKey {
26 | static var defaultValue: _ColorPanelModeConfiguration?
| |- warning: static property 'defaultValue' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'defaultValue' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'defaultValue' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
27 | }
28 |
[12/26] Compiling ColorWellKit ViewModifiers.swift
/Users/admin/builder/spi-builder-workspace/Sources/ColorWellKit/Views/SwiftUI/EnvironmentValues.swift:11:16: warning: static property 'defaultValue' is not concurrency-safe because non-'Sendable' type '_ColorWellStyleConfiguration' may have shared mutable state; this is an error in the Swift 6 language mode
9 | @available(macOS 10.15, *)
10 | private struct ColorWellStyleConfigurationKey: EnvironmentKey {
11 | static let defaultValue = _ColorWellStyleConfiguration.default
| |- warning: static property 'defaultValue' is not concurrency-safe because non-'Sendable' type '_ColorWellStyleConfiguration' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'defaultValue' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
12 | }
13 |
/Users/admin/builder/spi-builder-workspace/Sources/ColorWellKit/Views/SwiftUI/ColorWellStyle.swift:12:15: note: consider making struct '_ColorWellStyleConfiguration' conform to the 'Sendable' protocol
10 | /// Values that configure a color well's style.
11 | @available(macOS 10.15, *)
12 | public struct _ColorWellStyleConfiguration {
| `- note: consider making struct '_ColorWellStyleConfiguration' conform to the 'Sendable' protocol
13 | /// The underlying style of the color well.
14 | let style: CWColorWell.Style
/Users/admin/builder/spi-builder-workspace/Sources/ColorWellKit/Views/SwiftUI/EnvironmentValues.swift:21:16: warning: static property 'defaultValue' is not concurrency-safe because non-'Sendable' type 'ColorWellSecondaryActionDelegate?' may have shared mutable state; this is an error in the Swift 6 language mode
19 | @available(macOS 10.15, *)
20 | private struct ColorWellSecondaryActionDelegateKey: EnvironmentKey {
21 | static let defaultValue: ColorWellSecondaryActionDelegate? = nil
| |- warning: static property 'defaultValue' is not concurrency-safe because non-'Sendable' type 'ColorWellSecondaryActionDelegate?' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'defaultValue' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
22 | }
23 |
/Users/admin/builder/spi-builder-workspace/Sources/ColorWellKit/Views/SwiftUI/ColorWellSecondaryActionDelegate.swift:8:7: note: class 'ColorWellSecondaryActionDelegate' does not conform to the 'Sendable' protocol
6 | import Foundation
7 |
8 | class ColorWellSecondaryActionDelegate: NSObject {
| `- note: class 'ColorWellSecondaryActionDelegate' does not conform to the 'Sendable' protocol
9 | private let action: () -> Void
10 |
/Users/admin/builder/spi-builder-workspace/Sources/ColorWellKit/Views/SwiftUI/EnvironmentValues.swift:26:16: warning: static property 'defaultValue' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
24 | @available(macOS 10.15, *)
25 | private struct ColorPanelModeConfigurationKey: EnvironmentKey {
26 | static var defaultValue: _ColorPanelModeConfiguration?
| |- warning: static property 'defaultValue' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'defaultValue' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'defaultValue' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
27 | }
28 |
[13/26] Compiling ColorWellKit ColorWellSecondaryActionDelegate.swift
[14/26] Compiling ColorWellKit ColorWellStyle.swift
[15/26] Compiling ColorWellKit CWColorWellDelegate.swift
/Users/admin/builder/spi-builder-workspace/Sources/ColorWellKit/Views/Cocoa/CWColorWellLayoutView.swift:75:24: warning: call to main actor-isolated instance method 'update()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
73 | self.colorWell = colorWell
74 | self.styleObservation = observe(\.colorWell?.style, options: .initial) { layoutView, _ in
75 | layoutView.update()
| `- warning: call to main actor-isolated instance method 'update()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
76 | }
77 | }
:
134 | /// Updates the layout view according to the color well's
135 | /// current style.
136 | func update() {
| |- note: calls to instance method 'update()' from outside of its actor context are implicitly asynchronous
| `- note: main actor isolation inferred from inheritance from class 'NSGridView'
137 | guard let colorWell else {
138 | return
/Users/admin/builder/spi-builder-workspace/Sources/ColorWellKit/Views/Cocoa/CWColorWellLayoutView.swift:226:13: warning: main actor-isolated property 'superviewConstraints' can not be referenced from a Sendable closure; this is an error in the Swift 6 language mode
45 | private var widthConstantObservation: NSKeyValueObservation?
46 |
47 | private var superviewConstraints = [LayoutAnchorKey: NSLayoutConstraint]() {
| `- note: property declared here
48 | didSet {
49 | for constraint in oldValue.values {
:
224 | return
225 | }
226 | superviewConstraints[widthAnchor.key]?.constant = newValue
| `- warning: main actor-isolated property 'superviewConstraints' can not be referenced from a Sendable closure; this is an error in the Swift 6 language mode
227 | }
228 | }
/Users/admin/builder/spi-builder-workspace/Sources/ColorWellKit/Views/Cocoa/CWColorWellLayoutView.swift:226:34: warning: main actor-isolated property 'widthAnchor' can not be referenced from a Sendable closure; this is an error in the Swift 6 language mode
224 | return
225 | }
226 | superviewConstraints[widthAnchor.key]?.constant = newValue
| `- warning: main actor-isolated property 'widthAnchor' can not be referenced from a Sendable closure; this is an error in the Swift 6 language mode
227 | }
228 | }
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSLayoutConstraint.h:230:49: note: property declared here
228 | @property (readonly, strong) NSLayoutYAxisAnchor *topAnchor API_AVAILABLE(macos(10.11));
229 | @property (readonly, strong) NSLayoutYAxisAnchor *bottomAnchor API_AVAILABLE(macos(10.11));
230 | @property (readonly, strong) NSLayoutDimension *widthAnchor API_AVAILABLE(macos(10.11));
| `- note: property declared here
231 | @property (readonly, strong) NSLayoutDimension *heightAnchor API_AVAILABLE(macos(10.11));
232 | @property (readonly, strong) NSLayoutXAxisAnchor *centerXAnchor API_AVAILABLE(macos(10.11));
[16/26] Compiling ColorWellKit CWColorWellLayoutView.swift
/Users/admin/builder/spi-builder-workspace/Sources/ColorWellKit/Views/Cocoa/CWColorWellLayoutView.swift:75:24: warning: call to main actor-isolated instance method 'update()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
73 | self.colorWell = colorWell
74 | self.styleObservation = observe(\.colorWell?.style, options: .initial) { layoutView, _ in
75 | layoutView.update()
| `- warning: call to main actor-isolated instance method 'update()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
76 | }
77 | }
:
134 | /// Updates the layout view according to the color well's
135 | /// current style.
136 | func update() {
| |- note: calls to instance method 'update()' from outside of its actor context are implicitly asynchronous
| `- note: main actor isolation inferred from inheritance from class 'NSGridView'
137 | guard let colorWell else {
138 | return
/Users/admin/builder/spi-builder-workspace/Sources/ColorWellKit/Views/Cocoa/CWColorWellLayoutView.swift:226:13: warning: main actor-isolated property 'superviewConstraints' can not be referenced from a Sendable closure; this is an error in the Swift 6 language mode
45 | private var widthConstantObservation: NSKeyValueObservation?
46 |
47 | private var superviewConstraints = [LayoutAnchorKey: NSLayoutConstraint]() {
| `- note: property declared here
48 | didSet {
49 | for constraint in oldValue.values {
:
224 | return
225 | }
226 | superviewConstraints[widthAnchor.key]?.constant = newValue
| `- warning: main actor-isolated property 'superviewConstraints' can not be referenced from a Sendable closure; this is an error in the Swift 6 language mode
227 | }
228 | }
/Users/admin/builder/spi-builder-workspace/Sources/ColorWellKit/Views/Cocoa/CWColorWellLayoutView.swift:226:34: warning: main actor-isolated property 'widthAnchor' can not be referenced from a Sendable closure; this is an error in the Swift 6 language mode
224 | return
225 | }
226 | superviewConstraints[widthAnchor.key]?.constant = newValue
| `- warning: main actor-isolated property 'widthAnchor' can not be referenced from a Sendable closure; this is an error in the Swift 6 language mode
227 | }
228 | }
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSLayoutConstraint.h:230:49: note: property declared here
228 | @property (readonly, strong) NSLayoutYAxisAnchor *topAnchor API_AVAILABLE(macos(10.11));
229 | @property (readonly, strong) NSLayoutYAxisAnchor *bottomAnchor API_AVAILABLE(macos(10.11));
230 | @property (readonly, strong) NSLayoutDimension *widthAnchor API_AVAILABLE(macos(10.11));
| `- note: property declared here
231 | @property (readonly, strong) NSLayoutDimension *heightAnchor API_AVAILABLE(macos(10.11));
232 | @property (readonly, strong) NSLayoutXAxisAnchor *centerXAnchor API_AVAILABLE(macos(10.11));
[17/26] Compiling ColorWellKit LocalEventMonitor.swift
[18/26] Compiling ColorWellKit LockedState.swift
[19/26] Compiling ColorWellKit Logging.swift
[20/26] Compiling ColorWellKit ColorWell.swift
/Users/admin/builder/spi-builder-workspace/Sources/ColorWellKit/Views/SwiftUI/ColorWellRepresentable.swift:118:27: warning: main actor-isolated property 'selection' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
115 | }
116 |
117 | func colorWellDidChangeColor(_ colorWell: CWColorWell) {
| `- note: add '@MainActor' to make instance method 'colorWellDidChangeColor' part of global actor 'MainActor'
118 | representable.selection = colorWell.color
| `- warning: main actor-isolated property 'selection' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
119 | }
120 |
:
126 | }
127 |
128 | @Binding var selection: NSColor
| `- note: mutation of this property is only permitted within the actor
129 |
130 | let supportsOpacity: Bool
/Users/admin/builder/spi-builder-workspace/Sources/ColorWellKit/Views/SwiftUI/ColorWellRepresentable.swift:118:49: warning: main actor-isolated property 'color' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
115 | }
116 |
117 | func colorWellDidChangeColor(_ colorWell: CWColorWell) {
| `- note: add '@MainActor' to make instance method 'colorWellDidChangeColor' part of global actor 'MainActor'
118 | representable.selection = colorWell.color
| `- warning: main actor-isolated property 'color' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
119 | }
120 |
/Users/admin/builder/spi-builder-workspace/Sources/ColorWellKit/Views/Cocoa/CWColorWell.swift:114:16: note: property declared here
112 | /// updated to match the new value.
113 | @objc dynamic
114 | public var color: NSColor {
| `- note: property declared here
115 | get {
116 | backingStorage.color
/Users/admin/builder/spi-builder-workspace/Sources/ColorWellKit/Views/SwiftUI/ColorWellRepresentable.swift:122:36: warning: call to main actor-isolated instance method 'isMainAttachedObject' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
119 | }
120 |
121 | func colorWellDidActivate(_ colorWell: CWColorWell) {
| `- note: add '@MainActor' to make instance method 'colorWellDidActivate' part of global actor 'MainActor'
122 | if NSColorPanel.shared.isMainAttachedObject(colorWell) {
| `- warning: call to main actor-isolated instance method 'isMainAttachedObject' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
123 | NSColorPanel.shared.showsAlpha = representable.supportsOpacity
124 | }
/Users/admin/builder/spi-builder-workspace/Sources/ColorWellKit/Utilities/Extensions.swift:228:10: note: calls to instance method 'isMainAttachedObject' from outside of its actor context are implicitly asynchronous
226 | ///
227 | /// The main attached object controls the color of the color panel.
228 | func isMainAttachedObject(_ object: AnyObject) -> Bool {
| |- note: calls to instance method 'isMainAttachedObject' from outside of its actor context are implicitly asynchronous
| `- note: main actor isolation inferred from inheritance from class 'NSPanel'
229 | attachedObjects.first === object
230 | }
/Users/admin/builder/spi-builder-workspace/Sources/ColorWellKit/Views/SwiftUI/ColorWellRepresentable.swift:122:29: 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
119 | }
120 |
121 | func colorWellDidActivate(_ colorWell: CWColorWell) {
| `- note: add '@MainActor' to make instance method 'colorWellDidActivate' part of global actor 'MainActor'
122 | if NSColorPanel.shared.isMainAttachedObject(colorWell) {
| `- 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
123 | NSColorPanel.shared.showsAlpha = representable.supportsOpacity
124 | }
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSColorPanel.h:46:51: note: class property declared here
44 | @interface NSColorPanel : NSPanel
45 |
46 | @property (class, readonly, strong) NSColorPanel *sharedColorPanel;
| `- note: class property declared here
47 | @property (class, readonly) BOOL sharedColorPanelExists;
48 | + (BOOL)dragColor:(NSColor *)color withEvent:(NSEvent *)event fromView:(NSView *)sourceView;
/Users/admin/builder/spi-builder-workspace/Sources/ColorWellKit/Views/SwiftUI/ColorWellRepresentable.swift:123:37: warning: main actor-isolated property 'showsAlpha' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
119 | }
120 |
121 | func colorWellDidActivate(_ colorWell: CWColorWell) {
| `- note: add '@MainActor' to make instance method 'colorWellDidActivate' part of global actor 'MainActor'
122 | if NSColorPanel.shared.isMainAttachedObject(colorWell) {
123 | NSColorPanel.shared.showsAlpha = representable.supportsOpacity
| `- warning: main actor-isolated property 'showsAlpha' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
124 | }
125 | }
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSColorPanel.h:54:16: note: mutation of this property is only permitted within the actor
52 | @property (nullable, strong) NSView *accessoryView;
53 | @property (getter=isContinuous) BOOL continuous;
54 | @property BOOL showsAlpha;
| `- note: mutation of this property is only permitted within the actor
55 | @property NSColorPanelMode mode;
56 | @property (copy) NSColor *color;
/Users/admin/builder/spi-builder-workspace/Sources/ColorWellKit/Views/SwiftUI/ColorWellRepresentable.swift:123:30: warning: main actor-isolated class property 'shared' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
119 | }
120 |
121 | func colorWellDidActivate(_ colorWell: CWColorWell) {
| `- note: add '@MainActor' to make instance method 'colorWellDidActivate' part of global actor 'MainActor'
122 | if NSColorPanel.shared.isMainAttachedObject(colorWell) {
123 | NSColorPanel.shared.showsAlpha = representable.supportsOpacity
| `- warning: main actor-isolated class property 'shared' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
124 | }
125 | }
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSColorPanel.h:46:51: note: mutation of this class property is only permitted within the actor
44 | @interface NSColorPanel : NSPanel
45 |
46 | @property (class, readonly, strong) NSColorPanel *sharedColorPanel;
| `- note: mutation of this class property is only permitted within the actor
47 | @property (class, readonly) BOOL sharedColorPanelExists;
48 | + (BOOL)dragColor:(NSColor *)color withEvent:(NSEvent *)event fromView:(NSView *)sourceView;
[21/26] Compiling ColorWellKit ColorWellRepresentable.swift
/Users/admin/builder/spi-builder-workspace/Sources/ColorWellKit/Views/SwiftUI/ColorWellRepresentable.swift:118:27: warning: main actor-isolated property 'selection' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
115 | }
116 |
117 | func colorWellDidChangeColor(_ colorWell: CWColorWell) {
| `- note: add '@MainActor' to make instance method 'colorWellDidChangeColor' part of global actor 'MainActor'
118 | representable.selection = colorWell.color
| `- warning: main actor-isolated property 'selection' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
119 | }
120 |
:
126 | }
127 |
128 | @Binding var selection: NSColor
| `- note: mutation of this property is only permitted within the actor
129 |
130 | let supportsOpacity: Bool
/Users/admin/builder/spi-builder-workspace/Sources/ColorWellKit/Views/SwiftUI/ColorWellRepresentable.swift:118:49: warning: main actor-isolated property 'color' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
115 | }
116 |
117 | func colorWellDidChangeColor(_ colorWell: CWColorWell) {
| `- note: add '@MainActor' to make instance method 'colorWellDidChangeColor' part of global actor 'MainActor'
118 | representable.selection = colorWell.color
| `- warning: main actor-isolated property 'color' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
119 | }
120 |
/Users/admin/builder/spi-builder-workspace/Sources/ColorWellKit/Views/Cocoa/CWColorWell.swift:114:16: note: property declared here
112 | /// updated to match the new value.
113 | @objc dynamic
114 | public var color: NSColor {
| `- note: property declared here
115 | get {
116 | backingStorage.color
/Users/admin/builder/spi-builder-workspace/Sources/ColorWellKit/Views/SwiftUI/ColorWellRepresentable.swift:122:36: warning: call to main actor-isolated instance method 'isMainAttachedObject' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
119 | }
120 |
121 | func colorWellDidActivate(_ colorWell: CWColorWell) {
| `- note: add '@MainActor' to make instance method 'colorWellDidActivate' part of global actor 'MainActor'
122 | if NSColorPanel.shared.isMainAttachedObject(colorWell) {
| `- warning: call to main actor-isolated instance method 'isMainAttachedObject' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
123 | NSColorPanel.shared.showsAlpha = representable.supportsOpacity
124 | }
/Users/admin/builder/spi-builder-workspace/Sources/ColorWellKit/Utilities/Extensions.swift:228:10: note: calls to instance method 'isMainAttachedObject' from outside of its actor context are implicitly asynchronous
226 | ///
227 | /// The main attached object controls the color of the color panel.
228 | func isMainAttachedObject(_ object: AnyObject) -> Bool {
| |- note: calls to instance method 'isMainAttachedObject' from outside of its actor context are implicitly asynchronous
| `- note: main actor isolation inferred from inheritance from class 'NSPanel'
229 | attachedObjects.first === object
230 | }
/Users/admin/builder/spi-builder-workspace/Sources/ColorWellKit/Views/SwiftUI/ColorWellRepresentable.swift:122:29: 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
119 | }
120 |
121 | func colorWellDidActivate(_ colorWell: CWColorWell) {
| `- note: add '@MainActor' to make instance method 'colorWellDidActivate' part of global actor 'MainActor'
122 | if NSColorPanel.shared.isMainAttachedObject(colorWell) {
| `- 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
123 | NSColorPanel.shared.showsAlpha = representable.supportsOpacity
124 | }
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSColorPanel.h:46:51: note: class property declared here
44 | @interface NSColorPanel : NSPanel
45 |
46 | @property (class, readonly, strong) NSColorPanel *sharedColorPanel;
| `- note: class property declared here
47 | @property (class, readonly) BOOL sharedColorPanelExists;
48 | + (BOOL)dragColor:(NSColor *)color withEvent:(NSEvent *)event fromView:(NSView *)sourceView;
/Users/admin/builder/spi-builder-workspace/Sources/ColorWellKit/Views/SwiftUI/ColorWellRepresentable.swift:123:37: warning: main actor-isolated property 'showsAlpha' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
119 | }
120 |
121 | func colorWellDidActivate(_ colorWell: CWColorWell) {
| `- note: add '@MainActor' to make instance method 'colorWellDidActivate' part of global actor 'MainActor'
122 | if NSColorPanel.shared.isMainAttachedObject(colorWell) {
123 | NSColorPanel.shared.showsAlpha = representable.supportsOpacity
| `- warning: main actor-isolated property 'showsAlpha' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
124 | }
125 | }
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSColorPanel.h:54:16: note: mutation of this property is only permitted within the actor
52 | @property (nullable, strong) NSView *accessoryView;
53 | @property (getter=isContinuous) BOOL continuous;
54 | @property BOOL showsAlpha;
| `- note: mutation of this property is only permitted within the actor
55 | @property NSColorPanelMode mode;
56 | @property (copy) NSColor *color;
/Users/admin/builder/spi-builder-workspace/Sources/ColorWellKit/Views/SwiftUI/ColorWellRepresentable.swift:123:30: warning: main actor-isolated class property 'shared' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
119 | }
120 |
121 | func colorWellDidActivate(_ colorWell: CWColorWell) {
| `- note: add '@MainActor' to make instance method 'colorWellDidActivate' part of global actor 'MainActor'
122 | if NSColorPanel.shared.isMainAttachedObject(colorWell) {
123 | NSColorPanel.shared.showsAlpha = representable.supportsOpacity
| `- warning: main actor-isolated class property 'shared' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
124 | }
125 | }
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSColorPanel.h:46:51: note: mutation of this class property is only permitted within the actor
44 | @interface NSColorPanel : NSPanel
45 |
46 | @property (class, readonly, strong) NSColorPanel *sharedColorPanel;
| `- note: mutation of this class property is only permitted within the actor
47 | @property (class, readonly) BOOL sharedColorPanelExists;
48 | + (BOOL)dragColor:(NSColor *)color withEvent:(NSEvent *)event fromView:(NSView *)sourceView;
[22/26] Compiling ColorWellKit Backports.swift
[23/26] Compiling ColorWellKit ColorPanelMode.swift
[24/26] Compiling ColorWellKit ColorHelpers.swift
[25/26] Compiling ColorWellKit Extensions.swift
[26/26] Compiling ColorWellKit Geometry.swift
Build complete! (8.99s)
Build complete.
{
"dependencies" : [
],
"manifest_display_name" : "ColorWellKit",
"name" : "ColorWellKit",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
{
"name" : "macos",
"version" : "10.13"
}
],
"products" : [
{
"name" : "ColorWellKit",
"targets" : [
"ColorWellKit"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "ColorWellKitTests",
"module_type" : "SwiftTarget",
"name" : "ColorWellKitTests",
"path" : "Tests/ColorWellKitTests",
"sources" : [
"ColorWellKitTests.swift"
],
"target_dependencies" : [
"ColorWellKit"
],
"type" : "test"
},
{
"c99name" : "ColorWellKit",
"module_type" : "SwiftTarget",
"name" : "ColorWellKit",
"path" : "Sources/ColorWellKit",
"product_memberships" : [
"ColorWellKit"
],
"sources" : [
"Utilities/ColorHelpers.swift",
"Utilities/Extensions.swift",
"Utilities/Geometry.swift",
"Utilities/LocalEventMonitor.swift",
"Utilities/LockedState.swift",
"Utilities/Logging.swift",
"Utilities/ObjectAssociation.swift",
"Utilities/Path.swift",
"Views/Cocoa/CWColorWell.Style.swift",
"Views/Cocoa/CWColorWell.swift",
"Views/Cocoa/CWColorWellBaseControl.swift",
"Views/Cocoa/CWColorWellDelegate.swift",
"Views/Cocoa/CWColorWellLayoutView.swift",
"Views/Cocoa/CWColorWellPopover.swift",
"Views/Cocoa/CWColorWellSegment.swift",
"Views/SwiftUI/Backports.swift",
"Views/SwiftUI/ColorPanelMode.swift",
"Views/SwiftUI/ColorWell.swift",
"Views/SwiftUI/ColorWellRepresentable.swift",
"Views/SwiftUI/ColorWellSecondaryActionDelegate.swift",
"Views/SwiftUI/ColorWellStyle.swift",
"Views/SwiftUI/EnvironmentValues.swift",
"Views/SwiftUI/ViewModifiers.swift"
],
"type" : "library"
}
],
"tools_version" : "5.9"
}
✅ Doc result (pending) reported
========================================
GenerateDocs
========================================
Generating docs at path: $PWD/.docs/jordanbaird/colorwellkit/main
Repository: jordanbaird/ColorWellKit
Swift version used: 6.1
Target: ColorWellKit
Extracting symbol information for 'ColorWellKit'...
Finished extracting symbol information for 'ColorWellKit'. (5.29s)
Building documentation for 'ColorWellKit'...
Finished building documentation for 'ColorWellKit' (0.66s)
Generated documentation archive at:
/Users/admin/builder/spi-builder-workspace/.docs/jordanbaird/colorwellkit/main
Fetching https://github.com/swiftlang/swift-docc-plugin from cache
Fetched https://github.com/swiftlang/swift-docc-plugin from cache (0.44s)
Computing version for https://github.com/swiftlang/swift-docc-plugin
Computed https://github.com/swiftlang/swift-docc-plugin at 1.4.3 (1.15s)
Fetching https://github.com/swiftlang/swift-docc-symbolkit from cache
Fetched https://github.com/swiftlang/swift-docc-symbolkit from cache (0.73s)
Computing version for https://github.com/swiftlang/swift-docc-symbolkit
Computed https://github.com/swiftlang/swift-docc-symbolkit at 1.0.0 (1.36s)
Creating working copy for https://github.com/swiftlang/swift-docc-symbolkit
Working copy of https://github.com/swiftlang/swift-docc-symbolkit resolved at 1.0.0
Creating working copy for https://github.com/swiftlang/swift-docc-plugin
Working copy of https://github.com/swiftlang/swift-docc-plugin resolved at 1.4.3
Building for debugging...
[0/8] Write sources
[2/8] Write snippet-extract-tool-entitlement.plist
[3/8] Write sources
[4/8] Write swift-version-2F0A5646E1D333AE.txt
[6/53] Emitting module SymbolKit
[7/57] Compiling SymbolKit Identifier.swift
[8/57] Compiling SymbolKit KindIdentifier.swift
[9/57] Compiling SymbolKit Location.swift
[10/57] Compiling SymbolKit Mutability.swift
[11/57] Compiling SymbolKit Names.swift
[12/57] Compiling SymbolKit SPI.swift
[13/57] Compiling SymbolKit Snippet.swift
[14/57] Compiling SymbolKit Extension.swift
[15/57] Compiling SymbolKit Mixin+Equals.swift
[16/57] Compiling SymbolKit Mixin+Hash.swift
[17/57] Compiling SymbolKit Mixin.swift
[18/57] Compiling SymbolKit LineList.swift
[19/57] Compiling SymbolKit Position.swift
[20/57] Compiling SymbolKit DeclarationFragments.swift
[21/57] Compiling SymbolKit Fragment.swift
[22/57] Compiling SymbolKit FragmentKind.swift
[23/57] Compiling SymbolKit FunctionParameter.swift
[24/57] Compiling SymbolKit FunctionSignature.swift
[25/57] Compiling SymbolKit SourceRange.swift
[26/57] Compiling SymbolKit Metadata.swift
[27/57] Compiling SymbolKit Module.swift
[28/57] Compiling SymbolKit OperatingSystem.swift
[29/57] Compiling SymbolKit Platform.swift
[30/57] Compiling SymbolKit Relationship.swift
[31/57] Compiling SymbolKit RelationshipKind.swift
[32/57] Compiling SymbolKit SourceOrigin.swift
[33/57] Compiling SymbolKit GenericConstraints.swift
[34/57] Compiling SymbolKit Swift.swift
[35/57] Compiling SymbolKit GenericConstraint.swift
[36/57] Compiling SymbolKit GenericParameter.swift
[37/57] Compiling SymbolKit Generics.swift
[38/57] Compiling SymbolKit Namespace.swift
[39/57] Compiling SymbolKit Symbol.swift
[40/57] Compiling SymbolKit SymbolKind.swift
[41/57] Compiling SymbolKit SymbolGraph.swift
[42/57] Compiling SymbolKit GraphCollector.swift
[43/57] Compiling SymbolKit SemanticVersion.swift
[44/57] Compiling SymbolKit AccessControl.swift
[45/57] Compiling SymbolKit Availability.swift
[46/57] Compiling SymbolKit AvailabilityItem.swift
[47/57] Compiling SymbolKit Domain.swift
[48/57] Compiling SymbolKit UnifiedSymbol+Encodable.swift
[49/57] Compiling SymbolKit UnifiedSymbol.swift
[50/57] Compiling SymbolKit UnifiedSymbolGraph+Encodable.swift
[51/57] Compiling SymbolKit UnifiedSymbolGraph.swift
[52/57] Emitting module Snippets
[53/57] Compiling Snippets Snippet.swift
[54/57] Compiling Snippets SnippetParser.swift
[55/61] Compiling snippet_extract URL+Status.swift
[56/61] Compiling snippet_extract SymbolGraph+Snippet.swift
[57/61] Emitting module snippet_extract
[58/61] Compiling snippet_extract SnippetBuildCommand.swift
[58/61] Write Objects.LinkFileList
[59/61] Linking snippet-extract-tool
[60/61] Applying snippet-extract-tool
Build of product 'snippet-extract' complete! (4.02s)
Building for debugging...
[0/1] Write swift-version-2F0A5646E1D333AE.txt
[2/23] Compiling ColorWellKit LocalEventMonitor.swift
[3/23] Compiling ColorWellKit LockedState.swift
[4/23] Compiling ColorWellKit Logging.swift
[5/25] Emitting module ColorWellKit
[6/25] Compiling ColorWellKit EnvironmentValues.swift
[7/25] Compiling ColorWellKit ViewModifiers.swift
[8/25] Compiling ColorWellKit CWColorWell.swift
[9/25] Compiling ColorWellKit CWColorWellBaseControl.swift
[10/25] Compiling ColorWellKit ObjectAssociation.swift
[11/25] Compiling ColorWellKit Path.swift
[12/25] Compiling ColorWellKit CWColorWell.Style.swift
[13/25] Compiling ColorWellKit ColorWellSecondaryActionDelegate.swift
[14/25] Compiling ColorWellKit ColorWellStyle.swift
[15/25] Compiling ColorWellKit CWColorWellDelegate.swift
[16/25] Compiling ColorWellKit CWColorWellLayoutView.swift
[17/25] Compiling ColorWellKit ColorWell.swift
[18/25] Compiling ColorWellKit ColorWellRepresentable.swift
[19/25] Compiling ColorWellKit Backports.swift
[20/25] Compiling ColorWellKit ColorPanelMode.swift
[21/25] Compiling ColorWellKit ColorHelpers.swift
[22/25] Compiling ColorWellKit Extensions.swift
[23/25] Compiling ColorWellKit Geometry.swift
[24/25] Compiling ColorWellKit CWColorWellPopover.swift
[25/25] Compiling ColorWellKit CWColorWellSegment.swift
Build of target: 'ColorWellKit' complete! (1.25s)
1697
13 /Users/admin/builder/spi-builder-workspace/.docs/jordanbaird/colorwellkit/main
✅ Doc result (uploading) reported
========================================
SyncDocs
========================================
Doc archive source directory: $PWD/.docs/jordanbaird/colorwellkit/main
File count: 1697
Doc size: 13.0MB
Preparing doc bundle ...
Uploading prod-jordanbaird-colorwellkit-main-d686b1ea.zip to s3://spi-docs-inbox/prod-jordanbaird-colorwellkit-main-d686b1ea.zip
Copying... [10%]
Copying... [21%]
Copying... [31%]
Copying... [41%]
Copying... [52%]
Copying... [60%]
Copying... [70%]
Copying... [81%]
Copying... [91%]
Copying... [100%]
Done.