Build Information
Successful build of Fusion, reference 1.6.10 (b47c5c), with Swift 6.1 for macOS (SPM) on 23 Apr 2026 01:06:34 UTC.
Swift 6 data race errors: 36
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
| |- note: convert 'session' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'session' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
18 | let storage = HTTPCookieStorage.appGroup
19 | let config = URLSessionConfiguration.default
/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/RESTBuilder.swift:40:13: warning: static property 'dataToAppend' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
38 | /// Prepare some extra data to be appended into the very next request.
39 | /// The data will be automatically flushed after used, until there it's retained.
40 | static var dataToAppend: [String : Any]?
| |- warning: static property 'dataToAppend' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'dataToAppend' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'dataToAppend' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
41 |
42 | /// Appends and flushes the data temporary stored into the `dataToAppend`.
/Users/admin/builder/spi-builder-workspace/Fusion/Core/Sources/Networking/RESTRequest.swift:25:41: warning: capture of 'callback' with non-sendable type '() -> Void' in a '@Sendable' closure
23 |
24 | @inlinable public func asyncGlobal(qos: DispatchQoS.QoSClass = .default, callback: @escaping () -> Void) {
25 | 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'
26 | }
27 |
/Users/admin/builder/spi-builder-workspace/Fusion/Core/Sources/Networking/RESTRequest.swift:190:4: warning: capture of 'completion' with non-sendable type 'Response<Data>?' (aka 'Optional<(Result<Data, any Error>, Optional<URLResponse>) -> ()>') in a '@Sendable' closure
188 |
189 | HTTPCookieStorage.appGroup.sync()
190 | 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'
191 | }.resume()
192 | }
/Users/admin/builder/spi-builder-workspace/Fusion/Core/Sources/Networking/RESTRequest.swift:227:5: warning: capture of 'completion' with non-sendable type 'Response<Data?>?' (aka 'Optional<(Result<Optional<Data>, any Error>, Optional<URLResponse>) -> ()>') in a '@Sendable' closure
225 | if let validError = error {
226 | self.debugLog(error: validError)
227 | completion?(.failure(validError), 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'
228 | } else {
229 | self.debugLog(response: response, data: data ?? Data(), seconds: elapsed)
/Users/admin/builder/spi-builder-workspace/Fusion/Core/Sources/Networking/RESTRequest.swift:13:28: warning: sending 'callback' risks causing data races; this is an error in the Swift 6 language mode
11 |
12 | @inlinable public func syncMain(_ callback: @escaping () -> Void) {
13 | 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
14 | }
15 |
/Users/admin/builder/spi-builder-workspace/Fusion/Core/Sources/Networking/RESTRequest.swift:17:29: warning: sending 'callback' risks causing data races; this is an error in the Swift 6 language mode
15 |
16 | @inlinable public func asyncMain(_ callback: @escaping () -> Void) {
17 | 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
18 | }
19 |
/Users/admin/builder/spi-builder-workspace/Fusion/Core/Sources/Networking/RESTRequest.swift:21:60: warning: sending 'callback' risks causing data races; this is an error in the Swift 6 language mode
19 |
20 | @inlinable public func asyncMain(after: Double, _ callback: @escaping () -> Void) {
21 | 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
22 | }
23 |
[23/51] Compiling Fusion RESTRequest.swift
/Users/admin/builder/spi-builder-workspace/Fusion/Core/Sources/Networking/Logger.swift:132: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
130 |
131 | /// The global logger configuration, determined by the `Constant.isDebug` flag.
132 | 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
133 |
134 | /// A local cache of all log entries.
/Users/admin/builder/spi-builder-workspace/Fusion/Core/Sources/Networking/RESTAuthenticator.swift:17:20: warning: static property 'session' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
15 | public static let shared: RESTAuthenticator = RESTAuthenticator()
16 |
17 | public static var session: URLSession = {
| |- warning: static property 'session' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'session' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'session' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
18 | let storage = HTTPCookieStorage.appGroup
19 | let config = URLSessionConfiguration.default
/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/RESTBuilder.swift:40:13: warning: static property 'dataToAppend' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
38 | /// Prepare some extra data to be appended into the very next request.
39 | /// The data will be automatically flushed after used, until there it's retained.
40 | static var dataToAppend: [String : Any]?
| |- warning: static property 'dataToAppend' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'dataToAppend' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'dataToAppend' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
41 |
42 | /// Appends and flushes the data temporary stored into the `dataToAppend`.
/Users/admin/builder/spi-builder-workspace/Fusion/Core/Sources/Networking/RESTRequest.swift:25:41: warning: capture of 'callback' with non-sendable type '() -> Void' in a '@Sendable' closure
23 |
24 | @inlinable public func asyncGlobal(qos: DispatchQoS.QoSClass = .default, callback: @escaping () -> Void) {
25 | 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'
26 | }
27 |
/Users/admin/builder/spi-builder-workspace/Fusion/Core/Sources/Networking/RESTRequest.swift:190:4: warning: capture of 'completion' with non-sendable type 'Response<Data>?' (aka 'Optional<(Result<Data, any Error>, Optional<URLResponse>) -> ()>') in a '@Sendable' closure
188 |
189 | HTTPCookieStorage.appGroup.sync()
190 | 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'
191 | }.resume()
192 | }
/Users/admin/builder/spi-builder-workspace/Fusion/Core/Sources/Networking/RESTRequest.swift:227:5: warning: capture of 'completion' with non-sendable type 'Response<Data?>?' (aka 'Optional<(Result<Optional<Data>, any Error>, Optional<URLResponse>) -> ()>') in a '@Sendable' closure
225 | if let validError = error {
226 | self.debugLog(error: validError)
227 | completion?(.failure(validError), 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'
228 | } else {
229 | self.debugLog(response: response, data: data ?? Data(), seconds: elapsed)
/Users/admin/builder/spi-builder-workspace/Fusion/Core/Sources/Networking/RESTRequest.swift:13:28: warning: sending 'callback' risks causing data races; this is an error in the Swift 6 language mode
11 |
12 | @inlinable public func syncMain(_ callback: @escaping () -> Void) {
13 | 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
14 | }
15 |
/Users/admin/builder/spi-builder-workspace/Fusion/Core/Sources/Networking/RESTRequest.swift:17:29: warning: sending 'callback' risks causing data races; this is an error in the Swift 6 language mode
15 |
16 | @inlinable public func asyncMain(_ callback: @escaping () -> Void) {
17 | 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
18 | }
19 |
/Users/admin/builder/spi-builder-workspace/Fusion/Core/Sources/Networking/RESTRequest.swift:21:60: warning: sending 'callback' risks causing data races; this is an error in the Swift 6 language mode
19 |
20 | @inlinable public func asyncMain(after: Double, _ callback: @escaping () -> Void) {
21 | 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
22 | }
23 |
[24/51] Compiling Fusion AsyncOperation.swift
/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:98: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
96 | /// Returns a list of all available countries for the given locale on the device.
97 | /// The countries are filtered to only include those with valid names and are sorted alphabetically.
98 | 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
99 | if #available(iOS 16, macOS 13, tvOS 16, watchOS 9, *) {
100 | return Locale.Region.isoRegions.filter(\.subRegions.isEmpty).map(\.identifier).map(\.countryInfoAsCode).filter(\.name.isEmpty == false).sorted()
:
113 | ///
114 | /// - SeeAlso: [ISO 3166 Standard](https://www.iso.org/obp/ui/#iso:std:iso:3166:-3:en)
115 | public struct CountryInfo {
| `- note: consider making struct 'CountryInfo' conform to the 'Sendable' protocol
116 |
117 | /// A type representing the different types of flag images available from FlagCDN.
/Users/admin/builder/spi-builder-workspace/Fusion/Core/Sources/Controls/CountryInfo.swift:341: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
113 | ///
114 | /// - SeeAlso: [ISO 3166 Standard](https://www.iso.org/obp/ui/#iso:std:iso:3166:-3:en)
115 | public struct CountryInfo {
| `- note: consider making struct 'CountryInfo' conform to the 'Sendable' protocol
116 |
117 | /// A type representing the different types of flag images available from FlagCDN.
:
339 | ///
340 | /// - Note: This is a computed property that is evaluated once when first accessed.
341 | 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
342 | }
343 |
/Users/admin/builder/spi-builder-workspace/Fusion/Core/Sources/Controls/Localization.swift:28:21: warning: static property 'cachedLanguages' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
26 | // MARK: - Properties
27 |
28 | private static var cachedLanguages: [String : [Bundle]] = [:]
| |- warning: static property 'cachedLanguages' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'cachedLanguages' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'cachedLanguages' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
29 |
30 | /// Hints are the first bundles to be scanned for loading contents. Including (but not limited to) languages, images, url, etc.
/Users/admin/builder/spi-builder-workspace/Fusion/Core/Sources/Controls/Localization.swift:31:13: warning: static property 'hints' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
29 |
30 | /// Hints are the first bundles to be scanned for loading contents. Including (but not limited to) languages, images, url, etc.
31 | static var hints: [Bundle] = []
| |- warning: static property 'hints' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'hints' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'hints' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
32 |
33 | /// Returns a combined collection of `Bundle.allBundles` + `Bundle.allFrameworks`, in this given order.
/Users/admin/builder/spi-builder-workspace/Fusion/Core/Sources/Controls/Localization.swift:40: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
38 |
39 | /// Returns a set of language codes available in the main bundle.
40 | 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
41 |
42 | // MARK: - Exposed Methods
/Users/admin/builder/spi-builder-workspace/Fusion/Core/Sources/Controls/Localization.swift:108: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
106 | // MARK: - Properties
107 |
108 | 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
109 |
110 | /// Localizable Table strings.
[25/51] Compiling Fusion Constants.swift
/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:98: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
96 | /// Returns a list of all available countries for the given locale on the device.
97 | /// The countries are filtered to only include those with valid names and are sorted alphabetically.
98 | 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
99 | if #available(iOS 16, macOS 13, tvOS 16, watchOS 9, *) {
100 | return Locale.Region.isoRegions.filter(\.subRegions.isEmpty).map(\.identifier).map(\.countryInfoAsCode).filter(\.name.isEmpty == false).sorted()
:
113 | ///
114 | /// - SeeAlso: [ISO 3166 Standard](https://www.iso.org/obp/ui/#iso:std:iso:3166:-3:en)
115 | public struct CountryInfo {
| `- note: consider making struct 'CountryInfo' conform to the 'Sendable' protocol
116 |
117 | /// A type representing the different types of flag images available from FlagCDN.
/Users/admin/builder/spi-builder-workspace/Fusion/Core/Sources/Controls/CountryInfo.swift:341: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
113 | ///
114 | /// - SeeAlso: [ISO 3166 Standard](https://www.iso.org/obp/ui/#iso:std:iso:3166:-3:en)
115 | public struct CountryInfo {
| `- note: consider making struct 'CountryInfo' conform to the 'Sendable' protocol
116 |
117 | /// A type representing the different types of flag images available from FlagCDN.
:
339 | ///
340 | /// - Note: This is a computed property that is evaluated once when first accessed.
341 | 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
342 | }
343 |
/Users/admin/builder/spi-builder-workspace/Fusion/Core/Sources/Controls/Localization.swift:28:21: warning: static property 'cachedLanguages' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
26 | // MARK: - Properties
27 |
28 | private static var cachedLanguages: [String : [Bundle]] = [:]
| |- warning: static property 'cachedLanguages' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'cachedLanguages' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'cachedLanguages' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
29 |
30 | /// Hints are the first bundles to be scanned for loading contents. Including (but not limited to) languages, images, url, etc.
/Users/admin/builder/spi-builder-workspace/Fusion/Core/Sources/Controls/Localization.swift:31:13: warning: static property 'hints' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
29 |
30 | /// Hints are the first bundles to be scanned for loading contents. Including (but not limited to) languages, images, url, etc.
31 | static var hints: [Bundle] = []
| |- warning: static property 'hints' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'hints' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'hints' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
32 |
33 | /// Returns a combined collection of `Bundle.allBundles` + `Bundle.allFrameworks`, in this given order.
/Users/admin/builder/spi-builder-workspace/Fusion/Core/Sources/Controls/Localization.swift:40: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
38 |
39 | /// Returns a set of language codes available in the main bundle.
40 | 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
41 |
42 | // MARK: - Exposed Methods
/Users/admin/builder/spi-builder-workspace/Fusion/Core/Sources/Controls/Localization.swift:108: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
106 | // MARK: - Properties
107 |
108 | 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
109 |
110 | /// Localizable Table strings.
[26/51] Compiling Fusion CountryInfo.swift
/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:98: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
96 | /// Returns a list of all available countries for the given locale on the device.
97 | /// The countries are filtered to only include those with valid names and are sorted alphabetically.
98 | 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
99 | if #available(iOS 16, macOS 13, tvOS 16, watchOS 9, *) {
100 | return Locale.Region.isoRegions.filter(\.subRegions.isEmpty).map(\.identifier).map(\.countryInfoAsCode).filter(\.name.isEmpty == false).sorted()
:
113 | ///
114 | /// - SeeAlso: [ISO 3166 Standard](https://www.iso.org/obp/ui/#iso:std:iso:3166:-3:en)
115 | public struct CountryInfo {
| `- note: consider making struct 'CountryInfo' conform to the 'Sendable' protocol
116 |
117 | /// A type representing the different types of flag images available from FlagCDN.
/Users/admin/builder/spi-builder-workspace/Fusion/Core/Sources/Controls/CountryInfo.swift:341: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
113 | ///
114 | /// - SeeAlso: [ISO 3166 Standard](https://www.iso.org/obp/ui/#iso:std:iso:3166:-3:en)
115 | public struct CountryInfo {
| `- note: consider making struct 'CountryInfo' conform to the 'Sendable' protocol
116 |
117 | /// A type representing the different types of flag images available from FlagCDN.
:
339 | ///
340 | /// - Note: This is a computed property that is evaluated once when first accessed.
341 | 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
342 | }
343 |
/Users/admin/builder/spi-builder-workspace/Fusion/Core/Sources/Controls/Localization.swift:28:21: warning: static property 'cachedLanguages' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
26 | // MARK: - Properties
27 |
28 | private static var cachedLanguages: [String : [Bundle]] = [:]
| |- warning: static property 'cachedLanguages' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'cachedLanguages' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'cachedLanguages' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
29 |
30 | /// Hints are the first bundles to be scanned for loading contents. Including (but not limited to) languages, images, url, etc.
/Users/admin/builder/spi-builder-workspace/Fusion/Core/Sources/Controls/Localization.swift:31:13: warning: static property 'hints' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
29 |
30 | /// Hints are the first bundles to be scanned for loading contents. Including (but not limited to) languages, images, url, etc.
31 | static var hints: [Bundle] = []
| |- warning: static property 'hints' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'hints' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'hints' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
32 |
33 | /// Returns a combined collection of `Bundle.allBundles` + `Bundle.allFrameworks`, in this given order.
/Users/admin/builder/spi-builder-workspace/Fusion/Core/Sources/Controls/Localization.swift:40: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
38 |
39 | /// Returns a set of language codes available in the main bundle.
40 | 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
41 |
42 | // MARK: - Exposed Methods
/Users/admin/builder/spi-builder-workspace/Fusion/Core/Sources/Controls/Localization.swift:108: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
106 | // MARK: - Properties
107 |
108 | 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
109 |
110 | /// Localizable Table strings.
[27/51] Compiling Fusion Dates.swift
/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:98: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
96 | /// Returns a list of all available countries for the given locale on the device.
97 | /// The countries are filtered to only include those with valid names and are sorted alphabetically.
98 | 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
99 | if #available(iOS 16, macOS 13, tvOS 16, watchOS 9, *) {
100 | return Locale.Region.isoRegions.filter(\.subRegions.isEmpty).map(\.identifier).map(\.countryInfoAsCode).filter(\.name.isEmpty == false).sorted()
:
113 | ///
114 | /// - SeeAlso: [ISO 3166 Standard](https://www.iso.org/obp/ui/#iso:std:iso:3166:-3:en)
115 | public struct CountryInfo {
| `- note: consider making struct 'CountryInfo' conform to the 'Sendable' protocol
116 |
117 | /// A type representing the different types of flag images available from FlagCDN.
/Users/admin/builder/spi-builder-workspace/Fusion/Core/Sources/Controls/CountryInfo.swift:341: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
113 | ///
114 | /// - SeeAlso: [ISO 3166 Standard](https://www.iso.org/obp/ui/#iso:std:iso:3166:-3:en)
115 | public struct CountryInfo {
| `- note: consider making struct 'CountryInfo' conform to the 'Sendable' protocol
116 |
117 | /// A type representing the different types of flag images available from FlagCDN.
:
339 | ///
340 | /// - Note: This is a computed property that is evaluated once when first accessed.
341 | 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
342 | }
343 |
/Users/admin/builder/spi-builder-workspace/Fusion/Core/Sources/Controls/Localization.swift:28:21: warning: static property 'cachedLanguages' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
26 | // MARK: - Properties
27 |
28 | private static var cachedLanguages: [String : [Bundle]] = [:]
| |- warning: static property 'cachedLanguages' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'cachedLanguages' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'cachedLanguages' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
29 |
30 | /// Hints are the first bundles to be scanned for loading contents. Including (but not limited to) languages, images, url, etc.
/Users/admin/builder/spi-builder-workspace/Fusion/Core/Sources/Controls/Localization.swift:31:13: warning: static property 'hints' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
29 |
30 | /// Hints are the first bundles to be scanned for loading contents. Including (but not limited to) languages, images, url, etc.
31 | static var hints: [Bundle] = []
| |- warning: static property 'hints' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'hints' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'hints' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
32 |
33 | /// Returns a combined collection of `Bundle.allBundles` + `Bundle.allFrameworks`, in this given order.
/Users/admin/builder/spi-builder-workspace/Fusion/Core/Sources/Controls/Localization.swift:40: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
38 |
39 | /// Returns a set of language codes available in the main bundle.
40 | 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
41 |
42 | // MARK: - Exposed Methods
/Users/admin/builder/spi-builder-workspace/Fusion/Core/Sources/Controls/Localization.swift:108: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
106 | // MARK: - Properties
107 |
108 | 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
109 |
110 | /// Localizable Table strings.
[28/51] Compiling Fusion Localization.swift
/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:98: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
96 | /// Returns a list of all available countries for the given locale on the device.
97 | /// The countries are filtered to only include those with valid names and are sorted alphabetically.
98 | 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
99 | if #available(iOS 16, macOS 13, tvOS 16, watchOS 9, *) {
100 | return Locale.Region.isoRegions.filter(\.subRegions.isEmpty).map(\.identifier).map(\.countryInfoAsCode).filter(\.name.isEmpty == false).sorted()
:
113 | ///
114 | /// - SeeAlso: [ISO 3166 Standard](https://www.iso.org/obp/ui/#iso:std:iso:3166:-3:en)
115 | public struct CountryInfo {
| `- note: consider making struct 'CountryInfo' conform to the 'Sendable' protocol
116 |
117 | /// A type representing the different types of flag images available from FlagCDN.
/Users/admin/builder/spi-builder-workspace/Fusion/Core/Sources/Controls/CountryInfo.swift:341: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
113 | ///
114 | /// - SeeAlso: [ISO 3166 Standard](https://www.iso.org/obp/ui/#iso:std:iso:3166:-3:en)
115 | public struct CountryInfo {
| `- note: consider making struct 'CountryInfo' conform to the 'Sendable' protocol
116 |
117 | /// A type representing the different types of flag images available from FlagCDN.
:
339 | ///
340 | /// - Note: This is a computed property that is evaluated once when first accessed.
341 | 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
342 | }
343 |
/Users/admin/builder/spi-builder-workspace/Fusion/Core/Sources/Controls/Localization.swift:28:21: warning: static property 'cachedLanguages' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
26 | // MARK: - Properties
27 |
28 | private static var cachedLanguages: [String : [Bundle]] = [:]
| |- warning: static property 'cachedLanguages' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'cachedLanguages' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'cachedLanguages' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
29 |
30 | /// Hints are the first bundles to be scanned for loading contents. Including (but not limited to) languages, images, url, etc.
/Users/admin/builder/spi-builder-workspace/Fusion/Core/Sources/Controls/Localization.swift:31:13: warning: static property 'hints' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
29 |
30 | /// Hints are the first bundles to be scanned for loading contents. Including (but not limited to) languages, images, url, etc.
31 | static var hints: [Bundle] = []
| |- warning: static property 'hints' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'hints' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'hints' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
32 |
33 | /// Returns a combined collection of `Bundle.allBundles` + `Bundle.allFrameworks`, in this given order.
/Users/admin/builder/spi-builder-workspace/Fusion/Core/Sources/Controls/Localization.swift:40: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
38 |
39 | /// Returns a set of language codes available in the main bundle.
40 | 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
41 |
42 | // MARK: - Exposed Methods
/Users/admin/builder/spi-builder-workspace/Fusion/Core/Sources/Controls/Localization.swift:108: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
106 | // MARK: - Properties
107 |
108 | 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
109 |
110 | /// Localizable Table strings.
[29/51] Compiling Fusion InMemoryCache.swift
/Users/admin/builder/spi-builder-workspace/Fusion/Core/Sources/Storage/InMemoryCache.swift:18:21: warning: static property 'data' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
16 |
17 | @ThreadSafe
18 | private static var data: [String : Any] = [:]
| |- warning: static property 'data' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'data' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'data' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
19 |
20 | @ThreadSafe
/Users/admin/builder/spi-builder-workspace/Fusion/Core/Sources/Storage/InMemoryCache.swift:21:21: warning: static property 'references' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
19 |
20 | @ThreadSafe
21 | private static var references: [String : String] = [:]
| |- warning: static property 'references' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'references' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'references' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
22 |
23 | // MARK: - Constructors
/Users/admin/builder/spi-builder-workspace/Fusion/Core/Sources/Storage/JSONFunctions.swift:32: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
30 | public extension DateFormatter {
31 |
32 | 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
33 |
34 | static var utc: DateFormatter {
/Users/admin/builder/spi-builder-workspace/Fusion/Core/Sources/Storage/JSONFunctions.swift:92: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
90 | public extension JSONDecoder {
91 |
92 | 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
93 | let decoder = JSONDecoder()
94 | decoder.dateDecodingStrategy = .standardDates
/Users/admin/builder/spi-builder-workspace/Fusion/Core/Sources/Storage/JSONFunctions.swift:103: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
101 | public extension JSONEncoder {
102 |
103 | 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
104 | let encoder = JSONEncoder()
105 | encoder.dateEncodingStrategy = .standardDates
/Users/admin/builder/spi-builder-workspace/Fusion/Core/Sources/Storage/JSONFunctions.swift:384: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
382 | var fullVersion: String { "v \(shortVersion) (\(buildNumber))" }
383 |
384 | @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
385 | }
386 |
/Users/admin/builder/spi-builder-workspace/Fusion/Core/Sources/Storage/Keychain.swift:131:54: warning: reference to var 'NSFoundationVersionNumber' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
129 | switch status {
130 | case errSecSuccess, errSecInteractionNotAllowed:
131 | if status == errSecInteractionNotAllowed && floor(NSFoundationVersionNumber) <= floor(1140.11) {
| `- warning: reference to var 'NSFoundationVersionNumber' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
132 | remove(key)
133 | set(value, key: key)
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSObjCRuntime.h:494:26: note: var declared here
492 | NS_HEADER_AUDIT_BEGIN(nullability, sendability)
493 |
494 | FOUNDATION_EXPORT double NSFoundationVersionNumber;
| `- note: var declared here
495 |
496 | #if TARGET_OS_MAC
/Users/admin/builder/spi-builder-workspace/Fusion/Core/Sources/Storage/ThreadSafe.swift:25:5: warning: capture of 'self' with non-sendable type 'ThreadSafe<Value>?' in a '@Sendable' closure
10 |
11 | @propertyWrapper
12 | public final class ThreadSafe<Value> {
| `- note: generic class 'ThreadSafe' does not conform to the 'Sendable' protocol
13 |
14 | private var value: Value
:
23 | set {
24 | queue.async(flags: .barrier) { [weak self] in
25 | self?.value = newValue
| `- warning: capture of 'self' with non-sendable type 'ThreadSafe<Value>?' in a '@Sendable' closure
26 | }
27 | }
/Users/admin/builder/spi-builder-workspace/Fusion/Core/Sources/Storage/ThreadSafe.swift:25:19: warning: capture of 'newValue' with non-sendable type 'Value' in a '@Sendable' closure
10 |
11 | @propertyWrapper
12 | public final class ThreadSafe<Value> {
| `- note: consider making generic parameter 'Value' conform to the 'Sendable' protocol
13 |
14 | private var value: Value
:
23 | set {
24 | queue.async(flags: .barrier) { [weak self] in
25 | self?.value = newValue
| `- warning: capture of 'newValue' with non-sendable type 'Value' in a '@Sendable' closure
26 | }
27 | }
[30/51] Compiling Fusion JSONFunctions.swift
/Users/admin/builder/spi-builder-workspace/Fusion/Core/Sources/Storage/InMemoryCache.swift:18:21: warning: static property 'data' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
16 |
17 | @ThreadSafe
18 | private static var data: [String : Any] = [:]
| |- warning: static property 'data' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'data' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'data' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
19 |
20 | @ThreadSafe
/Users/admin/builder/spi-builder-workspace/Fusion/Core/Sources/Storage/InMemoryCache.swift:21:21: warning: static property 'references' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
19 |
20 | @ThreadSafe
21 | private static var references: [String : String] = [:]
| |- warning: static property 'references' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'references' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'references' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
22 |
23 | // MARK: - Constructors
/Users/admin/builder/spi-builder-workspace/Fusion/Core/Sources/Storage/JSONFunctions.swift:32: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
30 | public extension DateFormatter {
31 |
32 | 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
33 |
34 | static var utc: DateFormatter {
/Users/admin/builder/spi-builder-workspace/Fusion/Core/Sources/Storage/JSONFunctions.swift:92: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
90 | public extension JSONDecoder {
91 |
92 | 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
93 | let decoder = JSONDecoder()
94 | decoder.dateDecodingStrategy = .standardDates
/Users/admin/builder/spi-builder-workspace/Fusion/Core/Sources/Storage/JSONFunctions.swift:103: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
101 | public extension JSONEncoder {
102 |
103 | 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
104 | let encoder = JSONEncoder()
105 | encoder.dateEncodingStrategy = .standardDates
/Users/admin/builder/spi-builder-workspace/Fusion/Core/Sources/Storage/JSONFunctions.swift:384: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
382 | var fullVersion: String { "v \(shortVersion) (\(buildNumber))" }
383 |
384 | @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
385 | }
386 |
/Users/admin/builder/spi-builder-workspace/Fusion/Core/Sources/Storage/Keychain.swift:131:54: warning: reference to var 'NSFoundationVersionNumber' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
129 | switch status {
130 | case errSecSuccess, errSecInteractionNotAllowed:
131 | if status == errSecInteractionNotAllowed && floor(NSFoundationVersionNumber) <= floor(1140.11) {
| `- warning: reference to var 'NSFoundationVersionNumber' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
132 | remove(key)
133 | set(value, key: key)
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSObjCRuntime.h:494:26: note: var declared here
492 | NS_HEADER_AUDIT_BEGIN(nullability, sendability)
493 |
494 | FOUNDATION_EXPORT double NSFoundationVersionNumber;
| `- note: var declared here
495 |
496 | #if TARGET_OS_MAC
/Users/admin/builder/spi-builder-workspace/Fusion/Core/Sources/Storage/ThreadSafe.swift:25:5: warning: capture of 'self' with non-sendable type 'ThreadSafe<Value>?' in a '@Sendable' closure
10 |
11 | @propertyWrapper
12 | public final class ThreadSafe<Value> {
| `- note: generic class 'ThreadSafe' does not conform to the 'Sendable' protocol
13 |
14 | private var value: Value
:
23 | set {
24 | queue.async(flags: .barrier) { [weak self] in
25 | self?.value = newValue
| `- warning: capture of 'self' with non-sendable type 'ThreadSafe<Value>?' in a '@Sendable' closure
26 | }
27 | }
/Users/admin/builder/spi-builder-workspace/Fusion/Core/Sources/Storage/ThreadSafe.swift:25:19: warning: capture of 'newValue' with non-sendable type 'Value' in a '@Sendable' closure
10 |
11 | @propertyWrapper
12 | public final class ThreadSafe<Value> {
| `- note: consider making generic parameter 'Value' conform to the 'Sendable' protocol
13 |
14 | private var value: Value
:
23 | set {
24 | queue.async(flags: .barrier) { [weak self] in
25 | self?.value = newValue
| `- warning: capture of 'newValue' with non-sendable type 'Value' in a '@Sendable' closure
26 | }
27 | }
[31/51] Compiling Fusion Keychain.swift
/Users/admin/builder/spi-builder-workspace/Fusion/Core/Sources/Storage/InMemoryCache.swift:18:21: warning: static property 'data' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
16 |
17 | @ThreadSafe
18 | private static var data: [String : Any] = [:]
| |- warning: static property 'data' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'data' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'data' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
19 |
20 | @ThreadSafe
/Users/admin/builder/spi-builder-workspace/Fusion/Core/Sources/Storage/InMemoryCache.swift:21:21: warning: static property 'references' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
19 |
20 | @ThreadSafe
21 | private static var references: [String : String] = [:]
| |- warning: static property 'references' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'references' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'references' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
22 |
23 | // MARK: - Constructors
/Users/admin/builder/spi-builder-workspace/Fusion/Core/Sources/Storage/JSONFunctions.swift:32: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
30 | public extension DateFormatter {
31 |
32 | 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
33 |
34 | static var utc: DateFormatter {
/Users/admin/builder/spi-builder-workspace/Fusion/Core/Sources/Storage/JSONFunctions.swift:92: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
90 | public extension JSONDecoder {
91 |
92 | 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
93 | let decoder = JSONDecoder()
94 | decoder.dateDecodingStrategy = .standardDates
/Users/admin/builder/spi-builder-workspace/Fusion/Core/Sources/Storage/JSONFunctions.swift:103: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
101 | public extension JSONEncoder {
102 |
103 | 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
104 | let encoder = JSONEncoder()
105 | encoder.dateEncodingStrategy = .standardDates
/Users/admin/builder/spi-builder-workspace/Fusion/Core/Sources/Storage/JSONFunctions.swift:384: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
382 | var fullVersion: String { "v \(shortVersion) (\(buildNumber))" }
383 |
384 | @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
385 | }
386 |
/Users/admin/builder/spi-builder-workspace/Fusion/Core/Sources/Storage/Keychain.swift:131:54: warning: reference to var 'NSFoundationVersionNumber' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
129 | switch status {
130 | case errSecSuccess, errSecInteractionNotAllowed:
131 | if status == errSecInteractionNotAllowed && floor(NSFoundationVersionNumber) <= floor(1140.11) {
| `- warning: reference to var 'NSFoundationVersionNumber' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
132 | remove(key)
133 | set(value, key: key)
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSObjCRuntime.h:494:26: note: var declared here
492 | NS_HEADER_AUDIT_BEGIN(nullability, sendability)
493 |
494 | FOUNDATION_EXPORT double NSFoundationVersionNumber;
| `- note: var declared here
495 |
496 | #if TARGET_OS_MAC
/Users/admin/builder/spi-builder-workspace/Fusion/Core/Sources/Storage/ThreadSafe.swift:25:5: warning: capture of 'self' with non-sendable type 'ThreadSafe<Value>?' in a '@Sendable' closure
10 |
11 | @propertyWrapper
12 | public final class ThreadSafe<Value> {
| `- note: generic class 'ThreadSafe' does not conform to the 'Sendable' protocol
13 |
14 | private var value: Value
:
23 | set {
24 | queue.async(flags: .barrier) { [weak self] in
25 | self?.value = newValue
| `- warning: capture of 'self' with non-sendable type 'ThreadSafe<Value>?' in a '@Sendable' closure
26 | }
27 | }
/Users/admin/builder/spi-builder-workspace/Fusion/Core/Sources/Storage/ThreadSafe.swift:25:19: warning: capture of 'newValue' with non-sendable type 'Value' in a '@Sendable' closure
10 |
11 | @propertyWrapper
12 | public final class ThreadSafe<Value> {
| `- note: consider making generic parameter 'Value' conform to the 'Sendable' protocol
13 |
14 | private var value: Value
:
23 | set {
24 | queue.async(flags: .barrier) { [weak self] in
25 | self?.value = newValue
| `- warning: capture of 'newValue' with non-sendable type 'Value' in a '@Sendable' closure
26 | }
27 | }
[32/51] Compiling Fusion LocalNotification.swift
/Users/admin/builder/spi-builder-workspace/Fusion/Core/Sources/Storage/InMemoryCache.swift:18:21: warning: static property 'data' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
16 |
17 | @ThreadSafe
18 | private static var data: [String : Any] = [:]
| |- warning: static property 'data' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'data' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'data' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
19 |
20 | @ThreadSafe
/Users/admin/builder/spi-builder-workspace/Fusion/Core/Sources/Storage/InMemoryCache.swift:21:21: warning: static property 'references' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
19 |
20 | @ThreadSafe
21 | private static var references: [String : String] = [:]
| |- warning: static property 'references' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'references' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'references' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
22 |
23 | // MARK: - Constructors
/Users/admin/builder/spi-builder-workspace/Fusion/Core/Sources/Storage/JSONFunctions.swift:32: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
30 | public extension DateFormatter {
31 |
32 | 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
33 |
34 | static var utc: DateFormatter {
/Users/admin/builder/spi-builder-workspace/Fusion/Core/Sources/Storage/JSONFunctions.swift:92: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
90 | public extension JSONDecoder {
91 |
92 | 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
93 | let decoder = JSONDecoder()
94 | decoder.dateDecodingStrategy = .standardDates
/Users/admin/builder/spi-builder-workspace/Fusion/Core/Sources/Storage/JSONFunctions.swift:103: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
101 | public extension JSONEncoder {
102 |
103 | 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
104 | let encoder = JSONEncoder()
105 | encoder.dateEncodingStrategy = .standardDates
/Users/admin/builder/spi-builder-workspace/Fusion/Core/Sources/Storage/JSONFunctions.swift:384: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
382 | var fullVersion: String { "v \(shortVersion) (\(buildNumber))" }
383 |
384 | @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
385 | }
386 |
/Users/admin/builder/spi-builder-workspace/Fusion/Core/Sources/Storage/Keychain.swift:131:54: warning: reference to var 'NSFoundationVersionNumber' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
129 | switch status {
130 | case errSecSuccess, errSecInteractionNotAllowed:
131 | if status == errSecInteractionNotAllowed && floor(NSFoundationVersionNumber) <= floor(1140.11) {
| `- warning: reference to var 'NSFoundationVersionNumber' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
132 | remove(key)
133 | set(value, key: key)
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSObjCRuntime.h:494:26: note: var declared here
492 | NS_HEADER_AUDIT_BEGIN(nullability, sendability)
493 |
494 | FOUNDATION_EXPORT double NSFoundationVersionNumber;
| `- note: var declared here
495 |
496 | #if TARGET_OS_MAC
/Users/admin/builder/spi-builder-workspace/Fusion/Core/Sources/Storage/ThreadSafe.swift:25:5: warning: capture of 'self' with non-sendable type 'ThreadSafe<Value>?' in a '@Sendable' closure
10 |
11 | @propertyWrapper
12 | public final class ThreadSafe<Value> {
| `- note: generic class 'ThreadSafe' does not conform to the 'Sendable' protocol
13 |
14 | private var value: Value
:
23 | set {
24 | queue.async(flags: .barrier) { [weak self] in
25 | self?.value = newValue
| `- warning: capture of 'self' with non-sendable type 'ThreadSafe<Value>?' in a '@Sendable' closure
26 | }
27 | }
/Users/admin/builder/spi-builder-workspace/Fusion/Core/Sources/Storage/ThreadSafe.swift:25:19: warning: capture of 'newValue' with non-sendable type 'Value' in a '@Sendable' closure
10 |
11 | @propertyWrapper
12 | public final class ThreadSafe<Value> {
| `- note: consider making generic parameter 'Value' conform to the 'Sendable' protocol
13 |
14 | private var value: Value
:
23 | set {
24 | queue.async(flags: .barrier) { [weak self] in
25 | self?.value = newValue
| `- warning: capture of 'newValue' with non-sendable type 'Value' in a '@Sendable' closure
26 | }
27 | }
[33/51] Compiling Fusion ThreadSafe.swift
/Users/admin/builder/spi-builder-workspace/Fusion/Core/Sources/Storage/InMemoryCache.swift:18:21: warning: static property 'data' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
16 |
17 | @ThreadSafe
18 | private static var data: [String : Any] = [:]
| |- warning: static property 'data' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'data' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'data' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
19 |
20 | @ThreadSafe
/Users/admin/builder/spi-builder-workspace/Fusion/Core/Sources/Storage/InMemoryCache.swift:21:21: warning: static property 'references' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
19 |
20 | @ThreadSafe
21 | private static var references: [String : String] = [:]
| |- warning: static property 'references' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'references' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'references' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
22 |
23 | // MARK: - Constructors
/Users/admin/builder/spi-builder-workspace/Fusion/Core/Sources/Storage/JSONFunctions.swift:32: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
30 | public extension DateFormatter {
31 |
32 | 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
33 |
34 | static var utc: DateFormatter {
/Users/admin/builder/spi-builder-workspace/Fusion/Core/Sources/Storage/JSONFunctions.swift:92: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
90 | public extension JSONDecoder {
91 |
92 | 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
93 | let decoder = JSONDecoder()
94 | decoder.dateDecodingStrategy = .standardDates
/Users/admin/builder/spi-builder-workspace/Fusion/Core/Sources/Storage/JSONFunctions.swift:103: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
101 | public extension JSONEncoder {
102 |
103 | 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
104 | let encoder = JSONEncoder()
105 | encoder.dateEncodingStrategy = .standardDates
/Users/admin/builder/spi-builder-workspace/Fusion/Core/Sources/Storage/JSONFunctions.swift:384: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
382 | var fullVersion: String { "v \(shortVersion) (\(buildNumber))" }
383 |
384 | @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
385 | }
386 |
/Users/admin/builder/spi-builder-workspace/Fusion/Core/Sources/Storage/Keychain.swift:131:54: warning: reference to var 'NSFoundationVersionNumber' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
129 | switch status {
130 | case errSecSuccess, errSecInteractionNotAllowed:
131 | if status == errSecInteractionNotAllowed && floor(NSFoundationVersionNumber) <= floor(1140.11) {
| `- warning: reference to var 'NSFoundationVersionNumber' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
132 | remove(key)
133 | set(value, key: key)
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSObjCRuntime.h:494:26: note: var declared here
492 | NS_HEADER_AUDIT_BEGIN(nullability, sendability)
493 |
494 | FOUNDATION_EXPORT double NSFoundationVersionNumber;
| `- note: var declared here
495 |
496 | #if TARGET_OS_MAC
/Users/admin/builder/spi-builder-workspace/Fusion/Core/Sources/Storage/ThreadSafe.swift:25:5: warning: capture of 'self' with non-sendable type 'ThreadSafe<Value>?' in a '@Sendable' closure
10 |
11 | @propertyWrapper
12 | public final class ThreadSafe<Value> {
| `- note: generic class 'ThreadSafe' does not conform to the 'Sendable' protocol
13 |
14 | private var value: Value
:
23 | set {
24 | queue.async(flags: .barrier) { [weak self] in
25 | self?.value = newValue
| `- warning: capture of 'self' with non-sendable type 'ThreadSafe<Value>?' in a '@Sendable' closure
26 | }
27 | }
/Users/admin/builder/spi-builder-workspace/Fusion/Core/Sources/Storage/ThreadSafe.swift:25:19: warning: capture of 'newValue' with non-sendable type 'Value' in a '@Sendable' closure
10 |
11 | @propertyWrapper
12 | public final class ThreadSafe<Value> {
| `- note: consider making generic parameter 'Value' conform to the 'Sendable' protocol
13 |
14 | private var value: Value
:
23 | set {
24 | queue.async(flags: .barrier) { [weak self] in
25 | self?.value = newValue
| `- warning: capture of 'newValue' with non-sendable type 'Value' in a '@Sendable' closure
26 | }
27 | }
[34/51] Compiling Fusion SwiftUIStyle.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 |
[35/51] 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 |
[36/51] 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 |
[37/51] 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 |
[38/51] Compiling Fusion Ease.swift
/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,
[39/51] Compiling Fusion Tween.swift
/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,
[40/51] Compiling Fusion ControlAction.swift
/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/51] Compiling Fusion HapticControl.swift
/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/51] Compiling Fusion ObserverFunctions.swift
/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/51] Compiling Fusion Math.swift
/Users/admin/builder/spi-builder-workspace/Fusion/Core/Sources/Controls/TimerControl.swift:38: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
17 |
18 | /// This class creates a single unique loop running with the interval defined by the constant ``Constant/maxFps``.
19 | final public class TimerControl {
| `- note: class 'TimerControl' does not conform to the 'Sendable' protocol
20 |
21 | // MARK: - Properties
:
36 |
37 | /// The singleton instance of ``TimerControl``.
38 | 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
39 |
40 | // MARK: - Constructors
/Users/admin/builder/spi-builder-workspace/Fusion/Core/Sources/Controls/TimerControl.swift:72:5: warning: capture of 'callback' with non-sendable type 'TimerCallback' (aka '() -> ()') in a '@Sendable' closure
70 | let queue = item.value.queue
71 | queue.async {
72 | callback()
| |- warning: capture of 'callback' with non-sendable type 'TimerCallback' (aka '() -> ()') in a '@Sendable' closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
73 | }
74 | }
/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/Controls/TimerControl.swift:142:5: warning: sending 'work' risks causing data races; this is an error in the Swift 6 language mode
140 | } else {
141 | DispatchQueue.main.async {
142 | work()
| |- warning: sending 'work' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'work' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
143 | }
144 | }
[44/51] Compiling Fusion TextFunctions.swift
/Users/admin/builder/spi-builder-workspace/Fusion/Core/Sources/Controls/TimerControl.swift:38: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
17 |
18 | /// This class creates a single unique loop running with the interval defined by the constant ``Constant/maxFps``.
19 | final public class TimerControl {
| `- note: class 'TimerControl' does not conform to the 'Sendable' protocol
20 |
21 | // MARK: - Properties
:
36 |
37 | /// The singleton instance of ``TimerControl``.
38 | 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
39 |
40 | // MARK: - Constructors
/Users/admin/builder/spi-builder-workspace/Fusion/Core/Sources/Controls/TimerControl.swift:72:5: warning: capture of 'callback' with non-sendable type 'TimerCallback' (aka '() -> ()') in a '@Sendable' closure
70 | let queue = item.value.queue
71 | queue.async {
72 | callback()
| |- warning: capture of 'callback' with non-sendable type 'TimerCallback' (aka '() -> ()') in a '@Sendable' closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
73 | }
74 | }
/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/Controls/TimerControl.swift:142:5: warning: sending 'work' risks causing data races; this is an error in the Swift 6 language mode
140 | } else {
141 | DispatchQueue.main.async {
142 | work()
| |- warning: sending 'work' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'work' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
143 | }
144 | }
[45/51] Compiling Fusion TimerControl.swift
/Users/admin/builder/spi-builder-workspace/Fusion/Core/Sources/Controls/TimerControl.swift:38: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
17 |
18 | /// This class creates a single unique loop running with the interval defined by the constant ``Constant/maxFps``.
19 | final public class TimerControl {
| `- note: class 'TimerControl' does not conform to the 'Sendable' protocol
20 |
21 | // MARK: - Properties
:
36 |
37 | /// The singleton instance of ``TimerControl``.
38 | 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
39 |
40 | // MARK: - Constructors
/Users/admin/builder/spi-builder-workspace/Fusion/Core/Sources/Controls/TimerControl.swift:72:5: warning: capture of 'callback' with non-sendable type 'TimerCallback' (aka '() -> ()') in a '@Sendable' closure
70 | let queue = item.value.queue
71 | queue.async {
72 | callback()
| |- warning: capture of 'callback' with non-sendable type 'TimerCallback' (aka '() -> ()') in a '@Sendable' closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
73 | }
74 | }
/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/Controls/TimerControl.swift:142:5: warning: sending 'work' risks causing data races; this is an error in the Swift 6 language mode
140 | } else {
141 | DispatchQueue.main.async {
142 | work()
| |- warning: sending 'work' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'work' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
143 | }
144 | }
[46/51] Compiling Fusion Trigonometry.swift
/Users/admin/builder/spi-builder-workspace/Fusion/Core/Sources/Controls/TimerControl.swift:38: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
17 |
18 | /// This class creates a single unique loop running with the interval defined by the constant ``Constant/maxFps``.
19 | final public class TimerControl {
| `- note: class 'TimerControl' does not conform to the 'Sendable' protocol
20 |
21 | // MARK: - Properties
:
36 |
37 | /// The singleton instance of ``TimerControl``.
38 | 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
39 |
40 | // MARK: - Constructors
/Users/admin/builder/spi-builder-workspace/Fusion/Core/Sources/Controls/TimerControl.swift:72:5: warning: capture of 'callback' with non-sendable type 'TimerCallback' (aka '() -> ()') in a '@Sendable' closure
70 | let queue = item.value.queue
71 | queue.async {
72 | callback()
| |- warning: capture of 'callback' with non-sendable type 'TimerCallback' (aka '() -> ()') in a '@Sendable' closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
73 | }
74 | }
/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/Controls/TimerControl.swift:142:5: warning: sending 'work' risks causing data races; this is an error in the Swift 6 language mode
140 | } else {
141 | DispatchQueue.main.async {
142 | work()
| |- warning: sending 'work' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'work' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
143 | }
144 | }
[47/51] Compiling Fusion Encryption.swift
/Users/admin/builder/spi-builder-workspace/Fusion/Core/Sources/Controls/TimerControl.swift:38: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
17 |
18 | /// This class creates a single unique loop running with the interval defined by the constant ``Constant/maxFps``.
19 | final public class TimerControl {
| `- note: class 'TimerControl' does not conform to the 'Sendable' protocol
20 |
21 | // MARK: - Properties
:
36 |
37 | /// The singleton instance of ``TimerControl``.
38 | 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
39 |
40 | // MARK: - Constructors
/Users/admin/builder/spi-builder-workspace/Fusion/Core/Sources/Controls/TimerControl.swift:72:5: warning: capture of 'callback' with non-sendable type 'TimerCallback' (aka '() -> ()') in a '@Sendable' closure
70 | let queue = item.value.queue
71 | queue.async {
72 | callback()
| |- warning: capture of 'callback' with non-sendable type 'TimerCallback' (aka '() -> ()') in a '@Sendable' closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
73 | }
74 | }
/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/Controls/TimerControl.swift:142:5: warning: sending 'work' risks causing data races; this is an error in the Swift 6 language mode
140 | } else {
141 | DispatchQueue.main.async {
142 | work()
| |- warning: sending 'work' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'work' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
143 | }
144 | }
[48/51] Compiling Fusion Colors.swift
[49/51] Compiling Fusion Fonts.swift
[50/51] Compiling Fusion GeometricalShapes.swift
[51/51] Compiling Fusion GradientView.swift
Build complete! (10.22s)
Fetching https://github.com/db-in/LocalServer.git
[1/938] Fetching localserver
Fetched https://github.com/db-in/LocalServer.git from cache (1.19s)
Computing version for https://github.com/db-in/LocalServer.git
Computed https://github.com/db-in/LocalServer.git at 2.1.7 (1.76s)
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.7
warning: 'spi-builder-workspace': found 1 file(s) which are unhandled; explicitly declare them as resources or exclude from the target
/Users/admin/builder/spi-builder-workspace/Fusion/Fusion.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" : "12.0"
},
{
"name" : "ios",
"version" : "15.0"
},
{
"name" : "tvos",
"version" : "15.0"
},
{
"name" : "watchos",
"version" : "9.0"
}
],
"products" : [
{
"name" : "Fusion",
"targets" : [
"Fusion"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "FusionTests",
"module_type" : "SwiftTarget",
"name" : "FusionTests",
"path" : "FusionTests",
"product_dependencies" : [
"LocalServer"
],
"resources" : [
{
"path" : "/Users/admin/builder/spi-builder-workspace/FusionTests/Data Models/Person.json",
"rule" : {
"process" : {
}
}
},
{
"path" : "/Users/admin/builder/spi-builder-workspace/FusionTests/Data Models/Response.json",
"rule" : {
"process" : {
}
}
}
],
"sources" : [
"AsyncOperationTests.swift",
"CountryInfoTests.swift",
"EncryptionTests.swift",
"HTTPCookieTests.swift",
"InMemoryCacheTests.swift",
"JSONTests.swift",
"KeychainTests.swift",
"LocalNotificationTests.swift",
"LocalizationTests.swift",
"LoggerTests.swift",
"MathTests.swift",
"NetworkingTests.swift",
"RESTAuthenticatorTests.swift",
"ServerMock.swift",
"StoregeableTests.swift",
"TimerTests.swift",
"TweenTests.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/ThreadSafe.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/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/SwiftUIModifiers.swift",
"UI/Sources/Styling/SwiftUIStyle.swift",
"UI/Sources/Styling/TextStyle.swift",
"UI/Sources/Styling/UIViewStyle.swift"
],
"type" : "library"
}
],
"tools_version" : "5.7"
}
Done.