This is a staging environment. For live and up-to-date package information, visit swiftpackageindex.com.

The Swift Package Index logo.Swift Package Index

Track the adoption of Swift 6 strict concurrency checks for data race safety. How many packages are Ready for Swift 6?

Build Information

Successful build of CombineCloudKit with Swift 6.0 for macOS (SPM).

Swift 6 data race errors: 14

Build Command

env DEVELOPER_DIR=/Applications/Xcode-15.3.0.app xcrun --toolchain org.swift.600202405261a swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete

Build Log

========================================
RunAll
========================================
Builder version: 4.40.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/chris-araman/CombineCloudKit.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/chris-araman/CombineCloudKit
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at e688615 Deprecate
Cloned https://github.com/chris-araman/CombineCloudKit.git
Revision (git rev-parse @):
e688615584ed7e37b100f7dd48ffddf554cdc932
SUCCESS checkout https://github.com/chris-araman/CombineCloudKit.git at main
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.0
Building package at path:  $workDir
https://github.com/chris-araman/CombineCloudKit.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-15.3.0.app xcrun --toolchain org.swift.600202405261a 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-6F35C1178C84523A.txt
[3/20] Compiling CombineCloudKit CCKModifySubscriptionsOperation.swift
[4/20] Compiling CombineCloudKit CCKOperation.swift
[5/20] Compiling CombineCloudKit CCKQueryOperation.swift
[6/20] Compiling CombineCloudKit CCKDatabaseOperation.swift
[7/20] Compiling CombineCloudKit CCKFetchRecordZonesOperation.swift
[8/21] Compiling CombineCloudKit CCKModifyRecordZonesOperation.swift
[9/21] Compiling CombineCloudKit CCKModifyRecordsOperation.swift
[10/21] Compiling CombineCloudKit Publisher.swift
/Users/admin/builder/spi-builder-workspace/Sources/CombineCloudKit/OperationFactory.swift:12:5: warning: var 'operationFactory' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
 10 |
 11 | /// Allows dependency injection for testing.
 12 | var operationFactory: OperationFactory = CKOperationFactory()
    |     |- warning: var 'operationFactory' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
    |     |- note: convert 'operationFactory' to a 'let' constant to make 'Sendable' shared state immutable
    |     |- note: annotate 'operationFactory' 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
 13 |
 14 | protocol OperationFactory {
[11/21] Compiling CombineCloudKit OperationFactory.swift
/Users/admin/builder/spi-builder-workspace/Sources/CombineCloudKit/OperationFactory.swift:12:5: warning: var 'operationFactory' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
 10 |
 11 | /// Allows dependency injection for testing.
 12 | var operationFactory: OperationFactory = CKOperationFactory()
    |     |- warning: var 'operationFactory' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
    |     |- note: convert 'operationFactory' to a 'let' constant to make 'Sendable' shared state immutable
    |     |- note: annotate 'operationFactory' 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
 13 |
 14 | protocol OperationFactory {
[12/21] Compiling CombineCloudKit CCKFetchRecordsOperation.swift
[13/21] Compiling CombineCloudKit CCKFetchSubscriptionsOperation.swift
[14/21] Compiling CombineCloudKit CCKDatabase+CKSubscription.swift
/Users/admin/builder/spi-builder-workspace/Sources/CombineCloudKit/OperationFactory.swift:12:5: warning: var 'operationFactory' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
 10 |
 11 | /// Allows dependency injection for testing.
 12 | var operationFactory: OperationFactory = CKOperationFactory()
    |     |- warning: var 'operationFactory' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
    |     |- note: convert 'operationFactory' to a 'let' constant to make 'Sendable' shared state immutable
    |     |- note: annotate 'operationFactory' 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
 13 |
 14 | protocol OperationFactory {
/Users/admin/builder/spi-builder-workspace/Sources/CombineCloudKit/Protocols/CCKDatabase.swift:17:1: warning: sendability of function types in instance method 'delete(withRecordID:completionHandler:)' does not match requirement in protocol 'CCKDatabase'; this is an error in the Swift 6 language mode
 15 | /// - SeeAlso: [`CloudKit`](https://developer.apple.com/documentation/cloudkit)
 16 | /// - SeeAlso: [`Combine`](https://developer.apple.com/documentation/combine)
 17 | extension CKDatabase: CCKDatabase {
    | `- warning: sendability of function types in instance method 'delete(withRecordID:completionHandler:)' does not match requirement in protocol 'CCKDatabase'; this is an error in the Swift 6 language mode
 18 | }
 19 |
    :
 30 |   ///
 31 |   /// - SeeAlso: [`delete`](https://developer.apple.com/documentation/cloudkit/ckdatabase/1449122-delete)
 32 |   func delete(
    |        `- note: expected sendability to match requirement here
 33 |     withRecordID recordID: CKRecord.ID, completionHandler: @escaping (CKRecord.ID?, Error?) -> Void)
 34 |
/Users/admin/builder/spi-builder-workspace/Sources/CombineCloudKit/Protocols/CCKDatabase.swift:17:1: warning: sendability of function types in instance method 'delete(withRecordZoneID:completionHandler:)' does not match requirement in protocol 'CCKDatabase'; this is an error in the Swift 6 language mode
 15 | /// - SeeAlso: [`CloudKit`](https://developer.apple.com/documentation/cloudkit)
 16 | /// - SeeAlso: [`Combine`](https://developer.apple.com/documentation/combine)
 17 | extension CKDatabase: CCKDatabase {
    | `- warning: sendability of function types in instance method 'delete(withRecordZoneID:completionHandler:)' does not match requirement in protocol 'CCKDatabase'; this is an error in the Swift 6 language mode
 18 | }
 19 |
    :
 36 |   ///
 37 |   /// - SeeAlso: [`delete`](https://developer.apple.com/documentation/cloudkit/ckdatabase/1449118-delete)
 38 |   func delete(
    |        `- note: expected sendability to match requirement here
 39 |     withRecordZoneID zoneID: CKRecordZone.ID,
 40 |     completionHandler: @escaping (CKRecordZone.ID?, Error?) -> Void)
/Users/admin/builder/spi-builder-workspace/Sources/CombineCloudKit/Protocols/CCKDatabase.swift:17:1: warning: sendability of function types in instance method 'delete(withSubscriptionID:completionHandler:)' does not match requirement in protocol 'CCKDatabase'; this is an error in the Swift 6 language mode
 15 | /// - SeeAlso: [`CloudKit`](https://developer.apple.com/documentation/cloudkit)
 16 | /// - SeeAlso: [`Combine`](https://developer.apple.com/documentation/combine)
 17 | extension CKDatabase: CCKDatabase {
    | `- warning: sendability of function types in instance method 'delete(withSubscriptionID:completionHandler:)' does not match requirement in protocol 'CCKDatabase'; this is an error in the Swift 6 language mode
 18 | }
 19 |
    :
 43 |   ///
 44 |   /// - SeeAlso: [`delete`](https://developer.apple.com/documentation/cloudkit/ckdatabase/3003590-delete)
 45 |   func delete(
    |        `- note: expected sendability to match requirement here
 46 |     withSubscriptionID subscriptionID: CKSubscription.ID,
 47 |     completionHandler: @escaping (String?, Error?) -> Void)
/Users/admin/builder/spi-builder-workspace/Sources/CombineCloudKit/Protocols/CCKDatabase.swift:17:1: warning: sendability of function types in instance method 'fetch(withRecordID:completionHandler:)' does not match requirement in protocol 'CCKDatabase'; this is an error in the Swift 6 language mode
 15 | /// - SeeAlso: [`CloudKit`](https://developer.apple.com/documentation/cloudkit)
 16 | /// - SeeAlso: [`Combine`](https://developer.apple.com/documentation/combine)
 17 | extension CKDatabase: CCKDatabase {
    | `- warning: sendability of function types in instance method 'fetch(withRecordID:completionHandler:)' does not match requirement in protocol 'CCKDatabase'; this is an error in the Swift 6 language mode
 18 | }
 19 |
    :
 50 |   ///
 51 |   /// - SeeAlso: [fetch](https://developer.apple.com/documentation/cloudkit/ckdatabase/1449126-fetch)
 52 |   func fetch(
    |        `- note: expected sendability to match requirement here
 53 |     withRecordID recordID: CKRecord.ID, completionHandler: @escaping (CKRecord?, Error?) -> Void)
 54 |
/Users/admin/builder/spi-builder-workspace/Sources/CombineCloudKit/Protocols/CCKDatabase.swift:17:1: warning: sendability of function types in instance method 'fetch(withRecordZoneID:completionHandler:)' does not match requirement in protocol 'CCKDatabase'; this is an error in the Swift 6 language mode
 15 | /// - SeeAlso: [`CloudKit`](https://developer.apple.com/documentation/cloudkit)
 16 | /// - SeeAlso: [`Combine`](https://developer.apple.com/documentation/combine)
 17 | extension CKDatabase: CCKDatabase {
    | `- warning: sendability of function types in instance method 'fetch(withRecordZoneID:completionHandler:)' does not match requirement in protocol 'CCKDatabase'; this is an error in the Swift 6 language mode
 18 | }
 19 |
    :
 56 |   ///
 57 |   /// - SeeAlso: [fetch](https://developer.apple.com/documentation/cloudkit/ckdatabase/1449104-fetch)
 58 |   func fetch(
    |        `- note: expected sendability to match requirement here
 59 |     withRecordZoneID zoneID: CKRecordZone.ID,
 60 |     completionHandler: @escaping (CKRecordZone?, Error?) -> Void)
/Users/admin/builder/spi-builder-workspace/Sources/CombineCloudKit/Protocols/CCKDatabase.swift:17:1: warning: sendability of function types in instance method 'fetch(withSubscriptionID:completionHandler:)' does not match requirement in protocol 'CCKDatabase'; this is an error in the Swift 6 language mode
 15 | /// - SeeAlso: [`CloudKit`](https://developer.apple.com/documentation/cloudkit)
 16 | /// - SeeAlso: [`Combine`](https://developer.apple.com/documentation/combine)
 17 | extension CKDatabase: CCKDatabase {
    | `- warning: sendability of function types in instance method 'fetch(withSubscriptionID:completionHandler:)' does not match requirement in protocol 'CCKDatabase'; this is an error in the Swift 6 language mode
 18 | }
 19 |
    :
 63 |   ///
 64 |   /// - SeeAlso: [fetch](https://developer.apple.com/documentation/cloudkit/ckdatabase/3003591-fetch)
 65 |   func fetch(
    |        `- note: expected sendability to match requirement here
 66 |     withSubscriptionID subscriptionID: CKSubscription.ID,
 67 |     completionHandler: @escaping (CKSubscription?, Error?) -> Void)
/Users/admin/builder/spi-builder-workspace/Sources/CombineCloudKit/Protocols/CCKDatabase.swift:17:1: warning: sendability of function types in instance method 'fetchAllRecordZones(completionHandler:)' does not match requirement in protocol 'CCKDatabase'; this is an error in the Swift 6 language mode
 15 | /// - SeeAlso: [`CloudKit`](https://developer.apple.com/documentation/cloudkit)
 16 | /// - SeeAlso: [`Combine`](https://developer.apple.com/documentation/combine)
 17 | extension CKDatabase: CCKDatabase {
    | `- warning: sendability of function types in instance method 'fetchAllRecordZones(completionHandler:)' does not match requirement in protocol 'CCKDatabase'; this is an error in the Swift 6 language mode
 18 | }
 19 |
    :
 70 |   ///
 71 |   /// - SeeAlso: [fetchAllRecordZones](https://developer.apple.com/documentation/cloudkit/ckdatabase/1449112-fetchallrecordzones)
 72 |   func fetchAllRecordZones(completionHandler: @escaping ([CKRecordZone]?, Error?) -> Void)
    |        `- note: expected sendability to match requirement here
 73 |
 74 |   /// Implemented by `CKDatabase`.
/Users/admin/builder/spi-builder-workspace/Sources/CombineCloudKit/Protocols/CCKDatabase.swift:17:1: warning: sendability of function types in instance method 'fetchAllSubscriptions(completionHandler:)' does not match requirement in protocol 'CCKDatabase'; this is an error in the Swift 6 language mode
 15 | /// - SeeAlso: [`CloudKit`](https://developer.apple.com/documentation/cloudkit)
 16 | /// - SeeAlso: [`Combine`](https://developer.apple.com/documentation/combine)
 17 | extension CKDatabase: CCKDatabase {
    | `- warning: sendability of function types in instance method 'fetchAllSubscriptions(completionHandler:)' does not match requirement in protocol 'CCKDatabase'; this is an error in the Swift 6 language mode
 18 | }
 19 |
    :
 75 |   ///
 76 |   /// - SeeAlso: [fetchAllSubscriptions](https://developer.apple.com/documentation/cloudkit/ckdatabase/1449110-fetchallsubscriptions)
 77 |   func fetchAllSubscriptions(completionHandler: @escaping ([CKSubscription]?, Error?) -> Void)
    |        `- note: expected sendability to match requirement here
 78 |
 79 |   /// Implemented by `CKDatabase`.
/Users/admin/builder/spi-builder-workspace/Sources/CombineCloudKit/Protocols/CCKDatabase.swift:17:1: warning: sendability of function types in instance method 'perform(_:inZoneWith:completionHandler:)' does not match requirement in protocol 'CCKDatabase'; this is an error in the Swift 6 language mode
 15 | /// - SeeAlso: [`CloudKit`](https://developer.apple.com/documentation/cloudkit)
 16 | /// - SeeAlso: [`Combine`](https://developer.apple.com/documentation/combine)
 17 | extension CKDatabase: CCKDatabase {
    | `- warning: sendability of function types in instance method 'perform(_:inZoneWith:completionHandler:)' does not match requirement in protocol 'CCKDatabase'; this is an error in the Swift 6 language mode
 18 | }
 19 |
    :
 80 |   ///
 81 |   /// - SeeAlso: [fetchAllSubscriptions](https://developer.apple.com/documentation/cloudkit/ckdatabase/1449127-perform)
 82 |   func perform(
    |        `- note: expected sendability to match requirement here
 83 |     _ query: CKQuery,
 84 |     inZoneWith zoneID: CKRecordZone.ID?,
/Users/admin/builder/spi-builder-workspace/Sources/CombineCloudKit/Protocols/CCKDatabase.swift:17:1: warning: sendability of function types in instance method 'save(_:completionHandler:)' does not match requirement in protocol 'CCKDatabase'; this is an error in the Swift 6 language mode
 15 | /// - SeeAlso: [`CloudKit`](https://developer.apple.com/documentation/cloudkit)
 16 | /// - SeeAlso: [`Combine`](https://developer.apple.com/documentation/combine)
 17 | extension CKDatabase: CCKDatabase {
    | `- warning: sendability of function types in instance method 'save(_:completionHandler:)' does not match requirement in protocol 'CCKDatabase'; this is an error in the Swift 6 language mode
 18 | }
 19 |
    :
 88 |   ///
 89 |   /// - SeeAlso: [`save`](https://developer.apple.com/documentation/cloudkit/ckdatabase/1449114-save)
 90 |   func save(_ record: CKRecord, completionHandler: @escaping (CKRecord?, Error?) -> Void)
    |        `- note: expected sendability to match requirement here
 91 |
 92 |   /// Implemented by `CKDatabase`.
/Users/admin/builder/spi-builder-workspace/Sources/CombineCloudKit/Protocols/CCKDatabase.swift:17:1: warning: sendability of function types in instance method 'save(_:completionHandler:)' does not match requirement in protocol 'CCKDatabase'; this is an error in the Swift 6 language mode
 15 | /// - SeeAlso: [`CloudKit`](https://developer.apple.com/documentation/cloudkit)
 16 | /// - SeeAlso: [`Combine`](https://developer.apple.com/documentation/combine)
 17 | extension CKDatabase: CCKDatabase {
    | `- warning: sendability of function types in instance method 'save(_:completionHandler:)' does not match requirement in protocol 'CCKDatabase'; this is an error in the Swift 6 language mode
 18 | }
 19 |
    :
 93 |   ///
 94 |   /// - SeeAlso: [`save`](https://developer.apple.com/documentation/cloudkit/ckdatabase/1449108-save)
 95 |   func save(_ zone: CKRecordZone, completionHandler: @escaping (CKRecordZone?, Error?) -> Void)
    |        `- note: expected sendability to match requirement here
 96 |
 97 |   /// Implemented by `CKDatabase`.
/Users/admin/builder/spi-builder-workspace/Sources/CombineCloudKit/Protocols/CCKDatabase.swift:17:1: warning: sendability of function types in instance method 'save(_:completionHandler:)' does not match requirement in protocol 'CCKDatabase'; this is an error in the Swift 6 language mode
 15 | /// - SeeAlso: [`CloudKit`](https://developer.apple.com/documentation/cloudkit)
 16 | /// - SeeAlso: [`Combine`](https://developer.apple.com/documentation/combine)
 17 | extension CKDatabase: CCKDatabase {
    | `- warning: sendability of function types in instance method 'save(_:completionHandler:)' does not match requirement in protocol 'CCKDatabase'; this is an error in the Swift 6 language mode
 18 | }
 19 |
    :
 98 |   ///
 99 |   /// - SeeAlso: [`save`](https://developer.apple.com/documentation/cloudkit/ckdatabase/1449102-save)
100 |   func save(
    |        `- note: expected sendability to match requirement here
101 |     _ subscription: CKSubscription, completionHandler: @escaping (CKSubscription?, Error?) -> Void)
102 | }
/Users/admin/builder/spi-builder-workspace/Sources/CombineCloudKit/Protocols/CCKDatabase.swift:123:11: warning: capture of 'method' with non-sendable type '(Input, @escaping (Output?, (any Error)?) -> Void) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
121 |       Future { promise in
122 |         DispatchQueue.main.async {
123 |           method(input) { output, error in
    |           |- warning: capture of 'method' with non-sendable type '(Input, @escaping (Output?, (any Error)?) -> Void) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
    |           `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
124 |             guard let output = output, error == nil else {
125 |               promise(.failure(error!))
/Users/admin/builder/spi-builder-workspace/Sources/CombineCloudKit/Protocols/CCKDatabase.swift:123:18: warning: capture of 'input' with non-sendable type 'Input' in a `@Sendable` closure; this is an error in the Swift 6 language mode
114 |   }
115 |
116 |   func publisherAtBackgroundPriorityFrom<Input, Output>(
    |                                          `- note: consider making generic parameter 'Input' conform to the 'Sendable' protocol
117 |     _ method: @escaping (Input, @escaping (Output?, Error?) -> Void) -> Void,
118 |     with input: Input
    :
121 |       Future { promise in
122 |         DispatchQueue.main.async {
123 |           method(input) { output, error in
    |                  `- warning: capture of 'input' with non-sendable type 'Input' in a `@Sendable` closure; this is an error in the Swift 6 language mode
124 |             guard let output = output, error == nil else {
125 |               promise(.failure(error!))
/Users/admin/builder/spi-builder-workspace/Sources/CombineCloudKit/Protocols/CCKDatabase.swift:125:15: warning: capture of 'promise' with non-sendable type '(Result<Output, any Error>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
123 |           method(input) { output, error in
124 |             guard let output = output, error == nil else {
125 |               promise(.failure(error!))
    |               |- warning: capture of 'promise' with non-sendable type '(Result<Output, any Error>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
    |               `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
126 |               return
127 |             }
/Users/admin/builder/spi-builder-workspace/Sources/CombineCloudKit/Protocols/CCKDatabase.swift:125:15: warning: capture of 'promise' with non-sendable type '(Result<Output, any Error>) -> Void' in an isolated closure; this is an error in the Swift 6 language mode
123 |           method(input) { output, error in
124 |             guard let output = output, error == nil else {
125 |               promise(.failure(error!))
    |               |- warning: capture of 'promise' with non-sendable type '(Result<Output, any Error>) -> Void' in an isolated closure; this is an error in the Swift 6 language mode
    |               `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
126 |               return
127 |             }
<unknown>:0: note: consider making generic parameter 'Self' conform to the 'Sendable' protocol
/Users/admin/builder/spi-builder-workspace/Sources/CombineCloudKit/Protocols/CCKDatabase.swift:160:9: warning: capture of 'self' with non-sendable type 'Self' in a `@Sendable` closure; this is an error in the Swift 6 language mode
158 |     return Deferred { () -> PassthroughSubject<Output, Error> in
159 |       DispatchQueue.main.async {
160 |         self.add(operation)
    |         `- warning: capture of 'self' with non-sendable type 'Self' in a `@Sendable` closure; this is an error in the Swift 6 language mode
161 |       }
162 |
/Users/admin/builder/spi-builder-workspace/Sources/CombineCloudKit/Protocols/CCKDatabase.swift:174:9: warning: capture of 'method' with non-sendable type '(@escaping ([Output]?, (any Error)?) -> Void) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
172 |
173 |       DispatchQueue.main.async {
174 |         method { outputs, error in
    |         |- warning: capture of 'method' with non-sendable type '(@escaping ([Output]?, (any Error)?) -> Void) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
    |         `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
175 |           guard let outputs = outputs, error == nil else {
176 |             subject.send(completion: .failure(error!))
/Users/admin/builder/spi-builder-workspace/Sources/CombineCloudKit/Protocols/CCKDatabase.swift:176:13: warning: capture of 'subject' with non-sendable type 'PassthroughSubject<Output, any Error>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
174 |         method { outputs, error in
175 |           guard let outputs = outputs, error == nil else {
176 |             subject.send(completion: .failure(error!))
    |             `- warning: capture of 'subject' with non-sendable type 'PassthroughSubject<Output, any Error>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
177 |             return
178 |           }
Combine.PassthroughSubject:2:20: note: generic class 'PassthroughSubject' does not conform to the 'Sendable' protocol
 1 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
 2 | final public class PassthroughSubject<Output, Failure> : Subject where Failure : Error {
   |                    `- note: generic class 'PassthroughSubject' does not conform to the 'Sendable' protocol
 3 |     public init()
 4 |     @objc deinit
/Users/admin/builder/spi-builder-workspace/Sources/CombineCloudKit/Protocols/CCKDatabase.swift:10:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Combine'
  8 |
  9 | import CloudKit
 10 | import Combine
    | `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Combine'
 11 |
 12 | /// An extension that declares [`CKDatabase`](https://developer.apple.com/documentation/cloudkit/ckdatabase)
/Users/admin/builder/spi-builder-workspace/Sources/CombineCloudKit/Protocols/CCKDatabase.swift:176:13: warning: capture of 'subject' with non-sendable type 'PassthroughSubject<Output, any Error>' in an isolated closure; this is an error in the Swift 6 language mode
174 |         method { outputs, error in
175 |           guard let outputs = outputs, error == nil else {
176 |             subject.send(completion: .failure(error!))
    |             `- warning: capture of 'subject' with non-sendable type 'PassthroughSubject<Output, any Error>' in an isolated closure; this is an error in the Swift 6 language mode
177 |             return
178 |           }
Combine.PassthroughSubject:2:20: note: generic class 'PassthroughSubject' does not conform to the 'Sendable' protocol
 1 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
 2 | final public class PassthroughSubject<Output, Failure> : Subject where Failure : Error {
   |                    `- note: generic class 'PassthroughSubject' does not conform to the 'Sendable' protocol
 3 |     public init()
 4 |     @objc deinit
<unknown>:0: note: consider making generic parameter 'Self' conform to the 'Sendable' protocol
/Users/admin/builder/spi-builder-workspace/Sources/CombineCloudKit/Protocols/CCKDatabase.swift:224:9: warning: capture of 'self' with non-sendable type 'Self' in a `@Sendable` closure; this is an error in the Swift 6 language mode
222 |     return Deferred { () -> PassthroughSubject<(Output?, OutputID?), Error> in
223 |       DispatchQueue.main.async {
224 |         self.add(operation)
    |         `- warning: capture of 'self' with non-sendable type 'Self' in a `@Sendable` closure; this is an error in the Swift 6 language mode
225 |       }
226 |
/Users/admin/builder/spi-builder-workspace/Sources/CombineCloudKit/Protocols/CCKDatabase.swift:123:11: warning: sending 'method' risks causing data races; this is an error in the Swift 6 language mode
121 |       Future { promise in
122 |         DispatchQueue.main.async {
123 |           method(input) { output, error in
    |           |- warning: sending 'method' risks causing data races; this is an error in the Swift 6 language mode
    |           `- note: task-isolated 'method' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
124 |             guard let output = output, error == nil else {
125 |               promise(.failure(error!))
/Users/admin/builder/spi-builder-workspace/Sources/CombineCloudKit/Protocols/CCKDatabase.swift:123:18: warning: sending 'input' risks causing data races; this is an error in the Swift 6 language mode
121 |       Future { promise in
122 |         DispatchQueue.main.async {
123 |           method(input) { output, error in
    |                  |- warning: sending 'input' risks causing data races; this is an error in the Swift 6 language mode
    |                  `- note: task-isolated 'input' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
124 |             guard let output = output, error == nil else {
125 |               promise(.failure(error!))
/Users/admin/builder/spi-builder-workspace/Sources/CombineCloudKit/Protocols/CCKDatabase.swift:125:15: warning: sending 'promise' risks causing data races; this is an error in the Swift 6 language mode
123 |           method(input) { output, error in
124 |             guard let output = output, error == nil else {
125 |               promise(.failure(error!))
    |               |- warning: sending 'promise' risks causing data races; this is an error in the Swift 6 language mode
    |               `- note: task-isolated 'promise' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
126 |               return
127 |             }
/Users/admin/builder/spi-builder-workspace/Sources/CombineCloudKit/Protocols/CCKDatabase.swift:160:9: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
158 |     return Deferred { () -> PassthroughSubject<Output, Error> in
159 |       DispatchQueue.main.async {
160 |         self.add(operation)
    |         |- warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
    |         `- note: task-isolated 'self' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
161 |       }
162 |
/Users/admin/builder/spi-builder-workspace/Sources/CombineCloudKit/Protocols/CCKDatabase.swift:174:9: warning: sending 'method' risks causing data races; this is an error in the Swift 6 language mode
172 |
173 |       DispatchQueue.main.async {
174 |         method { outputs, error in
    |         |- warning: sending 'method' risks causing data races; this is an error in the Swift 6 language mode
    |         `- note: task-isolated 'method' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
175 |           guard let outputs = outputs, error == nil else {
176 |             subject.send(completion: .failure(error!))
/Users/admin/builder/spi-builder-workspace/Sources/CombineCloudKit/Protocols/CCKDatabase.swift:176:13: warning: sending 'subject' risks causing data races; this is an error in the Swift 6 language mode
174 |         method { outputs, error in
175 |           guard let outputs = outputs, error == nil else {
176 |             subject.send(completion: .failure(error!))
    |             |- warning: sending 'subject' risks causing data races; this is an error in the Swift 6 language mode
    |             `- note: 'subject' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
177 |             return
178 |           }
    :
186 |       }
187 |
188 |       return subject
    |              `- note: access can happen concurrently
189 |     }.eraseToAnyPublisher()
190 |   }
/Users/admin/builder/spi-builder-workspace/Sources/CombineCloudKit/Protocols/CCKDatabase.swift:224:9: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
222 |     return Deferred { () -> PassthroughSubject<(Output?, OutputID?), Error> in
223 |       DispatchQueue.main.async {
224 |         self.add(operation)
    |         |- warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
    |         `- note: task-isolated 'self' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
225 |       }
226 |
[15/21] Compiling CombineCloudKit CCKDatabase.swift
/Users/admin/builder/spi-builder-workspace/Sources/CombineCloudKit/OperationFactory.swift:12:5: warning: var 'operationFactory' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
 10 |
 11 | /// Allows dependency injection for testing.
 12 | var operationFactory: OperationFactory = CKOperationFactory()
    |     |- warning: var 'operationFactory' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
    |     |- note: convert 'operationFactory' to a 'let' constant to make 'Sendable' shared state immutable
    |     |- note: annotate 'operationFactory' 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
 13 |
 14 | protocol OperationFactory {
/Users/admin/builder/spi-builder-workspace/Sources/CombineCloudKit/Protocols/CCKDatabase.swift:17:1: warning: sendability of function types in instance method 'delete(withRecordID:completionHandler:)' does not match requirement in protocol 'CCKDatabase'; this is an error in the Swift 6 language mode
 15 | /// - SeeAlso: [`CloudKit`](https://developer.apple.com/documentation/cloudkit)
 16 | /// - SeeAlso: [`Combine`](https://developer.apple.com/documentation/combine)
 17 | extension CKDatabase: CCKDatabase {
    | `- warning: sendability of function types in instance method 'delete(withRecordID:completionHandler:)' does not match requirement in protocol 'CCKDatabase'; this is an error in the Swift 6 language mode
 18 | }
 19 |
    :
 30 |   ///
 31 |   /// - SeeAlso: [`delete`](https://developer.apple.com/documentation/cloudkit/ckdatabase/1449122-delete)
 32 |   func delete(
    |        `- note: expected sendability to match requirement here
 33 |     withRecordID recordID: CKRecord.ID, completionHandler: @escaping (CKRecord.ID?, Error?) -> Void)
 34 |
/Users/admin/builder/spi-builder-workspace/Sources/CombineCloudKit/Protocols/CCKDatabase.swift:17:1: warning: sendability of function types in instance method 'delete(withRecordZoneID:completionHandler:)' does not match requirement in protocol 'CCKDatabase'; this is an error in the Swift 6 language mode
 15 | /// - SeeAlso: [`CloudKit`](https://developer.apple.com/documentation/cloudkit)
 16 | /// - SeeAlso: [`Combine`](https://developer.apple.com/documentation/combine)
 17 | extension CKDatabase: CCKDatabase {
    | `- warning: sendability of function types in instance method 'delete(withRecordZoneID:completionHandler:)' does not match requirement in protocol 'CCKDatabase'; this is an error in the Swift 6 language mode
 18 | }
 19 |
    :
 36 |   ///
 37 |   /// - SeeAlso: [`delete`](https://developer.apple.com/documentation/cloudkit/ckdatabase/1449118-delete)
 38 |   func delete(
    |        `- note: expected sendability to match requirement here
 39 |     withRecordZoneID zoneID: CKRecordZone.ID,
 40 |     completionHandler: @escaping (CKRecordZone.ID?, Error?) -> Void)
/Users/admin/builder/spi-builder-workspace/Sources/CombineCloudKit/Protocols/CCKDatabase.swift:17:1: warning: sendability of function types in instance method 'delete(withSubscriptionID:completionHandler:)' does not match requirement in protocol 'CCKDatabase'; this is an error in the Swift 6 language mode
 15 | /// - SeeAlso: [`CloudKit`](https://developer.apple.com/documentation/cloudkit)
 16 | /// - SeeAlso: [`Combine`](https://developer.apple.com/documentation/combine)
 17 | extension CKDatabase: CCKDatabase {
    | `- warning: sendability of function types in instance method 'delete(withSubscriptionID:completionHandler:)' does not match requirement in protocol 'CCKDatabase'; this is an error in the Swift 6 language mode
 18 | }
 19 |
    :
 43 |   ///
 44 |   /// - SeeAlso: [`delete`](https://developer.apple.com/documentation/cloudkit/ckdatabase/3003590-delete)
 45 |   func delete(
    |        `- note: expected sendability to match requirement here
 46 |     withSubscriptionID subscriptionID: CKSubscription.ID,
 47 |     completionHandler: @escaping (String?, Error?) -> Void)
/Users/admin/builder/spi-builder-workspace/Sources/CombineCloudKit/Protocols/CCKDatabase.swift:17:1: warning: sendability of function types in instance method 'fetch(withRecordID:completionHandler:)' does not match requirement in protocol 'CCKDatabase'; this is an error in the Swift 6 language mode
 15 | /// - SeeAlso: [`CloudKit`](https://developer.apple.com/documentation/cloudkit)
 16 | /// - SeeAlso: [`Combine`](https://developer.apple.com/documentation/combine)
 17 | extension CKDatabase: CCKDatabase {
    | `- warning: sendability of function types in instance method 'fetch(withRecordID:completionHandler:)' does not match requirement in protocol 'CCKDatabase'; this is an error in the Swift 6 language mode
 18 | }
 19 |
    :
 50 |   ///
 51 |   /// - SeeAlso: [fetch](https://developer.apple.com/documentation/cloudkit/ckdatabase/1449126-fetch)
 52 |   func fetch(
    |        `- note: expected sendability to match requirement here
 53 |     withRecordID recordID: CKRecord.ID, completionHandler: @escaping (CKRecord?, Error?) -> Void)
 54 |
/Users/admin/builder/spi-builder-workspace/Sources/CombineCloudKit/Protocols/CCKDatabase.swift:17:1: warning: sendability of function types in instance method 'fetch(withRecordZoneID:completionHandler:)' does not match requirement in protocol 'CCKDatabase'; this is an error in the Swift 6 language mode
 15 | /// - SeeAlso: [`CloudKit`](https://developer.apple.com/documentation/cloudkit)
 16 | /// - SeeAlso: [`Combine`](https://developer.apple.com/documentation/combine)
 17 | extension CKDatabase: CCKDatabase {
    | `- warning: sendability of function types in instance method 'fetch(withRecordZoneID:completionHandler:)' does not match requirement in protocol 'CCKDatabase'; this is an error in the Swift 6 language mode
 18 | }
 19 |
    :
 56 |   ///
 57 |   /// - SeeAlso: [fetch](https://developer.apple.com/documentation/cloudkit/ckdatabase/1449104-fetch)
 58 |   func fetch(
    |        `- note: expected sendability to match requirement here
 59 |     withRecordZoneID zoneID: CKRecordZone.ID,
 60 |     completionHandler: @escaping (CKRecordZone?, Error?) -> Void)
/Users/admin/builder/spi-builder-workspace/Sources/CombineCloudKit/Protocols/CCKDatabase.swift:17:1: warning: sendability of function types in instance method 'fetch(withSubscriptionID:completionHandler:)' does not match requirement in protocol 'CCKDatabase'; this is an error in the Swift 6 language mode
 15 | /// - SeeAlso: [`CloudKit`](https://developer.apple.com/documentation/cloudkit)
 16 | /// - SeeAlso: [`Combine`](https://developer.apple.com/documentation/combine)
 17 | extension CKDatabase: CCKDatabase {
    | `- warning: sendability of function types in instance method 'fetch(withSubscriptionID:completionHandler:)' does not match requirement in protocol 'CCKDatabase'; this is an error in the Swift 6 language mode
 18 | }
 19 |
    :
 63 |   ///
 64 |   /// - SeeAlso: [fetch](https://developer.apple.com/documentation/cloudkit/ckdatabase/3003591-fetch)
 65 |   func fetch(
    |        `- note: expected sendability to match requirement here
 66 |     withSubscriptionID subscriptionID: CKSubscription.ID,
 67 |     completionHandler: @escaping (CKSubscription?, Error?) -> Void)
/Users/admin/builder/spi-builder-workspace/Sources/CombineCloudKit/Protocols/CCKDatabase.swift:17:1: warning: sendability of function types in instance method 'fetchAllRecordZones(completionHandler:)' does not match requirement in protocol 'CCKDatabase'; this is an error in the Swift 6 language mode
 15 | /// - SeeAlso: [`CloudKit`](https://developer.apple.com/documentation/cloudkit)
 16 | /// - SeeAlso: [`Combine`](https://developer.apple.com/documentation/combine)
 17 | extension CKDatabase: CCKDatabase {
    | `- warning: sendability of function types in instance method 'fetchAllRecordZones(completionHandler:)' does not match requirement in protocol 'CCKDatabase'; this is an error in the Swift 6 language mode
 18 | }
 19 |
    :
 70 |   ///
 71 |   /// - SeeAlso: [fetchAllRecordZones](https://developer.apple.com/documentation/cloudkit/ckdatabase/1449112-fetchallrecordzones)
 72 |   func fetchAllRecordZones(completionHandler: @escaping ([CKRecordZone]?, Error?) -> Void)
    |        `- note: expected sendability to match requirement here
 73 |
 74 |   /// Implemented by `CKDatabase`.
/Users/admin/builder/spi-builder-workspace/Sources/CombineCloudKit/Protocols/CCKDatabase.swift:17:1: warning: sendability of function types in instance method 'fetchAllSubscriptions(completionHandler:)' does not match requirement in protocol 'CCKDatabase'; this is an error in the Swift 6 language mode
 15 | /// - SeeAlso: [`CloudKit`](https://developer.apple.com/documentation/cloudkit)
 16 | /// - SeeAlso: [`Combine`](https://developer.apple.com/documentation/combine)
 17 | extension CKDatabase: CCKDatabase {
    | `- warning: sendability of function types in instance method 'fetchAllSubscriptions(completionHandler:)' does not match requirement in protocol 'CCKDatabase'; this is an error in the Swift 6 language mode
 18 | }
 19 |
    :
 75 |   ///
 76 |   /// - SeeAlso: [fetchAllSubscriptions](https://developer.apple.com/documentation/cloudkit/ckdatabase/1449110-fetchallsubscriptions)
 77 |   func fetchAllSubscriptions(completionHandler: @escaping ([CKSubscription]?, Error?) -> Void)
    |        `- note: expected sendability to match requirement here
 78 |
 79 |   /// Implemented by `CKDatabase`.
/Users/admin/builder/spi-builder-workspace/Sources/CombineCloudKit/Protocols/CCKDatabase.swift:17:1: warning: sendability of function types in instance method 'perform(_:inZoneWith:completionHandler:)' does not match requirement in protocol 'CCKDatabase'; this is an error in the Swift 6 language mode
 15 | /// - SeeAlso: [`CloudKit`](https://developer.apple.com/documentation/cloudkit)
 16 | /// - SeeAlso: [`Combine`](https://developer.apple.com/documentation/combine)
 17 | extension CKDatabase: CCKDatabase {
    | `- warning: sendability of function types in instance method 'perform(_:inZoneWith:completionHandler:)' does not match requirement in protocol 'CCKDatabase'; this is an error in the Swift 6 language mode
 18 | }
 19 |
    :
 80 |   ///
 81 |   /// - SeeAlso: [fetchAllSubscriptions](https://developer.apple.com/documentation/cloudkit/ckdatabase/1449127-perform)
 82 |   func perform(
    |        `- note: expected sendability to match requirement here
 83 |     _ query: CKQuery,
 84 |     inZoneWith zoneID: CKRecordZone.ID?,
/Users/admin/builder/spi-builder-workspace/Sources/CombineCloudKit/Protocols/CCKDatabase.swift:17:1: warning: sendability of function types in instance method 'save(_:completionHandler:)' does not match requirement in protocol 'CCKDatabase'; this is an error in the Swift 6 language mode
 15 | /// - SeeAlso: [`CloudKit`](https://developer.apple.com/documentation/cloudkit)
 16 | /// - SeeAlso: [`Combine`](https://developer.apple.com/documentation/combine)
 17 | extension CKDatabase: CCKDatabase {
    | `- warning: sendability of function types in instance method 'save(_:completionHandler:)' does not match requirement in protocol 'CCKDatabase'; this is an error in the Swift 6 language mode
 18 | }
 19 |
    :
 88 |   ///
 89 |   /// - SeeAlso: [`save`](https://developer.apple.com/documentation/cloudkit/ckdatabase/1449114-save)
 90 |   func save(_ record: CKRecord, completionHandler: @escaping (CKRecord?, Error?) -> Void)
    |        `- note: expected sendability to match requirement here
 91 |
 92 |   /// Implemented by `CKDatabase`.
/Users/admin/builder/spi-builder-workspace/Sources/CombineCloudKit/Protocols/CCKDatabase.swift:17:1: warning: sendability of function types in instance method 'save(_:completionHandler:)' does not match requirement in protocol 'CCKDatabase'; this is an error in the Swift 6 language mode
 15 | /// - SeeAlso: [`CloudKit`](https://developer.apple.com/documentation/cloudkit)
 16 | /// - SeeAlso: [`Combine`](https://developer.apple.com/documentation/combine)
 17 | extension CKDatabase: CCKDatabase {
    | `- warning: sendability of function types in instance method 'save(_:completionHandler:)' does not match requirement in protocol 'CCKDatabase'; this is an error in the Swift 6 language mode
 18 | }
 19 |
    :
 93 |   ///
 94 |   /// - SeeAlso: [`save`](https://developer.apple.com/documentation/cloudkit/ckdatabase/1449108-save)
 95 |   func save(_ zone: CKRecordZone, completionHandler: @escaping (CKRecordZone?, Error?) -> Void)
    |        `- note: expected sendability to match requirement here
 96 |
 97 |   /// Implemented by `CKDatabase`.
/Users/admin/builder/spi-builder-workspace/Sources/CombineCloudKit/Protocols/CCKDatabase.swift:17:1: warning: sendability of function types in instance method 'save(_:completionHandler:)' does not match requirement in protocol 'CCKDatabase'; this is an error in the Swift 6 language mode
 15 | /// - SeeAlso: [`CloudKit`](https://developer.apple.com/documentation/cloudkit)
 16 | /// - SeeAlso: [`Combine`](https://developer.apple.com/documentation/combine)
 17 | extension CKDatabase: CCKDatabase {
    | `- warning: sendability of function types in instance method 'save(_:completionHandler:)' does not match requirement in protocol 'CCKDatabase'; this is an error in the Swift 6 language mode
 18 | }
 19 |
    :
 98 |   ///
 99 |   /// - SeeAlso: [`save`](https://developer.apple.com/documentation/cloudkit/ckdatabase/1449102-save)
100 |   func save(
    |        `- note: expected sendability to match requirement here
101 |     _ subscription: CKSubscription, completionHandler: @escaping (CKSubscription?, Error?) -> Void)
102 | }
/Users/admin/builder/spi-builder-workspace/Sources/CombineCloudKit/Protocols/CCKDatabase.swift:123:11: warning: capture of 'method' with non-sendable type '(Input, @escaping (Output?, (any Error)?) -> Void) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
121 |       Future { promise in
122 |         DispatchQueue.main.async {
123 |           method(input) { output, error in
    |           |- warning: capture of 'method' with non-sendable type '(Input, @escaping (Output?, (any Error)?) -> Void) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
    |           `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
124 |             guard let output = output, error == nil else {
125 |               promise(.failure(error!))
/Users/admin/builder/spi-builder-workspace/Sources/CombineCloudKit/Protocols/CCKDatabase.swift:123:18: warning: capture of 'input' with non-sendable type 'Input' in a `@Sendable` closure; this is an error in the Swift 6 language mode
114 |   }
115 |
116 |   func publisherAtBackgroundPriorityFrom<Input, Output>(
    |                                          `- note: consider making generic parameter 'Input' conform to the 'Sendable' protocol
117 |     _ method: @escaping (Input, @escaping (Output?, Error?) -> Void) -> Void,
118 |     with input: Input
    :
121 |       Future { promise in
122 |         DispatchQueue.main.async {
123 |           method(input) { output, error in
    |                  `- warning: capture of 'input' with non-sendable type 'Input' in a `@Sendable` closure; this is an error in the Swift 6 language mode
124 |             guard let output = output, error == nil else {
125 |               promise(.failure(error!))
/Users/admin/builder/spi-builder-workspace/Sources/CombineCloudKit/Protocols/CCKDatabase.swift:125:15: warning: capture of 'promise' with non-sendable type '(Result<Output, any Error>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
123 |           method(input) { output, error in
124 |             guard let output = output, error == nil else {
125 |               promise(.failure(error!))
    |               |- warning: capture of 'promise' with non-sendable type '(Result<Output, any Error>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
    |               `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
126 |               return
127 |             }
/Users/admin/builder/spi-builder-workspace/Sources/CombineCloudKit/Protocols/CCKDatabase.swift:125:15: warning: capture of 'promise' with non-sendable type '(Result<Output, any Error>) -> Void' in an isolated closure; this is an error in the Swift 6 language mode
123 |           method(input) { output, error in
124 |             guard let output = output, error == nil else {
125 |               promise(.failure(error!))
    |               |- warning: capture of 'promise' with non-sendable type '(Result<Output, any Error>) -> Void' in an isolated closure; this is an error in the Swift 6 language mode
    |               `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
126 |               return
127 |             }
<unknown>:0: note: consider making generic parameter 'Self' conform to the 'Sendable' protocol
/Users/admin/builder/spi-builder-workspace/Sources/CombineCloudKit/Protocols/CCKDatabase.swift:160:9: warning: capture of 'self' with non-sendable type 'Self' in a `@Sendable` closure; this is an error in the Swift 6 language mode
158 |     return Deferred { () -> PassthroughSubject<Output, Error> in
159 |       DispatchQueue.main.async {
160 |         self.add(operation)
    |         `- warning: capture of 'self' with non-sendable type 'Self' in a `@Sendable` closure; this is an error in the Swift 6 language mode
161 |       }
162 |
/Users/admin/builder/spi-builder-workspace/Sources/CombineCloudKit/Protocols/CCKDatabase.swift:174:9: warning: capture of 'method' with non-sendable type '(@escaping ([Output]?, (any Error)?) -> Void) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
172 |
173 |       DispatchQueue.main.async {
174 |         method { outputs, error in
    |         |- warning: capture of 'method' with non-sendable type '(@escaping ([Output]?, (any Error)?) -> Void) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
    |         `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
175 |           guard let outputs = outputs, error == nil else {
176 |             subject.send(completion: .failure(error!))
/Users/admin/builder/spi-builder-workspace/Sources/CombineCloudKit/Protocols/CCKDatabase.swift:176:13: warning: capture of 'subject' with non-sendable type 'PassthroughSubject<Output, any Error>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
174 |         method { outputs, error in
175 |           guard let outputs = outputs, error == nil else {
176 |             subject.send(completion: .failure(error!))
    |             `- warning: capture of 'subject' with non-sendable type 'PassthroughSubject<Output, any Error>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
177 |             return
178 |           }
Combine.PassthroughSubject:2:20: note: generic class 'PassthroughSubject' does not conform to the 'Sendable' protocol
 1 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
 2 | final public class PassthroughSubject<Output, Failure> : Subject where Failure : Error {
   |                    `- note: generic class 'PassthroughSubject' does not conform to the 'Sendable' protocol
 3 |     public init()
 4 |     @objc deinit
/Users/admin/builder/spi-builder-workspace/Sources/CombineCloudKit/Protocols/CCKDatabase.swift:10:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Combine'
  8 |
  9 | import CloudKit
 10 | import Combine
    | `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Combine'
 11 |
 12 | /// An extension that declares [`CKDatabase`](https://developer.apple.com/documentation/cloudkit/ckdatabase)
/Users/admin/builder/spi-builder-workspace/Sources/CombineCloudKit/Protocols/CCKDatabase.swift:176:13: warning: capture of 'subject' with non-sendable type 'PassthroughSubject<Output, any Error>' in an isolated closure; this is an error in the Swift 6 language mode
174 |         method { outputs, error in
175 |           guard let outputs = outputs, error == nil else {
176 |             subject.send(completion: .failure(error!))
    |             `- warning: capture of 'subject' with non-sendable type 'PassthroughSubject<Output, any Error>' in an isolated closure; this is an error in the Swift 6 language mode
177 |             return
178 |           }
Combine.PassthroughSubject:2:20: note: generic class 'PassthroughSubject' does not conform to the 'Sendable' protocol
 1 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
 2 | final public class PassthroughSubject<Output, Failure> : Subject where Failure : Error {
   |                    `- note: generic class 'PassthroughSubject' does not conform to the 'Sendable' protocol
 3 |     public init()
 4 |     @objc deinit
<unknown>:0: note: consider making generic parameter 'Self' conform to the 'Sendable' protocol
/Users/admin/builder/spi-builder-workspace/Sources/CombineCloudKit/Protocols/CCKDatabase.swift:224:9: warning: capture of 'self' with non-sendable type 'Self' in a `@Sendable` closure; this is an error in the Swift 6 language mode
222 |     return Deferred { () -> PassthroughSubject<(Output?, OutputID?), Error> in
223 |       DispatchQueue.main.async {
224 |         self.add(operation)
    |         `- warning: capture of 'self' with non-sendable type 'Self' in a `@Sendable` closure; this is an error in the Swift 6 language mode
225 |       }
226 |
/Users/admin/builder/spi-builder-workspace/Sources/CombineCloudKit/Protocols/CCKDatabase.swift:123:11: warning: sending 'method' risks causing data races; this is an error in the Swift 6 language mode
121 |       Future { promise in
122 |         DispatchQueue.main.async {
123 |           method(input) { output, error in
    |           |- warning: sending 'method' risks causing data races; this is an error in the Swift 6 language mode
    |           `- note: task-isolated 'method' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
124 |             guard let output = output, error == nil else {
125 |               promise(.failure(error!))
/Users/admin/builder/spi-builder-workspace/Sources/CombineCloudKit/Protocols/CCKDatabase.swift:123:18: warning: sending 'input' risks causing data races; this is an error in the Swift 6 language mode
121 |       Future { promise in
122 |         DispatchQueue.main.async {
123 |           method(input) { output, error in
    |                  |- warning: sending 'input' risks causing data races; this is an error in the Swift 6 language mode
    |                  `- note: task-isolated 'input' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
124 |             guard let output = output, error == nil else {
125 |               promise(.failure(error!))
/Users/admin/builder/spi-builder-workspace/Sources/CombineCloudKit/Protocols/CCKDatabase.swift:125:15: warning: sending 'promise' risks causing data races; this is an error in the Swift 6 language mode
123 |           method(input) { output, error in
124 |             guard let output = output, error == nil else {
125 |               promise(.failure(error!))
    |               |- warning: sending 'promise' risks causing data races; this is an error in the Swift 6 language mode
    |               `- note: task-isolated 'promise' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
126 |               return
127 |             }
/Users/admin/builder/spi-builder-workspace/Sources/CombineCloudKit/Protocols/CCKDatabase.swift:160:9: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
158 |     return Deferred { () -> PassthroughSubject<Output, Error> in
159 |       DispatchQueue.main.async {
160 |         self.add(operation)
    |         |- warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
    |         `- note: task-isolated 'self' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
161 |       }
162 |
/Users/admin/builder/spi-builder-workspace/Sources/CombineCloudKit/Protocols/CCKDatabase.swift:174:9: warning: sending 'method' risks causing data races; this is an error in the Swift 6 language mode
172 |
173 |       DispatchQueue.main.async {
174 |         method { outputs, error in
    |         |- warning: sending 'method' risks causing data races; this is an error in the Swift 6 language mode
    |         `- note: task-isolated 'method' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
175 |           guard let outputs = outputs, error == nil else {
176 |             subject.send(completion: .failure(error!))
/Users/admin/builder/spi-builder-workspace/Sources/CombineCloudKit/Protocols/CCKDatabase.swift:176:13: warning: sending 'subject' risks causing data races; this is an error in the Swift 6 language mode
174 |         method { outputs, error in
175 |           guard let outputs = outputs, error == nil else {
176 |             subject.send(completion: .failure(error!))
    |             |- warning: sending 'subject' risks causing data races; this is an error in the Swift 6 language mode
    |             `- note: 'subject' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
177 |             return
178 |           }
    :
186 |       }
187 |
188 |       return subject
    |              `- note: access can happen concurrently
189 |     }.eraseToAnyPublisher()
190 |   }
/Users/admin/builder/spi-builder-workspace/Sources/CombineCloudKit/Protocols/CCKDatabase.swift:224:9: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
222 |     return Deferred { () -> PassthroughSubject<(Output?, OutputID?), Error> in
223 |       DispatchQueue.main.async {
224 |         self.add(operation)
    |         |- warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
    |         `- note: task-isolated 'self' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
225 |       }
226 |
[16/21] Compiling CombineCloudKit Progress.swift
/Users/admin/builder/spi-builder-workspace/Sources/CombineCloudKit/Protocols/CCKContainer.swift:17:1: warning: sendability of function types in instance method 'accountStatus(completionHandler:)' does not match requirement in protocol 'CCKContainer'; this is an error in the Swift 6 language mode
15 | /// - SeeAlso:[`CloudKit`](https://developer.apple.com/documentation/cloudkit)
16 | /// - SeeAlso:[`Combine`](https://developer.apple.com/documentation/combine)
17 | extension CKContainer: CCKContainer {
   | `- warning: sendability of function types in instance method 'accountStatus(completionHandler:)' does not match requirement in protocol 'CCKContainer'; this is an error in the Swift 6 language mode
18 | }
19 |
   :
29 |   ///
30 |   /// - SeeAlso: [`accountStatus`](https://developer.apple.com/documentation/cloudkit/ckcontainer/1399180-accountstatus)
31 |   func accountStatus(completionHandler: @escaping (CKAccountStatus, Error?) -> Void)
   |        `- note: expected sendability to match requirement here
32 | }
33 |
/Users/admin/builder/spi-builder-workspace/Sources/CombineCloudKit/Protocols/CCKContainer.swift:41:11: warning: capture of 'method' with non-sendable type '(@escaping (Output, (any Error)?) -> Void) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
39 |       Future { promise in
40 |         DispatchQueue.main.async {
41 |           method { item, error in
   |           |- warning: capture of 'method' with non-sendable type '(@escaping (Output, (any Error)?) -> Void) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
   |           `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
42 |             guard error == nil else {
43 |               promise(.failure(error!))
/Users/admin/builder/spi-builder-workspace/Sources/CombineCloudKit/Protocols/CCKContainer.swift:43:15: warning: capture of 'promise' with non-sendable type '(Result<Output, any Error>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
41 |           method { item, error in
42 |             guard error == nil else {
43 |               promise(.failure(error!))
   |               |- warning: capture of 'promise' with non-sendable type '(Result<Output, any Error>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
   |               `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
44 |               return
45 |             }
/Users/admin/builder/spi-builder-workspace/Sources/CombineCloudKit/Protocols/CCKContainer.swift:43:15: warning: capture of 'promise' with non-sendable type '(Result<Output, any Error>) -> Void' in an isolated closure; this is an error in the Swift 6 language mode
41 |           method { item, error in
42 |             guard error == nil else {
43 |               promise(.failure(error!))
   |               |- warning: capture of 'promise' with non-sendable type '(Result<Output, any Error>) -> Void' in an isolated closure; this is an error in the Swift 6 language mode
   |               `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
44 |               return
45 |             }
/Users/admin/builder/spi-builder-workspace/Sources/CombineCloudKit/Protocols/CCKContainer.swift:41:11: warning: sending 'method' risks causing data races; this is an error in the Swift 6 language mode
39 |       Future { promise in
40 |         DispatchQueue.main.async {
41 |           method { item, error in
   |           |- warning: sending 'method' risks causing data races; this is an error in the Swift 6 language mode
   |           `- note: task-isolated 'method' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
42 |             guard error == nil else {
43 |               promise(.failure(error!))
/Users/admin/builder/spi-builder-workspace/Sources/CombineCloudKit/Protocols/CCKContainer.swift:43:15: warning: sending 'promise' risks causing data races; this is an error in the Swift 6 language mode
41 |           method { item, error in
42 |             guard error == nil else {
43 |               promise(.failure(error!))
   |               |- warning: sending 'promise' risks causing data races; this is an error in the Swift 6 language mode
   |               `- note: task-isolated 'promise' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
44 |               return
45 |             }
[17/21] Compiling CombineCloudKit CCKContainer.swift
/Users/admin/builder/spi-builder-workspace/Sources/CombineCloudKit/Protocols/CCKContainer.swift:17:1: warning: sendability of function types in instance method 'accountStatus(completionHandler:)' does not match requirement in protocol 'CCKContainer'; this is an error in the Swift 6 language mode
15 | /// - SeeAlso:[`CloudKit`](https://developer.apple.com/documentation/cloudkit)
16 | /// - SeeAlso:[`Combine`](https://developer.apple.com/documentation/combine)
17 | extension CKContainer: CCKContainer {
   | `- warning: sendability of function types in instance method 'accountStatus(completionHandler:)' does not match requirement in protocol 'CCKContainer'; this is an error in the Swift 6 language mode
18 | }
19 |
   :
29 |   ///
30 |   /// - SeeAlso: [`accountStatus`](https://developer.apple.com/documentation/cloudkit/ckcontainer/1399180-accountstatus)
31 |   func accountStatus(completionHandler: @escaping (CKAccountStatus, Error?) -> Void)
   |        `- note: expected sendability to match requirement here
32 | }
33 |
/Users/admin/builder/spi-builder-workspace/Sources/CombineCloudKit/Protocols/CCKContainer.swift:41:11: warning: capture of 'method' with non-sendable type '(@escaping (Output, (any Error)?) -> Void) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
39 |       Future { promise in
40 |         DispatchQueue.main.async {
41 |           method { item, error in
   |           |- warning: capture of 'method' with non-sendable type '(@escaping (Output, (any Error)?) -> Void) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
   |           `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
42 |             guard error == nil else {
43 |               promise(.failure(error!))
/Users/admin/builder/spi-builder-workspace/Sources/CombineCloudKit/Protocols/CCKContainer.swift:43:15: warning: capture of 'promise' with non-sendable type '(Result<Output, any Error>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
41 |           method { item, error in
42 |             guard error == nil else {
43 |               promise(.failure(error!))
   |               |- warning: capture of 'promise' with non-sendable type '(Result<Output, any Error>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
   |               `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
44 |               return
45 |             }
/Users/admin/builder/spi-builder-workspace/Sources/CombineCloudKit/Protocols/CCKContainer.swift:43:15: warning: capture of 'promise' with non-sendable type '(Result<Output, any Error>) -> Void' in an isolated closure; this is an error in the Swift 6 language mode
41 |           method { item, error in
42 |             guard error == nil else {
43 |               promise(.failure(error!))
   |               |- warning: capture of 'promise' with non-sendable type '(Result<Output, any Error>) -> Void' in an isolated closure; this is an error in the Swift 6 language mode
   |               `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
44 |               return
45 |             }
/Users/admin/builder/spi-builder-workspace/Sources/CombineCloudKit/Protocols/CCKContainer.swift:41:11: warning: sending 'method' risks causing data races; this is an error in the Swift 6 language mode
39 |       Future { promise in
40 |         DispatchQueue.main.async {
41 |           method { item, error in
   |           |- warning: sending 'method' risks causing data races; this is an error in the Swift 6 language mode
   |           `- note: task-isolated 'method' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
42 |             guard error == nil else {
43 |               promise(.failure(error!))
/Users/admin/builder/spi-builder-workspace/Sources/CombineCloudKit/Protocols/CCKContainer.swift:43:15: warning: sending 'promise' risks causing data races; this is an error in the Swift 6 language mode
41 |           method { item, error in
42 |             guard error == nil else {
43 |               promise(.failure(error!))
   |               |- warning: sending 'promise' risks causing data races; this is an error in the Swift 6 language mode
   |               `- note: task-isolated 'promise' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
44 |               return
45 |             }
[18/21] Emitting module CombineCloudKit
/Users/admin/builder/spi-builder-workspace/Sources/CombineCloudKit/OperationFactory.swift:12:5: warning: var 'operationFactory' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
 10 |
 11 | /// Allows dependency injection for testing.
 12 | var operationFactory: OperationFactory = CKOperationFactory()
    |     |- warning: var 'operationFactory' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
    |     |- note: convert 'operationFactory' to a 'let' constant to make 'Sendable' shared state immutable
    |     |- note: annotate 'operationFactory' 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
 13 |
 14 | protocol OperationFactory {
/Users/admin/builder/spi-builder-workspace/Sources/CombineCloudKit/Protocols/CCKContainer.swift:17:1: warning: sendability of function types in instance method 'accountStatus(completionHandler:)' does not match requirement in protocol 'CCKContainer'; this is an error in the Swift 6 language mode
15 | /// - SeeAlso:[`CloudKit`](https://developer.apple.com/documentation/cloudkit)
16 | /// - SeeAlso:[`Combine`](https://developer.apple.com/documentation/combine)
17 | extension CKContainer: CCKContainer {
   | `- warning: sendability of function types in instance method 'accountStatus(completionHandler:)' does not match requirement in protocol 'CCKContainer'; this is an error in the Swift 6 language mode
18 | }
19 |
   :
29 |   ///
30 |   /// - SeeAlso: [`accountStatus`](https://developer.apple.com/documentation/cloudkit/ckcontainer/1399180-accountstatus)
31 |   func accountStatus(completionHandler: @escaping (CKAccountStatus, Error?) -> Void)
   |        `- note: expected sendability to match requirement here
32 | }
33 |
/Users/admin/builder/spi-builder-workspace/Sources/CombineCloudKit/Protocols/CCKDatabase.swift:17:1: warning: sendability of function types in instance method 'delete(withRecordID:completionHandler:)' does not match requirement in protocol 'CCKDatabase'; this is an error in the Swift 6 language mode
 15 | /// - SeeAlso: [`CloudKit`](https://developer.apple.com/documentation/cloudkit)
 16 | /// - SeeAlso: [`Combine`](https://developer.apple.com/documentation/combine)
 17 | extension CKDatabase: CCKDatabase {
    | `- warning: sendability of function types in instance method 'delete(withRecordID:completionHandler:)' does not match requirement in protocol 'CCKDatabase'; this is an error in the Swift 6 language mode
 18 | }
 19 |
    :
 30 |   ///
 31 |   /// - SeeAlso: [`delete`](https://developer.apple.com/documentation/cloudkit/ckdatabase/1449122-delete)
 32 |   func delete(
    |        `- note: expected sendability to match requirement here
 33 |     withRecordID recordID: CKRecord.ID, completionHandler: @escaping (CKRecord.ID?, Error?) -> Void)
 34 |
/Users/admin/builder/spi-builder-workspace/Sources/CombineCloudKit/Protocols/CCKDatabase.swift:17:1: warning: sendability of function types in instance method 'delete(withRecordZoneID:completionHandler:)' does not match requirement in protocol 'CCKDatabase'; this is an error in the Swift 6 language mode
 15 | /// - SeeAlso: [`CloudKit`](https://developer.apple.com/documentation/cloudkit)
 16 | /// - SeeAlso: [`Combine`](https://developer.apple.com/documentation/combine)
 17 | extension CKDatabase: CCKDatabase {
    | `- warning: sendability of function types in instance method 'delete(withRecordZoneID:completionHandler:)' does not match requirement in protocol 'CCKDatabase'; this is an error in the Swift 6 language mode
 18 | }
 19 |
    :
 36 |   ///
 37 |   /// - SeeAlso: [`delete`](https://developer.apple.com/documentation/cloudkit/ckdatabase/1449118-delete)
 38 |   func delete(
    |        `- note: expected sendability to match requirement here
 39 |     withRecordZoneID zoneID: CKRecordZone.ID,
 40 |     completionHandler: @escaping (CKRecordZone.ID?, Error?) -> Void)
/Users/admin/builder/spi-builder-workspace/Sources/CombineCloudKit/Protocols/CCKDatabase.swift:17:1: warning: sendability of function types in instance method 'delete(withSubscriptionID:completionHandler:)' does not match requirement in protocol 'CCKDatabase'; this is an error in the Swift 6 language mode
 15 | /// - SeeAlso: [`CloudKit`](https://developer.apple.com/documentation/cloudkit)
 16 | /// - SeeAlso: [`Combine`](https://developer.apple.com/documentation/combine)
 17 | extension CKDatabase: CCKDatabase {
    | `- warning: sendability of function types in instance method 'delete(withSubscriptionID:completionHandler:)' does not match requirement in protocol 'CCKDatabase'; this is an error in the Swift 6 language mode
 18 | }
 19 |
    :
 43 |   ///
 44 |   /// - SeeAlso: [`delete`](https://developer.apple.com/documentation/cloudkit/ckdatabase/3003590-delete)
 45 |   func delete(
    |        `- note: expected sendability to match requirement here
 46 |     withSubscriptionID subscriptionID: CKSubscription.ID,
 47 |     completionHandler: @escaping (String?, Error?) -> Void)
/Users/admin/builder/spi-builder-workspace/Sources/CombineCloudKit/Protocols/CCKDatabase.swift:17:1: warning: sendability of function types in instance method 'fetch(withRecordID:completionHandler:)' does not match requirement in protocol 'CCKDatabase'; this is an error in the Swift 6 language mode
 15 | /// - SeeAlso: [`CloudKit`](https://developer.apple.com/documentation/cloudkit)
 16 | /// - SeeAlso: [`Combine`](https://developer.apple.com/documentation/combine)
 17 | extension CKDatabase: CCKDatabase {
    | `- warning: sendability of function types in instance method 'fetch(withRecordID:completionHandler:)' does not match requirement in protocol 'CCKDatabase'; this is an error in the Swift 6 language mode
 18 | }
 19 |
    :
 50 |   ///
 51 |   /// - SeeAlso: [fetch](https://developer.apple.com/documentation/cloudkit/ckdatabase/1449126-fetch)
 52 |   func fetch(
    |        `- note: expected sendability to match requirement here
 53 |     withRecordID recordID: CKRecord.ID, completionHandler: @escaping (CKRecord?, Error?) -> Void)
 54 |
/Users/admin/builder/spi-builder-workspace/Sources/CombineCloudKit/Protocols/CCKDatabase.swift:17:1: warning: sendability of function types in instance method 'fetch(withRecordZoneID:completionHandler:)' does not match requirement in protocol 'CCKDatabase'; this is an error in the Swift 6 language mode
 15 | /// - SeeAlso: [`CloudKit`](https://developer.apple.com/documentation/cloudkit)
 16 | /// - SeeAlso: [`Combine`](https://developer.apple.com/documentation/combine)
 17 | extension CKDatabase: CCKDatabase {
    | `- warning: sendability of function types in instance method 'fetch(withRecordZoneID:completionHandler:)' does not match requirement in protocol 'CCKDatabase'; this is an error in the Swift 6 language mode
 18 | }
 19 |
    :
 56 |   ///
 57 |   /// - SeeAlso: [fetch](https://developer.apple.com/documentation/cloudkit/ckdatabase/1449104-fetch)
 58 |   func fetch(
    |        `- note: expected sendability to match requirement here
 59 |     withRecordZoneID zoneID: CKRecordZone.ID,
 60 |     completionHandler: @escaping (CKRecordZone?, Error?) -> Void)
/Users/admin/builder/spi-builder-workspace/Sources/CombineCloudKit/Protocols/CCKDatabase.swift:17:1: warning: sendability of function types in instance method 'fetch(withSubscriptionID:completionHandler:)' does not match requirement in protocol 'CCKDatabase'; this is an error in the Swift 6 language mode
 15 | /// - SeeAlso: [`CloudKit`](https://developer.apple.com/documentation/cloudkit)
 16 | /// - SeeAlso: [`Combine`](https://developer.apple.com/documentation/combine)
 17 | extension CKDatabase: CCKDatabase {
    | `- warning: sendability of function types in instance method 'fetch(withSubscriptionID:completionHandler:)' does not match requirement in protocol 'CCKDatabase'; this is an error in the Swift 6 language mode
 18 | }
 19 |
    :
 63 |   ///
 64 |   /// - SeeAlso: [fetch](https://developer.apple.com/documentation/cloudkit/ckdatabase/3003591-fetch)
 65 |   func fetch(
    |        `- note: expected sendability to match requirement here
 66 |     withSubscriptionID subscriptionID: CKSubscription.ID,
 67 |     completionHandler: @escaping (CKSubscription?, Error?) -> Void)
/Users/admin/builder/spi-builder-workspace/Sources/CombineCloudKit/Protocols/CCKDatabase.swift:17:1: warning: sendability of function types in instance method 'fetchAllRecordZones(completionHandler:)' does not match requirement in protocol 'CCKDatabase'; this is an error in the Swift 6 language mode
 15 | /// - SeeAlso: [`CloudKit`](https://developer.apple.com/documentation/cloudkit)
 16 | /// - SeeAlso: [`Combine`](https://developer.apple.com/documentation/combine)
 17 | extension CKDatabase: CCKDatabase {
    | `- warning: sendability of function types in instance method 'fetchAllRecordZones(completionHandler:)' does not match requirement in protocol 'CCKDatabase'; this is an error in the Swift 6 language mode
 18 | }
 19 |
    :
 70 |   ///
 71 |   /// - SeeAlso: [fetchAllRecordZones](https://developer.apple.com/documentation/cloudkit/ckdatabase/1449112-fetchallrecordzones)
 72 |   func fetchAllRecordZones(completionHandler: @escaping ([CKRecordZone]?, Error?) -> Void)
    |        `- note: expected sendability to match requirement here
 73 |
 74 |   /// Implemented by `CKDatabase`.
/Users/admin/builder/spi-builder-workspace/Sources/CombineCloudKit/Protocols/CCKDatabase.swift:17:1: warning: sendability of function types in instance method 'fetchAllSubscriptions(completionHandler:)' does not match requirement in protocol 'CCKDatabase'; this is an error in the Swift 6 language mode
 15 | /// - SeeAlso: [`CloudKit`](https://developer.apple.com/documentation/cloudkit)
 16 | /// - SeeAlso: [`Combine`](https://developer.apple.com/documentation/combine)
 17 | extension CKDatabase: CCKDatabase {
    | `- warning: sendability of function types in instance method 'fetchAllSubscriptions(completionHandler:)' does not match requirement in protocol 'CCKDatabase'; this is an error in the Swift 6 language mode
 18 | }
 19 |
    :
 75 |   ///
 76 |   /// - SeeAlso: [fetchAllSubscriptions](https://developer.apple.com/documentation/cloudkit/ckdatabase/1449110-fetchallsubscriptions)
 77 |   func fetchAllSubscriptions(completionHandler: @escaping ([CKSubscription]?, Error?) -> Void)
    |        `- note: expected sendability to match requirement here
 78 |
 79 |   /// Implemented by `CKDatabase`.
/Users/admin/builder/spi-builder-workspace/Sources/CombineCloudKit/Protocols/CCKDatabase.swift:17:1: warning: sendability of function types in instance method 'perform(_:inZoneWith:completionHandler:)' does not match requirement in protocol 'CCKDatabase'; this is an error in the Swift 6 language mode
 15 | /// - SeeAlso: [`CloudKit`](https://developer.apple.com/documentation/cloudkit)
 16 | /// - SeeAlso: [`Combine`](https://developer.apple.com/documentation/combine)
 17 | extension CKDatabase: CCKDatabase {
    | `- warning: sendability of function types in instance method 'perform(_:inZoneWith:completionHandler:)' does not match requirement in protocol 'CCKDatabase'; this is an error in the Swift 6 language mode
 18 | }
 19 |
    :
 80 |   ///
 81 |   /// - SeeAlso: [fetchAllSubscriptions](https://developer.apple.com/documentation/cloudkit/ckdatabase/1449127-perform)
 82 |   func perform(
    |        `- note: expected sendability to match requirement here
 83 |     _ query: CKQuery,
 84 |     inZoneWith zoneID: CKRecordZone.ID?,
/Users/admin/builder/spi-builder-workspace/Sources/CombineCloudKit/Protocols/CCKDatabase.swift:17:1: warning: sendability of function types in instance method 'save(_:completionHandler:)' does not match requirement in protocol 'CCKDatabase'; this is an error in the Swift 6 language mode
 15 | /// - SeeAlso: [`CloudKit`](https://developer.apple.com/documentation/cloudkit)
 16 | /// - SeeAlso: [`Combine`](https://developer.apple.com/documentation/combine)
 17 | extension CKDatabase: CCKDatabase {
    | `- warning: sendability of function types in instance method 'save(_:completionHandler:)' does not match requirement in protocol 'CCKDatabase'; this is an error in the Swift 6 language mode
 18 | }
 19 |
    :
 88 |   ///
 89 |   /// - SeeAlso: [`save`](https://developer.apple.com/documentation/cloudkit/ckdatabase/1449114-save)
 90 |   func save(_ record: CKRecord, completionHandler: @escaping (CKRecord?, Error?) -> Void)
    |        `- note: expected sendability to match requirement here
 91 |
 92 |   /// Implemented by `CKDatabase`.
/Users/admin/builder/spi-builder-workspace/Sources/CombineCloudKit/Protocols/CCKDatabase.swift:17:1: warning: sendability of function types in instance method 'save(_:completionHandler:)' does not match requirement in protocol 'CCKDatabase'; this is an error in the Swift 6 language mode
 15 | /// - SeeAlso: [`CloudKit`](https://developer.apple.com/documentation/cloudkit)
 16 | /// - SeeAlso: [`Combine`](https://developer.apple.com/documentation/combine)
 17 | extension CKDatabase: CCKDatabase {
    | `- warning: sendability of function types in instance method 'save(_:completionHandler:)' does not match requirement in protocol 'CCKDatabase'; this is an error in the Swift 6 language mode
 18 | }
 19 |
    :
 93 |   ///
 94 |   /// - SeeAlso: [`save`](https://developer.apple.com/documentation/cloudkit/ckdatabase/1449108-save)
 95 |   func save(_ zone: CKRecordZone, completionHandler: @escaping (CKRecordZone?, Error?) -> Void)
    |        `- note: expected sendability to match requirement here
 96 |
 97 |   /// Implemented by `CKDatabase`.
/Users/admin/builder/spi-builder-workspace/Sources/CombineCloudKit/Protocols/CCKDatabase.swift:17:1: warning: sendability of function types in instance method 'save(_:completionHandler:)' does not match requirement in protocol 'CCKDatabase'; this is an error in the Swift 6 language mode
 15 | /// - SeeAlso: [`CloudKit`](https://developer.apple.com/documentation/cloudkit)
 16 | /// - SeeAlso: [`Combine`](https://developer.apple.com/documentation/combine)
 17 | extension CKDatabase: CCKDatabase {
    | `- warning: sendability of function types in instance method 'save(_:completionHandler:)' does not match requirement in protocol 'CCKDatabase'; this is an error in the Swift 6 language mode
 18 | }
 19 |
    :
 98 |   ///
 99 |   /// - SeeAlso: [`save`](https://developer.apple.com/documentation/cloudkit/ckdatabase/1449102-save)
100 |   func save(
    |        `- note: expected sendability to match requirement here
101 |     _ subscription: CKSubscription, completionHandler: @escaping (CKSubscription?, Error?) -> Void)
102 | }
[19/21] Compiling CombineCloudKit CCKDatabase+CKRecord.swift
/Users/admin/builder/spi-builder-workspace/Sources/CombineCloudKit/OperationFactory.swift:12:5: warning: var 'operationFactory' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
 10 |
 11 | /// Allows dependency injection for testing.
 12 | var operationFactory: OperationFactory = CKOperationFactory()
    |     |- warning: var 'operationFactory' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
    |     |- note: convert 'operationFactory' to a 'let' constant to make 'Sendable' shared state immutable
    |     |- note: annotate 'operationFactory' 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
 13 |
 14 | protocol OperationFactory {
<unknown>:0: note: consider making generic parameter 'Self' conform to the 'Sendable' protocol
/Users/admin/builder/spi-builder-workspace/Sources/CombineCloudKit/Protocols/CCKDatabase+CKRecord.swift:311:9: warning: capture of 'self' with non-sendable type 'Self' in a `@Sendable` closure; this is an error in the Swift 6 language mode
309 |     return Deferred { () -> PassthroughSubject<((CKRecord, Progress)?, CKRecord.ID?), Error> in
310 |       DispatchQueue.main.async {
311 |         self.add(operation)
    |         `- warning: capture of 'self' with non-sendable type 'Self' in a `@Sendable` closure; this is an error in the Swift 6 language mode
312 |       }
313 |
<unknown>:0: note: consider making generic parameter 'Self' conform to the 'Sendable' protocol
/Users/admin/builder/spi-builder-workspace/Sources/CombineCloudKit/Protocols/CCKDatabase+CKRecord.swift:458:9: warning: capture of 'self' with non-sendable type 'Self' in a `@Sendable` closure; this is an error in the Swift 6 language mode
456 |     return Deferred { () -> PassthroughSubject<((CKRecord.ID, Progress)?, CKRecord?), Error> in
457 |       DispatchQueue.main.async {
458 |         self.add(operation)
    |         `- warning: capture of 'self' with non-sendable type 'Self' in a `@Sendable` closure; this is an error in the Swift 6 language mode
459 |       }
460 |
/Users/admin/builder/spi-builder-workspace/Sources/CombineCloudKit/Protocols/CCKDatabase+CKRecord.swift:311:9: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
309 |     return Deferred { () -> PassthroughSubject<((CKRecord, Progress)?, CKRecord.ID?), Error> in
310 |       DispatchQueue.main.async {
311 |         self.add(operation)
    |         |- warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
    |         `- note: task-isolated 'self' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
312 |       }
313 |
/Users/admin/builder/spi-builder-workspace/Sources/CombineCloudKit/Protocols/CCKDatabase+CKRecord.swift:458:9: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
456 |     return Deferred { () -> PassthroughSubject<((CKRecord.ID, Progress)?, CKRecord?), Error> in
457 |       DispatchQueue.main.async {
458 |         self.add(operation)
    |         |- warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
    |         `- note: task-isolated 'self' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
459 |       }
460 |
[20/21] Compiling CombineCloudKit CCKDatabase+CKRecordZone.swift
/Users/admin/builder/spi-builder-workspace/Sources/CombineCloudKit/OperationFactory.swift:12:5: warning: var 'operationFactory' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
 10 |
 11 | /// Allows dependency injection for testing.
 12 | var operationFactory: OperationFactory = CKOperationFactory()
    |     |- warning: var 'operationFactory' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
    |     |- note: convert 'operationFactory' to a 'let' constant to make 'Sendable' shared state immutable
    |     |- note: annotate 'operationFactory' 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
 13 |
 14 | protocol OperationFactory {
<unknown>:0: note: consider making generic parameter 'Self' conform to the 'Sendable' protocol
/Users/admin/builder/spi-builder-workspace/Sources/CombineCloudKit/Protocols/CCKDatabase+CKRecord.swift:311:9: warning: capture of 'self' with non-sendable type 'Self' in a `@Sendable` closure; this is an error in the Swift 6 language mode
309 |     return Deferred { () -> PassthroughSubject<((CKRecord, Progress)?, CKRecord.ID?), Error> in
310 |       DispatchQueue.main.async {
311 |         self.add(operation)
    |         `- warning: capture of 'self' with non-sendable type 'Self' in a `@Sendable` closure; this is an error in the Swift 6 language mode
312 |       }
313 |
<unknown>:0: note: consider making generic parameter 'Self' conform to the 'Sendable' protocol
/Users/admin/builder/spi-builder-workspace/Sources/CombineCloudKit/Protocols/CCKDatabase+CKRecord.swift:458:9: warning: capture of 'self' with non-sendable type 'Self' in a `@Sendable` closure; this is an error in the Swift 6 language mode
456 |     return Deferred { () -> PassthroughSubject<((CKRecord.ID, Progress)?, CKRecord?), Error> in
457 |       DispatchQueue.main.async {
458 |         self.add(operation)
    |         `- warning: capture of 'self' with non-sendable type 'Self' in a `@Sendable` closure; this is an error in the Swift 6 language mode
459 |       }
460 |
/Users/admin/builder/spi-builder-workspace/Sources/CombineCloudKit/Protocols/CCKDatabase+CKRecord.swift:311:9: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
309 |     return Deferred { () -> PassthroughSubject<((CKRecord, Progress)?, CKRecord.ID?), Error> in
310 |       DispatchQueue.main.async {
311 |         self.add(operation)
    |         |- warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
    |         `- note: task-isolated 'self' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
312 |       }
313 |
/Users/admin/builder/spi-builder-workspace/Sources/CombineCloudKit/Protocols/CCKDatabase+CKRecord.swift:458:9: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
456 |     return Deferred { () -> PassthroughSubject<((CKRecord.ID, Progress)?, CKRecord?), Error> in
457 |       DispatchQueue.main.async {
458 |         self.add(operation)
    |         |- warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
    |         `- note: task-isolated 'self' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
459 |       }
460 |
[21/21] Compiling CombineCloudKit QueryPublisher.swift
/Users/admin/builder/spi-builder-workspace/Sources/CombineCloudKit/OperationFactory.swift:12:5: warning: var 'operationFactory' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
 10 |
 11 | /// Allows dependency injection for testing.
 12 | var operationFactory: OperationFactory = CKOperationFactory()
    |     |- warning: var 'operationFactory' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
    |     |- note: convert 'operationFactory' to a 'let' constant to make 'Sendable' shared state immutable
    |     |- note: annotate 'operationFactory' 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
 13 |
 14 | protocol OperationFactory {
/Users/admin/builder/spi-builder-workspace/Sources/CombineCloudKit/QueryPublisher.swift:70:15: warning: capture of 'self' with non-sendable type 'QueryPublisher.QuerySubscription<Downstream>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 44 |   ///
 45 |   /// When the `QuerySubscription` is cancelled, the underlying `CKQueryOperation` is cancelled.
 46 |   private class QuerySubscription<Downstream>: Subscription
    |                 `- note: generic class 'QuerySubscription' does not conform to the 'Sendable' protocol
 47 |   where Downstream: Subscriber, Downstream.Input == Output, Downstream.Failure == Failure {
 48 |     private let publisher: QueryPublisher
    :
 68 |
 69 |       queue.async {
 70 |         guard self.subscriber != nil else {
    |               `- warning: capture of 'self' with non-sendable type 'QueryPublisher.QuerySubscription<Downstream>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 71 |           return
 72 |         }
/Users/admin/builder/spi-builder-workspace/Sources/CombineCloudKit/QueryPublisher.swift:104:18: warning: capture of 'publisher' with non-sendable type 'QueryPublisher.QuerySubscription<Downstream>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 44 |   ///
 45 |   /// When the `QuerySubscription` is cancelled, the underlying `CKQueryOperation` is cancelled.
 46 |   private class QuerySubscription<Downstream>: Subscription
    |                 `- note: generic class 'QuerySubscription' does not conform to the 'Sendable' protocol
 47 |   where Downstream: Subscriber, Downstream.Input == Output, Downstream.Failure == Failure {
 48 |     private let publisher: QueryPublisher
    :
102 |
103 |         publisher.queue.async {
104 |           assert(publisher.demand != Subscribers.Demand.none)
    |                  `- warning: capture of 'publisher' with non-sendable type 'QueryPublisher.QuerySubscription<Downstream>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
105 |
106 |           guard let subscriber = publisher.subscriber else {
/Users/admin/builder/spi-builder-workspace/Sources/CombineCloudKit/QueryPublisher.swift:104:18: warning: implicit capture of 'publisher' requires that 'QueryPublisher.QuerySubscription<Downstream>' conforms to `Sendable`; this is an error in the Swift 6 language mode
 44 |   ///
 45 |   /// When the `QuerySubscription` is cancelled, the underlying `CKQueryOperation` is cancelled.
 46 |   private class QuerySubscription<Downstream>: Subscription
    |                 `- note: generic class 'QuerySubscription' does not conform to the 'Sendable' protocol
 47 |   where Downstream: Subscriber, Downstream.Input == Output, Downstream.Failure == Failure {
 48 |     private let publisher: QueryPublisher
    :
102 |
103 |         publisher.queue.async {
104 |           assert(publisher.demand != Subscribers.Demand.none)
    |                  `- warning: implicit capture of 'publisher' requires that 'QueryPublisher.QuerySubscription<Downstream>' conforms to `Sendable`; this is an error in the Swift 6 language mode
105 |
106 |           guard let subscriber = publisher.subscriber else {
/Users/admin/builder/spi-builder-workspace/Sources/CombineCloudKit/QueryPublisher.swift:122:34: warning: capture of 'publisher' with non-sendable type 'QueryPublisher.QuerySubscription<Downstream>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 44 |   ///
 45 |   /// When the `QuerySubscription` is cancelled, the underlying `CKQueryOperation` is cancelled.
 46 |   private class QuerySubscription<Downstream>: Subscription
    |                 `- note: generic class 'QuerySubscription' does not conform to the 'Sendable' protocol
 47 |   where Downstream: Subscriber, Downstream.Input == Output, Downstream.Failure == Failure {
 48 |     private let publisher: QueryPublisher
    :
120 |
121 |         publisher.queue.async {
122 |           guard let subscriber = publisher.subscriber else {
    |                                  `- warning: capture of 'publisher' with non-sendable type 'QueryPublisher.QuerySubscription<Downstream>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
123 |             return
124 |           }
Build complete! (35.90s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "CombineCloudKit",
  "name" : "CombineCloudKit",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "maccatalyst",
      "version" : "13.0"
    },
    {
      "name" : "macos",
      "version" : "10.15"
    },
    {
      "name" : "ios",
      "version" : "13.0"
    },
    {
      "name" : "tvos",
      "version" : "13.0"
    },
    {
      "name" : "watchos",
      "version" : "7.4"
    }
  ],
  "products" : [
    {
      "name" : "CombineCloudKit",
      "targets" : [
        "CombineCloudKit"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "swift_languages_versions" : [
    "5"
  ],
  "targets" : [
    {
      "c99name" : "CombineCloudKitTests",
      "module_type" : "SwiftTarget",
      "name" : "CombineCloudKitTests",
      "path" : "Tests/CombineCloudKitTests",
      "sources" : [
        "CKContainerTests.swift",
        "CKDatabaseTests.swift",
        "CombineCloudKitTests.swift",
        "ErrorInjectionTests.swift",
        "Extensions/XCTestCase.swift",
        "Mocks/MockContainer.swift",
        "Mocks/MockDatabase.swift",
        "Mocks/MockDatabaseOperation.swift",
        "Mocks/MockError.swift",
        "Mocks/MockFetchOperation.swift",
        "Mocks/MockFetchRecordZonesOperation.swift",
        "Mocks/MockFetchRecordsOperation.swift",
        "Mocks/MockFetchSubscriptionsOperation.swift",
        "Mocks/MockModifyOperation.swift",
        "Mocks/MockModifyRecordZonesOperation.swift",
        "Mocks/MockModifyRecordsOperation.swift",
        "Mocks/MockModifySubscriptionsOperation.swift",
        "Mocks/MockOperation.swift",
        "Mocks/MockOperationFactory.swift",
        "Mocks/MockQueryOperation.swift",
        "ProgressTests.swift",
        "Simulation/DecisionSpace.swift",
        "Simulation/Recorder.swift"
      ],
      "target_dependencies" : [
        "CombineCloudKit"
      ],
      "type" : "test"
    },
    {
      "c99name" : "CombineCloudKit",
      "module_type" : "SwiftTarget",
      "name" : "CombineCloudKit",
      "path" : "Sources/CombineCloudKit",
      "product_memberships" : [
        "CombineCloudKit"
      ],
      "sources" : [
        "Extensions/Publisher.swift",
        "OperationFactory.swift",
        "Progress.swift",
        "Protocols/CCKContainer.swift",
        "Protocols/CCKDatabase+CKRecord.swift",
        "Protocols/CCKDatabase+CKRecordZone.swift",
        "Protocols/CCKDatabase+CKSubscription.swift",
        "Protocols/CCKDatabase.swift",
        "Protocols/CCKDatabaseOperation.swift",
        "Protocols/CCKFetchRecordZonesOperation.swift",
        "Protocols/CCKFetchRecordsOperation.swift",
        "Protocols/CCKFetchSubscriptionsOperation.swift",
        "Protocols/CCKModifyRecordZonesOperation.swift",
        "Protocols/CCKModifyRecordsOperation.swift",
        "Protocols/CCKModifySubscriptionsOperation.swift",
        "Protocols/CCKOperation.swift",
        "Protocols/CCKQueryOperation.swift",
        "QueryPublisher.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.5"
}
Done.
This is a staging environment. For live and up-to-date package information, visit swiftpackageindex.com.