Build Information
Successful build of ColorWellKit with Swift 6.0 for macOS (SPM).
Swift 6 data race errors: 21
Build Command
env DEVELOPER_DIR=/Applications/Xcode-15.3.0.app xcrun --toolchain org.swift.600202405261a swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete
Build Log
========================================
RunAll
========================================
Builder version: 4.40.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/jordanbaird/ColorWellKit.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/jordanbaird/ColorWellKit
* branch main -> FETCH_HEAD
* [new branch] main -> origin/main
HEAD is now at 3fa347b Rework exclusivity lock
Cloned https://github.com/jordanbaird/ColorWellKit.git
Revision (git rev-parse @):
3fa347b87fe935a4e1a3fc728f87d3d25c6f8d52
SPI manifest file found: $workDir/.spi.yml
SUCCESS checkout https://github.com/jordanbaird/ColorWellKit.git at main
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 6.0
Building package at path: $workDir
https://github.com/jordanbaird/ColorWellKit.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-15.3.0.app xcrun --toolchain org.swift.600202405261a swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-6F35C1178C84523A.txt
[3/24] Emitting module ColorWellKit
/Users/admin/builder/spi-builder-workspace/Sources/ColorWellKit/Utilities/Logging.swift:30:16: warning: static property 'main' is not concurrency-safe because non-'Sendable' type 'LogCategory' may have shared mutable state; this is an error in the Swift 6 language mode
16 |
17 | /// A value that the logging system uses to filter log messages.
18 | struct LogCategory: RawRepresentable {
| `- note: consider making struct 'LogCategory' conform to the 'Sendable' protocol
19 | let rawValue: String
20 | let log: OSLog
:
28 | extension LogCategory {
29 | /// The main log category.
30 | static let main = LogCategory(rawValue: "main")
| |- warning: static property 'main' is not concurrency-safe because non-'Sendable' type 'LogCategory' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'main' 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
31 |
32 | /// The log category to use for the `CWColorWellPopover` type.
/Users/admin/builder/spi-builder-workspace/Sources/ColorWellKit/Utilities/Logging.swift:33:16: warning: static property 'popover' is not concurrency-safe because non-'Sendable' type 'LogCategory' may have shared mutable state; this is an error in the Swift 6 language mode
16 |
17 | /// A value that the logging system uses to filter log messages.
18 | struct LogCategory: RawRepresentable {
| `- note: consider making struct 'LogCategory' conform to the 'Sendable' protocol
19 | let rawValue: String
20 | let log: OSLog
:
31 |
32 | /// The log category to use for the `CWColorWellPopover` type.
33 | static let popover = LogCategory(rawValue: "CWColorWellPopover")
| |- warning: static property 'popover' is not concurrency-safe because non-'Sendable' type 'LogCategory' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'popover' 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
34 |
35 | /// The log category to use for the `CWColorComponents` type.
/Users/admin/builder/spi-builder-workspace/Sources/ColorWellKit/Utilities/Logging.swift:36:16: warning: static property 'components' is not concurrency-safe because non-'Sendable' type 'LogCategory' may have shared mutable state; this is an error in the Swift 6 language mode
16 |
17 | /// A value that the logging system uses to filter log messages.
18 | struct LogCategory: RawRepresentable {
| `- note: consider making struct 'LogCategory' conform to the 'Sendable' protocol
19 | let rawValue: String
20 | let log: OSLog
:
34 |
35 | /// The log category to use for the `CWColorComponents` type.
36 | static let components = LogCategory(rawValue: "CWColorComponents")
| |- warning: static property 'components' is not concurrency-safe because non-'Sendable' type 'LogCategory' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'components' 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
37 | }
38 |
/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:56:39: warning: cannot form key path to main actor-isolated property 'color'; this is an error in the Swift 6 language mode
54 |
55 | private static let colorPanelObservations: [NSKeyValueObservation] = [
56 | NSColorPanel.shared.observe(\.color) { colorPanel, _ in
| `- warning: cannot form key path to main actor-isolated property 'color'; this is an error in the Swift 6 language mode
57 | for case let colorWell as CWColorWell in colorPanel.attachedObjects {
58 | colorWell.updateColor(colorPanel.color, options: [
/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:65:39: warning: cannot form key path to main actor-isolated property 'isVisible'; this is an error in the Swift 6 language mode
63 | }
64 | },
65 | NSColorPanel.shared.observe(\.isVisible) { colorPanel, _ in
| `- warning: cannot form key path to main actor-isolated property 'isVisible'; this is an error in the Swift 6 language mode
66 | if !colorPanel.isVisible {
67 | for case let colorWell as CWColorWell in colorPanel.attachedObjects {
/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:157:25: note: property declared here
155 | @available(swift, obsoleted: 3, renamed: "isDocumentEdited")
156 | open var documentEdited: Bool { get set }
157 | @MainActor open var isVisible: Bool { get }
| `- note: property declared here
158 | @available(swift, obsoleted: 3, renamed: "isVisible")
159 | 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 non-isolated 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 non-isolated 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 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.
[5/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.
[6/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 }
[7/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 }
[8/26] Compiling ColorWellKit CWColorWellPopover.swift
/Users/admin/builder/spi-builder-workspace/Sources/ColorWellKit/Utilities/Logging.swift:33:16: warning: static property 'popover' is not concurrency-safe because non-'Sendable' type 'LogCategory' may have shared mutable state; this is an error in the Swift 6 language mode
16 |
17 | /// A value that the logging system uses to filter log messages.
18 | struct LogCategory: RawRepresentable {
| `- note: consider making struct 'LogCategory' conform to the 'Sendable' protocol
19 | let rawValue: String
20 | let log: OSLog
:
31 |
32 | /// The log category to use for the `CWColorWellPopover` type.
33 | static let popover = LogCategory(rawValue: "CWColorWellPopover")
| |- warning: static property 'popover' is not concurrency-safe because non-'Sendable' type 'LogCategory' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'popover' 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
34 |
35 | /// The log category to use for the `CWColorComponents` type.
/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.
[9/26] Compiling ColorWellKit CWColorWellSegment.swift
/Users/admin/builder/spi-builder-workspace/Sources/ColorWellKit/Utilities/Logging.swift:33:16: warning: static property 'popover' is not concurrency-safe because non-'Sendable' type 'LogCategory' may have shared mutable state; this is an error in the Swift 6 language mode
16 |
17 | /// A value that the logging system uses to filter log messages.
18 | struct LogCategory: RawRepresentable {
| `- note: consider making struct 'LogCategory' conform to the 'Sendable' protocol
19 | let rawValue: String
20 | let log: OSLog
:
31 |
32 | /// The log category to use for the `CWColorWellPopover` type.
33 | static let popover = LogCategory(rawValue: "CWColorWellPopover")
| |- warning: static property 'popover' is not concurrency-safe because non-'Sendable' type 'LogCategory' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'popover' 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
34 |
35 | /// The log category to use for the `CWColorComponents` type.
/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.
[10/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 non-isolated 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 non-isolated 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 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 non-isolated 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 non-isolated 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 |
[12/26] Compiling ColorWellKit Backports.swift
[13/26] Compiling ColorWellKit ColorPanelMode.swift
[14/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:49: warning: main actor-isolated property 'color' can not be referenced from a non-isolated 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 non-isolated 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 non-isolated 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 non-isolated 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 non-isolated 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 non-isolated 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 non-isolated 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 non-isolated 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 }
[15/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:49: warning: main actor-isolated property 'color' can not be referenced from a non-isolated 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 non-isolated 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 non-isolated 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 non-isolated 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 non-isolated 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 non-isolated 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 non-isolated 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 non-isolated 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 }
[16/26] Compiling ColorWellKit LocalEventMonitor.swift
/Users/admin/builder/spi-builder-workspace/Sources/ColorWellKit/Utilities/Logging.swift:30:16: warning: static property 'main' is not concurrency-safe because non-'Sendable' type 'LogCategory' may have shared mutable state; this is an error in the Swift 6 language mode
16 |
17 | /// A value that the logging system uses to filter log messages.
18 | struct LogCategory: RawRepresentable {
| `- note: consider making struct 'LogCategory' conform to the 'Sendable' protocol
19 | let rawValue: String
20 | let log: OSLog
:
28 | extension LogCategory {
29 | /// The main log category.
30 | static let main = LogCategory(rawValue: "main")
| |- warning: static property 'main' is not concurrency-safe because non-'Sendable' type 'LogCategory' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'main' 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
31 |
32 | /// The log category to use for the `CWColorWellPopover` type.
/Users/admin/builder/spi-builder-workspace/Sources/ColorWellKit/Utilities/Logging.swift:33:16: warning: static property 'popover' is not concurrency-safe because non-'Sendable' type 'LogCategory' may have shared mutable state; this is an error in the Swift 6 language mode
16 |
17 | /// A value that the logging system uses to filter log messages.
18 | struct LogCategory: RawRepresentable {
| `- note: consider making struct 'LogCategory' conform to the 'Sendable' protocol
19 | let rawValue: String
20 | let log: OSLog
:
31 |
32 | /// The log category to use for the `CWColorWellPopover` type.
33 | static let popover = LogCategory(rawValue: "CWColorWellPopover")
| |- warning: static property 'popover' is not concurrency-safe because non-'Sendable' type 'LogCategory' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'popover' 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
34 |
35 | /// The log category to use for the `CWColorComponents` type.
/Users/admin/builder/spi-builder-workspace/Sources/ColorWellKit/Utilities/Logging.swift:36:16: warning: static property 'components' is not concurrency-safe because non-'Sendable' type 'LogCategory' may have shared mutable state; this is an error in the Swift 6 language mode
16 |
17 | /// A value that the logging system uses to filter log messages.
18 | struct LogCategory: RawRepresentable {
| `- note: consider making struct 'LogCategory' conform to the 'Sendable' protocol
19 | let rawValue: String
20 | let log: OSLog
:
34 |
35 | /// The log category to use for the `CWColorComponents` type.
36 | static let components = LogCategory(rawValue: "CWColorComponents")
| |- warning: static property 'components' is not concurrency-safe because non-'Sendable' type 'LogCategory' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'components' 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
37 | }
38 |
[17/26] Compiling ColorWellKit LockedState.swift
/Users/admin/builder/spi-builder-workspace/Sources/ColorWellKit/Utilities/Logging.swift:30:16: warning: static property 'main' is not concurrency-safe because non-'Sendable' type 'LogCategory' may have shared mutable state; this is an error in the Swift 6 language mode
16 |
17 | /// A value that the logging system uses to filter log messages.
18 | struct LogCategory: RawRepresentable {
| `- note: consider making struct 'LogCategory' conform to the 'Sendable' protocol
19 | let rawValue: String
20 | let log: OSLog
:
28 | extension LogCategory {
29 | /// The main log category.
30 | static let main = LogCategory(rawValue: "main")
| |- warning: static property 'main' is not concurrency-safe because non-'Sendable' type 'LogCategory' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'main' 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
31 |
32 | /// The log category to use for the `CWColorWellPopover` type.
/Users/admin/builder/spi-builder-workspace/Sources/ColorWellKit/Utilities/Logging.swift:33:16: warning: static property 'popover' is not concurrency-safe because non-'Sendable' type 'LogCategory' may have shared mutable state; this is an error in the Swift 6 language mode
16 |
17 | /// A value that the logging system uses to filter log messages.
18 | struct LogCategory: RawRepresentable {
| `- note: consider making struct 'LogCategory' conform to the 'Sendable' protocol
19 | let rawValue: String
20 | let log: OSLog
:
31 |
32 | /// The log category to use for the `CWColorWellPopover` type.
33 | static let popover = LogCategory(rawValue: "CWColorWellPopover")
| |- warning: static property 'popover' is not concurrency-safe because non-'Sendable' type 'LogCategory' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'popover' 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
34 |
35 | /// The log category to use for the `CWColorComponents` type.
/Users/admin/builder/spi-builder-workspace/Sources/ColorWellKit/Utilities/Logging.swift:36:16: warning: static property 'components' is not concurrency-safe because non-'Sendable' type 'LogCategory' may have shared mutable state; this is an error in the Swift 6 language mode
16 |
17 | /// A value that the logging system uses to filter log messages.
18 | struct LogCategory: RawRepresentable {
| `- note: consider making struct 'LogCategory' conform to the 'Sendable' protocol
19 | let rawValue: String
20 | let log: OSLog
:
34 |
35 | /// The log category to use for the `CWColorComponents` type.
36 | static let components = LogCategory(rawValue: "CWColorComponents")
| |- warning: static property 'components' is not concurrency-safe because non-'Sendable' type 'LogCategory' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'components' 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
37 | }
38 |
[18/26] Compiling ColorWellKit Logging.swift
/Users/admin/builder/spi-builder-workspace/Sources/ColorWellKit/Utilities/Logging.swift:30:16: warning: static property 'main' is not concurrency-safe because non-'Sendable' type 'LogCategory' may have shared mutable state; this is an error in the Swift 6 language mode
16 |
17 | /// A value that the logging system uses to filter log messages.
18 | struct LogCategory: RawRepresentable {
| `- note: consider making struct 'LogCategory' conform to the 'Sendable' protocol
19 | let rawValue: String
20 | let log: OSLog
:
28 | extension LogCategory {
29 | /// The main log category.
30 | static let main = LogCategory(rawValue: "main")
| |- warning: static property 'main' is not concurrency-safe because non-'Sendable' type 'LogCategory' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'main' 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
31 |
32 | /// The log category to use for the `CWColorWellPopover` type.
/Users/admin/builder/spi-builder-workspace/Sources/ColorWellKit/Utilities/Logging.swift:33:16: warning: static property 'popover' is not concurrency-safe because non-'Sendable' type 'LogCategory' may have shared mutable state; this is an error in the Swift 6 language mode
16 |
17 | /// A value that the logging system uses to filter log messages.
18 | struct LogCategory: RawRepresentable {
| `- note: consider making struct 'LogCategory' conform to the 'Sendable' protocol
19 | let rawValue: String
20 | let log: OSLog
:
31 |
32 | /// The log category to use for the `CWColorWellPopover` type.
33 | static let popover = LogCategory(rawValue: "CWColorWellPopover")
| |- warning: static property 'popover' is not concurrency-safe because non-'Sendable' type 'LogCategory' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'popover' 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
34 |
35 | /// The log category to use for the `CWColorComponents` type.
/Users/admin/builder/spi-builder-workspace/Sources/ColorWellKit/Utilities/Logging.swift:36:16: warning: static property 'components' is not concurrency-safe because non-'Sendable' type 'LogCategory' may have shared mutable state; this is an error in the Swift 6 language mode
16 |
17 | /// A value that the logging system uses to filter log messages.
18 | struct LogCategory: RawRepresentable {
| `- note: consider making struct 'LogCategory' conform to the 'Sendable' protocol
19 | let rawValue: String
20 | let log: OSLog
:
34 |
35 | /// The log category to use for the `CWColorComponents` type.
36 | static let components = LogCategory(rawValue: "CWColorComponents")
| |- warning: static property 'components' is not concurrency-safe because non-'Sendable' type 'LogCategory' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'components' 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
37 | }
38 |
[19/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:56:39: warning: cannot form key path to main actor-isolated property 'color'; this is an error in the Swift 6 language mode
54 |
55 | private static let colorPanelObservations: [NSKeyValueObservation] = [
56 | NSColorPanel.shared.observe(\.color) { colorPanel, _ in
| `- warning: cannot form key path to main actor-isolated property 'color'; this is an error in the Swift 6 language mode
57 | for case let colorWell as CWColorWell in colorPanel.attachedObjects {
58 | colorWell.updateColor(colorPanel.color, options: [
/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:65:39: warning: cannot form key path to main actor-isolated property 'isVisible'; this is an error in the Swift 6 language mode
63 | }
64 | },
65 | NSColorPanel.shared.observe(\.isVisible) { colorPanel, _ in
| `- warning: cannot form key path to main actor-isolated property 'isVisible'; this is an error in the Swift 6 language mode
66 | if !colorPanel.isVisible {
67 | for case let colorWell as CWColorWell in colorPanel.attachedObjects {
/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:157:25: note: property declared here
155 | @available(swift, obsoleted: 3, renamed: "isDocumentEdited")
156 | open var documentEdited: Bool { get set }
157 | @MainActor open var isVisible: Bool { get }
| `- note: property declared here
158 | @available(swift, obsoleted: 3, renamed: "isVisible")
159 | 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 non-isolated 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 non-isolated 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 }
[20/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:56:39: warning: cannot form key path to main actor-isolated property 'color'; this is an error in the Swift 6 language mode
54 |
55 | private static let colorPanelObservations: [NSKeyValueObservation] = [
56 | NSColorPanel.shared.observe(\.color) { colorPanel, _ in
| `- warning: cannot form key path to main actor-isolated property 'color'; this is an error in the Swift 6 language mode
57 | for case let colorWell as CWColorWell in colorPanel.attachedObjects {
58 | colorWell.updateColor(colorPanel.color, options: [
/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:65:39: warning: cannot form key path to main actor-isolated property 'isVisible'; this is an error in the Swift 6 language mode
63 | }
64 | },
65 | NSColorPanel.shared.observe(\.isVisible) { colorPanel, _ in
| `- warning: cannot form key path to main actor-isolated property 'isVisible'; this is an error in the Swift 6 language mode
66 | if !colorPanel.isVisible {
67 | for case let colorWell as CWColorWell in colorPanel.attachedObjects {
/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:157:25: note: property declared here
155 | @available(swift, obsoleted: 3, renamed: "isDocumentEdited")
156 | open var documentEdited: Bool { get set }
157 | @MainActor open var isVisible: Bool { get }
| `- note: property declared here
158 | @available(swift, obsoleted: 3, renamed: "isVisible")
159 | 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 non-isolated 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 non-isolated 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 }
[21/26] Compiling ColorWellKit ColorHelpers.swift
/Users/admin/builder/spi-builder-workspace/Sources/ColorWellKit/Utilities/Logging.swift:36:16: warning: static property 'components' is not concurrency-safe because non-'Sendable' type 'LogCategory' may have shared mutable state; this is an error in the Swift 6 language mode
16 |
17 | /// A value that the logging system uses to filter log messages.
18 | struct LogCategory: RawRepresentable {
| `- note: consider making struct 'LogCategory' conform to the 'Sendable' protocol
19 | let rawValue: String
20 | let log: OSLog
:
34 |
35 | /// The log category to use for the `CWColorComponents` type.
36 | static let components = LogCategory(rawValue: "CWColorComponents")
| |- warning: static property 'components' is not concurrency-safe because non-'Sendable' type 'LogCategory' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'components' 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
37 | }
38 |
/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.
[22/26] Compiling ColorWellKit Extensions.swift
/Users/admin/builder/spi-builder-workspace/Sources/ColorWellKit/Utilities/Logging.swift:36:16: warning: static property 'components' is not concurrency-safe because non-'Sendable' type 'LogCategory' may have shared mutable state; this is an error in the Swift 6 language mode
16 |
17 | /// A value that the logging system uses to filter log messages.
18 | struct LogCategory: RawRepresentable {
| `- note: consider making struct 'LogCategory' conform to the 'Sendable' protocol
19 | let rawValue: String
20 | let log: OSLog
:
34 |
35 | /// The log category to use for the `CWColorComponents` type.
36 | static let components = LogCategory(rawValue: "CWColorComponents")
| |- warning: static property 'components' is not concurrency-safe because non-'Sendable' type 'LogCategory' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'components' 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
37 | }
38 |
/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.
[23/26] Compiling ColorWellKit Geometry.swift
/Users/admin/builder/spi-builder-workspace/Sources/ColorWellKit/Utilities/Logging.swift:36:16: warning: static property 'components' is not concurrency-safe because non-'Sendable' type 'LogCategory' may have shared mutable state; this is an error in the Swift 6 language mode
16 |
17 | /// A value that the logging system uses to filter log messages.
18 | struct LogCategory: RawRepresentable {
| `- note: consider making struct 'LogCategory' conform to the 'Sendable' protocol
19 | let rawValue: String
20 | let log: OSLog
:
34 |
35 | /// The log category to use for the `CWColorComponents` type.
36 | static let components = LogCategory(rawValue: "CWColorComponents")
| |- warning: static property 'components' is not concurrency-safe because non-'Sendable' type 'LogCategory' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'components' 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
37 | }
38 |
/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.
[24/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 non-isolated 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 non-isolated 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?
[25/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 non-isolated 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 non-isolated 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?
[26/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 non-isolated 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 non-isolated 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?
Build complete! (38.10s)
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"
}
Done.