Build Information
Successful build of CodeQuickKit, reference main (2c355b
), with Swift 6.0 for macOS (SPM) on 2 Nov 2024 19:39:05 UTC.
Swift 6 data race errors: 4
Build Command
env DEVELOPER_DIR=/Applications/Xcode-16.1.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete
Build Log
========================================
RunAll
========================================
Builder version: 4.56.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/richardpiazza/CodeQuickKit.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/richardpiazza/CodeQuickKit
* branch main -> FETCH_HEAD
* [new branch] main -> origin/main
HEAD is now at 2c355b1 ActivityAlert Dispatch (#9)
Cloned https://github.com/richardpiazza/CodeQuickKit.git
Revision (git rev-parse @):
2c355b11ef3a9ede157dc15a80d4dd02e6041a2f
SUCCESS checkout https://github.com/richardpiazza/CodeQuickKit.git at main
========================================
ResolveProductDependencies
========================================
Resolving dependencies ...
{
"identity": ".resolve-product-dependencies",
"name": "resolve-dependencies",
"url": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
"version": "unspecified",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
"dependencies": [
{
"identity": "codequickkit",
"name": "CodeQuickKit",
"url": "https://github.com/richardpiazza/CodeQuickKit.git",
"version": "unspecified",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/CodeQuickKit",
"dependencies": [
]
}
]
}
Fetching https://github.com/richardpiazza/CodeQuickKit.git
[1/2200] Fetching codequickkit
Fetched https://github.com/richardpiazza/CodeQuickKit.git from cache (0.98s)
Creating working copy for https://github.com/richardpiazza/CodeQuickKit.git
Working copy of https://github.com/richardpiazza/CodeQuickKit.git resolved at main (2c355b1)
warning: '.resolve-product-dependencies': dependency 'codequickkit' is not used by any target
Found 0 product dependencies
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 6.0
Building package at path: $PWD
https://github.com/richardpiazza/CodeQuickKit.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.1.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version--7754E27361AE5C74.txt
[3/28] Emitting module CodeQuickKit
/Users/admin/builder/spi-builder-workspace/Sources/CodeQuickKit/Foundation/FileManager.swift:235:16: warning: static property 'ubiquityContainer' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
233 | }
234 |
235 | static var ubiquityContainer: DocumentsUbiquityContainer = DocumentsUbiquityContainer()
| |- warning: static property 'ubiquityContainer' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'ubiquityContainer' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'ubiquityContainer' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
236 | }
237 | #endif
/Users/admin/builder/spi-builder-workspace/Sources/CodeQuickKit/Foundation/Ubiquity.swift:39:23: warning: static property 'defaultContainer' is not concurrency-safe because non-'Sendable' type 'UbiquityContainer' may have shared mutable state; this is an error in the Swift 6 language mode
36 | }
37 |
38 | open class UbiquityContainer: UbiquityContainerDelegate {
| `- note: class 'UbiquityContainer' does not conform to the 'Sendable' protocol
39 | public static let defaultContainer: UbiquityContainer = UbiquityContainer()
| |- warning: static property 'defaultContainer' is not concurrency-safe because non-'Sendable' type 'UbiquityContainer' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'defaultContainer' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
40 |
41 | public internal(set) var identifier: String?
/Users/admin/builder/spi-builder-workspace/Sources/CodeQuickKit/Foundation/UserDefaults.swift:183:16: warning: static property 'ubiquityUserDefaults' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
181 |
182 | public extension UserDefaults {
183 | static var ubiquityUserDefaults: KeyValueUbiquityContainer = KeyValueUbiquityContainer()
| |- warning: static property 'ubiquityUserDefaults' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'ubiquityUserDefaults' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'ubiquityUserDefaults' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
184 |
185 | /// Attempts to set an item on `NSUbiquitousKeyValueStore`. Will fallback to `NSUserDefaults`
/Users/admin/builder/spi-builder-workspace/Sources/CodeQuickKit/Swift/DependencyCache.swift:24:23: warning: static property 'shared' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
22 | }
23 |
24 | public static var shared: DependencyCache = .init()
| |- warning: static property 'shared' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'shared' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'shared' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
25 |
26 | /// Dependencies maintained by the cache
[4/30] Compiling CodeQuickKit DependencySupplier.swift
[5/30] Compiling CodeQuickKit Sequence+KeyPath.swift
[6/30] Compiling CodeQuickKit Sequence+SplitBefore.swift
[7/30] Compiling CodeQuickKit NSMutableAttributedString.swift
[8/30] Compiling CodeQuickKit Reusable.swift
[9/30] Compiling CodeQuickKit ActivityAlertView.swift
[10/30] Compiling CodeQuickKit Bundle+Storyboards.swift
[11/30] Compiling CodeQuickKit HUD.swift
[12/30] Compiling CodeQuickKit UIPickerView.swift
[13/30] Compiling CodeQuickKit UIViewController.swift
[14/30] Compiling CodeQuickKit UIAlertController+ActivityAlert.swift
[15/30] Compiling CodeQuickKit UIAlertController.swift
[16/30] Compiling CodeQuickKit UserDefaults.swift
/Users/admin/builder/spi-builder-workspace/Sources/CodeQuickKit/Foundation/UserDefaults.swift:183:16: warning: static property 'ubiquityUserDefaults' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
181 |
182 | public extension UserDefaults {
183 | static var ubiquityUserDefaults: KeyValueUbiquityContainer = KeyValueUbiquityContainer()
| |- warning: static property 'ubiquityUserDefaults' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'ubiquityUserDefaults' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'ubiquityUserDefaults' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
184 |
185 | /// Attempts to set an item on `NSUbiquitousKeyValueStore`. Will fallback to `NSUserDefaults`
/Users/admin/builder/spi-builder-workspace/Sources/CodeQuickKit/Swift/DependencyCache.swift:24:23: warning: static property 'shared' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
22 | }
23 |
24 | public static var shared: DependencyCache = .init()
| |- warning: static property 'shared' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'shared' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'shared' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
25 |
26 | /// Dependencies maintained by the cache
[17/30] Compiling CodeQuickKit Dependency.swift
/Users/admin/builder/spi-builder-workspace/Sources/CodeQuickKit/Foundation/UserDefaults.swift:183:16: warning: static property 'ubiquityUserDefaults' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
181 |
182 | public extension UserDefaults {
183 | static var ubiquityUserDefaults: KeyValueUbiquityContainer = KeyValueUbiquityContainer()
| |- warning: static property 'ubiquityUserDefaults' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'ubiquityUserDefaults' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'ubiquityUserDefaults' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
184 |
185 | /// Attempts to set an item on `NSUbiquitousKeyValueStore`. Will fallback to `NSUserDefaults`
/Users/admin/builder/spi-builder-workspace/Sources/CodeQuickKit/Swift/DependencyCache.swift:24:23: warning: static property 'shared' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
22 | }
23 |
24 | public static var shared: DependencyCache = .init()
| |- warning: static property 'shared' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'shared' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'shared' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
25 |
26 | /// Dependencies maintained by the cache
[18/30] Compiling CodeQuickKit DependencyCache.swift
/Users/admin/builder/spi-builder-workspace/Sources/CodeQuickKit/Foundation/UserDefaults.swift:183:16: warning: static property 'ubiquityUserDefaults' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
181 |
182 | public extension UserDefaults {
183 | static var ubiquityUserDefaults: KeyValueUbiquityContainer = KeyValueUbiquityContainer()
| |- warning: static property 'ubiquityUserDefaults' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'ubiquityUserDefaults' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'ubiquityUserDefaults' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
184 |
185 | /// Attempts to set an item on `NSUbiquitousKeyValueStore`. Will fallback to `NSUserDefaults`
/Users/admin/builder/spi-builder-workspace/Sources/CodeQuickKit/Swift/DependencyCache.swift:24:23: warning: static property 'shared' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
22 | }
23 |
24 | public static var shared: DependencyCache = .init()
| |- warning: static property 'shared' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'shared' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'shared' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
25 |
26 | /// Dependencies maintained by the cache
[19/30] Compiling CodeQuickKit StringProtocol+Replacement.swift
/Users/admin/builder/spi-builder-workspace/Sources/CodeQuickKit/Foundation/Ubiquity.swift:39:23: warning: static property 'defaultContainer' is not concurrency-safe because non-'Sendable' type 'UbiquityContainer' may have shared mutable state; this is an error in the Swift 6 language mode
36 | }
37 |
38 | open class UbiquityContainer: UbiquityContainerDelegate {
| `- note: class 'UbiquityContainer' does not conform to the 'Sendable' protocol
39 | public static let defaultContainer: UbiquityContainer = UbiquityContainer()
| |- warning: static property 'defaultContainer' is not concurrency-safe because non-'Sendable' type 'UbiquityContainer' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'defaultContainer' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
40 |
41 | public internal(set) var identifier: String?
/Users/admin/builder/spi-builder-workspace/Sources/CodeQuickKit/Foundation/Ubiquity.swift:67:13: warning: capture of 'self' with non-sendable type 'UbiquityContainer' in a `@Sendable` closure; this is an error in the Swift 6 language mode
36 | }
37 |
38 | open class UbiquityContainer: UbiquityContainerDelegate {
| `- note: class 'UbiquityContainer' does not conform to the 'Sendable' protocol
39 | public static let defaultContainer: UbiquityContainer = UbiquityContainer()
40 |
:
65 |
66 | DispatchQueue.global(qos: .default).async {
67 | self.directory = FileManager.default.url(forUbiquityContainerIdentifier: identifier)
| `- warning: capture of 'self' with non-sendable type 'UbiquityContainer' in a `@Sendable` closure; this is an error in the Swift 6 language mode
68 | let newState = self.ubiquityState
69 |
/Users/admin/builder/spi-builder-workspace/Sources/CodeQuickKit/Foundation/Ubiquity.swift:72:53: warning: capture of 'oldState' with non-sendable type 'UbiquityState' in a `@Sendable` closure; this is an error in the Swift 6 language mode
2 | import Foundation
3 |
4 | public enum UbiquityState {
| `- note: consider making enum 'UbiquityState' conform to the 'Sendable' protocol
5 | case disabled
6 | case deviceOnly
:
70 | if let delegate = self.delegate {
71 | DispatchQueue.main.async(execute: {
72 | delegate.ubiquityStateDidChange(oldState, newState: newState)
| `- warning: capture of 'oldState' with non-sendable type 'UbiquityState' in a `@Sendable` closure; this is an error in the Swift 6 language mode
73 | })
74 | }
/Users/admin/builder/spi-builder-workspace/Sources/CodeQuickKit/Foundation/Ubiquity.swift:72:21: warning: capture of 'delegate' with non-sendable type 'any UbiquityContainerDelegate' in a `@Sendable` closure; this is an error in the Swift 6 language mode
32 | }
33 |
34 | public protocol UbiquityContainerDelegate {
| `- note: protocol 'UbiquityContainerDelegate' does not conform to the 'Sendable' protocol
35 | func ubiquityStateDidChange(_ oldState: UbiquityState, newState: UbiquityState)
36 | }
:
70 | if let delegate = self.delegate {
71 | DispatchQueue.main.async(execute: {
72 | delegate.ubiquityStateDidChange(oldState, newState: newState)
| `- warning: capture of 'delegate' with non-sendable type 'any UbiquityContainerDelegate' in a `@Sendable` closure; this is an error in the Swift 6 language mode
73 | })
74 | }
/Users/admin/builder/spi-builder-workspace/Sources/CodeQuickKit/Foundation/Ubiquity.swift:72:53: warning: capture of 'oldState' with non-sendable type 'UbiquityState' in a `@Sendable` closure; this is an error in the Swift 6 language mode
2 | import Foundation
3 |
4 | public enum UbiquityState {
| `- note: consider making enum 'UbiquityState' conform to the 'Sendable' protocol
5 | case disabled
6 | case deviceOnly
:
70 | if let delegate = self.delegate {
71 | DispatchQueue.main.async(execute: {
72 | delegate.ubiquityStateDidChange(oldState, newState: newState)
| `- warning: capture of 'oldState' with non-sendable type 'UbiquityState' in a `@Sendable` closure; this is an error in the Swift 6 language mode
73 | })
74 | }
/Users/admin/builder/spi-builder-workspace/Sources/CodeQuickKit/Foundation/Ubiquity.swift:72:73: warning: capture of 'newState' with non-sendable type 'UbiquityState' in a `@Sendable` closure; this is an error in the Swift 6 language mode
2 | import Foundation
3 |
4 | public enum UbiquityState {
| `- note: consider making enum 'UbiquityState' conform to the 'Sendable' protocol
5 | case disabled
6 | case deviceOnly
:
70 | if let delegate = self.delegate {
71 | DispatchQueue.main.async(execute: {
72 | delegate.ubiquityStateDidChange(oldState, newState: newState)
| `- warning: capture of 'newState' with non-sendable type 'UbiquityState' in a `@Sendable` closure; this is an error in the Swift 6 language mode
73 | })
74 | }
/Users/admin/builder/spi-builder-workspace/Sources/CodeQuickKit/Foundation/Ubiquity.swift:72:21: warning: sending 'delegate' risks causing data races; this is an error in the Swift 6 language mode
69 |
70 | if let delegate = self.delegate {
71 | DispatchQueue.main.async(execute: {
| `- note: access can happen concurrently
72 | delegate.ubiquityStateDidChange(oldState, newState: newState)
| |- warning: sending 'delegate' risks causing data races; this is an error in the Swift 6 language mode
| `- note: 'delegate' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
73 | })
74 | }
[20/30] Compiling CodeQuickKit Ubiquity.swift
/Users/admin/builder/spi-builder-workspace/Sources/CodeQuickKit/Foundation/Ubiquity.swift:39:23: warning: static property 'defaultContainer' is not concurrency-safe because non-'Sendable' type 'UbiquityContainer' may have shared mutable state; this is an error in the Swift 6 language mode
36 | }
37 |
38 | open class UbiquityContainer: UbiquityContainerDelegate {
| `- note: class 'UbiquityContainer' does not conform to the 'Sendable' protocol
39 | public static let defaultContainer: UbiquityContainer = UbiquityContainer()
| |- warning: static property 'defaultContainer' is not concurrency-safe because non-'Sendable' type 'UbiquityContainer' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'defaultContainer' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
40 |
41 | public internal(set) var identifier: String?
/Users/admin/builder/spi-builder-workspace/Sources/CodeQuickKit/Foundation/Ubiquity.swift:67:13: warning: capture of 'self' with non-sendable type 'UbiquityContainer' in a `@Sendable` closure; this is an error in the Swift 6 language mode
36 | }
37 |
38 | open class UbiquityContainer: UbiquityContainerDelegate {
| `- note: class 'UbiquityContainer' does not conform to the 'Sendable' protocol
39 | public static let defaultContainer: UbiquityContainer = UbiquityContainer()
40 |
:
65 |
66 | DispatchQueue.global(qos: .default).async {
67 | self.directory = FileManager.default.url(forUbiquityContainerIdentifier: identifier)
| `- warning: capture of 'self' with non-sendable type 'UbiquityContainer' in a `@Sendable` closure; this is an error in the Swift 6 language mode
68 | let newState = self.ubiquityState
69 |
/Users/admin/builder/spi-builder-workspace/Sources/CodeQuickKit/Foundation/Ubiquity.swift:72:53: warning: capture of 'oldState' with non-sendable type 'UbiquityState' in a `@Sendable` closure; this is an error in the Swift 6 language mode
2 | import Foundation
3 |
4 | public enum UbiquityState {
| `- note: consider making enum 'UbiquityState' conform to the 'Sendable' protocol
5 | case disabled
6 | case deviceOnly
:
70 | if let delegate = self.delegate {
71 | DispatchQueue.main.async(execute: {
72 | delegate.ubiquityStateDidChange(oldState, newState: newState)
| `- warning: capture of 'oldState' with non-sendable type 'UbiquityState' in a `@Sendable` closure; this is an error in the Swift 6 language mode
73 | })
74 | }
/Users/admin/builder/spi-builder-workspace/Sources/CodeQuickKit/Foundation/Ubiquity.swift:72:21: warning: capture of 'delegate' with non-sendable type 'any UbiquityContainerDelegate' in a `@Sendable` closure; this is an error in the Swift 6 language mode
32 | }
33 |
34 | public protocol UbiquityContainerDelegate {
| `- note: protocol 'UbiquityContainerDelegate' does not conform to the 'Sendable' protocol
35 | func ubiquityStateDidChange(_ oldState: UbiquityState, newState: UbiquityState)
36 | }
:
70 | if let delegate = self.delegate {
71 | DispatchQueue.main.async(execute: {
72 | delegate.ubiquityStateDidChange(oldState, newState: newState)
| `- warning: capture of 'delegate' with non-sendable type 'any UbiquityContainerDelegate' in a `@Sendable` closure; this is an error in the Swift 6 language mode
73 | })
74 | }
/Users/admin/builder/spi-builder-workspace/Sources/CodeQuickKit/Foundation/Ubiquity.swift:72:53: warning: capture of 'oldState' with non-sendable type 'UbiquityState' in a `@Sendable` closure; this is an error in the Swift 6 language mode
2 | import Foundation
3 |
4 | public enum UbiquityState {
| `- note: consider making enum 'UbiquityState' conform to the 'Sendable' protocol
5 | case disabled
6 | case deviceOnly
:
70 | if let delegate = self.delegate {
71 | DispatchQueue.main.async(execute: {
72 | delegate.ubiquityStateDidChange(oldState, newState: newState)
| `- warning: capture of 'oldState' with non-sendable type 'UbiquityState' in a `@Sendable` closure; this is an error in the Swift 6 language mode
73 | })
74 | }
/Users/admin/builder/spi-builder-workspace/Sources/CodeQuickKit/Foundation/Ubiquity.swift:72:73: warning: capture of 'newState' with non-sendable type 'UbiquityState' in a `@Sendable` closure; this is an error in the Swift 6 language mode
2 | import Foundation
3 |
4 | public enum UbiquityState {
| `- note: consider making enum 'UbiquityState' conform to the 'Sendable' protocol
5 | case disabled
6 | case deviceOnly
:
70 | if let delegate = self.delegate {
71 | DispatchQueue.main.async(execute: {
72 | delegate.ubiquityStateDidChange(oldState, newState: newState)
| `- warning: capture of 'newState' with non-sendable type 'UbiquityState' in a `@Sendable` closure; this is an error in the Swift 6 language mode
73 | })
74 | }
/Users/admin/builder/spi-builder-workspace/Sources/CodeQuickKit/Foundation/Ubiquity.swift:72:21: warning: sending 'delegate' risks causing data races; this is an error in the Swift 6 language mode
69 |
70 | if let delegate = self.delegate {
71 | DispatchQueue.main.async(execute: {
| `- note: access can happen concurrently
72 | delegate.ubiquityStateDidChange(oldState, newState: newState)
| |- warning: sending 'delegate' risks causing data races; this is an error in the Swift 6 language mode
| `- note: 'delegate' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
73 | })
74 | }
[21/30] Compiling CodeQuickKit UserDefault.swift
/Users/admin/builder/spi-builder-workspace/Sources/CodeQuickKit/Foundation/Ubiquity.swift:39:23: warning: static property 'defaultContainer' is not concurrency-safe because non-'Sendable' type 'UbiquityContainer' may have shared mutable state; this is an error in the Swift 6 language mode
36 | }
37 |
38 | open class UbiquityContainer: UbiquityContainerDelegate {
| `- note: class 'UbiquityContainer' does not conform to the 'Sendable' protocol
39 | public static let defaultContainer: UbiquityContainer = UbiquityContainer()
| |- warning: static property 'defaultContainer' is not concurrency-safe because non-'Sendable' type 'UbiquityContainer' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'defaultContainer' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
40 |
41 | public internal(set) var identifier: String?
/Users/admin/builder/spi-builder-workspace/Sources/CodeQuickKit/Foundation/Ubiquity.swift:67:13: warning: capture of 'self' with non-sendable type 'UbiquityContainer' in a `@Sendable` closure; this is an error in the Swift 6 language mode
36 | }
37 |
38 | open class UbiquityContainer: UbiquityContainerDelegate {
| `- note: class 'UbiquityContainer' does not conform to the 'Sendable' protocol
39 | public static let defaultContainer: UbiquityContainer = UbiquityContainer()
40 |
:
65 |
66 | DispatchQueue.global(qos: .default).async {
67 | self.directory = FileManager.default.url(forUbiquityContainerIdentifier: identifier)
| `- warning: capture of 'self' with non-sendable type 'UbiquityContainer' in a `@Sendable` closure; this is an error in the Swift 6 language mode
68 | let newState = self.ubiquityState
69 |
/Users/admin/builder/spi-builder-workspace/Sources/CodeQuickKit/Foundation/Ubiquity.swift:72:53: warning: capture of 'oldState' with non-sendable type 'UbiquityState' in a `@Sendable` closure; this is an error in the Swift 6 language mode
2 | import Foundation
3 |
4 | public enum UbiquityState {
| `- note: consider making enum 'UbiquityState' conform to the 'Sendable' protocol
5 | case disabled
6 | case deviceOnly
:
70 | if let delegate = self.delegate {
71 | DispatchQueue.main.async(execute: {
72 | delegate.ubiquityStateDidChange(oldState, newState: newState)
| `- warning: capture of 'oldState' with non-sendable type 'UbiquityState' in a `@Sendable` closure; this is an error in the Swift 6 language mode
73 | })
74 | }
/Users/admin/builder/spi-builder-workspace/Sources/CodeQuickKit/Foundation/Ubiquity.swift:72:21: warning: capture of 'delegate' with non-sendable type 'any UbiquityContainerDelegate' in a `@Sendable` closure; this is an error in the Swift 6 language mode
32 | }
33 |
34 | public protocol UbiquityContainerDelegate {
| `- note: protocol 'UbiquityContainerDelegate' does not conform to the 'Sendable' protocol
35 | func ubiquityStateDidChange(_ oldState: UbiquityState, newState: UbiquityState)
36 | }
:
70 | if let delegate = self.delegate {
71 | DispatchQueue.main.async(execute: {
72 | delegate.ubiquityStateDidChange(oldState, newState: newState)
| `- warning: capture of 'delegate' with non-sendable type 'any UbiquityContainerDelegate' in a `@Sendable` closure; this is an error in the Swift 6 language mode
73 | })
74 | }
/Users/admin/builder/spi-builder-workspace/Sources/CodeQuickKit/Foundation/Ubiquity.swift:72:53: warning: capture of 'oldState' with non-sendable type 'UbiquityState' in a `@Sendable` closure; this is an error in the Swift 6 language mode
2 | import Foundation
3 |
4 | public enum UbiquityState {
| `- note: consider making enum 'UbiquityState' conform to the 'Sendable' protocol
5 | case disabled
6 | case deviceOnly
:
70 | if let delegate = self.delegate {
71 | DispatchQueue.main.async(execute: {
72 | delegate.ubiquityStateDidChange(oldState, newState: newState)
| `- warning: capture of 'oldState' with non-sendable type 'UbiquityState' in a `@Sendable` closure; this is an error in the Swift 6 language mode
73 | })
74 | }
/Users/admin/builder/spi-builder-workspace/Sources/CodeQuickKit/Foundation/Ubiquity.swift:72:73: warning: capture of 'newState' with non-sendable type 'UbiquityState' in a `@Sendable` closure; this is an error in the Swift 6 language mode
2 | import Foundation
3 |
4 | public enum UbiquityState {
| `- note: consider making enum 'UbiquityState' conform to the 'Sendable' protocol
5 | case disabled
6 | case deviceOnly
:
70 | if let delegate = self.delegate {
71 | DispatchQueue.main.async(execute: {
72 | delegate.ubiquityStateDidChange(oldState, newState: newState)
| `- warning: capture of 'newState' with non-sendable type 'UbiquityState' in a `@Sendable` closure; this is an error in the Swift 6 language mode
73 | })
74 | }
/Users/admin/builder/spi-builder-workspace/Sources/CodeQuickKit/Foundation/Ubiquity.swift:72:21: warning: sending 'delegate' risks causing data races; this is an error in the Swift 6 language mode
69 |
70 | if let delegate = self.delegate {
71 | DispatchQueue.main.async(execute: {
| `- note: access can happen concurrently
72 | delegate.ubiquityStateDidChange(oldState, newState: newState)
| |- warning: sending 'delegate' risks causing data races; this is an error in the Swift 6 language mode
| `- note: 'delegate' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
73 | })
74 | }
[22/30] Compiling CodeQuickKit NumberFormatter.swift
/Users/admin/builder/spi-builder-workspace/Sources/CodeQuickKit/Foundation/PausableTimer.swift:103:13: warning: capture of 'self' with non-sendable type 'PausableTimer' in a `@Sendable` closure; this is an error in the Swift 6 language mode
10 | ///
11 | /// Has options for delegate callbacks of status or a expiry completion handler.
12 | open class PausableTimer {
| `- note: class 'PausableTimer' does not conform to the 'Sendable' protocol
13 | fileprivate let maxPercentComplete: Double = 1.0
14 | fileprivate var completedIntervals: TimeInterval = 0.0
:
101 |
102 | DispatchQueue.global(qos: .utility).asyncAfter(deadline: .now() + Double(delegateRefreshRate)) {
103 | self.update()
| `- warning: capture of 'self' with non-sendable type 'PausableTimer' in a `@Sendable` closure; this is an error in the Swift 6 language mode
104 | }
105 | }
[23/30] Compiling CodeQuickKit PausableTimer.swift
/Users/admin/builder/spi-builder-workspace/Sources/CodeQuickKit/Foundation/PausableTimer.swift:103:13: warning: capture of 'self' with non-sendable type 'PausableTimer' in a `@Sendable` closure; this is an error in the Swift 6 language mode
10 | ///
11 | /// Has options for delegate callbacks of status or a expiry completion handler.
12 | open class PausableTimer {
| `- note: class 'PausableTimer' does not conform to the 'Sendable' protocol
13 | fileprivate let maxPercentComplete: Double = 1.0
14 | fileprivate var completedIntervals: TimeInterval = 0.0
:
101 |
102 | DispatchQueue.global(qos: .utility).asyncAfter(deadline: .now() + Double(delegateRefreshRate)) {
103 | self.update()
| `- warning: capture of 'self' with non-sendable type 'PausableTimer' in a `@Sendable` closure; this is an error in the Swift 6 language mode
104 | }
105 | }
[24/30] Compiling CodeQuickKit String+Casing.swift
/Users/admin/builder/spi-builder-workspace/Sources/CodeQuickKit/Foundation/PausableTimer.swift:103:13: warning: capture of 'self' with non-sendable type 'PausableTimer' in a `@Sendable` closure; this is an error in the Swift 6 language mode
10 | ///
11 | /// Has options for delegate callbacks of status or a expiry completion handler.
12 | open class PausableTimer {
| `- note: class 'PausableTimer' does not conform to the 'Sendable' protocol
13 | fileprivate let maxPercentComplete: Double = 1.0
14 | fileprivate var completedIntervals: TimeInterval = 0.0
:
101 |
102 | DispatchQueue.global(qos: .utility).asyncAfter(deadline: .now() + Double(delegateRefreshRate)) {
103 | self.update()
| `- warning: capture of 'self' with non-sendable type 'PausableTimer' in a `@Sendable` closure; this is an error in the Swift 6 language mode
104 | }
105 | }
[25/30] Compiling CodeQuickKit Date+Semantic.swift
/Users/admin/builder/spi-builder-workspace/Sources/CodeQuickKit/Foundation/FileManager.swift:235:16: warning: static property 'ubiquityContainer' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
233 | }
234 |
235 | static var ubiquityContainer: DocumentsUbiquityContainer = DocumentsUbiquityContainer()
| |- warning: static property 'ubiquityContainer' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'ubiquityContainer' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'ubiquityContainer' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
236 | }
237 | #endif
[26/30] Compiling CodeQuickKit FileManager.swift
/Users/admin/builder/spi-builder-workspace/Sources/CodeQuickKit/Foundation/FileManager.swift:235:16: warning: static property 'ubiquityContainer' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
233 | }
234 |
235 | static var ubiquityContainer: DocumentsUbiquityContainer = DocumentsUbiquityContainer()
| |- warning: static property 'ubiquityContainer' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'ubiquityContainer' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'ubiquityContainer' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
236 | }
237 | #endif
[27/30] Compiling CodeQuickKit NSMetadataQuery.swift
/Users/admin/builder/spi-builder-workspace/Sources/CodeQuickKit/Foundation/FileManager.swift:235:16: warning: static property 'ubiquityContainer' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
233 | }
234 |
235 | static var ubiquityContainer: DocumentsUbiquityContainer = DocumentsUbiquityContainer()
| |- warning: static property 'ubiquityContainer' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'ubiquityContainer' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'ubiquityContainer' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
236 | }
237 | #endif
[28/30] Compiling CodeQuickKit Bundle+CommonKeys.swift
[29/30] Compiling CodeQuickKit Bundle+DecodableResources.swift
[30/30] Compiling CodeQuickKit Character+Casing.swift
Build complete! (12.90s)
Build complete.
{
"dependencies" : [
],
"manifest_display_name" : "CodeQuickKit",
"name" : "CodeQuickKit",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
{
"name" : "macos",
"version" : "10.15"
},
{
"name" : "maccatalyst",
"version" : "13.0"
},
{
"name" : "ios",
"version" : "13.0"
},
{
"name" : "tvos",
"version" : "13.0"
},
{
"name" : "watchos",
"version" : "6.0"
}
],
"products" : [
{
"name" : "CodeQuickKit",
"targets" : [
"CodeQuickKit"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"swift_languages_versions" : [
"5"
],
"targets" : [
{
"c99name" : "CodeQuickKitTests",
"module_type" : "SwiftTarget",
"name" : "CodeQuickKitTests",
"path" : "Tests/CodeQuickKitTests",
"sources" : [
"Foundation/BundleTests.swift",
"Foundation/DateTests.swift",
"Foundation/NumberFormatterTests.swift",
"Foundation/PausableTimerTests.swift",
"Foundation/UserDefaultTests.swift",
"Swift/DependencyTests.swift"
],
"target_dependencies" : [
"CodeQuickKit"
],
"type" : "test"
},
{
"c99name" : "CodeQuickKit",
"module_type" : "SwiftTarget",
"name" : "CodeQuickKit",
"path" : "Sources/CodeQuickKit",
"product_memberships" : [
"CodeQuickKit"
],
"sources" : [
"Foundation/Bundle+CommonKeys.swift",
"Foundation/Bundle+DecodableResources.swift",
"Foundation/Character+Casing.swift",
"Foundation/Date+Semantic.swift",
"Foundation/FileManager.swift",
"Foundation/NSMetadataQuery.swift",
"Foundation/NumberFormatter.swift",
"Foundation/PausableTimer.swift",
"Foundation/String+Casing.swift",
"Foundation/StringProtocol+Replacement.swift",
"Foundation/Ubiquity.swift",
"Foundation/UserDefault.swift",
"Foundation/UserDefaults.swift",
"Swift/Dependency.swift",
"Swift/DependencyCache.swift",
"Swift/DependencySupplier.swift",
"Swift/Sequence+KeyPath.swift",
"Swift/Sequence+SplitBefore.swift",
"SwiftUI/ActivityAlertView.swift",
"UIKit/Bundle+Storyboards.swift",
"UIKit/HUD.swift",
"UIKit/NSMutableAttributedString.swift",
"UIKit/Reusable.swift",
"UIKit/UIAlertController+ActivityAlert.swift",
"UIKit/UIAlertController.swift",
"UIKit/UIPickerView.swift",
"UIKit/UIViewController.swift"
],
"type" : "library"
}
],
"tools_version" : "5.5"
}
Done.