Build Information
Successful build of MockCloudKitFramework, reference main (d1dc9d
), with Swift 6.0 for macOS (SPM) on 2 Nov 2024 08:42:28 UTC.
Swift 6 data race errors: 25
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/ccavnor/MockCloudKitFramework.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/ccavnor/MockCloudKitFramework
* branch main -> FETCH_HEAD
* [new branch] main -> origin/main
HEAD is now at d1dc9d5 Update README.md
Cloned https://github.com/ccavnor/MockCloudKitFramework.git
Revision (git rev-parse @):
d1dc9d5d07faba46e5d08c788b5a858ede4fdf09
SUCCESS checkout https://github.com/ccavnor/MockCloudKitFramework.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": "mockcloudkitframework",
"name": "MockCloudKitFramework",
"url": "https://github.com/ccavnor/MockCloudKitFramework.git",
"version": "unspecified",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/MockCloudKitFramework",
"dependencies": [
]
}
]
}
Fetching https://github.com/ccavnor/MockCloudKitFramework.git
[1/69] Fetching mockcloudkitframework
Fetched https://github.com/ccavnor/MockCloudKitFramework.git from cache (1.13s)
Creating working copy for https://github.com/ccavnor/MockCloudKitFramework.git
Working copy of https://github.com/ccavnor/MockCloudKitFramework.git resolved at main (d1dc9d5)
warning: '.resolve-product-dependencies': dependency 'mockcloudkitframework' 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/ccavnor/MockCloudKitFramework.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/4] Emitting module MockCloudKitFramework
/Users/admin/builder/spi-builder-workspace/Sources/MockCloudKitFramework/MockCloudKit.swift:115:1: warning: sendability of function types in instance method 'accountStatus(completionHandler:)' does not match requirement in protocol 'CloudContainable'; this is an error in the Swift 6 language mode
105 | var containerIdentifier: String? { get }
106 | func database(with databaseScope: CKDatabase.Scope) -> DatabaseType
107 | func accountStatus(completionHandler: @escaping (CKAccountStatus, Error?) -> Void)
| `- note: expected sendability to match requirement here
108 | func fetchUserRecordID(completionHandler: @escaping (CKRecord.ID?, Error?) -> Void)
109 | }
:
113 | // ========================================
114 | // These extensions make CloudKit comply with MCF protocols
115 | extension CKContainer: CloudContainable {}
| `- warning: sendability of function types in instance method 'accountStatus(completionHandler:)' does not match requirement in protocol 'CloudContainable'; this is an error in the Swift 6 language mode
116 | extension CKDatabase: CloudStorable {
117 | // only for state tracking in mock operations
/Users/admin/builder/spi-builder-workspace/Sources/MockCloudKitFramework/MockCloudKit.swift:115:1: warning: sendability of function types in instance method 'fetchUserRecordID(completionHandler:)' does not match requirement in protocol 'CloudContainable'; this is an error in the Swift 6 language mode
106 | func database(with databaseScope: CKDatabase.Scope) -> DatabaseType
107 | func accountStatus(completionHandler: @escaping (CKAccountStatus, Error?) -> Void)
108 | func fetchUserRecordID(completionHandler: @escaping (CKRecord.ID?, Error?) -> Void)
| `- note: expected sendability to match requirement here
109 | }
110 |
:
113 | // ========================================
114 | // These extensions make CloudKit comply with MCF protocols
115 | extension CKContainer: CloudContainable {}
| `- warning: sendability of function types in instance method 'fetchUserRecordID(completionHandler:)' does not match requirement in protocol 'CloudContainable'; this is an error in the Swift 6 language mode
116 | extension CKDatabase: CloudStorable {
117 | // only for state tracking in mock operations
/Users/admin/builder/spi-builder-workspace/Sources/MockCloudKitFramework/MockCloudKit.swift:127:1: warning: sendability of function types in property 'completionBlock' does not match requirement in protocol 'DatabaseOperational'; this is an error in the Swift 6 language mode
95 | var configuration: CKOperation.Configuration! { get set }
96 | /// The custom completion block. Always the last block to be called. inherited from `Operation`
97 | var completionBlock: (() -> Void)? { get set }
| `- note: expected sendability to match requirement here
98 | }
99 | extension MockCKDatabaseOperation {
:
125 | }
126 | }
127 | extension CKDatabaseOperation: DatabaseOperational {
| `- warning: sendability of function types in property 'completionBlock' does not match requirement in protocol 'DatabaseOperational'; this is an error in the Swift 6 language mode
128 | public typealias DatabaseType = CKDatabase
129 | }
/Users/admin/builder/spi-builder-workspace/Sources/MockCloudKitFramework/MockCloudKit.swift:386:28: warning: static property 'container' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
384 |
385 | // self reference
386 | fileprivate static var container: MockCKContainer?
| |- warning: static property 'container' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'container' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'container' 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
387 |
388 | fileprivate static var publicDatabase: MockCKDatabase = MockCKDatabase(with: CKDatabase.Scope.public)
/Users/admin/builder/spi-builder-workspace/Sources/MockCloudKitFramework/MockCloudKit.swift:388:28: warning: static property 'publicDatabase' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
386 | fileprivate static var container: MockCKContainer?
387 |
388 | fileprivate static var publicDatabase: MockCKDatabase = MockCKDatabase(with: CKDatabase.Scope.public)
| |- warning: static property 'publicDatabase' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'publicDatabase' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'publicDatabase' 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
389 | fileprivate static var privateDatabase: MockCKDatabase = MockCKDatabase(with: CKDatabase.Scope.private)
390 | fileprivate static var sharedDatabase: MockCKDatabase = MockCKDatabase(with: CKDatabase.Scope.shared)
/Users/admin/builder/spi-builder-workspace/Sources/MockCloudKitFramework/MockCloudKit.swift:389:28: warning: static property 'privateDatabase' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
387 |
388 | fileprivate static var publicDatabase: MockCKDatabase = MockCKDatabase(with: CKDatabase.Scope.public)
389 | fileprivate static var privateDatabase: MockCKDatabase = MockCKDatabase(with: CKDatabase.Scope.private)
| |- warning: static property 'privateDatabase' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'privateDatabase' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'privateDatabase' 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
390 | fileprivate static var sharedDatabase: MockCKDatabase = MockCKDatabase(with: CKDatabase.Scope.shared)
391 |
/Users/admin/builder/spi-builder-workspace/Sources/MockCloudKitFramework/MockCloudKit.swift:390:28: warning: static property 'sharedDatabase' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
388 | fileprivate static var publicDatabase: MockCKDatabase = MockCKDatabase(with: CKDatabase.Scope.public)
389 | fileprivate static var privateDatabase: MockCKDatabase = MockCKDatabase(with: CKDatabase.Scope.private)
390 | fileprivate static var sharedDatabase: MockCKDatabase = MockCKDatabase(with: CKDatabase.Scope.shared)
| |- warning: static property 'sharedDatabase' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'sharedDatabase' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'sharedDatabase' 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
391 |
392 | /// The identifier set on a CKContainer. Set to "MockCKContainer" by default.
/Users/admin/builder/spi-builder-workspace/Sources/MockCloudKitFramework/MockCloudKit.swift:560:28: warning: static property 'state' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
558 |
559 | extension MockCKContainer {
560 | static fileprivate var state = MockCKContainerState.init()
| |- warning: static property 'state' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'state' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'state' 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
561 |
562 | /// Get and set CKAccountStatus.
/Users/admin/builder/spi-builder-workspace/Sources/MockCloudKitFramework/MockCloudKit.swift:1131:14: warning: class 'MockCKDatabaseOperation' must restate inherited '@unchecked Sendable' conformance
1129 | ```
1130 | */
1131 | public class MockCKDatabaseOperation: CKOperation, DatabaseOperational, Reflectable { // NSObject conformance via CKOperation
| `- warning: class 'MockCKDatabaseOperation' must restate inherited '@unchecked Sendable' conformance
1132 | /*
1133 | Note: Some members of MockCKDatabaseOperation and its subcalsses are annotated with @objc. These inherit from NSObject
/Users/admin/builder/spi-builder-workspace/Sources/MockCloudKitFramework/MockCloudKit.swift:1213:31: warning: declaration 'completionBlock' has a type with different sendability from any potential overrides; this is an error in the Swift 6 language mode
1211 | /// Self.mockCKDatabase.add(modifyOp)
1212 | /// ```
1213 | @objc public override var completionBlock: (() -> Void)? {
| `- warning: declaration 'completionBlock' has a type with different sendability from any potential overrides; this is an error in the Swift 6 language mode
1214 | get {
1215 | return Hold.completionBlock
Foundation.Operation:31:14: note: overridden declaration is here
29 | open var queuePriority: Operation.QueuePriority { get set }
30 | @available(macOS 10.6, *)
31 | open var completionBlock: (@Sendable () -> Void)? { get set }
| `- note: overridden declaration is here
32 | @available(macOS 10.6, *)
33 | open func waitUntilFinished()
/Users/admin/builder/spi-builder-workspace/Sources/MockCloudKitFramework/MockCloudKit.swift:1167:20: warning: static property 'completionBlock' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
1165 | fileprivate struct Hold {
1166 | // NOTE: must be static to allocate memory in extension
1167 | static var completionBlock: (() -> Void)?
| |- warning: static property 'completionBlock' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'completionBlock' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'completionBlock' 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
1168 | static var modifyRecordsResultBlock: ((Result<Void, Error>) -> Void)?
1169 | static var fetchRecordsResultBlock: ((_ operationResult: Result<Void, Error>) -> Void)?
/Users/admin/builder/spi-builder-workspace/Sources/MockCloudKitFramework/MockCloudKit.swift:1168:20: warning: static property 'modifyRecordsResultBlock' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
1166 | // NOTE: must be static to allocate memory in extension
1167 | static var completionBlock: (() -> Void)?
1168 | static var modifyRecordsResultBlock: ((Result<Void, Error>) -> Void)?
| |- warning: static property 'modifyRecordsResultBlock' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'modifyRecordsResultBlock' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'modifyRecordsResultBlock' 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
1169 | static var fetchRecordsResultBlock: ((_ operationResult: Result<Void, Error>) -> Void)?
1170 | static var modifyPerRecordProgressBlock: ((CKRecord, Double) -> Void)?
/Users/admin/builder/spi-builder-workspace/Sources/MockCloudKitFramework/MockCloudKit.swift:1169:20: warning: static property 'fetchRecordsResultBlock' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
1167 | static var completionBlock: (() -> Void)?
1168 | static var modifyRecordsResultBlock: ((Result<Void, Error>) -> Void)?
1169 | static var fetchRecordsResultBlock: ((_ operationResult: Result<Void, Error>) -> Void)?
| |- warning: static property 'fetchRecordsResultBlock' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'fetchRecordsResultBlock' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'fetchRecordsResultBlock' 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
1170 | static var modifyPerRecordProgressBlock: ((CKRecord, Double) -> Void)?
1171 | static var fetchPerRecordProgressBlock: ((CKRecord.ID, Double) -> Void)?
/Users/admin/builder/spi-builder-workspace/Sources/MockCloudKitFramework/MockCloudKit.swift:1170:20: warning: static property 'modifyPerRecordProgressBlock' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
1168 | static var modifyRecordsResultBlock: ((Result<Void, Error>) -> Void)?
1169 | static var fetchRecordsResultBlock: ((_ operationResult: Result<Void, Error>) -> Void)?
1170 | static var modifyPerRecordProgressBlock: ((CKRecord, Double) -> Void)?
| |- warning: static property 'modifyPerRecordProgressBlock' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'modifyPerRecordProgressBlock' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'modifyPerRecordProgressBlock' 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
1171 | static var fetchPerRecordProgressBlock: ((CKRecord.ID, Double) -> Void)?
1172 | static var perRecordResultBlock: ((CKRecord.ID, Result<CKRecord, Error>) -> Void)?
/Users/admin/builder/spi-builder-workspace/Sources/MockCloudKitFramework/MockCloudKit.swift:1171:20: warning: static property 'fetchPerRecordProgressBlock' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
1169 | static var fetchRecordsResultBlock: ((_ operationResult: Result<Void, Error>) -> Void)?
1170 | static var modifyPerRecordProgressBlock: ((CKRecord, Double) -> Void)?
1171 | static var fetchPerRecordProgressBlock: ((CKRecord.ID, Double) -> Void)?
| |- warning: static property 'fetchPerRecordProgressBlock' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'fetchPerRecordProgressBlock' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'fetchPerRecordProgressBlock' 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
1172 | static var perRecordResultBlock: ((CKRecord.ID, Result<CKRecord, Error>) -> Void)?
1173 | static var recordMatchedBlock: ((_ recordID: CKRecord.ID, _ recordResult: Result<CKRecord, Error>) -> Void)?
/Users/admin/builder/spi-builder-workspace/Sources/MockCloudKitFramework/MockCloudKit.swift:1172:20: warning: static property 'perRecordResultBlock' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
1170 | static var modifyPerRecordProgressBlock: ((CKRecord, Double) -> Void)?
1171 | static var fetchPerRecordProgressBlock: ((CKRecord.ID, Double) -> Void)?
1172 | static var perRecordResultBlock: ((CKRecord.ID, Result<CKRecord, Error>) -> Void)?
| |- warning: static property 'perRecordResultBlock' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'perRecordResultBlock' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'perRecordResultBlock' 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
1173 | static var recordMatchedBlock: ((_ recordID: CKRecord.ID, _ recordResult: Result<CKRecord, Error>) -> Void)?
1174 | static var queryResultBlock: ((_ operationResult: Result<CKQueryOperation.Cursor?, Error>) -> Void)?
/Users/admin/builder/spi-builder-workspace/Sources/MockCloudKitFramework/MockCloudKit.swift:1173:20: warning: static property 'recordMatchedBlock' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
1171 | static var fetchPerRecordProgressBlock: ((CKRecord.ID, Double) -> Void)?
1172 | static var perRecordResultBlock: ((CKRecord.ID, Result<CKRecord, Error>) -> Void)?
1173 | static var recordMatchedBlock: ((_ recordID: CKRecord.ID, _ recordResult: Result<CKRecord, Error>) -> Void)?
| |- warning: static property 'recordMatchedBlock' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'recordMatchedBlock' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'recordMatchedBlock' 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
1174 | static var queryResultBlock: ((_ operationResult: Result<CKQueryOperation.Cursor?, Error>) -> Void)?
1175 | static var perRecordSaveBlock: ((_ recordID: CKRecord.ID, _ saveResult: Result<CKRecord, Error>) -> Void)?
/Users/admin/builder/spi-builder-workspace/Sources/MockCloudKitFramework/MockCloudKit.swift:1174:20: warning: static property 'queryResultBlock' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
1172 | static var perRecordResultBlock: ((CKRecord.ID, Result<CKRecord, Error>) -> Void)?
1173 | static var recordMatchedBlock: ((_ recordID: CKRecord.ID, _ recordResult: Result<CKRecord, Error>) -> Void)?
1174 | static var queryResultBlock: ((_ operationResult: Result<CKQueryOperation.Cursor?, Error>) -> Void)?
| |- warning: static property 'queryResultBlock' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'queryResultBlock' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'queryResultBlock' 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
1175 | static var perRecordSaveBlock: ((_ recordID: CKRecord.ID, _ saveResult: Result<CKRecord, Error>) -> Void)?
1176 | static var perRecordDeleteBlock: ((_ recordID: CKRecord.ID, _ deleteResult: Result<Void, Error>) -> Void)?
/Users/admin/builder/spi-builder-workspace/Sources/MockCloudKitFramework/MockCloudKit.swift:1175:20: warning: static property 'perRecordSaveBlock' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
1173 | static var recordMatchedBlock: ((_ recordID: CKRecord.ID, _ recordResult: Result<CKRecord, Error>) -> Void)?
1174 | static var queryResultBlock: ((_ operationResult: Result<CKQueryOperation.Cursor?, Error>) -> Void)?
1175 | static var perRecordSaveBlock: ((_ recordID: CKRecord.ID, _ saveResult: Result<CKRecord, Error>) -> Void)?
| |- warning: static property 'perRecordSaveBlock' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'perRecordSaveBlock' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'perRecordSaveBlock' 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
1176 | static var perRecordDeleteBlock: ((_ recordID: CKRecord.ID, _ deleteResult: Result<Void, Error>) -> Void)?
1177 | static var resultsLimit: Int?
/Users/admin/builder/spi-builder-workspace/Sources/MockCloudKitFramework/MockCloudKit.swift:1176:20: warning: static property 'perRecordDeleteBlock' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
1174 | static var queryResultBlock: ((_ operationResult: Result<CKQueryOperation.Cursor?, Error>) -> Void)?
1175 | static var perRecordSaveBlock: ((_ recordID: CKRecord.ID, _ saveResult: Result<CKRecord, Error>) -> Void)?
1176 | static var perRecordDeleteBlock: ((_ recordID: CKRecord.ID, _ deleteResult: Result<Void, Error>) -> Void)?
| |- warning: static property 'perRecordDeleteBlock' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'perRecordDeleteBlock' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'perRecordDeleteBlock' 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
1177 | static var resultsLimit: Int?
1178 | static var desiredKeys: [CKRecord.FieldKey]?
/Users/admin/builder/spi-builder-workspace/Sources/MockCloudKitFramework/MockCloudKit.swift:1177:20: warning: static property 'resultsLimit' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
1175 | static var perRecordSaveBlock: ((_ recordID: CKRecord.ID, _ saveResult: Result<CKRecord, Error>) -> Void)?
1176 | static var perRecordDeleteBlock: ((_ recordID: CKRecord.ID, _ deleteResult: Result<Void, Error>) -> Void)?
1177 | static var resultsLimit: Int?
| |- warning: static property 'resultsLimit' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'resultsLimit' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'resultsLimit' 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
1178 | static var desiredKeys: [CKRecord.FieldKey]?
1179 | static var error: NSError?
/Users/admin/builder/spi-builder-workspace/Sources/MockCloudKitFramework/MockCloudKit.swift:1178:20: warning: static property 'desiredKeys' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
1176 | static var perRecordDeleteBlock: ((_ recordID: CKRecord.ID, _ deleteResult: Result<Void, Error>) -> Void)?
1177 | static var resultsLimit: Int?
1178 | static var desiredKeys: [CKRecord.FieldKey]?
| |- warning: static property 'desiredKeys' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'desiredKeys' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'desiredKeys' 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
1179 | static var error: NSError?
1180 | static var recordErrors: [CKRecord.ID]?
/Users/admin/builder/spi-builder-workspace/Sources/MockCloudKitFramework/MockCloudKit.swift:1179:20: warning: static property 'error' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
1177 | static var resultsLimit: Int?
1178 | static var desiredKeys: [CKRecord.FieldKey]?
1179 | static var error: NSError?
| |- warning: static property 'error' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'error' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'error' 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
1180 | static var recordErrors: [CKRecord.ID]?
1181 | static var database: MockCKDatabase?
/Users/admin/builder/spi-builder-workspace/Sources/MockCloudKitFramework/MockCloudKit.swift:1180:20: warning: static property 'recordErrors' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
1178 | static var desiredKeys: [CKRecord.FieldKey]?
1179 | static var error: NSError?
1180 | static var recordErrors: [CKRecord.ID]?
| |- warning: static property 'recordErrors' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'recordErrors' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'recordErrors' 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
1181 | static var database: MockCKDatabase?
1182 | static var operationConfiguration: CKOperation.Configuration?
/Users/admin/builder/spi-builder-workspace/Sources/MockCloudKitFramework/MockCloudKit.swift:1181:20: warning: static property 'database' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
1179 | static var error: NSError?
1180 | static var recordErrors: [CKRecord.ID]?
1181 | static var database: MockCKDatabase?
| |- warning: static property 'database' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'database' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'database' 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
1182 | static var operationConfiguration: CKOperation.Configuration?
1183 | }
/Users/admin/builder/spi-builder-workspace/Sources/MockCloudKitFramework/MockCloudKit.swift:1182:20: warning: static property 'operationConfiguration' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
1180 | static var recordErrors: [CKRecord.ID]?
1181 | static var database: MockCKDatabase?
1182 | static var operationConfiguration: CKOperation.Configuration?
| |- warning: static property 'operationConfiguration' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'operationConfiguration' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'operationConfiguration' 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
1183 | }
1184 | // reset state for MockCKDatabaseOperation subclasses (Hold is a struct, so each subclass has its own state copy)
/Users/admin/builder/spi-builder-workspace/Sources/MockCloudKitFramework/MockCloudKit.swift:1355:20: warning: class 'MockCKModifyRecordsOperation' must restate inherited '@unchecked Sendable' conformance
1353 | ```
1354 | */
1355 | public final class MockCKModifyRecordsOperation: MockCKDatabaseOperation, CKModifyRecordsOperational {
| `- warning: class 'MockCKModifyRecordsOperation' must restate inherited '@unchecked Sendable' conformance
1356 | /// The list of CKRecord instances to save
1357 | @objc public var recordsToSave: [CKRecord]?
/Users/admin/builder/spi-builder-workspace/Sources/MockCloudKitFramework/MockCloudKit.swift:1514:20: warning: class 'MockCKFetchRecordsOperation' must restate inherited '@unchecked Sendable' conformance
1512 | ```
1513 | */
1514 | public final class MockCKFetchRecordsOperation: MockCKDatabaseOperation, CKFetchRecordsOperational {
| `- warning: class 'MockCKFetchRecordsOperation' must restate inherited '@unchecked Sendable' conformance
1515 | private var myRecordIDs: [CKRecord.ID]?
1516 |
/Users/admin/builder/spi-builder-workspace/Sources/MockCloudKitFramework/MockCloudKit.swift:1659:20: warning: class 'MockCKQueryOperation' must restate inherited '@unchecked Sendable' conformance
1657 | ```
1658 | */
1659 | public final class MockCKQueryOperation: MockCKDatabaseOperation, CKQueryOperational {
| `- warning: class 'MockCKQueryOperation' must restate inherited '@unchecked Sendable' conformance
1660 | /// The query for the search.
1661 | @objc public var query: CKQuery?
[4/4] Compiling MockCloudKitFramework MockCloudKit.swift
/Users/admin/builder/spi-builder-workspace/Sources/MockCloudKitFramework/MockCloudKit.swift:115:1: warning: sendability of function types in instance method 'accountStatus(completionHandler:)' does not match requirement in protocol 'CloudContainable'; this is an error in the Swift 6 language mode
105 | var containerIdentifier: String? { get }
106 | func database(with databaseScope: CKDatabase.Scope) -> DatabaseType
107 | func accountStatus(completionHandler: @escaping (CKAccountStatus, Error?) -> Void)
| `- note: expected sendability to match requirement here
108 | func fetchUserRecordID(completionHandler: @escaping (CKRecord.ID?, Error?) -> Void)
109 | }
:
113 | // ========================================
114 | // These extensions make CloudKit comply with MCF protocols
115 | extension CKContainer: CloudContainable {}
| `- warning: sendability of function types in instance method 'accountStatus(completionHandler:)' does not match requirement in protocol 'CloudContainable'; this is an error in the Swift 6 language mode
116 | extension CKDatabase: CloudStorable {
117 | // only for state tracking in mock operations
/Users/admin/builder/spi-builder-workspace/Sources/MockCloudKitFramework/MockCloudKit.swift:115:1: warning: sendability of function types in instance method 'fetchUserRecordID(completionHandler:)' does not match requirement in protocol 'CloudContainable'; this is an error in the Swift 6 language mode
106 | func database(with databaseScope: CKDatabase.Scope) -> DatabaseType
107 | func accountStatus(completionHandler: @escaping (CKAccountStatus, Error?) -> Void)
108 | func fetchUserRecordID(completionHandler: @escaping (CKRecord.ID?, Error?) -> Void)
| `- note: expected sendability to match requirement here
109 | }
110 |
:
113 | // ========================================
114 | // These extensions make CloudKit comply with MCF protocols
115 | extension CKContainer: CloudContainable {}
| `- warning: sendability of function types in instance method 'fetchUserRecordID(completionHandler:)' does not match requirement in protocol 'CloudContainable'; this is an error in the Swift 6 language mode
116 | extension CKDatabase: CloudStorable {
117 | // only for state tracking in mock operations
/Users/admin/builder/spi-builder-workspace/Sources/MockCloudKitFramework/MockCloudKit.swift:127:1: warning: sendability of function types in property 'completionBlock' does not match requirement in protocol 'DatabaseOperational'; this is an error in the Swift 6 language mode
95 | var configuration: CKOperation.Configuration! { get set }
96 | /// The custom completion block. Always the last block to be called. inherited from `Operation`
97 | var completionBlock: (() -> Void)? { get set }
| `- note: expected sendability to match requirement here
98 | }
99 | extension MockCKDatabaseOperation {
:
125 | }
126 | }
127 | extension CKDatabaseOperation: DatabaseOperational {
| `- warning: sendability of function types in property 'completionBlock' does not match requirement in protocol 'DatabaseOperational'; this is an error in the Swift 6 language mode
128 | public typealias DatabaseType = CKDatabase
129 | }
/Users/admin/builder/spi-builder-workspace/Sources/MockCloudKitFramework/MockCloudKit.swift:386:28: warning: static property 'container' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
384 |
385 | // self reference
386 | fileprivate static var container: MockCKContainer?
| |- warning: static property 'container' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'container' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'container' 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
387 |
388 | fileprivate static var publicDatabase: MockCKDatabase = MockCKDatabase(with: CKDatabase.Scope.public)
/Users/admin/builder/spi-builder-workspace/Sources/MockCloudKitFramework/MockCloudKit.swift:388:28: warning: static property 'publicDatabase' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
386 | fileprivate static var container: MockCKContainer?
387 |
388 | fileprivate static var publicDatabase: MockCKDatabase = MockCKDatabase(with: CKDatabase.Scope.public)
| |- warning: static property 'publicDatabase' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'publicDatabase' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'publicDatabase' 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
389 | fileprivate static var privateDatabase: MockCKDatabase = MockCKDatabase(with: CKDatabase.Scope.private)
390 | fileprivate static var sharedDatabase: MockCKDatabase = MockCKDatabase(with: CKDatabase.Scope.shared)
/Users/admin/builder/spi-builder-workspace/Sources/MockCloudKitFramework/MockCloudKit.swift:389:28: warning: static property 'privateDatabase' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
387 |
388 | fileprivate static var publicDatabase: MockCKDatabase = MockCKDatabase(with: CKDatabase.Scope.public)
389 | fileprivate static var privateDatabase: MockCKDatabase = MockCKDatabase(with: CKDatabase.Scope.private)
| |- warning: static property 'privateDatabase' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'privateDatabase' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'privateDatabase' 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
390 | fileprivate static var sharedDatabase: MockCKDatabase = MockCKDatabase(with: CKDatabase.Scope.shared)
391 |
/Users/admin/builder/spi-builder-workspace/Sources/MockCloudKitFramework/MockCloudKit.swift:390:28: warning: static property 'sharedDatabase' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
388 | fileprivate static var publicDatabase: MockCKDatabase = MockCKDatabase(with: CKDatabase.Scope.public)
389 | fileprivate static var privateDatabase: MockCKDatabase = MockCKDatabase(with: CKDatabase.Scope.private)
390 | fileprivate static var sharedDatabase: MockCKDatabase = MockCKDatabase(with: CKDatabase.Scope.shared)
| |- warning: static property 'sharedDatabase' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'sharedDatabase' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'sharedDatabase' 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
391 |
392 | /// The identifier set on a CKContainer. Set to "MockCKContainer" by default.
/Users/admin/builder/spi-builder-workspace/Sources/MockCloudKitFramework/MockCloudKit.swift:560:28: warning: static property 'state' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
558 |
559 | extension MockCKContainer {
560 | static fileprivate var state = MockCKContainerState.init()
| |- warning: static property 'state' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'state' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'state' 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
561 |
562 | /// Get and set CKAccountStatus.
/Users/admin/builder/spi-builder-workspace/Sources/MockCloudKitFramework/MockCloudKit.swift:1131:14: warning: class 'MockCKDatabaseOperation' must restate inherited '@unchecked Sendable' conformance
1129 | ```
1130 | */
1131 | public class MockCKDatabaseOperation: CKOperation, DatabaseOperational, Reflectable { // NSObject conformance via CKOperation
| `- warning: class 'MockCKDatabaseOperation' must restate inherited '@unchecked Sendable' conformance
1132 | /*
1133 | Note: Some members of MockCKDatabaseOperation and its subcalsses are annotated with @objc. These inherit from NSObject
/Users/admin/builder/spi-builder-workspace/Sources/MockCloudKitFramework/MockCloudKit.swift:1213:31: warning: declaration 'completionBlock' has a type with different sendability from any potential overrides; this is an error in the Swift 6 language mode
1211 | /// Self.mockCKDatabase.add(modifyOp)
1212 | /// ```
1213 | @objc public override var completionBlock: (() -> Void)? {
| `- warning: declaration 'completionBlock' has a type with different sendability from any potential overrides; this is an error in the Swift 6 language mode
1214 | get {
1215 | return Hold.completionBlock
Foundation.Operation:31:14: note: overridden declaration is here
29 | open var queuePriority: Operation.QueuePriority { get set }
30 | @available(macOS 10.6, *)
31 | open var completionBlock: (@Sendable () -> Void)? { get set }
| `- note: overridden declaration is here
32 | @available(macOS 10.6, *)
33 | open func waitUntilFinished()
/Users/admin/builder/spi-builder-workspace/Sources/MockCloudKitFramework/MockCloudKit.swift:1167:20: warning: static property 'completionBlock' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
1165 | fileprivate struct Hold {
1166 | // NOTE: must be static to allocate memory in extension
1167 | static var completionBlock: (() -> Void)?
| |- warning: static property 'completionBlock' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'completionBlock' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'completionBlock' 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
1168 | static var modifyRecordsResultBlock: ((Result<Void, Error>) -> Void)?
1169 | static var fetchRecordsResultBlock: ((_ operationResult: Result<Void, Error>) -> Void)?
/Users/admin/builder/spi-builder-workspace/Sources/MockCloudKitFramework/MockCloudKit.swift:1168:20: warning: static property 'modifyRecordsResultBlock' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
1166 | // NOTE: must be static to allocate memory in extension
1167 | static var completionBlock: (() -> Void)?
1168 | static var modifyRecordsResultBlock: ((Result<Void, Error>) -> Void)?
| |- warning: static property 'modifyRecordsResultBlock' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'modifyRecordsResultBlock' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'modifyRecordsResultBlock' 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
1169 | static var fetchRecordsResultBlock: ((_ operationResult: Result<Void, Error>) -> Void)?
1170 | static var modifyPerRecordProgressBlock: ((CKRecord, Double) -> Void)?
/Users/admin/builder/spi-builder-workspace/Sources/MockCloudKitFramework/MockCloudKit.swift:1169:20: warning: static property 'fetchRecordsResultBlock' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
1167 | static var completionBlock: (() -> Void)?
1168 | static var modifyRecordsResultBlock: ((Result<Void, Error>) -> Void)?
1169 | static var fetchRecordsResultBlock: ((_ operationResult: Result<Void, Error>) -> Void)?
| |- warning: static property 'fetchRecordsResultBlock' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'fetchRecordsResultBlock' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'fetchRecordsResultBlock' 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
1170 | static var modifyPerRecordProgressBlock: ((CKRecord, Double) -> Void)?
1171 | static var fetchPerRecordProgressBlock: ((CKRecord.ID, Double) -> Void)?
/Users/admin/builder/spi-builder-workspace/Sources/MockCloudKitFramework/MockCloudKit.swift:1170:20: warning: static property 'modifyPerRecordProgressBlock' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
1168 | static var modifyRecordsResultBlock: ((Result<Void, Error>) -> Void)?
1169 | static var fetchRecordsResultBlock: ((_ operationResult: Result<Void, Error>) -> Void)?
1170 | static var modifyPerRecordProgressBlock: ((CKRecord, Double) -> Void)?
| |- warning: static property 'modifyPerRecordProgressBlock' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'modifyPerRecordProgressBlock' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'modifyPerRecordProgressBlock' 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
1171 | static var fetchPerRecordProgressBlock: ((CKRecord.ID, Double) -> Void)?
1172 | static var perRecordResultBlock: ((CKRecord.ID, Result<CKRecord, Error>) -> Void)?
/Users/admin/builder/spi-builder-workspace/Sources/MockCloudKitFramework/MockCloudKit.swift:1171:20: warning: static property 'fetchPerRecordProgressBlock' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
1169 | static var fetchRecordsResultBlock: ((_ operationResult: Result<Void, Error>) -> Void)?
1170 | static var modifyPerRecordProgressBlock: ((CKRecord, Double) -> Void)?
1171 | static var fetchPerRecordProgressBlock: ((CKRecord.ID, Double) -> Void)?
| |- warning: static property 'fetchPerRecordProgressBlock' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'fetchPerRecordProgressBlock' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'fetchPerRecordProgressBlock' 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
1172 | static var perRecordResultBlock: ((CKRecord.ID, Result<CKRecord, Error>) -> Void)?
1173 | static var recordMatchedBlock: ((_ recordID: CKRecord.ID, _ recordResult: Result<CKRecord, Error>) -> Void)?
/Users/admin/builder/spi-builder-workspace/Sources/MockCloudKitFramework/MockCloudKit.swift:1172:20: warning: static property 'perRecordResultBlock' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
1170 | static var modifyPerRecordProgressBlock: ((CKRecord, Double) -> Void)?
1171 | static var fetchPerRecordProgressBlock: ((CKRecord.ID, Double) -> Void)?
1172 | static var perRecordResultBlock: ((CKRecord.ID, Result<CKRecord, Error>) -> Void)?
| |- warning: static property 'perRecordResultBlock' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'perRecordResultBlock' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'perRecordResultBlock' 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
1173 | static var recordMatchedBlock: ((_ recordID: CKRecord.ID, _ recordResult: Result<CKRecord, Error>) -> Void)?
1174 | static var queryResultBlock: ((_ operationResult: Result<CKQueryOperation.Cursor?, Error>) -> Void)?
/Users/admin/builder/spi-builder-workspace/Sources/MockCloudKitFramework/MockCloudKit.swift:1173:20: warning: static property 'recordMatchedBlock' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
1171 | static var fetchPerRecordProgressBlock: ((CKRecord.ID, Double) -> Void)?
1172 | static var perRecordResultBlock: ((CKRecord.ID, Result<CKRecord, Error>) -> Void)?
1173 | static var recordMatchedBlock: ((_ recordID: CKRecord.ID, _ recordResult: Result<CKRecord, Error>) -> Void)?
| |- warning: static property 'recordMatchedBlock' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'recordMatchedBlock' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'recordMatchedBlock' 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
1174 | static var queryResultBlock: ((_ operationResult: Result<CKQueryOperation.Cursor?, Error>) -> Void)?
1175 | static var perRecordSaveBlock: ((_ recordID: CKRecord.ID, _ saveResult: Result<CKRecord, Error>) -> Void)?
/Users/admin/builder/spi-builder-workspace/Sources/MockCloudKitFramework/MockCloudKit.swift:1174:20: warning: static property 'queryResultBlock' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
1172 | static var perRecordResultBlock: ((CKRecord.ID, Result<CKRecord, Error>) -> Void)?
1173 | static var recordMatchedBlock: ((_ recordID: CKRecord.ID, _ recordResult: Result<CKRecord, Error>) -> Void)?
1174 | static var queryResultBlock: ((_ operationResult: Result<CKQueryOperation.Cursor?, Error>) -> Void)?
| |- warning: static property 'queryResultBlock' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'queryResultBlock' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'queryResultBlock' 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
1175 | static var perRecordSaveBlock: ((_ recordID: CKRecord.ID, _ saveResult: Result<CKRecord, Error>) -> Void)?
1176 | static var perRecordDeleteBlock: ((_ recordID: CKRecord.ID, _ deleteResult: Result<Void, Error>) -> Void)?
/Users/admin/builder/spi-builder-workspace/Sources/MockCloudKitFramework/MockCloudKit.swift:1175:20: warning: static property 'perRecordSaveBlock' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
1173 | static var recordMatchedBlock: ((_ recordID: CKRecord.ID, _ recordResult: Result<CKRecord, Error>) -> Void)?
1174 | static var queryResultBlock: ((_ operationResult: Result<CKQueryOperation.Cursor?, Error>) -> Void)?
1175 | static var perRecordSaveBlock: ((_ recordID: CKRecord.ID, _ saveResult: Result<CKRecord, Error>) -> Void)?
| |- warning: static property 'perRecordSaveBlock' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'perRecordSaveBlock' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'perRecordSaveBlock' 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
1176 | static var perRecordDeleteBlock: ((_ recordID: CKRecord.ID, _ deleteResult: Result<Void, Error>) -> Void)?
1177 | static var resultsLimit: Int?
/Users/admin/builder/spi-builder-workspace/Sources/MockCloudKitFramework/MockCloudKit.swift:1176:20: warning: static property 'perRecordDeleteBlock' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
1174 | static var queryResultBlock: ((_ operationResult: Result<CKQueryOperation.Cursor?, Error>) -> Void)?
1175 | static var perRecordSaveBlock: ((_ recordID: CKRecord.ID, _ saveResult: Result<CKRecord, Error>) -> Void)?
1176 | static var perRecordDeleteBlock: ((_ recordID: CKRecord.ID, _ deleteResult: Result<Void, Error>) -> Void)?
| |- warning: static property 'perRecordDeleteBlock' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'perRecordDeleteBlock' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'perRecordDeleteBlock' 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
1177 | static var resultsLimit: Int?
1178 | static var desiredKeys: [CKRecord.FieldKey]?
/Users/admin/builder/spi-builder-workspace/Sources/MockCloudKitFramework/MockCloudKit.swift:1177:20: warning: static property 'resultsLimit' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
1175 | static var perRecordSaveBlock: ((_ recordID: CKRecord.ID, _ saveResult: Result<CKRecord, Error>) -> Void)?
1176 | static var perRecordDeleteBlock: ((_ recordID: CKRecord.ID, _ deleteResult: Result<Void, Error>) -> Void)?
1177 | static var resultsLimit: Int?
| |- warning: static property 'resultsLimit' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'resultsLimit' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'resultsLimit' 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
1178 | static var desiredKeys: [CKRecord.FieldKey]?
1179 | static var error: NSError?
/Users/admin/builder/spi-builder-workspace/Sources/MockCloudKitFramework/MockCloudKit.swift:1178:20: warning: static property 'desiredKeys' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
1176 | static var perRecordDeleteBlock: ((_ recordID: CKRecord.ID, _ deleteResult: Result<Void, Error>) -> Void)?
1177 | static var resultsLimit: Int?
1178 | static var desiredKeys: [CKRecord.FieldKey]?
| |- warning: static property 'desiredKeys' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'desiredKeys' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'desiredKeys' 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
1179 | static var error: NSError?
1180 | static var recordErrors: [CKRecord.ID]?
/Users/admin/builder/spi-builder-workspace/Sources/MockCloudKitFramework/MockCloudKit.swift:1179:20: warning: static property 'error' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
1177 | static var resultsLimit: Int?
1178 | static var desiredKeys: [CKRecord.FieldKey]?
1179 | static var error: NSError?
| |- warning: static property 'error' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'error' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'error' 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
1180 | static var recordErrors: [CKRecord.ID]?
1181 | static var database: MockCKDatabase?
/Users/admin/builder/spi-builder-workspace/Sources/MockCloudKitFramework/MockCloudKit.swift:1180:20: warning: static property 'recordErrors' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
1178 | static var desiredKeys: [CKRecord.FieldKey]?
1179 | static var error: NSError?
1180 | static var recordErrors: [CKRecord.ID]?
| |- warning: static property 'recordErrors' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'recordErrors' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'recordErrors' 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
1181 | static var database: MockCKDatabase?
1182 | static var operationConfiguration: CKOperation.Configuration?
/Users/admin/builder/spi-builder-workspace/Sources/MockCloudKitFramework/MockCloudKit.swift:1181:20: warning: static property 'database' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
1179 | static var error: NSError?
1180 | static var recordErrors: [CKRecord.ID]?
1181 | static var database: MockCKDatabase?
| |- warning: static property 'database' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'database' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'database' 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
1182 | static var operationConfiguration: CKOperation.Configuration?
1183 | }
/Users/admin/builder/spi-builder-workspace/Sources/MockCloudKitFramework/MockCloudKit.swift:1182:20: warning: static property 'operationConfiguration' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
1180 | static var recordErrors: [CKRecord.ID]?
1181 | static var database: MockCKDatabase?
1182 | static var operationConfiguration: CKOperation.Configuration?
| |- warning: static property 'operationConfiguration' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'operationConfiguration' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'operationConfiguration' 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
1183 | }
1184 | // reset state for MockCKDatabaseOperation subclasses (Hold is a struct, so each subclass has its own state copy)
/Users/admin/builder/spi-builder-workspace/Sources/MockCloudKitFramework/MockCloudKit.swift:1355:20: warning: class 'MockCKModifyRecordsOperation' must restate inherited '@unchecked Sendable' conformance
1353 | ```
1354 | */
1355 | public final class MockCKModifyRecordsOperation: MockCKDatabaseOperation, CKModifyRecordsOperational {
| `- warning: class 'MockCKModifyRecordsOperation' must restate inherited '@unchecked Sendable' conformance
1356 | /// The list of CKRecord instances to save
1357 | @objc public var recordsToSave: [CKRecord]?
/Users/admin/builder/spi-builder-workspace/Sources/MockCloudKitFramework/MockCloudKit.swift:1514:20: warning: class 'MockCKFetchRecordsOperation' must restate inherited '@unchecked Sendable' conformance
1512 | ```
1513 | */
1514 | public final class MockCKFetchRecordsOperation: MockCKDatabaseOperation, CKFetchRecordsOperational {
| `- warning: class 'MockCKFetchRecordsOperation' must restate inherited '@unchecked Sendable' conformance
1515 | private var myRecordIDs: [CKRecord.ID]?
1516 |
/Users/admin/builder/spi-builder-workspace/Sources/MockCloudKitFramework/MockCloudKit.swift:1659:20: warning: class 'MockCKQueryOperation' must restate inherited '@unchecked Sendable' conformance
1657 | ```
1658 | */
1659 | public final class MockCKQueryOperation: MockCKDatabaseOperation, CKQueryOperational {
| `- warning: class 'MockCKQueryOperation' must restate inherited '@unchecked Sendable' conformance
1660 | /// The query for the search.
1661 | @objc public var query: CKQuery?
Build complete! (6.71s)
Build complete.
{
"dependencies" : [
],
"manifest_display_name" : "MockCloudKitFramework",
"name" : "MockCloudKitFramework",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
{
"name" : "macos",
"version" : "12.0"
},
{
"name" : "ios",
"version" : "15.0"
}
],
"products" : [
{
"name" : "MockCloudKitFramework",
"targets" : [
"MockCloudKitFramework"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "MockCloudKitFramework",
"module_type" : "SwiftTarget",
"name" : "MockCloudKitFramework",
"path" : "Sources/MockCloudKitFramework",
"product_memberships" : [
"MockCloudKitFramework"
],
"sources" : [
"MockCloudKit.swift"
],
"type" : "library"
}
],
"tools_version" : "5.5"
}
Done.