Build Information
Successful build of Prephirences, reference master (3bc9e0
), with Swift 6.1 for macOS (SPM) on 1 Jun 2025 16:55:25 UTC.
Swift 6 data race errors: 11
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 InferSendableFromCaptures
Build Log
========================================
RunAll
========================================
Builder version: 4.63.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/phimage/Prephirences.git
Reference: master
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/phimage/Prephirences
* branch master -> FETCH_HEAD
* [new branch] master -> origin/master
HEAD is now at 3bc9e04 Fix override T
Cloned https://github.com/phimage/Prephirences.git
Revision (git rev-parse @):
3bc9e04ef90bd375656e367fdbdf36165174b426
SUCCESS checkout https://github.com/phimage/Prephirences.git at master
========================================
ResolveProductDependencies
========================================
Resolving dependencies ...
{
"identity": ".resolve-product-dependencies",
"name": "resolve-dependencies",
"url": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
"version": "unspecified",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
"dependencies": [
{
"identity": "prephirences",
"name": "Prephirences",
"url": "https://github.com/phimage/Prephirences.git",
"version": "unspecified",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/Prephirences",
"dependencies": [
]
}
]
}
Fetching https://github.com/phimage/Prephirences.git
[1/1270] Fetching prephirences
Fetched https://github.com/phimage/Prephirences.git from cache (0.90s)
Creating working copy for https://github.com/phimage/Prephirences.git
Working copy of https://github.com/phimage/Prephirences.git resolved at master (3bc9e04)
warning: '.resolve-product-dependencies': dependency 'prephirences' is not used by any target
Found 0 product dependencies
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 6.1
Building package at path: $PWD
https://github.com/phimage/Prephirences.git
https://github.com/phimage/Prephirences.git
{
"dependencies" : [
],
"manifest_display_name" : "Prephirences",
"name" : "Prephirences",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
{
"name" : "macos",
"version" : "10.11"
},
{
"name" : "ios",
"version" : "9.0"
},
{
"name" : "tvos",
"version" : "9.0"
},
{
"name" : "watchos",
"version" : "3.0"
}
],
"products" : [
{
"name" : "Prephirences",
"targets" : [
"Prephirences"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"swift_languages_versions" : [
"5"
],
"targets" : [
{
"c99name" : "PrephirencesTests",
"module_type" : "SwiftTarget",
"name" : "PrephirencesTests",
"path" : "Tests",
"sources" : [
"KeychainTests.swift",
"PrephirencesTests.swift"
],
"target_dependencies" : [
"Prephirences"
],
"type" : "test"
},
{
"c99name" : "Prephirences",
"module_type" : "SwiftTarget",
"name" : "Prephirences",
"path" : "Sources",
"product_memberships" : [
"Prephirences"
],
"sources" : [
"Bundle.swift",
"CoreData/ManagedObjectPreferences.swift",
"DictionaryPreferences.swift",
"KeychainPreferences.swift",
"Keys/PropertyListKeys.swift",
"Keys/UserDefaultsKeys.swift",
"NSCachePreferences.swift",
"NSCoder+Prephirences.swift",
"NSHTTPCookieStorage+Prephirences.swift",
"NSUbiquitousKeyValueStore+Prephirences.swift",
"PatternPreferences.swift",
"Plist.swift",
"Preference.swift",
"PreferenceOperators.swift",
"PreferenceTransformation.swift",
"PreferencesController.swift",
"PreferencesOperators.swift",
"PreferencesType.swift",
"Prephirencable.swift",
"PrephirenceType+Codable.swift",
"Prephirences.swift",
"RawRepresentableKey/RawRepresentable+Prephirences.swift",
"ReflectingPreferences.swift",
"UserDefaults+Prephirences.swift",
"UserDefaults/UserDefaults+Adds.swift"
],
"type" : "library"
}
],
"tools_version" : "5.5"
}
Running build ...
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 InferSendableFromCaptures
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-2F0A5646E1D333AE.txt
[3/26] Compiling Prephirences PreferencesType.swift
[4/26] Compiling Prephirences Prephirencable.swift
[5/28] Compiling Prephirences NSCachePreferences.swift
[6/28] Compiling Prephirences NSCoder+Prephirences.swift
[7/28] Compiling Prephirences NSHTTPCookieStorage+Prephirences.swift
[8/28] Compiling Prephirences RawRepresentable+Prephirences.swift
[9/28] Compiling Prephirences ReflectingPreferences.swift
[10/28] Compiling Prephirences KeychainPreferences.swift
/Users/admin/builder/spi-builder-workspace/Sources/KeychainPreferences.swift:40:23: warning: static property 'sharedInstance' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
38 |
39 | /// Shared instance. service is equal to bundle identifier.
40 | public static var sharedInstance = KeychainPreferences(service: Bundle.main.bundleIdentifier ?? "Prephirences")
| |- warning: static property 'sharedInstance' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'sharedInstance' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'sharedInstance' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
41 |
42 | /// Class Constants
/Users/admin/builder/spi-builder-workspace/Sources/KeychainPreferences.swift:58:24: warning: static property 'one' is not concurrency-safe because non-'Sendable' type 'CFString' may have shared mutable state; this is an error in the Swift 6 language mode
56 |
57 | struct Limit {
58 | static let one = kSecMatchLimitOne
| `- warning: static property 'one' is not concurrency-safe because non-'Sendable' type 'CFString' may have shared mutable state; this is an error in the Swift 6 language mode
59 | static let all = kSecMatchLimitAll
60 | }
CoreFoundation.CFString:1:14: note: class 'CFString' does not conform to the 'Sendable' protocol
1 | public class CFString : _CFObject {
| `- note: class 'CFString' does not conform to the 'Sendable' protocol
2 | }
/Users/admin/builder/spi-builder-workspace/Sources/KeychainPreferences.swift:28:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'CoreFoundation'
26 | */
27 |
28 | import Foundation
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'CoreFoundation'
29 | import Security
30 |
:
56 |
57 | struct Limit {
58 | static let one = kSecMatchLimitOne
| |- note: add '@MainActor' to make static property 'one' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
59 | static let all = kSecMatchLimitAll
60 | }
/Users/admin/builder/spi-builder-workspace/Sources/KeychainPreferences.swift:59:24: warning: static property 'all' is not concurrency-safe because non-'Sendable' type 'CFString' may have shared mutable state; this is an error in the Swift 6 language mode
57 | struct Limit {
58 | static let one = kSecMatchLimitOne
59 | static let all = kSecMatchLimitAll
| |- warning: static property 'all' is not concurrency-safe because non-'Sendable' type 'CFString' may have shared mutable state; this is an error in the Swift 6 language mode
| |- 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
60 | }
61 | }
CoreFoundation.CFString:1:14: note: class 'CFString' does not conform to the 'Sendable' protocol
1 | public class CFString : _CFObject {
| `- note: class 'CFString' does not conform to the 'Sendable' protocol
2 | }
[11/28] Compiling Prephirences PropertyListKeys.swift
/Users/admin/builder/spi-builder-workspace/Sources/KeychainPreferences.swift:40:23: warning: static property 'sharedInstance' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
38 |
39 | /// Shared instance. service is equal to bundle identifier.
40 | public static var sharedInstance = KeychainPreferences(service: Bundle.main.bundleIdentifier ?? "Prephirences")
| |- warning: static property 'sharedInstance' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'sharedInstance' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'sharedInstance' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
41 |
42 | /// Class Constants
/Users/admin/builder/spi-builder-workspace/Sources/KeychainPreferences.swift:58:24: warning: static property 'one' is not concurrency-safe because non-'Sendable' type 'CFString' may have shared mutable state; this is an error in the Swift 6 language mode
56 |
57 | struct Limit {
58 | static let one = kSecMatchLimitOne
| `- warning: static property 'one' is not concurrency-safe because non-'Sendable' type 'CFString' may have shared mutable state; this is an error in the Swift 6 language mode
59 | static let all = kSecMatchLimitAll
60 | }
CoreFoundation.CFString:1:14: note: class 'CFString' does not conform to the 'Sendable' protocol
1 | public class CFString : _CFObject {
| `- note: class 'CFString' does not conform to the 'Sendable' protocol
2 | }
/Users/admin/builder/spi-builder-workspace/Sources/KeychainPreferences.swift:28:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'CoreFoundation'
26 | */
27 |
28 | import Foundation
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'CoreFoundation'
29 | import Security
30 |
:
56 |
57 | struct Limit {
58 | static let one = kSecMatchLimitOne
| |- note: add '@MainActor' to make static property 'one' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
59 | static let all = kSecMatchLimitAll
60 | }
/Users/admin/builder/spi-builder-workspace/Sources/KeychainPreferences.swift:59:24: warning: static property 'all' is not concurrency-safe because non-'Sendable' type 'CFString' may have shared mutable state; this is an error in the Swift 6 language mode
57 | struct Limit {
58 | static let one = kSecMatchLimitOne
59 | static let all = kSecMatchLimitAll
| |- warning: static property 'all' is not concurrency-safe because non-'Sendable' type 'CFString' may have shared mutable state; this is an error in the Swift 6 language mode
| |- 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
60 | }
61 | }
CoreFoundation.CFString:1:14: note: class 'CFString' does not conform to the 'Sendable' protocol
1 | public class CFString : _CFObject {
| `- note: class 'CFString' does not conform to the 'Sendable' protocol
2 | }
[12/28] Compiling Prephirences UserDefaultsKeys.swift
/Users/admin/builder/spi-builder-workspace/Sources/KeychainPreferences.swift:40:23: warning: static property 'sharedInstance' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
38 |
39 | /// Shared instance. service is equal to bundle identifier.
40 | public static var sharedInstance = KeychainPreferences(service: Bundle.main.bundleIdentifier ?? "Prephirences")
| |- warning: static property 'sharedInstance' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'sharedInstance' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'sharedInstance' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
41 |
42 | /// Class Constants
/Users/admin/builder/spi-builder-workspace/Sources/KeychainPreferences.swift:58:24: warning: static property 'one' is not concurrency-safe because non-'Sendable' type 'CFString' may have shared mutable state; this is an error in the Swift 6 language mode
56 |
57 | struct Limit {
58 | static let one = kSecMatchLimitOne
| `- warning: static property 'one' is not concurrency-safe because non-'Sendable' type 'CFString' may have shared mutable state; this is an error in the Swift 6 language mode
59 | static let all = kSecMatchLimitAll
60 | }
CoreFoundation.CFString:1:14: note: class 'CFString' does not conform to the 'Sendable' protocol
1 | public class CFString : _CFObject {
| `- note: class 'CFString' does not conform to the 'Sendable' protocol
2 | }
/Users/admin/builder/spi-builder-workspace/Sources/KeychainPreferences.swift:28:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'CoreFoundation'
26 | */
27 |
28 | import Foundation
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'CoreFoundation'
29 | import Security
30 |
:
56 |
57 | struct Limit {
58 | static let one = kSecMatchLimitOne
| |- note: add '@MainActor' to make static property 'one' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
59 | static let all = kSecMatchLimitAll
60 | }
/Users/admin/builder/spi-builder-workspace/Sources/KeychainPreferences.swift:59:24: warning: static property 'all' is not concurrency-safe because non-'Sendable' type 'CFString' may have shared mutable state; this is an error in the Swift 6 language mode
57 | struct Limit {
58 | static let one = kSecMatchLimitOne
59 | static let all = kSecMatchLimitAll
| |- warning: static property 'all' is not concurrency-safe because non-'Sendable' type 'CFString' may have shared mutable state; this is an error in the Swift 6 language mode
| |- 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
60 | }
61 | }
CoreFoundation.CFString:1:14: note: class 'CFString' does not conform to the 'Sendable' protocol
1 | public class CFString : _CFObject {
| `- note: class 'CFString' does not conform to the 'Sendable' protocol
2 | }
[13/28] Emitting module Prephirences
/Users/admin/builder/spi-builder-workspace/Sources/KeychainPreferences.swift:40:23: warning: static property 'sharedInstance' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
38 |
39 | /// Shared instance. service is equal to bundle identifier.
40 | public static var sharedInstance = KeychainPreferences(service: Bundle.main.bundleIdentifier ?? "Prephirences")
| |- warning: static property 'sharedInstance' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'sharedInstance' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'sharedInstance' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
41 |
42 | /// Class Constants
/Users/admin/builder/spi-builder-workspace/Sources/KeychainPreferences.swift:58:24: warning: static property 'one' is not concurrency-safe because non-'Sendable' type 'CFString' may have shared mutable state; this is an error in the Swift 6 language mode
56 |
57 | struct Limit {
58 | static let one = kSecMatchLimitOne
| `- warning: static property 'one' is not concurrency-safe because non-'Sendable' type 'CFString' may have shared mutable state; this is an error in the Swift 6 language mode
59 | static let all = kSecMatchLimitAll
60 | }
CoreFoundation.CFString:1:14: note: class 'CFString' does not conform to the 'Sendable' protocol
1 | public class CFString : _CFObject {
| `- note: class 'CFString' does not conform to the 'Sendable' protocol
2 | }
/Users/admin/builder/spi-builder-workspace/Sources/KeychainPreferences.swift:28:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'CoreFoundation'
26 | */
27 |
28 | import Foundation
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'CoreFoundation'
29 | import Security
30 |
:
56 |
57 | struct Limit {
58 | static let one = kSecMatchLimitOne
| |- note: add '@MainActor' to make static property 'one' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
59 | static let all = kSecMatchLimitAll
60 | }
/Users/admin/builder/spi-builder-workspace/Sources/KeychainPreferences.swift:59:24: warning: static property 'all' is not concurrency-safe because non-'Sendable' type 'CFString' may have shared mutable state; this is an error in the Swift 6 language mode
57 | struct Limit {
58 | static let one = kSecMatchLimitOne
59 | static let all = kSecMatchLimitAll
| |- warning: static property 'all' is not concurrency-safe because non-'Sendable' type 'CFString' may have shared mutable state; this is an error in the Swift 6 language mode
| |- 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
60 | }
61 | }
CoreFoundation.CFString:1:14: note: class 'CFString' does not conform to the 'Sendable' protocol
1 | public class CFString : _CFObject {
| `- note: class 'CFString' does not conform to the 'Sendable' protocol
2 | }
/Users/admin/builder/spi-builder-workspace/Sources/PatternPreferences.swift:45:16: warning: static property 'sharedInstance' is not concurrency-safe because non-'Sendable' type 'CompositePreferences' may have shared mutable state; this is an error in the Swift 6 language mode
32 | /// A `PreferencesType` which could agregate multiple `PreferencesType`.
33 | /// The first `PreferencesType` which defined a key, will return its value.
34 | open class CompositePreferences: ExpressibleByArrayLiteral {
| `- note: class 'CompositePreferences' does not conform to the 'Sendable' protocol
35 |
36 | var _array: [PreferencesType] = []
:
43 | // MARK: singleton
44 | /// Shared instance.
45 | static let sharedInstance = CompositePreferences([])
| |- warning: static property 'sharedInstance' is not concurrency-safe because non-'Sendable' type 'CompositePreferences' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'sharedInstance' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
46 |
47 | // MARK: init
/Users/admin/builder/spi-builder-workspace/Sources/PreferencesController.swift:60:27: warning: static property 'sharedUserDefaultsController' is not concurrency-safe because non-'Sendable' type 'PreferencesController' may have shared mutable state; this is an error in the Swift 6 language mode
54 |
55 | @objc(PreferencesController)
56 | public class PreferencesController: NSController {
| `- note: class 'PreferencesController' does not conform to the 'Sendable' protocol
57 |
58 | public var values = PreferencesKVCHelper(preferences: nil)
59 |
60 | public static let sharedUserDefaultsController = PreferencesController(preferences: Foundation.UserDefaults.standard)
| |- warning: static property 'sharedUserDefaultsController' is not concurrency-safe because non-'Sendable' type 'PreferencesController' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'sharedUserDefaultsController' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
61 |
62 | public override init() {
/Users/admin/builder/spi-builder-workspace/Sources/PrephirenceType+Codable.swift:12:23: warning: static property 'jsonDecoder' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
10 |
11 | extension Prephirences {
12 | public static var jsonDecoder = JSONDecoder()
| |- warning: static property 'jsonDecoder' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'jsonDecoder' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'jsonDecoder' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
13 | public static var jsonEncoder = JSONEncoder()
14 | }
/Users/admin/builder/spi-builder-workspace/Sources/PrephirenceType+Codable.swift:13:23: warning: static property 'jsonEncoder' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
11 | extension Prephirences {
12 | public static var jsonDecoder = JSONDecoder()
13 | public static var jsonEncoder = JSONEncoder()
| |- warning: static property 'jsonEncoder' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'jsonEncoder' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'jsonEncoder' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
14 | }
15 |
/Users/admin/builder/spi-builder-workspace/Sources/Prephirences.swift:34:23: warning: static property 'sharedInstance' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
32 |
33 | /** Shared preferences. Could be replaced by any other preferences */
34 | public static var sharedInstance: PreferencesType = MutableDictionaryPreferences()
| |- warning: static property 'sharedInstance' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'sharedInstance' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'sharedInstance' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
35 |
36 | // casting shortcut for sharedInstance
/Users/admin/builder/spi-builder-workspace/Sources/Prephirences.swift:42:28: warning: static property '_instances' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
40 |
41 | // MARK: register by key
42 | fileprivate static var _instances = [PrephirencesKey: PreferencesType]()
| |- warning: static property '_instances' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert '_instances' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property '_instances' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
43 |
44 | /* Get Preferences for PrephirencesKey */
/Users/admin/builder/spi-builder-workspace/Sources/UserDefaults/UserDefaults+Adds.swift:111:12: warning: var 'UserDefaultsKeySeparator' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
109 |
110 | // MARK: Global shortcut
111 | public var UserDefaultsKeySeparator = "."
| |- warning: var 'UserDefaultsKeySeparator' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'UserDefaultsKeySeparator' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make var 'UserDefaultsKeySeparator' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
112 |
113 | #if os(OSX)
/Users/admin/builder/spi-builder-workspace/Sources/UserDefaults/UserDefaults+Adds.swift:115:12: warning: var 'UserDefaultsController' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
113 | #if os(OSX)
114 | import AppKit
115 | public var UserDefaultsController = NSUserDefaultsController.shared
| |- warning: var 'UserDefaultsController' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'UserDefaultsController' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make var 'UserDefaultsController' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
116 |
117 | // http://stackoverflow.com/questions/29312106/xcode-6-os-x-storyboard-multiple-user-defaults-controllers-bug-with-multiple-sce/29509031#29509031
[14/28] Compiling Prephirences PrephirenceType+Codable.swift
/Users/admin/builder/spi-builder-workspace/Sources/PrephirenceType+Codable.swift:12:23: warning: static property 'jsonDecoder' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
10 |
11 | extension Prephirences {
12 | public static var jsonDecoder = JSONDecoder()
| |- warning: static property 'jsonDecoder' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'jsonDecoder' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'jsonDecoder' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
13 | public static var jsonEncoder = JSONEncoder()
14 | }
/Users/admin/builder/spi-builder-workspace/Sources/PrephirenceType+Codable.swift:13:23: warning: static property 'jsonEncoder' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
11 | extension Prephirences {
12 | public static var jsonDecoder = JSONDecoder()
13 | public static var jsonEncoder = JSONEncoder()
| |- warning: static property 'jsonEncoder' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'jsonEncoder' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'jsonEncoder' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
14 | }
15 |
/Users/admin/builder/spi-builder-workspace/Sources/Prephirences.swift:34:23: warning: static property 'sharedInstance' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
32 |
33 | /** Shared preferences. Could be replaced by any other preferences */
34 | public static var sharedInstance: PreferencesType = MutableDictionaryPreferences()
| |- warning: static property 'sharedInstance' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'sharedInstance' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'sharedInstance' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
35 |
36 | // casting shortcut for sharedInstance
/Users/admin/builder/spi-builder-workspace/Sources/Prephirences.swift:42:28: warning: static property '_instances' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
40 |
41 | // MARK: register by key
42 | fileprivate static var _instances = [PrephirencesKey: PreferencesType]()
| |- warning: static property '_instances' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert '_instances' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property '_instances' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
43 |
44 | /* Get Preferences for PrephirencesKey */
[15/28] Compiling Prephirences Prephirences.swift
/Users/admin/builder/spi-builder-workspace/Sources/PrephirenceType+Codable.swift:12:23: warning: static property 'jsonDecoder' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
10 |
11 | extension Prephirences {
12 | public static var jsonDecoder = JSONDecoder()
| |- warning: static property 'jsonDecoder' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'jsonDecoder' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'jsonDecoder' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
13 | public static var jsonEncoder = JSONEncoder()
14 | }
/Users/admin/builder/spi-builder-workspace/Sources/PrephirenceType+Codable.swift:13:23: warning: static property 'jsonEncoder' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
11 | extension Prephirences {
12 | public static var jsonDecoder = JSONDecoder()
13 | public static var jsonEncoder = JSONEncoder()
| |- warning: static property 'jsonEncoder' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'jsonEncoder' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'jsonEncoder' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
14 | }
15 |
/Users/admin/builder/spi-builder-workspace/Sources/Prephirences.swift:34:23: warning: static property 'sharedInstance' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
32 |
33 | /** Shared preferences. Could be replaced by any other preferences */
34 | public static var sharedInstance: PreferencesType = MutableDictionaryPreferences()
| |- warning: static property 'sharedInstance' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'sharedInstance' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'sharedInstance' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
35 |
36 | // casting shortcut for sharedInstance
/Users/admin/builder/spi-builder-workspace/Sources/Prephirences.swift:42:28: warning: static property '_instances' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
40 |
41 | // MARK: register by key
42 | fileprivate static var _instances = [PrephirencesKey: PreferencesType]()
| |- warning: static property '_instances' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert '_instances' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property '_instances' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
43 |
44 | /* Get Preferences for PrephirencesKey */
[16/28] Compiling Prephirences Bundle.swift
[17/28] Compiling Prephirences ManagedObjectPreferences.swift
[18/28] Compiling Prephirences DictionaryPreferences.swift
[19/28] Compiling Prephirences NSUbiquitousKeyValueStore+Prephirences.swift
/Users/admin/builder/spi-builder-workspace/Sources/PatternPreferences.swift:45:16: warning: static property 'sharedInstance' is not concurrency-safe because non-'Sendable' type 'CompositePreferences' may have shared mutable state; this is an error in the Swift 6 language mode
32 | /// A `PreferencesType` which could agregate multiple `PreferencesType`.
33 | /// The first `PreferencesType` which defined a key, will return its value.
34 | open class CompositePreferences: ExpressibleByArrayLiteral {
| `- note: class 'CompositePreferences' does not conform to the 'Sendable' protocol
35 |
36 | var _array: [PreferencesType] = []
:
43 | // MARK: singleton
44 | /// Shared instance.
45 | static let sharedInstance = CompositePreferences([])
| |- warning: static property 'sharedInstance' is not concurrency-safe because non-'Sendable' type 'CompositePreferences' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'sharedInstance' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
46 |
47 | // MARK: init
[20/28] Compiling Prephirences PatternPreferences.swift
/Users/admin/builder/spi-builder-workspace/Sources/PatternPreferences.swift:45:16: warning: static property 'sharedInstance' is not concurrency-safe because non-'Sendable' type 'CompositePreferences' may have shared mutable state; this is an error in the Swift 6 language mode
32 | /// A `PreferencesType` which could agregate multiple `PreferencesType`.
33 | /// The first `PreferencesType` which defined a key, will return its value.
34 | open class CompositePreferences: ExpressibleByArrayLiteral {
| `- note: class 'CompositePreferences' does not conform to the 'Sendable' protocol
35 |
36 | var _array: [PreferencesType] = []
:
43 | // MARK: singleton
44 | /// Shared instance.
45 | static let sharedInstance = CompositePreferences([])
| |- warning: static property 'sharedInstance' is not concurrency-safe because non-'Sendable' type 'CompositePreferences' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'sharedInstance' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
46 |
47 | // MARK: init
[21/28] Compiling Prephirences Plist.swift
/Users/admin/builder/spi-builder-workspace/Sources/PatternPreferences.swift:45:16: warning: static property 'sharedInstance' is not concurrency-safe because non-'Sendable' type 'CompositePreferences' may have shared mutable state; this is an error in the Swift 6 language mode
32 | /// A `PreferencesType` which could agregate multiple `PreferencesType`.
33 | /// The first `PreferencesType` which defined a key, will return its value.
34 | open class CompositePreferences: ExpressibleByArrayLiteral {
| `- note: class 'CompositePreferences' does not conform to the 'Sendable' protocol
35 |
36 | var _array: [PreferencesType] = []
:
43 | // MARK: singleton
44 | /// Shared instance.
45 | static let sharedInstance = CompositePreferences([])
| |- warning: static property 'sharedInstance' is not concurrency-safe because non-'Sendable' type 'CompositePreferences' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'sharedInstance' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
46 |
47 | // MARK: init
[22/28] Compiling Prephirences Preference.swift
[23/28] Compiling Prephirences PreferenceOperators.swift
[24/28] Compiling Prephirences PreferenceTransformation.swift
[25/28] Compiling Prephirences PreferencesController.swift
/Users/admin/builder/spi-builder-workspace/Sources/PreferencesController.swift:60:27: warning: static property 'sharedUserDefaultsController' is not concurrency-safe because non-'Sendable' type 'PreferencesController' may have shared mutable state; this is an error in the Swift 6 language mode
54 |
55 | @objc(PreferencesController)
56 | public class PreferencesController: NSController {
| `- note: class 'PreferencesController' does not conform to the 'Sendable' protocol
57 |
58 | public var values = PreferencesKVCHelper(preferences: nil)
59 |
60 | public static let sharedUserDefaultsController = PreferencesController(preferences: Foundation.UserDefaults.standard)
| |- warning: static property 'sharedUserDefaultsController' is not concurrency-safe because non-'Sendable' type 'PreferencesController' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'sharedUserDefaultsController' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
61 |
62 | public override init() {
[26/28] Compiling Prephirences PreferencesOperators.swift
/Users/admin/builder/spi-builder-workspace/Sources/PreferencesController.swift:60:27: warning: static property 'sharedUserDefaultsController' is not concurrency-safe because non-'Sendable' type 'PreferencesController' may have shared mutable state; this is an error in the Swift 6 language mode
54 |
55 | @objc(PreferencesController)
56 | public class PreferencesController: NSController {
| `- note: class 'PreferencesController' does not conform to the 'Sendable' protocol
57 |
58 | public var values = PreferencesKVCHelper(preferences: nil)
59 |
60 | public static let sharedUserDefaultsController = PreferencesController(preferences: Foundation.UserDefaults.standard)
| |- warning: static property 'sharedUserDefaultsController' is not concurrency-safe because non-'Sendable' type 'PreferencesController' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'sharedUserDefaultsController' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
61 |
62 | public override init() {
[27/28] Compiling Prephirences UserDefaults+Prephirences.swift
/Users/admin/builder/spi-builder-workspace/Sources/UserDefaults/UserDefaults+Adds.swift:111:12: warning: var 'UserDefaultsKeySeparator' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
109 |
110 | // MARK: Global shortcut
111 | public var UserDefaultsKeySeparator = "."
| |- warning: var 'UserDefaultsKeySeparator' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'UserDefaultsKeySeparator' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make var 'UserDefaultsKeySeparator' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
112 |
113 | #if os(OSX)
/Users/admin/builder/spi-builder-workspace/Sources/UserDefaults/UserDefaults+Adds.swift:115:12: warning: var 'UserDefaultsController' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
113 | #if os(OSX)
114 | import AppKit
115 | public var UserDefaultsController = NSUserDefaultsController.shared
| |- warning: var 'UserDefaultsController' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'UserDefaultsController' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make var 'UserDefaultsController' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
116 |
117 | // http://stackoverflow.com/questions/29312106/xcode-6-os-x-storyboard-multiple-user-defaults-controllers-bug-with-multiple-sce/29509031#29509031
[28/28] Compiling Prephirences UserDefaults+Adds.swift
/Users/admin/builder/spi-builder-workspace/Sources/UserDefaults/UserDefaults+Adds.swift:111:12: warning: var 'UserDefaultsKeySeparator' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
109 |
110 | // MARK: Global shortcut
111 | public var UserDefaultsKeySeparator = "."
| |- warning: var 'UserDefaultsKeySeparator' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'UserDefaultsKeySeparator' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make var 'UserDefaultsKeySeparator' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
112 |
113 | #if os(OSX)
/Users/admin/builder/spi-builder-workspace/Sources/UserDefaults/UserDefaults+Adds.swift:115:12: warning: var 'UserDefaultsController' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
113 | #if os(OSX)
114 | import AppKit
115 | public var UserDefaultsController = NSUserDefaultsController.shared
| |- warning: var 'UserDefaultsController' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'UserDefaultsController' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make var 'UserDefaultsController' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
116 |
117 | // http://stackoverflow.com/questions/29312106/xcode-6-os-x-storyboard-multiple-user-defaults-controllers-bug-with-multiple-sce/29509031#29509031
Build complete! (8.24s)
Build complete.
{
"dependencies" : [
],
"manifest_display_name" : "Prephirences",
"name" : "Prephirences",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
{
"name" : "macos",
"version" : "10.11"
},
{
"name" : "ios",
"version" : "9.0"
},
{
"name" : "tvos",
"version" : "9.0"
},
{
"name" : "watchos",
"version" : "3.0"
}
],
"products" : [
{
"name" : "Prephirences",
"targets" : [
"Prephirences"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"swift_languages_versions" : [
"5"
],
"targets" : [
{
"c99name" : "PrephirencesTests",
"module_type" : "SwiftTarget",
"name" : "PrephirencesTests",
"path" : "Tests",
"sources" : [
"KeychainTests.swift",
"PrephirencesTests.swift"
],
"target_dependencies" : [
"Prephirences"
],
"type" : "test"
},
{
"c99name" : "Prephirences",
"module_type" : "SwiftTarget",
"name" : "Prephirences",
"path" : "Sources",
"product_memberships" : [
"Prephirences"
],
"sources" : [
"Bundle.swift",
"CoreData/ManagedObjectPreferences.swift",
"DictionaryPreferences.swift",
"KeychainPreferences.swift",
"Keys/PropertyListKeys.swift",
"Keys/UserDefaultsKeys.swift",
"NSCachePreferences.swift",
"NSCoder+Prephirences.swift",
"NSHTTPCookieStorage+Prephirences.swift",
"NSUbiquitousKeyValueStore+Prephirences.swift",
"PatternPreferences.swift",
"Plist.swift",
"Preference.swift",
"PreferenceOperators.swift",
"PreferenceTransformation.swift",
"PreferencesController.swift",
"PreferencesOperators.swift",
"PreferencesType.swift",
"Prephirencable.swift",
"PrephirenceType+Codable.swift",
"Prephirences.swift",
"RawRepresentableKey/RawRepresentable+Prephirences.swift",
"ReflectingPreferences.swift",
"UserDefaults+Prephirences.swift",
"UserDefaults/UserDefaults+Adds.swift"
],
"type" : "library"
}
],
"tools_version" : "5.5"
}
Done.