Build Information
Successful build of Fusion, reference master (aec6bd), with Swift 6.1 for macOS (SPM) on 21 Nov 2026 09:26:24 UTC.
Swift 6 data race errors: 34
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
11 | }
12 |
/Users/admin/builder/spi-builder-workspace/Fusion/Core/Sources/Storage/DataBindable.swift:16:13: warning: static property 'all' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
14 |
15 | @ThreadSafe
16 | static var all: [String : [ObjectIdentifier : TargetWrapper]] = [:]
| |- warning: static property 'all' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'all' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'all' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
17 |
18 | static let prefixes = ThreadSafe<[ObjectIdentifier : String]>(wrappedValue: [:])
/Users/admin/builder/spi-builder-workspace/Fusion/Core/Sources/Storage/DataBindable.swift:375:52: warning: capture of 'key' with non-sendable type 'Self.Key' in a '@Sendable' closure; this is an error in the Swift 6 language mode
373 | let holder = NSObject()
374 | register(key: key, cancellable: holder, callback: StreamInput<T> { continuation.yield($0) })
375 | continuation.onTermination = { _ in unbind(key: key, cancellable: holder) }
| `- warning: capture of 'key' with non-sendable type 'Self.Key' in a '@Sendable' closure; this is an error in the Swift 6 language mode
376 | }
377 | }
/Users/admin/builder/spi-builder-workspace/Fusion/Core/Sources/Storage/DataBindable.swift:375:70: warning: capture of 'holder' with non-sendable type 'NSObject' in a '@Sendable' closure; this is an error in the Swift 6 language mode
373 | let holder = NSObject()
374 | register(key: key, cancellable: holder, callback: StreamInput<T> { continuation.yield($0) })
375 | continuation.onTermination = { _ in unbind(key: key, cancellable: holder) }
| `- warning: capture of 'holder' with non-sendable type 'NSObject' in a '@Sendable' closure; this is an error in the Swift 6 language mode
376 | }
377 | }
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/usr/include/objc/NSObject.h:53:12: note: class 'NSObject' does not conform to the 'Sendable' protocol
51 | OBJC_ROOT_CLASS
52 | OBJC_EXPORT
53 | @interface NSObject <NSObject> {
| `- note: class 'NSObject' does not conform to the 'Sendable' protocol
54 | #pragma clang diagnostic push
55 | #pragma clang diagnostic ignored "-Wobjc-interface-ivars"
/Users/admin/builder/spi-builder-workspace/Fusion/Core/Sources/Storage/DataBindable.swift:5:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'ObjectiveC'
3 | //
4 |
5 | import Foundation
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'ObjectiveC'
6 |
7 | // MARK: - Definitions -
/Users/admin/builder/spi-builder-workspace/Fusion/Core/Sources/Storage/DataBindable.swift:397:52: warning: capture of 'key' with non-sendable type 'Self.Key' in a '@Sendable' closure; this is an error in the Swift 6 language mode
395 | let holder = NSObject()
396 | register(key: key, cancellable: holder, callback: StreamSignal { continuation.yield() })
397 | continuation.onTermination = { _ in unbind(key: key, cancellable: holder) }
| `- warning: capture of 'key' with non-sendable type 'Self.Key' in a '@Sendable' closure; this is an error in the Swift 6 language mode
398 | }
399 | }
/Users/admin/builder/spi-builder-workspace/Fusion/Core/Sources/Storage/DataBindable.swift:397:70: warning: capture of 'holder' with non-sendable type 'NSObject' in a '@Sendable' closure; this is an error in the Swift 6 language mode
395 | let holder = NSObject()
396 | register(key: key, cancellable: holder, callback: StreamSignal { continuation.yield() })
397 | continuation.onTermination = { _ in unbind(key: key, cancellable: holder) }
| `- warning: capture of 'holder' with non-sendable type 'NSObject' in a '@Sendable' closure; this is an error in the Swift 6 language mode
398 | }
399 | }
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/usr/include/objc/NSObject.h:53:12: note: class 'NSObject' does not conform to the 'Sendable' protocol
51 | OBJC_ROOT_CLASS
52 | OBJC_EXPORT
53 | @interface NSObject <NSObject> {
| `- note: class 'NSObject' does not conform to the 'Sendable' protocol
54 | #pragma clang diagnostic push
55 | #pragma clang diagnostic ignored "-Wobjc-interface-ivars"
/Users/admin/builder/spi-builder-workspace/Fusion/Core/Sources/Networking/RESTRequest.swift:14:28: warning: sending 'callback' risks causing data races; this is an error in the Swift 6 language mode
12 | @inlinable public func syncMain(_ callback: @escaping () -> Void) {
13 | guard !Thread.isMainThread else { return callback() }
14 | DispatchQueue.main.sync { callback() }
| |- warning: sending 'callback' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'callback' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
15 | }
16 |
/Users/admin/builder/spi-builder-workspace/Fusion/Core/Sources/Networking/RESTRequest.swift:18:29: warning: sending 'callback' risks causing data races; this is an error in the Swift 6 language mode
16 |
17 | @inlinable public func asyncMain(_ callback: @escaping () -> Void) {
18 | DispatchQueue.main.async { callback() }
| |- warning: sending 'callback' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'callback' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
19 | }
20 |
/Users/admin/builder/spi-builder-workspace/Fusion/Core/Sources/Networking/RESTRequest.swift:22:60: warning: sending 'callback' risks causing data races; this is an error in the Swift 6 language mode
20 |
21 | @inlinable public func asyncMain(after: Double, _ callback: @escaping () -> Void) {
22 | DispatchQueue.main.asyncAfter(deadline: .now() + after) { callback() }
| |- warning: sending 'callback' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'callback' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
23 | }
24 |
/Users/admin/builder/spi-builder-workspace/Fusion/Core/Sources/Networking/RESTRequest.swift:52:17: warning: sending value of non-Sendable type 'Result<(T, URLResponse?), any Error>' risks causing data races; this is an error in the Swift 6 language mode
50 | }
51 | guard isFirst else { return }
52 | continuation.resume(with: result.map { ($0, response) })
| |- warning: sending value of non-Sendable type 'Result<(T, URLResponse?), any Error>' risks causing data races; this is an error in the Swift 6 language mode
| `- note: Passing task-isolated value of non-Sendable type 'Result<(T, URLResponse?), any Error>' as a 'sending' parameter risks causing races inbetween task-isolated uses and uses reachable from the callee
53 | }
54 | }
/Users/admin/builder/spi-builder-workspace/Fusion/Core/Sources/Storage/DataBindable.swift:374:84: warning: sending '$0' risks causing data races; this is an error in the Swift 6 language mode
372 | AsyncStream(bufferingPolicy: bufferingPolicy) { continuation in
373 | let holder = NSObject()
374 | register(key: key, cancellable: holder, callback: StreamInput<T> { continuation.yield($0) })
| |- warning: sending '$0' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated '$0' is passed as a 'sending' parameter; Uses in callee may race with later task-isolated uses
375 | continuation.onTermination = { _ in unbind(key: key, cancellable: holder) }
376 | }
[30/60] Compiling Fusion RESTRequest.swift
/Users/admin/builder/spi-builder-workspace/Fusion/Core/Sources/Networking/RESTAuthenticator.swift:11:14: warning: non-final class 'RESTAuthenticator' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
9 | // MARK: - Type -
10 |
11 | public class RESTAuthenticator : NSObject, URLSessionDelegate {
| `- warning: non-final class 'RESTAuthenticator' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
12 |
13 | public var hashKeys: [String] = []
/Users/admin/builder/spi-builder-workspace/Fusion/Core/Sources/Networking/RESTAuthenticator.swift:13:13: warning: stored property 'hashKeys' of 'Sendable'-conforming class 'RESTAuthenticator' is mutable; this is an error in the Swift 6 language mode
11 | public class RESTAuthenticator : NSObject, URLSessionDelegate {
12 |
13 | public var hashKeys: [String] = []
| `- warning: stored property 'hashKeys' of 'Sendable'-conforming class 'RESTAuthenticator' is mutable; this is an error in the Swift 6 language mode
14 |
15 | public static let shared: RESTAuthenticator = RESTAuthenticator()
/Users/admin/builder/spi-builder-workspace/Fusion/Core/Sources/Networking/RESTRequest.swift:26:41: warning: capture of 'callback' with non-sendable type '() -> Void' in a '@Sendable' closure
24 |
25 | @inlinable public func asyncGlobal(qos: DispatchQoS.QoSClass = .default, callback: @escaping () -> Void) {
26 | DispatchQueue.global(qos: qos).async { callback() }
| |- warning: capture of 'callback' with non-sendable type '() -> Void' in a '@Sendable' closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
27 | }
28 |
/Users/admin/builder/spi-builder-workspace/Fusion/Core/Sources/Networking/RESTRequest.swift:224:4: warning: capture of 'completion' with non-sendable type 'Response<Data>?' (aka 'Optional<(Result<Data, any Error>, Optional<URLResponse>) -> ()>') in a '@Sendable' closure
222 |
223 | HTTPCookieStorage.appGroup.sync()
224 | completion?(result, response)
| |- warning: capture of 'completion' with non-sendable type 'Response<Data>?' (aka 'Optional<(Result<Data, any Error>, Optional<URLResponse>) -> ()>') in a '@Sendable' closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
225 | }.resume()
226 | }
/Users/admin/builder/spi-builder-workspace/Fusion/Core/Sources/Networking/RESTRequest.swift:271:4: warning: capture of 'completion' with non-sendable type 'Response<Data?>?' (aka 'Optional<(Result<Optional<Data>, any Error>, Optional<URLResponse>) -> ()>') in a '@Sendable' closure
269 |
270 | HTTPCookieStorage.appGroup.sync()
271 | completion?(result, response)
| |- warning: capture of 'completion' with non-sendable type 'Response<Data?>?' (aka 'Optional<(Result<Optional<Data>, any Error>, Optional<URLResponse>) -> ()>') in a '@Sendable' closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
272 | }.resume()
273 | }
/Users/admin/builder/spi-builder-workspace/Fusion/Core/Sources/Storage/DataBindable.swift:10:13: warning: static property 'deinitCallbackKey' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
8 |
9 | private struct Keys {
10 | static var deinitCallbackKey: UInt8 = 0
| |- warning: static property 'deinitCallbackKey' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'deinitCallbackKey' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'deinitCallbackKey' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
11 | }
12 |
/Users/admin/builder/spi-builder-workspace/Fusion/Core/Sources/Storage/DataBindable.swift:16:13: warning: static property 'all' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
14 |
15 | @ThreadSafe
16 | static var all: [String : [ObjectIdentifier : TargetWrapper]] = [:]
| |- warning: static property 'all' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'all' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'all' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
17 |
18 | static let prefixes = ThreadSafe<[ObjectIdentifier : String]>(wrappedValue: [:])
/Users/admin/builder/spi-builder-workspace/Fusion/Core/Sources/Storage/DataBindable.swift:375:52: warning: capture of 'key' with non-sendable type 'Self.Key' in a '@Sendable' closure; this is an error in the Swift 6 language mode
373 | let holder = NSObject()
374 | register(key: key, cancellable: holder, callback: StreamInput<T> { continuation.yield($0) })
375 | continuation.onTermination = { _ in unbind(key: key, cancellable: holder) }
| `- warning: capture of 'key' with non-sendable type 'Self.Key' in a '@Sendable' closure; this is an error in the Swift 6 language mode
376 | }
377 | }
/Users/admin/builder/spi-builder-workspace/Fusion/Core/Sources/Storage/DataBindable.swift:375:70: warning: capture of 'holder' with non-sendable type 'NSObject' in a '@Sendable' closure; this is an error in the Swift 6 language mode
373 | let holder = NSObject()
374 | register(key: key, cancellable: holder, callback: StreamInput<T> { continuation.yield($0) })
375 | continuation.onTermination = { _ in unbind(key: key, cancellable: holder) }
| `- warning: capture of 'holder' with non-sendable type 'NSObject' in a '@Sendable' closure; this is an error in the Swift 6 language mode
376 | }
377 | }
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/usr/include/objc/NSObject.h:53:12: note: class 'NSObject' does not conform to the 'Sendable' protocol
51 | OBJC_ROOT_CLASS
52 | OBJC_EXPORT
53 | @interface NSObject <NSObject> {
| `- note: class 'NSObject' does not conform to the 'Sendable' protocol
54 | #pragma clang diagnostic push
55 | #pragma clang diagnostic ignored "-Wobjc-interface-ivars"
/Users/admin/builder/spi-builder-workspace/Fusion/Core/Sources/Storage/DataBindable.swift:5:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'ObjectiveC'
3 | //
4 |
5 | import Foundation
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'ObjectiveC'
6 |
7 | // MARK: - Definitions -
/Users/admin/builder/spi-builder-workspace/Fusion/Core/Sources/Storage/DataBindable.swift:397:52: warning: capture of 'key' with non-sendable type 'Self.Key' in a '@Sendable' closure; this is an error in the Swift 6 language mode
395 | let holder = NSObject()
396 | register(key: key, cancellable: holder, callback: StreamSignal { continuation.yield() })
397 | continuation.onTermination = { _ in unbind(key: key, cancellable: holder) }
| `- warning: capture of 'key' with non-sendable type 'Self.Key' in a '@Sendable' closure; this is an error in the Swift 6 language mode
398 | }
399 | }
/Users/admin/builder/spi-builder-workspace/Fusion/Core/Sources/Storage/DataBindable.swift:397:70: warning: capture of 'holder' with non-sendable type 'NSObject' in a '@Sendable' closure; this is an error in the Swift 6 language mode
395 | let holder = NSObject()
396 | register(key: key, cancellable: holder, callback: StreamSignal { continuation.yield() })
397 | continuation.onTermination = { _ in unbind(key: key, cancellable: holder) }
| `- warning: capture of 'holder' with non-sendable type 'NSObject' in a '@Sendable' closure; this is an error in the Swift 6 language mode
398 | }
399 | }
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/usr/include/objc/NSObject.h:53:12: note: class 'NSObject' does not conform to the 'Sendable' protocol
51 | OBJC_ROOT_CLASS
52 | OBJC_EXPORT
53 | @interface NSObject <NSObject> {
| `- note: class 'NSObject' does not conform to the 'Sendable' protocol
54 | #pragma clang diagnostic push
55 | #pragma clang diagnostic ignored "-Wobjc-interface-ivars"
/Users/admin/builder/spi-builder-workspace/Fusion/Core/Sources/Networking/RESTRequest.swift:14:28: warning: sending 'callback' risks causing data races; this is an error in the Swift 6 language mode
12 | @inlinable public func syncMain(_ callback: @escaping () -> Void) {
13 | guard !Thread.isMainThread else { return callback() }
14 | DispatchQueue.main.sync { callback() }
| |- warning: sending 'callback' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'callback' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
15 | }
16 |
/Users/admin/builder/spi-builder-workspace/Fusion/Core/Sources/Networking/RESTRequest.swift:18:29: warning: sending 'callback' risks causing data races; this is an error in the Swift 6 language mode
16 |
17 | @inlinable public func asyncMain(_ callback: @escaping () -> Void) {
18 | DispatchQueue.main.async { callback() }
| |- warning: sending 'callback' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'callback' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
19 | }
20 |
/Users/admin/builder/spi-builder-workspace/Fusion/Core/Sources/Networking/RESTRequest.swift:22:60: warning: sending 'callback' risks causing data races; this is an error in the Swift 6 language mode
20 |
21 | @inlinable public func asyncMain(after: Double, _ callback: @escaping () -> Void) {
22 | DispatchQueue.main.asyncAfter(deadline: .now() + after) { callback() }
| |- warning: sending 'callback' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'callback' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
23 | }
24 |
/Users/admin/builder/spi-builder-workspace/Fusion/Core/Sources/Networking/RESTRequest.swift:52:17: warning: sending value of non-Sendable type 'Result<(T, URLResponse?), any Error>' risks causing data races; this is an error in the Swift 6 language mode
50 | }
51 | guard isFirst else { return }
52 | continuation.resume(with: result.map { ($0, response) })
| |- warning: sending value of non-Sendable type 'Result<(T, URLResponse?), any Error>' risks causing data races; this is an error in the Swift 6 language mode
| `- note: Passing task-isolated value of non-Sendable type 'Result<(T, URLResponse?), any Error>' as a 'sending' parameter risks causing races inbetween task-isolated uses and uses reachable from the callee
53 | }
54 | }
/Users/admin/builder/spi-builder-workspace/Fusion/Core/Sources/Storage/DataBindable.swift:374:84: warning: sending '$0' risks causing data races; this is an error in the Swift 6 language mode
372 | AsyncStream(bufferingPolicy: bufferingPolicy) { continuation in
373 | let holder = NSObject()
374 | register(key: key, cancellable: holder, callback: StreamInput<T> { continuation.yield($0) })
| |- warning: sending '$0' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated '$0' is passed as a 'sending' parameter; Uses in callee may race with later task-isolated uses
375 | continuation.onTermination = { _ in unbind(key: key, cancellable: holder) }
376 | }
[31/60] Compiling Fusion AnyCodable.swift
/Users/admin/builder/spi-builder-workspace/Fusion/Core/Sources/Networking/RESTAuthenticator.swift:11:14: warning: non-final class 'RESTAuthenticator' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
9 | // MARK: - Type -
10 |
11 | public class RESTAuthenticator : NSObject, URLSessionDelegate {
| `- warning: non-final class 'RESTAuthenticator' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
12 |
13 | public var hashKeys: [String] = []
/Users/admin/builder/spi-builder-workspace/Fusion/Core/Sources/Networking/RESTAuthenticator.swift:13:13: warning: stored property 'hashKeys' of 'Sendable'-conforming class 'RESTAuthenticator' is mutable; this is an error in the Swift 6 language mode
11 | public class RESTAuthenticator : NSObject, URLSessionDelegate {
12 |
13 | public var hashKeys: [String] = []
| `- warning: stored property 'hashKeys' of 'Sendable'-conforming class 'RESTAuthenticator' is mutable; this is an error in the Swift 6 language mode
14 |
15 | public static let shared: RESTAuthenticator = RESTAuthenticator()
/Users/admin/builder/spi-builder-workspace/Fusion/Core/Sources/Networking/RESTRequest.swift:26:41: warning: capture of 'callback' with non-sendable type '() -> Void' in a '@Sendable' closure
24 |
25 | @inlinable public func asyncGlobal(qos: DispatchQoS.QoSClass = .default, callback: @escaping () -> Void) {
26 | DispatchQueue.global(qos: qos).async { callback() }
| |- warning: capture of 'callback' with non-sendable type '() -> Void' in a '@Sendable' closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
27 | }
28 |
/Users/admin/builder/spi-builder-workspace/Fusion/Core/Sources/Networking/RESTRequest.swift:224:4: warning: capture of 'completion' with non-sendable type 'Response<Data>?' (aka 'Optional<(Result<Data, any Error>, Optional<URLResponse>) -> ()>') in a '@Sendable' closure
222 |
223 | HTTPCookieStorage.appGroup.sync()
224 | completion?(result, response)
| |- warning: capture of 'completion' with non-sendable type 'Response<Data>?' (aka 'Optional<(Result<Data, any Error>, Optional<URLResponse>) -> ()>') in a '@Sendable' closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
225 | }.resume()
226 | }
/Users/admin/builder/spi-builder-workspace/Fusion/Core/Sources/Networking/RESTRequest.swift:271:4: warning: capture of 'completion' with non-sendable type 'Response<Data?>?' (aka 'Optional<(Result<Optional<Data>, any Error>, Optional<URLResponse>) -> ()>') in a '@Sendable' closure
269 |
270 | HTTPCookieStorage.appGroup.sync()
271 | completion?(result, response)
| |- warning: capture of 'completion' with non-sendable type 'Response<Data?>?' (aka 'Optional<(Result<Optional<Data>, any Error>, Optional<URLResponse>) -> ()>') in a '@Sendable' closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
272 | }.resume()
273 | }
/Users/admin/builder/spi-builder-workspace/Fusion/Core/Sources/Storage/DataBindable.swift:10:13: warning: static property 'deinitCallbackKey' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
8 |
9 | private struct Keys {
10 | static var deinitCallbackKey: UInt8 = 0
| |- warning: static property 'deinitCallbackKey' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'deinitCallbackKey' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'deinitCallbackKey' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
11 | }
12 |
/Users/admin/builder/spi-builder-workspace/Fusion/Core/Sources/Storage/DataBindable.swift:16:13: warning: static property 'all' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
14 |
15 | @ThreadSafe
16 | static var all: [String : [ObjectIdentifier : TargetWrapper]] = [:]
| |- warning: static property 'all' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'all' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'all' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
17 |
18 | static let prefixes = ThreadSafe<[ObjectIdentifier : String]>(wrappedValue: [:])
/Users/admin/builder/spi-builder-workspace/Fusion/Core/Sources/Storage/DataBindable.swift:375:52: warning: capture of 'key' with non-sendable type 'Self.Key' in a '@Sendable' closure; this is an error in the Swift 6 language mode
373 | let holder = NSObject()
374 | register(key: key, cancellable: holder, callback: StreamInput<T> { continuation.yield($0) })
375 | continuation.onTermination = { _ in unbind(key: key, cancellable: holder) }
| `- warning: capture of 'key' with non-sendable type 'Self.Key' in a '@Sendable' closure; this is an error in the Swift 6 language mode
376 | }
377 | }
/Users/admin/builder/spi-builder-workspace/Fusion/Core/Sources/Storage/DataBindable.swift:375:70: warning: capture of 'holder' with non-sendable type 'NSObject' in a '@Sendable' closure; this is an error in the Swift 6 language mode
373 | let holder = NSObject()
374 | register(key: key, cancellable: holder, callback: StreamInput<T> { continuation.yield($0) })
375 | continuation.onTermination = { _ in unbind(key: key, cancellable: holder) }
| `- warning: capture of 'holder' with non-sendable type 'NSObject' in a '@Sendable' closure; this is an error in the Swift 6 language mode
376 | }
377 | }
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/usr/include/objc/NSObject.h:53:12: note: class 'NSObject' does not conform to the 'Sendable' protocol
51 | OBJC_ROOT_CLASS
52 | OBJC_EXPORT
53 | @interface NSObject <NSObject> {
| `- note: class 'NSObject' does not conform to the 'Sendable' protocol
54 | #pragma clang diagnostic push
55 | #pragma clang diagnostic ignored "-Wobjc-interface-ivars"
/Users/admin/builder/spi-builder-workspace/Fusion/Core/Sources/Storage/DataBindable.swift:5:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'ObjectiveC'
3 | //
4 |
5 | import Foundation
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'ObjectiveC'
6 |
7 | // MARK: - Definitions -
/Users/admin/builder/spi-builder-workspace/Fusion/Core/Sources/Storage/DataBindable.swift:397:52: warning: capture of 'key' with non-sendable type 'Self.Key' in a '@Sendable' closure; this is an error in the Swift 6 language mode
395 | let holder = NSObject()
396 | register(key: key, cancellable: holder, callback: StreamSignal { continuation.yield() })
397 | continuation.onTermination = { _ in unbind(key: key, cancellable: holder) }
| `- warning: capture of 'key' with non-sendable type 'Self.Key' in a '@Sendable' closure; this is an error in the Swift 6 language mode
398 | }
399 | }
/Users/admin/builder/spi-builder-workspace/Fusion/Core/Sources/Storage/DataBindable.swift:397:70: warning: capture of 'holder' with non-sendable type 'NSObject' in a '@Sendable' closure; this is an error in the Swift 6 language mode
395 | let holder = NSObject()
396 | register(key: key, cancellable: holder, callback: StreamSignal { continuation.yield() })
397 | continuation.onTermination = { _ in unbind(key: key, cancellable: holder) }
| `- warning: capture of 'holder' with non-sendable type 'NSObject' in a '@Sendable' closure; this is an error in the Swift 6 language mode
398 | }
399 | }
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/usr/include/objc/NSObject.h:53:12: note: class 'NSObject' does not conform to the 'Sendable' protocol
51 | OBJC_ROOT_CLASS
52 | OBJC_EXPORT
53 | @interface NSObject <NSObject> {
| `- note: class 'NSObject' does not conform to the 'Sendable' protocol
54 | #pragma clang diagnostic push
55 | #pragma clang diagnostic ignored "-Wobjc-interface-ivars"
/Users/admin/builder/spi-builder-workspace/Fusion/Core/Sources/Networking/RESTRequest.swift:14:28: warning: sending 'callback' risks causing data races; this is an error in the Swift 6 language mode
12 | @inlinable public func syncMain(_ callback: @escaping () -> Void) {
13 | guard !Thread.isMainThread else { return callback() }
14 | DispatchQueue.main.sync { callback() }
| |- warning: sending 'callback' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'callback' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
15 | }
16 |
/Users/admin/builder/spi-builder-workspace/Fusion/Core/Sources/Networking/RESTRequest.swift:18:29: warning: sending 'callback' risks causing data races; this is an error in the Swift 6 language mode
16 |
17 | @inlinable public func asyncMain(_ callback: @escaping () -> Void) {
18 | DispatchQueue.main.async { callback() }
| |- warning: sending 'callback' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'callback' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
19 | }
20 |
/Users/admin/builder/spi-builder-workspace/Fusion/Core/Sources/Networking/RESTRequest.swift:22:60: warning: sending 'callback' risks causing data races; this is an error in the Swift 6 language mode
20 |
21 | @inlinable public func asyncMain(after: Double, _ callback: @escaping () -> Void) {
22 | DispatchQueue.main.asyncAfter(deadline: .now() + after) { callback() }
| |- warning: sending 'callback' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'callback' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
23 | }
24 |
/Users/admin/builder/spi-builder-workspace/Fusion/Core/Sources/Networking/RESTRequest.swift:52:17: warning: sending value of non-Sendable type 'Result<(T, URLResponse?), any Error>' risks causing data races; this is an error in the Swift 6 language mode
50 | }
51 | guard isFirst else { return }
52 | continuation.resume(with: result.map { ($0, response) })
| |- warning: sending value of non-Sendable type 'Result<(T, URLResponse?), any Error>' risks causing data races; this is an error in the Swift 6 language mode
| `- note: Passing task-isolated value of non-Sendable type 'Result<(T, URLResponse?), any Error>' as a 'sending' parameter risks causing races inbetween task-isolated uses and uses reachable from the callee
53 | }
54 | }
/Users/admin/builder/spi-builder-workspace/Fusion/Core/Sources/Storage/DataBindable.swift:374:84: warning: sending '$0' risks causing data races; this is an error in the Swift 6 language mode
372 | AsyncStream(bufferingPolicy: bufferingPolicy) { continuation in
373 | let holder = NSObject()
374 | register(key: key, cancellable: holder, callback: StreamInput<T> { continuation.yield($0) })
| |- warning: sending '$0' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated '$0' is passed as a 'sending' parameter; Uses in callee may race with later task-isolated uses
375 | continuation.onTermination = { _ in unbind(key: key, cancellable: holder) }
376 | }
[32/60] Compiling Fusion CollectionFunctions.swift
/Users/admin/builder/spi-builder-workspace/Fusion/Core/Sources/Networking/RESTAuthenticator.swift:11:14: warning: non-final class 'RESTAuthenticator' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
9 | // MARK: - Type -
10 |
11 | public class RESTAuthenticator : NSObject, URLSessionDelegate {
| `- warning: non-final class 'RESTAuthenticator' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
12 |
13 | public var hashKeys: [String] = []
/Users/admin/builder/spi-builder-workspace/Fusion/Core/Sources/Networking/RESTAuthenticator.swift:13:13: warning: stored property 'hashKeys' of 'Sendable'-conforming class 'RESTAuthenticator' is mutable; this is an error in the Swift 6 language mode
11 | public class RESTAuthenticator : NSObject, URLSessionDelegate {
12 |
13 | public var hashKeys: [String] = []
| `- warning: stored property 'hashKeys' of 'Sendable'-conforming class 'RESTAuthenticator' is mutable; this is an error in the Swift 6 language mode
14 |
15 | public static let shared: RESTAuthenticator = RESTAuthenticator()
/Users/admin/builder/spi-builder-workspace/Fusion/Core/Sources/Networking/RESTRequest.swift:26:41: warning: capture of 'callback' with non-sendable type '() -> Void' in a '@Sendable' closure
24 |
25 | @inlinable public func asyncGlobal(qos: DispatchQoS.QoSClass = .default, callback: @escaping () -> Void) {
26 | DispatchQueue.global(qos: qos).async { callback() }
| |- warning: capture of 'callback' with non-sendable type '() -> Void' in a '@Sendable' closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
27 | }
28 |
/Users/admin/builder/spi-builder-workspace/Fusion/Core/Sources/Networking/RESTRequest.swift:224:4: warning: capture of 'completion' with non-sendable type 'Response<Data>?' (aka 'Optional<(Result<Data, any Error>, Optional<URLResponse>) -> ()>') in a '@Sendable' closure
222 |
223 | HTTPCookieStorage.appGroup.sync()
224 | completion?(result, response)
| |- warning: capture of 'completion' with non-sendable type 'Response<Data>?' (aka 'Optional<(Result<Data, any Error>, Optional<URLResponse>) -> ()>') in a '@Sendable' closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
225 | }.resume()
226 | }
/Users/admin/builder/spi-builder-workspace/Fusion/Core/Sources/Networking/RESTRequest.swift:271:4: warning: capture of 'completion' with non-sendable type 'Response<Data?>?' (aka 'Optional<(Result<Optional<Data>, any Error>, Optional<URLResponse>) -> ()>') in a '@Sendable' closure
269 |
270 | HTTPCookieStorage.appGroup.sync()
271 | completion?(result, response)
| |- warning: capture of 'completion' with non-sendable type 'Response<Data?>?' (aka 'Optional<(Result<Optional<Data>, any Error>, Optional<URLResponse>) -> ()>') in a '@Sendable' closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
272 | }.resume()
273 | }
/Users/admin/builder/spi-builder-workspace/Fusion/Core/Sources/Storage/DataBindable.swift:10:13: warning: static property 'deinitCallbackKey' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
8 |
9 | private struct Keys {
10 | static var deinitCallbackKey: UInt8 = 0
| |- warning: static property 'deinitCallbackKey' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'deinitCallbackKey' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'deinitCallbackKey' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
11 | }
12 |
/Users/admin/builder/spi-builder-workspace/Fusion/Core/Sources/Storage/DataBindable.swift:16:13: warning: static property 'all' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
14 |
15 | @ThreadSafe
16 | static var all: [String : [ObjectIdentifier : TargetWrapper]] = [:]
| |- warning: static property 'all' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'all' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'all' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
17 |
18 | static let prefixes = ThreadSafe<[ObjectIdentifier : String]>(wrappedValue: [:])
/Users/admin/builder/spi-builder-workspace/Fusion/Core/Sources/Storage/DataBindable.swift:375:52: warning: capture of 'key' with non-sendable type 'Self.Key' in a '@Sendable' closure; this is an error in the Swift 6 language mode
373 | let holder = NSObject()
374 | register(key: key, cancellable: holder, callback: StreamInput<T> { continuation.yield($0) })
375 | continuation.onTermination = { _ in unbind(key: key, cancellable: holder) }
| `- warning: capture of 'key' with non-sendable type 'Self.Key' in a '@Sendable' closure; this is an error in the Swift 6 language mode
376 | }
377 | }
/Users/admin/builder/spi-builder-workspace/Fusion/Core/Sources/Storage/DataBindable.swift:375:70: warning: capture of 'holder' with non-sendable type 'NSObject' in a '@Sendable' closure; this is an error in the Swift 6 language mode
373 | let holder = NSObject()
374 | register(key: key, cancellable: holder, callback: StreamInput<T> { continuation.yield($0) })
375 | continuation.onTermination = { _ in unbind(key: key, cancellable: holder) }
| `- warning: capture of 'holder' with non-sendable type 'NSObject' in a '@Sendable' closure; this is an error in the Swift 6 language mode
376 | }
377 | }
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/usr/include/objc/NSObject.h:53:12: note: class 'NSObject' does not conform to the 'Sendable' protocol
51 | OBJC_ROOT_CLASS
52 | OBJC_EXPORT
53 | @interface NSObject <NSObject> {
| `- note: class 'NSObject' does not conform to the 'Sendable' protocol
54 | #pragma clang diagnostic push
55 | #pragma clang diagnostic ignored "-Wobjc-interface-ivars"
/Users/admin/builder/spi-builder-workspace/Fusion/Core/Sources/Storage/DataBindable.swift:5:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'ObjectiveC'
3 | //
4 |
5 | import Foundation
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'ObjectiveC'
6 |
7 | // MARK: - Definitions -
/Users/admin/builder/spi-builder-workspace/Fusion/Core/Sources/Storage/DataBindable.swift:397:52: warning: capture of 'key' with non-sendable type 'Self.Key' in a '@Sendable' closure; this is an error in the Swift 6 language mode
395 | let holder = NSObject()
396 | register(key: key, cancellable: holder, callback: StreamSignal { continuation.yield() })
397 | continuation.onTermination = { _ in unbind(key: key, cancellable: holder) }
| `- warning: capture of 'key' with non-sendable type 'Self.Key' in a '@Sendable' closure; this is an error in the Swift 6 language mode
398 | }
399 | }
/Users/admin/builder/spi-builder-workspace/Fusion/Core/Sources/Storage/DataBindable.swift:397:70: warning: capture of 'holder' with non-sendable type 'NSObject' in a '@Sendable' closure; this is an error in the Swift 6 language mode
395 | let holder = NSObject()
396 | register(key: key, cancellable: holder, callback: StreamSignal { continuation.yield() })
397 | continuation.onTermination = { _ in unbind(key: key, cancellable: holder) }
| `- warning: capture of 'holder' with non-sendable type 'NSObject' in a '@Sendable' closure; this is an error in the Swift 6 language mode
398 | }
399 | }
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/usr/include/objc/NSObject.h:53:12: note: class 'NSObject' does not conform to the 'Sendable' protocol
51 | OBJC_ROOT_CLASS
52 | OBJC_EXPORT
53 | @interface NSObject <NSObject> {
| `- note: class 'NSObject' does not conform to the 'Sendable' protocol
54 | #pragma clang diagnostic push
55 | #pragma clang diagnostic ignored "-Wobjc-interface-ivars"
/Users/admin/builder/spi-builder-workspace/Fusion/Core/Sources/Networking/RESTRequest.swift:14:28: warning: sending 'callback' risks causing data races; this is an error in the Swift 6 language mode
12 | @inlinable public func syncMain(_ callback: @escaping () -> Void) {
13 | guard !Thread.isMainThread else { return callback() }
14 | DispatchQueue.main.sync { callback() }
| |- warning: sending 'callback' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'callback' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
15 | }
16 |
/Users/admin/builder/spi-builder-workspace/Fusion/Core/Sources/Networking/RESTRequest.swift:18:29: warning: sending 'callback' risks causing data races; this is an error in the Swift 6 language mode
16 |
17 | @inlinable public func asyncMain(_ callback: @escaping () -> Void) {
18 | DispatchQueue.main.async { callback() }
| |- warning: sending 'callback' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'callback' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
19 | }
20 |
/Users/admin/builder/spi-builder-workspace/Fusion/Core/Sources/Networking/RESTRequest.swift:22:60: warning: sending 'callback' risks causing data races; this is an error in the Swift 6 language mode
20 |
21 | @inlinable public func asyncMain(after: Double, _ callback: @escaping () -> Void) {
22 | DispatchQueue.main.asyncAfter(deadline: .now() + after) { callback() }
| |- warning: sending 'callback' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'callback' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
23 | }
24 |
/Users/admin/builder/spi-builder-workspace/Fusion/Core/Sources/Networking/RESTRequest.swift:52:17: warning: sending value of non-Sendable type 'Result<(T, URLResponse?), any Error>' risks causing data races; this is an error in the Swift 6 language mode
50 | }
51 | guard isFirst else { return }
52 | continuation.resume(with: result.map { ($0, response) })
| |- warning: sending value of non-Sendable type 'Result<(T, URLResponse?), any Error>' risks causing data races; this is an error in the Swift 6 language mode
| `- note: Passing task-isolated value of non-Sendable type 'Result<(T, URLResponse?), any Error>' as a 'sending' parameter risks causing races inbetween task-isolated uses and uses reachable from the callee
53 | }
54 | }
/Users/admin/builder/spi-builder-workspace/Fusion/Core/Sources/Storage/DataBindable.swift:374:84: warning: sending '$0' risks causing data races; this is an error in the Swift 6 language mode
372 | AsyncStream(bufferingPolicy: bufferingPolicy) { continuation in
373 | let holder = NSObject()
374 | register(key: key, cancellable: holder, callback: StreamInput<T> { continuation.yield($0) })
| |- warning: sending '$0' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated '$0' is passed as a 'sending' parameter; Uses in callee may race with later task-isolated uses
375 | continuation.onTermination = { _ in unbind(key: key, cancellable: holder) }
376 | }
[33/60] Compiling Fusion DataBindable.swift
/Users/admin/builder/spi-builder-workspace/Fusion/Core/Sources/Networking/RESTAuthenticator.swift:11:14: warning: non-final class 'RESTAuthenticator' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
9 | // MARK: - Type -
10 |
11 | public class RESTAuthenticator : NSObject, URLSessionDelegate {
| `- warning: non-final class 'RESTAuthenticator' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
12 |
13 | public var hashKeys: [String] = []
/Users/admin/builder/spi-builder-workspace/Fusion/Core/Sources/Networking/RESTAuthenticator.swift:13:13: warning: stored property 'hashKeys' of 'Sendable'-conforming class 'RESTAuthenticator' is mutable; this is an error in the Swift 6 language mode
11 | public class RESTAuthenticator : NSObject, URLSessionDelegate {
12 |
13 | public var hashKeys: [String] = []
| `- warning: stored property 'hashKeys' of 'Sendable'-conforming class 'RESTAuthenticator' is mutable; this is an error in the Swift 6 language mode
14 |
15 | public static let shared: RESTAuthenticator = RESTAuthenticator()
/Users/admin/builder/spi-builder-workspace/Fusion/Core/Sources/Networking/RESTRequest.swift:26:41: warning: capture of 'callback' with non-sendable type '() -> Void' in a '@Sendable' closure
24 |
25 | @inlinable public func asyncGlobal(qos: DispatchQoS.QoSClass = .default, callback: @escaping () -> Void) {
26 | DispatchQueue.global(qos: qos).async { callback() }
| |- warning: capture of 'callback' with non-sendable type '() -> Void' in a '@Sendable' closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
27 | }
28 |
/Users/admin/builder/spi-builder-workspace/Fusion/Core/Sources/Networking/RESTRequest.swift:224:4: warning: capture of 'completion' with non-sendable type 'Response<Data>?' (aka 'Optional<(Result<Data, any Error>, Optional<URLResponse>) -> ()>') in a '@Sendable' closure
222 |
223 | HTTPCookieStorage.appGroup.sync()
224 | completion?(result, response)
| |- warning: capture of 'completion' with non-sendable type 'Response<Data>?' (aka 'Optional<(Result<Data, any Error>, Optional<URLResponse>) -> ()>') in a '@Sendable' closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
225 | }.resume()
226 | }
/Users/admin/builder/spi-builder-workspace/Fusion/Core/Sources/Networking/RESTRequest.swift:271:4: warning: capture of 'completion' with non-sendable type 'Response<Data?>?' (aka 'Optional<(Result<Optional<Data>, any Error>, Optional<URLResponse>) -> ()>') in a '@Sendable' closure
269 |
270 | HTTPCookieStorage.appGroup.sync()
271 | completion?(result, response)
| |- warning: capture of 'completion' with non-sendable type 'Response<Data?>?' (aka 'Optional<(Result<Optional<Data>, any Error>, Optional<URLResponse>) -> ()>') in a '@Sendable' closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
272 | }.resume()
273 | }
/Users/admin/builder/spi-builder-workspace/Fusion/Core/Sources/Storage/DataBindable.swift:10:13: warning: static property 'deinitCallbackKey' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
8 |
9 | private struct Keys {
10 | static var deinitCallbackKey: UInt8 = 0
| |- warning: static property 'deinitCallbackKey' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'deinitCallbackKey' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'deinitCallbackKey' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
11 | }
12 |
/Users/admin/builder/spi-builder-workspace/Fusion/Core/Sources/Storage/DataBindable.swift:16:13: warning: static property 'all' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
14 |
15 | @ThreadSafe
16 | static var all: [String : [ObjectIdentifier : TargetWrapper]] = [:]
| |- warning: static property 'all' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'all' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'all' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
17 |
18 | static let prefixes = ThreadSafe<[ObjectIdentifier : String]>(wrappedValue: [:])
/Users/admin/builder/spi-builder-workspace/Fusion/Core/Sources/Storage/DataBindable.swift:375:52: warning: capture of 'key' with non-sendable type 'Self.Key' in a '@Sendable' closure; this is an error in the Swift 6 language mode
373 | let holder = NSObject()
374 | register(key: key, cancellable: holder, callback: StreamInput<T> { continuation.yield($0) })
375 | continuation.onTermination = { _ in unbind(key: key, cancellable: holder) }
| `- warning: capture of 'key' with non-sendable type 'Self.Key' in a '@Sendable' closure; this is an error in the Swift 6 language mode
376 | }
377 | }
/Users/admin/builder/spi-builder-workspace/Fusion/Core/Sources/Storage/DataBindable.swift:375:70: warning: capture of 'holder' with non-sendable type 'NSObject' in a '@Sendable' closure; this is an error in the Swift 6 language mode
373 | let holder = NSObject()
374 | register(key: key, cancellable: holder, callback: StreamInput<T> { continuation.yield($0) })
375 | continuation.onTermination = { _ in unbind(key: key, cancellable: holder) }
| `- warning: capture of 'holder' with non-sendable type 'NSObject' in a '@Sendable' closure; this is an error in the Swift 6 language mode
376 | }
377 | }
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/usr/include/objc/NSObject.h:53:12: note: class 'NSObject' does not conform to the 'Sendable' protocol
51 | OBJC_ROOT_CLASS
52 | OBJC_EXPORT
53 | @interface NSObject <NSObject> {
| `- note: class 'NSObject' does not conform to the 'Sendable' protocol
54 | #pragma clang diagnostic push
55 | #pragma clang diagnostic ignored "-Wobjc-interface-ivars"
/Users/admin/builder/spi-builder-workspace/Fusion/Core/Sources/Storage/DataBindable.swift:5:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'ObjectiveC'
3 | //
4 |
5 | import Foundation
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'ObjectiveC'
6 |
7 | // MARK: - Definitions -
/Users/admin/builder/spi-builder-workspace/Fusion/Core/Sources/Storage/DataBindable.swift:397:52: warning: capture of 'key' with non-sendable type 'Self.Key' in a '@Sendable' closure; this is an error in the Swift 6 language mode
395 | let holder = NSObject()
396 | register(key: key, cancellable: holder, callback: StreamSignal { continuation.yield() })
397 | continuation.onTermination = { _ in unbind(key: key, cancellable: holder) }
| `- warning: capture of 'key' with non-sendable type 'Self.Key' in a '@Sendable' closure; this is an error in the Swift 6 language mode
398 | }
399 | }
/Users/admin/builder/spi-builder-workspace/Fusion/Core/Sources/Storage/DataBindable.swift:397:70: warning: capture of 'holder' with non-sendable type 'NSObject' in a '@Sendable' closure; this is an error in the Swift 6 language mode
395 | let holder = NSObject()
396 | register(key: key, cancellable: holder, callback: StreamSignal { continuation.yield() })
397 | continuation.onTermination = { _ in unbind(key: key, cancellable: holder) }
| `- warning: capture of 'holder' with non-sendable type 'NSObject' in a '@Sendable' closure; this is an error in the Swift 6 language mode
398 | }
399 | }
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/usr/include/objc/NSObject.h:53:12: note: class 'NSObject' does not conform to the 'Sendable' protocol
51 | OBJC_ROOT_CLASS
52 | OBJC_EXPORT
53 | @interface NSObject <NSObject> {
| `- note: class 'NSObject' does not conform to the 'Sendable' protocol
54 | #pragma clang diagnostic push
55 | #pragma clang diagnostic ignored "-Wobjc-interface-ivars"
/Users/admin/builder/spi-builder-workspace/Fusion/Core/Sources/Networking/RESTRequest.swift:14:28: warning: sending 'callback' risks causing data races; this is an error in the Swift 6 language mode
12 | @inlinable public func syncMain(_ callback: @escaping () -> Void) {
13 | guard !Thread.isMainThread else { return callback() }
14 | DispatchQueue.main.sync { callback() }
| |- warning: sending 'callback' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'callback' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
15 | }
16 |
/Users/admin/builder/spi-builder-workspace/Fusion/Core/Sources/Networking/RESTRequest.swift:18:29: warning: sending 'callback' risks causing data races; this is an error in the Swift 6 language mode
16 |
17 | @inlinable public func asyncMain(_ callback: @escaping () -> Void) {
18 | DispatchQueue.main.async { callback() }
| |- warning: sending 'callback' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'callback' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
19 | }
20 |
/Users/admin/builder/spi-builder-workspace/Fusion/Core/Sources/Networking/RESTRequest.swift:22:60: warning: sending 'callback' risks causing data races; this is an error in the Swift 6 language mode
20 |
21 | @inlinable public func asyncMain(after: Double, _ callback: @escaping () -> Void) {
22 | DispatchQueue.main.asyncAfter(deadline: .now() + after) { callback() }
| |- warning: sending 'callback' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'callback' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
23 | }
24 |
/Users/admin/builder/spi-builder-workspace/Fusion/Core/Sources/Networking/RESTRequest.swift:52:17: warning: sending value of non-Sendable type 'Result<(T, URLResponse?), any Error>' risks causing data races; this is an error in the Swift 6 language mode
50 | }
51 | guard isFirst else { return }
52 | continuation.resume(with: result.map { ($0, response) })
| |- warning: sending value of non-Sendable type 'Result<(T, URLResponse?), any Error>' risks causing data races; this is an error in the Swift 6 language mode
| `- note: Passing task-isolated value of non-Sendable type 'Result<(T, URLResponse?), any Error>' as a 'sending' parameter risks causing races inbetween task-isolated uses and uses reachable from the callee
53 | }
54 | }
/Users/admin/builder/spi-builder-workspace/Fusion/Core/Sources/Storage/DataBindable.swift:374:84: warning: sending '$0' risks causing data races; this is an error in the Swift 6 language mode
372 | AsyncStream(bufferingPolicy: bufferingPolicy) { continuation in
373 | let holder = NSObject()
374 | register(key: key, cancellable: holder, callback: StreamInput<T> { continuation.yield($0) })
| |- warning: sending '$0' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated '$0' is passed as a 'sending' parameter; Uses in callee may race with later task-isolated uses
375 | continuation.onTermination = { _ in unbind(key: key, cancellable: holder) }
376 | }
[34/60] Compiling Fusion GradientView.swift
[35/60] Compiling Fusion ImageConvertible.swift
[36/60] Compiling Fusion ImageFunctions.swift
[37/60] Compiling Fusion ImageLoader.swift
[38/60] Compiling Fusion ImagePipeline.swift
[39/60] Emitting module Fusion
/Users/admin/builder/spi-builder-workspace/Fusion/Core/Sources/Controls/Constants.swift:83:13: warning: static property 'duration' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
81 | public extension Constant {
82 |
83 | static var duration: TimeInterval = 0.33
| |- warning: static property 'duration' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'duration' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'duration' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
84 | static let maxFps: FPoint = 60.0
85 | static let cycle: FPoint = 1.0 / maxFps
/Users/admin/builder/spi-builder-workspace/Fusion/Core/Sources/Controls/CountryInfo.swift:38:13: warning: static property 'all' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
36 |
37 | @Stored(CountryStorage.self, key: .all)
38 | static var all: Countries?
| |- warning: static property 'all' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'all' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'all' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
39 |
40 | @Stored(CountryStorage.self, key: .phoneCodeLookup)
/Users/admin/builder/spi-builder-workspace/Fusion/Core/Sources/Controls/CountryInfo.swift:41:13: warning: static property 'phoneCodeLookup' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
39 |
40 | @Stored(CountryStorage.self, key: .phoneCodeLookup)
41 | static var phoneCodeLookup: [String: String]?
| |- warning: static property 'phoneCodeLookup' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'phoneCodeLookup' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'phoneCodeLookup' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
42 |
43 | @Stored(CountryStorage.self, key: .languageLookup)
/Users/admin/builder/spi-builder-workspace/Fusion/Core/Sources/Controls/CountryInfo.swift:44:13: warning: static property 'languageLookup' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
42 |
43 | @Stored(CountryStorage.self, key: .languageLookup)
44 | static var languageLookup: [String: String]?
| |- warning: static property 'languageLookup' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'languageLookup' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'languageLookup' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
45 |
46 | @Stored(CountryStorage.self, key: .iso3Lookup)
/Users/admin/builder/spi-builder-workspace/Fusion/Core/Sources/Controls/CountryInfo.swift:47:13: warning: static property 'iso3Lookup' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
45 |
46 | @Stored(CountryStorage.self, key: .iso3Lookup)
47 | static var iso3Lookup: [String: String]?
| |- warning: static property 'iso3Lookup' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'iso3Lookup' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'iso3Lookup' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
48 | }
49 |
/Users/admin/builder/spi-builder-workspace/Fusion/Core/Sources/Controls/CountryInfo.swift:92:13: warning: static property 'availableCountries' is not concurrency-safe because non-'Sendable' type '[CountryInfo]' may have shared mutable state; this is an error in the Swift 6 language mode
90 | /// Returns a list of all available countries for the given locale on the device.
91 | /// The countries are filtered to only include those with valid names and are sorted alphabetically.
92 | static let availableCountries: [CountryInfo] = {
| |- warning: static property 'availableCountries' is not concurrency-safe because non-'Sendable' type '[CountryInfo]' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'availableCountries' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
93 | Locale.Region.isoRegions.filter(\.subRegions.isEmpty).map(\.identifier).map(\.countryInfoAsCode).filter(\.name.isEmpty == false).sorted()
94 | }()
:
103 | ///
104 | /// - SeeAlso: [ISO 3166 Standard](https://www.iso.org/obp/ui/#iso:std:iso:3166:-3:en)
105 | public struct CountryInfo {
| `- note: consider making struct 'CountryInfo' conform to the 'Sendable' protocol
106 |
107 | /// A type representing the different types of flag images available from FlagCDN.
/Users/admin/builder/spi-builder-workspace/Fusion/Core/Sources/Controls/CountryInfo.swift:333:13: warning: static property 'allCountries' is not concurrency-safe because non-'Sendable' type '[CountryInfo]' may have shared mutable state; this is an error in the Swift 6 language mode
103 | ///
104 | /// - SeeAlso: [ISO 3166 Standard](https://www.iso.org/obp/ui/#iso:std:iso:3166:-3:en)
105 | public struct CountryInfo {
| `- note: consider making struct 'CountryInfo' conform to the 'Sendable' protocol
106 |
107 | /// A type representing the different types of flag images available from FlagCDN.
:
331 | ///
332 | /// - Note: This is a computed property that is evaluated once when first accessed.
333 | static let allCountries: [CountryInfo] = { Locale.availableCountries.highlighting() }()
| |- warning: static property 'allCountries' is not concurrency-safe because non-'Sendable' type '[CountryInfo]' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'allCountries' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
334 | }
335 |
/Users/admin/builder/spi-builder-workspace/Fusion/Core/Sources/Controls/Localization.swift:45:21: warning: static property 'localeObserver' is not concurrency-safe because non-'Sendable' type 'any NSObjectProtocol' may have shared mutable state; this is an error in the Swift 6 language mode
43 | private static let localizedCache = ThreadSafe<LocalizedCache>(wrappedValue: .init())
44 |
45 | private static let localeObserver: NSObjectProtocol = NotificationCenter.default.addObserver(forName: NSLocale.currentLocaleDidChangeNotification,
| `- warning: static property 'localeObserver' is not concurrency-safe because non-'Sendable' type 'any NSObjectProtocol' may have shared mutable state; this is an error in the Swift 6 language mode
46 | object: nil,
47 | queue: nil) { _ in
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/usr/include/objc/NSObject.h:15:11: note: protocol 'NSObjectProtocol' does not conform to the 'Sendable' protocol
13 | @class NSString, NSMethodSignature, NSInvocation;
14 |
15 | @protocol NSObject
| `- note: protocol 'NSObjectProtocol' does not conform to the 'Sendable' protocol
16 |
17 | - (BOOL)isEqual:(id)object;
/Users/admin/builder/spi-builder-workspace/Fusion/Core/Sources/Controls/Localization.swift:5:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'ObjectiveC'
3 | //
4 |
5 | import Foundation
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'ObjectiveC'
6 |
7 | // MARK: - Extension - NotificationCenter
:
43 | private static let localizedCache = ThreadSafe<LocalizedCache>(wrappedValue: .init())
44 |
45 | private static let localeObserver: NSObjectProtocol = NotificationCenter.default.addObserver(forName: NSLocale.currentLocaleDidChangeNotification,
| |- note: add '@MainActor' to make static property 'localeObserver' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
46 | object: nil,
47 | queue: nil) { _ in
/Users/admin/builder/spi-builder-workspace/Fusion/Core/Sources/Controls/Localization.swift:69:13: warning: static property 'languageSet' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
67 |
68 | /// Returns a set of language codes available in the main bundle.
69 | static var languageSet: Set<String> = { Set(main.localizations) }()
| |- warning: static property 'languageSet' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'languageSet' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'languageSet' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
70 |
71 | // MARK: - Exposed Methods
/Users/admin/builder/spi-builder-workspace/Fusion/Core/Sources/Controls/Localization.swift:183:21: warning: static property 'tableKey' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
181 | // MARK: - Properties
182 |
183 | private static var tableKey: UInt8 = 1
| |- warning: static property 'tableKey' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'tableKey' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'tableKey' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
184 |
185 | private static let localizableTableStorage = ThreadSafe<String?>(wrappedValue: nil)
/Users/admin/builder/spi-builder-workspace/Fusion/Core/Sources/Controls/TimerControl.swift:60:20: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'TimerControl' may have shared mutable state; this is an error in the Swift 6 language mode
34 |
35 | /// This class creates a single unique loop running with the interval defined by the constant ``Constant/maxFps``.
36 | final public class TimerControl {
| `- note: class 'TimerControl' does not conform to the 'Sendable' protocol
37 |
38 | // MARK: - Properties
:
58 |
59 | /// The singleton instance of ``TimerControl``.
60 | public static let shared: TimerControl = TimerControl()
| |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'TimerControl' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'shared' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
61 |
62 | // MARK: - Constructors
/Users/admin/builder/spi-builder-workspace/Fusion/Core/Sources/Networking/Encryption.swift:12:13: warning: static property 'regEx' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
10 | public extension String.CompareOptions {
11 |
12 | static var regEx: Self = [.regularExpression, .caseInsensitive]
| |- warning: static property 'regEx' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'regEx' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'regEx' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
13 | }
14 |
/Users/admin/builder/spi-builder-workspace/Fusion/Core/Sources/Networking/Logger.swift:53:25: warning: static property 'maxFileSize' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
51 | static let queue = DispatchQueue(label: "Fusion.Logger", qos: .utility)
52 |
53 | @ThreadSafe static var maxFileSize: UInt64 = 15 * 1024 * 1024
| |- warning: static property 'maxFileSize' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'maxFileSize' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'maxFileSize' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
54 |
55 | static func persistsAsynchronously(forKey key: Key) -> Bool { false }
/Users/admin/builder/spi-builder-workspace/Fusion/Core/Sources/Networking/Logger.swift:154:20: warning: static property 'global' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
152 |
153 | /// The global logger configuration, determined by the `Constant.isDebug` flag.
154 | public static var global: Logger = Constant.isDebug ? .basic : .none
| |- warning: static property 'global' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'global' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'global' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
155 |
156 | /// A local cache of all log entries.
/Users/admin/builder/spi-builder-workspace/Fusion/Core/Sources/Networking/RESTAuthenticator.swift:11:14: warning: non-final class 'RESTAuthenticator' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
9 | // MARK: - Type -
10 |
11 | public class RESTAuthenticator : NSObject, URLSessionDelegate {
| `- warning: non-final class 'RESTAuthenticator' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
12 |
13 | public var hashKeys: [String] = []
/Users/admin/builder/spi-builder-workspace/Fusion/Core/Sources/Networking/RESTAuthenticator.swift:13:13: warning: stored property 'hashKeys' of 'Sendable'-conforming class 'RESTAuthenticator' is mutable; this is an error in the Swift 6 language mode
11 | public class RESTAuthenticator : NSObject, URLSessionDelegate {
12 |
13 | public var hashKeys: [String] = []
| `- warning: stored property 'hashKeys' of 'Sendable'-conforming class 'RESTAuthenticator' is mutable; this is an error in the Swift 6 language mode
14 |
15 | public static let shared: RESTAuthenticator = RESTAuthenticator()
/Users/admin/builder/spi-builder-workspace/Fusion/Core/Sources/Networking/RESTRequest.swift:26:41: warning: capture of 'callback' with non-sendable type '() -> Void' in a '@Sendable' closure
24 |
25 | @inlinable public func asyncGlobal(qos: DispatchQoS.QoSClass = .default, callback: @escaping () -> Void) {
26 | DispatchQueue.global(qos: qos).async { callback() }
| |- warning: capture of 'callback' with non-sendable type '() -> Void' in a '@Sendable' closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
27 | }
28 |
/Users/admin/builder/spi-builder-workspace/Fusion/Core/Sources/Storage/DataBindable.swift:10:13: warning: static property 'deinitCallbackKey' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
8 |
9 | private struct Keys {
10 | static var deinitCallbackKey: UInt8 = 0
| |- warning: static property 'deinitCallbackKey' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'deinitCallbackKey' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'deinitCallbackKey' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
11 | }
12 |
/Users/admin/builder/spi-builder-workspace/Fusion/Core/Sources/Storage/DataBindable.swift:16:13: warning: static property 'all' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
14 |
15 | @ThreadSafe
16 | static var all: [String : [ObjectIdentifier : TargetWrapper]] = [:]
| |- warning: static property 'all' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'all' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'all' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
17 |
18 | static let prefixes = ThreadSafe<[ObjectIdentifier : String]>(wrappedValue: [:])
/Users/admin/builder/spi-builder-workspace/Fusion/Core/Sources/Storage/DataStorageable.swift:74:20: warning: static property 'appGroup' is not concurrency-safe because non-'Sendable' type 'UserDefaults' may have shared mutable state; this is an error in the Swift 6 language mode
72 | extension UserDefaults : DataStorageable {
73 |
74 | public static let appGroup: UserDefaults = UserDefaults(suiteName: Bundle.appGroup) ?? UserDefaults.standard
| |- warning: static property 'appGroup' is not concurrency-safe because non-'Sendable' type 'UserDefaults' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'appGroup' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
75 | public static var shared: DataStorageable { appGroup }
76 |
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSUserDefaults.h:49:12: note: class 'UserDefaults' does not conform to the 'Sendable' protocol
47 | NSUserDefaults can be observed using Key-Value Observing for any key stored in it. Using NSKeyValueObservingOptionPrior to observe changes from other processes or devices will behave as though NSKeyValueObservingOptionPrior was not specified.
48 | */
49 | @interface NSUserDefaults : NSObject {
| `- note: class 'UserDefaults' does not conform to the 'Sendable' protocol
50 | @private
51 | id _kvo_;
/Users/admin/builder/spi-builder-workspace/Fusion/Core/Sources/Storage/DataStorageable.swift:86:20: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'any DataStorageable' may have shared mutable state; this is an error in the Swift 6 language mode
16 | }
17 |
18 | public protocol DataStorageable {
| `- note: protocol 'DataStorageable' does not conform to the 'Sendable' protocol
19 |
20 | static var shared: DataStorageable { get }
:
84 | extension FileManager : DataStorageable {
85 |
86 | public static let shared: DataStorageable = FileManager.default
| |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'any DataStorageable' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'shared' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
87 |
88 | public func value<T : Decodable>(forKey key: String) -> T? { return T.loadFile(key: key) }
/Users/admin/builder/spi-builder-workspace/Fusion/Core/Sources/Storage/DataStorageable.swift:106:21: warning: static property 'objects' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
104 |
105 | @ThreadSafe
106 | private static var objects: [String : Any] = [:]
| |- warning: static property 'objects' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'objects' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'objects' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
107 | public static let shared: DataStorageable = StateStorage()
108 |
/Users/admin/builder/spi-builder-workspace/Fusion/Core/Sources/Storage/DataStorageable.swift:107:20: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'any DataStorageable' may have shared mutable state; this is an error in the Swift 6 language mode
16 | }
17 |
18 | public protocol DataStorageable {
| `- note: protocol 'DataStorageable' does not conform to the 'Sendable' protocol
19 |
20 | static var shared: DataStorageable { get }
:
105 | @ThreadSafe
106 | private static var objects: [String : Any] = [:]
107 | public static let shared: DataStorageable = StateStorage()
| |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'any DataStorageable' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'shared' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
108 |
109 | public func value<T : Decodable>(forKey key: String) -> T? { StateStorage.objects[key] as? T }
/Users/admin/builder/spi-builder-workspace/Fusion/Core/Sources/Storage/DataStorageable.swift:124:20: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'any DataStorageable' may have shared mutable state; this is an error in the Swift 6 language mode
16 | }
17 |
18 | public protocol DataStorageable {
| `- note: protocol 'DataStorageable' does not conform to the 'Sendable' protocol
19 |
20 | static var shared: DataStorageable { get }
:
122 | extension Keychain : DataStorageable {
123 |
124 | public static let shared: DataStorageable = Keychain()
| |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'any DataStorageable' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'shared' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
125 | public func value<T : Decodable>(forKey key: String) -> T? { T.load(data: self[key] ?? Data()) }
126 | public func set<T : Encodable>(_ value: T?, forKey key: String) { self[key] = value?.data }
/Users/admin/builder/spi-builder-workspace/Fusion/Core/Sources/Storage/InMemoryCache.swift:23:21: warning: static property 'store' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
21 |
22 | @ThreadSafe
23 | private static var store = Store()
| |- warning: static property 'store' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'store' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'store' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
24 |
25 | // MARK: - Constructors
/Users/admin/builder/spi-builder-workspace/Fusion/Core/Sources/Storage/JSONFunctions.swift:64:13: warning: static property 'validFormats' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
62 | public extension DateFormatter {
63 |
64 | static var validFormats = ["yyyy-MM-dd'T'HH:mm:ss.SSSZ", "yyyy-MM-dd'T'HH:mm:ssZ"]
| |- warning: static property 'validFormats' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'validFormats' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'validFormats' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
65 |
66 | static var utc: DateFormatter {
/Users/admin/builder/spi-builder-workspace/Fusion/Core/Sources/Storage/JSONFunctions.swift:128:13: warning: static property 'standard' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
126 | public extension JSONDecoder {
127 |
128 | static var standard: JSONDecoder = {
| |- warning: static property 'standard' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'standard' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'standard' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
129 | let decoder = JSONDecoder()
130 | decoder.dateDecodingStrategy = .standardDates
/Users/admin/builder/spi-builder-workspace/Fusion/Core/Sources/Storage/JSONFunctions.swift:139:13: warning: static property 'standard' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
137 | public extension JSONEncoder {
138 |
139 | static var standard: JSONEncoder = {
| |- warning: static property 'standard' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'standard' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'standard' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
140 | let encoder = JSONEncoder()
141 | encoder.dateEncodingStrategy = .standardDates
/Users/admin/builder/spi-builder-workspace/Fusion/Core/Sources/Storage/JSONFunctions.swift:325:22: warning: static property 'dateCache' is not concurrency-safe because non-'Sendable' type 'NSCache<NSString, NSDate>' may have shared mutable state; this is an error in the Swift 6 language mode
323 | }
324 |
325 | internal static let dateCache: NSCache<NSString, NSDate> = {
| |- warning: static property 'dateCache' is not concurrency-safe because non-'Sendable' type 'NSCache<NSString, NSDate>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'dateCache' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
326 | let cache = NSCache<NSString, NSDate>()
327 | cache.countLimit = 4096
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSCache.h:13:12: note: generic class 'NSCache' does not conform to the 'Sendable' protocol
11 |
12 | API_AVAILABLE(macos(10.6), ios(4.0), watchos(2.0), tvos(9.0))
13 | @interface NSCache <KeyType, ObjectType> : NSObject
| `- note: generic class 'NSCache' does not conform to the 'Sendable' protocol
14 |
15 | @property (copy) NSString *name;
/Users/admin/builder/spi-builder-workspace/Fusion/Core/Sources/Storage/JSONFunctions.swift:441:19: warning: static property 'appGroup' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
439 | var fullVersion: String { "v \(shortVersion) (\(buildNumber))" }
440 |
441 | @objc static var appGroup: String = ""
| |- warning: static property 'appGroup' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'appGroup' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'appGroup' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
442 | }
443 |
/Users/admin/builder/spi-builder-workspace/Fusion/Core/Sources/Storage/StoragePersistence.swift:35:21: warning: static property 'lifecycleObservers' is not concurrency-safe because non-'Sendable' type '[any NSObjectProtocol]' may have shared mutable state; this is an error in the Swift 6 language mode
33 | private static let state = ThreadSafe<PendingState>(wrappedValue: .init())
34 |
35 | private static let lifecycleObservers: [NSObjectProtocol] = {
| `- warning: static property 'lifecycleObservers' is not concurrency-safe because non-'Sendable' type '[any NSObjectProtocol]' may have shared mutable state; this is an error in the Swift 6 language mode
36 | #if canImport(UIKit) && !os(watchOS)
37 | let names: [Notification.Name] = [
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/usr/include/objc/NSObject.h:15:11: note: protocol 'NSObjectProtocol' does not conform to the 'Sendable' protocol
13 | @class NSString, NSMethodSignature, NSInvocation;
14 |
15 | @protocol NSObject
| `- note: protocol 'NSObjectProtocol' does not conform to the 'Sendable' protocol
16 |
17 | - (BOOL)isEqual:(id)object;
/Users/admin/builder/spi-builder-workspace/Fusion/Core/Sources/Storage/StoragePersistence.swift:5:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'ObjectiveC'
3 | //
4 |
5 | import Foundation
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'ObjectiveC'
6 | #if canImport(UIKit) && !os(watchOS)
7 | import UIKit
:
33 | private static let state = ThreadSafe<PendingState>(wrappedValue: .init())
34 |
35 | private static let lifecycleObservers: [NSObjectProtocol] = {
| |- note: add '@MainActor' to make static property 'lifecycleObservers' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
36 | #if canImport(UIKit) && !os(watchOS)
37 | let names: [Notification.Name] = [
/Users/admin/builder/spi-builder-workspace/Fusion/UI/Sources/Animation/Ease.swift:236:20: warning: static property 'allCases' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
234 | }
235 |
236 | public static var allCases: [Ease] = [.linear,
| |- warning: static property 'allCases' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'allCases' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'allCases' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
237 | .smoothIn, .smoothOut, .smoothInOut,
238 | .strongIn, .strongOut, .strongInOut,
/Users/admin/builder/spi-builder-workspace/Fusion/Core/Sources/Networking/RESTRequest.swift:14:28: warning: sending 'callback' risks causing data races; this is an error in the Swift 6 language mode
12 | @inlinable public func syncMain(_ callback: @escaping () -> Void) {
13 | guard !Thread.isMainThread else { return callback() }
14 | DispatchQueue.main.sync { callback() }
| |- warning: sending 'callback' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'callback' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
15 | }
16 |
/Users/admin/builder/spi-builder-workspace/Fusion/Core/Sources/Networking/RESTRequest.swift:18:29: warning: sending 'callback' risks causing data races; this is an error in the Swift 6 language mode
16 |
17 | @inlinable public func asyncMain(_ callback: @escaping () -> Void) {
18 | DispatchQueue.main.async { callback() }
| |- warning: sending 'callback' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'callback' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
19 | }
20 |
/Users/admin/builder/spi-builder-workspace/Fusion/Core/Sources/Networking/RESTRequest.swift:22:60: warning: sending 'callback' risks causing data races; this is an error in the Swift 6 language mode
20 |
21 | @inlinable public func asyncMain(after: Double, _ callback: @escaping () -> Void) {
22 | DispatchQueue.main.asyncAfter(deadline: .now() + after) { callback() }
| |- warning: sending 'callback' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'callback' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
23 | }
24 |
[40/60] Compiling Fusion StoragePersistence.swift
/Users/admin/builder/spi-builder-workspace/Fusion/Core/Sources/Storage/StoragePersistence.swift:35:21: warning: static property 'lifecycleObservers' is not concurrency-safe because non-'Sendable' type '[any NSObjectProtocol]' may have shared mutable state; this is an error in the Swift 6 language mode
33 | private static let state = ThreadSafe<PendingState>(wrappedValue: .init())
34 |
35 | private static let lifecycleObservers: [NSObjectProtocol] = {
| `- warning: static property 'lifecycleObservers' is not concurrency-safe because non-'Sendable' type '[any NSObjectProtocol]' may have shared mutable state; this is an error in the Swift 6 language mode
36 | #if canImport(UIKit) && !os(watchOS)
37 | let names: [Notification.Name] = [
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/usr/include/objc/NSObject.h:15:11: note: protocol 'NSObjectProtocol' does not conform to the 'Sendable' protocol
13 | @class NSString, NSMethodSignature, NSInvocation;
14 |
15 | @protocol NSObject
| `- note: protocol 'NSObjectProtocol' does not conform to the 'Sendable' protocol
16 |
17 | - (BOOL)isEqual:(id)object;
/Users/admin/builder/spi-builder-workspace/Fusion/Core/Sources/Storage/StoragePersistence.swift:5:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'ObjectiveC'
3 | //
4 |
5 | import Foundation
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'ObjectiveC'
6 | #if canImport(UIKit) && !os(watchOS)
7 | import UIKit
:
33 | private static let state = ThreadSafe<PendingState>(wrappedValue: .init())
34 |
35 | private static let lifecycleObservers: [NSObjectProtocol] = {
| |- note: add '@MainActor' to make static property 'lifecycleObservers' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
36 | #if canImport(UIKit) && !os(watchOS)
37 | let names: [Notification.Name] = [
/Users/admin/builder/spi-builder-workspace/Fusion/UI/Sources/Animation/Ease.swift:236:20: warning: static property 'allCases' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
234 | }
235 |
236 | public static var allCases: [Ease] = [.linear,
| |- warning: static property 'allCases' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'allCases' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'allCases' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
237 | .smoothIn, .smoothOut, .smoothInOut,
238 | .strongIn, .strongOut, .strongInOut,
[41/60] Compiling Fusion ThreadSafe.swift
/Users/admin/builder/spi-builder-workspace/Fusion/Core/Sources/Storage/StoragePersistence.swift:35:21: warning: static property 'lifecycleObservers' is not concurrency-safe because non-'Sendable' type '[any NSObjectProtocol]' may have shared mutable state; this is an error in the Swift 6 language mode
33 | private static let state = ThreadSafe<PendingState>(wrappedValue: .init())
34 |
35 | private static let lifecycleObservers: [NSObjectProtocol] = {
| `- warning: static property 'lifecycleObservers' is not concurrency-safe because non-'Sendable' type '[any NSObjectProtocol]' may have shared mutable state; this is an error in the Swift 6 language mode
36 | #if canImport(UIKit) && !os(watchOS)
37 | let names: [Notification.Name] = [
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/usr/include/objc/NSObject.h:15:11: note: protocol 'NSObjectProtocol' does not conform to the 'Sendable' protocol
13 | @class NSString, NSMethodSignature, NSInvocation;
14 |
15 | @protocol NSObject
| `- note: protocol 'NSObjectProtocol' does not conform to the 'Sendable' protocol
16 |
17 | - (BOOL)isEqual:(id)object;
/Users/admin/builder/spi-builder-workspace/Fusion/Core/Sources/Storage/StoragePersistence.swift:5:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'ObjectiveC'
3 | //
4 |
5 | import Foundation
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'ObjectiveC'
6 | #if canImport(UIKit) && !os(watchOS)
7 | import UIKit
:
33 | private static let state = ThreadSafe<PendingState>(wrappedValue: .init())
34 |
35 | private static let lifecycleObservers: [NSObjectProtocol] = {
| |- note: add '@MainActor' to make static property 'lifecycleObservers' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
36 | #if canImport(UIKit) && !os(watchOS)
37 | let names: [Notification.Name] = [
/Users/admin/builder/spi-builder-workspace/Fusion/UI/Sources/Animation/Ease.swift:236:20: warning: static property 'allCases' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
234 | }
235 |
236 | public static var allCases: [Ease] = [.linear,
| |- warning: static property 'allCases' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'allCases' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'allCases' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
237 | .smoothIn, .smoothOut, .smoothInOut,
238 | .strongIn, .strongOut, .strongInOut,
[42/60] Compiling Fusion DisplayLinkDriver.swift
/Users/admin/builder/spi-builder-workspace/Fusion/Core/Sources/Storage/StoragePersistence.swift:35:21: warning: static property 'lifecycleObservers' is not concurrency-safe because non-'Sendable' type '[any NSObjectProtocol]' may have shared mutable state; this is an error in the Swift 6 language mode
33 | private static let state = ThreadSafe<PendingState>(wrappedValue: .init())
34 |
35 | private static let lifecycleObservers: [NSObjectProtocol] = {
| `- warning: static property 'lifecycleObservers' is not concurrency-safe because non-'Sendable' type '[any NSObjectProtocol]' may have shared mutable state; this is an error in the Swift 6 language mode
36 | #if canImport(UIKit) && !os(watchOS)
37 | let names: [Notification.Name] = [
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/usr/include/objc/NSObject.h:15:11: note: protocol 'NSObjectProtocol' does not conform to the 'Sendable' protocol
13 | @class NSString, NSMethodSignature, NSInvocation;
14 |
15 | @protocol NSObject
| `- note: protocol 'NSObjectProtocol' does not conform to the 'Sendable' protocol
16 |
17 | - (BOOL)isEqual:(id)object;
/Users/admin/builder/spi-builder-workspace/Fusion/Core/Sources/Storage/StoragePersistence.swift:5:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'ObjectiveC'
3 | //
4 |
5 | import Foundation
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'ObjectiveC'
6 | #if canImport(UIKit) && !os(watchOS)
7 | import UIKit
:
33 | private static let state = ThreadSafe<PendingState>(wrappedValue: .init())
34 |
35 | private static let lifecycleObservers: [NSObjectProtocol] = {
| |- note: add '@MainActor' to make static property 'lifecycleObservers' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
36 | #if canImport(UIKit) && !os(watchOS)
37 | let names: [Notification.Name] = [
/Users/admin/builder/spi-builder-workspace/Fusion/UI/Sources/Animation/Ease.swift:236:20: warning: static property 'allCases' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
234 | }
235 |
236 | public static var allCases: [Ease] = [.linear,
| |- warning: static property 'allCases' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'allCases' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'allCases' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
237 | .smoothIn, .smoothOut, .smoothInOut,
238 | .strongIn, .strongOut, .strongInOut,
[43/60] Compiling Fusion Ease.swift
/Users/admin/builder/spi-builder-workspace/Fusion/Core/Sources/Storage/StoragePersistence.swift:35:21: warning: static property 'lifecycleObservers' is not concurrency-safe because non-'Sendable' type '[any NSObjectProtocol]' may have shared mutable state; this is an error in the Swift 6 language mode
33 | private static let state = ThreadSafe<PendingState>(wrappedValue: .init())
34 |
35 | private static let lifecycleObservers: [NSObjectProtocol] = {
| `- warning: static property 'lifecycleObservers' is not concurrency-safe because non-'Sendable' type '[any NSObjectProtocol]' may have shared mutable state; this is an error in the Swift 6 language mode
36 | #if canImport(UIKit) && !os(watchOS)
37 | let names: [Notification.Name] = [
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/usr/include/objc/NSObject.h:15:11: note: protocol 'NSObjectProtocol' does not conform to the 'Sendable' protocol
13 | @class NSString, NSMethodSignature, NSInvocation;
14 |
15 | @protocol NSObject
| `- note: protocol 'NSObjectProtocol' does not conform to the 'Sendable' protocol
16 |
17 | - (BOOL)isEqual:(id)object;
/Users/admin/builder/spi-builder-workspace/Fusion/Core/Sources/Storage/StoragePersistence.swift:5:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'ObjectiveC'
3 | //
4 |
5 | import Foundation
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'ObjectiveC'
6 | #if canImport(UIKit) && !os(watchOS)
7 | import UIKit
:
33 | private static let state = ThreadSafe<PendingState>(wrappedValue: .init())
34 |
35 | private static let lifecycleObservers: [NSObjectProtocol] = {
| |- note: add '@MainActor' to make static property 'lifecycleObservers' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
36 | #if canImport(UIKit) && !os(watchOS)
37 | let names: [Notification.Name] = [
/Users/admin/builder/spi-builder-workspace/Fusion/UI/Sources/Animation/Ease.swift:236:20: warning: static property 'allCases' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
234 | }
235 |
236 | public static var allCases: [Ease] = [.linear,
| |- warning: static property 'allCases' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'allCases' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'allCases' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
237 | .smoothIn, .smoothOut, .smoothInOut,
238 | .strongIn, .strongOut, .strongInOut,
[44/60] Compiling Fusion Tween.swift
/Users/admin/builder/spi-builder-workspace/Fusion/Core/Sources/Storage/StoragePersistence.swift:35:21: warning: static property 'lifecycleObservers' is not concurrency-safe because non-'Sendable' type '[any NSObjectProtocol]' may have shared mutable state; this is an error in the Swift 6 language mode
33 | private static let state = ThreadSafe<PendingState>(wrappedValue: .init())
34 |
35 | private static let lifecycleObservers: [NSObjectProtocol] = {
| `- warning: static property 'lifecycleObservers' is not concurrency-safe because non-'Sendable' type '[any NSObjectProtocol]' may have shared mutable state; this is an error in the Swift 6 language mode
36 | #if canImport(UIKit) && !os(watchOS)
37 | let names: [Notification.Name] = [
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/usr/include/objc/NSObject.h:15:11: note: protocol 'NSObjectProtocol' does not conform to the 'Sendable' protocol
13 | @class NSString, NSMethodSignature, NSInvocation;
14 |
15 | @protocol NSObject
| `- note: protocol 'NSObjectProtocol' does not conform to the 'Sendable' protocol
16 |
17 | - (BOOL)isEqual:(id)object;
/Users/admin/builder/spi-builder-workspace/Fusion/Core/Sources/Storage/StoragePersistence.swift:5:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'ObjectiveC'
3 | //
4 |
5 | import Foundation
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'ObjectiveC'
6 | #if canImport(UIKit) && !os(watchOS)
7 | import UIKit
:
33 | private static let state = ThreadSafe<PendingState>(wrappedValue: .init())
34 |
35 | private static let lifecycleObservers: [NSObjectProtocol] = {
| |- note: add '@MainActor' to make static property 'lifecycleObservers' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
36 | #if canImport(UIKit) && !os(watchOS)
37 | let names: [Notification.Name] = [
/Users/admin/builder/spi-builder-workspace/Fusion/UI/Sources/Animation/Ease.swift:236:20: warning: static property 'allCases' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
234 | }
235 |
236 | public static var allCases: [Ease] = [.linear,
| |- warning: static property 'allCases' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'allCases' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'allCases' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
237 | .smoothIn, .smoothOut, .smoothInOut,
238 | .strongIn, .strongOut, .strongInOut,
[45/60] Compiling Fusion ControlAction.swift
/Users/admin/builder/spi-builder-workspace/Fusion/Core/Sources/Storage/StoragePersistence.swift:35:21: warning: static property 'lifecycleObservers' is not concurrency-safe because non-'Sendable' type '[any NSObjectProtocol]' may have shared mutable state; this is an error in the Swift 6 language mode
33 | private static let state = ThreadSafe<PendingState>(wrappedValue: .init())
34 |
35 | private static let lifecycleObservers: [NSObjectProtocol] = {
| `- warning: static property 'lifecycleObservers' is not concurrency-safe because non-'Sendable' type '[any NSObjectProtocol]' may have shared mutable state; this is an error in the Swift 6 language mode
36 | #if canImport(UIKit) && !os(watchOS)
37 | let names: [Notification.Name] = [
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/usr/include/objc/NSObject.h:15:11: note: protocol 'NSObjectProtocol' does not conform to the 'Sendable' protocol
13 | @class NSString, NSMethodSignature, NSInvocation;
14 |
15 | @protocol NSObject
| `- note: protocol 'NSObjectProtocol' does not conform to the 'Sendable' protocol
16 |
17 | - (BOOL)isEqual:(id)object;
/Users/admin/builder/spi-builder-workspace/Fusion/Core/Sources/Storage/StoragePersistence.swift:5:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'ObjectiveC'
3 | //
4 |
5 | import Foundation
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'ObjectiveC'
6 | #if canImport(UIKit) && !os(watchOS)
7 | import UIKit
:
33 | private static let state = ThreadSafe<PendingState>(wrappedValue: .init())
34 |
35 | private static let lifecycleObservers: [NSObjectProtocol] = {
| |- note: add '@MainActor' to make static property 'lifecycleObservers' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
36 | #if canImport(UIKit) && !os(watchOS)
37 | let names: [Notification.Name] = [
/Users/admin/builder/spi-builder-workspace/Fusion/UI/Sources/Animation/Ease.swift:236:20: warning: static property 'allCases' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
234 | }
235 |
236 | public static var allCases: [Ease] = [.linear,
| |- warning: static property 'allCases' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'allCases' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'allCases' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
237 | .smoothIn, .smoothOut, .smoothInOut,
238 | .strongIn, .strongOut, .strongInOut,
[46/60] Compiling Fusion TextUpdateModifier.swift
/Users/admin/builder/spi-builder-workspace/Fusion/UI/Sources/Styling/TextStyle.swift:21:10: warning: main actor-isolated property 'stringValue' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
12 | // MARK: - Exposed Methods
13 |
14 | func render(on target: Any?) {
| `- note: add '@MainActor' to make instance method 'render(on:)' part of global actor 'MainActor'
15 | guard let view = target as? NSView else {
16 | return
:
19 | switch view {
20 | case let label as NSTextField:
21 | label.stringValue = self
| `- warning: main actor-isolated property 'stringValue' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
22 | case let button as NSButton:
23 | button.title = self
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSControl.h:36:28: note: mutation of this property is only permitted within the actor
34 |
35 | @property (nullable, copy) id /* id<NSCopying> */ objectValue;
36 | @property (copy) NSString *stringValue;
| `- note: mutation of this property is only permitted within the actor
37 | @property (copy) NSAttributedString *attributedStringValue;
38 | @property int intValue;
/Users/admin/builder/spi-builder-workspace/Fusion/UI/Sources/Styling/TextStyle.swift:23:11: warning: main actor-isolated property 'title' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
12 | // MARK: - Exposed Methods
13 |
14 | func render(on target: Any?) {
| `- note: add '@MainActor' to make instance method 'render(on:)' part of global actor 'MainActor'
15 | guard let view = target as? NSView else {
16 | return
:
21 | label.stringValue = self
22 | case let button as NSButton:
23 | button.title = self
| `- warning: main actor-isolated property 'title' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
24 | case let textView as NSTextView:
25 | textView.string = self
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSButton.h:75:28: note: mutation of this property is only permitted within the actor
73 |
74 | /*! The title displayed on the button when it’s in an off state, or an empty string if the button does not display a title. By default, a button's title is "Button". */
75 | @property (copy) NSString *title;
| `- note: mutation of this property is only permitted within the actor
76 |
77 | /*! The button's title, expressed as an attributed string. */
/Users/admin/builder/spi-builder-workspace/Fusion/UI/Sources/Styling/TextStyle.swift:25:13: warning: main actor-isolated property 'string' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
12 | // MARK: - Exposed Methods
13 |
14 | func render(on target: Any?) {
| `- note: add '@MainActor' to make instance method 'render(on:)' part of global actor 'MainActor'
15 | guard let view = target as? NSView else {
16 | return
:
23 | button.title = self
24 | case let textView as NSTextView:
25 | textView.string = self
| `- warning: main actor-isolated property 'string' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
26 | case let textField as NSTextField:
27 | textField.stringValue = self
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSText.h:69:28: note: mutation of this property is only permitted within the actor
67 | - (nullable instancetype)initWithCoder:(NSCoder *)coder NS_DESIGNATED_INITIALIZER;
68 |
69 | @property (copy) NSString *string;
| `- note: mutation of this property is only permitted within the actor
70 |
71 | - (void)replaceCharactersInRange:(NSRange)range withString:(NSString *)string;
/Users/admin/builder/spi-builder-workspace/Fusion/UI/Sources/Styling/TextStyle.swift:27:14: warning: main actor-isolated property 'stringValue' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
12 | // MARK: - Exposed Methods
13 |
14 | func render(on target: Any?) {
| `- note: add '@MainActor' to make instance method 'render(on:)' part of global actor 'MainActor'
15 | guard let view = target as? NSView else {
16 | return
:
25 | textView.string = self
26 | case let textField as NSTextField:
27 | textField.stringValue = self
| `- warning: main actor-isolated property 'stringValue' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
28 | default:
29 | break
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSControl.h:36:28: note: mutation of this property is only permitted within the actor
34 |
35 | @property (nullable, copy) id /* id<NSCopying> */ objectValue;
36 | @property (copy) NSString *stringValue;
| `- note: mutation of this property is only permitted within the actor
37 | @property (copy) NSAttributedString *attributedStringValue;
38 | @property int intValue;
/Users/admin/builder/spi-builder-workspace/Fusion/UI/Sources/Styling/TextStyle.swift:32:8: warning: call to main actor-isolated instance method 'setAccessibilityIdentifier' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
12 | // MARK: - Exposed Methods
13 |
14 | func render(on target: Any?) {
| `- note: add '@MainActor' to make instance method 'render(on:)' part of global actor 'MainActor'
15 | guard let view = target as? NSView else {
16 | return
:
30 | }
31 |
32 | view.setAccessibilityIdentifier(originalKey)
| `- warning: call to main actor-isolated instance method 'setAccessibilityIdentifier' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
33 | }
34 | }
AppKit.NSView.setAccessibilityIdentifier:3:24: note: calls to instance method 'setAccessibilityIdentifier' from outside of its actor context are implicitly asynchronous
1 | class NSView {
2 | @available(macOS 10.10, *)
3 | @MainActor open func setAccessibilityIdentifier(_ accessibilityIdentifier: String?)}
| |- note: calls to instance method 'setAccessibilityIdentifier' from outside of its actor context are implicitly asynchronous
| `- note: main actor isolation inferred from inheritance from class 'NSResponder'
4 |
/Users/admin/builder/spi-builder-workspace/Fusion/UI/Sources/Styling/TextStyle.swift:58:10: warning: main actor-isolated property 'attributedStringValue' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
49 | // MARK: - Exposed Methods
50 |
51 | func render(on target: Any?) {
| `- note: add '@MainActor' to make instance method 'render(on:)' part of global actor 'MainActor'
52 | guard let view = target as? NSView else {
53 | return
:
56 | switch view {
57 | case let label as NSTextField:
58 | label.attributedStringValue = self
| `- warning: main actor-isolated property 'attributedStringValue' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
59 | case let button as NSButton:
60 | button.attributedTitle = self
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSControl.h:37:38: note: mutation of this property is only permitted within the actor
35 | @property (nullable, copy) id /* id<NSCopying> */ objectValue;
36 | @property (copy) NSString *stringValue;
37 | @property (copy) NSAttributedString *attributedStringValue;
| `- note: mutation of this property is only permitted within the actor
38 | @property int intValue;
39 | @property NSInteger integerValue;
/Users/admin/builder/spi-builder-workspace/Fusion/UI/Sources/Styling/TextStyle.swift:60:11: warning: main actor-isolated property 'attributedTitle' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
49 | // MARK: - Exposed Methods
50 |
51 | func render(on target: Any?) {
| `- note: add '@MainActor' to make instance method 'render(on:)' part of global actor 'MainActor'
52 | guard let view = target as? NSView else {
53 | return
:
58 | label.attributedStringValue = self
59 | case let button as NSButton:
60 | button.attributedTitle = self
| `- warning: main actor-isolated property 'attributedTitle' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
61 | case let textView as NSTextView:
62 | textView.textStorage?.setAttributedString(self)
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSButton.h:78:38: note: mutation of this property is only permitted within the actor
76 |
77 | /*! The button's title, expressed as an attributed string. */
78 | @property (copy) NSAttributedString *attributedTitle;
| `- note: mutation of this property is only permitted within the actor
79 |
80 | /*! The title that the button displays when the button is in an on state, or an empty string if there is no such title. Note that some button types do not display an alternate title. */
/Users/admin/builder/spi-builder-workspace/Fusion/UI/Sources/Styling/TextStyle.swift:62:13: warning: main actor-isolated property 'textStorage' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
49 | // MARK: - Exposed Methods
50 |
51 | func render(on target: Any?) {
| `- note: add '@MainActor' to make instance method 'render(on:)' part of global actor 'MainActor'
52 | guard let view = target as? NSView else {
53 | return
:
60 | button.attributedTitle = self
61 | case let textView as NSTextView:
62 | textView.textStorage?.setAttributedString(self)
| `- warning: main actor-isolated property 'textStorage' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
63 | case let textField as NSTextField:
64 | textField.attributedStringValue = self
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSTextView.h:113:55: note: property declared here
111 | @property (nullable, readonly, assign) NSLayoutManager *layoutManager;
112 |
113 | @property (nullable, readonly, assign) NSTextStorage *textStorage;
| `- note: property declared here
114 |
115 | // The text views's text layout manager, if its text container is configured with one; null otherwise.
/Users/admin/builder/spi-builder-workspace/Fusion/UI/Sources/Styling/TextStyle.swift:64:14: warning: main actor-isolated property 'attributedStringValue' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
49 | // MARK: - Exposed Methods
50 |
51 | func render(on target: Any?) {
| `- note: add '@MainActor' to make instance method 'render(on:)' part of global actor 'MainActor'
52 | guard let view = target as? NSView else {
53 | return
:
62 | textView.textStorage?.setAttributedString(self)
63 | case let textField as NSTextField:
64 | textField.attributedStringValue = self
| `- warning: main actor-isolated property 'attributedStringValue' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
65 | default:
66 | break
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSControl.h:37:38: note: mutation of this property is only permitted within the actor
35 | @property (nullable, copy) id /* id<NSCopying> */ objectValue;
36 | @property (copy) NSString *stringValue;
37 | @property (copy) NSAttributedString *attributedStringValue;
| `- note: mutation of this property is only permitted within the actor
38 | @property int intValue;
39 | @property NSInteger integerValue;
/Users/admin/builder/spi-builder-workspace/Fusion/UI/Sources/Styling/TextStyle.swift:69:8: warning: call to main actor-isolated instance method 'setAccessibilityIdentifier' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
49 | // MARK: - Exposed Methods
50 |
51 | func render(on target: Any?) {
| `- note: add '@MainActor' to make instance method 'render(on:)' part of global actor 'MainActor'
52 | guard let view = target as? NSView else {
53 | return
:
67 | }
68 |
69 | view.setAccessibilityIdentifier(content.originalKey)
| `- warning: call to main actor-isolated instance method 'setAccessibilityIdentifier' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
70 | }
71 | }
AppKit.NSView.setAccessibilityIdentifier:3:24: note: calls to instance method 'setAccessibilityIdentifier' from outside of its actor context are implicitly asynchronous
1 | class NSView {
2 | @available(macOS 10.10, *)
3 | @MainActor open func setAccessibilityIdentifier(_ accessibilityIdentifier: String?)}
| |- note: calls to instance method 'setAccessibilityIdentifier' from outside of its actor context are implicitly asynchronous
| `- note: main actor isolation inferred from inheritance from class 'NSResponder'
4 |
[47/60] Compiling Fusion WaveTextRenderer.swift
/Users/admin/builder/spi-builder-workspace/Fusion/UI/Sources/Styling/TextStyle.swift:21:10: warning: main actor-isolated property 'stringValue' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
12 | // MARK: - Exposed Methods
13 |
14 | func render(on target: Any?) {
| `- note: add '@MainActor' to make instance method 'render(on:)' part of global actor 'MainActor'
15 | guard let view = target as? NSView else {
16 | return
:
19 | switch view {
20 | case let label as NSTextField:
21 | label.stringValue = self
| `- warning: main actor-isolated property 'stringValue' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
22 | case let button as NSButton:
23 | button.title = self
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSControl.h:36:28: note: mutation of this property is only permitted within the actor
34 |
35 | @property (nullable, copy) id /* id<NSCopying> */ objectValue;
36 | @property (copy) NSString *stringValue;
| `- note: mutation of this property is only permitted within the actor
37 | @property (copy) NSAttributedString *attributedStringValue;
38 | @property int intValue;
/Users/admin/builder/spi-builder-workspace/Fusion/UI/Sources/Styling/TextStyle.swift:23:11: warning: main actor-isolated property 'title' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
12 | // MARK: - Exposed Methods
13 |
14 | func render(on target: Any?) {
| `- note: add '@MainActor' to make instance method 'render(on:)' part of global actor 'MainActor'
15 | guard let view = target as? NSView else {
16 | return
:
21 | label.stringValue = self
22 | case let button as NSButton:
23 | button.title = self
| `- warning: main actor-isolated property 'title' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
24 | case let textView as NSTextView:
25 | textView.string = self
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSButton.h:75:28: note: mutation of this property is only permitted within the actor
73 |
74 | /*! The title displayed on the button when it’s in an off state, or an empty string if the button does not display a title. By default, a button's title is "Button". */
75 | @property (copy) NSString *title;
| `- note: mutation of this property is only permitted within the actor
76 |
77 | /*! The button's title, expressed as an attributed string. */
/Users/admin/builder/spi-builder-workspace/Fusion/UI/Sources/Styling/TextStyle.swift:25:13: warning: main actor-isolated property 'string' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
12 | // MARK: - Exposed Methods
13 |
14 | func render(on target: Any?) {
| `- note: add '@MainActor' to make instance method 'render(on:)' part of global actor 'MainActor'
15 | guard let view = target as? NSView else {
16 | return
:
23 | button.title = self
24 | case let textView as NSTextView:
25 | textView.string = self
| `- warning: main actor-isolated property 'string' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
26 | case let textField as NSTextField:
27 | textField.stringValue = self
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSText.h:69:28: note: mutation of this property is only permitted within the actor
67 | - (nullable instancetype)initWithCoder:(NSCoder *)coder NS_DESIGNATED_INITIALIZER;
68 |
69 | @property (copy) NSString *string;
| `- note: mutation of this property is only permitted within the actor
70 |
71 | - (void)replaceCharactersInRange:(NSRange)range withString:(NSString *)string;
/Users/admin/builder/spi-builder-workspace/Fusion/UI/Sources/Styling/TextStyle.swift:27:14: warning: main actor-isolated property 'stringValue' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
12 | // MARK: - Exposed Methods
13 |
14 | func render(on target: Any?) {
| `- note: add '@MainActor' to make instance method 'render(on:)' part of global actor 'MainActor'
15 | guard let view = target as? NSView else {
16 | return
:
25 | textView.string = self
26 | case let textField as NSTextField:
27 | textField.stringValue = self
| `- warning: main actor-isolated property 'stringValue' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
28 | default:
29 | break
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSControl.h:36:28: note: mutation of this property is only permitted within the actor
34 |
35 | @property (nullable, copy) id /* id<NSCopying> */ objectValue;
36 | @property (copy) NSString *stringValue;
| `- note: mutation of this property is only permitted within the actor
37 | @property (copy) NSAttributedString *attributedStringValue;
38 | @property int intValue;
/Users/admin/builder/spi-builder-workspace/Fusion/UI/Sources/Styling/TextStyle.swift:32:8: warning: call to main actor-isolated instance method 'setAccessibilityIdentifier' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
12 | // MARK: - Exposed Methods
13 |
14 | func render(on target: Any?) {
| `- note: add '@MainActor' to make instance method 'render(on:)' part of global actor 'MainActor'
15 | guard let view = target as? NSView else {
16 | return
:
30 | }
31 |
32 | view.setAccessibilityIdentifier(originalKey)
| `- warning: call to main actor-isolated instance method 'setAccessibilityIdentifier' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
33 | }
34 | }
AppKit.NSView.setAccessibilityIdentifier:3:24: note: calls to instance method 'setAccessibilityIdentifier' from outside of its actor context are implicitly asynchronous
1 | class NSView {
2 | @available(macOS 10.10, *)
3 | @MainActor open func setAccessibilityIdentifier(_ accessibilityIdentifier: String?)}
| |- note: calls to instance method 'setAccessibilityIdentifier' from outside of its actor context are implicitly asynchronous
| `- note: main actor isolation inferred from inheritance from class 'NSResponder'
4 |
/Users/admin/builder/spi-builder-workspace/Fusion/UI/Sources/Styling/TextStyle.swift:58:10: warning: main actor-isolated property 'attributedStringValue' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
49 | // MARK: - Exposed Methods
50 |
51 | func render(on target: Any?) {
| `- note: add '@MainActor' to make instance method 'render(on:)' part of global actor 'MainActor'
52 | guard let view = target as? NSView else {
53 | return
:
56 | switch view {
57 | case let label as NSTextField:
58 | label.attributedStringValue = self
| `- warning: main actor-isolated property 'attributedStringValue' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
59 | case let button as NSButton:
60 | button.attributedTitle = self
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSControl.h:37:38: note: mutation of this property is only permitted within the actor
35 | @property (nullable, copy) id /* id<NSCopying> */ objectValue;
36 | @property (copy) NSString *stringValue;
37 | @property (copy) NSAttributedString *attributedStringValue;
| `- note: mutation of this property is only permitted within the actor
38 | @property int intValue;
39 | @property NSInteger integerValue;
/Users/admin/builder/spi-builder-workspace/Fusion/UI/Sources/Styling/TextStyle.swift:60:11: warning: main actor-isolated property 'attributedTitle' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
49 | // MARK: - Exposed Methods
50 |
51 | func render(on target: Any?) {
| `- note: add '@MainActor' to make instance method 'render(on:)' part of global actor 'MainActor'
52 | guard let view = target as? NSView else {
53 | return
:
58 | label.attributedStringValue = self
59 | case let button as NSButton:
60 | button.attributedTitle = self
| `- warning: main actor-isolated property 'attributedTitle' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
61 | case let textView as NSTextView:
62 | textView.textStorage?.setAttributedString(self)
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSButton.h:78:38: note: mutation of this property is only permitted within the actor
76 |
77 | /*! The button's title, expressed as an attributed string. */
78 | @property (copy) NSAttributedString *attributedTitle;
| `- note: mutation of this property is only permitted within the actor
79 |
80 | /*! The title that the button displays when the button is in an on state, or an empty string if there is no such title. Note that some button types do not display an alternate title. */
/Users/admin/builder/spi-builder-workspace/Fusion/UI/Sources/Styling/TextStyle.swift:62:13: warning: main actor-isolated property 'textStorage' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
49 | // MARK: - Exposed Methods
50 |
51 | func render(on target: Any?) {
| `- note: add '@MainActor' to make instance method 'render(on:)' part of global actor 'MainActor'
52 | guard let view = target as? NSView else {
53 | return
:
60 | button.attributedTitle = self
61 | case let textView as NSTextView:
62 | textView.textStorage?.setAttributedString(self)
| `- warning: main actor-isolated property 'textStorage' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
63 | case let textField as NSTextField:
64 | textField.attributedStringValue = self
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSTextView.h:113:55: note: property declared here
111 | @property (nullable, readonly, assign) NSLayoutManager *layoutManager;
112 |
113 | @property (nullable, readonly, assign) NSTextStorage *textStorage;
| `- note: property declared here
114 |
115 | // The text views's text layout manager, if its text container is configured with one; null otherwise.
/Users/admin/builder/spi-builder-workspace/Fusion/UI/Sources/Styling/TextStyle.swift:64:14: warning: main actor-isolated property 'attributedStringValue' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
49 | // MARK: - Exposed Methods
50 |
51 | func render(on target: Any?) {
| `- note: add '@MainActor' to make instance method 'render(on:)' part of global actor 'MainActor'
52 | guard let view = target as? NSView else {
53 | return
:
62 | textView.textStorage?.setAttributedString(self)
63 | case let textField as NSTextField:
64 | textField.attributedStringValue = self
| `- warning: main actor-isolated property 'attributedStringValue' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
65 | default:
66 | break
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSControl.h:37:38: note: mutation of this property is only permitted within the actor
35 | @property (nullable, copy) id /* id<NSCopying> */ objectValue;
36 | @property (copy) NSString *stringValue;
37 | @property (copy) NSAttributedString *attributedStringValue;
| `- note: mutation of this property is only permitted within the actor
38 | @property int intValue;
39 | @property NSInteger integerValue;
/Users/admin/builder/spi-builder-workspace/Fusion/UI/Sources/Styling/TextStyle.swift:69:8: warning: call to main actor-isolated instance method 'setAccessibilityIdentifier' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
49 | // MARK: - Exposed Methods
50 |
51 | func render(on target: Any?) {
| `- note: add '@MainActor' to make instance method 'render(on:)' part of global actor 'MainActor'
52 | guard let view = target as? NSView else {
53 | return
:
67 | }
68 |
69 | view.setAccessibilityIdentifier(content.originalKey)
| `- warning: call to main actor-isolated instance method 'setAccessibilityIdentifier' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
70 | }
71 | }
AppKit.NSView.setAccessibilityIdentifier:3:24: note: calls to instance method 'setAccessibilityIdentifier' from outside of its actor context are implicitly asynchronous
1 | class NSView {
2 | @available(macOS 10.10, *)
3 | @MainActor open func setAccessibilityIdentifier(_ accessibilityIdentifier: String?)}
| |- note: calls to instance method 'setAccessibilityIdentifier' from outside of its actor context are implicitly asynchronous
| `- note: main actor isolation inferred from inheritance from class 'NSResponder'
4 |
[48/60] Compiling Fusion TextStyle.swift
/Users/admin/builder/spi-builder-workspace/Fusion/UI/Sources/Styling/TextStyle.swift:21:10: warning: main actor-isolated property 'stringValue' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
12 | // MARK: - Exposed Methods
13 |
14 | func render(on target: Any?) {
| `- note: add '@MainActor' to make instance method 'render(on:)' part of global actor 'MainActor'
15 | guard let view = target as? NSView else {
16 | return
:
19 | switch view {
20 | case let label as NSTextField:
21 | label.stringValue = self
| `- warning: main actor-isolated property 'stringValue' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
22 | case let button as NSButton:
23 | button.title = self
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSControl.h:36:28: note: mutation of this property is only permitted within the actor
34 |
35 | @property (nullable, copy) id /* id<NSCopying> */ objectValue;
36 | @property (copy) NSString *stringValue;
| `- note: mutation of this property is only permitted within the actor
37 | @property (copy) NSAttributedString *attributedStringValue;
38 | @property int intValue;
/Users/admin/builder/spi-builder-workspace/Fusion/UI/Sources/Styling/TextStyle.swift:23:11: warning: main actor-isolated property 'title' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
12 | // MARK: - Exposed Methods
13 |
14 | func render(on target: Any?) {
| `- note: add '@MainActor' to make instance method 'render(on:)' part of global actor 'MainActor'
15 | guard let view = target as? NSView else {
16 | return
:
21 | label.stringValue = self
22 | case let button as NSButton:
23 | button.title = self
| `- warning: main actor-isolated property 'title' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
24 | case let textView as NSTextView:
25 | textView.string = self
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSButton.h:75:28: note: mutation of this property is only permitted within the actor
73 |
74 | /*! The title displayed on the button when it’s in an off state, or an empty string if the button does not display a title. By default, a button's title is "Button". */
75 | @property (copy) NSString *title;
| `- note: mutation of this property is only permitted within the actor
76 |
77 | /*! The button's title, expressed as an attributed string. */
/Users/admin/builder/spi-builder-workspace/Fusion/UI/Sources/Styling/TextStyle.swift:25:13: warning: main actor-isolated property 'string' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
12 | // MARK: - Exposed Methods
13 |
14 | func render(on target: Any?) {
| `- note: add '@MainActor' to make instance method 'render(on:)' part of global actor 'MainActor'
15 | guard let view = target as? NSView else {
16 | return
:
23 | button.title = self
24 | case let textView as NSTextView:
25 | textView.string = self
| `- warning: main actor-isolated property 'string' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
26 | case let textField as NSTextField:
27 | textField.stringValue = self
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSText.h:69:28: note: mutation of this property is only permitted within the actor
67 | - (nullable instancetype)initWithCoder:(NSCoder *)coder NS_DESIGNATED_INITIALIZER;
68 |
69 | @property (copy) NSString *string;
| `- note: mutation of this property is only permitted within the actor
70 |
71 | - (void)replaceCharactersInRange:(NSRange)range withString:(NSString *)string;
/Users/admin/builder/spi-builder-workspace/Fusion/UI/Sources/Styling/TextStyle.swift:27:14: warning: main actor-isolated property 'stringValue' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
12 | // MARK: - Exposed Methods
13 |
14 | func render(on target: Any?) {
| `- note: add '@MainActor' to make instance method 'render(on:)' part of global actor 'MainActor'
15 | guard let view = target as? NSView else {
16 | return
:
25 | textView.string = self
26 | case let textField as NSTextField:
27 | textField.stringValue = self
| `- warning: main actor-isolated property 'stringValue' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
28 | default:
29 | break
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSControl.h:36:28: note: mutation of this property is only permitted within the actor
34 |
35 | @property (nullable, copy) id /* id<NSCopying> */ objectValue;
36 | @property (copy) NSString *stringValue;
| `- note: mutation of this property is only permitted within the actor
37 | @property (copy) NSAttributedString *attributedStringValue;
38 | @property int intValue;
/Users/admin/builder/spi-builder-workspace/Fusion/UI/Sources/Styling/TextStyle.swift:32:8: warning: call to main actor-isolated instance method 'setAccessibilityIdentifier' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
12 | // MARK: - Exposed Methods
13 |
14 | func render(on target: Any?) {
| `- note: add '@MainActor' to make instance method 'render(on:)' part of global actor 'MainActor'
15 | guard let view = target as? NSView else {
16 | return
:
30 | }
31 |
32 | view.setAccessibilityIdentifier(originalKey)
| `- warning: call to main actor-isolated instance method 'setAccessibilityIdentifier' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
33 | }
34 | }
AppKit.NSView.setAccessibilityIdentifier:3:24: note: calls to instance method 'setAccessibilityIdentifier' from outside of its actor context are implicitly asynchronous
1 | class NSView {
2 | @available(macOS 10.10, *)
3 | @MainActor open func setAccessibilityIdentifier(_ accessibilityIdentifier: String?)}
| |- note: calls to instance method 'setAccessibilityIdentifier' from outside of its actor context are implicitly asynchronous
| `- note: main actor isolation inferred from inheritance from class 'NSResponder'
4 |
/Users/admin/builder/spi-builder-workspace/Fusion/UI/Sources/Styling/TextStyle.swift:58:10: warning: main actor-isolated property 'attributedStringValue' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
49 | // MARK: - Exposed Methods
50 |
51 | func render(on target: Any?) {
| `- note: add '@MainActor' to make instance method 'render(on:)' part of global actor 'MainActor'
52 | guard let view = target as? NSView else {
53 | return
:
56 | switch view {
57 | case let label as NSTextField:
58 | label.attributedStringValue = self
| `- warning: main actor-isolated property 'attributedStringValue' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
59 | case let button as NSButton:
60 | button.attributedTitle = self
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSControl.h:37:38: note: mutation of this property is only permitted within the actor
35 | @property (nullable, copy) id /* id<NSCopying> */ objectValue;
36 | @property (copy) NSString *stringValue;
37 | @property (copy) NSAttributedString *attributedStringValue;
| `- note: mutation of this property is only permitted within the actor
38 | @property int intValue;
39 | @property NSInteger integerValue;
/Users/admin/builder/spi-builder-workspace/Fusion/UI/Sources/Styling/TextStyle.swift:60:11: warning: main actor-isolated property 'attributedTitle' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
49 | // MARK: - Exposed Methods
50 |
51 | func render(on target: Any?) {
| `- note: add '@MainActor' to make instance method 'render(on:)' part of global actor 'MainActor'
52 | guard let view = target as? NSView else {
53 | return
:
58 | label.attributedStringValue = self
59 | case let button as NSButton:
60 | button.attributedTitle = self
| `- warning: main actor-isolated property 'attributedTitle' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
61 | case let textView as NSTextView:
62 | textView.textStorage?.setAttributedString(self)
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSButton.h:78:38: note: mutation of this property is only permitted within the actor
76 |
77 | /*! The button's title, expressed as an attributed string. */
78 | @property (copy) NSAttributedString *attributedTitle;
| `- note: mutation of this property is only permitted within the actor
79 |
80 | /*! The title that the button displays when the button is in an on state, or an empty string if there is no such title. Note that some button types do not display an alternate title. */
/Users/admin/builder/spi-builder-workspace/Fusion/UI/Sources/Styling/TextStyle.swift:62:13: warning: main actor-isolated property 'textStorage' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
49 | // MARK: - Exposed Methods
50 |
51 | func render(on target: Any?) {
| `- note: add '@MainActor' to make instance method 'render(on:)' part of global actor 'MainActor'
52 | guard let view = target as? NSView else {
53 | return
:
60 | button.attributedTitle = self
61 | case let textView as NSTextView:
62 | textView.textStorage?.setAttributedString(self)
| `- warning: main actor-isolated property 'textStorage' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
63 | case let textField as NSTextField:
64 | textField.attributedStringValue = self
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSTextView.h:113:55: note: property declared here
111 | @property (nullable, readonly, assign) NSLayoutManager *layoutManager;
112 |
113 | @property (nullable, readonly, assign) NSTextStorage *textStorage;
| `- note: property declared here
114 |
115 | // The text views's text layout manager, if its text container is configured with one; null otherwise.
/Users/admin/builder/spi-builder-workspace/Fusion/UI/Sources/Styling/TextStyle.swift:64:14: warning: main actor-isolated property 'attributedStringValue' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
49 | // MARK: - Exposed Methods
50 |
51 | func render(on target: Any?) {
| `- note: add '@MainActor' to make instance method 'render(on:)' part of global actor 'MainActor'
52 | guard let view = target as? NSView else {
53 | return
:
62 | textView.textStorage?.setAttributedString(self)
63 | case let textField as NSTextField:
64 | textField.attributedStringValue = self
| `- warning: main actor-isolated property 'attributedStringValue' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
65 | default:
66 | break
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSControl.h:37:38: note: mutation of this property is only permitted within the actor
35 | @property (nullable, copy) id /* id<NSCopying> */ objectValue;
36 | @property (copy) NSString *stringValue;
37 | @property (copy) NSAttributedString *attributedStringValue;
| `- note: mutation of this property is only permitted within the actor
38 | @property int intValue;
39 | @property NSInteger integerValue;
/Users/admin/builder/spi-builder-workspace/Fusion/UI/Sources/Styling/TextStyle.swift:69:8: warning: call to main actor-isolated instance method 'setAccessibilityIdentifier' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
49 | // MARK: - Exposed Methods
50 |
51 | func render(on target: Any?) {
| `- note: add '@MainActor' to make instance method 'render(on:)' part of global actor 'MainActor'
52 | guard let view = target as? NSView else {
53 | return
:
67 | }
68 |
69 | view.setAccessibilityIdentifier(content.originalKey)
| `- warning: call to main actor-isolated instance method 'setAccessibilityIdentifier' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
70 | }
71 | }
AppKit.NSView.setAccessibilityIdentifier:3:24: note: calls to instance method 'setAccessibilityIdentifier' from outside of its actor context are implicitly asynchronous
1 | class NSView {
2 | @available(macOS 10.10, *)
3 | @MainActor open func setAccessibilityIdentifier(_ accessibilityIdentifier: String?)}
| |- note: calls to instance method 'setAccessibilityIdentifier' from outside of its actor context are implicitly asynchronous
| `- note: main actor isolation inferred from inheritance from class 'NSResponder'
4 |
[49/60] Compiling Fusion UIViewStyle.swift
/Users/admin/builder/spi-builder-workspace/Fusion/UI/Sources/Styling/TextStyle.swift:21:10: warning: main actor-isolated property 'stringValue' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
12 | // MARK: - Exposed Methods
13 |
14 | func render(on target: Any?) {
| `- note: add '@MainActor' to make instance method 'render(on:)' part of global actor 'MainActor'
15 | guard let view = target as? NSView else {
16 | return
:
19 | switch view {
20 | case let label as NSTextField:
21 | label.stringValue = self
| `- warning: main actor-isolated property 'stringValue' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
22 | case let button as NSButton:
23 | button.title = self
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSControl.h:36:28: note: mutation of this property is only permitted within the actor
34 |
35 | @property (nullable, copy) id /* id<NSCopying> */ objectValue;
36 | @property (copy) NSString *stringValue;
| `- note: mutation of this property is only permitted within the actor
37 | @property (copy) NSAttributedString *attributedStringValue;
38 | @property int intValue;
/Users/admin/builder/spi-builder-workspace/Fusion/UI/Sources/Styling/TextStyle.swift:23:11: warning: main actor-isolated property 'title' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
12 | // MARK: - Exposed Methods
13 |
14 | func render(on target: Any?) {
| `- note: add '@MainActor' to make instance method 'render(on:)' part of global actor 'MainActor'
15 | guard let view = target as? NSView else {
16 | return
:
21 | label.stringValue = self
22 | case let button as NSButton:
23 | button.title = self
| `- warning: main actor-isolated property 'title' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
24 | case let textView as NSTextView:
25 | textView.string = self
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSButton.h:75:28: note: mutation of this property is only permitted within the actor
73 |
74 | /*! The title displayed on the button when it’s in an off state, or an empty string if the button does not display a title. By default, a button's title is "Button". */
75 | @property (copy) NSString *title;
| `- note: mutation of this property is only permitted within the actor
76 |
77 | /*! The button's title, expressed as an attributed string. */
/Users/admin/builder/spi-builder-workspace/Fusion/UI/Sources/Styling/TextStyle.swift:25:13: warning: main actor-isolated property 'string' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
12 | // MARK: - Exposed Methods
13 |
14 | func render(on target: Any?) {
| `- note: add '@MainActor' to make instance method 'render(on:)' part of global actor 'MainActor'
15 | guard let view = target as? NSView else {
16 | return
:
23 | button.title = self
24 | case let textView as NSTextView:
25 | textView.string = self
| `- warning: main actor-isolated property 'string' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
26 | case let textField as NSTextField:
27 | textField.stringValue = self
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSText.h:69:28: note: mutation of this property is only permitted within the actor
67 | - (nullable instancetype)initWithCoder:(NSCoder *)coder NS_DESIGNATED_INITIALIZER;
68 |
69 | @property (copy) NSString *string;
| `- note: mutation of this property is only permitted within the actor
70 |
71 | - (void)replaceCharactersInRange:(NSRange)range withString:(NSString *)string;
/Users/admin/builder/spi-builder-workspace/Fusion/UI/Sources/Styling/TextStyle.swift:27:14: warning: main actor-isolated property 'stringValue' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
12 | // MARK: - Exposed Methods
13 |
14 | func render(on target: Any?) {
| `- note: add '@MainActor' to make instance method 'render(on:)' part of global actor 'MainActor'
15 | guard let view = target as? NSView else {
16 | return
:
25 | textView.string = self
26 | case let textField as NSTextField:
27 | textField.stringValue = self
| `- warning: main actor-isolated property 'stringValue' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
28 | default:
29 | break
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSControl.h:36:28: note: mutation of this property is only permitted within the actor
34 |
35 | @property (nullable, copy) id /* id<NSCopying> */ objectValue;
36 | @property (copy) NSString *stringValue;
| `- note: mutation of this property is only permitted within the actor
37 | @property (copy) NSAttributedString *attributedStringValue;
38 | @property int intValue;
/Users/admin/builder/spi-builder-workspace/Fusion/UI/Sources/Styling/TextStyle.swift:32:8: warning: call to main actor-isolated instance method 'setAccessibilityIdentifier' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
12 | // MARK: - Exposed Methods
13 |
14 | func render(on target: Any?) {
| `- note: add '@MainActor' to make instance method 'render(on:)' part of global actor 'MainActor'
15 | guard let view = target as? NSView else {
16 | return
:
30 | }
31 |
32 | view.setAccessibilityIdentifier(originalKey)
| `- warning: call to main actor-isolated instance method 'setAccessibilityIdentifier' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
33 | }
34 | }
AppKit.NSView.setAccessibilityIdentifier:3:24: note: calls to instance method 'setAccessibilityIdentifier' from outside of its actor context are implicitly asynchronous
1 | class NSView {
2 | @available(macOS 10.10, *)
3 | @MainActor open func setAccessibilityIdentifier(_ accessibilityIdentifier: String?)}
| |- note: calls to instance method 'setAccessibilityIdentifier' from outside of its actor context are implicitly asynchronous
| `- note: main actor isolation inferred from inheritance from class 'NSResponder'
4 |
/Users/admin/builder/spi-builder-workspace/Fusion/UI/Sources/Styling/TextStyle.swift:58:10: warning: main actor-isolated property 'attributedStringValue' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
49 | // MARK: - Exposed Methods
50 |
51 | func render(on target: Any?) {
| `- note: add '@MainActor' to make instance method 'render(on:)' part of global actor 'MainActor'
52 | guard let view = target as? NSView else {
53 | return
:
56 | switch view {
57 | case let label as NSTextField:
58 | label.attributedStringValue = self
| `- warning: main actor-isolated property 'attributedStringValue' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
59 | case let button as NSButton:
60 | button.attributedTitle = self
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSControl.h:37:38: note: mutation of this property is only permitted within the actor
35 | @property (nullable, copy) id /* id<NSCopying> */ objectValue;
36 | @property (copy) NSString *stringValue;
37 | @property (copy) NSAttributedString *attributedStringValue;
| `- note: mutation of this property is only permitted within the actor
38 | @property int intValue;
39 | @property NSInteger integerValue;
/Users/admin/builder/spi-builder-workspace/Fusion/UI/Sources/Styling/TextStyle.swift:60:11: warning: main actor-isolated property 'attributedTitle' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
49 | // MARK: - Exposed Methods
50 |
51 | func render(on target: Any?) {
| `- note: add '@MainActor' to make instance method 'render(on:)' part of global actor 'MainActor'
52 | guard let view = target as? NSView else {
53 | return
:
58 | label.attributedStringValue = self
59 | case let button as NSButton:
60 | button.attributedTitle = self
| `- warning: main actor-isolated property 'attributedTitle' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
61 | case let textView as NSTextView:
62 | textView.textStorage?.setAttributedString(self)
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSButton.h:78:38: note: mutation of this property is only permitted within the actor
76 |
77 | /*! The button's title, expressed as an attributed string. */
78 | @property (copy) NSAttributedString *attributedTitle;
| `- note: mutation of this property is only permitted within the actor
79 |
80 | /*! The title that the button displays when the button is in an on state, or an empty string if there is no such title. Note that some button types do not display an alternate title. */
/Users/admin/builder/spi-builder-workspace/Fusion/UI/Sources/Styling/TextStyle.swift:62:13: warning: main actor-isolated property 'textStorage' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
49 | // MARK: - Exposed Methods
50 |
51 | func render(on target: Any?) {
| `- note: add '@MainActor' to make instance method 'render(on:)' part of global actor 'MainActor'
52 | guard let view = target as? NSView else {
53 | return
:
60 | button.attributedTitle = self
61 | case let textView as NSTextView:
62 | textView.textStorage?.setAttributedString(self)
| `- warning: main actor-isolated property 'textStorage' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
63 | case let textField as NSTextField:
64 | textField.attributedStringValue = self
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSTextView.h:113:55: note: property declared here
111 | @property (nullable, readonly, assign) NSLayoutManager *layoutManager;
112 |
113 | @property (nullable, readonly, assign) NSTextStorage *textStorage;
| `- note: property declared here
114 |
115 | // The text views's text layout manager, if its text container is configured with one; null otherwise.
/Users/admin/builder/spi-builder-workspace/Fusion/UI/Sources/Styling/TextStyle.swift:64:14: warning: main actor-isolated property 'attributedStringValue' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
49 | // MARK: - Exposed Methods
50 |
51 | func render(on target: Any?) {
| `- note: add '@MainActor' to make instance method 'render(on:)' part of global actor 'MainActor'
52 | guard let view = target as? NSView else {
53 | return
:
62 | textView.textStorage?.setAttributedString(self)
63 | case let textField as NSTextField:
64 | textField.attributedStringValue = self
| `- warning: main actor-isolated property 'attributedStringValue' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
65 | default:
66 | break
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSControl.h:37:38: note: mutation of this property is only permitted within the actor
35 | @property (nullable, copy) id /* id<NSCopying> */ objectValue;
36 | @property (copy) NSString *stringValue;
37 | @property (copy) NSAttributedString *attributedStringValue;
| `- note: mutation of this property is only permitted within the actor
38 | @property int intValue;
39 | @property NSInteger integerValue;
/Users/admin/builder/spi-builder-workspace/Fusion/UI/Sources/Styling/TextStyle.swift:69:8: warning: call to main actor-isolated instance method 'setAccessibilityIdentifier' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
49 | // MARK: - Exposed Methods
50 |
51 | func render(on target: Any?) {
| `- note: add '@MainActor' to make instance method 'render(on:)' part of global actor 'MainActor'
52 | guard let view = target as? NSView else {
53 | return
:
67 | }
68 |
69 | view.setAccessibilityIdentifier(content.originalKey)
| `- warning: call to main actor-isolated instance method 'setAccessibilityIdentifier' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
70 | }
71 | }
AppKit.NSView.setAccessibilityIdentifier:3:24: note: calls to instance method 'setAccessibilityIdentifier' from outside of its actor context are implicitly asynchronous
1 | class NSView {
2 | @available(macOS 10.10, *)
3 | @MainActor open func setAccessibilityIdentifier(_ accessibilityIdentifier: String?)}
| |- note: calls to instance method 'setAccessibilityIdentifier' from outside of its actor context are implicitly asynchronous
| `- note: main actor isolation inferred from inheritance from class 'NSResponder'
4 |
[50/60] Compiling Fusion resource_bundle_accessor.swift
/Users/admin/builder/spi-builder-workspace/Fusion/UI/Sources/Styling/TextStyle.swift:21:10: warning: main actor-isolated property 'stringValue' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
12 | // MARK: - Exposed Methods
13 |
14 | func render(on target: Any?) {
| `- note: add '@MainActor' to make instance method 'render(on:)' part of global actor 'MainActor'
15 | guard let view = target as? NSView else {
16 | return
:
19 | switch view {
20 | case let label as NSTextField:
21 | label.stringValue = self
| `- warning: main actor-isolated property 'stringValue' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
22 | case let button as NSButton:
23 | button.title = self
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSControl.h:36:28: note: mutation of this property is only permitted within the actor
34 |
35 | @property (nullable, copy) id /* id<NSCopying> */ objectValue;
36 | @property (copy) NSString *stringValue;
| `- note: mutation of this property is only permitted within the actor
37 | @property (copy) NSAttributedString *attributedStringValue;
38 | @property int intValue;
/Users/admin/builder/spi-builder-workspace/Fusion/UI/Sources/Styling/TextStyle.swift:23:11: warning: main actor-isolated property 'title' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
12 | // MARK: - Exposed Methods
13 |
14 | func render(on target: Any?) {
| `- note: add '@MainActor' to make instance method 'render(on:)' part of global actor 'MainActor'
15 | guard let view = target as? NSView else {
16 | return
:
21 | label.stringValue = self
22 | case let button as NSButton:
23 | button.title = self
| `- warning: main actor-isolated property 'title' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
24 | case let textView as NSTextView:
25 | textView.string = self
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSButton.h:75:28: note: mutation of this property is only permitted within the actor
73 |
74 | /*! The title displayed on the button when it’s in an off state, or an empty string if the button does not display a title. By default, a button's title is "Button". */
75 | @property (copy) NSString *title;
| `- note: mutation of this property is only permitted within the actor
76 |
77 | /*! The button's title, expressed as an attributed string. */
/Users/admin/builder/spi-builder-workspace/Fusion/UI/Sources/Styling/TextStyle.swift:25:13: warning: main actor-isolated property 'string' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
12 | // MARK: - Exposed Methods
13 |
14 | func render(on target: Any?) {
| `- note: add '@MainActor' to make instance method 'render(on:)' part of global actor 'MainActor'
15 | guard let view = target as? NSView else {
16 | return
:
23 | button.title = self
24 | case let textView as NSTextView:
25 | textView.string = self
| `- warning: main actor-isolated property 'string' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
26 | case let textField as NSTextField:
27 | textField.stringValue = self
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSText.h:69:28: note: mutation of this property is only permitted within the actor
67 | - (nullable instancetype)initWithCoder:(NSCoder *)coder NS_DESIGNATED_INITIALIZER;
68 |
69 | @property (copy) NSString *string;
| `- note: mutation of this property is only permitted within the actor
70 |
71 | - (void)replaceCharactersInRange:(NSRange)range withString:(NSString *)string;
/Users/admin/builder/spi-builder-workspace/Fusion/UI/Sources/Styling/TextStyle.swift:27:14: warning: main actor-isolated property 'stringValue' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
12 | // MARK: - Exposed Methods
13 |
14 | func render(on target: Any?) {
| `- note: add '@MainActor' to make instance method 'render(on:)' part of global actor 'MainActor'
15 | guard let view = target as? NSView else {
16 | return
:
25 | textView.string = self
26 | case let textField as NSTextField:
27 | textField.stringValue = self
| `- warning: main actor-isolated property 'stringValue' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
28 | default:
29 | break
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSControl.h:36:28: note: mutation of this property is only permitted within the actor
34 |
35 | @property (nullable, copy) id /* id<NSCopying> */ objectValue;
36 | @property (copy) NSString *stringValue;
| `- note: mutation of this property is only permitted within the actor
37 | @property (copy) NSAttributedString *attributedStringValue;
38 | @property int intValue;
/Users/admin/builder/spi-builder-workspace/Fusion/UI/Sources/Styling/TextStyle.swift:32:8: warning: call to main actor-isolated instance method 'setAccessibilityIdentifier' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
12 | // MARK: - Exposed Methods
13 |
14 | func render(on target: Any?) {
| `- note: add '@MainActor' to make instance method 'render(on:)' part of global actor 'MainActor'
15 | guard let view = target as? NSView else {
16 | return
:
30 | }
31 |
32 | view.setAccessibilityIdentifier(originalKey)
| `- warning: call to main actor-isolated instance method 'setAccessibilityIdentifier' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
33 | }
34 | }
AppKit.NSView.setAccessibilityIdentifier:3:24: note: calls to instance method 'setAccessibilityIdentifier' from outside of its actor context are implicitly asynchronous
1 | class NSView {
2 | @available(macOS 10.10, *)
3 | @MainActor open func setAccessibilityIdentifier(_ accessibilityIdentifier: String?)}
| |- note: calls to instance method 'setAccessibilityIdentifier' from outside of its actor context are implicitly asynchronous
| `- note: main actor isolation inferred from inheritance from class 'NSResponder'
4 |
/Users/admin/builder/spi-builder-workspace/Fusion/UI/Sources/Styling/TextStyle.swift:58:10: warning: main actor-isolated property 'attributedStringValue' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
49 | // MARK: - Exposed Methods
50 |
51 | func render(on target: Any?) {
| `- note: add '@MainActor' to make instance method 'render(on:)' part of global actor 'MainActor'
52 | guard let view = target as? NSView else {
53 | return
:
56 | switch view {
57 | case let label as NSTextField:
58 | label.attributedStringValue = self
| `- warning: main actor-isolated property 'attributedStringValue' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
59 | case let button as NSButton:
60 | button.attributedTitle = self
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSControl.h:37:38: note: mutation of this property is only permitted within the actor
35 | @property (nullable, copy) id /* id<NSCopying> */ objectValue;
36 | @property (copy) NSString *stringValue;
37 | @property (copy) NSAttributedString *attributedStringValue;
| `- note: mutation of this property is only permitted within the actor
38 | @property int intValue;
39 | @property NSInteger integerValue;
/Users/admin/builder/spi-builder-workspace/Fusion/UI/Sources/Styling/TextStyle.swift:60:11: warning: main actor-isolated property 'attributedTitle' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
49 | // MARK: - Exposed Methods
50 |
51 | func render(on target: Any?) {
| `- note: add '@MainActor' to make instance method 'render(on:)' part of global actor 'MainActor'
52 | guard let view = target as? NSView else {
53 | return
:
58 | label.attributedStringValue = self
59 | case let button as NSButton:
60 | button.attributedTitle = self
| `- warning: main actor-isolated property 'attributedTitle' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
61 | case let textView as NSTextView:
62 | textView.textStorage?.setAttributedString(self)
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSButton.h:78:38: note: mutation of this property is only permitted within the actor
76 |
77 | /*! The button's title, expressed as an attributed string. */
78 | @property (copy) NSAttributedString *attributedTitle;
| `- note: mutation of this property is only permitted within the actor
79 |
80 | /*! The title that the button displays when the button is in an on state, or an empty string if there is no such title. Note that some button types do not display an alternate title. */
/Users/admin/builder/spi-builder-workspace/Fusion/UI/Sources/Styling/TextStyle.swift:62:13: warning: main actor-isolated property 'textStorage' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
49 | // MARK: - Exposed Methods
50 |
51 | func render(on target: Any?) {
| `- note: add '@MainActor' to make instance method 'render(on:)' part of global actor 'MainActor'
52 | guard let view = target as? NSView else {
53 | return
:
60 | button.attributedTitle = self
61 | case let textView as NSTextView:
62 | textView.textStorage?.setAttributedString(self)
| `- warning: main actor-isolated property 'textStorage' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
63 | case let textField as NSTextField:
64 | textField.attributedStringValue = self
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSTextView.h:113:55: note: property declared here
111 | @property (nullable, readonly, assign) NSLayoutManager *layoutManager;
112 |
113 | @property (nullable, readonly, assign) NSTextStorage *textStorage;
| `- note: property declared here
114 |
115 | // The text views's text layout manager, if its text container is configured with one; null otherwise.
/Users/admin/builder/spi-builder-workspace/Fusion/UI/Sources/Styling/TextStyle.swift:64:14: warning: main actor-isolated property 'attributedStringValue' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
49 | // MARK: - Exposed Methods
50 |
51 | func render(on target: Any?) {
| `- note: add '@MainActor' to make instance method 'render(on:)' part of global actor 'MainActor'
52 | guard let view = target as? NSView else {
53 | return
:
62 | textView.textStorage?.setAttributedString(self)
63 | case let textField as NSTextField:
64 | textField.attributedStringValue = self
| `- warning: main actor-isolated property 'attributedStringValue' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
65 | default:
66 | break
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSControl.h:37:38: note: mutation of this property is only permitted within the actor
35 | @property (nullable, copy) id /* id<NSCopying> */ objectValue;
36 | @property (copy) NSString *stringValue;
37 | @property (copy) NSAttributedString *attributedStringValue;
| `- note: mutation of this property is only permitted within the actor
38 | @property int intValue;
39 | @property NSInteger integerValue;
/Users/admin/builder/spi-builder-workspace/Fusion/UI/Sources/Styling/TextStyle.swift:69:8: warning: call to main actor-isolated instance method 'setAccessibilityIdentifier' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
49 | // MARK: - Exposed Methods
50 |
51 | func render(on target: Any?) {
| `- note: add '@MainActor' to make instance method 'render(on:)' part of global actor 'MainActor'
52 | guard let view = target as? NSView else {
53 | return
:
67 | }
68 |
69 | view.setAccessibilityIdentifier(content.originalKey)
| `- warning: call to main actor-isolated instance method 'setAccessibilityIdentifier' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
70 | }
71 | }
AppKit.NSView.setAccessibilityIdentifier:3:24: note: calls to instance method 'setAccessibilityIdentifier' from outside of its actor context are implicitly asynchronous
1 | class NSView {
2 | @available(macOS 10.10, *)
3 | @MainActor open func setAccessibilityIdentifier(_ accessibilityIdentifier: String?)}
| |- note: calls to instance method 'setAccessibilityIdentifier' from outside of its actor context are implicitly asynchronous
| `- note: main actor isolation inferred from inheritance from class 'NSResponder'
4 |
[51/60] Compiling Fusion ViewHierarchy.swift
[52/60] Compiling Fusion AnimatedImageView.swift
[53/60] Compiling Fusion Colors.swift
[54/60] Compiling Fusion Fonts.swift
[55/60] Compiling Fusion GeometricalShapes.swift
[56/60] Compiling Fusion SwiftUIModifiers.swift
[57/60] Compiling Fusion SwiftUIStyle.swift
[58/60] Compiling Fusion OdometerText.swift
[59/60] Compiling Fusion TextAnimationSegments.swift
[60/60] Compiling Fusion TextAnimationStyle.swift
Build complete! (14.26s)
Fetching https://github.com/db-in/LocalServer.git
[1/976] Fetching localserver
Fetched https://github.com/db-in/LocalServer.git from cache (1.43s)
Computing version for https://github.com/db-in/LocalServer.git
Computed https://github.com/db-in/LocalServer.git at 2.1.9 (5.03s)
Creating working copy for https://github.com/db-in/LocalServer.git
Working copy of https://github.com/db-in/LocalServer.git resolved at 2.1.9
warning: 'spi-builder-workspace': found 38 file(s) which are unhandled; explicitly declare them as resources or exclude from the target
/Users/admin/builder/spi-builder-workspace/Fusion/Tests/CorePerformanceTests.swift
/Users/admin/builder/spi-builder-workspace/Fusion/Tests/PresentationCacheTests.swift
/Users/admin/builder/spi-builder-workspace/Fusion/Tests/AsyncOperationTests.swift
/Users/admin/builder/spi-builder-workspace/Fusion/Tests/EncryptionTests.swift
/Users/admin/builder/spi-builder-workspace/Fusion/Tests/NumberFormatterCacheTests.swift
/Users/admin/builder/spi-builder-workspace/Fusion/Tests/RESTAuthenticatorTests.swift
/Users/admin/builder/spi-builder-workspace/Fusion/Tests/ImagePipelinePerformanceTests.swift
/Users/admin/builder/spi-builder-workspace/Fusion/Tests/ServerMock.swift
/Users/admin/builder/spi-builder-workspace/Fusion/Fusion.swift
/Users/admin/builder/spi-builder-workspace/Fusion/Tests/LocalizationCacheTests.swift
/Users/admin/builder/spi-builder-workspace/Fusion/Tests/TimerTests.swift
/Users/admin/builder/spi-builder-workspace/Fusion/Tests/HashableIdentityTests.swift
/Users/admin/builder/spi-builder-workspace/Fusion/Tests/MathTests.swift
/Users/admin/builder/spi-builder-workspace/Fusion/Tests/TextAnimationTests.swift
/Users/admin/builder/spi-builder-workspace/Fusion/Tests/ImagePipelineTests.swift
/Users/admin/builder/spi-builder-workspace/Fusion/Tests/LocalNotificationTests.swift
/Users/admin/builder/spi-builder-workspace/Fusion/Tests/StoregeableTests.swift
/Users/admin/builder/spi-builder-workspace/Fusion/Tests/JSONTests.swift
/Users/admin/builder/spi-builder-workspace/Fusion/Tests/TextFunctionsTests.swift
/Users/admin/builder/spi-builder-workspace/Fusion/Tests/HotPathPerformanceTests.swift
/Users/admin/builder/spi-builder-workspace/Fusion/Tests/TweenTests.swift
/Users/admin/builder/spi-builder-workspace/Fusion/Tests/CountryInfoTests.swift
/Users/admin/builder/spi-builder-workspace/Fusion/Tests/LocalizationTests.swift
/Users/admin/builder/spi-builder-workspace/Fusion/Tests/KeychainTests.swift
/Users/admin/builder/spi-builder-workspace/Fusion/Tests/FusionTestCase.swift
/Users/admin/builder/spi-builder-workspace/Fusion/Tests/LoggerTests.swift
/Users/admin/builder/spi-builder-workspace/Fusion/Tests/StoragePerformanceTests.swift
/Users/admin/builder/spi-builder-workspace/Fusion/Tests/DataBindableAsyncTests.swift
/Users/admin/builder/spi-builder-workspace/Fusion/Tests/DateFormattingTests.swift
/Users/admin/builder/spi-builder-workspace/Fusion/Tests/HTTPCookieTests.swift
/Users/admin/builder/spi-builder-workspace/Fusion/Tests/FusionSuite.swift
/Users/admin/builder/spi-builder-workspace/Fusion/Tests/JSON/Person.json
/Users/admin/builder/spi-builder-workspace/Fusion/Tests/PerformanceTestCase.swift
/Users/admin/builder/spi-builder-workspace/Fusion/Tests/UIPerformanceTests.swift
/Users/admin/builder/spi-builder-workspace/Fusion/Tests/JSON/Response.json
/Users/admin/builder/spi-builder-workspace/Fusion/Tests/InMemoryCacheTests.swift
/Users/admin/builder/spi-builder-workspace/Fusion/Tests/NetworkingTests.swift
/Users/admin/builder/spi-builder-workspace/Fusion/Tests/StoragePersistenceTests.swift
Build complete.
{
"dependencies" : [
{
"identity" : "localserver",
"requirement" : {
"range" : [
{
"lower_bound" : "2.1.7",
"upper_bound" : "3.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/db-in/LocalServer.git"
}
],
"manifest_display_name" : "Fusion",
"name" : "Fusion",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
{
"name" : "macos",
"version" : "14.0"
},
{
"name" : "ios",
"version" : "17.0"
},
{
"name" : "tvos",
"version" : "17.0"
},
{
"name" : "watchos",
"version" : "10.0"
}
],
"products" : [
{
"name" : "Fusion",
"targets" : [
"Fusion"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"swift_languages_versions" : [
"5"
],
"targets" : [
{
"c99name" : "FusionTests",
"module_type" : "SwiftTarget",
"name" : "FusionTests",
"path" : "Fusion/Tests",
"product_dependencies" : [
"LocalServer"
],
"resources" : [
{
"path" : "/Users/admin/builder/spi-builder-workspace/Fusion/Tests/JSON/Person.json",
"rule" : {
"process" : {
}
}
},
{
"path" : "/Users/admin/builder/spi-builder-workspace/Fusion/Tests/JSON/Response.json",
"rule" : {
"process" : {
}
}
}
],
"sources" : [
"AsyncOperationTests.swift",
"CorePerformanceTests.swift",
"CountryInfoTests.swift",
"DataBindableAsyncTests.swift",
"DateFormattingTests.swift",
"EncryptionTests.swift",
"FusionSuite.swift",
"FusionTestCase.swift",
"HTTPCookieTests.swift",
"HashableIdentityTests.swift",
"HotPathPerformanceTests.swift",
"ImagePipelinePerformanceTests.swift",
"ImagePipelineTests.swift",
"InMemoryCacheTests.swift",
"JSONTests.swift",
"KeychainTests.swift",
"LocalNotificationTests.swift",
"LocalizationCacheTests.swift",
"LocalizationTests.swift",
"LoggerTests.swift",
"MathTests.swift",
"NetworkingTests.swift",
"NumberFormatterCacheTests.swift",
"PerformanceTestCase.swift",
"PresentationCacheTests.swift",
"RESTAuthenticatorTests.swift",
"ServerMock.swift",
"StoragePerformanceTests.swift",
"StoragePersistenceTests.swift",
"StoregeableTests.swift",
"TextAnimationTests.swift",
"TextFunctionsTests.swift",
"TimerTests.swift",
"TweenTests.swift",
"UIPerformanceTests.swift"
],
"target_dependencies" : [
"Fusion"
],
"type" : "test"
},
{
"c99name" : "Fusion",
"module_type" : "SwiftTarget",
"name" : "Fusion",
"path" : "Fusion",
"product_memberships" : [
"Fusion"
],
"resources" : [
{
"path" : "/Users/admin/builder/spi-builder-workspace/Fusion/PrivacyInfo.xcprivacy",
"rule" : {
"process" : {
}
}
}
],
"sources" : [
"Core/Sources/Controls/AsyncOperation.swift",
"Core/Sources/Controls/Constants.swift",
"Core/Sources/Controls/CountryInfo.swift",
"Core/Sources/Controls/Dates.swift",
"Core/Sources/Controls/Localization.swift",
"Core/Sources/Controls/Math.swift",
"Core/Sources/Controls/TextFunctions.swift",
"Core/Sources/Controls/TimerControl.swift",
"Core/Sources/Controls/Trigonometry.swift",
"Core/Sources/Networking/Encryption.swift",
"Core/Sources/Networking/HTTPCookieHelper.swift",
"Core/Sources/Networking/Logger.swift",
"Core/Sources/Networking/RESTAuthenticator.swift",
"Core/Sources/Networking/RESTBuilder.swift",
"Core/Sources/Networking/RESTRequest.swift",
"Core/Sources/Storage/AnyCodable.swift",
"Core/Sources/Storage/CollectionFunctions.swift",
"Core/Sources/Storage/DataBindable.swift",
"Core/Sources/Storage/DataManageable.swift",
"Core/Sources/Storage/DataStorageable.swift",
"Core/Sources/Storage/InMemoryCache.swift",
"Core/Sources/Storage/JSONFunctions.swift",
"Core/Sources/Storage/Keychain.swift",
"Core/Sources/Storage/LocalNotification.swift",
"Core/Sources/Storage/StoragePersistence.swift",
"Core/Sources/Storage/ThreadSafe.swift",
"UI/Sources/Animation/DisplayLinkDriver.swift",
"UI/Sources/Animation/Ease.swift",
"UI/Sources/Animation/Tween.swift",
"UI/Sources/Controls/ControlAction.swift",
"UI/Sources/Controls/HapticControl.swift",
"UI/Sources/Controls/ObserverFunctions.swift",
"UI/Sources/Controls/PresentationController.swift",
"UI/Sources/Controls/UIControlFunctions.swift",
"UI/Sources/Controls/UIScrollViewFunctions.swift",
"UI/Sources/Controls/UserFlow.swift",
"UI/Sources/Controls/ViewHierarchy.swift",
"UI/Sources/Styling/AnimatedImageView.swift",
"UI/Sources/Styling/Colors.swift",
"UI/Sources/Styling/Fonts.swift",
"UI/Sources/Styling/GeometricalShapes.swift",
"UI/Sources/Styling/GradientView.swift",
"UI/Sources/Styling/ImageConvertible.swift",
"UI/Sources/Styling/ImageFunctions.swift",
"UI/Sources/Styling/ImageLoader.swift",
"UI/Sources/Styling/ImagePipeline.swift",
"UI/Sources/Styling/SwiftUIModifiers.swift",
"UI/Sources/Styling/SwiftUIStyle.swift",
"UI/Sources/Styling/TextAnimation/OdometerText.swift",
"UI/Sources/Styling/TextAnimation/TextAnimationSegments.swift",
"UI/Sources/Styling/TextAnimation/TextAnimationStyle.swift",
"UI/Sources/Styling/TextAnimation/TextUpdateModifier.swift",
"UI/Sources/Styling/TextAnimation/WaveTextRenderer.swift",
"UI/Sources/Styling/TextStyle.swift",
"UI/Sources/Styling/UIViewStyle.swift"
],
"type" : "library"
}
],
"tools_version" : "6.0"
}
Done.