Build Information
Successful build of AppKitUI, reference 0.9.7 (983f11), with Swift 6.1 for macOS (SPM) on 21 Apr 2026 03:42:24 UTC.
Swift 6 data race errors: 15
Build Command
env DEVELOPER_DIR=/Applications/Xcode-16.3.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCapturesBuild Log
[116/136] Compiling AppKitUI AppKitUI+TokenField.swift
/Users/admin/builder/spi-builder-workspace/Sources/AppKitUI/utils/Array+extensions.swift:35:21: warning: main actor-isolated property 'translatesAutoresizingMaskIntoConstraints' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
33 | /// - Parameter value: The value
34 | func translatesAutoresizingMaskIntoConstraints(_ value: Bool) {
35 | self.forEach { $0.translatesAutoresizingMaskIntoConstraints = false }
| `- warning: main actor-isolated property 'translatesAutoresizingMaskIntoConstraints' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
36 | }
37 | }
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSLayoutConstraint.h:276:16: note: mutation of this property is only permitted within the actor
274 | /* by default, the autoresizing mask on a view gives rise to constraints that fully determine the view's position. To do anything interesting with constraints, you need to turn that off. IB will turn it off.
275 | */
276 | @property BOOL translatesAutoresizingMaskIntoConstraints API_AVAILABLE(macos(10.7));
| `- note: mutation of this property is only permitted within the actor
277 |
278 | /* constraint based layout engages lazily when someone tries to use it. If you do all of your constraint set up in -updateConstraints, you might never even receive updateConstraints if no one makes a constraint. To fix this chicken and egg problem, override this method to return YES if your view needs the window to use constraint based layout.
[117/136] Compiling AppKitUI NSTokenField+appkitui.swift
/Users/admin/builder/spi-builder-workspace/Sources/AppKitUI/utils/Array+extensions.swift:35:21: warning: main actor-isolated property 'translatesAutoresizingMaskIntoConstraints' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
33 | /// - Parameter value: The value
34 | func translatesAutoresizingMaskIntoConstraints(_ value: Bool) {
35 | self.forEach { $0.translatesAutoresizingMaskIntoConstraints = false }
| `- warning: main actor-isolated property 'translatesAutoresizingMaskIntoConstraints' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
36 | }
37 | }
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSLayoutConstraint.h:276:16: note: mutation of this property is only permitted within the actor
274 | /* by default, the autoresizing mask on a view gives rise to constraints that fully determine the view's position. To do anything interesting with constraints, you need to turn that off. IB will turn it off.
275 | */
276 | @property BOOL translatesAutoresizingMaskIntoConstraints API_AVAILABLE(macos(10.7));
| `- note: mutation of this property is only permitted within the actor
277 |
278 | /* constraint based layout engages lazily when someone tries to use it. If you do all of your constraint set up in -updateConstraints, you might never even receive updateConstraints if no one makes a constraint. To fix this chicken and egg problem, override this method to return YES if your view needs the window to use constraint based layout.
[118/136] Compiling AppKitUI Array+extensions.swift
/Users/admin/builder/spi-builder-workspace/Sources/AppKitUI/utils/Array+extensions.swift:35:21: warning: main actor-isolated property 'translatesAutoresizingMaskIntoConstraints' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
33 | /// - Parameter value: The value
34 | func translatesAutoresizingMaskIntoConstraints(_ value: Bool) {
35 | self.forEach { $0.translatesAutoresizingMaskIntoConstraints = false }
| `- warning: main actor-isolated property 'translatesAutoresizingMaskIntoConstraints' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
36 | }
37 | }
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSLayoutConstraint.h:276:16: note: mutation of this property is only permitted within the actor
274 | /* by default, the autoresizing mask on a view gives rise to constraints that fully determine the view's position. To do anything interesting with constraints, you need to turn that off. IB will turn it off.
275 | */
276 | @property BOOL translatesAutoresizingMaskIntoConstraints API_AVAILABLE(macos(10.7));
| `- note: mutation of this property is only permitted within the actor
277 |
278 | /* constraint based layout engages lazily when someone tries to use it. If you do all of your constraint set up in -updateConstraints, you might never even receive updateConstraints if no one makes a constraint. To fix this chicken and egg problem, override this method to return YES if your view needs the window to use constraint based layout.
[119/136] Compiling AppKitUI CATransaction+extensions.swift
/Users/admin/builder/spi-builder-workspace/Sources/AppKitUI/utils/Array+extensions.swift:35:21: warning: main actor-isolated property 'translatesAutoresizingMaskIntoConstraints' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
33 | /// - Parameter value: The value
34 | func translatesAutoresizingMaskIntoConstraints(_ value: Bool) {
35 | self.forEach { $0.translatesAutoresizingMaskIntoConstraints = false }
| `- warning: main actor-isolated property 'translatesAutoresizingMaskIntoConstraints' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
36 | }
37 | }
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSLayoutConstraint.h:276:16: note: mutation of this property is only permitted within the actor
274 | /* by default, the autoresizing mask on a view gives rise to constraints that fully determine the view's position. To do anything interesting with constraints, you need to turn that off. IB will turn it off.
275 | */
276 | @property BOOL translatesAutoresizingMaskIntoConstraints API_AVAILABLE(macos(10.7));
| `- note: mutation of this property is only permitted within the actor
277 |
278 | /* constraint based layout engages lazily when someone tries to use it. If you do all of your constraint set up in -updateConstraints, you might never even receive updateConstraints if no one makes a constraint. To fix this chicken and egg problem, override this method to return YES if your view needs the window to use constraint based layout.
[120/136] Compiling AppKitUI DesignTime+PreviewBackport.swift
/Users/admin/builder/spi-builder-workspace/Sources/AppKitUI/utils/Array+extensions.swift:35:21: warning: main actor-isolated property 'translatesAutoresizingMaskIntoConstraints' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
33 | /// - Parameter value: The value
34 | func translatesAutoresizingMaskIntoConstraints(_ value: Bool) {
35 | self.forEach { $0.translatesAutoresizingMaskIntoConstraints = false }
| `- warning: main actor-isolated property 'translatesAutoresizingMaskIntoConstraints' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
36 | }
37 | }
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSLayoutConstraint.h:276:16: note: mutation of this property is only permitted within the actor
274 | /* by default, the autoresizing mask on a view gives rise to constraints that fully determine the view's position. To do anything interesting with constraints, you need to turn that off. IB will turn it off.
275 | */
276 | @property BOOL translatesAutoresizingMaskIntoConstraints API_AVAILABLE(macos(10.7));
| `- note: mutation of this property is only permitted within the actor
277 |
278 | /* constraint based layout engages lazily when someone tries to use it. If you do all of your constraint set up in -updateConstraints, you might never even receive updateConstraints if no one makes a constraint. To fix this chicken and egg problem, override this method to return YES if your view needs the window to use constraint based layout.
[121/136] Compiling AppKitUI FlowCollectionView.swift
/Users/admin/builder/spi-builder-workspace/Sources/AppKitUI/utils/Array+extensions.swift:35:21: warning: main actor-isolated property 'translatesAutoresizingMaskIntoConstraints' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
33 | /// - Parameter value: The value
34 | func translatesAutoresizingMaskIntoConstraints(_ value: Bool) {
35 | self.forEach { $0.translatesAutoresizingMaskIntoConstraints = false }
| `- warning: main actor-isolated property 'translatesAutoresizingMaskIntoConstraints' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
36 | }
37 | }
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSLayoutConstraint.h:276:16: note: mutation of this property is only permitted within the actor
274 | /* by default, the autoresizing mask on a view gives rise to constraints that fully determine the view's position. To do anything interesting with constraints, you need to turn that off. IB will turn it off.
275 | */
276 | @property BOOL translatesAutoresizingMaskIntoConstraints API_AVAILABLE(macos(10.7));
| `- note: mutation of this property is only permitted within the actor
277 |
278 | /* constraint based layout engages lazily when someone tries to use it. If you do all of your constraint set up in -updateConstraints, you might never even receive updateConstraints if no one makes a constraint. To fix this chicken and egg problem, override this method to return YES if your view needs the window to use constraint based layout.
[122/136] Compiling AppKitUI NSColor+extensions.swift
/Users/admin/builder/spi-builder-workspace/Sources/AppKitUI/utils/Array+extensions.swift:35:21: warning: main actor-isolated property 'translatesAutoresizingMaskIntoConstraints' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
33 | /// - Parameter value: The value
34 | func translatesAutoresizingMaskIntoConstraints(_ value: Bool) {
35 | self.forEach { $0.translatesAutoresizingMaskIntoConstraints = false }
| `- warning: main actor-isolated property 'translatesAutoresizingMaskIntoConstraints' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
36 | }
37 | }
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSLayoutConstraint.h:276:16: note: mutation of this property is only permitted within the actor
274 | /* by default, the autoresizing mask on a view gives rise to constraints that fully determine the view's position. To do anything interesting with constraints, you need to turn that off. IB will turn it off.
275 | */
276 | @property BOOL translatesAutoresizingMaskIntoConstraints API_AVAILABLE(macos(10.7));
| `- note: mutation of this property is only permitted within the actor
277 |
278 | /* constraint based layout engages lazily when someone tries to use it. If you do all of your constraint set up in -updateConstraints, you might never even receive updateConstraints if no one makes a constraint. To fix this chicken and egg problem, override this method to return YES if your view needs the window to use constraint based layout.
[123/136] Compiling AppKitUI NSCopying+extensions.swift
/Users/admin/builder/spi-builder-workspace/Sources/AppKitUI/utils/Array+extensions.swift:35:21: warning: main actor-isolated property 'translatesAutoresizingMaskIntoConstraints' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
33 | /// - Parameter value: The value
34 | func translatesAutoresizingMaskIntoConstraints(_ value: Bool) {
35 | self.forEach { $0.translatesAutoresizingMaskIntoConstraints = false }
| `- warning: main actor-isolated property 'translatesAutoresizingMaskIntoConstraints' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
36 | }
37 | }
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSLayoutConstraint.h:276:16: note: mutation of this property is only permitted within the actor
274 | /* by default, the autoresizing mask on a view gives rise to constraints that fully determine the view's position. To do anything interesting with constraints, you need to turn that off. IB will turn it off.
275 | */
276 | @property BOOL translatesAutoresizingMaskIntoConstraints API_AVAILABLE(macos(10.7));
| `- note: mutation of this property is only permitted within the actor
277 |
278 | /* constraint based layout engages lazily when someone tries to use it. If you do all of your constraint set up in -updateConstraints, you might never even receive updateConstraints if no one makes a constraint. To fix this chicken and egg problem, override this method to return YES if your view needs the window to use constraint based layout.
[124/136] Compiling AppKitUI NSButton+checkbox.swift
/Users/admin/builder/spi-builder-workspace/Sources/AppKitUI/custom-controls/AUIPageControl/AUIPageControl.swift:129:17: warning: call to main actor-isolated initializer 'init(pageCount:windowSize:initialPage:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
127 | public override func awakeFromNib() {
128 | super.awakeFromNib()
129 | let content = WindowedContent(pageCount: self.numberOfPages, windowSize: self.windowSize)
| `- warning: call to main actor-isolated initializer 'init(pageCount:windowSize:initialPage:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
130 | self.content = content
131 | self.indicatorsView = PageControlIndicatorsView(
/Users/admin/builder/spi-builder-workspace/Sources/AppKitUI/custom-controls/AUIPageControl/private/WindowedContent.swift:127:2: note: calls to initializer 'init(pageCount:windowSize:initialPage:)' from outside of its actor context are implicitly asynchronous
125 | @inlinable var windowIsAtRightEdge: Bool { self.window.upperBound == self.pageCount }
126 |
127 | init(pageCount: Int, windowSize: Int, initialPage: Int = 0) {
| `- note: calls to initializer 'init(pageCount:windowSize:initialPage:)' from outside of its actor context are implicitly asynchronous
128 |
129 | let windowSize = pageCount < windowSize ? pageCount : windowSize
/Users/admin/builder/spi-builder-workspace/Sources/AppKitUI/custom-controls/AUIPageControl/AUIPageControl.swift:129:49: warning: main actor-isolated property 'numberOfPages' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
40 |
41 | /// The number of pages in the control
42 | @IBInspectable @objc public dynamic var numberOfPages: Int = 6 {
| `- note: property declared here
43 | didSet {
44 | let content = WindowedContent(pageCount: self.numberOfPages, windowSize: self.windowSize, initialPage: self.currentPage)
:
127 | public override func awakeFromNib() {
128 | super.awakeFromNib()
129 | let content = WindowedContent(pageCount: self.numberOfPages, windowSize: self.windowSize)
| `- warning: main actor-isolated property 'numberOfPages' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
130 | self.content = content
131 | self.indicatorsView = PageControlIndicatorsView(
/Users/admin/builder/spi-builder-workspace/Sources/AppKitUI/custom-controls/AUIPageControl/AUIPageControl.swift:129:81: warning: main actor-isolated property 'windowSize' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
48 | }
49 | /// The window size
50 | @IBInspectable @objc public dynamic var windowSize: Int = 6
| `- note: property declared here
51 | /// The currently selected page
52 | @IBInspectable @objc public dynamic var currentPage: Int = 0 {
:
127 | public override func awakeFromNib() {
128 | super.awakeFromNib()
129 | let content = WindowedContent(pageCount: self.numberOfPages, windowSize: self.windowSize)
| `- warning: main actor-isolated property 'windowSize' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
130 | self.content = content
131 | self.indicatorsView = PageControlIndicatorsView(
/Users/admin/builder/spi-builder-workspace/Sources/AppKitUI/custom-controls/AUIPageControl/AUIPageControl.swift:130:8: warning: main actor-isolated property 'content' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
128 | super.awakeFromNib()
129 | let content = WindowedContent(pageCount: self.numberOfPages, windowSize: self.windowSize)
130 | self.content = content
| `- warning: main actor-isolated property 'content' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
131 | self.indicatorsView = PageControlIndicatorsView(
132 | content: content,
:
150 | private var indicatorsView: PageControlIndicatorsView?
151 | private var leadingConstraint: NSLayoutConstraint?
152 | private var content: WindowedContent?
| `- note: mutation of this property is only permitted within the actor
153 | private var enableDetector: NSKeyValueObservation?
154 | }
/Users/admin/builder/spi-builder-workspace/Sources/AppKitUI/custom-controls/AUIPageControl/AUIPageControl.swift:131:8: warning: main actor-isolated property 'indicatorsView' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
129 | let content = WindowedContent(pageCount: self.numberOfPages, windowSize: self.windowSize)
130 | self.content = content
131 | self.indicatorsView = PageControlIndicatorsView(
| `- warning: main actor-isolated property 'indicatorsView' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
132 | content: content,
133 | orientation: self.isHorizontal ? .horizontal : .vertical,
:
148 | }
149 |
150 | private var indicatorsView: PageControlIndicatorsView?
| `- note: mutation of this property is only permitted within the actor
151 | private var leadingConstraint: NSLayoutConstraint?
152 | private var content: WindowedContent?
/Users/admin/builder/spi-builder-workspace/Sources/AppKitUI/custom-controls/AUIPageControl/AUIPageControl.swift:131:25: warning: call to main actor-isolated initializer 'init(content:orientation:pageIndicatorSize:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
129 | let content = WindowedContent(pageCount: self.numberOfPages, windowSize: self.windowSize)
130 | self.content = content
131 | self.indicatorsView = PageControlIndicatorsView(
| `- warning: call to main actor-isolated initializer 'init(content:orientation:pageIndicatorSize:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
132 | content: content,
133 | orientation: self.isHorizontal ? .horizontal : .vertical,
/Users/admin/builder/spi-builder-workspace/Sources/AppKitUI/custom-controls/AUIPageControl/private/PageControlIndicatorsView.swift:35:2: note: calls to initializer 'init(content:orientation:pageIndicatorSize:)' from outside of its actor context are implicitly asynchronous
33 | let pageIndicatorSize: CGSize
34 |
35 | init(
| `- note: calls to initializer 'init(content:orientation:pageIndicatorSize:)' from outside of its actor context are implicitly asynchronous
36 | content: WindowedContent,
37 | orientation: NSUserInterfaceLayoutOrientation = .horizontal,
/Users/admin/builder/spi-builder-workspace/Sources/AppKitUI/custom-controls/AUIPageControl/AUIPageControl.swift:133:22: warning: main actor-isolated property 'isHorizontal' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
29 | @objc public class AUIPageControl: NSControl {
30 | /// Orientation
31 | @IBInspectable @objc public dynamic var isHorizontal: Bool = true
| `- note: property declared here
32 | /// Page indicator width
33 | @IBInspectable @objc public dynamic var pageIndicatorWidth: Double = AUIPageControlDefaultPageIndicatorSize.width
:
131 | self.indicatorsView = PageControlIndicatorsView(
132 | content: content,
133 | orientation: self.isHorizontal ? .horizontal : .vertical,
| `- warning: main actor-isolated property 'isHorizontal' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
134 | pageIndicatorSize: self.pageIndicatorSize
135 | )
/Users/admin/builder/spi-builder-workspace/Sources/AppKitUI/custom-controls/AUIPageControl/AUIPageControl.swift:134:28: warning: main actor-isolated property 'pageIndicatorSize' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
35 | @IBInspectable @objc public dynamic var pageIndicatorHeight: Double = AUIPageControlDefaultPageIndicatorSize.height
36 | /// The page indicator size
37 | private var pageIndicatorSize: CGSize {
| `- note: property declared here
38 | CGSize(width: self.pageIndicatorWidth, height: self.pageIndicatorHeight)
39 | }
:
132 | content: content,
133 | orientation: self.isHorizontal ? .horizontal : .vertical,
134 | pageIndicatorSize: self.pageIndicatorSize
| `- warning: main actor-isolated property 'pageIndicatorSize' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
135 | )
136 |
/Users/admin/builder/spi-builder-workspace/Sources/AppKitUI/custom-controls/AUIPageControl/AUIPageControl.swift:137:8: warning: call to main actor-isolated instance method 'setup()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
135 | )
136 |
137 | self.setup()
| `- warning: call to main actor-isolated instance method 'setup()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
138 | }
139 |
:
177 | }
178 |
179 | private func setup() {
| `- note: calls to instance method 'setup()' from outside of its actor context are implicitly asynchronous
180 | self.translatesAutoresizingMaskIntoConstraints = false
181 | self.wantsLayer = true
/Users/admin/builder/spi-builder-workspace/Sources/AppKitUI/custom-controls/AUIPageControl/private/PageControlIndicatorView.swift:22:13: warning: let '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
20 | import AppKit
21 |
22 | private let DefaultImage: NSImage = {
| |- warning: let 'DefaultImage' is not concurrency-safe because non-'Sendable' type 'NSImage' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make let 'DefaultImage' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
23 | let i: NSImage
24 | if #available(macOS 11.0, *) {
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSImage.h:66:12: note: class 'NSImage' does not conform to the 'Sendable' protocol
64 | __attribute__((objc_subclassing_restricted))
65 | #endif /* NSIMAGE_UNAVAILABLE_MACCATALYST */
66 | @interface NSImage : NSObject
| `- note: class 'NSImage' does not conform to the 'Sendable' protocol
67 |
68 | #pragma mark - Initialization
/Users/admin/builder/spi-builder-workspace/Sources/AppKitUI/custom-controls/AppKitUI+Image.swift:191:13: warning: let 'image1' is not concurrency-safe because non-'Sendable' type 'NSImage' may have shared mutable state; this is an error in the Swift 6 language mode
189 | #if DEBUG
190 |
191 | private let image1 = NSImage(named: NSImage.bonjourName)!
| |- warning: let 'image1' is not concurrency-safe because non-'Sendable' type 'NSImage' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make let 'image1' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
192 | private let image2 = NSImage(named: NSImage.computerName)!
193 |
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSImage.h:66:12: note: class 'NSImage' does not conform to the 'Sendable' protocol
64 | __attribute__((objc_subclassing_restricted))
65 | #endif /* NSIMAGE_UNAVAILABLE_MACCATALYST */
66 | @interface NSImage : NSObject
| `- note: class 'NSImage' does not conform to the 'Sendable' protocol
67 |
68 | #pragma mark - Initialization
/Users/admin/builder/spi-builder-workspace/Sources/AppKitUI/custom-controls/AppKitUI+Image.swift:192:13: warning: let 'image2' is not concurrency-safe because non-'Sendable' type 'NSImage' may have shared mutable state; this is an error in the Swift 6 language mode
190 |
191 | private let image1 = NSImage(named: NSImage.bonjourName)!
192 | private let image2 = NSImage(named: NSImage.computerName)!
| |- warning: let 'image2' is not concurrency-safe because non-'Sendable' type 'NSImage' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make let 'image2' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
193 |
194 | @available(macOS 14, *)
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSImage.h:66:12: note: class 'NSImage' does not conform to the 'Sendable' protocol
64 | __attribute__((objc_subclassing_restricted))
65 | #endif /* NSIMAGE_UNAVAILABLE_MACCATALYST */
66 | @interface NSImage : NSObject
| `- note: class 'NSImage' does not conform to the 'Sendable' protocol
67 |
68 | #pragma mark - Initialization
[125/136] Compiling AppKitUI NSButton+radio.swift
/Users/admin/builder/spi-builder-workspace/Sources/AppKitUI/custom-controls/AUIPageControl/AUIPageControl.swift:129:17: warning: call to main actor-isolated initializer 'init(pageCount:windowSize:initialPage:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
127 | public override func awakeFromNib() {
128 | super.awakeFromNib()
129 | let content = WindowedContent(pageCount: self.numberOfPages, windowSize: self.windowSize)
| `- warning: call to main actor-isolated initializer 'init(pageCount:windowSize:initialPage:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
130 | self.content = content
131 | self.indicatorsView = PageControlIndicatorsView(
/Users/admin/builder/spi-builder-workspace/Sources/AppKitUI/custom-controls/AUIPageControl/private/WindowedContent.swift:127:2: note: calls to initializer 'init(pageCount:windowSize:initialPage:)' from outside of its actor context are implicitly asynchronous
125 | @inlinable var windowIsAtRightEdge: Bool { self.window.upperBound == self.pageCount }
126 |
127 | init(pageCount: Int, windowSize: Int, initialPage: Int = 0) {
| `- note: calls to initializer 'init(pageCount:windowSize:initialPage:)' from outside of its actor context are implicitly asynchronous
128 |
129 | let windowSize = pageCount < windowSize ? pageCount : windowSize
/Users/admin/builder/spi-builder-workspace/Sources/AppKitUI/custom-controls/AUIPageControl/AUIPageControl.swift:129:49: warning: main actor-isolated property 'numberOfPages' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
40 |
41 | /// The number of pages in the control
42 | @IBInspectable @objc public dynamic var numberOfPages: Int = 6 {
| `- note: property declared here
43 | didSet {
44 | let content = WindowedContent(pageCount: self.numberOfPages, windowSize: self.windowSize, initialPage: self.currentPage)
:
127 | public override func awakeFromNib() {
128 | super.awakeFromNib()
129 | let content = WindowedContent(pageCount: self.numberOfPages, windowSize: self.windowSize)
| `- warning: main actor-isolated property 'numberOfPages' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
130 | self.content = content
131 | self.indicatorsView = PageControlIndicatorsView(
/Users/admin/builder/spi-builder-workspace/Sources/AppKitUI/custom-controls/AUIPageControl/AUIPageControl.swift:129:81: warning: main actor-isolated property 'windowSize' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
48 | }
49 | /// The window size
50 | @IBInspectable @objc public dynamic var windowSize: Int = 6
| `- note: property declared here
51 | /// The currently selected page
52 | @IBInspectable @objc public dynamic var currentPage: Int = 0 {
:
127 | public override func awakeFromNib() {
128 | super.awakeFromNib()
129 | let content = WindowedContent(pageCount: self.numberOfPages, windowSize: self.windowSize)
| `- warning: main actor-isolated property 'windowSize' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
130 | self.content = content
131 | self.indicatorsView = PageControlIndicatorsView(
/Users/admin/builder/spi-builder-workspace/Sources/AppKitUI/custom-controls/AUIPageControl/AUIPageControl.swift:130:8: warning: main actor-isolated property 'content' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
128 | super.awakeFromNib()
129 | let content = WindowedContent(pageCount: self.numberOfPages, windowSize: self.windowSize)
130 | self.content = content
| `- warning: main actor-isolated property 'content' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
131 | self.indicatorsView = PageControlIndicatorsView(
132 | content: content,
:
150 | private var indicatorsView: PageControlIndicatorsView?
151 | private var leadingConstraint: NSLayoutConstraint?
152 | private var content: WindowedContent?
| `- note: mutation of this property is only permitted within the actor
153 | private var enableDetector: NSKeyValueObservation?
154 | }
/Users/admin/builder/spi-builder-workspace/Sources/AppKitUI/custom-controls/AUIPageControl/AUIPageControl.swift:131:8: warning: main actor-isolated property 'indicatorsView' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
129 | let content = WindowedContent(pageCount: self.numberOfPages, windowSize: self.windowSize)
130 | self.content = content
131 | self.indicatorsView = PageControlIndicatorsView(
| `- warning: main actor-isolated property 'indicatorsView' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
132 | content: content,
133 | orientation: self.isHorizontal ? .horizontal : .vertical,
:
148 | }
149 |
150 | private var indicatorsView: PageControlIndicatorsView?
| `- note: mutation of this property is only permitted within the actor
151 | private var leadingConstraint: NSLayoutConstraint?
152 | private var content: WindowedContent?
/Users/admin/builder/spi-builder-workspace/Sources/AppKitUI/custom-controls/AUIPageControl/AUIPageControl.swift:131:25: warning: call to main actor-isolated initializer 'init(content:orientation:pageIndicatorSize:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
129 | let content = WindowedContent(pageCount: self.numberOfPages, windowSize: self.windowSize)
130 | self.content = content
131 | self.indicatorsView = PageControlIndicatorsView(
| `- warning: call to main actor-isolated initializer 'init(content:orientation:pageIndicatorSize:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
132 | content: content,
133 | orientation: self.isHorizontal ? .horizontal : .vertical,
/Users/admin/builder/spi-builder-workspace/Sources/AppKitUI/custom-controls/AUIPageControl/private/PageControlIndicatorsView.swift:35:2: note: calls to initializer 'init(content:orientation:pageIndicatorSize:)' from outside of its actor context are implicitly asynchronous
33 | let pageIndicatorSize: CGSize
34 |
35 | init(
| `- note: calls to initializer 'init(content:orientation:pageIndicatorSize:)' from outside of its actor context are implicitly asynchronous
36 | content: WindowedContent,
37 | orientation: NSUserInterfaceLayoutOrientation = .horizontal,
/Users/admin/builder/spi-builder-workspace/Sources/AppKitUI/custom-controls/AUIPageControl/AUIPageControl.swift:133:22: warning: main actor-isolated property 'isHorizontal' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
29 | @objc public class AUIPageControl: NSControl {
30 | /// Orientation
31 | @IBInspectable @objc public dynamic var isHorizontal: Bool = true
| `- note: property declared here
32 | /// Page indicator width
33 | @IBInspectable @objc public dynamic var pageIndicatorWidth: Double = AUIPageControlDefaultPageIndicatorSize.width
:
131 | self.indicatorsView = PageControlIndicatorsView(
132 | content: content,
133 | orientation: self.isHorizontal ? .horizontal : .vertical,
| `- warning: main actor-isolated property 'isHorizontal' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
134 | pageIndicatorSize: self.pageIndicatorSize
135 | )
/Users/admin/builder/spi-builder-workspace/Sources/AppKitUI/custom-controls/AUIPageControl/AUIPageControl.swift:134:28: warning: main actor-isolated property 'pageIndicatorSize' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
35 | @IBInspectable @objc public dynamic var pageIndicatorHeight: Double = AUIPageControlDefaultPageIndicatorSize.height
36 | /// The page indicator size
37 | private var pageIndicatorSize: CGSize {
| `- note: property declared here
38 | CGSize(width: self.pageIndicatorWidth, height: self.pageIndicatorHeight)
39 | }
:
132 | content: content,
133 | orientation: self.isHorizontal ? .horizontal : .vertical,
134 | pageIndicatorSize: self.pageIndicatorSize
| `- warning: main actor-isolated property 'pageIndicatorSize' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
135 | )
136 |
/Users/admin/builder/spi-builder-workspace/Sources/AppKitUI/custom-controls/AUIPageControl/AUIPageControl.swift:137:8: warning: call to main actor-isolated instance method 'setup()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
135 | )
136 |
137 | self.setup()
| `- warning: call to main actor-isolated instance method 'setup()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
138 | }
139 |
:
177 | }
178 |
179 | private func setup() {
| `- note: calls to instance method 'setup()' from outside of its actor context are implicitly asynchronous
180 | self.translatesAutoresizingMaskIntoConstraints = false
181 | self.wantsLayer = true
/Users/admin/builder/spi-builder-workspace/Sources/AppKitUI/custom-controls/AUIPageControl/private/PageControlIndicatorView.swift:22:13: warning: let '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
20 | import AppKit
21 |
22 | private let DefaultImage: NSImage = {
| |- warning: let 'DefaultImage' is not concurrency-safe because non-'Sendable' type 'NSImage' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make let 'DefaultImage' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
23 | let i: NSImage
24 | if #available(macOS 11.0, *) {
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSImage.h:66:12: note: class 'NSImage' does not conform to the 'Sendable' protocol
64 | __attribute__((objc_subclassing_restricted))
65 | #endif /* NSIMAGE_UNAVAILABLE_MACCATALYST */
66 | @interface NSImage : NSObject
| `- note: class 'NSImage' does not conform to the 'Sendable' protocol
67 |
68 | #pragma mark - Initialization
/Users/admin/builder/spi-builder-workspace/Sources/AppKitUI/custom-controls/AppKitUI+Image.swift:191:13: warning: let 'image1' is not concurrency-safe because non-'Sendable' type 'NSImage' may have shared mutable state; this is an error in the Swift 6 language mode
189 | #if DEBUG
190 |
191 | private let image1 = NSImage(named: NSImage.bonjourName)!
| |- warning: let 'image1' is not concurrency-safe because non-'Sendable' type 'NSImage' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make let 'image1' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
192 | private let image2 = NSImage(named: NSImage.computerName)!
193 |
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSImage.h:66:12: note: class 'NSImage' does not conform to the 'Sendable' protocol
64 | __attribute__((objc_subclassing_restricted))
65 | #endif /* NSIMAGE_UNAVAILABLE_MACCATALYST */
66 | @interface NSImage : NSObject
| `- note: class 'NSImage' does not conform to the 'Sendable' protocol
67 |
68 | #pragma mark - Initialization
/Users/admin/builder/spi-builder-workspace/Sources/AppKitUI/custom-controls/AppKitUI+Image.swift:192:13: warning: let 'image2' is not concurrency-safe because non-'Sendable' type 'NSImage' may have shared mutable state; this is an error in the Swift 6 language mode
190 |
191 | private let image1 = NSImage(named: NSImage.bonjourName)!
192 | private let image2 = NSImage(named: NSImage.computerName)!
| |- warning: let 'image2' is not concurrency-safe because non-'Sendable' type 'NSImage' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make let 'image2' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
193 |
194 | @available(macOS 14, *)
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSImage.h:66:12: note: class 'NSImage' does not conform to the 'Sendable' protocol
64 | __attribute__((objc_subclassing_restricted))
65 | #endif /* NSIMAGE_UNAVAILABLE_MACCATALYST */
66 | @interface NSImage : NSObject
| `- note: class 'NSImage' does not conform to the 'Sendable' protocol
67 |
68 | #pragma mark - Initialization
[126/136] Compiling AppKitUI AUIPageControl+SwiftUI.swift
/Users/admin/builder/spi-builder-workspace/Sources/AppKitUI/custom-controls/AUIPageControl/AUIPageControl.swift:129:17: warning: call to main actor-isolated initializer 'init(pageCount:windowSize:initialPage:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
127 | public override func awakeFromNib() {
128 | super.awakeFromNib()
129 | let content = WindowedContent(pageCount: self.numberOfPages, windowSize: self.windowSize)
| `- warning: call to main actor-isolated initializer 'init(pageCount:windowSize:initialPage:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
130 | self.content = content
131 | self.indicatorsView = PageControlIndicatorsView(
/Users/admin/builder/spi-builder-workspace/Sources/AppKitUI/custom-controls/AUIPageControl/private/WindowedContent.swift:127:2: note: calls to initializer 'init(pageCount:windowSize:initialPage:)' from outside of its actor context are implicitly asynchronous
125 | @inlinable var windowIsAtRightEdge: Bool { self.window.upperBound == self.pageCount }
126 |
127 | init(pageCount: Int, windowSize: Int, initialPage: Int = 0) {
| `- note: calls to initializer 'init(pageCount:windowSize:initialPage:)' from outside of its actor context are implicitly asynchronous
128 |
129 | let windowSize = pageCount < windowSize ? pageCount : windowSize
/Users/admin/builder/spi-builder-workspace/Sources/AppKitUI/custom-controls/AUIPageControl/AUIPageControl.swift:129:49: warning: main actor-isolated property 'numberOfPages' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
40 |
41 | /// The number of pages in the control
42 | @IBInspectable @objc public dynamic var numberOfPages: Int = 6 {
| `- note: property declared here
43 | didSet {
44 | let content = WindowedContent(pageCount: self.numberOfPages, windowSize: self.windowSize, initialPage: self.currentPage)
:
127 | public override func awakeFromNib() {
128 | super.awakeFromNib()
129 | let content = WindowedContent(pageCount: self.numberOfPages, windowSize: self.windowSize)
| `- warning: main actor-isolated property 'numberOfPages' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
130 | self.content = content
131 | self.indicatorsView = PageControlIndicatorsView(
/Users/admin/builder/spi-builder-workspace/Sources/AppKitUI/custom-controls/AUIPageControl/AUIPageControl.swift:129:81: warning: main actor-isolated property 'windowSize' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
48 | }
49 | /// The window size
50 | @IBInspectable @objc public dynamic var windowSize: Int = 6
| `- note: property declared here
51 | /// The currently selected page
52 | @IBInspectable @objc public dynamic var currentPage: Int = 0 {
:
127 | public override func awakeFromNib() {
128 | super.awakeFromNib()
129 | let content = WindowedContent(pageCount: self.numberOfPages, windowSize: self.windowSize)
| `- warning: main actor-isolated property 'windowSize' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
130 | self.content = content
131 | self.indicatorsView = PageControlIndicatorsView(
/Users/admin/builder/spi-builder-workspace/Sources/AppKitUI/custom-controls/AUIPageControl/AUIPageControl.swift:130:8: warning: main actor-isolated property 'content' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
128 | super.awakeFromNib()
129 | let content = WindowedContent(pageCount: self.numberOfPages, windowSize: self.windowSize)
130 | self.content = content
| `- warning: main actor-isolated property 'content' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
131 | self.indicatorsView = PageControlIndicatorsView(
132 | content: content,
:
150 | private var indicatorsView: PageControlIndicatorsView?
151 | private var leadingConstraint: NSLayoutConstraint?
152 | private var content: WindowedContent?
| `- note: mutation of this property is only permitted within the actor
153 | private var enableDetector: NSKeyValueObservation?
154 | }
/Users/admin/builder/spi-builder-workspace/Sources/AppKitUI/custom-controls/AUIPageControl/AUIPageControl.swift:131:8: warning: main actor-isolated property 'indicatorsView' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
129 | let content = WindowedContent(pageCount: self.numberOfPages, windowSize: self.windowSize)
130 | self.content = content
131 | self.indicatorsView = PageControlIndicatorsView(
| `- warning: main actor-isolated property 'indicatorsView' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
132 | content: content,
133 | orientation: self.isHorizontal ? .horizontal : .vertical,
:
148 | }
149 |
150 | private var indicatorsView: PageControlIndicatorsView?
| `- note: mutation of this property is only permitted within the actor
151 | private var leadingConstraint: NSLayoutConstraint?
152 | private var content: WindowedContent?
/Users/admin/builder/spi-builder-workspace/Sources/AppKitUI/custom-controls/AUIPageControl/AUIPageControl.swift:131:25: warning: call to main actor-isolated initializer 'init(content:orientation:pageIndicatorSize:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
129 | let content = WindowedContent(pageCount: self.numberOfPages, windowSize: self.windowSize)
130 | self.content = content
131 | self.indicatorsView = PageControlIndicatorsView(
| `- warning: call to main actor-isolated initializer 'init(content:orientation:pageIndicatorSize:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
132 | content: content,
133 | orientation: self.isHorizontal ? .horizontal : .vertical,
/Users/admin/builder/spi-builder-workspace/Sources/AppKitUI/custom-controls/AUIPageControl/private/PageControlIndicatorsView.swift:35:2: note: calls to initializer 'init(content:orientation:pageIndicatorSize:)' from outside of its actor context are implicitly asynchronous
33 | let pageIndicatorSize: CGSize
34 |
35 | init(
| `- note: calls to initializer 'init(content:orientation:pageIndicatorSize:)' from outside of its actor context are implicitly asynchronous
36 | content: WindowedContent,
37 | orientation: NSUserInterfaceLayoutOrientation = .horizontal,
/Users/admin/builder/spi-builder-workspace/Sources/AppKitUI/custom-controls/AUIPageControl/AUIPageControl.swift:133:22: warning: main actor-isolated property 'isHorizontal' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
29 | @objc public class AUIPageControl: NSControl {
30 | /// Orientation
31 | @IBInspectable @objc public dynamic var isHorizontal: Bool = true
| `- note: property declared here
32 | /// Page indicator width
33 | @IBInspectable @objc public dynamic var pageIndicatorWidth: Double = AUIPageControlDefaultPageIndicatorSize.width
:
131 | self.indicatorsView = PageControlIndicatorsView(
132 | content: content,
133 | orientation: self.isHorizontal ? .horizontal : .vertical,
| `- warning: main actor-isolated property 'isHorizontal' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
134 | pageIndicatorSize: self.pageIndicatorSize
135 | )
/Users/admin/builder/spi-builder-workspace/Sources/AppKitUI/custom-controls/AUIPageControl/AUIPageControl.swift:134:28: warning: main actor-isolated property 'pageIndicatorSize' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
35 | @IBInspectable @objc public dynamic var pageIndicatorHeight: Double = AUIPageControlDefaultPageIndicatorSize.height
36 | /// The page indicator size
37 | private var pageIndicatorSize: CGSize {
| `- note: property declared here
38 | CGSize(width: self.pageIndicatorWidth, height: self.pageIndicatorHeight)
39 | }
:
132 | content: content,
133 | orientation: self.isHorizontal ? .horizontal : .vertical,
134 | pageIndicatorSize: self.pageIndicatorSize
| `- warning: main actor-isolated property 'pageIndicatorSize' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
135 | )
136 |
/Users/admin/builder/spi-builder-workspace/Sources/AppKitUI/custom-controls/AUIPageControl/AUIPageControl.swift:137:8: warning: call to main actor-isolated instance method 'setup()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
135 | )
136 |
137 | self.setup()
| `- warning: call to main actor-isolated instance method 'setup()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
138 | }
139 |
:
177 | }
178 |
179 | private func setup() {
| `- note: calls to instance method 'setup()' from outside of its actor context are implicitly asynchronous
180 | self.translatesAutoresizingMaskIntoConstraints = false
181 | self.wantsLayer = true
/Users/admin/builder/spi-builder-workspace/Sources/AppKitUI/custom-controls/AUIPageControl/private/PageControlIndicatorView.swift:22:13: warning: let '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
20 | import AppKit
21 |
22 | private let DefaultImage: NSImage = {
| |- warning: let 'DefaultImage' is not concurrency-safe because non-'Sendable' type 'NSImage' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make let 'DefaultImage' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
23 | let i: NSImage
24 | if #available(macOS 11.0, *) {
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSImage.h:66:12: note: class 'NSImage' does not conform to the 'Sendable' protocol
64 | __attribute__((objc_subclassing_restricted))
65 | #endif /* NSIMAGE_UNAVAILABLE_MACCATALYST */
66 | @interface NSImage : NSObject
| `- note: class 'NSImage' does not conform to the 'Sendable' protocol
67 |
68 | #pragma mark - Initialization
/Users/admin/builder/spi-builder-workspace/Sources/AppKitUI/custom-controls/AppKitUI+Image.swift:191:13: warning: let 'image1' is not concurrency-safe because non-'Sendable' type 'NSImage' may have shared mutable state; this is an error in the Swift 6 language mode
189 | #if DEBUG
190 |
191 | private let image1 = NSImage(named: NSImage.bonjourName)!
| |- warning: let 'image1' is not concurrency-safe because non-'Sendable' type 'NSImage' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make let 'image1' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
192 | private let image2 = NSImage(named: NSImage.computerName)!
193 |
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSImage.h:66:12: note: class 'NSImage' does not conform to the 'Sendable' protocol
64 | __attribute__((objc_subclassing_restricted))
65 | #endif /* NSIMAGE_UNAVAILABLE_MACCATALYST */
66 | @interface NSImage : NSObject
| `- note: class 'NSImage' does not conform to the 'Sendable' protocol
67 |
68 | #pragma mark - Initialization
/Users/admin/builder/spi-builder-workspace/Sources/AppKitUI/custom-controls/AppKitUI+Image.swift:192:13: warning: let 'image2' is not concurrency-safe because non-'Sendable' type 'NSImage' may have shared mutable state; this is an error in the Swift 6 language mode
190 |
191 | private let image1 = NSImage(named: NSImage.bonjourName)!
192 | private let image2 = NSImage(named: NSImage.computerName)!
| |- warning: let 'image2' is not concurrency-safe because non-'Sendable' type 'NSImage' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make let 'image2' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
193 |
194 | @available(macOS 14, *)
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSImage.h:66:12: note: class 'NSImage' does not conform to the 'Sendable' protocol
64 | __attribute__((objc_subclassing_restricted))
65 | #endif /* NSIMAGE_UNAVAILABLE_MACCATALYST */
66 | @interface NSImage : NSObject
| `- note: class 'NSImage' does not conform to the 'Sendable' protocol
67 |
68 | #pragma mark - Initialization
[127/136] Compiling AppKitUI AUIPageControl.swift
/Users/admin/builder/spi-builder-workspace/Sources/AppKitUI/custom-controls/AUIPageControl/AUIPageControl.swift:129:17: warning: call to main actor-isolated initializer 'init(pageCount:windowSize:initialPage:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
127 | public override func awakeFromNib() {
128 | super.awakeFromNib()
129 | let content = WindowedContent(pageCount: self.numberOfPages, windowSize: self.windowSize)
| `- warning: call to main actor-isolated initializer 'init(pageCount:windowSize:initialPage:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
130 | self.content = content
131 | self.indicatorsView = PageControlIndicatorsView(
/Users/admin/builder/spi-builder-workspace/Sources/AppKitUI/custom-controls/AUIPageControl/private/WindowedContent.swift:127:2: note: calls to initializer 'init(pageCount:windowSize:initialPage:)' from outside of its actor context are implicitly asynchronous
125 | @inlinable var windowIsAtRightEdge: Bool { self.window.upperBound == self.pageCount }
126 |
127 | init(pageCount: Int, windowSize: Int, initialPage: Int = 0) {
| `- note: calls to initializer 'init(pageCount:windowSize:initialPage:)' from outside of its actor context are implicitly asynchronous
128 |
129 | let windowSize = pageCount < windowSize ? pageCount : windowSize
/Users/admin/builder/spi-builder-workspace/Sources/AppKitUI/custom-controls/AUIPageControl/AUIPageControl.swift:129:49: warning: main actor-isolated property 'numberOfPages' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
40 |
41 | /// The number of pages in the control
42 | @IBInspectable @objc public dynamic var numberOfPages: Int = 6 {
| `- note: property declared here
43 | didSet {
44 | let content = WindowedContent(pageCount: self.numberOfPages, windowSize: self.windowSize, initialPage: self.currentPage)
:
127 | public override func awakeFromNib() {
128 | super.awakeFromNib()
129 | let content = WindowedContent(pageCount: self.numberOfPages, windowSize: self.windowSize)
| `- warning: main actor-isolated property 'numberOfPages' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
130 | self.content = content
131 | self.indicatorsView = PageControlIndicatorsView(
/Users/admin/builder/spi-builder-workspace/Sources/AppKitUI/custom-controls/AUIPageControl/AUIPageControl.swift:129:81: warning: main actor-isolated property 'windowSize' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
48 | }
49 | /// The window size
50 | @IBInspectable @objc public dynamic var windowSize: Int = 6
| `- note: property declared here
51 | /// The currently selected page
52 | @IBInspectable @objc public dynamic var currentPage: Int = 0 {
:
127 | public override func awakeFromNib() {
128 | super.awakeFromNib()
129 | let content = WindowedContent(pageCount: self.numberOfPages, windowSize: self.windowSize)
| `- warning: main actor-isolated property 'windowSize' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
130 | self.content = content
131 | self.indicatorsView = PageControlIndicatorsView(
/Users/admin/builder/spi-builder-workspace/Sources/AppKitUI/custom-controls/AUIPageControl/AUIPageControl.swift:130:8: warning: main actor-isolated property 'content' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
128 | super.awakeFromNib()
129 | let content = WindowedContent(pageCount: self.numberOfPages, windowSize: self.windowSize)
130 | self.content = content
| `- warning: main actor-isolated property 'content' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
131 | self.indicatorsView = PageControlIndicatorsView(
132 | content: content,
:
150 | private var indicatorsView: PageControlIndicatorsView?
151 | private var leadingConstraint: NSLayoutConstraint?
152 | private var content: WindowedContent?
| `- note: mutation of this property is only permitted within the actor
153 | private var enableDetector: NSKeyValueObservation?
154 | }
/Users/admin/builder/spi-builder-workspace/Sources/AppKitUI/custom-controls/AUIPageControl/AUIPageControl.swift:131:8: warning: main actor-isolated property 'indicatorsView' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
129 | let content = WindowedContent(pageCount: self.numberOfPages, windowSize: self.windowSize)
130 | self.content = content
131 | self.indicatorsView = PageControlIndicatorsView(
| `- warning: main actor-isolated property 'indicatorsView' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
132 | content: content,
133 | orientation: self.isHorizontal ? .horizontal : .vertical,
:
148 | }
149 |
150 | private var indicatorsView: PageControlIndicatorsView?
| `- note: mutation of this property is only permitted within the actor
151 | private var leadingConstraint: NSLayoutConstraint?
152 | private var content: WindowedContent?
/Users/admin/builder/spi-builder-workspace/Sources/AppKitUI/custom-controls/AUIPageControl/AUIPageControl.swift:131:25: warning: call to main actor-isolated initializer 'init(content:orientation:pageIndicatorSize:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
129 | let content = WindowedContent(pageCount: self.numberOfPages, windowSize: self.windowSize)
130 | self.content = content
131 | self.indicatorsView = PageControlIndicatorsView(
| `- warning: call to main actor-isolated initializer 'init(content:orientation:pageIndicatorSize:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
132 | content: content,
133 | orientation: self.isHorizontal ? .horizontal : .vertical,
/Users/admin/builder/spi-builder-workspace/Sources/AppKitUI/custom-controls/AUIPageControl/private/PageControlIndicatorsView.swift:35:2: note: calls to initializer 'init(content:orientation:pageIndicatorSize:)' from outside of its actor context are implicitly asynchronous
33 | let pageIndicatorSize: CGSize
34 |
35 | init(
| `- note: calls to initializer 'init(content:orientation:pageIndicatorSize:)' from outside of its actor context are implicitly asynchronous
36 | content: WindowedContent,
37 | orientation: NSUserInterfaceLayoutOrientation = .horizontal,
/Users/admin/builder/spi-builder-workspace/Sources/AppKitUI/custom-controls/AUIPageControl/AUIPageControl.swift:133:22: warning: main actor-isolated property 'isHorizontal' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
29 | @objc public class AUIPageControl: NSControl {
30 | /// Orientation
31 | @IBInspectable @objc public dynamic var isHorizontal: Bool = true
| `- note: property declared here
32 | /// Page indicator width
33 | @IBInspectable @objc public dynamic var pageIndicatorWidth: Double = AUIPageControlDefaultPageIndicatorSize.width
:
131 | self.indicatorsView = PageControlIndicatorsView(
132 | content: content,
133 | orientation: self.isHorizontal ? .horizontal : .vertical,
| `- warning: main actor-isolated property 'isHorizontal' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
134 | pageIndicatorSize: self.pageIndicatorSize
135 | )
/Users/admin/builder/spi-builder-workspace/Sources/AppKitUI/custom-controls/AUIPageControl/AUIPageControl.swift:134:28: warning: main actor-isolated property 'pageIndicatorSize' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
35 | @IBInspectable @objc public dynamic var pageIndicatorHeight: Double = AUIPageControlDefaultPageIndicatorSize.height
36 | /// The page indicator size
37 | private var pageIndicatorSize: CGSize {
| `- note: property declared here
38 | CGSize(width: self.pageIndicatorWidth, height: self.pageIndicatorHeight)
39 | }
:
132 | content: content,
133 | orientation: self.isHorizontal ? .horizontal : .vertical,
134 | pageIndicatorSize: self.pageIndicatorSize
| `- warning: main actor-isolated property 'pageIndicatorSize' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
135 | )
136 |
/Users/admin/builder/spi-builder-workspace/Sources/AppKitUI/custom-controls/AUIPageControl/AUIPageControl.swift:137:8: warning: call to main actor-isolated instance method 'setup()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
135 | )
136 |
137 | self.setup()
| `- warning: call to main actor-isolated instance method 'setup()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
138 | }
139 |
:
177 | }
178 |
179 | private func setup() {
| `- note: calls to instance method 'setup()' from outside of its actor context are implicitly asynchronous
180 | self.translatesAutoresizingMaskIntoConstraints = false
181 | self.wantsLayer = true
/Users/admin/builder/spi-builder-workspace/Sources/AppKitUI/custom-controls/AUIPageControl/private/PageControlIndicatorView.swift:22:13: warning: let '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
20 | import AppKit
21 |
22 | private let DefaultImage: NSImage = {
| |- warning: let 'DefaultImage' is not concurrency-safe because non-'Sendable' type 'NSImage' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make let 'DefaultImage' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
23 | let i: NSImage
24 | if #available(macOS 11.0, *) {
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSImage.h:66:12: note: class 'NSImage' does not conform to the 'Sendable' protocol
64 | __attribute__((objc_subclassing_restricted))
65 | #endif /* NSIMAGE_UNAVAILABLE_MACCATALYST */
66 | @interface NSImage : NSObject
| `- note: class 'NSImage' does not conform to the 'Sendable' protocol
67 |
68 | #pragma mark - Initialization
/Users/admin/builder/spi-builder-workspace/Sources/AppKitUI/custom-controls/AppKitUI+Image.swift:191:13: warning: let 'image1' is not concurrency-safe because non-'Sendable' type 'NSImage' may have shared mutable state; this is an error in the Swift 6 language mode
189 | #if DEBUG
190 |
191 | private let image1 = NSImage(named: NSImage.bonjourName)!
| |- warning: let 'image1' is not concurrency-safe because non-'Sendable' type 'NSImage' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make let 'image1' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
192 | private let image2 = NSImage(named: NSImage.computerName)!
193 |
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSImage.h:66:12: note: class 'NSImage' does not conform to the 'Sendable' protocol
64 | __attribute__((objc_subclassing_restricted))
65 | #endif /* NSIMAGE_UNAVAILABLE_MACCATALYST */
66 | @interface NSImage : NSObject
| `- note: class 'NSImage' does not conform to the 'Sendable' protocol
67 |
68 | #pragma mark - Initialization
/Users/admin/builder/spi-builder-workspace/Sources/AppKitUI/custom-controls/AppKitUI+Image.swift:192:13: warning: let 'image2' is not concurrency-safe because non-'Sendable' type 'NSImage' may have shared mutable state; this is an error in the Swift 6 language mode
190 |
191 | private let image1 = NSImage(named: NSImage.bonjourName)!
192 | private let image2 = NSImage(named: NSImage.computerName)!
| |- warning: let 'image2' is not concurrency-safe because non-'Sendable' type 'NSImage' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make let 'image2' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
193 |
194 | @available(macOS 14, *)
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSImage.h:66:12: note: class 'NSImage' does not conform to the 'Sendable' protocol
64 | __attribute__((objc_subclassing_restricted))
65 | #endif /* NSIMAGE_UNAVAILABLE_MACCATALYST */
66 | @interface NSImage : NSObject
| `- note: class 'NSImage' does not conform to the 'Sendable' protocol
67 |
68 | #pragma mark - Initialization
[128/136] Compiling AppKitUI PageControlIndicatorView.swift
/Users/admin/builder/spi-builder-workspace/Sources/AppKitUI/custom-controls/AUIPageControl/AUIPageControl.swift:129:17: warning: call to main actor-isolated initializer 'init(pageCount:windowSize:initialPage:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
127 | public override func awakeFromNib() {
128 | super.awakeFromNib()
129 | let content = WindowedContent(pageCount: self.numberOfPages, windowSize: self.windowSize)
| `- warning: call to main actor-isolated initializer 'init(pageCount:windowSize:initialPage:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
130 | self.content = content
131 | self.indicatorsView = PageControlIndicatorsView(
/Users/admin/builder/spi-builder-workspace/Sources/AppKitUI/custom-controls/AUIPageControl/private/WindowedContent.swift:127:2: note: calls to initializer 'init(pageCount:windowSize:initialPage:)' from outside of its actor context are implicitly asynchronous
125 | @inlinable var windowIsAtRightEdge: Bool { self.window.upperBound == self.pageCount }
126 |
127 | init(pageCount: Int, windowSize: Int, initialPage: Int = 0) {
| `- note: calls to initializer 'init(pageCount:windowSize:initialPage:)' from outside of its actor context are implicitly asynchronous
128 |
129 | let windowSize = pageCount < windowSize ? pageCount : windowSize
/Users/admin/builder/spi-builder-workspace/Sources/AppKitUI/custom-controls/AUIPageControl/AUIPageControl.swift:129:49: warning: main actor-isolated property 'numberOfPages' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
40 |
41 | /// The number of pages in the control
42 | @IBInspectable @objc public dynamic var numberOfPages: Int = 6 {
| `- note: property declared here
43 | didSet {
44 | let content = WindowedContent(pageCount: self.numberOfPages, windowSize: self.windowSize, initialPage: self.currentPage)
:
127 | public override func awakeFromNib() {
128 | super.awakeFromNib()
129 | let content = WindowedContent(pageCount: self.numberOfPages, windowSize: self.windowSize)
| `- warning: main actor-isolated property 'numberOfPages' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
130 | self.content = content
131 | self.indicatorsView = PageControlIndicatorsView(
/Users/admin/builder/spi-builder-workspace/Sources/AppKitUI/custom-controls/AUIPageControl/AUIPageControl.swift:129:81: warning: main actor-isolated property 'windowSize' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
48 | }
49 | /// The window size
50 | @IBInspectable @objc public dynamic var windowSize: Int = 6
| `- note: property declared here
51 | /// The currently selected page
52 | @IBInspectable @objc public dynamic var currentPage: Int = 0 {
:
127 | public override func awakeFromNib() {
128 | super.awakeFromNib()
129 | let content = WindowedContent(pageCount: self.numberOfPages, windowSize: self.windowSize)
| `- warning: main actor-isolated property 'windowSize' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
130 | self.content = content
131 | self.indicatorsView = PageControlIndicatorsView(
/Users/admin/builder/spi-builder-workspace/Sources/AppKitUI/custom-controls/AUIPageControl/AUIPageControl.swift:130:8: warning: main actor-isolated property 'content' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
128 | super.awakeFromNib()
129 | let content = WindowedContent(pageCount: self.numberOfPages, windowSize: self.windowSize)
130 | self.content = content
| `- warning: main actor-isolated property 'content' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
131 | self.indicatorsView = PageControlIndicatorsView(
132 | content: content,
:
150 | private var indicatorsView: PageControlIndicatorsView?
151 | private var leadingConstraint: NSLayoutConstraint?
152 | private var content: WindowedContent?
| `- note: mutation of this property is only permitted within the actor
153 | private var enableDetector: NSKeyValueObservation?
154 | }
/Users/admin/builder/spi-builder-workspace/Sources/AppKitUI/custom-controls/AUIPageControl/AUIPageControl.swift:131:8: warning: main actor-isolated property 'indicatorsView' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
129 | let content = WindowedContent(pageCount: self.numberOfPages, windowSize: self.windowSize)
130 | self.content = content
131 | self.indicatorsView = PageControlIndicatorsView(
| `- warning: main actor-isolated property 'indicatorsView' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
132 | content: content,
133 | orientation: self.isHorizontal ? .horizontal : .vertical,
:
148 | }
149 |
150 | private var indicatorsView: PageControlIndicatorsView?
| `- note: mutation of this property is only permitted within the actor
151 | private var leadingConstraint: NSLayoutConstraint?
152 | private var content: WindowedContent?
/Users/admin/builder/spi-builder-workspace/Sources/AppKitUI/custom-controls/AUIPageControl/AUIPageControl.swift:131:25: warning: call to main actor-isolated initializer 'init(content:orientation:pageIndicatorSize:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
129 | let content = WindowedContent(pageCount: self.numberOfPages, windowSize: self.windowSize)
130 | self.content = content
131 | self.indicatorsView = PageControlIndicatorsView(
| `- warning: call to main actor-isolated initializer 'init(content:orientation:pageIndicatorSize:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
132 | content: content,
133 | orientation: self.isHorizontal ? .horizontal : .vertical,
/Users/admin/builder/spi-builder-workspace/Sources/AppKitUI/custom-controls/AUIPageControl/private/PageControlIndicatorsView.swift:35:2: note: calls to initializer 'init(content:orientation:pageIndicatorSize:)' from outside of its actor context are implicitly asynchronous
33 | let pageIndicatorSize: CGSize
34 |
35 | init(
| `- note: calls to initializer 'init(content:orientation:pageIndicatorSize:)' from outside of its actor context are implicitly asynchronous
36 | content: WindowedContent,
37 | orientation: NSUserInterfaceLayoutOrientation = .horizontal,
/Users/admin/builder/spi-builder-workspace/Sources/AppKitUI/custom-controls/AUIPageControl/AUIPageControl.swift:133:22: warning: main actor-isolated property 'isHorizontal' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
29 | @objc public class AUIPageControl: NSControl {
30 | /// Orientation
31 | @IBInspectable @objc public dynamic var isHorizontal: Bool = true
| `- note: property declared here
32 | /// Page indicator width
33 | @IBInspectable @objc public dynamic var pageIndicatorWidth: Double = AUIPageControlDefaultPageIndicatorSize.width
:
131 | self.indicatorsView = PageControlIndicatorsView(
132 | content: content,
133 | orientation: self.isHorizontal ? .horizontal : .vertical,
| `- warning: main actor-isolated property 'isHorizontal' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
134 | pageIndicatorSize: self.pageIndicatorSize
135 | )
/Users/admin/builder/spi-builder-workspace/Sources/AppKitUI/custom-controls/AUIPageControl/AUIPageControl.swift:134:28: warning: main actor-isolated property 'pageIndicatorSize' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
35 | @IBInspectable @objc public dynamic var pageIndicatorHeight: Double = AUIPageControlDefaultPageIndicatorSize.height
36 | /// The page indicator size
37 | private var pageIndicatorSize: CGSize {
| `- note: property declared here
38 | CGSize(width: self.pageIndicatorWidth, height: self.pageIndicatorHeight)
39 | }
:
132 | content: content,
133 | orientation: self.isHorizontal ? .horizontal : .vertical,
134 | pageIndicatorSize: self.pageIndicatorSize
| `- warning: main actor-isolated property 'pageIndicatorSize' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
135 | )
136 |
/Users/admin/builder/spi-builder-workspace/Sources/AppKitUI/custom-controls/AUIPageControl/AUIPageControl.swift:137:8: warning: call to main actor-isolated instance method 'setup()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
135 | )
136 |
137 | self.setup()
| `- warning: call to main actor-isolated instance method 'setup()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
138 | }
139 |
:
177 | }
178 |
179 | private func setup() {
| `- note: calls to instance method 'setup()' from outside of its actor context are implicitly asynchronous
180 | self.translatesAutoresizingMaskIntoConstraints = false
181 | self.wantsLayer = true
/Users/admin/builder/spi-builder-workspace/Sources/AppKitUI/custom-controls/AUIPageControl/private/PageControlIndicatorView.swift:22:13: warning: let '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
20 | import AppKit
21 |
22 | private let DefaultImage: NSImage = {
| |- warning: let 'DefaultImage' is not concurrency-safe because non-'Sendable' type 'NSImage' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make let 'DefaultImage' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
23 | let i: NSImage
24 | if #available(macOS 11.0, *) {
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSImage.h:66:12: note: class 'NSImage' does not conform to the 'Sendable' protocol
64 | __attribute__((objc_subclassing_restricted))
65 | #endif /* NSIMAGE_UNAVAILABLE_MACCATALYST */
66 | @interface NSImage : NSObject
| `- note: class 'NSImage' does not conform to the 'Sendable' protocol
67 |
68 | #pragma mark - Initialization
/Users/admin/builder/spi-builder-workspace/Sources/AppKitUI/custom-controls/AppKitUI+Image.swift:191:13: warning: let 'image1' is not concurrency-safe because non-'Sendable' type 'NSImage' may have shared mutable state; this is an error in the Swift 6 language mode
189 | #if DEBUG
190 |
191 | private let image1 = NSImage(named: NSImage.bonjourName)!
| |- warning: let 'image1' is not concurrency-safe because non-'Sendable' type 'NSImage' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make let 'image1' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
192 | private let image2 = NSImage(named: NSImage.computerName)!
193 |
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSImage.h:66:12: note: class 'NSImage' does not conform to the 'Sendable' protocol
64 | __attribute__((objc_subclassing_restricted))
65 | #endif /* NSIMAGE_UNAVAILABLE_MACCATALYST */
66 | @interface NSImage : NSObject
| `- note: class 'NSImage' does not conform to the 'Sendable' protocol
67 |
68 | #pragma mark - Initialization
/Users/admin/builder/spi-builder-workspace/Sources/AppKitUI/custom-controls/AppKitUI+Image.swift:192:13: warning: let 'image2' is not concurrency-safe because non-'Sendable' type 'NSImage' may have shared mutable state; this is an error in the Swift 6 language mode
190 |
191 | private let image1 = NSImage(named: NSImage.bonjourName)!
192 | private let image2 = NSImage(named: NSImage.computerName)!
| |- warning: let 'image2' is not concurrency-safe because non-'Sendable' type 'NSImage' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make let 'image2' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
193 |
194 | @available(macOS 14, *)
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSImage.h:66:12: note: class 'NSImage' does not conform to the 'Sendable' protocol
64 | __attribute__((objc_subclassing_restricted))
65 | #endif /* NSIMAGE_UNAVAILABLE_MACCATALYST */
66 | @interface NSImage : NSObject
| `- note: class 'NSImage' does not conform to the 'Sendable' protocol
67 |
68 | #pragma mark - Initialization
[129/136] Compiling AppKitUI PageControlIndicatorsView.swift
/Users/admin/builder/spi-builder-workspace/Sources/AppKitUI/custom-controls/AUIPageControl/AUIPageControl.swift:129:17: warning: call to main actor-isolated initializer 'init(pageCount:windowSize:initialPage:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
127 | public override func awakeFromNib() {
128 | super.awakeFromNib()
129 | let content = WindowedContent(pageCount: self.numberOfPages, windowSize: self.windowSize)
| `- warning: call to main actor-isolated initializer 'init(pageCount:windowSize:initialPage:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
130 | self.content = content
131 | self.indicatorsView = PageControlIndicatorsView(
/Users/admin/builder/spi-builder-workspace/Sources/AppKitUI/custom-controls/AUIPageControl/private/WindowedContent.swift:127:2: note: calls to initializer 'init(pageCount:windowSize:initialPage:)' from outside of its actor context are implicitly asynchronous
125 | @inlinable var windowIsAtRightEdge: Bool { self.window.upperBound == self.pageCount }
126 |
127 | init(pageCount: Int, windowSize: Int, initialPage: Int = 0) {
| `- note: calls to initializer 'init(pageCount:windowSize:initialPage:)' from outside of its actor context are implicitly asynchronous
128 |
129 | let windowSize = pageCount < windowSize ? pageCount : windowSize
/Users/admin/builder/spi-builder-workspace/Sources/AppKitUI/custom-controls/AUIPageControl/AUIPageControl.swift:129:49: warning: main actor-isolated property 'numberOfPages' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
40 |
41 | /// The number of pages in the control
42 | @IBInspectable @objc public dynamic var numberOfPages: Int = 6 {
| `- note: property declared here
43 | didSet {
44 | let content = WindowedContent(pageCount: self.numberOfPages, windowSize: self.windowSize, initialPage: self.currentPage)
:
127 | public override func awakeFromNib() {
128 | super.awakeFromNib()
129 | let content = WindowedContent(pageCount: self.numberOfPages, windowSize: self.windowSize)
| `- warning: main actor-isolated property 'numberOfPages' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
130 | self.content = content
131 | self.indicatorsView = PageControlIndicatorsView(
/Users/admin/builder/spi-builder-workspace/Sources/AppKitUI/custom-controls/AUIPageControl/AUIPageControl.swift:129:81: warning: main actor-isolated property 'windowSize' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
48 | }
49 | /// The window size
50 | @IBInspectable @objc public dynamic var windowSize: Int = 6
| `- note: property declared here
51 | /// The currently selected page
52 | @IBInspectable @objc public dynamic var currentPage: Int = 0 {
:
127 | public override func awakeFromNib() {
128 | super.awakeFromNib()
129 | let content = WindowedContent(pageCount: self.numberOfPages, windowSize: self.windowSize)
| `- warning: main actor-isolated property 'windowSize' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
130 | self.content = content
131 | self.indicatorsView = PageControlIndicatorsView(
/Users/admin/builder/spi-builder-workspace/Sources/AppKitUI/custom-controls/AUIPageControl/AUIPageControl.swift:130:8: warning: main actor-isolated property 'content' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
128 | super.awakeFromNib()
129 | let content = WindowedContent(pageCount: self.numberOfPages, windowSize: self.windowSize)
130 | self.content = content
| `- warning: main actor-isolated property 'content' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
131 | self.indicatorsView = PageControlIndicatorsView(
132 | content: content,
:
150 | private var indicatorsView: PageControlIndicatorsView?
151 | private var leadingConstraint: NSLayoutConstraint?
152 | private var content: WindowedContent?
| `- note: mutation of this property is only permitted within the actor
153 | private var enableDetector: NSKeyValueObservation?
154 | }
/Users/admin/builder/spi-builder-workspace/Sources/AppKitUI/custom-controls/AUIPageControl/AUIPageControl.swift:131:8: warning: main actor-isolated property 'indicatorsView' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
129 | let content = WindowedContent(pageCount: self.numberOfPages, windowSize: self.windowSize)
130 | self.content = content
131 | self.indicatorsView = PageControlIndicatorsView(
| `- warning: main actor-isolated property 'indicatorsView' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
132 | content: content,
133 | orientation: self.isHorizontal ? .horizontal : .vertical,
:
148 | }
149 |
150 | private var indicatorsView: PageControlIndicatorsView?
| `- note: mutation of this property is only permitted within the actor
151 | private var leadingConstraint: NSLayoutConstraint?
152 | private var content: WindowedContent?
/Users/admin/builder/spi-builder-workspace/Sources/AppKitUI/custom-controls/AUIPageControl/AUIPageControl.swift:131:25: warning: call to main actor-isolated initializer 'init(content:orientation:pageIndicatorSize:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
129 | let content = WindowedContent(pageCount: self.numberOfPages, windowSize: self.windowSize)
130 | self.content = content
131 | self.indicatorsView = PageControlIndicatorsView(
| `- warning: call to main actor-isolated initializer 'init(content:orientation:pageIndicatorSize:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
132 | content: content,
133 | orientation: self.isHorizontal ? .horizontal : .vertical,
/Users/admin/builder/spi-builder-workspace/Sources/AppKitUI/custom-controls/AUIPageControl/private/PageControlIndicatorsView.swift:35:2: note: calls to initializer 'init(content:orientation:pageIndicatorSize:)' from outside of its actor context are implicitly asynchronous
33 | let pageIndicatorSize: CGSize
34 |
35 | init(
| `- note: calls to initializer 'init(content:orientation:pageIndicatorSize:)' from outside of its actor context are implicitly asynchronous
36 | content: WindowedContent,
37 | orientation: NSUserInterfaceLayoutOrientation = .horizontal,
/Users/admin/builder/spi-builder-workspace/Sources/AppKitUI/custom-controls/AUIPageControl/AUIPageControl.swift:133:22: warning: main actor-isolated property 'isHorizontal' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
29 | @objc public class AUIPageControl: NSControl {
30 | /// Orientation
31 | @IBInspectable @objc public dynamic var isHorizontal: Bool = true
| `- note: property declared here
32 | /// Page indicator width
33 | @IBInspectable @objc public dynamic var pageIndicatorWidth: Double = AUIPageControlDefaultPageIndicatorSize.width
:
131 | self.indicatorsView = PageControlIndicatorsView(
132 | content: content,
133 | orientation: self.isHorizontal ? .horizontal : .vertical,
| `- warning: main actor-isolated property 'isHorizontal' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
134 | pageIndicatorSize: self.pageIndicatorSize
135 | )
/Users/admin/builder/spi-builder-workspace/Sources/AppKitUI/custom-controls/AUIPageControl/AUIPageControl.swift:134:28: warning: main actor-isolated property 'pageIndicatorSize' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
35 | @IBInspectable @objc public dynamic var pageIndicatorHeight: Double = AUIPageControlDefaultPageIndicatorSize.height
36 | /// The page indicator size
37 | private var pageIndicatorSize: CGSize {
| `- note: property declared here
38 | CGSize(width: self.pageIndicatorWidth, height: self.pageIndicatorHeight)
39 | }
:
132 | content: content,
133 | orientation: self.isHorizontal ? .horizontal : .vertical,
134 | pageIndicatorSize: self.pageIndicatorSize
| `- warning: main actor-isolated property 'pageIndicatorSize' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
135 | )
136 |
/Users/admin/builder/spi-builder-workspace/Sources/AppKitUI/custom-controls/AUIPageControl/AUIPageControl.swift:137:8: warning: call to main actor-isolated instance method 'setup()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
135 | )
136 |
137 | self.setup()
| `- warning: call to main actor-isolated instance method 'setup()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
138 | }
139 |
:
177 | }
178 |
179 | private func setup() {
| `- note: calls to instance method 'setup()' from outside of its actor context are implicitly asynchronous
180 | self.translatesAutoresizingMaskIntoConstraints = false
181 | self.wantsLayer = true
/Users/admin/builder/spi-builder-workspace/Sources/AppKitUI/custom-controls/AUIPageControl/private/PageControlIndicatorView.swift:22:13: warning: let '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
20 | import AppKit
21 |
22 | private let DefaultImage: NSImage = {
| |- warning: let 'DefaultImage' is not concurrency-safe because non-'Sendable' type 'NSImage' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make let 'DefaultImage' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
23 | let i: NSImage
24 | if #available(macOS 11.0, *) {
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSImage.h:66:12: note: class 'NSImage' does not conform to the 'Sendable' protocol
64 | __attribute__((objc_subclassing_restricted))
65 | #endif /* NSIMAGE_UNAVAILABLE_MACCATALYST */
66 | @interface NSImage : NSObject
| `- note: class 'NSImage' does not conform to the 'Sendable' protocol
67 |
68 | #pragma mark - Initialization
/Users/admin/builder/spi-builder-workspace/Sources/AppKitUI/custom-controls/AppKitUI+Image.swift:191:13: warning: let 'image1' is not concurrency-safe because non-'Sendable' type 'NSImage' may have shared mutable state; this is an error in the Swift 6 language mode
189 | #if DEBUG
190 |
191 | private let image1 = NSImage(named: NSImage.bonjourName)!
| |- warning: let 'image1' is not concurrency-safe because non-'Sendable' type 'NSImage' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make let 'image1' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
192 | private let image2 = NSImage(named: NSImage.computerName)!
193 |
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSImage.h:66:12: note: class 'NSImage' does not conform to the 'Sendable' protocol
64 | __attribute__((objc_subclassing_restricted))
65 | #endif /* NSIMAGE_UNAVAILABLE_MACCATALYST */
66 | @interface NSImage : NSObject
| `- note: class 'NSImage' does not conform to the 'Sendable' protocol
67 |
68 | #pragma mark - Initialization
/Users/admin/builder/spi-builder-workspace/Sources/AppKitUI/custom-controls/AppKitUI+Image.swift:192:13: warning: let 'image2' is not concurrency-safe because non-'Sendable' type 'NSImage' may have shared mutable state; this is an error in the Swift 6 language mode
190 |
191 | private let image1 = NSImage(named: NSImage.bonjourName)!
192 | private let image2 = NSImage(named: NSImage.computerName)!
| |- warning: let 'image2' is not concurrency-safe because non-'Sendable' type 'NSImage' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make let 'image2' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
193 |
194 | @available(macOS 14, *)
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSImage.h:66:12: note: class 'NSImage' does not conform to the 'Sendable' protocol
64 | __attribute__((objc_subclassing_restricted))
65 | #endif /* NSIMAGE_UNAVAILABLE_MACCATALYST */
66 | @interface NSImage : NSObject
| `- note: class 'NSImage' does not conform to the 'Sendable' protocol
67 |
68 | #pragma mark - Initialization
[130/136] Compiling AppKitUI PageImageView.swift
/Users/admin/builder/spi-builder-workspace/Sources/AppKitUI/custom-controls/AUIPageControl/AUIPageControl.swift:129:17: warning: call to main actor-isolated initializer 'init(pageCount:windowSize:initialPage:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
127 | public override func awakeFromNib() {
128 | super.awakeFromNib()
129 | let content = WindowedContent(pageCount: self.numberOfPages, windowSize: self.windowSize)
| `- warning: call to main actor-isolated initializer 'init(pageCount:windowSize:initialPage:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
130 | self.content = content
131 | self.indicatorsView = PageControlIndicatorsView(
/Users/admin/builder/spi-builder-workspace/Sources/AppKitUI/custom-controls/AUIPageControl/private/WindowedContent.swift:127:2: note: calls to initializer 'init(pageCount:windowSize:initialPage:)' from outside of its actor context are implicitly asynchronous
125 | @inlinable var windowIsAtRightEdge: Bool { self.window.upperBound == self.pageCount }
126 |
127 | init(pageCount: Int, windowSize: Int, initialPage: Int = 0) {
| `- note: calls to initializer 'init(pageCount:windowSize:initialPage:)' from outside of its actor context are implicitly asynchronous
128 |
129 | let windowSize = pageCount < windowSize ? pageCount : windowSize
/Users/admin/builder/spi-builder-workspace/Sources/AppKitUI/custom-controls/AUIPageControl/AUIPageControl.swift:129:49: warning: main actor-isolated property 'numberOfPages' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
40 |
41 | /// The number of pages in the control
42 | @IBInspectable @objc public dynamic var numberOfPages: Int = 6 {
| `- note: property declared here
43 | didSet {
44 | let content = WindowedContent(pageCount: self.numberOfPages, windowSize: self.windowSize, initialPage: self.currentPage)
:
127 | public override func awakeFromNib() {
128 | super.awakeFromNib()
129 | let content = WindowedContent(pageCount: self.numberOfPages, windowSize: self.windowSize)
| `- warning: main actor-isolated property 'numberOfPages' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
130 | self.content = content
131 | self.indicatorsView = PageControlIndicatorsView(
/Users/admin/builder/spi-builder-workspace/Sources/AppKitUI/custom-controls/AUIPageControl/AUIPageControl.swift:129:81: warning: main actor-isolated property 'windowSize' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
48 | }
49 | /// The window size
50 | @IBInspectable @objc public dynamic var windowSize: Int = 6
| `- note: property declared here
51 | /// The currently selected page
52 | @IBInspectable @objc public dynamic var currentPage: Int = 0 {
:
127 | public override func awakeFromNib() {
128 | super.awakeFromNib()
129 | let content = WindowedContent(pageCount: self.numberOfPages, windowSize: self.windowSize)
| `- warning: main actor-isolated property 'windowSize' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
130 | self.content = content
131 | self.indicatorsView = PageControlIndicatorsView(
/Users/admin/builder/spi-builder-workspace/Sources/AppKitUI/custom-controls/AUIPageControl/AUIPageControl.swift:130:8: warning: main actor-isolated property 'content' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
128 | super.awakeFromNib()
129 | let content = WindowedContent(pageCount: self.numberOfPages, windowSize: self.windowSize)
130 | self.content = content
| `- warning: main actor-isolated property 'content' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
131 | self.indicatorsView = PageControlIndicatorsView(
132 | content: content,
:
150 | private var indicatorsView: PageControlIndicatorsView?
151 | private var leadingConstraint: NSLayoutConstraint?
152 | private var content: WindowedContent?
| `- note: mutation of this property is only permitted within the actor
153 | private var enableDetector: NSKeyValueObservation?
154 | }
/Users/admin/builder/spi-builder-workspace/Sources/AppKitUI/custom-controls/AUIPageControl/AUIPageControl.swift:131:8: warning: main actor-isolated property 'indicatorsView' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
129 | let content = WindowedContent(pageCount: self.numberOfPages, windowSize: self.windowSize)
130 | self.content = content
131 | self.indicatorsView = PageControlIndicatorsView(
| `- warning: main actor-isolated property 'indicatorsView' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
132 | content: content,
133 | orientation: self.isHorizontal ? .horizontal : .vertical,
:
148 | }
149 |
150 | private var indicatorsView: PageControlIndicatorsView?
| `- note: mutation of this property is only permitted within the actor
151 | private var leadingConstraint: NSLayoutConstraint?
152 | private var content: WindowedContent?
/Users/admin/builder/spi-builder-workspace/Sources/AppKitUI/custom-controls/AUIPageControl/AUIPageControl.swift:131:25: warning: call to main actor-isolated initializer 'init(content:orientation:pageIndicatorSize:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
129 | let content = WindowedContent(pageCount: self.numberOfPages, windowSize: self.windowSize)
130 | self.content = content
131 | self.indicatorsView = PageControlIndicatorsView(
| `- warning: call to main actor-isolated initializer 'init(content:orientation:pageIndicatorSize:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
132 | content: content,
133 | orientation: self.isHorizontal ? .horizontal : .vertical,
/Users/admin/builder/spi-builder-workspace/Sources/AppKitUI/custom-controls/AUIPageControl/private/PageControlIndicatorsView.swift:35:2: note: calls to initializer 'init(content:orientation:pageIndicatorSize:)' from outside of its actor context are implicitly asynchronous
33 | let pageIndicatorSize: CGSize
34 |
35 | init(
| `- note: calls to initializer 'init(content:orientation:pageIndicatorSize:)' from outside of its actor context are implicitly asynchronous
36 | content: WindowedContent,
37 | orientation: NSUserInterfaceLayoutOrientation = .horizontal,
/Users/admin/builder/spi-builder-workspace/Sources/AppKitUI/custom-controls/AUIPageControl/AUIPageControl.swift:133:22: warning: main actor-isolated property 'isHorizontal' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
29 | @objc public class AUIPageControl: NSControl {
30 | /// Orientation
31 | @IBInspectable @objc public dynamic var isHorizontal: Bool = true
| `- note: property declared here
32 | /// Page indicator width
33 | @IBInspectable @objc public dynamic var pageIndicatorWidth: Double = AUIPageControlDefaultPageIndicatorSize.width
:
131 | self.indicatorsView = PageControlIndicatorsView(
132 | content: content,
133 | orientation: self.isHorizontal ? .horizontal : .vertical,
| `- warning: main actor-isolated property 'isHorizontal' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
134 | pageIndicatorSize: self.pageIndicatorSize
135 | )
/Users/admin/builder/spi-builder-workspace/Sources/AppKitUI/custom-controls/AUIPageControl/AUIPageControl.swift:134:28: warning: main actor-isolated property 'pageIndicatorSize' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
35 | @IBInspectable @objc public dynamic var pageIndicatorHeight: Double = AUIPageControlDefaultPageIndicatorSize.height
36 | /// The page indicator size
37 | private var pageIndicatorSize: CGSize {
| `- note: property declared here
38 | CGSize(width: self.pageIndicatorWidth, height: self.pageIndicatorHeight)
39 | }
:
132 | content: content,
133 | orientation: self.isHorizontal ? .horizontal : .vertical,
134 | pageIndicatorSize: self.pageIndicatorSize
| `- warning: main actor-isolated property 'pageIndicatorSize' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
135 | )
136 |
/Users/admin/builder/spi-builder-workspace/Sources/AppKitUI/custom-controls/AUIPageControl/AUIPageControl.swift:137:8: warning: call to main actor-isolated instance method 'setup()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
135 | )
136 |
137 | self.setup()
| `- warning: call to main actor-isolated instance method 'setup()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
138 | }
139 |
:
177 | }
178 |
179 | private func setup() {
| `- note: calls to instance method 'setup()' from outside of its actor context are implicitly asynchronous
180 | self.translatesAutoresizingMaskIntoConstraints = false
181 | self.wantsLayer = true
/Users/admin/builder/spi-builder-workspace/Sources/AppKitUI/custom-controls/AUIPageControl/private/PageControlIndicatorView.swift:22:13: warning: let '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
20 | import AppKit
21 |
22 | private let DefaultImage: NSImage = {
| |- warning: let 'DefaultImage' is not concurrency-safe because non-'Sendable' type 'NSImage' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make let 'DefaultImage' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
23 | let i: NSImage
24 | if #available(macOS 11.0, *) {
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSImage.h:66:12: note: class 'NSImage' does not conform to the 'Sendable' protocol
64 | __attribute__((objc_subclassing_restricted))
65 | #endif /* NSIMAGE_UNAVAILABLE_MACCATALYST */
66 | @interface NSImage : NSObject
| `- note: class 'NSImage' does not conform to the 'Sendable' protocol
67 |
68 | #pragma mark - Initialization
/Users/admin/builder/spi-builder-workspace/Sources/AppKitUI/custom-controls/AppKitUI+Image.swift:191:13: warning: let 'image1' is not concurrency-safe because non-'Sendable' type 'NSImage' may have shared mutable state; this is an error in the Swift 6 language mode
189 | #if DEBUG
190 |
191 | private let image1 = NSImage(named: NSImage.bonjourName)!
| |- warning: let 'image1' is not concurrency-safe because non-'Sendable' type 'NSImage' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make let 'image1' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
192 | private let image2 = NSImage(named: NSImage.computerName)!
193 |
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSImage.h:66:12: note: class 'NSImage' does not conform to the 'Sendable' protocol
64 | __attribute__((objc_subclassing_restricted))
65 | #endif /* NSIMAGE_UNAVAILABLE_MACCATALYST */
66 | @interface NSImage : NSObject
| `- note: class 'NSImage' does not conform to the 'Sendable' protocol
67 |
68 | #pragma mark - Initialization
/Users/admin/builder/spi-builder-workspace/Sources/AppKitUI/custom-controls/AppKitUI+Image.swift:192:13: warning: let 'image2' is not concurrency-safe because non-'Sendable' type 'NSImage' may have shared mutable state; this is an error in the Swift 6 language mode
190 |
191 | private let image1 = NSImage(named: NSImage.bonjourName)!
192 | private let image2 = NSImage(named: NSImage.computerName)!
| |- warning: let 'image2' is not concurrency-safe because non-'Sendable' type 'NSImage' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make let 'image2' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
193 |
194 | @available(macOS 14, *)
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSImage.h:66:12: note: class 'NSImage' does not conform to the 'Sendable' protocol
64 | __attribute__((objc_subclassing_restricted))
65 | #endif /* NSIMAGE_UNAVAILABLE_MACCATALYST */
66 | @interface NSImage : NSObject
| `- note: class 'NSImage' does not conform to the 'Sendable' protocol
67 |
68 | #pragma mark - Initialization
[131/136] Compiling AppKitUI WindowedContent.swift
/Users/admin/builder/spi-builder-workspace/Sources/AppKitUI/custom-controls/AUIPageControl/AUIPageControl.swift:129:17: warning: call to main actor-isolated initializer 'init(pageCount:windowSize:initialPage:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
127 | public override func awakeFromNib() {
128 | super.awakeFromNib()
129 | let content = WindowedContent(pageCount: self.numberOfPages, windowSize: self.windowSize)
| `- warning: call to main actor-isolated initializer 'init(pageCount:windowSize:initialPage:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
130 | self.content = content
131 | self.indicatorsView = PageControlIndicatorsView(
/Users/admin/builder/spi-builder-workspace/Sources/AppKitUI/custom-controls/AUIPageControl/private/WindowedContent.swift:127:2: note: calls to initializer 'init(pageCount:windowSize:initialPage:)' from outside of its actor context are implicitly asynchronous
125 | @inlinable var windowIsAtRightEdge: Bool { self.window.upperBound == self.pageCount }
126 |
127 | init(pageCount: Int, windowSize: Int, initialPage: Int = 0) {
| `- note: calls to initializer 'init(pageCount:windowSize:initialPage:)' from outside of its actor context are implicitly asynchronous
128 |
129 | let windowSize = pageCount < windowSize ? pageCount : windowSize
/Users/admin/builder/spi-builder-workspace/Sources/AppKitUI/custom-controls/AUIPageControl/AUIPageControl.swift:129:49: warning: main actor-isolated property 'numberOfPages' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
40 |
41 | /// The number of pages in the control
42 | @IBInspectable @objc public dynamic var numberOfPages: Int = 6 {
| `- note: property declared here
43 | didSet {
44 | let content = WindowedContent(pageCount: self.numberOfPages, windowSize: self.windowSize, initialPage: self.currentPage)
:
127 | public override func awakeFromNib() {
128 | super.awakeFromNib()
129 | let content = WindowedContent(pageCount: self.numberOfPages, windowSize: self.windowSize)
| `- warning: main actor-isolated property 'numberOfPages' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
130 | self.content = content
131 | self.indicatorsView = PageControlIndicatorsView(
/Users/admin/builder/spi-builder-workspace/Sources/AppKitUI/custom-controls/AUIPageControl/AUIPageControl.swift:129:81: warning: main actor-isolated property 'windowSize' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
48 | }
49 | /// The window size
50 | @IBInspectable @objc public dynamic var windowSize: Int = 6
| `- note: property declared here
51 | /// The currently selected page
52 | @IBInspectable @objc public dynamic var currentPage: Int = 0 {
:
127 | public override func awakeFromNib() {
128 | super.awakeFromNib()
129 | let content = WindowedContent(pageCount: self.numberOfPages, windowSize: self.windowSize)
| `- warning: main actor-isolated property 'windowSize' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
130 | self.content = content
131 | self.indicatorsView = PageControlIndicatorsView(
/Users/admin/builder/spi-builder-workspace/Sources/AppKitUI/custom-controls/AUIPageControl/AUIPageControl.swift:130:8: warning: main actor-isolated property 'content' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
128 | super.awakeFromNib()
129 | let content = WindowedContent(pageCount: self.numberOfPages, windowSize: self.windowSize)
130 | self.content = content
| `- warning: main actor-isolated property 'content' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
131 | self.indicatorsView = PageControlIndicatorsView(
132 | content: content,
:
150 | private var indicatorsView: PageControlIndicatorsView?
151 | private var leadingConstraint: NSLayoutConstraint?
152 | private var content: WindowedContent?
| `- note: mutation of this property is only permitted within the actor
153 | private var enableDetector: NSKeyValueObservation?
154 | }
/Users/admin/builder/spi-builder-workspace/Sources/AppKitUI/custom-controls/AUIPageControl/AUIPageControl.swift:131:8: warning: main actor-isolated property 'indicatorsView' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
129 | let content = WindowedContent(pageCount: self.numberOfPages, windowSize: self.windowSize)
130 | self.content = content
131 | self.indicatorsView = PageControlIndicatorsView(
| `- warning: main actor-isolated property 'indicatorsView' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
132 | content: content,
133 | orientation: self.isHorizontal ? .horizontal : .vertical,
:
148 | }
149 |
150 | private var indicatorsView: PageControlIndicatorsView?
| `- note: mutation of this property is only permitted within the actor
151 | private var leadingConstraint: NSLayoutConstraint?
152 | private var content: WindowedContent?
/Users/admin/builder/spi-builder-workspace/Sources/AppKitUI/custom-controls/AUIPageControl/AUIPageControl.swift:131:25: warning: call to main actor-isolated initializer 'init(content:orientation:pageIndicatorSize:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
129 | let content = WindowedContent(pageCount: self.numberOfPages, windowSize: self.windowSize)
130 | self.content = content
131 | self.indicatorsView = PageControlIndicatorsView(
| `- warning: call to main actor-isolated initializer 'init(content:orientation:pageIndicatorSize:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
132 | content: content,
133 | orientation: self.isHorizontal ? .horizontal : .vertical,
/Users/admin/builder/spi-builder-workspace/Sources/AppKitUI/custom-controls/AUIPageControl/private/PageControlIndicatorsView.swift:35:2: note: calls to initializer 'init(content:orientation:pageIndicatorSize:)' from outside of its actor context are implicitly asynchronous
33 | let pageIndicatorSize: CGSize
34 |
35 | init(
| `- note: calls to initializer 'init(content:orientation:pageIndicatorSize:)' from outside of its actor context are implicitly asynchronous
36 | content: WindowedContent,
37 | orientation: NSUserInterfaceLayoutOrientation = .horizontal,
/Users/admin/builder/spi-builder-workspace/Sources/AppKitUI/custom-controls/AUIPageControl/AUIPageControl.swift:133:22: warning: main actor-isolated property 'isHorizontal' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
29 | @objc public class AUIPageControl: NSControl {
30 | /// Orientation
31 | @IBInspectable @objc public dynamic var isHorizontal: Bool = true
| `- note: property declared here
32 | /// Page indicator width
33 | @IBInspectable @objc public dynamic var pageIndicatorWidth: Double = AUIPageControlDefaultPageIndicatorSize.width
:
131 | self.indicatorsView = PageControlIndicatorsView(
132 | content: content,
133 | orientation: self.isHorizontal ? .horizontal : .vertical,
| `- warning: main actor-isolated property 'isHorizontal' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
134 | pageIndicatorSize: self.pageIndicatorSize
135 | )
/Users/admin/builder/spi-builder-workspace/Sources/AppKitUI/custom-controls/AUIPageControl/AUIPageControl.swift:134:28: warning: main actor-isolated property 'pageIndicatorSize' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
35 | @IBInspectable @objc public dynamic var pageIndicatorHeight: Double = AUIPageControlDefaultPageIndicatorSize.height
36 | /// The page indicator size
37 | private var pageIndicatorSize: CGSize {
| `- note: property declared here
38 | CGSize(width: self.pageIndicatorWidth, height: self.pageIndicatorHeight)
39 | }
:
132 | content: content,
133 | orientation: self.isHorizontal ? .horizontal : .vertical,
134 | pageIndicatorSize: self.pageIndicatorSize
| `- warning: main actor-isolated property 'pageIndicatorSize' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
135 | )
136 |
/Users/admin/builder/spi-builder-workspace/Sources/AppKitUI/custom-controls/AUIPageControl/AUIPageControl.swift:137:8: warning: call to main actor-isolated instance method 'setup()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
135 | )
136 |
137 | self.setup()
| `- warning: call to main actor-isolated instance method 'setup()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
138 | }
139 |
:
177 | }
178 |
179 | private func setup() {
| `- note: calls to instance method 'setup()' from outside of its actor context are implicitly asynchronous
180 | self.translatesAutoresizingMaskIntoConstraints = false
181 | self.wantsLayer = true
/Users/admin/builder/spi-builder-workspace/Sources/AppKitUI/custom-controls/AUIPageControl/private/PageControlIndicatorView.swift:22:13: warning: let '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
20 | import AppKit
21 |
22 | private let DefaultImage: NSImage = {
| |- warning: let 'DefaultImage' is not concurrency-safe because non-'Sendable' type 'NSImage' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make let 'DefaultImage' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
23 | let i: NSImage
24 | if #available(macOS 11.0, *) {
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSImage.h:66:12: note: class 'NSImage' does not conform to the 'Sendable' protocol
64 | __attribute__((objc_subclassing_restricted))
65 | #endif /* NSIMAGE_UNAVAILABLE_MACCATALYST */
66 | @interface NSImage : NSObject
| `- note: class 'NSImage' does not conform to the 'Sendable' protocol
67 |
68 | #pragma mark - Initialization
/Users/admin/builder/spi-builder-workspace/Sources/AppKitUI/custom-controls/AppKitUI+Image.swift:191:13: warning: let 'image1' is not concurrency-safe because non-'Sendable' type 'NSImage' may have shared mutable state; this is an error in the Swift 6 language mode
189 | #if DEBUG
190 |
191 | private let image1 = NSImage(named: NSImage.bonjourName)!
| |- warning: let 'image1' is not concurrency-safe because non-'Sendable' type 'NSImage' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make let 'image1' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
192 | private let image2 = NSImage(named: NSImage.computerName)!
193 |
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSImage.h:66:12: note: class 'NSImage' does not conform to the 'Sendable' protocol
64 | __attribute__((objc_subclassing_restricted))
65 | #endif /* NSIMAGE_UNAVAILABLE_MACCATALYST */
66 | @interface NSImage : NSObject
| `- note: class 'NSImage' does not conform to the 'Sendable' protocol
67 |
68 | #pragma mark - Initialization
/Users/admin/builder/spi-builder-workspace/Sources/AppKitUI/custom-controls/AppKitUI+Image.swift:192:13: warning: let 'image2' is not concurrency-safe because non-'Sendable' type 'NSImage' may have shared mutable state; this is an error in the Swift 6 language mode
190 |
191 | private let image1 = NSImage(named: NSImage.bonjourName)!
192 | private let image2 = NSImage(named: NSImage.computerName)!
| |- warning: let 'image2' is not concurrency-safe because non-'Sendable' type 'NSImage' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make let 'image2' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
193 |
194 | @available(macOS 14, *)
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSImage.h:66:12: note: class 'NSImage' does not conform to the 'Sendable' protocol
64 | __attribute__((objc_subclassing_restricted))
65 | #endif /* NSIMAGE_UNAVAILABLE_MACCATALYST */
66 | @interface NSImage : NSObject
| `- note: class 'NSImage' does not conform to the 'Sendable' protocol
67 |
68 | #pragma mark - Initialization
[132/136] Compiling AppKitUI AppKitUI+Image.swift
/Users/admin/builder/spi-builder-workspace/Sources/AppKitUI/custom-controls/AUIPageControl/AUIPageControl.swift:129:17: warning: call to main actor-isolated initializer 'init(pageCount:windowSize:initialPage:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
127 | public override func awakeFromNib() {
128 | super.awakeFromNib()
129 | let content = WindowedContent(pageCount: self.numberOfPages, windowSize: self.windowSize)
| `- warning: call to main actor-isolated initializer 'init(pageCount:windowSize:initialPage:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
130 | self.content = content
131 | self.indicatorsView = PageControlIndicatorsView(
/Users/admin/builder/spi-builder-workspace/Sources/AppKitUI/custom-controls/AUIPageControl/private/WindowedContent.swift:127:2: note: calls to initializer 'init(pageCount:windowSize:initialPage:)' from outside of its actor context are implicitly asynchronous
125 | @inlinable var windowIsAtRightEdge: Bool { self.window.upperBound == self.pageCount }
126 |
127 | init(pageCount: Int, windowSize: Int, initialPage: Int = 0) {
| `- note: calls to initializer 'init(pageCount:windowSize:initialPage:)' from outside of its actor context are implicitly asynchronous
128 |
129 | let windowSize = pageCount < windowSize ? pageCount : windowSize
/Users/admin/builder/spi-builder-workspace/Sources/AppKitUI/custom-controls/AUIPageControl/AUIPageControl.swift:129:49: warning: main actor-isolated property 'numberOfPages' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
40 |
41 | /// The number of pages in the control
42 | @IBInspectable @objc public dynamic var numberOfPages: Int = 6 {
| `- note: property declared here
43 | didSet {
44 | let content = WindowedContent(pageCount: self.numberOfPages, windowSize: self.windowSize, initialPage: self.currentPage)
:
127 | public override func awakeFromNib() {
128 | super.awakeFromNib()
129 | let content = WindowedContent(pageCount: self.numberOfPages, windowSize: self.windowSize)
| `- warning: main actor-isolated property 'numberOfPages' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
130 | self.content = content
131 | self.indicatorsView = PageControlIndicatorsView(
/Users/admin/builder/spi-builder-workspace/Sources/AppKitUI/custom-controls/AUIPageControl/AUIPageControl.swift:129:81: warning: main actor-isolated property 'windowSize' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
48 | }
49 | /// The window size
50 | @IBInspectable @objc public dynamic var windowSize: Int = 6
| `- note: property declared here
51 | /// The currently selected page
52 | @IBInspectable @objc public dynamic var currentPage: Int = 0 {
:
127 | public override func awakeFromNib() {
128 | super.awakeFromNib()
129 | let content = WindowedContent(pageCount: self.numberOfPages, windowSize: self.windowSize)
| `- warning: main actor-isolated property 'windowSize' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
130 | self.content = content
131 | self.indicatorsView = PageControlIndicatorsView(
/Users/admin/builder/spi-builder-workspace/Sources/AppKitUI/custom-controls/AUIPageControl/AUIPageControl.swift:130:8: warning: main actor-isolated property 'content' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
128 | super.awakeFromNib()
129 | let content = WindowedContent(pageCount: self.numberOfPages, windowSize: self.windowSize)
130 | self.content = content
| `- warning: main actor-isolated property 'content' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
131 | self.indicatorsView = PageControlIndicatorsView(
132 | content: content,
:
150 | private var indicatorsView: PageControlIndicatorsView?
151 | private var leadingConstraint: NSLayoutConstraint?
152 | private var content: WindowedContent?
| `- note: mutation of this property is only permitted within the actor
153 | private var enableDetector: NSKeyValueObservation?
154 | }
/Users/admin/builder/spi-builder-workspace/Sources/AppKitUI/custom-controls/AUIPageControl/AUIPageControl.swift:131:8: warning: main actor-isolated property 'indicatorsView' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
129 | let content = WindowedContent(pageCount: self.numberOfPages, windowSize: self.windowSize)
130 | self.content = content
131 | self.indicatorsView = PageControlIndicatorsView(
| `- warning: main actor-isolated property 'indicatorsView' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
132 | content: content,
133 | orientation: self.isHorizontal ? .horizontal : .vertical,
:
148 | }
149 |
150 | private var indicatorsView: PageControlIndicatorsView?
| `- note: mutation of this property is only permitted within the actor
151 | private var leadingConstraint: NSLayoutConstraint?
152 | private var content: WindowedContent?
/Users/admin/builder/spi-builder-workspace/Sources/AppKitUI/custom-controls/AUIPageControl/AUIPageControl.swift:131:25: warning: call to main actor-isolated initializer 'init(content:orientation:pageIndicatorSize:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
129 | let content = WindowedContent(pageCount: self.numberOfPages, windowSize: self.windowSize)
130 | self.content = content
131 | self.indicatorsView = PageControlIndicatorsView(
| `- warning: call to main actor-isolated initializer 'init(content:orientation:pageIndicatorSize:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
132 | content: content,
133 | orientation: self.isHorizontal ? .horizontal : .vertical,
/Users/admin/builder/spi-builder-workspace/Sources/AppKitUI/custom-controls/AUIPageControl/private/PageControlIndicatorsView.swift:35:2: note: calls to initializer 'init(content:orientation:pageIndicatorSize:)' from outside of its actor context are implicitly asynchronous
33 | let pageIndicatorSize: CGSize
34 |
35 | init(
| `- note: calls to initializer 'init(content:orientation:pageIndicatorSize:)' from outside of its actor context are implicitly asynchronous
36 | content: WindowedContent,
37 | orientation: NSUserInterfaceLayoutOrientation = .horizontal,
/Users/admin/builder/spi-builder-workspace/Sources/AppKitUI/custom-controls/AUIPageControl/AUIPageControl.swift:133:22: warning: main actor-isolated property 'isHorizontal' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
29 | @objc public class AUIPageControl: NSControl {
30 | /// Orientation
31 | @IBInspectable @objc public dynamic var isHorizontal: Bool = true
| `- note: property declared here
32 | /// Page indicator width
33 | @IBInspectable @objc public dynamic var pageIndicatorWidth: Double = AUIPageControlDefaultPageIndicatorSize.width
:
131 | self.indicatorsView = PageControlIndicatorsView(
132 | content: content,
133 | orientation: self.isHorizontal ? .horizontal : .vertical,
| `- warning: main actor-isolated property 'isHorizontal' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
134 | pageIndicatorSize: self.pageIndicatorSize
135 | )
/Users/admin/builder/spi-builder-workspace/Sources/AppKitUI/custom-controls/AUIPageControl/AUIPageControl.swift:134:28: warning: main actor-isolated property 'pageIndicatorSize' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
35 | @IBInspectable @objc public dynamic var pageIndicatorHeight: Double = AUIPageControlDefaultPageIndicatorSize.height
36 | /// The page indicator size
37 | private var pageIndicatorSize: CGSize {
| `- note: property declared here
38 | CGSize(width: self.pageIndicatorWidth, height: self.pageIndicatorHeight)
39 | }
:
132 | content: content,
133 | orientation: self.isHorizontal ? .horizontal : .vertical,
134 | pageIndicatorSize: self.pageIndicatorSize
| `- warning: main actor-isolated property 'pageIndicatorSize' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
135 | )
136 |
/Users/admin/builder/spi-builder-workspace/Sources/AppKitUI/custom-controls/AUIPageControl/AUIPageControl.swift:137:8: warning: call to main actor-isolated instance method 'setup()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
135 | )
136 |
137 | self.setup()
| `- warning: call to main actor-isolated instance method 'setup()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
138 | }
139 |
:
177 | }
178 |
179 | private func setup() {
| `- note: calls to instance method 'setup()' from outside of its actor context are implicitly asynchronous
180 | self.translatesAutoresizingMaskIntoConstraints = false
181 | self.wantsLayer = true
/Users/admin/builder/spi-builder-workspace/Sources/AppKitUI/custom-controls/AUIPageControl/private/PageControlIndicatorView.swift:22:13: warning: let '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
20 | import AppKit
21 |
22 | private let DefaultImage: NSImage = {
| |- warning: let 'DefaultImage' is not concurrency-safe because non-'Sendable' type 'NSImage' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make let 'DefaultImage' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
23 | let i: NSImage
24 | if #available(macOS 11.0, *) {
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSImage.h:66:12: note: class 'NSImage' does not conform to the 'Sendable' protocol
64 | __attribute__((objc_subclassing_restricted))
65 | #endif /* NSIMAGE_UNAVAILABLE_MACCATALYST */
66 | @interface NSImage : NSObject
| `- note: class 'NSImage' does not conform to the 'Sendable' protocol
67 |
68 | #pragma mark - Initialization
/Users/admin/builder/spi-builder-workspace/Sources/AppKitUI/custom-controls/AppKitUI+Image.swift:191:13: warning: let 'image1' is not concurrency-safe because non-'Sendable' type 'NSImage' may have shared mutable state; this is an error in the Swift 6 language mode
189 | #if DEBUG
190 |
191 | private let image1 = NSImage(named: NSImage.bonjourName)!
| |- warning: let 'image1' is not concurrency-safe because non-'Sendable' type 'NSImage' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make let 'image1' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
192 | private let image2 = NSImage(named: NSImage.computerName)!
193 |
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSImage.h:66:12: note: class 'NSImage' does not conform to the 'Sendable' protocol
64 | __attribute__((objc_subclassing_restricted))
65 | #endif /* NSIMAGE_UNAVAILABLE_MACCATALYST */
66 | @interface NSImage : NSObject
| `- note: class 'NSImage' does not conform to the 'Sendable' protocol
67 |
68 | #pragma mark - Initialization
/Users/admin/builder/spi-builder-workspace/Sources/AppKitUI/custom-controls/AppKitUI+Image.swift:192:13: warning: let 'image2' is not concurrency-safe because non-'Sendable' type 'NSImage' may have shared mutable state; this is an error in the Swift 6 language mode
190 |
191 | private let image1 = NSImage(named: NSImage.bonjourName)!
192 | private let image2 = NSImage(named: NSImage.computerName)!
| |- warning: let 'image2' is not concurrency-safe because non-'Sendable' type 'NSImage' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make let 'image2' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
193 |
194 | @available(macOS 14, *)
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSImage.h:66:12: note: class 'NSImage' does not conform to the 'Sendable' protocol
64 | __attribute__((objc_subclassing_restricted))
65 | #endif /* NSIMAGE_UNAVAILABLE_MACCATALYST */
66 | @interface NSImage : NSObject
| `- note: class 'NSImage' does not conform to the 'Sendable' protocol
67 |
68 | #pragma mark - Initialization
[133/136] Compiling AppKitUI AppKitUI+PaddedTextField.swift
/Users/admin/builder/spi-builder-workspace/Sources/AppKitUI/custom-controls/AUIPageControl/AUIPageControl.swift:129:17: warning: call to main actor-isolated initializer 'init(pageCount:windowSize:initialPage:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
127 | public override func awakeFromNib() {
128 | super.awakeFromNib()
129 | let content = WindowedContent(pageCount: self.numberOfPages, windowSize: self.windowSize)
| `- warning: call to main actor-isolated initializer 'init(pageCount:windowSize:initialPage:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
130 | self.content = content
131 | self.indicatorsView = PageControlIndicatorsView(
/Users/admin/builder/spi-builder-workspace/Sources/AppKitUI/custom-controls/AUIPageControl/private/WindowedContent.swift:127:2: note: calls to initializer 'init(pageCount:windowSize:initialPage:)' from outside of its actor context are implicitly asynchronous
125 | @inlinable var windowIsAtRightEdge: Bool { self.window.upperBound == self.pageCount }
126 |
127 | init(pageCount: Int, windowSize: Int, initialPage: Int = 0) {
| `- note: calls to initializer 'init(pageCount:windowSize:initialPage:)' from outside of its actor context are implicitly asynchronous
128 |
129 | let windowSize = pageCount < windowSize ? pageCount : windowSize
/Users/admin/builder/spi-builder-workspace/Sources/AppKitUI/custom-controls/AUIPageControl/AUIPageControl.swift:129:49: warning: main actor-isolated property 'numberOfPages' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
40 |
41 | /// The number of pages in the control
42 | @IBInspectable @objc public dynamic var numberOfPages: Int = 6 {
| `- note: property declared here
43 | didSet {
44 | let content = WindowedContent(pageCount: self.numberOfPages, windowSize: self.windowSize, initialPage: self.currentPage)
:
127 | public override func awakeFromNib() {
128 | super.awakeFromNib()
129 | let content = WindowedContent(pageCount: self.numberOfPages, windowSize: self.windowSize)
| `- warning: main actor-isolated property 'numberOfPages' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
130 | self.content = content
131 | self.indicatorsView = PageControlIndicatorsView(
/Users/admin/builder/spi-builder-workspace/Sources/AppKitUI/custom-controls/AUIPageControl/AUIPageControl.swift:129:81: warning: main actor-isolated property 'windowSize' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
48 | }
49 | /// The window size
50 | @IBInspectable @objc public dynamic var windowSize: Int = 6
| `- note: property declared here
51 | /// The currently selected page
52 | @IBInspectable @objc public dynamic var currentPage: Int = 0 {
:
127 | public override func awakeFromNib() {
128 | super.awakeFromNib()
129 | let content = WindowedContent(pageCount: self.numberOfPages, windowSize: self.windowSize)
| `- warning: main actor-isolated property 'windowSize' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
130 | self.content = content
131 | self.indicatorsView = PageControlIndicatorsView(
/Users/admin/builder/spi-builder-workspace/Sources/AppKitUI/custom-controls/AUIPageControl/AUIPageControl.swift:130:8: warning: main actor-isolated property 'content' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
128 | super.awakeFromNib()
129 | let content = WindowedContent(pageCount: self.numberOfPages, windowSize: self.windowSize)
130 | self.content = content
| `- warning: main actor-isolated property 'content' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
131 | self.indicatorsView = PageControlIndicatorsView(
132 | content: content,
:
150 | private var indicatorsView: PageControlIndicatorsView?
151 | private var leadingConstraint: NSLayoutConstraint?
152 | private var content: WindowedContent?
| `- note: mutation of this property is only permitted within the actor
153 | private var enableDetector: NSKeyValueObservation?
154 | }
/Users/admin/builder/spi-builder-workspace/Sources/AppKitUI/custom-controls/AUIPageControl/AUIPageControl.swift:131:8: warning: main actor-isolated property 'indicatorsView' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
129 | let content = WindowedContent(pageCount: self.numberOfPages, windowSize: self.windowSize)
130 | self.content = content
131 | self.indicatorsView = PageControlIndicatorsView(
| `- warning: main actor-isolated property 'indicatorsView' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
132 | content: content,
133 | orientation: self.isHorizontal ? .horizontal : .vertical,
:
148 | }
149 |
150 | private var indicatorsView: PageControlIndicatorsView?
| `- note: mutation of this property is only permitted within the actor
151 | private var leadingConstraint: NSLayoutConstraint?
152 | private var content: WindowedContent?
/Users/admin/builder/spi-builder-workspace/Sources/AppKitUI/custom-controls/AUIPageControl/AUIPageControl.swift:131:25: warning: call to main actor-isolated initializer 'init(content:orientation:pageIndicatorSize:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
129 | let content = WindowedContent(pageCount: self.numberOfPages, windowSize: self.windowSize)
130 | self.content = content
131 | self.indicatorsView = PageControlIndicatorsView(
| `- warning: call to main actor-isolated initializer 'init(content:orientation:pageIndicatorSize:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
132 | content: content,
133 | orientation: self.isHorizontal ? .horizontal : .vertical,
/Users/admin/builder/spi-builder-workspace/Sources/AppKitUI/custom-controls/AUIPageControl/private/PageControlIndicatorsView.swift:35:2: note: calls to initializer 'init(content:orientation:pageIndicatorSize:)' from outside of its actor context are implicitly asynchronous
33 | let pageIndicatorSize: CGSize
34 |
35 | init(
| `- note: calls to initializer 'init(content:orientation:pageIndicatorSize:)' from outside of its actor context are implicitly asynchronous
36 | content: WindowedContent,
37 | orientation: NSUserInterfaceLayoutOrientation = .horizontal,
/Users/admin/builder/spi-builder-workspace/Sources/AppKitUI/custom-controls/AUIPageControl/AUIPageControl.swift:133:22: warning: main actor-isolated property 'isHorizontal' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
29 | @objc public class AUIPageControl: NSControl {
30 | /// Orientation
31 | @IBInspectable @objc public dynamic var isHorizontal: Bool = true
| `- note: property declared here
32 | /// Page indicator width
33 | @IBInspectable @objc public dynamic var pageIndicatorWidth: Double = AUIPageControlDefaultPageIndicatorSize.width
:
131 | self.indicatorsView = PageControlIndicatorsView(
132 | content: content,
133 | orientation: self.isHorizontal ? .horizontal : .vertical,
| `- warning: main actor-isolated property 'isHorizontal' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
134 | pageIndicatorSize: self.pageIndicatorSize
135 | )
/Users/admin/builder/spi-builder-workspace/Sources/AppKitUI/custom-controls/AUIPageControl/AUIPageControl.swift:134:28: warning: main actor-isolated property 'pageIndicatorSize' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
35 | @IBInspectable @objc public dynamic var pageIndicatorHeight: Double = AUIPageControlDefaultPageIndicatorSize.height
36 | /// The page indicator size
37 | private var pageIndicatorSize: CGSize {
| `- note: property declared here
38 | CGSize(width: self.pageIndicatorWidth, height: self.pageIndicatorHeight)
39 | }
:
132 | content: content,
133 | orientation: self.isHorizontal ? .horizontal : .vertical,
134 | pageIndicatorSize: self.pageIndicatorSize
| `- warning: main actor-isolated property 'pageIndicatorSize' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
135 | )
136 |
/Users/admin/builder/spi-builder-workspace/Sources/AppKitUI/custom-controls/AUIPageControl/AUIPageControl.swift:137:8: warning: call to main actor-isolated instance method 'setup()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
135 | )
136 |
137 | self.setup()
| `- warning: call to main actor-isolated instance method 'setup()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
138 | }
139 |
:
177 | }
178 |
179 | private func setup() {
| `- note: calls to instance method 'setup()' from outside of its actor context are implicitly asynchronous
180 | self.translatesAutoresizingMaskIntoConstraints = false
181 | self.wantsLayer = true
/Users/admin/builder/spi-builder-workspace/Sources/AppKitUI/custom-controls/AUIPageControl/private/PageControlIndicatorView.swift:22:13: warning: let '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
20 | import AppKit
21 |
22 | private let DefaultImage: NSImage = {
| |- warning: let 'DefaultImage' is not concurrency-safe because non-'Sendable' type 'NSImage' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make let 'DefaultImage' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
23 | let i: NSImage
24 | if #available(macOS 11.0, *) {
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSImage.h:66:12: note: class 'NSImage' does not conform to the 'Sendable' protocol
64 | __attribute__((objc_subclassing_restricted))
65 | #endif /* NSIMAGE_UNAVAILABLE_MACCATALYST */
66 | @interface NSImage : NSObject
| `- note: class 'NSImage' does not conform to the 'Sendable' protocol
67 |
68 | #pragma mark - Initialization
/Users/admin/builder/spi-builder-workspace/Sources/AppKitUI/custom-controls/AppKitUI+Image.swift:191:13: warning: let 'image1' is not concurrency-safe because non-'Sendable' type 'NSImage' may have shared mutable state; this is an error in the Swift 6 language mode
189 | #if DEBUG
190 |
191 | private let image1 = NSImage(named: NSImage.bonjourName)!
| |- warning: let 'image1' is not concurrency-safe because non-'Sendable' type 'NSImage' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make let 'image1' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
192 | private let image2 = NSImage(named: NSImage.computerName)!
193 |
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSImage.h:66:12: note: class 'NSImage' does not conform to the 'Sendable' protocol
64 | __attribute__((objc_subclassing_restricted))
65 | #endif /* NSIMAGE_UNAVAILABLE_MACCATALYST */
66 | @interface NSImage : NSObject
| `- note: class 'NSImage' does not conform to the 'Sendable' protocol
67 |
68 | #pragma mark - Initialization
/Users/admin/builder/spi-builder-workspace/Sources/AppKitUI/custom-controls/AppKitUI+Image.swift:192:13: warning: let 'image2' is not concurrency-safe because non-'Sendable' type 'NSImage' may have shared mutable state; this is an error in the Swift 6 language mode
190 |
191 | private let image1 = NSImage(named: NSImage.bonjourName)!
192 | private let image2 = NSImage(named: NSImage.computerName)!
| |- warning: let 'image2' is not concurrency-safe because non-'Sendable' type 'NSImage' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make let 'image2' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
193 |
194 | @available(macOS 14, *)
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSImage.h:66:12: note: class 'NSImage' does not conform to the 'Sendable' protocol
64 | __attribute__((objc_subclassing_restricted))
65 | #endif /* NSIMAGE_UNAVAILABLE_MACCATALYST */
66 | @interface NSImage : NSObject
| `- note: class 'NSImage' does not conform to the 'Sendable' protocol
67 |
68 | #pragma mark - Initialization
[134/136] Compiling AppKitUI AppKitUI+FillStyle+Checkerboard.swift
/Users/admin/builder/spi-builder-workspace/Sources/AppKitUI/custom-controls/AUIPageControl/AUIPageControl.swift:129:17: warning: call to main actor-isolated initializer 'init(pageCount:windowSize:initialPage:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
127 | public override func awakeFromNib() {
128 | super.awakeFromNib()
129 | let content = WindowedContent(pageCount: self.numberOfPages, windowSize: self.windowSize)
| `- warning: call to main actor-isolated initializer 'init(pageCount:windowSize:initialPage:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
130 | self.content = content
131 | self.indicatorsView = PageControlIndicatorsView(
/Users/admin/builder/spi-builder-workspace/Sources/AppKitUI/custom-controls/AUIPageControl/private/WindowedContent.swift:127:2: note: calls to initializer 'init(pageCount:windowSize:initialPage:)' from outside of its actor context are implicitly asynchronous
125 | @inlinable var windowIsAtRightEdge: Bool { self.window.upperBound == self.pageCount }
126 |
127 | init(pageCount: Int, windowSize: Int, initialPage: Int = 0) {
| `- note: calls to initializer 'init(pageCount:windowSize:initialPage:)' from outside of its actor context are implicitly asynchronous
128 |
129 | let windowSize = pageCount < windowSize ? pageCount : windowSize
/Users/admin/builder/spi-builder-workspace/Sources/AppKitUI/custom-controls/AUIPageControl/AUIPageControl.swift:129:49: warning: main actor-isolated property 'numberOfPages' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
40 |
41 | /// The number of pages in the control
42 | @IBInspectable @objc public dynamic var numberOfPages: Int = 6 {
| `- note: property declared here
43 | didSet {
44 | let content = WindowedContent(pageCount: self.numberOfPages, windowSize: self.windowSize, initialPage: self.currentPage)
:
127 | public override func awakeFromNib() {
128 | super.awakeFromNib()
129 | let content = WindowedContent(pageCount: self.numberOfPages, windowSize: self.windowSize)
| `- warning: main actor-isolated property 'numberOfPages' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
130 | self.content = content
131 | self.indicatorsView = PageControlIndicatorsView(
/Users/admin/builder/spi-builder-workspace/Sources/AppKitUI/custom-controls/AUIPageControl/AUIPageControl.swift:129:81: warning: main actor-isolated property 'windowSize' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
48 | }
49 | /// The window size
50 | @IBInspectable @objc public dynamic var windowSize: Int = 6
| `- note: property declared here
51 | /// The currently selected page
52 | @IBInspectable @objc public dynamic var currentPage: Int = 0 {
:
127 | public override func awakeFromNib() {
128 | super.awakeFromNib()
129 | let content = WindowedContent(pageCount: self.numberOfPages, windowSize: self.windowSize)
| `- warning: main actor-isolated property 'windowSize' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
130 | self.content = content
131 | self.indicatorsView = PageControlIndicatorsView(
/Users/admin/builder/spi-builder-workspace/Sources/AppKitUI/custom-controls/AUIPageControl/AUIPageControl.swift:130:8: warning: main actor-isolated property 'content' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
128 | super.awakeFromNib()
129 | let content = WindowedContent(pageCount: self.numberOfPages, windowSize: self.windowSize)
130 | self.content = content
| `- warning: main actor-isolated property 'content' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
131 | self.indicatorsView = PageControlIndicatorsView(
132 | content: content,
:
150 | private var indicatorsView: PageControlIndicatorsView?
151 | private var leadingConstraint: NSLayoutConstraint?
152 | private var content: WindowedContent?
| `- note: mutation of this property is only permitted within the actor
153 | private var enableDetector: NSKeyValueObservation?
154 | }
/Users/admin/builder/spi-builder-workspace/Sources/AppKitUI/custom-controls/AUIPageControl/AUIPageControl.swift:131:8: warning: main actor-isolated property 'indicatorsView' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
129 | let content = WindowedContent(pageCount: self.numberOfPages, windowSize: self.windowSize)
130 | self.content = content
131 | self.indicatorsView = PageControlIndicatorsView(
| `- warning: main actor-isolated property 'indicatorsView' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
132 | content: content,
133 | orientation: self.isHorizontal ? .horizontal : .vertical,
:
148 | }
149 |
150 | private var indicatorsView: PageControlIndicatorsView?
| `- note: mutation of this property is only permitted within the actor
151 | private var leadingConstraint: NSLayoutConstraint?
152 | private var content: WindowedContent?
/Users/admin/builder/spi-builder-workspace/Sources/AppKitUI/custom-controls/AUIPageControl/AUIPageControl.swift:131:25: warning: call to main actor-isolated initializer 'init(content:orientation:pageIndicatorSize:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
129 | let content = WindowedContent(pageCount: self.numberOfPages, windowSize: self.windowSize)
130 | self.content = content
131 | self.indicatorsView = PageControlIndicatorsView(
| `- warning: call to main actor-isolated initializer 'init(content:orientation:pageIndicatorSize:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
132 | content: content,
133 | orientation: self.isHorizontal ? .horizontal : .vertical,
/Users/admin/builder/spi-builder-workspace/Sources/AppKitUI/custom-controls/AUIPageControl/private/PageControlIndicatorsView.swift:35:2: note: calls to initializer 'init(content:orientation:pageIndicatorSize:)' from outside of its actor context are implicitly asynchronous
33 | let pageIndicatorSize: CGSize
34 |
35 | init(
| `- note: calls to initializer 'init(content:orientation:pageIndicatorSize:)' from outside of its actor context are implicitly asynchronous
36 | content: WindowedContent,
37 | orientation: NSUserInterfaceLayoutOrientation = .horizontal,
/Users/admin/builder/spi-builder-workspace/Sources/AppKitUI/custom-controls/AUIPageControl/AUIPageControl.swift:133:22: warning: main actor-isolated property 'isHorizontal' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
29 | @objc public class AUIPageControl: NSControl {
30 | /// Orientation
31 | @IBInspectable @objc public dynamic var isHorizontal: Bool = true
| `- note: property declared here
32 | /// Page indicator width
33 | @IBInspectable @objc public dynamic var pageIndicatorWidth: Double = AUIPageControlDefaultPageIndicatorSize.width
:
131 | self.indicatorsView = PageControlIndicatorsView(
132 | content: content,
133 | orientation: self.isHorizontal ? .horizontal : .vertical,
| `- warning: main actor-isolated property 'isHorizontal' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
134 | pageIndicatorSize: self.pageIndicatorSize
135 | )
/Users/admin/builder/spi-builder-workspace/Sources/AppKitUI/custom-controls/AUIPageControl/AUIPageControl.swift:134:28: warning: main actor-isolated property 'pageIndicatorSize' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
35 | @IBInspectable @objc public dynamic var pageIndicatorHeight: Double = AUIPageControlDefaultPageIndicatorSize.height
36 | /// The page indicator size
37 | private var pageIndicatorSize: CGSize {
| `- note: property declared here
38 | CGSize(width: self.pageIndicatorWidth, height: self.pageIndicatorHeight)
39 | }
:
132 | content: content,
133 | orientation: self.isHorizontal ? .horizontal : .vertical,
134 | pageIndicatorSize: self.pageIndicatorSize
| `- warning: main actor-isolated property 'pageIndicatorSize' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
135 | )
136 |
/Users/admin/builder/spi-builder-workspace/Sources/AppKitUI/custom-controls/AUIPageControl/AUIPageControl.swift:137:8: warning: call to main actor-isolated instance method 'setup()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
135 | )
136 |
137 | self.setup()
| `- warning: call to main actor-isolated instance method 'setup()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
138 | }
139 |
:
177 | }
178 |
179 | private func setup() {
| `- note: calls to instance method 'setup()' from outside of its actor context are implicitly asynchronous
180 | self.translatesAutoresizingMaskIntoConstraints = false
181 | self.wantsLayer = true
/Users/admin/builder/spi-builder-workspace/Sources/AppKitUI/custom-controls/AUIPageControl/private/PageControlIndicatorView.swift:22:13: warning: let '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
20 | import AppKit
21 |
22 | private let DefaultImage: NSImage = {
| |- warning: let 'DefaultImage' is not concurrency-safe because non-'Sendable' type 'NSImage' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make let 'DefaultImage' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
23 | let i: NSImage
24 | if #available(macOS 11.0, *) {
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSImage.h:66:12: note: class 'NSImage' does not conform to the 'Sendable' protocol
64 | __attribute__((objc_subclassing_restricted))
65 | #endif /* NSIMAGE_UNAVAILABLE_MACCATALYST */
66 | @interface NSImage : NSObject
| `- note: class 'NSImage' does not conform to the 'Sendable' protocol
67 |
68 | #pragma mark - Initialization
/Users/admin/builder/spi-builder-workspace/Sources/AppKitUI/custom-controls/AppKitUI+Image.swift:191:13: warning: let 'image1' is not concurrency-safe because non-'Sendable' type 'NSImage' may have shared mutable state; this is an error in the Swift 6 language mode
189 | #if DEBUG
190 |
191 | private let image1 = NSImage(named: NSImage.bonjourName)!
| |- warning: let 'image1' is not concurrency-safe because non-'Sendable' type 'NSImage' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make let 'image1' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
192 | private let image2 = NSImage(named: NSImage.computerName)!
193 |
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSImage.h:66:12: note: class 'NSImage' does not conform to the 'Sendable' protocol
64 | __attribute__((objc_subclassing_restricted))
65 | #endif /* NSIMAGE_UNAVAILABLE_MACCATALYST */
66 | @interface NSImage : NSObject
| `- note: class 'NSImage' does not conform to the 'Sendable' protocol
67 |
68 | #pragma mark - Initialization
/Users/admin/builder/spi-builder-workspace/Sources/AppKitUI/custom-controls/AppKitUI+Image.swift:192:13: warning: let 'image2' is not concurrency-safe because non-'Sendable' type 'NSImage' may have shared mutable state; this is an error in the Swift 6 language mode
190 |
191 | private let image1 = NSImage(named: NSImage.bonjourName)!
192 | private let image2 = NSImage(named: NSImage.computerName)!
| |- warning: let 'image2' is not concurrency-safe because non-'Sendable' type 'NSImage' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make let 'image2' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
193 |
194 | @available(macOS 14, *)
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSImage.h:66:12: note: class 'NSImage' does not conform to the 'Sendable' protocol
64 | __attribute__((objc_subclassing_restricted))
65 | #endif /* NSIMAGE_UNAVAILABLE_MACCATALYST */
66 | @interface NSImage : NSObject
| `- note: class 'NSImage' does not conform to the 'Sendable' protocol
67 |
68 | #pragma mark - Initialization
[135/136] Compiling AppKitUI AppKitUI+FillStyle+Color.swift
/Users/admin/builder/spi-builder-workspace/Sources/AppKitUI/custom-controls/AUIPageControl/AUIPageControl.swift:129:17: warning: call to main actor-isolated initializer 'init(pageCount:windowSize:initialPage:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
127 | public override func awakeFromNib() {
128 | super.awakeFromNib()
129 | let content = WindowedContent(pageCount: self.numberOfPages, windowSize: self.windowSize)
| `- warning: call to main actor-isolated initializer 'init(pageCount:windowSize:initialPage:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
130 | self.content = content
131 | self.indicatorsView = PageControlIndicatorsView(
/Users/admin/builder/spi-builder-workspace/Sources/AppKitUI/custom-controls/AUIPageControl/private/WindowedContent.swift:127:2: note: calls to initializer 'init(pageCount:windowSize:initialPage:)' from outside of its actor context are implicitly asynchronous
125 | @inlinable var windowIsAtRightEdge: Bool { self.window.upperBound == self.pageCount }
126 |
127 | init(pageCount: Int, windowSize: Int, initialPage: Int = 0) {
| `- note: calls to initializer 'init(pageCount:windowSize:initialPage:)' from outside of its actor context are implicitly asynchronous
128 |
129 | let windowSize = pageCount < windowSize ? pageCount : windowSize
/Users/admin/builder/spi-builder-workspace/Sources/AppKitUI/custom-controls/AUIPageControl/AUIPageControl.swift:129:49: warning: main actor-isolated property 'numberOfPages' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
40 |
41 | /// The number of pages in the control
42 | @IBInspectable @objc public dynamic var numberOfPages: Int = 6 {
| `- note: property declared here
43 | didSet {
44 | let content = WindowedContent(pageCount: self.numberOfPages, windowSize: self.windowSize, initialPage: self.currentPage)
:
127 | public override func awakeFromNib() {
128 | super.awakeFromNib()
129 | let content = WindowedContent(pageCount: self.numberOfPages, windowSize: self.windowSize)
| `- warning: main actor-isolated property 'numberOfPages' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
130 | self.content = content
131 | self.indicatorsView = PageControlIndicatorsView(
/Users/admin/builder/spi-builder-workspace/Sources/AppKitUI/custom-controls/AUIPageControl/AUIPageControl.swift:129:81: warning: main actor-isolated property 'windowSize' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
48 | }
49 | /// The window size
50 | @IBInspectable @objc public dynamic var windowSize: Int = 6
| `- note: property declared here
51 | /// The currently selected page
52 | @IBInspectable @objc public dynamic var currentPage: Int = 0 {
:
127 | public override func awakeFromNib() {
128 | super.awakeFromNib()
129 | let content = WindowedContent(pageCount: self.numberOfPages, windowSize: self.windowSize)
| `- warning: main actor-isolated property 'windowSize' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
130 | self.content = content
131 | self.indicatorsView = PageControlIndicatorsView(
/Users/admin/builder/spi-builder-workspace/Sources/AppKitUI/custom-controls/AUIPageControl/AUIPageControl.swift:130:8: warning: main actor-isolated property 'content' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
128 | super.awakeFromNib()
129 | let content = WindowedContent(pageCount: self.numberOfPages, windowSize: self.windowSize)
130 | self.content = content
| `- warning: main actor-isolated property 'content' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
131 | self.indicatorsView = PageControlIndicatorsView(
132 | content: content,
:
150 | private var indicatorsView: PageControlIndicatorsView?
151 | private var leadingConstraint: NSLayoutConstraint?
152 | private var content: WindowedContent?
| `- note: mutation of this property is only permitted within the actor
153 | private var enableDetector: NSKeyValueObservation?
154 | }
/Users/admin/builder/spi-builder-workspace/Sources/AppKitUI/custom-controls/AUIPageControl/AUIPageControl.swift:131:8: warning: main actor-isolated property 'indicatorsView' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
129 | let content = WindowedContent(pageCount: self.numberOfPages, windowSize: self.windowSize)
130 | self.content = content
131 | self.indicatorsView = PageControlIndicatorsView(
| `- warning: main actor-isolated property 'indicatorsView' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
132 | content: content,
133 | orientation: self.isHorizontal ? .horizontal : .vertical,
:
148 | }
149 |
150 | private var indicatorsView: PageControlIndicatorsView?
| `- note: mutation of this property is only permitted within the actor
151 | private var leadingConstraint: NSLayoutConstraint?
152 | private var content: WindowedContent?
/Users/admin/builder/spi-builder-workspace/Sources/AppKitUI/custom-controls/AUIPageControl/AUIPageControl.swift:131:25: warning: call to main actor-isolated initializer 'init(content:orientation:pageIndicatorSize:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
129 | let content = WindowedContent(pageCount: self.numberOfPages, windowSize: self.windowSize)
130 | self.content = content
131 | self.indicatorsView = PageControlIndicatorsView(
| `- warning: call to main actor-isolated initializer 'init(content:orientation:pageIndicatorSize:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
132 | content: content,
133 | orientation: self.isHorizontal ? .horizontal : .vertical,
/Users/admin/builder/spi-builder-workspace/Sources/AppKitUI/custom-controls/AUIPageControl/private/PageControlIndicatorsView.swift:35:2: note: calls to initializer 'init(content:orientation:pageIndicatorSize:)' from outside of its actor context are implicitly asynchronous
33 | let pageIndicatorSize: CGSize
34 |
35 | init(
| `- note: calls to initializer 'init(content:orientation:pageIndicatorSize:)' from outside of its actor context are implicitly asynchronous
36 | content: WindowedContent,
37 | orientation: NSUserInterfaceLayoutOrientation = .horizontal,
/Users/admin/builder/spi-builder-workspace/Sources/AppKitUI/custom-controls/AUIPageControl/AUIPageControl.swift:133:22: warning: main actor-isolated property 'isHorizontal' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
29 | @objc public class AUIPageControl: NSControl {
30 | /// Orientation
31 | @IBInspectable @objc public dynamic var isHorizontal: Bool = true
| `- note: property declared here
32 | /// Page indicator width
33 | @IBInspectable @objc public dynamic var pageIndicatorWidth: Double = AUIPageControlDefaultPageIndicatorSize.width
:
131 | self.indicatorsView = PageControlIndicatorsView(
132 | content: content,
133 | orientation: self.isHorizontal ? .horizontal : .vertical,
| `- warning: main actor-isolated property 'isHorizontal' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
134 | pageIndicatorSize: self.pageIndicatorSize
135 | )
/Users/admin/builder/spi-builder-workspace/Sources/AppKitUI/custom-controls/AUIPageControl/AUIPageControl.swift:134:28: warning: main actor-isolated property 'pageIndicatorSize' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
35 | @IBInspectable @objc public dynamic var pageIndicatorHeight: Double = AUIPageControlDefaultPageIndicatorSize.height
36 | /// The page indicator size
37 | private var pageIndicatorSize: CGSize {
| `- note: property declared here
38 | CGSize(width: self.pageIndicatorWidth, height: self.pageIndicatorHeight)
39 | }
:
132 | content: content,
133 | orientation: self.isHorizontal ? .horizontal : .vertical,
134 | pageIndicatorSize: self.pageIndicatorSize
| `- warning: main actor-isolated property 'pageIndicatorSize' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
135 | )
136 |
/Users/admin/builder/spi-builder-workspace/Sources/AppKitUI/custom-controls/AUIPageControl/AUIPageControl.swift:137:8: warning: call to main actor-isolated instance method 'setup()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
135 | )
136 |
137 | self.setup()
| `- warning: call to main actor-isolated instance method 'setup()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
138 | }
139 |
:
177 | }
178 |
179 | private func setup() {
| `- note: calls to instance method 'setup()' from outside of its actor context are implicitly asynchronous
180 | self.translatesAutoresizingMaskIntoConstraints = false
181 | self.wantsLayer = true
/Users/admin/builder/spi-builder-workspace/Sources/AppKitUI/custom-controls/AUIPageControl/private/PageControlIndicatorView.swift:22:13: warning: let '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
20 | import AppKit
21 |
22 | private let DefaultImage: NSImage = {
| |- warning: let 'DefaultImage' is not concurrency-safe because non-'Sendable' type 'NSImage' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make let 'DefaultImage' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
23 | let i: NSImage
24 | if #available(macOS 11.0, *) {
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSImage.h:66:12: note: class 'NSImage' does not conform to the 'Sendable' protocol
64 | __attribute__((objc_subclassing_restricted))
65 | #endif /* NSIMAGE_UNAVAILABLE_MACCATALYST */
66 | @interface NSImage : NSObject
| `- note: class 'NSImage' does not conform to the 'Sendable' protocol
67 |
68 | #pragma mark - Initialization
/Users/admin/builder/spi-builder-workspace/Sources/AppKitUI/custom-controls/AppKitUI+Image.swift:191:13: warning: let 'image1' is not concurrency-safe because non-'Sendable' type 'NSImage' may have shared mutable state; this is an error in the Swift 6 language mode
189 | #if DEBUG
190 |
191 | private let image1 = NSImage(named: NSImage.bonjourName)!
| |- warning: let 'image1' is not concurrency-safe because non-'Sendable' type 'NSImage' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make let 'image1' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
192 | private let image2 = NSImage(named: NSImage.computerName)!
193 |
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSImage.h:66:12: note: class 'NSImage' does not conform to the 'Sendable' protocol
64 | __attribute__((objc_subclassing_restricted))
65 | #endif /* NSIMAGE_UNAVAILABLE_MACCATALYST */
66 | @interface NSImage : NSObject
| `- note: class 'NSImage' does not conform to the 'Sendable' protocol
67 |
68 | #pragma mark - Initialization
/Users/admin/builder/spi-builder-workspace/Sources/AppKitUI/custom-controls/AppKitUI+Image.swift:192:13: warning: let 'image2' is not concurrency-safe because non-'Sendable' type 'NSImage' may have shared mutable state; this is an error in the Swift 6 language mode
190 |
191 | private let image1 = NSImage(named: NSImage.bonjourName)!
192 | private let image2 = NSImage(named: NSImage.computerName)!
| |- warning: let 'image2' is not concurrency-safe because non-'Sendable' type 'NSImage' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make let 'image2' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
193 |
194 | @available(macOS 14, *)
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSImage.h:66:12: note: class 'NSImage' does not conform to the 'Sendable' protocol
64 | __attribute__((objc_subclassing_restricted))
65 | #endif /* NSIMAGE_UNAVAILABLE_MACCATALYST */
66 | @interface NSImage : NSObject
| `- note: class 'NSImage' does not conform to the 'Sendable' protocol
67 |
68 | #pragma mark - Initialization
[136/136] Compiling AppKitUI AppKitUI+FillStyle+Gradient.swift
/Users/admin/builder/spi-builder-workspace/Sources/AppKitUI/custom-controls/AUIPageControl/AUIPageControl.swift:129:17: warning: call to main actor-isolated initializer 'init(pageCount:windowSize:initialPage:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
127 | public override func awakeFromNib() {
128 | super.awakeFromNib()
129 | let content = WindowedContent(pageCount: self.numberOfPages, windowSize: self.windowSize)
| `- warning: call to main actor-isolated initializer 'init(pageCount:windowSize:initialPage:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
130 | self.content = content
131 | self.indicatorsView = PageControlIndicatorsView(
/Users/admin/builder/spi-builder-workspace/Sources/AppKitUI/custom-controls/AUIPageControl/private/WindowedContent.swift:127:2: note: calls to initializer 'init(pageCount:windowSize:initialPage:)' from outside of its actor context are implicitly asynchronous
125 | @inlinable var windowIsAtRightEdge: Bool { self.window.upperBound == self.pageCount }
126 |
127 | init(pageCount: Int, windowSize: Int, initialPage: Int = 0) {
| `- note: calls to initializer 'init(pageCount:windowSize:initialPage:)' from outside of its actor context are implicitly asynchronous
128 |
129 | let windowSize = pageCount < windowSize ? pageCount : windowSize
/Users/admin/builder/spi-builder-workspace/Sources/AppKitUI/custom-controls/AUIPageControl/AUIPageControl.swift:129:49: warning: main actor-isolated property 'numberOfPages' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
40 |
41 | /// The number of pages in the control
42 | @IBInspectable @objc public dynamic var numberOfPages: Int = 6 {
| `- note: property declared here
43 | didSet {
44 | let content = WindowedContent(pageCount: self.numberOfPages, windowSize: self.windowSize, initialPage: self.currentPage)
:
127 | public override func awakeFromNib() {
128 | super.awakeFromNib()
129 | let content = WindowedContent(pageCount: self.numberOfPages, windowSize: self.windowSize)
| `- warning: main actor-isolated property 'numberOfPages' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
130 | self.content = content
131 | self.indicatorsView = PageControlIndicatorsView(
/Users/admin/builder/spi-builder-workspace/Sources/AppKitUI/custom-controls/AUIPageControl/AUIPageControl.swift:129:81: warning: main actor-isolated property 'windowSize' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
48 | }
49 | /// The window size
50 | @IBInspectable @objc public dynamic var windowSize: Int = 6
| `- note: property declared here
51 | /// The currently selected page
52 | @IBInspectable @objc public dynamic var currentPage: Int = 0 {
:
127 | public override func awakeFromNib() {
128 | super.awakeFromNib()
129 | let content = WindowedContent(pageCount: self.numberOfPages, windowSize: self.windowSize)
| `- warning: main actor-isolated property 'windowSize' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
130 | self.content = content
131 | self.indicatorsView = PageControlIndicatorsView(
/Users/admin/builder/spi-builder-workspace/Sources/AppKitUI/custom-controls/AUIPageControl/AUIPageControl.swift:130:8: warning: main actor-isolated property 'content' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
128 | super.awakeFromNib()
129 | let content = WindowedContent(pageCount: self.numberOfPages, windowSize: self.windowSize)
130 | self.content = content
| `- warning: main actor-isolated property 'content' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
131 | self.indicatorsView = PageControlIndicatorsView(
132 | content: content,
:
150 | private var indicatorsView: PageControlIndicatorsView?
151 | private var leadingConstraint: NSLayoutConstraint?
152 | private var content: WindowedContent?
| `- note: mutation of this property is only permitted within the actor
153 | private var enableDetector: NSKeyValueObservation?
154 | }
/Users/admin/builder/spi-builder-workspace/Sources/AppKitUI/custom-controls/AUIPageControl/AUIPageControl.swift:131:8: warning: main actor-isolated property 'indicatorsView' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
129 | let content = WindowedContent(pageCount: self.numberOfPages, windowSize: self.windowSize)
130 | self.content = content
131 | self.indicatorsView = PageControlIndicatorsView(
| `- warning: main actor-isolated property 'indicatorsView' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
132 | content: content,
133 | orientation: self.isHorizontal ? .horizontal : .vertical,
:
148 | }
149 |
150 | private var indicatorsView: PageControlIndicatorsView?
| `- note: mutation of this property is only permitted within the actor
151 | private var leadingConstraint: NSLayoutConstraint?
152 | private var content: WindowedContent?
/Users/admin/builder/spi-builder-workspace/Sources/AppKitUI/custom-controls/AUIPageControl/AUIPageControl.swift:131:25: warning: call to main actor-isolated initializer 'init(content:orientation:pageIndicatorSize:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
129 | let content = WindowedContent(pageCount: self.numberOfPages, windowSize: self.windowSize)
130 | self.content = content
131 | self.indicatorsView = PageControlIndicatorsView(
| `- warning: call to main actor-isolated initializer 'init(content:orientation:pageIndicatorSize:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
132 | content: content,
133 | orientation: self.isHorizontal ? .horizontal : .vertical,
/Users/admin/builder/spi-builder-workspace/Sources/AppKitUI/custom-controls/AUIPageControl/private/PageControlIndicatorsView.swift:35:2: note: calls to initializer 'init(content:orientation:pageIndicatorSize:)' from outside of its actor context are implicitly asynchronous
33 | let pageIndicatorSize: CGSize
34 |
35 | init(
| `- note: calls to initializer 'init(content:orientation:pageIndicatorSize:)' from outside of its actor context are implicitly asynchronous
36 | content: WindowedContent,
37 | orientation: NSUserInterfaceLayoutOrientation = .horizontal,
/Users/admin/builder/spi-builder-workspace/Sources/AppKitUI/custom-controls/AUIPageControl/AUIPageControl.swift:133:22: warning: main actor-isolated property 'isHorizontal' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
29 | @objc public class AUIPageControl: NSControl {
30 | /// Orientation
31 | @IBInspectable @objc public dynamic var isHorizontal: Bool = true
| `- note: property declared here
32 | /// Page indicator width
33 | @IBInspectable @objc public dynamic var pageIndicatorWidth: Double = AUIPageControlDefaultPageIndicatorSize.width
:
131 | self.indicatorsView = PageControlIndicatorsView(
132 | content: content,
133 | orientation: self.isHorizontal ? .horizontal : .vertical,
| `- warning: main actor-isolated property 'isHorizontal' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
134 | pageIndicatorSize: self.pageIndicatorSize
135 | )
/Users/admin/builder/spi-builder-workspace/Sources/AppKitUI/custom-controls/AUIPageControl/AUIPageControl.swift:134:28: warning: main actor-isolated property 'pageIndicatorSize' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
35 | @IBInspectable @objc public dynamic var pageIndicatorHeight: Double = AUIPageControlDefaultPageIndicatorSize.height
36 | /// The page indicator size
37 | private var pageIndicatorSize: CGSize {
| `- note: property declared here
38 | CGSize(width: self.pageIndicatorWidth, height: self.pageIndicatorHeight)
39 | }
:
132 | content: content,
133 | orientation: self.isHorizontal ? .horizontal : .vertical,
134 | pageIndicatorSize: self.pageIndicatorSize
| `- warning: main actor-isolated property 'pageIndicatorSize' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
135 | )
136 |
/Users/admin/builder/spi-builder-workspace/Sources/AppKitUI/custom-controls/AUIPageControl/AUIPageControl.swift:137:8: warning: call to main actor-isolated instance method 'setup()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
135 | )
136 |
137 | self.setup()
| `- warning: call to main actor-isolated instance method 'setup()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
138 | }
139 |
:
177 | }
178 |
179 | private func setup() {
| `- note: calls to instance method 'setup()' from outside of its actor context are implicitly asynchronous
180 | self.translatesAutoresizingMaskIntoConstraints = false
181 | self.wantsLayer = true
/Users/admin/builder/spi-builder-workspace/Sources/AppKitUI/custom-controls/AUIPageControl/private/PageControlIndicatorView.swift:22:13: warning: let '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
20 | import AppKit
21 |
22 | private let DefaultImage: NSImage = {
| |- warning: let 'DefaultImage' is not concurrency-safe because non-'Sendable' type 'NSImage' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make let 'DefaultImage' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
23 | let i: NSImage
24 | if #available(macOS 11.0, *) {
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSImage.h:66:12: note: class 'NSImage' does not conform to the 'Sendable' protocol
64 | __attribute__((objc_subclassing_restricted))
65 | #endif /* NSIMAGE_UNAVAILABLE_MACCATALYST */
66 | @interface NSImage : NSObject
| `- note: class 'NSImage' does not conform to the 'Sendable' protocol
67 |
68 | #pragma mark - Initialization
/Users/admin/builder/spi-builder-workspace/Sources/AppKitUI/custom-controls/AppKitUI+Image.swift:191:13: warning: let 'image1' is not concurrency-safe because non-'Sendable' type 'NSImage' may have shared mutable state; this is an error in the Swift 6 language mode
189 | #if DEBUG
190 |
191 | private let image1 = NSImage(named: NSImage.bonjourName)!
| |- warning: let 'image1' is not concurrency-safe because non-'Sendable' type 'NSImage' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make let 'image1' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
192 | private let image2 = NSImage(named: NSImage.computerName)!
193 |
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSImage.h:66:12: note: class 'NSImage' does not conform to the 'Sendable' protocol
64 | __attribute__((objc_subclassing_restricted))
65 | #endif /* NSIMAGE_UNAVAILABLE_MACCATALYST */
66 | @interface NSImage : NSObject
| `- note: class 'NSImage' does not conform to the 'Sendable' protocol
67 |
68 | #pragma mark - Initialization
/Users/admin/builder/spi-builder-workspace/Sources/AppKitUI/custom-controls/AppKitUI+Image.swift:192:13: warning: let 'image2' is not concurrency-safe because non-'Sendable' type 'NSImage' may have shared mutable state; this is an error in the Swift 6 language mode
190 |
191 | private let image1 = NSImage(named: NSImage.bonjourName)!
192 | private let image2 = NSImage(named: NSImage.computerName)!
| |- warning: let 'image2' is not concurrency-safe because non-'Sendable' type 'NSImage' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make let 'image2' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
193 |
194 | @available(macOS 14, *)
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSImage.h:66:12: note: class 'NSImage' does not conform to the 'Sendable' protocol
64 | __attribute__((objc_subclassing_restricted))
65 | #endif /* NSIMAGE_UNAVAILABLE_MACCATALYST */
66 | @interface NSImage : NSObject
| `- note: class 'NSImage' does not conform to the 'Sendable' protocol
67 |
68 | #pragma mark - Initialization
Build complete! (15.35s)
Build complete.
{
"dependencies" : [
],
"manifest_display_name" : "AppKitUI",
"name" : "AppKitUI",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
{
"name" : "macos",
"version" : "10.13"
}
],
"products" : [
{
"name" : "AppKitUI",
"targets" : [
"AppKitUI"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "AppKitUITests",
"module_type" : "SwiftTarget",
"name" : "AppKitUITests",
"path" : "Tests/AppKitUITests",
"sources" : [
"AppKitUITests.swift"
],
"target_dependencies" : [
"AppKitUI"
],
"type" : "test"
},
{
"c99name" : "AppKitUI",
"module_type" : "SwiftTarget",
"name" : "AppKitUI",
"path" : "Sources/AppKitUI",
"product_memberships" : [
"AppKitUI"
],
"sources" : [
"AppKitUI+ColorSelector.swift",
"AppKitUI+ContentUnavailable.swift",
"AppKitUI+Divider.swift",
"AppKitUI+DragInfo.swift",
"AppKitUI+DropView.swift",
"AppKitUI+IndexValues.swift",
"AppKitUI+LayoutContainer.swift",
"AppKitUI+List.swift",
"AppKitUI+NumberStepper.swift",
"AppKitUI+PDFView.swift",
"AppKitUI+ResolvableColor.swift",
"AppKitUI+SpacerView.swift",
"AppKitUI+Switch.swift",
"AppKitUI+TargetAction.swift",
"AppKitUI+TextView.swift",
"AppKitUI+UserInterfaceIdentifier.swift",
"AppKitUI+ViewBodyGenerator.swift",
"AppKitUI+ViewController.swift",
"AppKitUI+WebView.swift",
"AppKitUI.swift",
"NSBackgroundExtensionView+appkitui.swift",
"NSBox+appkitui.swift",
"NSColor+appkitui.swift",
"NSColorWell+appkitui.swift",
"NSComboBox+appkitui.swift",
"NSComboButton+appkitui.swift",
"NSControl+appkitui.swift",
"NSDateControl+appkitui.swift",
"NSFont+appkitui.swift",
"NSGlassEffectContainerView+appkitui.swift",
"NSGlassEffectView+appkitui.swift",
"NSGraphicsContent+appkitui.swift",
"NSGridView+Row+appkitui.swift",
"NSGridView+appkitui.swift",
"NSLevelIndicator+appkitui.swift",
"NSPathControl+appkitui.swift",
"NSPopUpButton+appkitui.swift",
"NSProgressIndicator+appkitui.swift",
"NSSearchField+appkitui.swift",
"NSSecureTextField+appkitui.swift",
"NSSegmentedControl+appkitui.swift",
"NSSlider+appkitui.swift",
"NSStackView+appkitui.swift",
"NSStepper+appkitui.swift",
"NSSwitch+appkitui.swift",
"NSTextField+appkitui.swift",
"NSView+accessibility.swift",
"NSView+appearance.swift",
"NSView+appkitui.swift",
"NSView+constraints.swift",
"NSView+filters.swift",
"NSView+gestures.swift",
"NSView+mask.swift",
"NSViewController+extensions.swift",
"NSVisualEffectView+appkitui.swift",
"NSWindow+appkitui.swift",
"NumberFormatter+appkitui.swift",
"bind/Bind+Aggregator.swift",
"bind/Bind+OneWayTransform.swift",
"bind/Bind+Transformers.swift",
"bind/Bind+TwoWayTransform.swift",
"bind/Bind.swift",
"bind/Bindable.swift",
"bind/DelayingCall.swift",
"button/AppKitUI+ComboButton.swift",
"button/AppKitUI+LinkButton.swift",
"button/AppKitUI+TransparentButton.swift",
"button/NSButton+appkitui.swift",
"button/NSButton+checkbox.swift",
"button/NSButton+radio.swift",
"custom-controls/AUIPageControl/AUIPageControl+SwiftUI.swift",
"custom-controls/AUIPageControl/AUIPageControl.swift",
"custom-controls/AUIPageControl/private/PageControlIndicatorView.swift",
"custom-controls/AUIPageControl/private/PageControlIndicatorsView.swift",
"custom-controls/AUIPageControl/private/PageImageView.swift",
"custom-controls/AUIPageControl/private/WindowedContent.swift",
"custom-controls/AppKitUI+Image.swift",
"custom-controls/AppKitUI+PaddedTextField.swift",
"fill/AppKitUI+FillStyle+Checkerboard.swift",
"fill/AppKitUI+FillStyle+Color.swift",
"fill/AppKitUI+FillStyle+Gradient.swift",
"fill/AppKitUI+FillStyle+Image.swift",
"fill/AppKitUI+FillStyle+Stripes.swift",
"fill/AppKitUI+FillStyle.swift",
"image/NSImage+appkitui.swift",
"image/NSImageView+appkitui.swift",
"menu/NSMenu+appkitui.swift",
"menu/NSMenuItem+appkitui.swift",
"menu/NSMenuItem+palette.swift",
"menu/NSMenuItem+view.swift",
"panel/AppKitUI+Alert.swift",
"panel/AppKitUI+Popover.swift",
"panel/AppKitUI+Sheet.swift",
"panel/NSAlert+appkitui.swift",
"panel/NSOpenPanel+appkitui.swift",
"panel/NSSavePanel+appkitui.swift",
"shape/AppKitUI+Capsule.swift",
"shape/AppKitUI+Circle.swift",
"shape/AppKitUI+Ellipse.swift",
"shape/AppKitUI+Rectangle.swift",
"shape/AppKitUI+Shape.swift",
"structure/AppKitUI+Disclosure.swift",
"structure/AppKitUI+Flow.swift",
"structure/AppKitUI+GlassEffect.swift",
"structure/AppKitUI+GlassEffectContainer.swift",
"structure/AppKitUI+HidingView.swift",
"structure/AppKitUI+ScrollView.swift",
"structure/AppKitUI+SplitView.swift",
"structure/AppKitUI+Stack.swift",
"structure/AppKitUI+TabView.swift",
"structure/AppKitUI+ViewSwitcher.swift",
"structure/AppKitUI+ZStack.swift",
"tokenfield/AppKitUI+TokenField.swift",
"tokenfield/NSTokenField+appkitui.swift",
"utils/Array+extensions.swift",
"utils/CATransaction+extensions.swift",
"utils/DesignTime+PreviewBackport.swift",
"utils/FlowCollectionView.swift",
"utils/NSColor+extensions.swift",
"utils/NSCopying+extensions.swift",
"utils/NSImage+extensions.swift",
"utils/NSLayoutConstraint+extensions.swift",
"utils/NSObject+arbitraryValues.swift",
"utils/NSObject+associated.swift",
"utils/NSRange+extensions.swift",
"utils/NSView+extensions.swift",
"utils/OSLogger.swift",
"utils/Optional+extensions.swift",
"utils/Range+extensions.swift",
"utils/ReentryChecker.swift",
"utils/ScrollableTextView.swift",
"utils/ViewAppearanceObservation.swift",
"utils/global.swift"
],
"type" : "library"
}
],
"tools_version" : "5.9"
}
Done.