Build Information
Successful build of DSFAppearanceManager, reference main (fd459c
), with Swift 6.0 for macOS (SPM) on 24 Feb 2025 06:36:12 UTC.
Swift 6 data race errors: 2
Build Command
env DEVELOPER_DIR=/Applications/Xcode-16.2.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures
Build Log
========================================
RunAll
========================================
Builder version: 4.60.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/dagronf/DSFAppearanceManager.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/dagronf/DSFAppearanceManager
* branch main -> FETCH_HEAD
* [new branch] main -> origin/main
HEAD is now at fd459c8 Added privacy manifest
Cloned https://github.com/dagronf/DSFAppearanceManager.git
Revision (git rev-parse @):
fd459c8060d46d17b780a80ac43db83b444e2e13
SUCCESS checkout https://github.com/dagronf/DSFAppearanceManager.git at main
========================================
ResolveProductDependencies
========================================
Resolving dependencies ...
{
"identity": ".resolve-product-dependencies",
"name": "resolve-dependencies",
"url": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
"version": "unspecified",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
"dependencies": [
{
"identity": "dsfappearancemanager",
"name": "DSFAppearanceManager",
"url": "https://github.com/dagronf/DSFAppearanceManager.git",
"version": "unspecified",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/DSFAppearanceManager",
"dependencies": [
]
}
]
}
Fetching https://github.com/dagronf/DSFAppearanceManager.git
[1/459] Fetching dsfappearancemanager
Fetched https://github.com/dagronf/DSFAppearanceManager.git from cache (1.18s)
Creating working copy for https://github.com/dagronf/DSFAppearanceManager.git
Working copy of https://github.com/dagronf/DSFAppearanceManager.git resolved at main (fd459c8)
warning: '.resolve-product-dependencies': dependency 'dsfappearancemanager' is not used by any target
Found 0 product dependencies
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 6.0
Building package at path: $PWD
https://github.com/dagronf/DSFAppearanceManager.git
https://github.com/dagronf/DSFAppearanceManager.git
{
"dependencies" : [
],
"manifest_display_name" : "DSFAppearanceManager",
"name" : "DSFAppearanceManager",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
{
"name" : "macos",
"version" : "10.11"
}
],
"products" : [
{
"name" : "DSFAppearanceManager",
"targets" : [
"DSFAppearanceManager"
],
"type" : {
"library" : [
"automatic"
]
}
},
{
"name" : "DSFAppearanceManager-static",
"targets" : [
"DSFAppearanceManager"
],
"type" : {
"library" : [
"static"
]
}
},
{
"name" : "DSFAppearanceManager-shared",
"targets" : [
"DSFAppearanceManager"
],
"type" : {
"library" : [
"dynamic"
]
}
}
],
"targets" : [
{
"c99name" : "DSFAppearanceManagerTests",
"module_type" : "SwiftTarget",
"name" : "DSFAppearanceManagerTests",
"path" : "Tests/DSFAppearanceManagerTests",
"sources" : [
"DSFAppearanceManagerTests.swift"
],
"target_dependencies" : [
"DSFAppearanceManager"
],
"type" : "test"
},
{
"c99name" : "DSFAppearanceManager",
"module_type" : "SwiftTarget",
"name" : "DSFAppearanceManager",
"path" : "Sources/DSFAppearanceManager",
"product_memberships" : [
"DSFAppearanceManager",
"DSFAppearanceManager-static",
"DSFAppearanceManager-shared"
],
"resources" : [
{
"path" : "/Users/admin/builder/spi-builder-workspace/Sources/DSFAppearanceManager/PrivacyInfo.xcprivacy",
"rule" : {
"copy" : {
}
}
}
],
"sources" : [
"DSFAppearanceCache.swift",
"DSFAppearanceManager+ChangeDetector.swift",
"DSFAppearanceManager+Hardware.swift",
"DSFAppearanceManager.swift",
"NSView+Appearance.swift",
"NSWindow+Appearance.swift",
"private/AutoplayAnimatedImages.swift",
"private/DSFAppearanceManager+Listeners.swift",
"private/util/DSFDebounce.swift",
"private/util/DSFSimpleLock.swift",
"private/util/NSAppearance+extensions.swift",
"private/weak/WeakBag.swift",
"private/weak/WeakBox.swift"
],
"type" : "library"
}
],
"tools_version" : "5.4"
}
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.2.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures
Building for debugging...
[0/7] Write sources
[1/7] Copying PrivacyInfo.xcprivacy
[2/7] Write swift-version-5BDAB9E9C0126B9D.txt
[4/21] Compiling DSFAppearanceManager WeakBag.swift
[5/21] Compiling DSFAppearanceManager WeakBox.swift
[6/22] Compiling DSFAppearanceManager resource_bundle_accessor.swift
[7/22] Compiling DSFAppearanceManager DSFSimpleLock.swift
[8/22] Compiling DSFAppearanceManager AutoplayAnimatedImages.swift
/Users/admin/builder/spi-builder-workspace/Sources/DSFAppearanceManager/private/DSFAppearanceManager+Listeners.swift:180:11: warning: passing non-sendable parameter 'block' to function expecting a @Sendable closure
173 |
174 | // Adds an entry to the notification center to receive notifications that passed to the provided block.
175 | func addObserver(queue: OperationQueue? = nil, using block: @escaping (Notification) -> Void) -> NSObjectProtocol {
| `- note: parameter 'block' is implicitly non-sendable
176 | return NotificationCenter.default.addObserver(
177 | forName: DSFAppearanceManager.AppearanceChangedNotification,
178 | object: self,
179 | queue: queue,
180 | using: block
| `- warning: passing non-sendable parameter 'block' to function expecting a @Sendable closure
181 | )
182 | }
/Users/admin/builder/spi-builder-workspace/Sources/DSFAppearanceManager/private/DSFAppearanceManager+Listeners.swift:129:4: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
127 | // Make sure that these occur on the main queue
128 | DispatchQueue.main.async { [weak self] in
129 | self?.update(change: change)
| |- warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'self' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
130 | }
131 | }
/Users/admin/builder/spi-builder-workspace/Sources/DSFAppearanceManager/private/DSFAppearanceManager+Listeners.swift:129:25: warning: sending 'change' risks causing data races; this is an error in the Swift 6 language mode
127 | // Make sure that these occur on the main queue
128 | DispatchQueue.main.async { [weak self] in
129 | self?.update(change: change)
| |- warning: sending 'change' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'change' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
130 | }
131 | }
[9/22] Compiling DSFAppearanceManager DSFAppearanceManager+Listeners.swift
/Users/admin/builder/spi-builder-workspace/Sources/DSFAppearanceManager/private/DSFAppearanceManager+Listeners.swift:180:11: warning: passing non-sendable parameter 'block' to function expecting a @Sendable closure
173 |
174 | // Adds an entry to the notification center to receive notifications that passed to the provided block.
175 | func addObserver(queue: OperationQueue? = nil, using block: @escaping (Notification) -> Void) -> NSObjectProtocol {
| `- note: parameter 'block' is implicitly non-sendable
176 | return NotificationCenter.default.addObserver(
177 | forName: DSFAppearanceManager.AppearanceChangedNotification,
178 | object: self,
179 | queue: queue,
180 | using: block
| `- warning: passing non-sendable parameter 'block' to function expecting a @Sendable closure
181 | )
182 | }
/Users/admin/builder/spi-builder-workspace/Sources/DSFAppearanceManager/private/DSFAppearanceManager+Listeners.swift:129:4: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
127 | // Make sure that these occur on the main queue
128 | DispatchQueue.main.async { [weak self] in
129 | self?.update(change: change)
| |- warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'self' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
130 | }
131 | }
/Users/admin/builder/spi-builder-workspace/Sources/DSFAppearanceManager/private/DSFAppearanceManager+Listeners.swift:129:25: warning: sending 'change' risks causing data races; this is an error in the Swift 6 language mode
127 | // Make sure that these occur on the main queue
128 | DispatchQueue.main.async { [weak self] in
129 | self?.update(change: change)
| |- warning: sending 'change' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'change' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
130 | }
131 | }
[10/22] Compiling DSFAppearanceManager NSAppearance+extensions.swift
[11/22] Compiling DSFAppearanceManager DSFDebounce.swift
[12/22] Compiling DSFAppearanceManager NSView+Appearance.swift
/Users/admin/builder/spi-builder-workspace/Sources/DSFAppearanceManager/NSWindow+Appearance.swift:47:28: warning: main actor-isolated property 'effectiveAppearance' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
37 |
38 | /// Perform the supplied block using the effective appearance of the window, or the application if the window is nil
39 | public func UsingEffectiveAppearance(
| `- note: add '@MainActor' to make global function 'UsingEffectiveAppearance(ofWindow:perform:)' part of global actor 'MainActor'
40 | ofWindow window: NSWindow? = nil,
41 | perform block: () -> Void
:
45 | if #available(macOS 10.14, *) {
46 | // Adopt the color of the window we're attached tom or if the window is nil the application appearance
47 | let appearance = window?.effectiveAppearance ?? NSApplication.shared.effectiveAppearance
| `- warning: main actor-isolated property 'effectiveAppearance' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
48 | appearance.usingAsDrawingAppearance {
49 | block()
AppKit.NSWindow:448:25: note: property declared here
446 | open var appearance: NSAppearance? { get set }
447 | @available(macOS 10.9, *)
448 | @MainActor open var effectiveAppearance: NSAppearance { get }
| `- note: property declared here
449 | @available(macOS 10.5, *)
450 | open func animator() -> Self
/Users/admin/builder/spi-builder-workspace/Sources/DSFAppearanceManager/NSWindow+Appearance.swift:47:72: warning: main actor-isolated property 'effectiveAppearance' can not be referenced from a nonisolated autoclosure; this is an error in the Swift 6 language mode
45 | if #available(macOS 10.14, *) {
46 | // Adopt the color of the window we're attached tom or if the window is nil the application appearance
47 | let appearance = window?.effectiveAppearance ?? NSApplication.shared.effectiveAppearance
| `- warning: main actor-isolated property 'effectiveAppearance' can not be referenced from a nonisolated autoclosure; this is an error in the Swift 6 language mode
48 | appearance.usingAsDrawingAppearance {
49 | block()
AppKit.NSApplication:5:25: note: property declared here
3 | open var appearance: NSAppearance? { get set }
4 | @available(macOS 10.14, *)
5 | @MainActor open var effectiveAppearance: NSAppearance { get }
| `- note: property declared here
6 | }
/Users/admin/builder/spi-builder-workspace/Sources/DSFAppearanceManager/NSWindow+Appearance.swift:47:65: warning: main actor-isolated class property 'shared' can not be referenced from a nonisolated autoclosure; this is an error in the Swift 6 language mode
45 | if #available(macOS 10.14, *) {
46 | // Adopt the color of the window we're attached tom or if the window is nil the application appearance
47 | let appearance = window?.effectiveAppearance ?? NSApplication.shared.effectiveAppearance
| `- warning: main actor-isolated class property 'shared' can not be referenced from a nonisolated autoclosure; this is an error in the Swift 6 language mode
48 | appearance.usingAsDrawingAppearance {
49 | block()
AppKit.NSApplication:2:31: note: class property declared here
1 | @MainActor open class NSApplication : NSResponder, NSUserInterfaceValidations, NSMenuItemValidation, NSAccessibilityElementProtocol, NSAccessibilityProtocol {
2 | @MainActor open class var shared: NSApplication { get }
| `- note: class property declared here
3 | @available(swift, obsoleted: 3, renamed: "shared")
4 | open class var sharedApplication: NSApplication { get }
[13/22] Compiling DSFAppearanceManager NSWindow+Appearance.swift
/Users/admin/builder/spi-builder-workspace/Sources/DSFAppearanceManager/NSWindow+Appearance.swift:47:28: warning: main actor-isolated property 'effectiveAppearance' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
37 |
38 | /// Perform the supplied block using the effective appearance of the window, or the application if the window is nil
39 | public func UsingEffectiveAppearance(
| `- note: add '@MainActor' to make global function 'UsingEffectiveAppearance(ofWindow:perform:)' part of global actor 'MainActor'
40 | ofWindow window: NSWindow? = nil,
41 | perform block: () -> Void
:
45 | if #available(macOS 10.14, *) {
46 | // Adopt the color of the window we're attached tom or if the window is nil the application appearance
47 | let appearance = window?.effectiveAppearance ?? NSApplication.shared.effectiveAppearance
| `- warning: main actor-isolated property 'effectiveAppearance' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
48 | appearance.usingAsDrawingAppearance {
49 | block()
AppKit.NSWindow:448:25: note: property declared here
446 | open var appearance: NSAppearance? { get set }
447 | @available(macOS 10.9, *)
448 | @MainActor open var effectiveAppearance: NSAppearance { get }
| `- note: property declared here
449 | @available(macOS 10.5, *)
450 | open func animator() -> Self
/Users/admin/builder/spi-builder-workspace/Sources/DSFAppearanceManager/NSWindow+Appearance.swift:47:72: warning: main actor-isolated property 'effectiveAppearance' can not be referenced from a nonisolated autoclosure; this is an error in the Swift 6 language mode
45 | if #available(macOS 10.14, *) {
46 | // Adopt the color of the window we're attached tom or if the window is nil the application appearance
47 | let appearance = window?.effectiveAppearance ?? NSApplication.shared.effectiveAppearance
| `- warning: main actor-isolated property 'effectiveAppearance' can not be referenced from a nonisolated autoclosure; this is an error in the Swift 6 language mode
48 | appearance.usingAsDrawingAppearance {
49 | block()
AppKit.NSApplication:5:25: note: property declared here
3 | open var appearance: NSAppearance? { get set }
4 | @available(macOS 10.14, *)
5 | @MainActor open var effectiveAppearance: NSAppearance { get }
| `- note: property declared here
6 | }
/Users/admin/builder/spi-builder-workspace/Sources/DSFAppearanceManager/NSWindow+Appearance.swift:47:65: warning: main actor-isolated class property 'shared' can not be referenced from a nonisolated autoclosure; this is an error in the Swift 6 language mode
45 | if #available(macOS 10.14, *) {
46 | // Adopt the color of the window we're attached tom or if the window is nil the application appearance
47 | let appearance = window?.effectiveAppearance ?? NSApplication.shared.effectiveAppearance
| `- warning: main actor-isolated class property 'shared' can not be referenced from a nonisolated autoclosure; this is an error in the Swift 6 language mode
48 | appearance.usingAsDrawingAppearance {
49 | block()
AppKit.NSApplication:2:31: note: class property declared here
1 | @MainActor open class NSApplication : NSResponder, NSUserInterfaceValidations, NSMenuItemValidation, NSAccessibilityElementProtocol, NSAccessibilityProtocol {
2 | @MainActor open class var shared: NSApplication { get }
| `- note: class property declared here
3 | @available(swift, obsoleted: 3, renamed: "shared")
4 | open class var sharedApplication: NSApplication { get }
[14/22] Compiling DSFAppearanceManager DSFAppearanceManager+Hardware.swift
/Users/admin/builder/spi-builder-workspace/Sources/DSFAppearanceManager/DSFAppearanceManager.swift:143:26: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'DSFAppearanceManager' may have shared mutable state; this is an error in the Swift 6 language mode
51 | /// }
52 | ///
53 | @objc public final class DSFAppearanceManager: NSObject {
| `- note: class 'DSFAppearanceManager' does not conform to the 'Sendable' protocol
54 | /// The notification sent when a change occurs in the theme.
55 | ///
:
141 |
142 | // A shared appearance manager
143 | @objc public static let shared = DSFAppearanceManager()
| |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'DSFAppearanceManager' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'shared' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
144 |
145 | // The distributed notification center to listen to for some of the notification types
/Users/admin/builder/spi-builder-workspace/Sources/DSFAppearanceManager/DSFAppearanceManager.swift:125:32: warning: string interpolation produces a debug description for an optional value; did you mean to make this explicit?
123 | autoplayAnimatedImages: \(Self.AutoplayAnimatedImages)
124 | usingHardwareColor: \(Self.IsUsingSimulatedHardwareColor)
125 | simulatedHardwareColor: \(Self.SimulatedHardwareColor)
| | |- note: use 'String(describing:)' to silence this warning
| | `- note: provide a default value to avoid this warning
| `- warning: string interpolation produces a debug description for an optional value; did you mean to make this explicit?
126 | """
127 | }
/Users/admin/builder/spi-builder-workspace/Sources/DSFAppearanceManager/DSFAppearanceManager.swift:196:15: warning: main actor-isolated var 'NSApp' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
194 | // initializer of a class with a global static initialization (ie. before the app is ready).
195 | // We need to check that NSApp exists before calling it, falling back to a default value if it doesn't
196 | if let _ = NSApp {
| `- warning: main actor-isolated var 'NSApp' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
197 | return NSApp.effectiveAppearance.bestMatch(from: [.darkAqua, .aqua]) == .darkAqua
198 | }
AppKit.NSApp:1:23: note: var declared here
1 | @MainActor public var NSApp: NSApplication!
| `- note: var declared here
/Users/admin/builder/spi-builder-workspace/Sources/DSFAppearanceManager/DSFAppearanceManager.swift:197:18: warning: main actor-isolated property 'effectiveAppearance' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
195 | // We need to check that NSApp exists before calling it, falling back to a default value if it doesn't
196 | if let _ = NSApp {
197 | return NSApp.effectiveAppearance.bestMatch(from: [.darkAqua, .aqua]) == .darkAqua
| `- warning: main actor-isolated property 'effectiveAppearance' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
198 | }
199 | }
AppKit.NSApplication:5:25: note: property declared here
3 | open var appearance: NSAppearance? { get set }
4 | @available(macOS 10.14, *)
5 | @MainActor open var effectiveAppearance: NSAppearance { get }
| `- note: property declared here
6 | }
/Users/admin/builder/spi-builder-workspace/Sources/DSFAppearanceManager/DSFAppearanceManager.swift:197:12: warning: main actor-isolated var 'NSApp' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
195 | // We need to check that NSApp exists before calling it, falling back to a default value if it doesn't
196 | if let _ = NSApp {
197 | return NSApp.effectiveAppearance.bestMatch(from: [.darkAqua, .aqua]) == .darkAqua
| `- warning: main actor-isolated var 'NSApp' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
198 | }
199 | }
AppKit.NSApp:1:23: note: var declared here
1 | @MainActor public var NSApp: NSApplication!
| `- note: var declared here
[15/22] Compiling DSFAppearanceManager DSFAppearanceManager.swift
/Users/admin/builder/spi-builder-workspace/Sources/DSFAppearanceManager/DSFAppearanceManager.swift:143:26: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'DSFAppearanceManager' may have shared mutable state; this is an error in the Swift 6 language mode
51 | /// }
52 | ///
53 | @objc public final class DSFAppearanceManager: NSObject {
| `- note: class 'DSFAppearanceManager' does not conform to the 'Sendable' protocol
54 | /// The notification sent when a change occurs in the theme.
55 | ///
:
141 |
142 | // A shared appearance manager
143 | @objc public static let shared = DSFAppearanceManager()
| |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'DSFAppearanceManager' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'shared' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
144 |
145 | // The distributed notification center to listen to for some of the notification types
/Users/admin/builder/spi-builder-workspace/Sources/DSFAppearanceManager/DSFAppearanceManager.swift:125:32: warning: string interpolation produces a debug description for an optional value; did you mean to make this explicit?
123 | autoplayAnimatedImages: \(Self.AutoplayAnimatedImages)
124 | usingHardwareColor: \(Self.IsUsingSimulatedHardwareColor)
125 | simulatedHardwareColor: \(Self.SimulatedHardwareColor)
| | |- note: use 'String(describing:)' to silence this warning
| | `- note: provide a default value to avoid this warning
| `- warning: string interpolation produces a debug description for an optional value; did you mean to make this explicit?
126 | """
127 | }
/Users/admin/builder/spi-builder-workspace/Sources/DSFAppearanceManager/DSFAppearanceManager.swift:196:15: warning: main actor-isolated var 'NSApp' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
194 | // initializer of a class with a global static initialization (ie. before the app is ready).
195 | // We need to check that NSApp exists before calling it, falling back to a default value if it doesn't
196 | if let _ = NSApp {
| `- warning: main actor-isolated var 'NSApp' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
197 | return NSApp.effectiveAppearance.bestMatch(from: [.darkAqua, .aqua]) == .darkAqua
198 | }
AppKit.NSApp:1:23: note: var declared here
1 | @MainActor public var NSApp: NSApplication!
| `- note: var declared here
/Users/admin/builder/spi-builder-workspace/Sources/DSFAppearanceManager/DSFAppearanceManager.swift:197:18: warning: main actor-isolated property 'effectiveAppearance' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
195 | // We need to check that NSApp exists before calling it, falling back to a default value if it doesn't
196 | if let _ = NSApp {
197 | return NSApp.effectiveAppearance.bestMatch(from: [.darkAqua, .aqua]) == .darkAqua
| `- warning: main actor-isolated property 'effectiveAppearance' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
198 | }
199 | }
AppKit.NSApplication:5:25: note: property declared here
3 | open var appearance: NSAppearance? { get set }
4 | @available(macOS 10.14, *)
5 | @MainActor open var effectiveAppearance: NSAppearance { get }
| `- note: property declared here
6 | }
/Users/admin/builder/spi-builder-workspace/Sources/DSFAppearanceManager/DSFAppearanceManager.swift:197:12: warning: main actor-isolated var 'NSApp' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
195 | // We need to check that NSApp exists before calling it, falling back to a default value if it doesn't
196 | if let _ = NSApp {
197 | return NSApp.effectiveAppearance.bestMatch(from: [.darkAqua, .aqua]) == .darkAqua
| `- warning: main actor-isolated var 'NSApp' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
198 | }
199 | }
AppKit.NSApp:1:23: note: var declared here
1 | @MainActor public var NSApp: NSApplication!
| `- note: var declared here
[16/22] Emitting module DSFAppearanceManager
/Users/admin/builder/spi-builder-workspace/Sources/DSFAppearanceManager/DSFAppearanceCache.swift:86:26: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'DSFAppearanceCache' may have shared mutable state; this is an error in the Swift 6 language mode
77 | /// ```
78 | ///
79 | @objc public class DSFAppearanceCache: NSObject {
| `- note: class 'DSFAppearanceCache' does not conform to the 'Sendable' protocol
80 |
81 | /// The notification sent when a change occurs in the appearance.
:
84 |
85 | /// A shared appearance cache
86 | @objc public static let shared = DSFAppearanceCache()
| |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'DSFAppearanceCache' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'shared' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
87 |
88 | /// Is the system mode dark?
/Users/admin/builder/spi-builder-workspace/Sources/DSFAppearanceManager/DSFAppearanceManager.swift:143:26: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'DSFAppearanceManager' may have shared mutable state; this is an error in the Swift 6 language mode
51 | /// }
52 | ///
53 | @objc public final class DSFAppearanceManager: NSObject {
| `- note: class 'DSFAppearanceManager' does not conform to the 'Sendable' protocol
54 | /// The notification sent when a change occurs in the theme.
55 | ///
:
141 |
142 | // A shared appearance manager
143 | @objc public static let shared = DSFAppearanceManager()
| |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'DSFAppearanceManager' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'shared' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
144 |
145 | // The distributed notification center to listen to for some of the notification types
[17/22] Compiling DSFAppearanceManager DSFAppearanceCache.swift
/Users/admin/builder/spi-builder-workspace/Sources/DSFAppearanceManager/DSFAppearanceCache.swift:86:26: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'DSFAppearanceCache' may have shared mutable state; this is an error in the Swift 6 language mode
77 | /// ```
78 | ///
79 | @objc public class DSFAppearanceCache: NSObject {
| `- note: class 'DSFAppearanceCache' does not conform to the 'Sendable' protocol
80 |
81 | /// The notification sent when a change occurs in the appearance.
:
84 |
85 | /// A shared appearance cache
86 | @objc public static let shared = DSFAppearanceCache()
| |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'DSFAppearanceCache' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'shared' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
87 |
88 | /// Is the system mode dark?
/Users/admin/builder/spi-builder-workspace/Sources/DSFAppearanceManager/DSFAppearanceManager.swift:143:26: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'DSFAppearanceManager' may have shared mutable state; this is an error in the Swift 6 language mode
51 | /// }
52 | ///
53 | @objc public final class DSFAppearanceManager: NSObject {
| `- note: class 'DSFAppearanceManager' does not conform to the 'Sendable' protocol
54 | /// The notification sent when a change occurs in the theme.
55 | ///
:
141 |
142 | // A shared appearance manager
143 | @objc public static let shared = DSFAppearanceManager()
| |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'DSFAppearanceManager' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'shared' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
144 |
145 | // The distributed notification center to listen to for some of the notification types
[18/22] Compiling DSFAppearanceManager DSFAppearanceManager+ChangeDetector.swift
/Users/admin/builder/spi-builder-workspace/Sources/DSFAppearanceManager/DSFAppearanceCache.swift:86:26: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'DSFAppearanceCache' may have shared mutable state; this is an error in the Swift 6 language mode
77 | /// ```
78 | ///
79 | @objc public class DSFAppearanceCache: NSObject {
| `- note: class 'DSFAppearanceCache' does not conform to the 'Sendable' protocol
80 |
81 | /// The notification sent when a change occurs in the appearance.
:
84 |
85 | /// A shared appearance cache
86 | @objc public static let shared = DSFAppearanceCache()
| |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'DSFAppearanceCache' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'shared' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
87 |
88 | /// Is the system mode dark?
/Users/admin/builder/spi-builder-workspace/Sources/DSFAppearanceManager/DSFAppearanceManager.swift:143:26: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'DSFAppearanceManager' may have shared mutable state; this is an error in the Swift 6 language mode
51 | /// }
52 | ///
53 | @objc public final class DSFAppearanceManager: NSObject {
| `- note: class 'DSFAppearanceManager' does not conform to the 'Sendable' protocol
54 | /// The notification sent when a change occurs in the theme.
55 | ///
:
141 |
142 | // A shared appearance manager
143 | @objc public static let shared = DSFAppearanceManager()
| |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'DSFAppearanceManager' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'shared' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
144 |
145 | // The distributed notification center to listen to for some of the notification types
[18/22] Write Objects.LinkFileList
[20/22] Archiving libDSFAppearanceManager-static.a
[21/22] Linking libDSFAppearanceManager-shared.dylib
Build complete! (14.28s)
Build complete.
{
"dependencies" : [
],
"manifest_display_name" : "DSFAppearanceManager",
"name" : "DSFAppearanceManager",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
{
"name" : "macos",
"version" : "10.11"
}
],
"products" : [
{
"name" : "DSFAppearanceManager",
"targets" : [
"DSFAppearanceManager"
],
"type" : {
"library" : [
"automatic"
]
}
},
{
"name" : "DSFAppearanceManager-static",
"targets" : [
"DSFAppearanceManager"
],
"type" : {
"library" : [
"static"
]
}
},
{
"name" : "DSFAppearanceManager-shared",
"targets" : [
"DSFAppearanceManager"
],
"type" : {
"library" : [
"dynamic"
]
}
}
],
"targets" : [
{
"c99name" : "DSFAppearanceManagerTests",
"module_type" : "SwiftTarget",
"name" : "DSFAppearanceManagerTests",
"path" : "Tests/DSFAppearanceManagerTests",
"sources" : [
"DSFAppearanceManagerTests.swift"
],
"target_dependencies" : [
"DSFAppearanceManager"
],
"type" : "test"
},
{
"c99name" : "DSFAppearanceManager",
"module_type" : "SwiftTarget",
"name" : "DSFAppearanceManager",
"path" : "Sources/DSFAppearanceManager",
"product_memberships" : [
"DSFAppearanceManager",
"DSFAppearanceManager-static",
"DSFAppearanceManager-shared"
],
"resources" : [
{
"path" : "/Users/admin/builder/spi-builder-workspace/Sources/DSFAppearanceManager/PrivacyInfo.xcprivacy",
"rule" : {
"copy" : {
}
}
}
],
"sources" : [
"DSFAppearanceCache.swift",
"DSFAppearanceManager+ChangeDetector.swift",
"DSFAppearanceManager+Hardware.swift",
"DSFAppearanceManager.swift",
"NSView+Appearance.swift",
"NSWindow+Appearance.swift",
"private/AutoplayAnimatedImages.swift",
"private/DSFAppearanceManager+Listeners.swift",
"private/util/DSFDebounce.swift",
"private/util/DSFSimpleLock.swift",
"private/util/NSAppearance+extensions.swift",
"private/weak/WeakBag.swift",
"private/weak/WeakBox.swift"
],
"type" : "library"
}
],
"tools_version" : "5.4"
}
Done.