Build Information
Successful build of ColorWell, reference main (5063ae
), with Swift 6.1 for macOS (SPM) on 27 Apr 2025 13:51:11 UTC.
Swift 6 data race errors: 22
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/ColorWell.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/jordanbaird/ColorWell
* branch main -> FETCH_HEAD
* [new branch] main -> origin/main
HEAD is now at 5063ae4 Add deprecation notice to README
Cloned https://github.com/jordanbaird/ColorWell.git
Revision (git rev-parse @):
5063ae4afcf6a2c417e7631eec032bca844fa936
SPI manifest file found: $PWD/.spi.yml
SUCCESS checkout https://github.com/jordanbaird/ColorWell.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": "colorwell",
"name": "ColorWell",
"url": "https://github.com/jordanbaird/ColorWell.git",
"version": "unspecified",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/ColorWell",
"dependencies": [
]
}
]
}
Fetching https://github.com/jordanbaird/ColorWell.git
[1/2365] Fetching colorwell
Fetched https://github.com/jordanbaird/ColorWell.git from cache (1.05s)
Creating working copy for https://github.com/jordanbaird/ColorWell.git
Working copy of https://github.com/jordanbaird/ColorWell.git resolved at main (5063ae4)
warning: '.resolve-product-dependencies': dependency 'colorwell' 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/ColorWell.git
https://github.com/jordanbaird/ColorWell.git
{
"dependencies" : [
],
"manifest_display_name" : "ColorWell",
"name" : "ColorWell",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
{
"name" : "macos",
"version" : "10.13"
}
],
"products" : [
{
"name" : "ColorWell",
"targets" : [
"ColorWell"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "ColorWellTests",
"module_type" : "SwiftTarget",
"name" : "ColorWellTests",
"path" : "Tests/ColorWellTests",
"sources" : [
"ColorWellTests.swift"
],
"target_dependencies" : [
"ColorWell"
],
"type" : "test"
},
{
"c99name" : "ColorWell",
"module_type" : "SwiftTarget",
"name" : "ColorWell",
"path" : "Sources/ColorWell",
"product_memberships" : [
"ColorWell"
],
"sources" : [
"Utilities/ActionButton.swift",
"Utilities/Cache.swift",
"Utilities/ColorComponents.swift",
"Utilities/ConstructablePath.swift",
"Utilities/Deprecated.swift",
"Utilities/DrawingStyle.swift",
"Utilities/Extensions.swift",
"Utilities/Storage.swift",
"Views/Cocoa/ColorWell.swift",
"Views/Cocoa/ColorWellBaseView.swift",
"Views/Cocoa/ColorWellLayoutView.swift",
"Views/Cocoa/Popover/ColorSwatch.swift",
"Views/Cocoa/Popover/ColorWellPopover.swift",
"Views/Cocoa/Popover/ColorWellPopoverContainerView.swift",
"Views/Cocoa/Popover/ColorWellPopoverContext.swift",
"Views/Cocoa/Popover/ColorWellPopoverLayoutView.swift",
"Views/Cocoa/Popover/ColorWellPopoverSwatchView.swift",
"Views/Cocoa/Popover/ColorWellPopoverViewController.swift",
"Views/Cocoa/Segments/ColorWellBorderedSwatchSegment.swift",
"Views/Cocoa/Segments/ColorWellPullDownSwatchSegment.swift",
"Views/Cocoa/Segments/ColorWellSegment.swift",
"Views/Cocoa/Segments/ColorWellSwatchSegment.swift",
"Views/Cocoa/Segments/ColorWellToggleSegment.swift",
"Views/Cocoa/Style.swift",
"Views/SwiftUI/ColorWellConfiguration.swift",
"Views/SwiftUI/ColorWellRepresentable.swift",
"Views/SwiftUI/ColorWellStyle.swift",
"Views/SwiftUI/ColorWellView.swift",
"Views/SwiftUI/EnvironmentValues.swift",
"Views/SwiftUI/ViewModifiers.swift"
],
"type" : "library"
}
],
"tools_version" : "5.7"
}
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/30] Emitting module ColorWell
/Users/admin/builder/spi-builder-workspace/Sources/ColorWell/Views/Cocoa/ColorWell.swift:100:24: warning: static property 'storage' is not concurrency-safe because non-'Sendable' type 'Storage<ColorWellLayoutView>' may have shared mutable state; this is an error in the Swift 6 language mode
98 | var layoutView: ColorWellLayoutView {
99 | enum LocalCache {
100 | static let storage = Storage<ColorWellLayoutView>()
| |- warning: static property 'storage' is not concurrency-safe because non-'Sendable' type 'Storage<ColorWellLayoutView>' 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
101 | }
102 |
/Users/admin/builder/spi-builder-workspace/Sources/ColorWell/Utilities/Storage.swift:13:7: note: generic class 'Storage' does not conform to the 'Sendable' protocol
11 | /// The object associations managed by instances of this type maintain
12 | /// strong references to their objects, and are made non-atomically.
13 | class Storage<Value> {
| `- note: generic class 'Storage' does not conform to the 'Sendable' protocol
14 | private var key: UnsafeRawPointer {
15 | UnsafeRawPointer(Unmanaged.passUnretained(self).toOpaque())
/Users/admin/builder/spi-builder-workspace/Sources/ColorWell/Views/Cocoa/ColorWell.swift:402:24: warning: static property 'storage' is not concurrency-safe because non-'Sendable' type 'Storage<Set<NSKeyValueObservation>>' may have shared mutable state; this is an error in the Swift 6 language mode
400 | private func configureColorPanelObservations(remove: Bool, setUp: Bool) {
401 | enum LocalCache {
402 | static let storage = Storage<Set<NSKeyValueObservation>>()
| |- warning: static property 'storage' is not concurrency-safe because non-'Sendable' type 'Storage<Set<NSKeyValueObservation>>' 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
403 | }
404 |
/Users/admin/builder/spi-builder-workspace/Sources/ColorWell/Utilities/Storage.swift:13:7: note: generic class 'Storage' does not conform to the 'Sendable' protocol
11 | /// The object associations managed by instances of this type maintain
12 | /// strong references to their objects, and are made non-atomically.
13 | class Storage<Value> {
| `- note: generic class 'Storage' does not conform to the 'Sendable' protocol
14 | private var key: UnsafeRawPointer {
15 | UnsafeRawPointer(Unmanaged.passUnretained(self).toOpaque())
/Users/admin/builder/spi-builder-workspace/Sources/ColorWell/Views/Cocoa/Popover/ColorSwatch.swift:131:24: warning: static property 'storage' is not concurrency-safe because non-'Sendable' type 'Storage<CALayer?>' may have shared mutable state; this is an error in the Swift 6 language mode
129 | private func updateBezel() {
130 | enum LocalCache {
131 | static let storage = Storage<CALayer?>()
| |- warning: static property 'storage' is not concurrency-safe because non-'Sendable' type 'Storage<CALayer?>' 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
132 | }
133 |
/Users/admin/builder/spi-builder-workspace/Sources/ColorWell/Utilities/Storage.swift:13:7: note: generic class 'Storage' does not conform to the 'Sendable' protocol
11 | /// The object associations managed by instances of this type maintain
12 | /// strong references to their objects, and are made non-atomically.
13 | class Storage<Value> {
| `- note: generic class 'Storage' does not conform to the 'Sendable' protocol
14 | private var key: UnsafeRawPointer {
15 | UnsafeRawPointer(Unmanaged.passUnretained(self).toOpaque())
/Users/admin/builder/spi-builder-workspace/Sources/ColorWell/Views/Cocoa/Popover/ColorWellPopoverContext.swift:12:27: warning: main actor-isolated default value in a nonisolated context; this is an error in the Swift 6 language mode
10 | private(set) weak var colorWell: ColorWell?
11 |
12 | private(set) lazy var popover = ColorWellPopover(context: self)
| `- warning: main actor-isolated default value in a nonisolated context; this is an error in the Swift 6 language mode
13 | private(set) lazy var popoverViewController = ColorWellPopoverViewController(context: self)
14 |
/Users/admin/builder/spi-builder-workspace/Sources/ColorWell/Views/Cocoa/Popover/ColorWellPopoverContext.swift:13:27: warning: main actor-isolated default value in a nonisolated context; this is an error in the Swift 6 language mode
11 |
12 | private(set) lazy var popover = ColorWellPopover(context: self)
13 | private(set) lazy var popoverViewController = ColorWellPopoverViewController(context: self)
| `- warning: main actor-isolated default value in a nonisolated context; this is an error in the Swift 6 language mode
14 |
15 | private(set) lazy var containerView = ColorWellPopoverContainerView(context: self)
/Users/admin/builder/spi-builder-workspace/Sources/ColorWell/Views/Cocoa/Popover/ColorWellPopoverContext.swift:15:27: warning: main actor-isolated default value in a nonisolated context; this is an error in the Swift 6 language mode
13 | private(set) lazy var popoverViewController = ColorWellPopoverViewController(context: self)
14 |
15 | private(set) lazy var containerView = ColorWellPopoverContainerView(context: self)
| `- warning: main actor-isolated default value in a nonisolated context; this is an error in the Swift 6 language mode
16 | private(set) lazy var layoutView = ColorWellPopoverLayoutView(context: self)
17 | private(set) lazy var swatchView = ColorWellPopoverSwatchView(context: self)
/Users/admin/builder/spi-builder-workspace/Sources/ColorWell/Views/Cocoa/Popover/ColorWellPopoverContext.swift:16:27: warning: main actor-isolated default value in a nonisolated context; this is an error in the Swift 6 language mode
14 |
15 | private(set) lazy var containerView = ColorWellPopoverContainerView(context: self)
16 | private(set) lazy var layoutView = ColorWellPopoverLayoutView(context: self)
| `- warning: main actor-isolated default value in a nonisolated context; this is an error in the Swift 6 language mode
17 | private(set) lazy var swatchView = ColorWellPopoverSwatchView(context: self)
18 |
/Users/admin/builder/spi-builder-workspace/Sources/ColorWell/Views/Cocoa/Popover/ColorWellPopoverContext.swift:17:27: warning: main actor-isolated default value in a nonisolated context; this is an error in the Swift 6 language mode
15 | private(set) lazy var containerView = ColorWellPopoverContainerView(context: self)
16 | private(set) lazy var layoutView = ColorWellPopoverLayoutView(context: self)
17 | private(set) lazy var swatchView = ColorWellPopoverSwatchView(context: self)
| `- warning: main actor-isolated default value in a nonisolated context; this is an error in the Swift 6 language mode
18 |
19 | private(set) lazy var swatchCount = colorWell?.swatchColors.count ?? 0
/Users/admin/builder/spi-builder-workspace/Sources/ColorWell/Views/Cocoa/Popover/ColorWellPopoverContext.swift:19:27: warning: main actor-isolated default value in a nonisolated context; this is an error in the Swift 6 language mode
17 | private(set) lazy var swatchView = ColorWellPopoverSwatchView(context: self)
18 |
19 | private(set) lazy var swatchCount = colorWell?.swatchColors.count ?? 0
| `- warning: main actor-isolated default value in a nonisolated context; this is an error in the Swift 6 language mode
20 | private(set) lazy var maxItemsPerRow = max(4, Int(Double(swatchCount).squareRoot().rounded(.up)))
21 | private(set) lazy var rowCount = Int((Double(swatchCount) / Double(maxItemsPerRow)).rounded(.up))
/Users/admin/builder/spi-builder-workspace/Sources/ColorWell/Views/Cocoa/Popover/ColorWellPopoverContext.swift:23:27: warning: main actor-isolated default value in a nonisolated context; this is an error in the Swift 6 language mode
21 | private(set) lazy var rowCount = Int((Double(swatchCount) / Double(maxItemsPerRow)).rounded(.up))
22 |
23 | private(set) lazy var swatches: [ColorSwatch] = {
| `- warning: main actor-isolated default value in a nonisolated context; this is an error in the Swift 6 language mode
24 | guard let colorWell else {
25 | return []
/Users/admin/builder/spi-builder-workspace/Sources/ColorWell/Views/Cocoa/Segments/ColorWellPullDownSwatchSegment.swift:224:24: warning: static property 'storage' is not concurrency-safe because non-'Sendable' type 'Storage<NSTrackingArea>' may have shared mutable state; this is an error in the Swift 6 language mode
222 | override func updateTrackingAreas() {
223 | enum LocalCache {
224 | static let storage = Storage<NSTrackingArea>()
| |- warning: static property 'storage' is not concurrency-safe because non-'Sendable' type 'Storage<NSTrackingArea>' 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
225 | }
226 |
/Users/admin/builder/spi-builder-workspace/Sources/ColorWell/Utilities/Storage.swift:13:7: note: generic class 'Storage' does not conform to the 'Sendable' protocol
11 | /// The object associations managed by instances of this type maintain
12 | /// strong references to their objects, and are made non-atomically.
13 | class Storage<Value> {
| `- note: generic class 'Storage' does not conform to the 'Sendable' protocol
14 | private var key: UnsafeRawPointer {
15 | UnsafeRawPointer(Unmanaged.passUnretained(self).toOpaque())
/Users/admin/builder/spi-builder-workspace/Sources/ColorWell/Views/Cocoa/Segments/ColorWellToggleSegment.swift:45:36: 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
43 | cachedImageLayer.updateConstructor { id in
44 | enum LocalCache {
45 | private 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
46 | // Force unwrap is okay here, as the image is an AppKit builtin.
47 | // 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/ColorWell/Views/Cocoa/Segments/ColorWellToggleSegment.swift:52:36: warning: static property 'enabledTintedForDarkAppearance' is not concurrency-safe because non-'Sendable' type 'Any' may have shared mutable state; this is an error in the Swift 6 language mode
50 | }()
51 |
52 | private static let enabledTintedForDarkAppearance: Any = {
| |- warning: static property 'enabledTintedForDarkAppearance' is not concurrency-safe because non-'Sendable' type 'Any' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'enabledTintedForDarkAppearance' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
53 | let image = defaultImage.tinted(to: .white, amount: 0.33)
54 | let scale = image.recommendedLayerContentsScale(0.0)
/Users/admin/builder/spi-builder-workspace/Sources/ColorWell/Views/Cocoa/Segments/ColorWellToggleSegment.swift:58:36: warning: static property 'enabledTintedForLightAppearance' is not concurrency-safe because non-'Sendable' type 'Any' may have shared mutable state; this is an error in the Swift 6 language mode
56 | }()
57 |
58 | private static let enabledTintedForLightAppearance: Any = {
| |- warning: static property 'enabledTintedForLightAppearance' is not concurrency-safe because non-'Sendable' type 'Any' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'enabledTintedForLightAppearance' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
59 | let image = defaultImage.tinted(to: .black, amount: 0.20)
60 | let scale = image.recommendedLayerContentsScale(0.0)
/Users/admin/builder/spi-builder-workspace/Sources/ColorWell/Views/Cocoa/Segments/ColorWellToggleSegment.swift:64:36: warning: static property 'disabledTintedForDarkAppearance' is not concurrency-safe because non-'Sendable' type 'Any' may have shared mutable state; this is an error in the Swift 6 language mode
62 | }()
63 |
64 | private static let disabledTintedForDarkAppearance: Any = {
| |- warning: static property 'disabledTintedForDarkAppearance' is not concurrency-safe because non-'Sendable' type 'Any' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'disabledTintedForDarkAppearance' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
65 | let image = NSImage(size: defaultImage.size, flipped: false) { bounds in
66 | defaultImage
/Users/admin/builder/spi-builder-workspace/Sources/ColorWell/Views/Cocoa/Segments/ColorWellToggleSegment.swift:75:36: warning: static property 'disabledTintedForLightAppearance' is not concurrency-safe because non-'Sendable' type 'Any' may have shared mutable state; this is an error in the Swift 6 language mode
73 | }()
74 |
75 | private static let disabledTintedForLightAppearance: Any = {
| |- warning: static property 'disabledTintedForLightAppearance' is not concurrency-safe because non-'Sendable' type 'Any' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'disabledTintedForLightAppearance' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
76 | let image = NSImage(size: defaultImage.size, flipped: false) { bounds in
77 | defaultImage
/Users/admin/builder/spi-builder-workspace/Sources/ColorWell/Views/Cocoa/Segments/ColorWellToggleSegment.swift:86:28: warning: static property 'defaultContents' is not concurrency-safe because non-'Sendable' type 'Any' may have shared mutable state; this is an error in the Swift 6 language mode
84 | }()
85 |
86 | static let defaultContents: Any = {
| |- warning: static property 'defaultContents' is not concurrency-safe because non-'Sendable' type 'Any' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'defaultContents' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
87 | let scale = defaultImage.recommendedLayerContentsScale(0.0)
88 | return defaultImage.layerContents(forContentsScale: scale)
/Users/admin/builder/spi-builder-workspace/Sources/ColorWell/Views/Cocoa/Style.swift:34:27: warning: static property 'standard' is not concurrency-safe because non-'Sendable' type 'ColorWell.Style' may have shared mutable state; this is an error in the Swift 6 language mode
8 | extension ColorWell {
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 segmented control that displays
12 | /// the selected color alongside a dedicated button to show the system
:
32 | ///
33 | /// Equivalent to ``colorPanel``.
34 | public static let standard = Self.colorPanel
| |- warning: static property 'standard' is not concurrency-safe because non-'Sendable' type 'ColorWell.Style' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'standard' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
35 | }
36 | }
/Users/admin/builder/spi-builder-workspace/Sources/ColorWell/Views/SwiftUI/ColorWellConfiguration.swift:54:38: warning: call to main actor-isolated instance method 'erased()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
52 | values.action = action
53 | case .label(let label):
54 | values.label = label.erased()
| `- warning: call to main actor-isolated instance method 'erased()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
55 | case .showsAlpha(let showsAlpha):
56 | values.updateShowsAlpha = { colorWell in
/Users/admin/builder/spi-builder-workspace/Sources/ColorWell/Utilities/Extensions.swift:551:10: note: calls to instance method 'erased()' from outside of its actor context are implicitly asynchronous
549 | extension View {
550 | /// Returns a type-erased version of this view.
551 | func erased() -> AnyView {
| `- note: calls to instance method 'erased()' from outside of its actor context are implicitly asynchronous
552 | AnyView(self)
553 | }
/Users/admin/builder/spi-builder-workspace/Sources/ColorWell/Views/SwiftUI/ColorWellConfiguration.swift:57:31: warning: main actor-isolated property 'showsAlphaForcedState' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
55 | case .showsAlpha(let showsAlpha):
56 | values.updateShowsAlpha = { colorWell in
57 | colorWell.showsAlphaForcedState = showsAlpha.wrappedValue
| `- warning: main actor-isolated property 'showsAlphaForcedState' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
58 | }
59 | }
/Users/admin/builder/spi-builder-workspace/Sources/ColorWell/Views/Cocoa/ColorWell.swift:89:9: note: mutation of this property is only permitted within the actor
87 | /// color panel to show or hide its alpha controls during the next
88 | /// call to `synchronizeColorPanel()`.
89 | var showsAlphaForcedState: Bool? {
| `- note: mutation of this property is only permitted within the actor
90 | didSet {
91 | if isActive {
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/Users/admin/builder/spi-builder-workspace/Sources/ColorWell/Views/SwiftUI/EnvironmentValues.swift:11:16: warning: static property 'defaultValue' is not concurrency-safe because non-'Sendable' type '[(NSColor) -> Void]' may have shared mutable state; this is an error in the Swift 6 language mode
9 | @available(macOS 10.15, *)
10 | private struct ChangeHandlersKey: EnvironmentKey {
11 | static let defaultValue = [(NSColor) -> Void]()
| |- warning: static property 'defaultValue' is not concurrency-safe because non-'Sendable' type '[(NSColor) -> Void]' 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/ColorWell/Views/SwiftUI/EnvironmentValues.swift:16: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
14 | @available(macOS 10.15, *)
15 | private struct ColorWellStyleConfigurationKey: EnvironmentKey {
16 | static let defaultValue = _ColorWellStyleConfiguration()
| |- 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
17 | }
18 |
/Users/admin/builder/spi-builder-workspace/Sources/ColorWell/Views/SwiftUI/ColorWellStyle.swift:11:15: note: consider making struct '_ColorWellStyleConfiguration' conform to the 'Sendable' protocol
9 |
10 | /// Values that configure a color well's style.
11 | public struct _ColorWellStyleConfiguration {
| `- note: consider making struct '_ColorWellStyleConfiguration' conform to the 'Sendable' protocol
12 | /// The underlying style of the color well.
13 | var style: ColorWell.Style?
[4/33] Compiling ColorWell ColorWellPopoverLayoutView.swift
[5/33] Compiling ColorWell ColorWellPopoverSwatchView.swift
[6/33] Compiling ColorWell ColorWellPopoverViewController.swift
[7/33] Compiling ColorWell ColorWellSwatchSegment.swift
/Users/admin/builder/spi-builder-workspace/Sources/ColorWell/Views/Cocoa/Segments/ColorWellToggleSegment.swift:45:36: 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
43 | cachedImageLayer.updateConstructor { id in
44 | enum LocalCache {
45 | private 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
46 | // Force unwrap is okay here, as the image is an AppKit builtin.
47 | // 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/ColorWell/Views/Cocoa/Segments/ColorWellToggleSegment.swift:52:36: warning: static property 'enabledTintedForDarkAppearance' is not concurrency-safe because non-'Sendable' type 'Any' may have shared mutable state; this is an error in the Swift 6 language mode
50 | }()
51 |
52 | private static let enabledTintedForDarkAppearance: Any = {
| |- warning: static property 'enabledTintedForDarkAppearance' is not concurrency-safe because non-'Sendable' type 'Any' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'enabledTintedForDarkAppearance' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
53 | let image = defaultImage.tinted(to: .white, amount: 0.33)
54 | let scale = image.recommendedLayerContentsScale(0.0)
/Users/admin/builder/spi-builder-workspace/Sources/ColorWell/Views/Cocoa/Segments/ColorWellToggleSegment.swift:58:36: warning: static property 'enabledTintedForLightAppearance' is not concurrency-safe because non-'Sendable' type 'Any' may have shared mutable state; this is an error in the Swift 6 language mode
56 | }()
57 |
58 | private static let enabledTintedForLightAppearance: Any = {
| |- warning: static property 'enabledTintedForLightAppearance' is not concurrency-safe because non-'Sendable' type 'Any' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'enabledTintedForLightAppearance' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
59 | let image = defaultImage.tinted(to: .black, amount: 0.20)
60 | let scale = image.recommendedLayerContentsScale(0.0)
/Users/admin/builder/spi-builder-workspace/Sources/ColorWell/Views/Cocoa/Segments/ColorWellToggleSegment.swift:64:36: warning: static property 'disabledTintedForDarkAppearance' is not concurrency-safe because non-'Sendable' type 'Any' may have shared mutable state; this is an error in the Swift 6 language mode
62 | }()
63 |
64 | private static let disabledTintedForDarkAppearance: Any = {
| |- warning: static property 'disabledTintedForDarkAppearance' is not concurrency-safe because non-'Sendable' type 'Any' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'disabledTintedForDarkAppearance' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
65 | let image = NSImage(size: defaultImage.size, flipped: false) { bounds in
66 | defaultImage
/Users/admin/builder/spi-builder-workspace/Sources/ColorWell/Views/Cocoa/Segments/ColorWellToggleSegment.swift:75:36: warning: static property 'disabledTintedForLightAppearance' is not concurrency-safe because non-'Sendable' type 'Any' may have shared mutable state; this is an error in the Swift 6 language mode
73 | }()
74 |
75 | private static let disabledTintedForLightAppearance: Any = {
| |- warning: static property 'disabledTintedForLightAppearance' is not concurrency-safe because non-'Sendable' type 'Any' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'disabledTintedForLightAppearance' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
76 | let image = NSImage(size: defaultImage.size, flipped: false) { bounds in
77 | defaultImage
/Users/admin/builder/spi-builder-workspace/Sources/ColorWell/Views/Cocoa/Segments/ColorWellToggleSegment.swift:86:28: warning: static property 'defaultContents' is not concurrency-safe because non-'Sendable' type 'Any' may have shared mutable state; this is an error in the Swift 6 language mode
84 | }()
85 |
86 | static let defaultContents: Any = {
| |- warning: static property 'defaultContents' is not concurrency-safe because non-'Sendable' type 'Any' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'defaultContents' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
87 | let scale = defaultImage.recommendedLayerContentsScale(0.0)
88 | return defaultImage.layerContents(forContentsScale: scale)
/Users/admin/builder/spi-builder-workspace/Sources/ColorWell/Views/Cocoa/Segments/ColorWellToggleSegment.swift:216:34: warning: main actor-isolated property 'state' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
214 | init(_ dirtyRect: NSRect, segment: ColorWellToggleSegment) {
215 | self.dirtyRect = dirtyRect
216 | self.state = segment.state
| `- warning: main actor-isolated property 'state' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
217 | self.isEnabled = segment.isEnabled
218 | }
/Users/admin/builder/spi-builder-workspace/Sources/ColorWell/Views/Cocoa/Segments/ColorWellSegment.swift:25:9: note: property declared here
23 |
24 | /// The segment's current state.
25 | var state: State {
| `- note: property declared here
26 | get {
27 | backingStates.current
/Users/admin/builder/spi-builder-workspace/Sources/ColorWell/Views/Cocoa/Segments/ColorWellToggleSegment.swift:217:38: warning: main actor-isolated property 'isEnabled' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
215 | self.dirtyRect = dirtyRect
216 | self.state = segment.state
217 | self.isEnabled = segment.isEnabled
| `- warning: main actor-isolated property 'isEnabled' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
218 | }
219 | }
/Users/admin/builder/spi-builder-workspace/Sources/ColorWell/Views/Cocoa/Segments/ColorWellSegment.swift:43:9: note: property declared here
41 | /// A Boolean value that indicates whether the segment's
42 | /// color well is enabled.
43 | var isEnabled: Bool { colorWell?.isEnabled ?? false }
| `- note: property declared here
44 |
45 | /// The side containing this segment in its color well.
/Users/admin/builder/spi-builder-workspace/Sources/ColorWell/Views/Cocoa/Style.swift:34:27: warning: static property 'standard' is not concurrency-safe because non-'Sendable' type 'ColorWell.Style' may have shared mutable state; this is an error in the Swift 6 language mode
8 | extension ColorWell {
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 segmented control that displays
12 | /// the selected color alongside a dedicated button to show the system
:
32 | ///
33 | /// Equivalent to ``colorPanel``.
34 | public static let standard = Self.colorPanel
| |- warning: static property 'standard' is not concurrency-safe because non-'Sendable' type 'ColorWell.Style' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'standard' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
35 | }
36 | }
[8/33] Compiling ColorWell ColorWellToggleSegment.swift
/Users/admin/builder/spi-builder-workspace/Sources/ColorWell/Views/Cocoa/Segments/ColorWellToggleSegment.swift:45:36: 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
43 | cachedImageLayer.updateConstructor { id in
44 | enum LocalCache {
45 | private 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
46 | // Force unwrap is okay here, as the image is an AppKit builtin.
47 | // 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/ColorWell/Views/Cocoa/Segments/ColorWellToggleSegment.swift:52:36: warning: static property 'enabledTintedForDarkAppearance' is not concurrency-safe because non-'Sendable' type 'Any' may have shared mutable state; this is an error in the Swift 6 language mode
50 | }()
51 |
52 | private static let enabledTintedForDarkAppearance: Any = {
| |- warning: static property 'enabledTintedForDarkAppearance' is not concurrency-safe because non-'Sendable' type 'Any' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'enabledTintedForDarkAppearance' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
53 | let image = defaultImage.tinted(to: .white, amount: 0.33)
54 | let scale = image.recommendedLayerContentsScale(0.0)
/Users/admin/builder/spi-builder-workspace/Sources/ColorWell/Views/Cocoa/Segments/ColorWellToggleSegment.swift:58:36: warning: static property 'enabledTintedForLightAppearance' is not concurrency-safe because non-'Sendable' type 'Any' may have shared mutable state; this is an error in the Swift 6 language mode
56 | }()
57 |
58 | private static let enabledTintedForLightAppearance: Any = {
| |- warning: static property 'enabledTintedForLightAppearance' is not concurrency-safe because non-'Sendable' type 'Any' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'enabledTintedForLightAppearance' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
59 | let image = defaultImage.tinted(to: .black, amount: 0.20)
60 | let scale = image.recommendedLayerContentsScale(0.0)
/Users/admin/builder/spi-builder-workspace/Sources/ColorWell/Views/Cocoa/Segments/ColorWellToggleSegment.swift:64:36: warning: static property 'disabledTintedForDarkAppearance' is not concurrency-safe because non-'Sendable' type 'Any' may have shared mutable state; this is an error in the Swift 6 language mode
62 | }()
63 |
64 | private static let disabledTintedForDarkAppearance: Any = {
| |- warning: static property 'disabledTintedForDarkAppearance' is not concurrency-safe because non-'Sendable' type 'Any' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'disabledTintedForDarkAppearance' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
65 | let image = NSImage(size: defaultImage.size, flipped: false) { bounds in
66 | defaultImage
/Users/admin/builder/spi-builder-workspace/Sources/ColorWell/Views/Cocoa/Segments/ColorWellToggleSegment.swift:75:36: warning: static property 'disabledTintedForLightAppearance' is not concurrency-safe because non-'Sendable' type 'Any' may have shared mutable state; this is an error in the Swift 6 language mode
73 | }()
74 |
75 | private static let disabledTintedForLightAppearance: Any = {
| |- warning: static property 'disabledTintedForLightAppearance' is not concurrency-safe because non-'Sendable' type 'Any' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'disabledTintedForLightAppearance' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
76 | let image = NSImage(size: defaultImage.size, flipped: false) { bounds in
77 | defaultImage
/Users/admin/builder/spi-builder-workspace/Sources/ColorWell/Views/Cocoa/Segments/ColorWellToggleSegment.swift:86:28: warning: static property 'defaultContents' is not concurrency-safe because non-'Sendable' type 'Any' may have shared mutable state; this is an error in the Swift 6 language mode
84 | }()
85 |
86 | static let defaultContents: Any = {
| |- warning: static property 'defaultContents' is not concurrency-safe because non-'Sendable' type 'Any' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'defaultContents' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
87 | let scale = defaultImage.recommendedLayerContentsScale(0.0)
88 | return defaultImage.layerContents(forContentsScale: scale)
/Users/admin/builder/spi-builder-workspace/Sources/ColorWell/Views/Cocoa/Segments/ColorWellToggleSegment.swift:216:34: warning: main actor-isolated property 'state' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
214 | init(_ dirtyRect: NSRect, segment: ColorWellToggleSegment) {
215 | self.dirtyRect = dirtyRect
216 | self.state = segment.state
| `- warning: main actor-isolated property 'state' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
217 | self.isEnabled = segment.isEnabled
218 | }
/Users/admin/builder/spi-builder-workspace/Sources/ColorWell/Views/Cocoa/Segments/ColorWellSegment.swift:25:9: note: property declared here
23 |
24 | /// The segment's current state.
25 | var state: State {
| `- note: property declared here
26 | get {
27 | backingStates.current
/Users/admin/builder/spi-builder-workspace/Sources/ColorWell/Views/Cocoa/Segments/ColorWellToggleSegment.swift:217:38: warning: main actor-isolated property 'isEnabled' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
215 | self.dirtyRect = dirtyRect
216 | self.state = segment.state
217 | self.isEnabled = segment.isEnabled
| `- warning: main actor-isolated property 'isEnabled' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
218 | }
219 | }
/Users/admin/builder/spi-builder-workspace/Sources/ColorWell/Views/Cocoa/Segments/ColorWellSegment.swift:43:9: note: property declared here
41 | /// A Boolean value that indicates whether the segment's
42 | /// color well is enabled.
43 | var isEnabled: Bool { colorWell?.isEnabled ?? false }
| `- note: property declared here
44 |
45 | /// The side containing this segment in its color well.
/Users/admin/builder/spi-builder-workspace/Sources/ColorWell/Views/Cocoa/Style.swift:34:27: warning: static property 'standard' is not concurrency-safe because non-'Sendable' type 'ColorWell.Style' may have shared mutable state; this is an error in the Swift 6 language mode
8 | extension ColorWell {
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 segmented control that displays
12 | /// the selected color alongside a dedicated button to show the system
:
32 | ///
33 | /// Equivalent to ``colorPanel``.
34 | public static let standard = Self.colorPanel
| |- warning: static property 'standard' is not concurrency-safe because non-'Sendable' type 'ColorWell.Style' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'standard' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
35 | }
36 | }
[9/33] Compiling ColorWell Style.swift
/Users/admin/builder/spi-builder-workspace/Sources/ColorWell/Views/Cocoa/Segments/ColorWellToggleSegment.swift:45:36: 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
43 | cachedImageLayer.updateConstructor { id in
44 | enum LocalCache {
45 | private 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
46 | // Force unwrap is okay here, as the image is an AppKit builtin.
47 | // 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/ColorWell/Views/Cocoa/Segments/ColorWellToggleSegment.swift:52:36: warning: static property 'enabledTintedForDarkAppearance' is not concurrency-safe because non-'Sendable' type 'Any' may have shared mutable state; this is an error in the Swift 6 language mode
50 | }()
51 |
52 | private static let enabledTintedForDarkAppearance: Any = {
| |- warning: static property 'enabledTintedForDarkAppearance' is not concurrency-safe because non-'Sendable' type 'Any' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'enabledTintedForDarkAppearance' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
53 | let image = defaultImage.tinted(to: .white, amount: 0.33)
54 | let scale = image.recommendedLayerContentsScale(0.0)
/Users/admin/builder/spi-builder-workspace/Sources/ColorWell/Views/Cocoa/Segments/ColorWellToggleSegment.swift:58:36: warning: static property 'enabledTintedForLightAppearance' is not concurrency-safe because non-'Sendable' type 'Any' may have shared mutable state; this is an error in the Swift 6 language mode
56 | }()
57 |
58 | private static let enabledTintedForLightAppearance: Any = {
| |- warning: static property 'enabledTintedForLightAppearance' is not concurrency-safe because non-'Sendable' type 'Any' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'enabledTintedForLightAppearance' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
59 | let image = defaultImage.tinted(to: .black, amount: 0.20)
60 | let scale = image.recommendedLayerContentsScale(0.0)
/Users/admin/builder/spi-builder-workspace/Sources/ColorWell/Views/Cocoa/Segments/ColorWellToggleSegment.swift:64:36: warning: static property 'disabledTintedForDarkAppearance' is not concurrency-safe because non-'Sendable' type 'Any' may have shared mutable state; this is an error in the Swift 6 language mode
62 | }()
63 |
64 | private static let disabledTintedForDarkAppearance: Any = {
| |- warning: static property 'disabledTintedForDarkAppearance' is not concurrency-safe because non-'Sendable' type 'Any' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'disabledTintedForDarkAppearance' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
65 | let image = NSImage(size: defaultImage.size, flipped: false) { bounds in
66 | defaultImage
/Users/admin/builder/spi-builder-workspace/Sources/ColorWell/Views/Cocoa/Segments/ColorWellToggleSegment.swift:75:36: warning: static property 'disabledTintedForLightAppearance' is not concurrency-safe because non-'Sendable' type 'Any' may have shared mutable state; this is an error in the Swift 6 language mode
73 | }()
74 |
75 | private static let disabledTintedForLightAppearance: Any = {
| |- warning: static property 'disabledTintedForLightAppearance' is not concurrency-safe because non-'Sendable' type 'Any' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'disabledTintedForLightAppearance' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
76 | let image = NSImage(size: defaultImage.size, flipped: false) { bounds in
77 | defaultImage
/Users/admin/builder/spi-builder-workspace/Sources/ColorWell/Views/Cocoa/Segments/ColorWellToggleSegment.swift:86:28: warning: static property 'defaultContents' is not concurrency-safe because non-'Sendable' type 'Any' may have shared mutable state; this is an error in the Swift 6 language mode
84 | }()
85 |
86 | static let defaultContents: Any = {
| |- warning: static property 'defaultContents' is not concurrency-safe because non-'Sendable' type 'Any' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'defaultContents' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
87 | let scale = defaultImage.recommendedLayerContentsScale(0.0)
88 | return defaultImage.layerContents(forContentsScale: scale)
/Users/admin/builder/spi-builder-workspace/Sources/ColorWell/Views/Cocoa/Segments/ColorWellToggleSegment.swift:216:34: warning: main actor-isolated property 'state' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
214 | init(_ dirtyRect: NSRect, segment: ColorWellToggleSegment) {
215 | self.dirtyRect = dirtyRect
216 | self.state = segment.state
| `- warning: main actor-isolated property 'state' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
217 | self.isEnabled = segment.isEnabled
218 | }
/Users/admin/builder/spi-builder-workspace/Sources/ColorWell/Views/Cocoa/Segments/ColorWellSegment.swift:25:9: note: property declared here
23 |
24 | /// The segment's current state.
25 | var state: State {
| `- note: property declared here
26 | get {
27 | backingStates.current
/Users/admin/builder/spi-builder-workspace/Sources/ColorWell/Views/Cocoa/Segments/ColorWellToggleSegment.swift:217:38: warning: main actor-isolated property 'isEnabled' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
215 | self.dirtyRect = dirtyRect
216 | self.state = segment.state
217 | self.isEnabled = segment.isEnabled
| `- warning: main actor-isolated property 'isEnabled' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
218 | }
219 | }
/Users/admin/builder/spi-builder-workspace/Sources/ColorWell/Views/Cocoa/Segments/ColorWellSegment.swift:43:9: note: property declared here
41 | /// A Boolean value that indicates whether the segment's
42 | /// color well is enabled.
43 | var isEnabled: Bool { colorWell?.isEnabled ?? false }
| `- note: property declared here
44 |
45 | /// The side containing this segment in its color well.
/Users/admin/builder/spi-builder-workspace/Sources/ColorWell/Views/Cocoa/Style.swift:34:27: warning: static property 'standard' is not concurrency-safe because non-'Sendable' type 'ColorWell.Style' may have shared mutable state; this is an error in the Swift 6 language mode
8 | extension ColorWell {
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 segmented control that displays
12 | /// the selected color alongside a dedicated button to show the system
:
32 | ///
33 | /// Equivalent to ``colorPanel``.
34 | public static let standard = Self.colorPanel
| |- warning: static property 'standard' is not concurrency-safe because non-'Sendable' type 'ColorWell.Style' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'standard' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
35 | }
36 | }
[10/33] Compiling ColorWell ActionButton.swift
[11/33] Compiling ColorWell Cache.swift
[12/33] Compiling ColorWell ColorComponents.swift
[13/33] Compiling ColorWell ColorWellPopover.swift
/Users/admin/builder/spi-builder-workspace/Sources/ColorWell/Views/Cocoa/Popover/ColorWellPopoverContext.swift:12:27: warning: main actor-isolated default value in a nonisolated context; this is an error in the Swift 6 language mode
10 | private(set) weak var colorWell: ColorWell?
11 |
12 | private(set) lazy var popover = ColorWellPopover(context: self)
| `- warning: main actor-isolated default value in a nonisolated context; this is an error in the Swift 6 language mode
13 | private(set) lazy var popoverViewController = ColorWellPopoverViewController(context: self)
14 |
/Users/admin/builder/spi-builder-workspace/Sources/ColorWell/Views/Cocoa/Popover/ColorWellPopoverContext.swift:13:27: warning: main actor-isolated default value in a nonisolated context; this is an error in the Swift 6 language mode
11 |
12 | private(set) lazy var popover = ColorWellPopover(context: self)
13 | private(set) lazy var popoverViewController = ColorWellPopoverViewController(context: self)
| `- warning: main actor-isolated default value in a nonisolated context; this is an error in the Swift 6 language mode
14 |
15 | private(set) lazy var containerView = ColorWellPopoverContainerView(context: self)
/Users/admin/builder/spi-builder-workspace/Sources/ColorWell/Views/Cocoa/Popover/ColorWellPopoverContext.swift:15:27: warning: main actor-isolated default value in a nonisolated context; this is an error in the Swift 6 language mode
13 | private(set) lazy var popoverViewController = ColorWellPopoverViewController(context: self)
14 |
15 | private(set) lazy var containerView = ColorWellPopoverContainerView(context: self)
| `- warning: main actor-isolated default value in a nonisolated context; this is an error in the Swift 6 language mode
16 | private(set) lazy var layoutView = ColorWellPopoverLayoutView(context: self)
17 | private(set) lazy var swatchView = ColorWellPopoverSwatchView(context: self)
/Users/admin/builder/spi-builder-workspace/Sources/ColorWell/Views/Cocoa/Popover/ColorWellPopoverContext.swift:16:27: warning: main actor-isolated default value in a nonisolated context; this is an error in the Swift 6 language mode
14 |
15 | private(set) lazy var containerView = ColorWellPopoverContainerView(context: self)
16 | private(set) lazy var layoutView = ColorWellPopoverLayoutView(context: self)
| `- warning: main actor-isolated default value in a nonisolated context; this is an error in the Swift 6 language mode
17 | private(set) lazy var swatchView = ColorWellPopoverSwatchView(context: self)
18 |
/Users/admin/builder/spi-builder-workspace/Sources/ColorWell/Views/Cocoa/Popover/ColorWellPopoverContext.swift:17:27: warning: main actor-isolated default value in a nonisolated context; this is an error in the Swift 6 language mode
15 | private(set) lazy var containerView = ColorWellPopoverContainerView(context: self)
16 | private(set) lazy var layoutView = ColorWellPopoverLayoutView(context: self)
17 | private(set) lazy var swatchView = ColorWellPopoverSwatchView(context: self)
| `- warning: main actor-isolated default value in a nonisolated context; this is an error in the Swift 6 language mode
18 |
19 | private(set) lazy var swatchCount = colorWell?.swatchColors.count ?? 0
/Users/admin/builder/spi-builder-workspace/Sources/ColorWell/Views/Cocoa/Popover/ColorWellPopoverContext.swift:19:27: warning: main actor-isolated default value in a nonisolated context; this is an error in the Swift 6 language mode
17 | private(set) lazy var swatchView = ColorWellPopoverSwatchView(context: self)
18 |
19 | private(set) lazy var swatchCount = colorWell?.swatchColors.count ?? 0
| `- warning: main actor-isolated default value in a nonisolated context; this is an error in the Swift 6 language mode
20 | private(set) lazy var maxItemsPerRow = max(4, Int(Double(swatchCount).squareRoot().rounded(.up)))
21 | private(set) lazy var rowCount = Int((Double(swatchCount) / Double(maxItemsPerRow)).rounded(.up))
/Users/admin/builder/spi-builder-workspace/Sources/ColorWell/Views/Cocoa/Popover/ColorWellPopoverContext.swift:23:27: warning: main actor-isolated default value in a nonisolated context; this is an error in the Swift 6 language mode
21 | private(set) lazy var rowCount = Int((Double(swatchCount) / Double(maxItemsPerRow)).rounded(.up))
22 |
23 | private(set) lazy var swatches: [ColorSwatch] = {
| `- warning: main actor-isolated default value in a nonisolated context; this is an error in the Swift 6 language mode
24 | guard let colorWell else {
25 | return []
/Users/admin/builder/spi-builder-workspace/Sources/ColorWell/Views/Cocoa/Popover/ColorWellPopoverContext.swift:39:26: warning: main actor-isolated property 'popoverContext' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
36 |
37 | /// Removes the strong reference to this instance from the color well.
38 | func removeStrongReference() {
| `- note: add '@MainActor' to make instance method 'removeStrongReference()' part of global actor 'MainActor'
39 | guard colorWell?.popoverContext === self else {
| `- warning: main actor-isolated property 'popoverContext' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
40 | return
41 | }
/Users/admin/builder/spi-builder-workspace/Sources/ColorWell/Views/Cocoa/ColorWell.swift:74:9: note: property declared here
72 |
73 | /// The popover context associated with the color well.
74 | var popoverContext: ColorWellPopoverContext?
| `- note: property declared here
75 |
76 | /// A Boolean value that indicates whether this color well is the
/Users/admin/builder/spi-builder-workspace/Sources/ColorWell/Views/Cocoa/Popover/ColorWellPopoverContext.swift:42:20: warning: main actor-isolated property 'popoverContext' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
36 |
37 | /// Removes the strong reference to this instance from the color well.
38 | func removeStrongReference() {
| `- note: add '@MainActor' to make instance method 'removeStrongReference()' part of global actor 'MainActor'
39 | guard colorWell?.popoverContext === self else {
40 | return
41 | }
42 | colorWell?.popoverContext = nil
| `- warning: main actor-isolated property 'popoverContext' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
43 | }
44 |
/Users/admin/builder/spi-builder-workspace/Sources/ColorWell/Views/Cocoa/ColorWell.swift:74:9: note: mutation of this property is only permitted within the actor
72 |
73 | /// The popover context associated with the color well.
74 | var popoverContext: ColorWellPopoverContext?
| `- note: mutation of this property is only permitted within the actor
75 |
76 | /// A Boolean value that indicates whether this color well is the
[14/33] Compiling ColorWell ColorWellPopoverContainerView.swift
/Users/admin/builder/spi-builder-workspace/Sources/ColorWell/Views/Cocoa/Popover/ColorWellPopoverContext.swift:12:27: warning: main actor-isolated default value in a nonisolated context; this is an error in the Swift 6 language mode
10 | private(set) weak var colorWell: ColorWell?
11 |
12 | private(set) lazy var popover = ColorWellPopover(context: self)
| `- warning: main actor-isolated default value in a nonisolated context; this is an error in the Swift 6 language mode
13 | private(set) lazy var popoverViewController = ColorWellPopoverViewController(context: self)
14 |
/Users/admin/builder/spi-builder-workspace/Sources/ColorWell/Views/Cocoa/Popover/ColorWellPopoverContext.swift:13:27: warning: main actor-isolated default value in a nonisolated context; this is an error in the Swift 6 language mode
11 |
12 | private(set) lazy var popover = ColorWellPopover(context: self)
13 | private(set) lazy var popoverViewController = ColorWellPopoverViewController(context: self)
| `- warning: main actor-isolated default value in a nonisolated context; this is an error in the Swift 6 language mode
14 |
15 | private(set) lazy var containerView = ColorWellPopoverContainerView(context: self)
/Users/admin/builder/spi-builder-workspace/Sources/ColorWell/Views/Cocoa/Popover/ColorWellPopoverContext.swift:15:27: warning: main actor-isolated default value in a nonisolated context; this is an error in the Swift 6 language mode
13 | private(set) lazy var popoverViewController = ColorWellPopoverViewController(context: self)
14 |
15 | private(set) lazy var containerView = ColorWellPopoverContainerView(context: self)
| `- warning: main actor-isolated default value in a nonisolated context; this is an error in the Swift 6 language mode
16 | private(set) lazy var layoutView = ColorWellPopoverLayoutView(context: self)
17 | private(set) lazy var swatchView = ColorWellPopoverSwatchView(context: self)
/Users/admin/builder/spi-builder-workspace/Sources/ColorWell/Views/Cocoa/Popover/ColorWellPopoverContext.swift:16:27: warning: main actor-isolated default value in a nonisolated context; this is an error in the Swift 6 language mode
14 |
15 | private(set) lazy var containerView = ColorWellPopoverContainerView(context: self)
16 | private(set) lazy var layoutView = ColorWellPopoverLayoutView(context: self)
| `- warning: main actor-isolated default value in a nonisolated context; this is an error in the Swift 6 language mode
17 | private(set) lazy var swatchView = ColorWellPopoverSwatchView(context: self)
18 |
/Users/admin/builder/spi-builder-workspace/Sources/ColorWell/Views/Cocoa/Popover/ColorWellPopoverContext.swift:17:27: warning: main actor-isolated default value in a nonisolated context; this is an error in the Swift 6 language mode
15 | private(set) lazy var containerView = ColorWellPopoverContainerView(context: self)
16 | private(set) lazy var layoutView = ColorWellPopoverLayoutView(context: self)
17 | private(set) lazy var swatchView = ColorWellPopoverSwatchView(context: self)
| `- warning: main actor-isolated default value in a nonisolated context; this is an error in the Swift 6 language mode
18 |
19 | private(set) lazy var swatchCount = colorWell?.swatchColors.count ?? 0
/Users/admin/builder/spi-builder-workspace/Sources/ColorWell/Views/Cocoa/Popover/ColorWellPopoverContext.swift:19:27: warning: main actor-isolated default value in a nonisolated context; this is an error in the Swift 6 language mode
17 | private(set) lazy var swatchView = ColorWellPopoverSwatchView(context: self)
18 |
19 | private(set) lazy var swatchCount = colorWell?.swatchColors.count ?? 0
| `- warning: main actor-isolated default value in a nonisolated context; this is an error in the Swift 6 language mode
20 | private(set) lazy var maxItemsPerRow = max(4, Int(Double(swatchCount).squareRoot().rounded(.up)))
21 | private(set) lazy var rowCount = Int((Double(swatchCount) / Double(maxItemsPerRow)).rounded(.up))
/Users/admin/builder/spi-builder-workspace/Sources/ColorWell/Views/Cocoa/Popover/ColorWellPopoverContext.swift:23:27: warning: main actor-isolated default value in a nonisolated context; this is an error in the Swift 6 language mode
21 | private(set) lazy var rowCount = Int((Double(swatchCount) / Double(maxItemsPerRow)).rounded(.up))
22 |
23 | private(set) lazy var swatches: [ColorSwatch] = {
| `- warning: main actor-isolated default value in a nonisolated context; this is an error in the Swift 6 language mode
24 | guard let colorWell else {
25 | return []
/Users/admin/builder/spi-builder-workspace/Sources/ColorWell/Views/Cocoa/Popover/ColorWellPopoverContext.swift:39:26: warning: main actor-isolated property 'popoverContext' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
36 |
37 | /// Removes the strong reference to this instance from the color well.
38 | func removeStrongReference() {
| `- note: add '@MainActor' to make instance method 'removeStrongReference()' part of global actor 'MainActor'
39 | guard colorWell?.popoverContext === self else {
| `- warning: main actor-isolated property 'popoverContext' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
40 | return
41 | }
/Users/admin/builder/spi-builder-workspace/Sources/ColorWell/Views/Cocoa/ColorWell.swift:74:9: note: property declared here
72 |
73 | /// The popover context associated with the color well.
74 | var popoverContext: ColorWellPopoverContext?
| `- note: property declared here
75 |
76 | /// A Boolean value that indicates whether this color well is the
/Users/admin/builder/spi-builder-workspace/Sources/ColorWell/Views/Cocoa/Popover/ColorWellPopoverContext.swift:42:20: warning: main actor-isolated property 'popoverContext' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
36 |
37 | /// Removes the strong reference to this instance from the color well.
38 | func removeStrongReference() {
| `- note: add '@MainActor' to make instance method 'removeStrongReference()' part of global actor 'MainActor'
39 | guard colorWell?.popoverContext === self else {
40 | return
41 | }
42 | colorWell?.popoverContext = nil
| `- warning: main actor-isolated property 'popoverContext' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
43 | }
44 |
/Users/admin/builder/spi-builder-workspace/Sources/ColorWell/Views/Cocoa/ColorWell.swift:74:9: note: mutation of this property is only permitted within the actor
72 |
73 | /// The popover context associated with the color well.
74 | var popoverContext: ColorWellPopoverContext?
| `- note: mutation of this property is only permitted within the actor
75 |
76 | /// A Boolean value that indicates whether this color well is the
[15/33] Compiling ColorWell ColorWellPopoverContext.swift
/Users/admin/builder/spi-builder-workspace/Sources/ColorWell/Views/Cocoa/Popover/ColorWellPopoverContext.swift:12:27: warning: main actor-isolated default value in a nonisolated context; this is an error in the Swift 6 language mode
10 | private(set) weak var colorWell: ColorWell?
11 |
12 | private(set) lazy var popover = ColorWellPopover(context: self)
| `- warning: main actor-isolated default value in a nonisolated context; this is an error in the Swift 6 language mode
13 | private(set) lazy var popoverViewController = ColorWellPopoverViewController(context: self)
14 |
/Users/admin/builder/spi-builder-workspace/Sources/ColorWell/Views/Cocoa/Popover/ColorWellPopoverContext.swift:13:27: warning: main actor-isolated default value in a nonisolated context; this is an error in the Swift 6 language mode
11 |
12 | private(set) lazy var popover = ColorWellPopover(context: self)
13 | private(set) lazy var popoverViewController = ColorWellPopoverViewController(context: self)
| `- warning: main actor-isolated default value in a nonisolated context; this is an error in the Swift 6 language mode
14 |
15 | private(set) lazy var containerView = ColorWellPopoverContainerView(context: self)
/Users/admin/builder/spi-builder-workspace/Sources/ColorWell/Views/Cocoa/Popover/ColorWellPopoverContext.swift:15:27: warning: main actor-isolated default value in a nonisolated context; this is an error in the Swift 6 language mode
13 | private(set) lazy var popoverViewController = ColorWellPopoverViewController(context: self)
14 |
15 | private(set) lazy var containerView = ColorWellPopoverContainerView(context: self)
| `- warning: main actor-isolated default value in a nonisolated context; this is an error in the Swift 6 language mode
16 | private(set) lazy var layoutView = ColorWellPopoverLayoutView(context: self)
17 | private(set) lazy var swatchView = ColorWellPopoverSwatchView(context: self)
/Users/admin/builder/spi-builder-workspace/Sources/ColorWell/Views/Cocoa/Popover/ColorWellPopoverContext.swift:16:27: warning: main actor-isolated default value in a nonisolated context; this is an error in the Swift 6 language mode
14 |
15 | private(set) lazy var containerView = ColorWellPopoverContainerView(context: self)
16 | private(set) lazy var layoutView = ColorWellPopoverLayoutView(context: self)
| `- warning: main actor-isolated default value in a nonisolated context; this is an error in the Swift 6 language mode
17 | private(set) lazy var swatchView = ColorWellPopoverSwatchView(context: self)
18 |
/Users/admin/builder/spi-builder-workspace/Sources/ColorWell/Views/Cocoa/Popover/ColorWellPopoverContext.swift:17:27: warning: main actor-isolated default value in a nonisolated context; this is an error in the Swift 6 language mode
15 | private(set) lazy var containerView = ColorWellPopoverContainerView(context: self)
16 | private(set) lazy var layoutView = ColorWellPopoverLayoutView(context: self)
17 | private(set) lazy var swatchView = ColorWellPopoverSwatchView(context: self)
| `- warning: main actor-isolated default value in a nonisolated context; this is an error in the Swift 6 language mode
18 |
19 | private(set) lazy var swatchCount = colorWell?.swatchColors.count ?? 0
/Users/admin/builder/spi-builder-workspace/Sources/ColorWell/Views/Cocoa/Popover/ColorWellPopoverContext.swift:19:27: warning: main actor-isolated default value in a nonisolated context; this is an error in the Swift 6 language mode
17 | private(set) lazy var swatchView = ColorWellPopoverSwatchView(context: self)
18 |
19 | private(set) lazy var swatchCount = colorWell?.swatchColors.count ?? 0
| `- warning: main actor-isolated default value in a nonisolated context; this is an error in the Swift 6 language mode
20 | private(set) lazy var maxItemsPerRow = max(4, Int(Double(swatchCount).squareRoot().rounded(.up)))
21 | private(set) lazy var rowCount = Int((Double(swatchCount) / Double(maxItemsPerRow)).rounded(.up))
/Users/admin/builder/spi-builder-workspace/Sources/ColorWell/Views/Cocoa/Popover/ColorWellPopoverContext.swift:23:27: warning: main actor-isolated default value in a nonisolated context; this is an error in the Swift 6 language mode
21 | private(set) lazy var rowCount = Int((Double(swatchCount) / Double(maxItemsPerRow)).rounded(.up))
22 |
23 | private(set) lazy var swatches: [ColorSwatch] = {
| `- warning: main actor-isolated default value in a nonisolated context; this is an error in the Swift 6 language mode
24 | guard let colorWell else {
25 | return []
/Users/admin/builder/spi-builder-workspace/Sources/ColorWell/Views/Cocoa/Popover/ColorWellPopoverContext.swift:39:26: warning: main actor-isolated property 'popoverContext' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
36 |
37 | /// Removes the strong reference to this instance from the color well.
38 | func removeStrongReference() {
| `- note: add '@MainActor' to make instance method 'removeStrongReference()' part of global actor 'MainActor'
39 | guard colorWell?.popoverContext === self else {
| `- warning: main actor-isolated property 'popoverContext' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
40 | return
41 | }
/Users/admin/builder/spi-builder-workspace/Sources/ColorWell/Views/Cocoa/ColorWell.swift:74:9: note: property declared here
72 |
73 | /// The popover context associated with the color well.
74 | var popoverContext: ColorWellPopoverContext?
| `- note: property declared here
75 |
76 | /// A Boolean value that indicates whether this color well is the
/Users/admin/builder/spi-builder-workspace/Sources/ColorWell/Views/Cocoa/Popover/ColorWellPopoverContext.swift:42:20: warning: main actor-isolated property 'popoverContext' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
36 |
37 | /// Removes the strong reference to this instance from the color well.
38 | func removeStrongReference() {
| `- note: add '@MainActor' to make instance method 'removeStrongReference()' part of global actor 'MainActor'
39 | guard colorWell?.popoverContext === self else {
40 | return
41 | }
42 | colorWell?.popoverContext = nil
| `- warning: main actor-isolated property 'popoverContext' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
43 | }
44 |
/Users/admin/builder/spi-builder-workspace/Sources/ColorWell/Views/Cocoa/ColorWell.swift:74:9: note: mutation of this property is only permitted within the actor
72 |
73 | /// The popover context associated with the color well.
74 | var popoverContext: ColorWellPopoverContext?
| `- note: mutation of this property is only permitted within the actor
75 |
76 | /// A Boolean value that indicates whether this color well is the
[16/33] Compiling ColorWell ColorWellBaseView.swift
/Users/admin/builder/spi-builder-workspace/Sources/ColorWell/Views/Cocoa/Popover/ColorSwatch.swift:131:24: warning: static property 'storage' is not concurrency-safe because non-'Sendable' type 'Storage<CALayer?>' may have shared mutable state; this is an error in the Swift 6 language mode
129 | private func updateBezel() {
130 | enum LocalCache {
131 | static let storage = Storage<CALayer?>()
| |- warning: static property 'storage' is not concurrency-safe because non-'Sendable' type 'Storage<CALayer?>' 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
132 | }
133 |
/Users/admin/builder/spi-builder-workspace/Sources/ColorWell/Utilities/Storage.swift:13:7: note: generic class 'Storage' does not conform to the 'Sendable' protocol
11 | /// The object associations managed by instances of this type maintain
12 | /// strong references to their objects, and are made non-atomically.
13 | class Storage<Value> {
| `- note: generic class 'Storage' does not conform to the 'Sendable' protocol
14 | private var key: UnsafeRawPointer {
15 | UnsafeRawPointer(Unmanaged.passUnretained(self).toOpaque())
[17/33] Compiling ColorWell ColorWellLayoutView.swift
/Users/admin/builder/spi-builder-workspace/Sources/ColorWell/Views/Cocoa/Popover/ColorSwatch.swift:131:24: warning: static property 'storage' is not concurrency-safe because non-'Sendable' type 'Storage<CALayer?>' may have shared mutable state; this is an error in the Swift 6 language mode
129 | private func updateBezel() {
130 | enum LocalCache {
131 | static let storage = Storage<CALayer?>()
| |- warning: static property 'storage' is not concurrency-safe because non-'Sendable' type 'Storage<CALayer?>' 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
132 | }
133 |
/Users/admin/builder/spi-builder-workspace/Sources/ColorWell/Utilities/Storage.swift:13:7: note: generic class 'Storage' does not conform to the 'Sendable' protocol
11 | /// The object associations managed by instances of this type maintain
12 | /// strong references to their objects, and are made non-atomically.
13 | class Storage<Value> {
| `- note: generic class 'Storage' does not conform to the 'Sendable' protocol
14 | private var key: UnsafeRawPointer {
15 | UnsafeRawPointer(Unmanaged.passUnretained(self).toOpaque())
[18/33] Compiling ColorWell ColorSwatch.swift
/Users/admin/builder/spi-builder-workspace/Sources/ColorWell/Views/Cocoa/Popover/ColorSwatch.swift:131:24: warning: static property 'storage' is not concurrency-safe because non-'Sendable' type 'Storage<CALayer?>' may have shared mutable state; this is an error in the Swift 6 language mode
129 | private func updateBezel() {
130 | enum LocalCache {
131 | static let storage = Storage<CALayer?>()
| |- warning: static property 'storage' is not concurrency-safe because non-'Sendable' type 'Storage<CALayer?>' 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
132 | }
133 |
/Users/admin/builder/spi-builder-workspace/Sources/ColorWell/Utilities/Storage.swift:13:7: note: generic class 'Storage' does not conform to the 'Sendable' protocol
11 | /// The object associations managed by instances of this type maintain
12 | /// strong references to their objects, and are made non-atomically.
13 | class Storage<Value> {
| `- note: generic class 'Storage' does not conform to the 'Sendable' protocol
14 | private var key: UnsafeRawPointer {
15 | UnsafeRawPointer(Unmanaged.passUnretained(self).toOpaque())
[19/33] Compiling ColorWell ColorWellView.swift
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/Users/admin/builder/spi-builder-workspace/Sources/ColorWell/Views/SwiftUI/EnvironmentValues.swift:11:16: warning: static property 'defaultValue' is not concurrency-safe because non-'Sendable' type '[(NSColor) -> Void]' may have shared mutable state; this is an error in the Swift 6 language mode
9 | @available(macOS 10.15, *)
10 | private struct ChangeHandlersKey: EnvironmentKey {
11 | static let defaultValue = [(NSColor) -> Void]()
| |- warning: static property 'defaultValue' is not concurrency-safe because non-'Sendable' type '[(NSColor) -> Void]' 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/ColorWell/Views/SwiftUI/EnvironmentValues.swift:16: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
14 | @available(macOS 10.15, *)
15 | private struct ColorWellStyleConfigurationKey: EnvironmentKey {
16 | static let defaultValue = _ColorWellStyleConfiguration()
| |- 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
17 | }
18 |
/Users/admin/builder/spi-builder-workspace/Sources/ColorWell/Views/SwiftUI/ColorWellStyle.swift:11:15: note: consider making struct '_ColorWellStyleConfiguration' conform to the 'Sendable' protocol
9 |
10 | /// Values that configure a color well's style.
11 | public struct _ColorWellStyleConfiguration {
| `- note: consider making struct '_ColorWellStyleConfiguration' conform to the 'Sendable' protocol
12 | /// The underlying style of the color well.
13 | var style: ColorWell.Style?
[20/33] Compiling ColorWell EnvironmentValues.swift
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/Users/admin/builder/spi-builder-workspace/Sources/ColorWell/Views/SwiftUI/EnvironmentValues.swift:11:16: warning: static property 'defaultValue' is not concurrency-safe because non-'Sendable' type '[(NSColor) -> Void]' may have shared mutable state; this is an error in the Swift 6 language mode
9 | @available(macOS 10.15, *)
10 | private struct ChangeHandlersKey: EnvironmentKey {
11 | static let defaultValue = [(NSColor) -> Void]()
| |- warning: static property 'defaultValue' is not concurrency-safe because non-'Sendable' type '[(NSColor) -> Void]' 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/ColorWell/Views/SwiftUI/EnvironmentValues.swift:16: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
14 | @available(macOS 10.15, *)
15 | private struct ColorWellStyleConfigurationKey: EnvironmentKey {
16 | static let defaultValue = _ColorWellStyleConfiguration()
| |- 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
17 | }
18 |
/Users/admin/builder/spi-builder-workspace/Sources/ColorWell/Views/SwiftUI/ColorWellStyle.swift:11:15: note: consider making struct '_ColorWellStyleConfiguration' conform to the 'Sendable' protocol
9 |
10 | /// Values that configure a color well's style.
11 | public struct _ColorWellStyleConfiguration {
| `- note: consider making struct '_ColorWellStyleConfiguration' conform to the 'Sendable' protocol
12 | /// The underlying style of the color well.
13 | var style: ColorWell.Style?
[21/33] Compiling ColorWell ViewModifiers.swift
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/Users/admin/builder/spi-builder-workspace/Sources/ColorWell/Views/SwiftUI/EnvironmentValues.swift:11:16: warning: static property 'defaultValue' is not concurrency-safe because non-'Sendable' type '[(NSColor) -> Void]' may have shared mutable state; this is an error in the Swift 6 language mode
9 | @available(macOS 10.15, *)
10 | private struct ChangeHandlersKey: EnvironmentKey {
11 | static let defaultValue = [(NSColor) -> Void]()
| |- warning: static property 'defaultValue' is not concurrency-safe because non-'Sendable' type '[(NSColor) -> Void]' 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/ColorWell/Views/SwiftUI/EnvironmentValues.swift:16: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
14 | @available(macOS 10.15, *)
15 | private struct ColorWellStyleConfigurationKey: EnvironmentKey {
16 | static let defaultValue = _ColorWellStyleConfiguration()
| |- 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
17 | }
18 |
/Users/admin/builder/spi-builder-workspace/Sources/ColorWell/Views/SwiftUI/ColorWellStyle.swift:11:15: note: consider making struct '_ColorWellStyleConfiguration' conform to the 'Sendable' protocol
9 |
10 | /// Values that configure a color well's style.
11 | public struct _ColorWellStyleConfiguration {
| `- note: consider making struct '_ColorWellStyleConfiguration' conform to the 'Sendable' protocol
12 | /// The underlying style of the color well.
13 | var style: ColorWell.Style?
[22/33] Compiling ColorWell ColorWellBorderedSwatchSegment.swift
/Users/admin/builder/spi-builder-workspace/Sources/ColorWell/Views/Cocoa/Segments/ColorWellPullDownSwatchSegment.swift:224:24: warning: static property 'storage' is not concurrency-safe because non-'Sendable' type 'Storage<NSTrackingArea>' may have shared mutable state; this is an error in the Swift 6 language mode
222 | override func updateTrackingAreas() {
223 | enum LocalCache {
224 | static let storage = Storage<NSTrackingArea>()
| |- warning: static property 'storage' is not concurrency-safe because non-'Sendable' type 'Storage<NSTrackingArea>' 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
225 | }
226 |
/Users/admin/builder/spi-builder-workspace/Sources/ColorWell/Utilities/Storage.swift:13:7: note: generic class 'Storage' does not conform to the 'Sendable' protocol
11 | /// The object associations managed by instances of this type maintain
12 | /// strong references to their objects, and are made non-atomically.
13 | class Storage<Value> {
| `- note: generic class 'Storage' does not conform to the 'Sendable' protocol
14 | private var key: UnsafeRawPointer {
15 | UnsafeRawPointer(Unmanaged.passUnretained(self).toOpaque())
[23/33] Compiling ColorWell ColorWellPullDownSwatchSegment.swift
/Users/admin/builder/spi-builder-workspace/Sources/ColorWell/Views/Cocoa/Segments/ColorWellPullDownSwatchSegment.swift:224:24: warning: static property 'storage' is not concurrency-safe because non-'Sendable' type 'Storage<NSTrackingArea>' may have shared mutable state; this is an error in the Swift 6 language mode
222 | override func updateTrackingAreas() {
223 | enum LocalCache {
224 | static let storage = Storage<NSTrackingArea>()
| |- warning: static property 'storage' is not concurrency-safe because non-'Sendable' type 'Storage<NSTrackingArea>' 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
225 | }
226 |
/Users/admin/builder/spi-builder-workspace/Sources/ColorWell/Utilities/Storage.swift:13:7: note: generic class 'Storage' does not conform to the 'Sendable' protocol
11 | /// The object associations managed by instances of this type maintain
12 | /// strong references to their objects, and are made non-atomically.
13 | class Storage<Value> {
| `- note: generic class 'Storage' does not conform to the 'Sendable' protocol
14 | private var key: UnsafeRawPointer {
15 | UnsafeRawPointer(Unmanaged.passUnretained(self).toOpaque())
[24/33] Compiling ColorWell ColorWellSegment.swift
/Users/admin/builder/spi-builder-workspace/Sources/ColorWell/Views/Cocoa/Segments/ColorWellPullDownSwatchSegment.swift:224:24: warning: static property 'storage' is not concurrency-safe because non-'Sendable' type 'Storage<NSTrackingArea>' may have shared mutable state; this is an error in the Swift 6 language mode
222 | override func updateTrackingAreas() {
223 | enum LocalCache {
224 | static let storage = Storage<NSTrackingArea>()
| |- warning: static property 'storage' is not concurrency-safe because non-'Sendable' type 'Storage<NSTrackingArea>' 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
225 | }
226 |
/Users/admin/builder/spi-builder-workspace/Sources/ColorWell/Utilities/Storage.swift:13:7: note: generic class 'Storage' does not conform to the 'Sendable' protocol
11 | /// The object associations managed by instances of this type maintain
12 | /// strong references to their objects, and are made non-atomically.
13 | class Storage<Value> {
| `- note: generic class 'Storage' does not conform to the 'Sendable' protocol
14 | private var key: UnsafeRawPointer {
15 | UnsafeRawPointer(Unmanaged.passUnretained(self).toOpaque())
[25/33] Compiling ColorWell ColorWellConfiguration.swift
/Users/admin/builder/spi-builder-workspace/Sources/ColorWell/Views/SwiftUI/ColorWellConfiguration.swift:54:38: warning: call to main actor-isolated instance method 'erased()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
52 | values.action = action
53 | case .label(let label):
54 | values.label = label.erased()
| `- warning: call to main actor-isolated instance method 'erased()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
55 | case .showsAlpha(let showsAlpha):
56 | values.updateShowsAlpha = { colorWell in
/Users/admin/builder/spi-builder-workspace/Sources/ColorWell/Utilities/Extensions.swift:551:10: note: calls to instance method 'erased()' from outside of its actor context are implicitly asynchronous
549 | extension View {
550 | /// Returns a type-erased version of this view.
551 | func erased() -> AnyView {
| `- note: calls to instance method 'erased()' from outside of its actor context are implicitly asynchronous
552 | AnyView(self)
553 | }
/Users/admin/builder/spi-builder-workspace/Sources/ColorWell/Views/SwiftUI/ColorWellConfiguration.swift:57:31: warning: main actor-isolated property 'showsAlphaForcedState' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
55 | case .showsAlpha(let showsAlpha):
56 | values.updateShowsAlpha = { colorWell in
57 | colorWell.showsAlphaForcedState = showsAlpha.wrappedValue
| `- warning: main actor-isolated property 'showsAlphaForcedState' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
58 | }
59 | }
/Users/admin/builder/spi-builder-workspace/Sources/ColorWell/Views/Cocoa/ColorWell.swift:89:9: note: mutation of this property is only permitted within the actor
87 | /// color panel to show or hide its alpha controls during the next
88 | /// call to `synchronizeColorPanel()`.
89 | var showsAlphaForcedState: Bool? {
| `- note: mutation of this property is only permitted within the actor
90 | didSet {
91 | if isActive {
[26/33] Compiling ColorWell ColorWellRepresentable.swift
/Users/admin/builder/spi-builder-workspace/Sources/ColorWell/Views/SwiftUI/ColorWellConfiguration.swift:54:38: warning: call to main actor-isolated instance method 'erased()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
52 | values.action = action
53 | case .label(let label):
54 | values.label = label.erased()
| `- warning: call to main actor-isolated instance method 'erased()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
55 | case .showsAlpha(let showsAlpha):
56 | values.updateShowsAlpha = { colorWell in
/Users/admin/builder/spi-builder-workspace/Sources/ColorWell/Utilities/Extensions.swift:551:10: note: calls to instance method 'erased()' from outside of its actor context are implicitly asynchronous
549 | extension View {
550 | /// Returns a type-erased version of this view.
551 | func erased() -> AnyView {
| `- note: calls to instance method 'erased()' from outside of its actor context are implicitly asynchronous
552 | AnyView(self)
553 | }
/Users/admin/builder/spi-builder-workspace/Sources/ColorWell/Views/SwiftUI/ColorWellConfiguration.swift:57:31: warning: main actor-isolated property 'showsAlphaForcedState' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
55 | case .showsAlpha(let showsAlpha):
56 | values.updateShowsAlpha = { colorWell in
57 | colorWell.showsAlphaForcedState = showsAlpha.wrappedValue
| `- warning: main actor-isolated property 'showsAlphaForcedState' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
58 | }
59 | }
/Users/admin/builder/spi-builder-workspace/Sources/ColorWell/Views/Cocoa/ColorWell.swift:89:9: note: mutation of this property is only permitted within the actor
87 | /// color panel to show or hide its alpha controls during the next
88 | /// call to `synchronizeColorPanel()`.
89 | var showsAlphaForcedState: Bool? {
| `- note: mutation of this property is only permitted within the actor
90 | didSet {
91 | if isActive {
[27/33] Compiling ColorWell ColorWellStyle.swift
/Users/admin/builder/spi-builder-workspace/Sources/ColorWell/Views/SwiftUI/ColorWellConfiguration.swift:54:38: warning: call to main actor-isolated instance method 'erased()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
52 | values.action = action
53 | case .label(let label):
54 | values.label = label.erased()
| `- warning: call to main actor-isolated instance method 'erased()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
55 | case .showsAlpha(let showsAlpha):
56 | values.updateShowsAlpha = { colorWell in
/Users/admin/builder/spi-builder-workspace/Sources/ColorWell/Utilities/Extensions.swift:551:10: note: calls to instance method 'erased()' from outside of its actor context are implicitly asynchronous
549 | extension View {
550 | /// Returns a type-erased version of this view.
551 | func erased() -> AnyView {
| `- note: calls to instance method 'erased()' from outside of its actor context are implicitly asynchronous
552 | AnyView(self)
553 | }
/Users/admin/builder/spi-builder-workspace/Sources/ColorWell/Views/SwiftUI/ColorWellConfiguration.swift:57:31: warning: main actor-isolated property 'showsAlphaForcedState' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
55 | case .showsAlpha(let showsAlpha):
56 | values.updateShowsAlpha = { colorWell in
57 | colorWell.showsAlphaForcedState = showsAlpha.wrappedValue
| `- warning: main actor-isolated property 'showsAlphaForcedState' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
58 | }
59 | }
/Users/admin/builder/spi-builder-workspace/Sources/ColorWell/Views/Cocoa/ColorWell.swift:89:9: note: mutation of this property is only permitted within the actor
87 | /// color panel to show or hide its alpha controls during the next
88 | /// call to `synchronizeColorPanel()`.
89 | var showsAlphaForcedState: Bool? {
| `- note: mutation of this property is only permitted within the actor
90 | didSet {
91 | if isActive {
[28/33] Compiling ColorWell ConstructablePath.swift
[29/33] Compiling ColorWell Deprecated.swift
[30/33] Compiling ColorWell DrawingStyle.swift
[31/33] Compiling ColorWell Extensions.swift
/Users/admin/builder/spi-builder-workspace/Sources/ColorWell/Utilities/Extensions.swift:538:84: warning: passing non-sendable parameter 'changeHandler' to function expecting a @Sendable closure
534 | keyPath: KeyPath<Object, Value>,
535 | options: NSKeyValueObservingOptions = [],
536 | changeHandler: @escaping (Object, NSKeyValueObservedChange<Value>) -> Void
| `- note: parameter 'changeHandler' is implicitly non-sendable
537 | ) {
538 | let observation = object.observe(keyPath, options: options, changeHandler: changeHandler)
| `- warning: passing non-sendable parameter 'changeHandler' to function expecting a @Sendable closure
539 | insert(observation)
540 | }
/Users/admin/builder/spi-builder-workspace/Sources/ColorWell/Views/Cocoa/ColorWell.swift:100:24: warning: static property 'storage' is not concurrency-safe because non-'Sendable' type 'Storage<ColorWellLayoutView>' may have shared mutable state; this is an error in the Swift 6 language mode
98 | var layoutView: ColorWellLayoutView {
99 | enum LocalCache {
100 | static let storage = Storage<ColorWellLayoutView>()
| |- warning: static property 'storage' is not concurrency-safe because non-'Sendable' type 'Storage<ColorWellLayoutView>' 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
101 | }
102 |
/Users/admin/builder/spi-builder-workspace/Sources/ColorWell/Utilities/Storage.swift:13:7: note: generic class 'Storage' does not conform to the 'Sendable' protocol
11 | /// The object associations managed by instances of this type maintain
12 | /// strong references to their objects, and are made non-atomically.
13 | class Storage<Value> {
| `- note: generic class 'Storage' does not conform to the 'Sendable' protocol
14 | private var key: UnsafeRawPointer {
15 | UnsafeRawPointer(Unmanaged.passUnretained(self).toOpaque())
/Users/admin/builder/spi-builder-workspace/Sources/ColorWell/Views/Cocoa/ColorWell.swift:402:24: warning: static property 'storage' is not concurrency-safe because non-'Sendable' type 'Storage<Set<NSKeyValueObservation>>' may have shared mutable state; this is an error in the Swift 6 language mode
400 | private func configureColorPanelObservations(remove: Bool, setUp: Bool) {
401 | enum LocalCache {
402 | static let storage = Storage<Set<NSKeyValueObservation>>()
| |- warning: static property 'storage' is not concurrency-safe because non-'Sendable' type 'Storage<Set<NSKeyValueObservation>>' 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
403 | }
404 |
/Users/admin/builder/spi-builder-workspace/Sources/ColorWell/Utilities/Storage.swift:13:7: note: generic class 'Storage' does not conform to the 'Sendable' protocol
11 | /// The object associations managed by instances of this type maintain
12 | /// strong references to their objects, and are made non-atomically.
13 | class Storage<Value> {
| `- note: generic class 'Storage' does not conform to the 'Sendable' protocol
14 | private var key: UnsafeRawPointer {
15 | UnsafeRawPointer(Unmanaged.passUnretained(self).toOpaque())
[32/33] Compiling ColorWell Storage.swift
/Users/admin/builder/spi-builder-workspace/Sources/ColorWell/Utilities/Extensions.swift:538:84: warning: passing non-sendable parameter 'changeHandler' to function expecting a @Sendable closure
534 | keyPath: KeyPath<Object, Value>,
535 | options: NSKeyValueObservingOptions = [],
536 | changeHandler: @escaping (Object, NSKeyValueObservedChange<Value>) -> Void
| `- note: parameter 'changeHandler' is implicitly non-sendable
537 | ) {
538 | let observation = object.observe(keyPath, options: options, changeHandler: changeHandler)
| `- warning: passing non-sendable parameter 'changeHandler' to function expecting a @Sendable closure
539 | insert(observation)
540 | }
/Users/admin/builder/spi-builder-workspace/Sources/ColorWell/Views/Cocoa/ColorWell.swift:100:24: warning: static property 'storage' is not concurrency-safe because non-'Sendable' type 'Storage<ColorWellLayoutView>' may have shared mutable state; this is an error in the Swift 6 language mode
98 | var layoutView: ColorWellLayoutView {
99 | enum LocalCache {
100 | static let storage = Storage<ColorWellLayoutView>()
| |- warning: static property 'storage' is not concurrency-safe because non-'Sendable' type 'Storage<ColorWellLayoutView>' 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
101 | }
102 |
/Users/admin/builder/spi-builder-workspace/Sources/ColorWell/Utilities/Storage.swift:13:7: note: generic class 'Storage' does not conform to the 'Sendable' protocol
11 | /// The object associations managed by instances of this type maintain
12 | /// strong references to their objects, and are made non-atomically.
13 | class Storage<Value> {
| `- note: generic class 'Storage' does not conform to the 'Sendable' protocol
14 | private var key: UnsafeRawPointer {
15 | UnsafeRawPointer(Unmanaged.passUnretained(self).toOpaque())
/Users/admin/builder/spi-builder-workspace/Sources/ColorWell/Views/Cocoa/ColorWell.swift:402:24: warning: static property 'storage' is not concurrency-safe because non-'Sendable' type 'Storage<Set<NSKeyValueObservation>>' may have shared mutable state; this is an error in the Swift 6 language mode
400 | private func configureColorPanelObservations(remove: Bool, setUp: Bool) {
401 | enum LocalCache {
402 | static let storage = Storage<Set<NSKeyValueObservation>>()
| |- warning: static property 'storage' is not concurrency-safe because non-'Sendable' type 'Storage<Set<NSKeyValueObservation>>' 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
403 | }
404 |
/Users/admin/builder/spi-builder-workspace/Sources/ColorWell/Utilities/Storage.swift:13:7: note: generic class 'Storage' does not conform to the 'Sendable' protocol
11 | /// The object associations managed by instances of this type maintain
12 | /// strong references to their objects, and are made non-atomically.
13 | class Storage<Value> {
| `- note: generic class 'Storage' does not conform to the 'Sendable' protocol
14 | private var key: UnsafeRawPointer {
15 | UnsafeRawPointer(Unmanaged.passUnretained(self).toOpaque())
[33/33] Compiling ColorWell ColorWell.swift
/Users/admin/builder/spi-builder-workspace/Sources/ColorWell/Utilities/Extensions.swift:538:84: warning: passing non-sendable parameter 'changeHandler' to function expecting a @Sendable closure
534 | keyPath: KeyPath<Object, Value>,
535 | options: NSKeyValueObservingOptions = [],
536 | changeHandler: @escaping (Object, NSKeyValueObservedChange<Value>) -> Void
| `- note: parameter 'changeHandler' is implicitly non-sendable
537 | ) {
538 | let observation = object.observe(keyPath, options: options, changeHandler: changeHandler)
| `- warning: passing non-sendable parameter 'changeHandler' to function expecting a @Sendable closure
539 | insert(observation)
540 | }
/Users/admin/builder/spi-builder-workspace/Sources/ColorWell/Views/Cocoa/ColorWell.swift:100:24: warning: static property 'storage' is not concurrency-safe because non-'Sendable' type 'Storage<ColorWellLayoutView>' may have shared mutable state; this is an error in the Swift 6 language mode
98 | var layoutView: ColorWellLayoutView {
99 | enum LocalCache {
100 | static let storage = Storage<ColorWellLayoutView>()
| |- warning: static property 'storage' is not concurrency-safe because non-'Sendable' type 'Storage<ColorWellLayoutView>' 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
101 | }
102 |
/Users/admin/builder/spi-builder-workspace/Sources/ColorWell/Utilities/Storage.swift:13:7: note: generic class 'Storage' does not conform to the 'Sendable' protocol
11 | /// The object associations managed by instances of this type maintain
12 | /// strong references to their objects, and are made non-atomically.
13 | class Storage<Value> {
| `- note: generic class 'Storage' does not conform to the 'Sendable' protocol
14 | private var key: UnsafeRawPointer {
15 | UnsafeRawPointer(Unmanaged.passUnretained(self).toOpaque())
/Users/admin/builder/spi-builder-workspace/Sources/ColorWell/Views/Cocoa/ColorWell.swift:402:24: warning: static property 'storage' is not concurrency-safe because non-'Sendable' type 'Storage<Set<NSKeyValueObservation>>' may have shared mutable state; this is an error in the Swift 6 language mode
400 | private func configureColorPanelObservations(remove: Bool, setUp: Bool) {
401 | enum LocalCache {
402 | static let storage = Storage<Set<NSKeyValueObservation>>()
| |- warning: static property 'storage' is not concurrency-safe because non-'Sendable' type 'Storage<Set<NSKeyValueObservation>>' 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
403 | }
404 |
/Users/admin/builder/spi-builder-workspace/Sources/ColorWell/Utilities/Storage.swift:13:7: note: generic class 'Storage' does not conform to the 'Sendable' protocol
11 | /// The object associations managed by instances of this type maintain
12 | /// strong references to their objects, and are made non-atomically.
13 | class Storage<Value> {
| `- note: generic class 'Storage' does not conform to the 'Sendable' protocol
14 | private var key: UnsafeRawPointer {
15 | UnsafeRawPointer(Unmanaged.passUnretained(self).toOpaque())
Build complete! (8.68s)
Build complete.
{
"dependencies" : [
],
"manifest_display_name" : "ColorWell",
"name" : "ColorWell",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
{
"name" : "macos",
"version" : "10.13"
}
],
"products" : [
{
"name" : "ColorWell",
"targets" : [
"ColorWell"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "ColorWellTests",
"module_type" : "SwiftTarget",
"name" : "ColorWellTests",
"path" : "Tests/ColorWellTests",
"sources" : [
"ColorWellTests.swift"
],
"target_dependencies" : [
"ColorWell"
],
"type" : "test"
},
{
"c99name" : "ColorWell",
"module_type" : "SwiftTarget",
"name" : "ColorWell",
"path" : "Sources/ColorWell",
"product_memberships" : [
"ColorWell"
],
"sources" : [
"Utilities/ActionButton.swift",
"Utilities/Cache.swift",
"Utilities/ColorComponents.swift",
"Utilities/ConstructablePath.swift",
"Utilities/Deprecated.swift",
"Utilities/DrawingStyle.swift",
"Utilities/Extensions.swift",
"Utilities/Storage.swift",
"Views/Cocoa/ColorWell.swift",
"Views/Cocoa/ColorWellBaseView.swift",
"Views/Cocoa/ColorWellLayoutView.swift",
"Views/Cocoa/Popover/ColorSwatch.swift",
"Views/Cocoa/Popover/ColorWellPopover.swift",
"Views/Cocoa/Popover/ColorWellPopoverContainerView.swift",
"Views/Cocoa/Popover/ColorWellPopoverContext.swift",
"Views/Cocoa/Popover/ColorWellPopoverLayoutView.swift",
"Views/Cocoa/Popover/ColorWellPopoverSwatchView.swift",
"Views/Cocoa/Popover/ColorWellPopoverViewController.swift",
"Views/Cocoa/Segments/ColorWellBorderedSwatchSegment.swift",
"Views/Cocoa/Segments/ColorWellPullDownSwatchSegment.swift",
"Views/Cocoa/Segments/ColorWellSegment.swift",
"Views/Cocoa/Segments/ColorWellSwatchSegment.swift",
"Views/Cocoa/Segments/ColorWellToggleSegment.swift",
"Views/Cocoa/Style.swift",
"Views/SwiftUI/ColorWellConfiguration.swift",
"Views/SwiftUI/ColorWellRepresentable.swift",
"Views/SwiftUI/ColorWellStyle.swift",
"Views/SwiftUI/ColorWellView.swift",
"Views/SwiftUI/EnvironmentValues.swift",
"Views/SwiftUI/ViewModifiers.swift"
],
"type" : "library"
}
],
"tools_version" : "5.7"
}
✅ Doc result (pending) reported
========================================
GenerateDocs
========================================
Generating docs at path: $PWD/.docs/jordanbaird/colorwell/main
Repository: jordanbaird/ColorWell
Swift version used: 6.1
Target: ColorWell
Extracting symbol information for 'ColorWell'...
Finished extracting symbol information for 'ColorWell'. (5.48s)
Building documentation for 'ColorWell'...
Finished building documentation for 'ColorWell' (0.60s)
Generated documentation archive at:
/Users/admin/builder/spi-builder-workspace/.docs/jordanbaird/colorwell/main
Fetching https://github.com/swiftlang/swift-docc-plugin from cache
Fetched https://github.com/swiftlang/swift-docc-plugin from cache (0.45s)
Computing version for https://github.com/swiftlang/swift-docc-plugin
Computed https://github.com/swiftlang/swift-docc-plugin at 1.4.3 (1.04s)
Fetching https://github.com/swiftlang/swift-docc-symbolkit from cache
Fetched https://github.com/swiftlang/swift-docc-symbolkit from cache (0.71s)
Computing version for https://github.com/swiftlang/swift-docc-symbolkit
Computed https://github.com/swiftlang/swift-docc-symbolkit at 1.0.0 (1.35s)
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
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
Building for debugging...
[0/8] Write sources
[0/8] Write snippet-extract-tool-entitlement.plist
[0/8] Write sources
[4/8] Write swift-version-2F0A5646E1D333AE.txt
[6/53] Emitting module SymbolKit
[7/57] Compiling SymbolKit SemanticVersion.swift
[8/57] Compiling SymbolKit AccessControl.swift
[9/57] Compiling SymbolKit Availability.swift
[10/57] Compiling SymbolKit AvailabilityItem.swift
[11/57] Compiling SymbolKit Domain.swift
[12/57] Compiling SymbolKit DeclarationFragments.swift
[13/57] Compiling SymbolKit Fragment.swift
[14/57] Compiling SymbolKit FragmentKind.swift
[15/57] Compiling SymbolKit FunctionParameter.swift
[16/57] Compiling SymbolKit FunctionSignature.swift
[17/57] Compiling SymbolKit Identifier.swift
[18/57] Compiling SymbolKit KindIdentifier.swift
[19/57] Compiling SymbolKit Location.swift
[20/57] Compiling SymbolKit Mutability.swift
[21/57] Compiling SymbolKit Names.swift
[22/57] Compiling SymbolKit SPI.swift
[23/57] Compiling SymbolKit Snippet.swift
[24/57] Compiling SymbolKit Extension.swift
[25/57] Compiling SymbolKit Mixin+Equals.swift
[26/57] Compiling SymbolKit Mixin+Hash.swift
[27/57] Compiling SymbolKit Mixin.swift
[28/57] Compiling SymbolKit LineList.swift
[29/57] Compiling SymbolKit Position.swift
[30/57] Compiling SymbolKit SourceRange.swift
[31/57] Compiling SymbolKit Metadata.swift
[32/57] Compiling SymbolKit Module.swift
[33/57] Compiling SymbolKit OperatingSystem.swift
[34/57] Compiling SymbolKit Platform.swift
[35/57] Compiling SymbolKit Relationship.swift
[36/57] Compiling SymbolKit RelationshipKind.swift
[37/57] Compiling SymbolKit SourceOrigin.swift
[38/57] Compiling SymbolKit GenericConstraints.swift
[39/57] Compiling SymbolKit Swift.swift
[40/57] Compiling SymbolKit Symbol.swift
[41/57] Compiling SymbolKit SymbolKind.swift
[42/57] Compiling SymbolKit SymbolGraph.swift
[43/57] Compiling SymbolKit GraphCollector.swift
[44/57] Compiling SymbolKit GenericConstraint.swift
[45/57] Compiling SymbolKit GenericParameter.swift
[46/57] Compiling SymbolKit Generics.swift
[47/57] Compiling SymbolKit Namespace.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] Compiling Snippets Snippet.swift
[53/57] Compiling Snippets SnippetParser.swift
[54/57] Emitting module Snippets
[55/61] Compiling snippet_extract SymbolGraph+Snippet.swift
[56/61] Compiling snippet_extract URL+Status.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.27s)
Building for debugging...
[0/1] Write swift-version-2F0A5646E1D333AE.txt
[2/29] Compiling ColorWell ActionButton.swift
[3/29] Compiling ColorWell Cache.swift
[4/29] Compiling ColorWell ColorComponents.swift
[5/32] Compiling ColorWell ColorWellPopover.swift
[6/32] Compiling ColorWell ColorWellPopoverContainerView.swift
[7/32] Compiling ColorWell ColorWellPopoverContext.swift
[8/32] Compiling ColorWell ColorWellPopoverLayoutView.swift
[9/32] Compiling ColorWell ColorWellPopoverSwatchView.swift
[10/32] Compiling ColorWell ColorWellPopoverViewController.swift
[11/32] Emitting module ColorWell
[12/32] Compiling ColorWell ColorWellConfiguration.swift
[13/32] Compiling ColorWell ColorWellRepresentable.swift
[14/32] Compiling ColorWell ColorWellStyle.swift
[15/32] Compiling ColorWell ColorWellSwatchSegment.swift
[16/32] Compiling ColorWell ColorWellToggleSegment.swift
[17/32] Compiling ColorWell Style.swift
[18/32] Compiling ColorWell ColorWellBorderedSwatchSegment.swift
[19/32] Compiling ColorWell ColorWellPullDownSwatchSegment.swift
[20/32] Compiling ColorWell ColorWellSegment.swift
[21/32] Compiling ColorWell ColorWellBaseView.swift
[22/32] Compiling ColorWell ColorWellLayoutView.swift
[23/32] Compiling ColorWell ColorSwatch.swift
[24/32] Compiling ColorWell ColorWellView.swift
[25/32] Compiling ColorWell EnvironmentValues.swift
[26/32] Compiling ColorWell ViewModifiers.swift
[27/32] Compiling ColorWell Extensions.swift
[28/32] Compiling ColorWell Storage.swift
[29/32] Compiling ColorWell ColorWell.swift
[30/32] Compiling ColorWell ConstructablePath.swift
[31/32] Compiling ColorWell Deprecated.swift
[32/32] Compiling ColorWell DrawingStyle.swift
Build of target: 'ColorWell' complete! (1.66s)
1719
14 /Users/admin/builder/spi-builder-workspace/.docs/jordanbaird/colorwell/main
✅ Doc result (uploading) reported
========================================
SyncDocs
========================================
Doc archive source directory: $PWD/.docs/jordanbaird/colorwell/main
File count: 1719
Doc size: 14.0MB
Preparing doc bundle ...
Uploading prod-jordanbaird-colorwell-main-01e0208c.zip to s3://spi-docs-inbox/prod-jordanbaird-colorwell-main-01e0208c.zip
Copying... [11%]
Copying... [21%]
Copying... [30%]
Copying... [42%]
Copying... [51%]
Copying... [61%]
Copying... [70%]
Copying... [82%]
Copying... [91%]
Copying... [100%]
Done.