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