Build Information
Failed to build CareKit, reference 2.0.2 (9d4233
), with Swift 6.0 for macOS (SPM) on 29 Nov 2024 20:40:11 UTC.
Build Command
env DEVELOPER_DIR=/Applications/Xcode-16.1.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures
Build Log
51 | } catch {
52 | self.context.rollback()
/Users/admin/builder/spi-builder-workspace/CareKitStore/CareKitStore/Structs/OCKPatient.swift:34:15: note: consider making struct 'OCKPatient' conform to the 'Sendable' protocol
32 |
33 | /// Represents a patient
34 | public struct OCKPatient: Codable, Equatable, Identifiable, OCKAnyPatient, OCKVersionedObjectCompatible {
| `- note: consider making struct 'OCKPatient' conform to the 'Sendable' protocol
35 |
36 | // MARK: OCKAnyPatient
/Users/admin/builder/spi-builder-workspace/CareKitStore/CareKitStore/CoreData/OCKStore+Patients.swift:54:39: warning: capture of 'completion' with non-sendable type '(Result<[OCKPatient], OCKStoreError>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
52 | self.context.rollback()
53 | let message = "Failed to fetch patients with query: \(String(describing: query)). \(error.localizedDescription)"
54 | callbackQueue.async { completion(.failure(.fetchFailed(reason: message))) }
| |- warning: capture of 'completion' with non-sendable type '(Result<[OCKPatient], OCKStoreError>) -> 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'
55 | }
56 | }
/Users/admin/builder/spi-builder-workspace/CareKitStore/CareKitStore/CoreData/OCKStore+Patients.swift:69:21: warning: capture of 'self' with non-sendable type 'OCKStore' in a `@Sendable` closure; this is an error in the Swift 6 language mode
67 | let updatedPatients = persistablePatients.map(self.makePatient)
68 | callbackQueue.async {
69 | self.patientDelegate?.patientStore(self, didAddPatients: updatedPatients)
| `- warning: capture of 'self' with non-sendable type 'OCKStore' in a `@Sendable` closure; this is an error in the Swift 6 language mode
70 | completion?(.success(updatedPatients))
71 | }
/Users/admin/builder/spi-builder-workspace/CareKitStore/CareKitStore/CoreData/OCKStore.swift:35:12: note: class 'OCKStore' does not conform to the 'Sendable' protocol
33 |
34 | /// The default store used in CareKit. The underlying database used is CoreData.
35 | open class OCKStore: OCKStoreProtocol, OCKCoreDataStoreProtocol, Equatable {
| `- note: class 'OCKStore' does not conform to the 'Sendable' protocol
36 |
37 | /// The delegate receives callbacks when the contents of the patient store are modified.
/Users/admin/builder/spi-builder-workspace/CareKitStore/CareKitStore/CoreData/OCKStore+Patients.swift:69:78: warning: capture of 'updatedPatients' with non-sendable type '[OCKPatient]' in a `@Sendable` closure; this is an error in the Swift 6 language mode
67 | let updatedPatients = persistablePatients.map(self.makePatient)
68 | callbackQueue.async {
69 | self.patientDelegate?.patientStore(self, didAddPatients: updatedPatients)
| `- warning: capture of 'updatedPatients' with non-sendable type '[OCKPatient]' in a `@Sendable` closure; this is an error in the Swift 6 language mode
70 | completion?(.success(updatedPatients))
71 | }
/Users/admin/builder/spi-builder-workspace/CareKitStore/CareKitStore/Structs/OCKPatient.swift:34:15: note: consider making struct 'OCKPatient' conform to the 'Sendable' protocol
32 |
33 | /// Represents a patient
34 | public struct OCKPatient: Codable, Equatable, Identifiable, OCKAnyPatient, OCKVersionedObjectCompatible {
| `- note: consider making struct 'OCKPatient' conform to the 'Sendable' protocol
35 |
36 | // MARK: OCKAnyPatient
/Users/admin/builder/spi-builder-workspace/CareKitStore/CareKitStore/CoreData/OCKStore+Patients.swift:70:21: warning: capture of 'completion' with non-sendable type '((Result<[OCKPatient], OCKStoreError>) -> Void)?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
68 | callbackQueue.async {
69 | self.patientDelegate?.patientStore(self, didAddPatients: updatedPatients)
70 | completion?(.success(updatedPatients))
| |- warning: capture of 'completion' with non-sendable type '((Result<[OCKPatient], OCKStoreError>) -> 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'
71 | }
72 | } catch {
/Users/admin/builder/spi-builder-workspace/CareKitStore/CareKitStore/CoreData/OCKStore+Patients.swift:75:21: warning: capture of 'completion' with non-sendable type '((Result<[OCKPatient], OCKStoreError>) -> Void)?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
73 | self.context.rollback()
74 | callbackQueue.async {
75 | completion?(.failure(.addFailed(reason: "Failed to insert OCKPatients: [\(patients)]. \(error.localizedDescription)")))
| |- warning: capture of 'completion' with non-sendable type '((Result<[OCKPatient], OCKStoreError>) -> 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'
76 | }
77 | }
/Users/admin/builder/spi-builder-workspace/CareKitStore/CareKitStore/CoreData/OCKStore+Patients.swift:75:95: warning: capture of 'patients' with non-sendable type '[OCKPatient]' in a `@Sendable` closure; this is an error in the Swift 6 language mode
73 | self.context.rollback()
74 | callbackQueue.async {
75 | completion?(.failure(.addFailed(reason: "Failed to insert OCKPatients: [\(patients)]. \(error.localizedDescription)")))
| `- warning: capture of 'patients' with non-sendable type '[OCKPatient]' in a `@Sendable` closure; this is an error in the Swift 6 language mode
76 | }
77 | }
/Users/admin/builder/spi-builder-workspace/CareKitStore/CareKitStore/Structs/OCKPatient.swift:34:15: note: consider making struct 'OCKPatient' conform to the 'Sendable' protocol
32 |
33 | /// Represents a patient
34 | public struct OCKPatient: Codable, Equatable, Identifiable, OCKAnyPatient, OCKVersionedObjectCompatible {
| `- note: consider making struct 'OCKPatient' conform to the 'Sendable' protocol
35 |
36 | // MARK: OCKAnyPatient
/Users/admin/builder/spi-builder-workspace/CareKitStore/CareKitStore/CoreData/OCKStore+Patients.swift:91:21: warning: capture of 'self' with non-sendable type 'OCKStore' in a `@Sendable` closure; this is an error in the Swift 6 language mode
89 | let patients = updatedPatients.map(self.makePatient)
90 | callbackQueue.async {
91 | self.patientDelegate?.patientStore(self, didUpdatePatients: patients)
| `- warning: capture of 'self' with non-sendable type 'OCKStore' in a `@Sendable` closure; this is an error in the Swift 6 language mode
92 | completion?(.success(patients))
93 | }
/Users/admin/builder/spi-builder-workspace/CareKitStore/CareKitStore/CoreData/OCKStore.swift:35:12: note: class 'OCKStore' does not conform to the 'Sendable' protocol
33 |
34 | /// The default store used in CareKit. The underlying database used is CoreData.
35 | open class OCKStore: OCKStoreProtocol, OCKCoreDataStoreProtocol, Equatable {
| `- note: class 'OCKStore' does not conform to the 'Sendable' protocol
36 |
37 | /// The delegate receives callbacks when the contents of the patient store are modified.
/Users/admin/builder/spi-builder-workspace/CareKitStore/CareKitStore/CoreData/OCKStore+Patients.swift:91:81: warning: capture of 'patients' with non-sendable type '[OCKPatient]' in a `@Sendable` closure; this is an error in the Swift 6 language mode
89 | let patients = updatedPatients.map(self.makePatient)
90 | callbackQueue.async {
91 | self.patientDelegate?.patientStore(self, didUpdatePatients: patients)
| `- warning: capture of 'patients' with non-sendable type '[OCKPatient]' in a `@Sendable` closure; this is an error in the Swift 6 language mode
92 | completion?(.success(patients))
93 | }
/Users/admin/builder/spi-builder-workspace/CareKitStore/CareKitStore/Structs/OCKPatient.swift:34:15: note: consider making struct 'OCKPatient' conform to the 'Sendable' protocol
32 |
33 | /// Represents a patient
34 | public struct OCKPatient: Codable, Equatable, Identifiable, OCKAnyPatient, OCKVersionedObjectCompatible {
| `- note: consider making struct 'OCKPatient' conform to the 'Sendable' protocol
35 |
36 | // MARK: OCKAnyPatient
/Users/admin/builder/spi-builder-workspace/CareKitStore/CareKitStore/CoreData/OCKStore+Patients.swift:92:21: warning: capture of 'completion' with non-sendable type '((Result<[OCKPatient], OCKStoreError>) -> Void)?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
90 | callbackQueue.async {
91 | self.patientDelegate?.patientStore(self, didUpdatePatients: patients)
92 | completion?(.success(patients))
| |- warning: capture of 'completion' with non-sendable type '((Result<[OCKPatient], OCKStoreError>) -> 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'
93 | }
94 | } catch {
/Users/admin/builder/spi-builder-workspace/CareKitStore/CareKitStore/CoreData/OCKStore+Patients.swift:97:21: warning: capture of 'completion' with non-sendable type '((Result<[OCKPatient], OCKStoreError>) -> Void)?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
95 | self.context.rollback()
96 | callbackQueue.async {
97 | completion?(.failure(.updateFailed(reason: "Failed to update OCKPatients: [\(patients)]. \(error.localizedDescription)")))
| |- warning: capture of 'completion' with non-sendable type '((Result<[OCKPatient], OCKStoreError>) -> 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'
98 | }
99 | }
/Users/admin/builder/spi-builder-workspace/CareKitStore/CareKitStore/CoreData/OCKStore+Patients.swift:97:98: warning: capture of 'patients' with non-sendable type '[OCKPatient]' in a `@Sendable` closure; this is an error in the Swift 6 language mode
95 | self.context.rollback()
96 | callbackQueue.async {
97 | completion?(.failure(.updateFailed(reason: "Failed to update OCKPatients: [\(patients)]. \(error.localizedDescription)")))
| `- warning: capture of 'patients' with non-sendable type '[OCKPatient]' in a `@Sendable` closure; this is an error in the Swift 6 language mode
98 | }
99 | }
/Users/admin/builder/spi-builder-workspace/CareKitStore/CareKitStore/Structs/OCKPatient.swift:34:15: note: consider making struct 'OCKPatient' conform to the 'Sendable' protocol
32 |
33 | /// Represents a patient
34 | public struct OCKPatient: Codable, Equatable, Identifiable, OCKAnyPatient, OCKVersionedObjectCompatible {
| `- note: consider making struct 'OCKPatient' conform to the 'Sendable' protocol
35 |
36 | // MARK: OCKAnyPatient
/Users/admin/builder/spi-builder-workspace/CareKitStore/CareKitStore/CoreData/OCKStore+Patients.swift:111:21: warning: capture of 'self' with non-sendable type 'OCKStore' in a `@Sendable` closure; this is an error in the Swift 6 language mode
109 | let deletedPatients = markedDeleted.map(self.makePatient)
110 | callbackQueue.async {
111 | self.patientDelegate?.patientStore(self, didDeletePatients: deletedPatients)
| `- warning: capture of 'self' with non-sendable type 'OCKStore' in a `@Sendable` closure; this is an error in the Swift 6 language mode
112 | completion?(.success(deletedPatients))
113 | }
/Users/admin/builder/spi-builder-workspace/CareKitStore/CareKitStore/CoreData/OCKStore.swift:35:12: note: class 'OCKStore' does not conform to the 'Sendable' protocol
33 |
34 | /// The default store used in CareKit. The underlying database used is CoreData.
35 | open class OCKStore: OCKStoreProtocol, OCKCoreDataStoreProtocol, Equatable {
| `- note: class 'OCKStore' does not conform to the 'Sendable' protocol
36 |
37 | /// The delegate receives callbacks when the contents of the patient store are modified.
/Users/admin/builder/spi-builder-workspace/CareKitStore/CareKitStore/CoreData/OCKStore+Patients.swift:111:81: warning: capture of 'deletedPatients' with non-sendable type '[OCKPatient]' in a `@Sendable` closure; this is an error in the Swift 6 language mode
109 | let deletedPatients = markedDeleted.map(self.makePatient)
110 | callbackQueue.async {
111 | self.patientDelegate?.patientStore(self, didDeletePatients: deletedPatients)
| `- warning: capture of 'deletedPatients' with non-sendable type '[OCKPatient]' in a `@Sendable` closure; this is an error in the Swift 6 language mode
112 | completion?(.success(deletedPatients))
113 | }
/Users/admin/builder/spi-builder-workspace/CareKitStore/CareKitStore/Structs/OCKPatient.swift:34:15: note: consider making struct 'OCKPatient' conform to the 'Sendable' protocol
32 |
33 | /// Represents a patient
34 | public struct OCKPatient: Codable, Equatable, Identifiable, OCKAnyPatient, OCKVersionedObjectCompatible {
| `- note: consider making struct 'OCKPatient' conform to the 'Sendable' protocol
35 |
36 | // MARK: OCKAnyPatient
/Users/admin/builder/spi-builder-workspace/CareKitStore/CareKitStore/CoreData/OCKStore+Patients.swift:112:21: warning: capture of 'completion' with non-sendable type '((Result<[OCKPatient], OCKStoreError>) -> Void)?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
110 | callbackQueue.async {
111 | self.patientDelegate?.patientStore(self, didDeletePatients: deletedPatients)
112 | completion?(.success(deletedPatients))
| |- warning: capture of 'completion' with non-sendable type '((Result<[OCKPatient], OCKStoreError>) -> 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'
113 | }
114 | } catch {
/Users/admin/builder/spi-builder-workspace/CareKitStore/CareKitStore/CoreData/OCKStore+Patients.swift:117:21: warning: capture of 'completion' with non-sendable type '((Result<[OCKPatient], OCKStoreError>) -> Void)?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
115 | self.context.rollback()
116 | callbackQueue.async {
117 | completion?(.failure(.deleteFailed(reason: "Failed to delete OCKPatients: [\(patients)]. \(error.localizedDescription)")))
| |- warning: capture of 'completion' with non-sendable type '((Result<[OCKPatient], OCKStoreError>) -> 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'
118 | }
119 | }
/Users/admin/builder/spi-builder-workspace/CareKitStore/CareKitStore/CoreData/OCKStore+Patients.swift:117:98: warning: capture of 'patients' with non-sendable type '[OCKPatient]' in a `@Sendable` closure; this is an error in the Swift 6 language mode
115 | self.context.rollback()
116 | callbackQueue.async {
117 | completion?(.failure(.deleteFailed(reason: "Failed to delete OCKPatients: [\(patients)]. \(error.localizedDescription)")))
| `- warning: capture of 'patients' with non-sendable type '[OCKPatient]' in a `@Sendable` closure; this is an error in the Swift 6 language mode
118 | }
119 | }
/Users/admin/builder/spi-builder-workspace/CareKitStore/CareKitStore/Structs/OCKPatient.swift:34:15: note: consider making struct 'OCKPatient' conform to the 'Sendable' protocol
32 |
33 | /// Represents a patient
34 | public struct OCKPatient: Codable, Equatable, Identifiable, OCKAnyPatient, OCKVersionedObjectCompatible {
| `- note: consider making struct 'OCKPatient' conform to the 'Sendable' protocol
35 |
36 | // MARK: OCKAnyPatient
[65/154] Compiling CareKitStore OCKCDCarePlan.swift
/Users/admin/builder/spi-builder-workspace/CareKitStore/CareKitStore/Structs/OCKNote.swift:50:12: warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
48 | public internal(set) var updatedDate: Date?
49 | public internal(set) var schemaVersion: OCKSemanticVersion?
50 | public internal (set) var localDatabaseID: OCKLocalVersionID?
| `- warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
51 | public var groupIdentifier: String?
52 | public var tags: [String]?
[66/154] Compiling CareKitStore OCKCDContact.swift
/Users/admin/builder/spi-builder-workspace/CareKitStore/CareKitStore/Structs/OCKNote.swift:50:12: warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
48 | public internal(set) var updatedDate: Date?
49 | public internal(set) var schemaVersion: OCKSemanticVersion?
50 | public internal (set) var localDatabaseID: OCKLocalVersionID?
| `- warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
51 | public var groupIdentifier: String?
52 | public var tags: [String]?
[67/154] Compiling CareKitStore OCKCDHealthKitLinkage.swift
/Users/admin/builder/spi-builder-workspace/CareKitStore/CareKitStore/Structs/OCKNote.swift:50:12: warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
48 | public internal(set) var updatedDate: Date?
49 | public internal(set) var schemaVersion: OCKSemanticVersion?
50 | public internal (set) var localDatabaseID: OCKLocalVersionID?
| `- warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
51 | public var groupIdentifier: String?
52 | public var tags: [String]?
[68/154] Compiling CareKitStore OCKCDNote.swift
/Users/admin/builder/spi-builder-workspace/CareKitStore/CareKitStore/Structs/OCKNote.swift:50:12: warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
48 | public internal(set) var updatedDate: Date?
49 | public internal(set) var schemaVersion: OCKSemanticVersion?
50 | public internal (set) var localDatabaseID: OCKLocalVersionID?
| `- warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
51 | public var groupIdentifier: String?
52 | public var tags: [String]?
[69/154] Compiling CareKitStore OCKCDObject.swift
/Users/admin/builder/spi-builder-workspace/CareKitStore/CareKitStore/Structs/OCKNote.swift:50:12: warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
48 | public internal(set) var updatedDate: Date?
49 | public internal(set) var schemaVersion: OCKSemanticVersion?
50 | public internal (set) var localDatabaseID: OCKLocalVersionID?
| `- warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
51 | public var groupIdentifier: String?
52 | public var tags: [String]?
[70/154] Compiling CareKitStore OCKCDOutcome.swift
/Users/admin/builder/spi-builder-workspace/CareKitStore/CareKitStore/Structs/OCKNote.swift:50:12: warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
48 | public internal(set) var updatedDate: Date?
49 | public internal(set) var schemaVersion: OCKSemanticVersion?
50 | public internal (set) var localDatabaseID: OCKLocalVersionID?
| `- warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
51 | public var groupIdentifier: String?
52 | public var tags: [String]?
[71/154] Compiling CareKitStore OCKCDOutcomeValue.swift
/Users/admin/builder/spi-builder-workspace/CareKitStore/CareKitStore/Structs/OCKNote.swift:50:12: warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
48 | public internal(set) var updatedDate: Date?
49 | public internal(set) var schemaVersion: OCKSemanticVersion?
50 | public internal (set) var localDatabaseID: OCKLocalVersionID?
| `- warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
51 | public var groupIdentifier: String?
52 | public var tags: [String]?
[72/154] Compiling CareKitStore OCKCDPatient.swift
/Users/admin/builder/spi-builder-workspace/CareKitStore/CareKitStore/Structs/OCKNote.swift:50:12: warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
48 | public internal(set) var updatedDate: Date?
49 | public internal(set) var schemaVersion: OCKSemanticVersion?
50 | public internal (set) var localDatabaseID: OCKLocalVersionID?
| `- warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
51 | public var groupIdentifier: String?
52 | public var tags: [String]?
[73/154] Compiling CareKitStore OCKCDPersonName.swift
/Users/admin/builder/spi-builder-workspace/CareKitStore/CareKitStore/Structs/OCKNote.swift:50:12: warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
48 | public internal(set) var updatedDate: Date?
49 | public internal(set) var schemaVersion: OCKSemanticVersion?
50 | public internal (set) var localDatabaseID: OCKLocalVersionID?
| `- warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
51 | public var groupIdentifier: String?
52 | public var tags: [String]?
[74/154] Compiling CareKitStore OCKAnyTaskStore.swift
/Users/admin/builder/spi-builder-workspace/CareKitStore/CareKitStore/Protocols/Tasks/OCKTaskStore.swift:171:35: warning: capture of 'completion' with non-sendable type 'OCKResultClosure<[any OCKAnyTask]>?' (aka 'Optional<(Result<Array<any OCKAnyTask>, OCKStoreError>) -> ()>') in a `@Sendable` closure; this is an error in the Swift 6 language mode
169 | guard let tasks = tasks as? [Task] else {
170 | let message = "Failed to add tasks. Not all tasks were of the correct type, \(Task.self)."
171 | callbackQueue.async { completion?(.failure(.addFailed(reason: message))) }
| |- warning: capture of 'completion' with non-sendable type 'OCKResultClosure<[any OCKAnyTask]>?' (aka 'Optional<(Result<Array<any OCKAnyTask>, OCKStoreError>) -> ()>') 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'
172 | return
173 | }
/Users/admin/builder/spi-builder-workspace/CareKitStore/CareKitStore/Protocols/Tasks/OCKTaskStore.swift:180:35: warning: capture of 'completion' with non-sendable type 'OCKResultClosure<[any OCKAnyTask]>?' (aka 'Optional<(Result<Array<any OCKAnyTask>, OCKStoreError>) -> ()>') in a `@Sendable` closure; this is an error in the Swift 6 language mode
178 | guard let tasks = tasks as? [Task] else {
179 | let message = "Failed to update tasks. Not all tasks were of the correct type, \(Task.self)."
180 | callbackQueue.async { completion?(.failure(.updateFailed(reason: message))) }
| |- warning: capture of 'completion' with non-sendable type 'OCKResultClosure<[any OCKAnyTask]>?' (aka 'Optional<(Result<Array<any OCKAnyTask>, OCKStoreError>) -> ()>') 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'
181 | return
182 | }
/Users/admin/builder/spi-builder-workspace/CareKitStore/CareKitStore/Protocols/Tasks/OCKTaskStore.swift:189:35: warning: capture of 'completion' with non-sendable type 'OCKResultClosure<[any OCKAnyTask]>?' (aka 'Optional<(Result<Array<any OCKAnyTask>, OCKStoreError>) -> ()>') in a `@Sendable` closure; this is an error in the Swift 6 language mode
187 | guard let tasks = tasks as? [Task] else {
188 | let message = "Failed to delete tasks. Not all tasks were of the correct type, \(Task.self)."
189 | callbackQueue.async { completion?(.failure(.deleteFailed(reason: message))) }
| |- warning: capture of 'completion' with non-sendable type 'OCKResultClosure<[any OCKAnyTask]>?' (aka 'Optional<(Result<Array<any OCKAnyTask>, OCKStoreError>) -> ()>') 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'
190 | return
191 | }
/Users/admin/builder/spi-builder-workspace/CareKitStore/CareKitStore/Structs/OCKNote.swift:50:12: warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
48 | public internal(set) var updatedDate: Date?
49 | public internal(set) var schemaVersion: OCKSemanticVersion?
50 | public internal (set) var localDatabaseID: OCKLocalVersionID?
| `- warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
51 | public var groupIdentifier: String?
52 | public var tags: [String]?
/Users/admin/builder/spi-builder-workspace/CareKitStore/CareKitStore/Protocols/Tasks/OCKTaskStore.swift:171:35: warning: capture of 'completion' with non-sendable type 'OCKResultClosure<[any OCKAnyTask]>?' (aka 'Optional<(Result<Array<any OCKAnyTask>, OCKStoreError>) -> ()>') in a `@Sendable` closure; this is an error in the Swift 6 language mode
169 | guard let tasks = tasks as? [Task] else {
170 | let message = "Failed to add tasks. Not all tasks were of the correct type, \(Task.self)."
171 | callbackQueue.async { completion?(.failure(.addFailed(reason: message))) }
| |- warning: capture of 'completion' with non-sendable type 'OCKResultClosure<[any OCKAnyTask]>?' (aka 'Optional<(Result<Array<any OCKAnyTask>, OCKStoreError>) -> ()>') 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'
172 | return
173 | }
/Users/admin/builder/spi-builder-workspace/CareKitStore/CareKitStore/Protocols/Tasks/OCKTaskStore.swift:180:35: warning: capture of 'completion' with non-sendable type 'OCKResultClosure<[any OCKAnyTask]>?' (aka 'Optional<(Result<Array<any OCKAnyTask>, OCKStoreError>) -> ()>') in a `@Sendable` closure; this is an error in the Swift 6 language mode
178 | guard let tasks = tasks as? [Task] else {
179 | let message = "Failed to update tasks. Not all tasks were of the correct type, \(Task.self)."
180 | callbackQueue.async { completion?(.failure(.updateFailed(reason: message))) }
| |- warning: capture of 'completion' with non-sendable type 'OCKResultClosure<[any OCKAnyTask]>?' (aka 'Optional<(Result<Array<any OCKAnyTask>, OCKStoreError>) -> ()>') 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'
181 | return
182 | }
/Users/admin/builder/spi-builder-workspace/CareKitStore/CareKitStore/Protocols/Tasks/OCKTaskStore.swift:189:35: warning: capture of 'completion' with non-sendable type 'OCKResultClosure<[any OCKAnyTask]>?' (aka 'Optional<(Result<Array<any OCKAnyTask>, OCKStoreError>) -> ()>') in a `@Sendable` closure; this is an error in the Swift 6 language mode
187 | guard let tasks = tasks as? [Task] else {
188 | let message = "Failed to delete tasks. Not all tasks were of the correct type, \(Task.self)."
189 | callbackQueue.async { completion?(.failure(.deleteFailed(reason: message))) }
| |- warning: capture of 'completion' with non-sendable type 'OCKResultClosure<[any OCKAnyTask]>?' (aka 'Optional<(Result<Array<any OCKAnyTask>, OCKStoreError>) -> ()>') 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'
190 | return
191 | }
/Users/admin/builder/spi-builder-workspace/CareKitStore/CareKitStore/Structs/OCKNote.swift:50:12: warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
48 | public internal(set) var updatedDate: Date?
49 | public internal(set) var schemaVersion: OCKSemanticVersion?
50 | public internal (set) var localDatabaseID: OCKLocalVersionID?
| `- warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
51 | public var groupIdentifier: String?
52 | public var tags: [String]?
/Users/admin/builder/spi-builder-workspace/CareKitStore/CareKitStore/Protocols/Tasks/OCKTaskStore.swift:171:35: warning: capture of 'completion' with non-sendable type 'OCKResultClosure<[any OCKAnyTask]>?' (aka 'Optional<(Result<Array<any OCKAnyTask>, OCKStoreError>) -> ()>') in a `@Sendable` closure; this is an error in the Swift 6 language mode
169 | guard let tasks = tasks as? [Task] else {
170 | let message = "Failed to add tasks. Not all tasks were of the correct type, \(Task.self)."
171 | callbackQueue.async { completion?(.failure(.addFailed(reason: message))) }
| |- warning: capture of 'completion' with non-sendable type 'OCKResultClosure<[any OCKAnyTask]>?' (aka 'Optional<(Result<Array<any OCKAnyTask>, OCKStoreError>) -> ()>') 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'
172 | return
173 | }
/Users/admin/builder/spi-builder-workspace/CareKitStore/CareKitStore/Protocols/Tasks/OCKTaskStore.swift:180:35: warning: capture of 'completion' with non-sendable type 'OCKResultClosure<[any OCKAnyTask]>?' (aka 'Optional<(Result<Array<any OCKAnyTask>, OCKStoreError>) -> ()>') in a `@Sendable` closure; this is an error in the Swift 6 language mode
178 | guard let tasks = tasks as? [Task] else {
179 | let message = "Failed to update tasks. Not all tasks were of the correct type, \(Task.self)."
180 | callbackQueue.async { completion?(.failure(.updateFailed(reason: message))) }
| |- warning: capture of 'completion' with non-sendable type 'OCKResultClosure<[any OCKAnyTask]>?' (aka 'Optional<(Result<Array<any OCKAnyTask>, OCKStoreError>) -> ()>') 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'
181 | return
182 | }
/Users/admin/builder/spi-builder-workspace/CareKitStore/CareKitStore/Protocols/Tasks/OCKTaskStore.swift:189:35: warning: capture of 'completion' with non-sendable type 'OCKResultClosure<[any OCKAnyTask]>?' (aka 'Optional<(Result<Array<any OCKAnyTask>, OCKStoreError>) -> ()>') in a `@Sendable` closure; this is an error in the Swift 6 language mode
187 | guard let tasks = tasks as? [Task] else {
188 | let message = "Failed to delete tasks. Not all tasks were of the correct type, \(Task.self)."
189 | callbackQueue.async { completion?(.failure(.deleteFailed(reason: message))) }
| |- warning: capture of 'completion' with non-sendable type 'OCKResultClosure<[any OCKAnyTask]>?' (aka 'Optional<(Result<Array<any OCKAnyTask>, OCKStoreError>) -> ()>') 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'
190 | return
191 | }
/Users/admin/builder/spi-builder-workspace/CareKitStore/CareKitStore/Structs/OCKNote.swift:50:12: warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
48 | public internal(set) var updatedDate: Date?
49 | public internal(set) var schemaVersion: OCKSemanticVersion?
50 | public internal (set) var localDatabaseID: OCKLocalVersionID?
| `- warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
51 | public var groupIdentifier: String?
52 | public var tags: [String]?
/Users/admin/builder/spi-builder-workspace/CareKitStore/CareKitStore/Protocols/Tasks/OCKTaskStore.swift:171:35: warning: capture of 'completion' with non-sendable type 'OCKResultClosure<[any OCKAnyTask]>?' (aka 'Optional<(Result<Array<any OCKAnyTask>, OCKStoreError>) -> ()>') in a `@Sendable` closure; this is an error in the Swift 6 language mode
169 | guard let tasks = tasks as? [Task] else {
170 | let message = "Failed to add tasks. Not all tasks were of the correct type, \(Task.self)."
171 | callbackQueue.async { completion?(.failure(.addFailed(reason: message))) }
| |- warning: capture of 'completion' with non-sendable type 'OCKResultClosure<[any OCKAnyTask]>?' (aka 'Optional<(Result<Array<any OCKAnyTask>, OCKStoreError>) -> ()>') 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'
172 | return
173 | }
/Users/admin/builder/spi-builder-workspace/CareKitStore/CareKitStore/Protocols/Tasks/OCKTaskStore.swift:180:35: warning: capture of 'completion' with non-sendable type 'OCKResultClosure<[any OCKAnyTask]>?' (aka 'Optional<(Result<Array<any OCKAnyTask>, OCKStoreError>) -> ()>') in a `@Sendable` closure; this is an error in the Swift 6 language mode
178 | guard let tasks = tasks as? [Task] else {
179 | let message = "Failed to update tasks. Not all tasks were of the correct type, \(Task.self)."
180 | callbackQueue.async { completion?(.failure(.updateFailed(reason: message))) }
| |- warning: capture of 'completion' with non-sendable type 'OCKResultClosure<[any OCKAnyTask]>?' (aka 'Optional<(Result<Array<any OCKAnyTask>, OCKStoreError>) -> ()>') 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'
181 | return
182 | }
/Users/admin/builder/spi-builder-workspace/CareKitStore/CareKitStore/Protocols/Tasks/OCKTaskStore.swift:189:35: warning: capture of 'completion' with non-sendable type 'OCKResultClosure<[any OCKAnyTask]>?' (aka 'Optional<(Result<Array<any OCKAnyTask>, OCKStoreError>) -> ()>') in a `@Sendable` closure; this is an error in the Swift 6 language mode
187 | guard let tasks = tasks as? [Task] else {
188 | let message = "Failed to delete tasks. Not all tasks were of the correct type, \(Task.self)."
189 | callbackQueue.async { completion?(.failure(.deleteFailed(reason: message))) }
| |- warning: capture of 'completion' with non-sendable type 'OCKResultClosure<[any OCKAnyTask]>?' (aka 'Optional<(Result<Array<any OCKAnyTask>, OCKStoreError>) -> ()>') 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'
190 | return
191 | }
/Users/admin/builder/spi-builder-workspace/CareKitStore/CareKitStore/Structs/OCKNote.swift:50:12: warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
48 | public internal(set) var updatedDate: Date?
49 | public internal(set) var schemaVersion: OCKSemanticVersion?
50 | public internal (set) var localDatabaseID: OCKLocalVersionID?
| `- warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
51 | public var groupIdentifier: String?
52 | public var tags: [String]?
/Users/admin/builder/spi-builder-workspace/CareKitStore/CareKitStore/Protocols/Tasks/OCKTaskStore.swift:171:35: warning: capture of 'completion' with non-sendable type 'OCKResultClosure<[any OCKAnyTask]>?' (aka 'Optional<(Result<Array<any OCKAnyTask>, OCKStoreError>) -> ()>') in a `@Sendable` closure; this is an error in the Swift 6 language mode
169 | guard let tasks = tasks as? [Task] else {
170 | let message = "Failed to add tasks. Not all tasks were of the correct type, \(Task.self)."
171 | callbackQueue.async { completion?(.failure(.addFailed(reason: message))) }
| |- warning: capture of 'completion' with non-sendable type 'OCKResultClosure<[any OCKAnyTask]>?' (aka 'Optional<(Result<Array<any OCKAnyTask>, OCKStoreError>) -> ()>') 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'
172 | return
173 | }
/Users/admin/builder/spi-builder-workspace/CareKitStore/CareKitStore/Protocols/Tasks/OCKTaskStore.swift:180:35: warning: capture of 'completion' with non-sendable type 'OCKResultClosure<[any OCKAnyTask]>?' (aka 'Optional<(Result<Array<any OCKAnyTask>, OCKStoreError>) -> ()>') in a `@Sendable` closure; this is an error in the Swift 6 language mode
178 | guard let tasks = tasks as? [Task] else {
179 | let message = "Failed to update tasks. Not all tasks were of the correct type, \(Task.self)."
180 | callbackQueue.async { completion?(.failure(.updateFailed(reason: message))) }
| |- warning: capture of 'completion' with non-sendable type 'OCKResultClosure<[any OCKAnyTask]>?' (aka 'Optional<(Result<Array<any OCKAnyTask>, OCKStoreError>) -> ()>') 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'
181 | return
182 | }
/Users/admin/builder/spi-builder-workspace/CareKitStore/CareKitStore/Protocols/Tasks/OCKTaskStore.swift:189:35: warning: capture of 'completion' with non-sendable type 'OCKResultClosure<[any OCKAnyTask]>?' (aka 'Optional<(Result<Array<any OCKAnyTask>, OCKStoreError>) -> ()>') in a `@Sendable` closure; this is an error in the Swift 6 language mode
187 | guard let tasks = tasks as? [Task] else {
188 | let message = "Failed to delete tasks. Not all tasks were of the correct type, \(Task.self)."
189 | callbackQueue.async { completion?(.failure(.deleteFailed(reason: message))) }
| |- warning: capture of 'completion' with non-sendable type 'OCKResultClosure<[any OCKAnyTask]>?' (aka 'Optional<(Result<Array<any OCKAnyTask>, OCKStoreError>) -> ()>') 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'
190 | return
191 | }
/Users/admin/builder/spi-builder-workspace/CareKitStore/CareKitStore/Structs/OCKNote.swift:50:12: warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
48 | public internal(set) var updatedDate: Date?
49 | public internal(set) var schemaVersion: OCKSemanticVersion?
50 | public internal (set) var localDatabaseID: OCKLocalVersionID?
| `- warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
51 | public var groupIdentifier: String?
52 | public var tags: [String]?
/Users/admin/builder/spi-builder-workspace/CareKitStore/CareKitStore/Protocols/Tasks/OCKTaskStore.swift:171:35: warning: capture of 'completion' with non-sendable type 'OCKResultClosure<[any OCKAnyTask]>?' (aka 'Optional<(Result<Array<any OCKAnyTask>, OCKStoreError>) -> ()>') in a `@Sendable` closure; this is an error in the Swift 6 language mode
169 | guard let tasks = tasks as? [Task] else {
170 | let message = "Failed to add tasks. Not all tasks were of the correct type, \(Task.self)."
171 | callbackQueue.async { completion?(.failure(.addFailed(reason: message))) }
| |- warning: capture of 'completion' with non-sendable type 'OCKResultClosure<[any OCKAnyTask]>?' (aka 'Optional<(Result<Array<any OCKAnyTask>, OCKStoreError>) -> ()>') 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'
172 | return
173 | }
/Users/admin/builder/spi-builder-workspace/CareKitStore/CareKitStore/Protocols/Tasks/OCKTaskStore.swift:180:35: warning: capture of 'completion' with non-sendable type 'OCKResultClosure<[any OCKAnyTask]>?' (aka 'Optional<(Result<Array<any OCKAnyTask>, OCKStoreError>) -> ()>') in a `@Sendable` closure; this is an error in the Swift 6 language mode
178 | guard let tasks = tasks as? [Task] else {
179 | let message = "Failed to update tasks. Not all tasks were of the correct type, \(Task.self)."
180 | callbackQueue.async { completion?(.failure(.updateFailed(reason: message))) }
| |- warning: capture of 'completion' with non-sendable type 'OCKResultClosure<[any OCKAnyTask]>?' (aka 'Optional<(Result<Array<any OCKAnyTask>, OCKStoreError>) -> ()>') 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'
181 | return
182 | }
/Users/admin/builder/spi-builder-workspace/CareKitStore/CareKitStore/Protocols/Tasks/OCKTaskStore.swift:189:35: warning: capture of 'completion' with non-sendable type 'OCKResultClosure<[any OCKAnyTask]>?' (aka 'Optional<(Result<Array<any OCKAnyTask>, OCKStoreError>) -> ()>') in a `@Sendable` closure; this is an error in the Swift 6 language mode
187 | guard let tasks = tasks as? [Task] else {
188 | let message = "Failed to delete tasks. Not all tasks were of the correct type, \(Task.self)."
189 | callbackQueue.async { completion?(.failure(.deleteFailed(reason: message))) }
| |- warning: capture of 'completion' with non-sendable type 'OCKResultClosure<[any OCKAnyTask]>?' (aka 'Optional<(Result<Array<any OCKAnyTask>, OCKStoreError>) -> ()>') 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'
190 | return
191 | }
/Users/admin/builder/spi-builder-workspace/CareKitStore/CareKitStore/Structs/OCKNote.swift:50:12: warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
48 | public internal(set) var updatedDate: Date?
49 | public internal(set) var schemaVersion: OCKSemanticVersion?
50 | public internal (set) var localDatabaseID: OCKLocalVersionID?
| `- warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
51 | public var groupIdentifier: String?
52 | public var tags: [String]?
/Users/admin/builder/spi-builder-workspace/CareKitStore/CareKitStore/Protocols/Tasks/OCKTaskStore.swift:171:35: warning: capture of 'completion' with non-sendable type 'OCKResultClosure<[any OCKAnyTask]>?' (aka 'Optional<(Result<Array<any OCKAnyTask>, OCKStoreError>) -> ()>') in a `@Sendable` closure; this is an error in the Swift 6 language mode
169 | guard let tasks = tasks as? [Task] else {
170 | let message = "Failed to add tasks. Not all tasks were of the correct type, \(Task.self)."
171 | callbackQueue.async { completion?(.failure(.addFailed(reason: message))) }
| |- warning: capture of 'completion' with non-sendable type 'OCKResultClosure<[any OCKAnyTask]>?' (aka 'Optional<(Result<Array<any OCKAnyTask>, OCKStoreError>) -> ()>') 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'
172 | return
173 | }
/Users/admin/builder/spi-builder-workspace/CareKitStore/CareKitStore/Protocols/Tasks/OCKTaskStore.swift:180:35: warning: capture of 'completion' with non-sendable type 'OCKResultClosure<[any OCKAnyTask]>?' (aka 'Optional<(Result<Array<any OCKAnyTask>, OCKStoreError>) -> ()>') in a `@Sendable` closure; this is an error in the Swift 6 language mode
178 | guard let tasks = tasks as? [Task] else {
179 | let message = "Failed to update tasks. Not all tasks were of the correct type, \(Task.self)."
180 | callbackQueue.async { completion?(.failure(.updateFailed(reason: message))) }
| |- warning: capture of 'completion' with non-sendable type 'OCKResultClosure<[any OCKAnyTask]>?' (aka 'Optional<(Result<Array<any OCKAnyTask>, OCKStoreError>) -> ()>') 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'
181 | return
182 | }
/Users/admin/builder/spi-builder-workspace/CareKitStore/CareKitStore/Protocols/Tasks/OCKTaskStore.swift:189:35: warning: capture of 'completion' with non-sendable type 'OCKResultClosure<[any OCKAnyTask]>?' (aka 'Optional<(Result<Array<any OCKAnyTask>, OCKStoreError>) -> ()>') in a `@Sendable` closure; this is an error in the Swift 6 language mode
187 | guard let tasks = tasks as? [Task] else {
188 | let message = "Failed to delete tasks. Not all tasks were of the correct type, \(Task.self)."
189 | callbackQueue.async { completion?(.failure(.deleteFailed(reason: message))) }
| |- warning: capture of 'completion' with non-sendable type 'OCKResultClosure<[any OCKAnyTask]>?' (aka 'Optional<(Result<Array<any OCKAnyTask>, OCKStoreError>) -> ()>') 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'
190 | return
191 | }
/Users/admin/builder/spi-builder-workspace/CareKitStore/CareKitStore/Structs/OCKNote.swift:50:12: warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
48 | public internal(set) var updatedDate: Date?
49 | public internal(set) var schemaVersion: OCKSemanticVersion?
50 | public internal (set) var localDatabaseID: OCKLocalVersionID?
| `- warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
51 | public var groupIdentifier: String?
52 | public var tags: [String]?
/Users/admin/builder/spi-builder-workspace/CareKitStore/CareKitStore/Protocols/Tasks/OCKTaskStore.swift:171:35: warning: capture of 'completion' with non-sendable type 'OCKResultClosure<[any OCKAnyTask]>?' (aka 'Optional<(Result<Array<any OCKAnyTask>, OCKStoreError>) -> ()>') in a `@Sendable` closure; this is an error in the Swift 6 language mode
169 | guard let tasks = tasks as? [Task] else {
170 | let message = "Failed to add tasks. Not all tasks were of the correct type, \(Task.self)."
171 | callbackQueue.async { completion?(.failure(.addFailed(reason: message))) }
| |- warning: capture of 'completion' with non-sendable type 'OCKResultClosure<[any OCKAnyTask]>?' (aka 'Optional<(Result<Array<any OCKAnyTask>, OCKStoreError>) -> ()>') 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'
172 | return
173 | }
/Users/admin/builder/spi-builder-workspace/CareKitStore/CareKitStore/Protocols/Tasks/OCKTaskStore.swift:180:35: warning: capture of 'completion' with non-sendable type 'OCKResultClosure<[any OCKAnyTask]>?' (aka 'Optional<(Result<Array<any OCKAnyTask>, OCKStoreError>) -> ()>') in a `@Sendable` closure; this is an error in the Swift 6 language mode
178 | guard let tasks = tasks as? [Task] else {
179 | let message = "Failed to update tasks. Not all tasks were of the correct type, \(Task.self)."
180 | callbackQueue.async { completion?(.failure(.updateFailed(reason: message))) }
| |- warning: capture of 'completion' with non-sendable type 'OCKResultClosure<[any OCKAnyTask]>?' (aka 'Optional<(Result<Array<any OCKAnyTask>, OCKStoreError>) -> ()>') 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'
181 | return
182 | }
/Users/admin/builder/spi-builder-workspace/CareKitStore/CareKitStore/Protocols/Tasks/OCKTaskStore.swift:189:35: warning: capture of 'completion' with non-sendable type 'OCKResultClosure<[any OCKAnyTask]>?' (aka 'Optional<(Result<Array<any OCKAnyTask>, OCKStoreError>) -> ()>') in a `@Sendable` closure; this is an error in the Swift 6 language mode
187 | guard let tasks = tasks as? [Task] else {
188 | let message = "Failed to delete tasks. Not all tasks were of the correct type, \(Task.self)."
189 | callbackQueue.async { completion?(.failure(.deleteFailed(reason: message))) }
| |- warning: capture of 'completion' with non-sendable type 'OCKResultClosure<[any OCKAnyTask]>?' (aka 'Optional<(Result<Array<any OCKAnyTask>, OCKStoreError>) -> ()>') 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'
190 | return
191 | }
/Users/admin/builder/spi-builder-workspace/CareKitStore/CareKitStore/Structs/OCKNote.swift:50:12: warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
48 | public internal(set) var updatedDate: Date?
49 | public internal(set) var schemaVersion: OCKSemanticVersion?
50 | public internal (set) var localDatabaseID: OCKLocalVersionID?
| `- warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
51 | public var groupIdentifier: String?
52 | public var tags: [String]?
[82/154] Compiling CareKitStore OCKAnyOutcomeStore.swift
/Users/admin/builder/spi-builder-workspace/CareKitStore/CareKitStore/Protocols/Outcomes/OCKOutcomeStore.swift:155:35: warning: capture of 'completion' with non-sendable type 'OCKResultClosure<[any OCKAnyOutcome]>?' (aka 'Optional<(Result<Array<any OCKAnyOutcome>, OCKStoreError>) -> ()>') in a `@Sendable` closure; this is an error in the Swift 6 language mode
153 | guard let outcomes = outcomes as? [Outcome] else {
154 | let message = "Failed to add outcomes. Not all outcomes were the correct type, \(Outcome.self)."
155 | callbackQueue.async { completion?(.failure(.addFailed(reason: message))) }
| |- warning: capture of 'completion' with non-sendable type 'OCKResultClosure<[any OCKAnyOutcome]>?' (aka 'Optional<(Result<Array<any OCKAnyOutcome>, OCKStoreError>) -> ()>') 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'
156 | return
157 | }
/Users/admin/builder/spi-builder-workspace/CareKitStore/CareKitStore/Protocols/Outcomes/OCKOutcomeStore.swift:164:35: warning: capture of 'completion' with non-sendable type 'OCKResultClosure<[any OCKAnyOutcome]>?' (aka 'Optional<(Result<Array<any OCKAnyOutcome>, OCKStoreError>) -> ()>') in a `@Sendable` closure; this is an error in the Swift 6 language mode
162 | guard let outcomes = outcomes as? [Outcome] else {
163 | let message = "Failed to update outcomes. Not all outcomes were the correct type, \(Outcome.self)."
164 | callbackQueue.async { completion?(.failure(.updateFailed(reason: message))) }
| |- warning: capture of 'completion' with non-sendable type 'OCKResultClosure<[any OCKAnyOutcome]>?' (aka 'Optional<(Result<Array<any OCKAnyOutcome>, OCKStoreError>) -> ()>') 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'
165 | return
166 | }
/Users/admin/builder/spi-builder-workspace/CareKitStore/CareKitStore/Protocols/Outcomes/OCKOutcomeStore.swift:173:35: warning: capture of 'completion' with non-sendable type 'OCKResultClosure<[any OCKAnyOutcome]>?' (aka 'Optional<(Result<Array<any OCKAnyOutcome>, OCKStoreError>) -> ()>') in a `@Sendable` closure; this is an error in the Swift 6 language mode
171 | guard let outcomes = outcomes as? [Outcome] else {
172 | let message = "Failed to delete outcomes. Not all outcomes were the correct type, \(Outcome.self)."
173 | callbackQueue.async { completion?(.failure(.deleteFailed(reason: message))) }
| |- warning: capture of 'completion' with non-sendable type 'OCKResultClosure<[any OCKAnyOutcome]>?' (aka 'Optional<(Result<Array<any OCKAnyOutcome>, OCKStoreError>) -> ()>') 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'
174 | return
175 | }
/Users/admin/builder/spi-builder-workspace/CareKitStore/CareKitStore/Protocols/Patients/OCKPatientStore.swift:164:35: warning: capture of 'completion' with non-sendable type 'OCKResultClosure<[any OCKAnyPatient]>?' (aka 'Optional<(Result<Array<any OCKAnyPatient>, OCKStoreError>) -> ()>') in a `@Sendable` closure; this is an error in the Swift 6 language mode
162 | guard let patients = patients as? [Patient] else {
163 | let message = "Failed to add patients. Not all patients were of the correct type: \(Patient.self)"
164 | callbackQueue.async { completion?(.failure(.addFailed(reason: message))) }
| |- warning: capture of 'completion' with non-sendable type 'OCKResultClosure<[any OCKAnyPatient]>?' (aka 'Optional<(Result<Array<any OCKAnyPatient>, OCKStoreError>) -> ()>') 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'
165 | return
166 | }
/Users/admin/builder/spi-builder-workspace/CareKitStore/CareKitStore/Protocols/Patients/OCKPatientStore.swift:173:35: warning: capture of 'completion' with non-sendable type 'OCKResultClosure<[any OCKAnyPatient]>?' (aka 'Optional<(Result<Array<any OCKAnyPatient>, OCKStoreError>) -> ()>') in a `@Sendable` closure; this is an error in the Swift 6 language mode
171 | guard let patients = patients as? [Patient] else {
172 | let message = "Failed to update patients. Not all patients were of the correct type: \(Patient.self)"
173 | callbackQueue.async { completion?(.failure(.updateFailed(reason: message))) }
| |- warning: capture of 'completion' with non-sendable type 'OCKResultClosure<[any OCKAnyPatient]>?' (aka 'Optional<(Result<Array<any OCKAnyPatient>, OCKStoreError>) -> ()>') 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'
174 | return
175 | }
/Users/admin/builder/spi-builder-workspace/CareKitStore/CareKitStore/Protocols/Patients/OCKPatientStore.swift:182:35: warning: capture of 'completion' with non-sendable type 'OCKResultClosure<[any OCKAnyPatient]>?' (aka 'Optional<(Result<Array<any OCKAnyPatient>, OCKStoreError>) -> ()>') in a `@Sendable` closure; this is an error in the Swift 6 language mode
180 | guard let patients = patients as? [Patient] else {
181 | let message = "Failed to delete patients. Not all patients were of the correct type: \(Patient.self)"
182 | callbackQueue.async { completion?(.failure(.deleteFailed(reason: message))) }
| |- warning: capture of 'completion' with non-sendable type 'OCKResultClosure<[any OCKAnyPatient]>?' (aka 'Optional<(Result<Array<any OCKAnyPatient>, OCKStoreError>) -> ()>') 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'
183 | return
184 | }
[83/154] Compiling CareKitStore OCKOutcomeStore.swift
/Users/admin/builder/spi-builder-workspace/CareKitStore/CareKitStore/Protocols/Outcomes/OCKOutcomeStore.swift:155:35: warning: capture of 'completion' with non-sendable type 'OCKResultClosure<[any OCKAnyOutcome]>?' (aka 'Optional<(Result<Array<any OCKAnyOutcome>, OCKStoreError>) -> ()>') in a `@Sendable` closure; this is an error in the Swift 6 language mode
153 | guard let outcomes = outcomes as? [Outcome] else {
154 | let message = "Failed to add outcomes. Not all outcomes were the correct type, \(Outcome.self)."
155 | callbackQueue.async { completion?(.failure(.addFailed(reason: message))) }
| |- warning: capture of 'completion' with non-sendable type 'OCKResultClosure<[any OCKAnyOutcome]>?' (aka 'Optional<(Result<Array<any OCKAnyOutcome>, OCKStoreError>) -> ()>') 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'
156 | return
157 | }
/Users/admin/builder/spi-builder-workspace/CareKitStore/CareKitStore/Protocols/Outcomes/OCKOutcomeStore.swift:164:35: warning: capture of 'completion' with non-sendable type 'OCKResultClosure<[any OCKAnyOutcome]>?' (aka 'Optional<(Result<Array<any OCKAnyOutcome>, OCKStoreError>) -> ()>') in a `@Sendable` closure; this is an error in the Swift 6 language mode
162 | guard let outcomes = outcomes as? [Outcome] else {
163 | let message = "Failed to update outcomes. Not all outcomes were the correct type, \(Outcome.self)."
164 | callbackQueue.async { completion?(.failure(.updateFailed(reason: message))) }
| |- warning: capture of 'completion' with non-sendable type 'OCKResultClosure<[any OCKAnyOutcome]>?' (aka 'Optional<(Result<Array<any OCKAnyOutcome>, OCKStoreError>) -> ()>') 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'
165 | return
166 | }
/Users/admin/builder/spi-builder-workspace/CareKitStore/CareKitStore/Protocols/Outcomes/OCKOutcomeStore.swift:173:35: warning: capture of 'completion' with non-sendable type 'OCKResultClosure<[any OCKAnyOutcome]>?' (aka 'Optional<(Result<Array<any OCKAnyOutcome>, OCKStoreError>) -> ()>') in a `@Sendable` closure; this is an error in the Swift 6 language mode
171 | guard let outcomes = outcomes as? [Outcome] else {
172 | let message = "Failed to delete outcomes. Not all outcomes were the correct type, \(Outcome.self)."
173 | callbackQueue.async { completion?(.failure(.deleteFailed(reason: message))) }
| |- warning: capture of 'completion' with non-sendable type 'OCKResultClosure<[any OCKAnyOutcome]>?' (aka 'Optional<(Result<Array<any OCKAnyOutcome>, OCKStoreError>) -> ()>') 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'
174 | return
175 | }
/Users/admin/builder/spi-builder-workspace/CareKitStore/CareKitStore/Protocols/Patients/OCKPatientStore.swift:164:35: warning: capture of 'completion' with non-sendable type 'OCKResultClosure<[any OCKAnyPatient]>?' (aka 'Optional<(Result<Array<any OCKAnyPatient>, OCKStoreError>) -> ()>') in a `@Sendable` closure; this is an error in the Swift 6 language mode
162 | guard let patients = patients as? [Patient] else {
163 | let message = "Failed to add patients. Not all patients were of the correct type: \(Patient.self)"
164 | callbackQueue.async { completion?(.failure(.addFailed(reason: message))) }
| |- warning: capture of 'completion' with non-sendable type 'OCKResultClosure<[any OCKAnyPatient]>?' (aka 'Optional<(Result<Array<any OCKAnyPatient>, OCKStoreError>) -> ()>') 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'
165 | return
166 | }
/Users/admin/builder/spi-builder-workspace/CareKitStore/CareKitStore/Protocols/Patients/OCKPatientStore.swift:173:35: warning: capture of 'completion' with non-sendable type 'OCKResultClosure<[any OCKAnyPatient]>?' (aka 'Optional<(Result<Array<any OCKAnyPatient>, OCKStoreError>) -> ()>') in a `@Sendable` closure; this is an error in the Swift 6 language mode
171 | guard let patients = patients as? [Patient] else {
172 | let message = "Failed to update patients. Not all patients were of the correct type: \(Patient.self)"
173 | callbackQueue.async { completion?(.failure(.updateFailed(reason: message))) }
| |- warning: capture of 'completion' with non-sendable type 'OCKResultClosure<[any OCKAnyPatient]>?' (aka 'Optional<(Result<Array<any OCKAnyPatient>, OCKStoreError>) -> ()>') 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'
174 | return
175 | }
/Users/admin/builder/spi-builder-workspace/CareKitStore/CareKitStore/Protocols/Patients/OCKPatientStore.swift:182:35: warning: capture of 'completion' with non-sendable type 'OCKResultClosure<[any OCKAnyPatient]>?' (aka 'Optional<(Result<Array<any OCKAnyPatient>, OCKStoreError>) -> ()>') in a `@Sendable` closure; this is an error in the Swift 6 language mode
180 | guard let patients = patients as? [Patient] else {
181 | let message = "Failed to delete patients. Not all patients were of the correct type: \(Patient.self)"
182 | callbackQueue.async { completion?(.failure(.deleteFailed(reason: message))) }
| |- warning: capture of 'completion' with non-sendable type 'OCKResultClosure<[any OCKAnyPatient]>?' (aka 'Optional<(Result<Array<any OCKAnyPatient>, OCKStoreError>) -> ()>') 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'
183 | return
184 | }
[84/154] Compiling CareKitStore OCKOutcomeStoreDelegate.swift
/Users/admin/builder/spi-builder-workspace/CareKitStore/CareKitStore/Protocols/Outcomes/OCKOutcomeStore.swift:155:35: warning: capture of 'completion' with non-sendable type 'OCKResultClosure<[any OCKAnyOutcome]>?' (aka 'Optional<(Result<Array<any OCKAnyOutcome>, OCKStoreError>) -> ()>') in a `@Sendable` closure; this is an error in the Swift 6 language mode
153 | guard let outcomes = outcomes as? [Outcome] else {
154 | let message = "Failed to add outcomes. Not all outcomes were the correct type, \(Outcome.self)."
155 | callbackQueue.async { completion?(.failure(.addFailed(reason: message))) }
| |- warning: capture of 'completion' with non-sendable type 'OCKResultClosure<[any OCKAnyOutcome]>?' (aka 'Optional<(Result<Array<any OCKAnyOutcome>, OCKStoreError>) -> ()>') 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'
156 | return
157 | }
/Users/admin/builder/spi-builder-workspace/CareKitStore/CareKitStore/Protocols/Outcomes/OCKOutcomeStore.swift:164:35: warning: capture of 'completion' with non-sendable type 'OCKResultClosure<[any OCKAnyOutcome]>?' (aka 'Optional<(Result<Array<any OCKAnyOutcome>, OCKStoreError>) -> ()>') in a `@Sendable` closure; this is an error in the Swift 6 language mode
162 | guard let outcomes = outcomes as? [Outcome] else {
163 | let message = "Failed to update outcomes. Not all outcomes were the correct type, \(Outcome.self)."
164 | callbackQueue.async { completion?(.failure(.updateFailed(reason: message))) }
| |- warning: capture of 'completion' with non-sendable type 'OCKResultClosure<[any OCKAnyOutcome]>?' (aka 'Optional<(Result<Array<any OCKAnyOutcome>, OCKStoreError>) -> ()>') 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'
165 | return
166 | }
/Users/admin/builder/spi-builder-workspace/CareKitStore/CareKitStore/Protocols/Outcomes/OCKOutcomeStore.swift:173:35: warning: capture of 'completion' with non-sendable type 'OCKResultClosure<[any OCKAnyOutcome]>?' (aka 'Optional<(Result<Array<any OCKAnyOutcome>, OCKStoreError>) -> ()>') in a `@Sendable` closure; this is an error in the Swift 6 language mode
171 | guard let outcomes = outcomes as? [Outcome] else {
172 | let message = "Failed to delete outcomes. Not all outcomes were the correct type, \(Outcome.self)."
173 | callbackQueue.async { completion?(.failure(.deleteFailed(reason: message))) }
| |- warning: capture of 'completion' with non-sendable type 'OCKResultClosure<[any OCKAnyOutcome]>?' (aka 'Optional<(Result<Array<any OCKAnyOutcome>, OCKStoreError>) -> ()>') 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'
174 | return
175 | }
/Users/admin/builder/spi-builder-workspace/CareKitStore/CareKitStore/Protocols/Patients/OCKPatientStore.swift:164:35: warning: capture of 'completion' with non-sendable type 'OCKResultClosure<[any OCKAnyPatient]>?' (aka 'Optional<(Result<Array<any OCKAnyPatient>, OCKStoreError>) -> ()>') in a `@Sendable` closure; this is an error in the Swift 6 language mode
162 | guard let patients = patients as? [Patient] else {
163 | let message = "Failed to add patients. Not all patients were of the correct type: \(Patient.self)"
164 | callbackQueue.async { completion?(.failure(.addFailed(reason: message))) }
| |- warning: capture of 'completion' with non-sendable type 'OCKResultClosure<[any OCKAnyPatient]>?' (aka 'Optional<(Result<Array<any OCKAnyPatient>, OCKStoreError>) -> ()>') 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'
165 | return
166 | }
/Users/admin/builder/spi-builder-workspace/CareKitStore/CareKitStore/Protocols/Patients/OCKPatientStore.swift:173:35: warning: capture of 'completion' with non-sendable type 'OCKResultClosure<[any OCKAnyPatient]>?' (aka 'Optional<(Result<Array<any OCKAnyPatient>, OCKStoreError>) -> ()>') in a `@Sendable` closure; this is an error in the Swift 6 language mode
171 | guard let patients = patients as? [Patient] else {
172 | let message = "Failed to update patients. Not all patients were of the correct type: \(Patient.self)"
173 | callbackQueue.async { completion?(.failure(.updateFailed(reason: message))) }
| |- warning: capture of 'completion' with non-sendable type 'OCKResultClosure<[any OCKAnyPatient]>?' (aka 'Optional<(Result<Array<any OCKAnyPatient>, OCKStoreError>) -> ()>') 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'
174 | return
175 | }
/Users/admin/builder/spi-builder-workspace/CareKitStore/CareKitStore/Protocols/Patients/OCKPatientStore.swift:182:35: warning: capture of 'completion' with non-sendable type 'OCKResultClosure<[any OCKAnyPatient]>?' (aka 'Optional<(Result<Array<any OCKAnyPatient>, OCKStoreError>) -> ()>') in a `@Sendable` closure; this is an error in the Swift 6 language mode
180 | guard let patients = patients as? [Patient] else {
181 | let message = "Failed to delete patients. Not all patients were of the correct type: \(Patient.self)"
182 | callbackQueue.async { completion?(.failure(.deleteFailed(reason: message))) }
| |- warning: capture of 'completion' with non-sendable type 'OCKResultClosure<[any OCKAnyPatient]>?' (aka 'Optional<(Result<Array<any OCKAnyPatient>, OCKStoreError>) -> ()>') 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'
183 | return
184 | }
[85/154] Compiling CareKitStore OCKAnyPatient.swift
/Users/admin/builder/spi-builder-workspace/CareKitStore/CareKitStore/Protocols/Outcomes/OCKOutcomeStore.swift:155:35: warning: capture of 'completion' with non-sendable type 'OCKResultClosure<[any OCKAnyOutcome]>?' (aka 'Optional<(Result<Array<any OCKAnyOutcome>, OCKStoreError>) -> ()>') in a `@Sendable` closure; this is an error in the Swift 6 language mode
153 | guard let outcomes = outcomes as? [Outcome] else {
154 | let message = "Failed to add outcomes. Not all outcomes were the correct type, \(Outcome.self)."
155 | callbackQueue.async { completion?(.failure(.addFailed(reason: message))) }
| |- warning: capture of 'completion' with non-sendable type 'OCKResultClosure<[any OCKAnyOutcome]>?' (aka 'Optional<(Result<Array<any OCKAnyOutcome>, OCKStoreError>) -> ()>') 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'
156 | return
157 | }
/Users/admin/builder/spi-builder-workspace/CareKitStore/CareKitStore/Protocols/Outcomes/OCKOutcomeStore.swift:164:35: warning: capture of 'completion' with non-sendable type 'OCKResultClosure<[any OCKAnyOutcome]>?' (aka 'Optional<(Result<Array<any OCKAnyOutcome>, OCKStoreError>) -> ()>') in a `@Sendable` closure; this is an error in the Swift 6 language mode
162 | guard let outcomes = outcomes as? [Outcome] else {
163 | let message = "Failed to update outcomes. Not all outcomes were the correct type, \(Outcome.self)."
164 | callbackQueue.async { completion?(.failure(.updateFailed(reason: message))) }
| |- warning: capture of 'completion' with non-sendable type 'OCKResultClosure<[any OCKAnyOutcome]>?' (aka 'Optional<(Result<Array<any OCKAnyOutcome>, OCKStoreError>) -> ()>') 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'
165 | return
166 | }
/Users/admin/builder/spi-builder-workspace/CareKitStore/CareKitStore/Protocols/Outcomes/OCKOutcomeStore.swift:173:35: warning: capture of 'completion' with non-sendable type 'OCKResultClosure<[any OCKAnyOutcome]>?' (aka 'Optional<(Result<Array<any OCKAnyOutcome>, OCKStoreError>) -> ()>') in a `@Sendable` closure; this is an error in the Swift 6 language mode
171 | guard let outcomes = outcomes as? [Outcome] else {
172 | let message = "Failed to delete outcomes. Not all outcomes were the correct type, \(Outcome.self)."
173 | callbackQueue.async { completion?(.failure(.deleteFailed(reason: message))) }
| |- warning: capture of 'completion' with non-sendable type 'OCKResultClosure<[any OCKAnyOutcome]>?' (aka 'Optional<(Result<Array<any OCKAnyOutcome>, OCKStoreError>) -> ()>') 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'
174 | return
175 | }
/Users/admin/builder/spi-builder-workspace/CareKitStore/CareKitStore/Protocols/Patients/OCKPatientStore.swift:164:35: warning: capture of 'completion' with non-sendable type 'OCKResultClosure<[any OCKAnyPatient]>?' (aka 'Optional<(Result<Array<any OCKAnyPatient>, OCKStoreError>) -> ()>') in a `@Sendable` closure; this is an error in the Swift 6 language mode
162 | guard let patients = patients as? [Patient] else {
163 | let message = "Failed to add patients. Not all patients were of the correct type: \(Patient.self)"
164 | callbackQueue.async { completion?(.failure(.addFailed(reason: message))) }
| |- warning: capture of 'completion' with non-sendable type 'OCKResultClosure<[any OCKAnyPatient]>?' (aka 'Optional<(Result<Array<any OCKAnyPatient>, OCKStoreError>) -> ()>') 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'
165 | return
166 | }
/Users/admin/builder/spi-builder-workspace/CareKitStore/CareKitStore/Protocols/Patients/OCKPatientStore.swift:173:35: warning: capture of 'completion' with non-sendable type 'OCKResultClosure<[any OCKAnyPatient]>?' (aka 'Optional<(Result<Array<any OCKAnyPatient>, OCKStoreError>) -> ()>') in a `@Sendable` closure; this is an error in the Swift 6 language mode
171 | guard let patients = patients as? [Patient] else {
172 | let message = "Failed to update patients. Not all patients were of the correct type: \(Patient.self)"
173 | callbackQueue.async { completion?(.failure(.updateFailed(reason: message))) }
| |- warning: capture of 'completion' with non-sendable type 'OCKResultClosure<[any OCKAnyPatient]>?' (aka 'Optional<(Result<Array<any OCKAnyPatient>, OCKStoreError>) -> ()>') 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'
174 | return
175 | }
/Users/admin/builder/spi-builder-workspace/CareKitStore/CareKitStore/Protocols/Patients/OCKPatientStore.swift:182:35: warning: capture of 'completion' with non-sendable type 'OCKResultClosure<[any OCKAnyPatient]>?' (aka 'Optional<(Result<Array<any OCKAnyPatient>, OCKStoreError>) -> ()>') in a `@Sendable` closure; this is an error in the Swift 6 language mode
180 | guard let patients = patients as? [Patient] else {
181 | let message = "Failed to delete patients. Not all patients were of the correct type: \(Patient.self)"
182 | callbackQueue.async { completion?(.failure(.deleteFailed(reason: message))) }
| |- warning: capture of 'completion' with non-sendable type 'OCKResultClosure<[any OCKAnyPatient]>?' (aka 'Optional<(Result<Array<any OCKAnyPatient>, OCKStoreError>) -> ()>') 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'
183 | return
184 | }
[86/154] Compiling CareKitStore OCKAnyPatientStore.swift
/Users/admin/builder/spi-builder-workspace/CareKitStore/CareKitStore/Protocols/Outcomes/OCKOutcomeStore.swift:155:35: warning: capture of 'completion' with non-sendable type 'OCKResultClosure<[any OCKAnyOutcome]>?' (aka 'Optional<(Result<Array<any OCKAnyOutcome>, OCKStoreError>) -> ()>') in a `@Sendable` closure; this is an error in the Swift 6 language mode
153 | guard let outcomes = outcomes as? [Outcome] else {
154 | let message = "Failed to add outcomes. Not all outcomes were the correct type, \(Outcome.self)."
155 | callbackQueue.async { completion?(.failure(.addFailed(reason: message))) }
| |- warning: capture of 'completion' with non-sendable type 'OCKResultClosure<[any OCKAnyOutcome]>?' (aka 'Optional<(Result<Array<any OCKAnyOutcome>, OCKStoreError>) -> ()>') 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'
156 | return
157 | }
/Users/admin/builder/spi-builder-workspace/CareKitStore/CareKitStore/Protocols/Outcomes/OCKOutcomeStore.swift:164:35: warning: capture of 'completion' with non-sendable type 'OCKResultClosure<[any OCKAnyOutcome]>?' (aka 'Optional<(Result<Array<any OCKAnyOutcome>, OCKStoreError>) -> ()>') in a `@Sendable` closure; this is an error in the Swift 6 language mode
162 | guard let outcomes = outcomes as? [Outcome] else {
163 | let message = "Failed to update outcomes. Not all outcomes were the correct type, \(Outcome.self)."
164 | callbackQueue.async { completion?(.failure(.updateFailed(reason: message))) }
| |- warning: capture of 'completion' with non-sendable type 'OCKResultClosure<[any OCKAnyOutcome]>?' (aka 'Optional<(Result<Array<any OCKAnyOutcome>, OCKStoreError>) -> ()>') 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'
165 | return
166 | }
/Users/admin/builder/spi-builder-workspace/CareKitStore/CareKitStore/Protocols/Outcomes/OCKOutcomeStore.swift:173:35: warning: capture of 'completion' with non-sendable type 'OCKResultClosure<[any OCKAnyOutcome]>?' (aka 'Optional<(Result<Array<any OCKAnyOutcome>, OCKStoreError>) -> ()>') in a `@Sendable` closure; this is an error in the Swift 6 language mode
171 | guard let outcomes = outcomes as? [Outcome] else {
172 | let message = "Failed to delete outcomes. Not all outcomes were the correct type, \(Outcome.self)."
173 | callbackQueue.async { completion?(.failure(.deleteFailed(reason: message))) }
| |- warning: capture of 'completion' with non-sendable type 'OCKResultClosure<[any OCKAnyOutcome]>?' (aka 'Optional<(Result<Array<any OCKAnyOutcome>, OCKStoreError>) -> ()>') 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'
174 | return
175 | }
/Users/admin/builder/spi-builder-workspace/CareKitStore/CareKitStore/Protocols/Patients/OCKPatientStore.swift:164:35: warning: capture of 'completion' with non-sendable type 'OCKResultClosure<[any OCKAnyPatient]>?' (aka 'Optional<(Result<Array<any OCKAnyPatient>, OCKStoreError>) -> ()>') in a `@Sendable` closure; this is an error in the Swift 6 language mode
162 | guard let patients = patients as? [Patient] else {
163 | let message = "Failed to add patients. Not all patients were of the correct type: \(Patient.self)"
164 | callbackQueue.async { completion?(.failure(.addFailed(reason: message))) }
| |- warning: capture of 'completion' with non-sendable type 'OCKResultClosure<[any OCKAnyPatient]>?' (aka 'Optional<(Result<Array<any OCKAnyPatient>, OCKStoreError>) -> ()>') 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'
165 | return
166 | }
/Users/admin/builder/spi-builder-workspace/CareKitStore/CareKitStore/Protocols/Patients/OCKPatientStore.swift:173:35: warning: capture of 'completion' with non-sendable type 'OCKResultClosure<[any OCKAnyPatient]>?' (aka 'Optional<(Result<Array<any OCKAnyPatient>, OCKStoreError>) -> ()>') in a `@Sendable` closure; this is an error in the Swift 6 language mode
171 | guard let patients = patients as? [Patient] else {
172 | let message = "Failed to update patients. Not all patients were of the correct type: \(Patient.self)"
173 | callbackQueue.async { completion?(.failure(.updateFailed(reason: message))) }
| |- warning: capture of 'completion' with non-sendable type 'OCKResultClosure<[any OCKAnyPatient]>?' (aka 'Optional<(Result<Array<any OCKAnyPatient>, OCKStoreError>) -> ()>') 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'
174 | return
175 | }
/Users/admin/builder/spi-builder-workspace/CareKitStore/CareKitStore/Protocols/Patients/OCKPatientStore.swift:182:35: warning: capture of 'completion' with non-sendable type 'OCKResultClosure<[any OCKAnyPatient]>?' (aka 'Optional<(Result<Array<any OCKAnyPatient>, OCKStoreError>) -> ()>') in a `@Sendable` closure; this is an error in the Swift 6 language mode
180 | guard let patients = patients as? [Patient] else {
181 | let message = "Failed to delete patients. Not all patients were of the correct type: \(Patient.self)"
182 | callbackQueue.async { completion?(.failure(.deleteFailed(reason: message))) }
| |- warning: capture of 'completion' with non-sendable type 'OCKResultClosure<[any OCKAnyPatient]>?' (aka 'Optional<(Result<Array<any OCKAnyPatient>, OCKStoreError>) -> ()>') 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'
183 | return
184 | }
[87/154] Compiling CareKitStore OCKPatientStore.swift
/Users/admin/builder/spi-builder-workspace/CareKitStore/CareKitStore/Protocols/Outcomes/OCKOutcomeStore.swift:155:35: warning: capture of 'completion' with non-sendable type 'OCKResultClosure<[any OCKAnyOutcome]>?' (aka 'Optional<(Result<Array<any OCKAnyOutcome>, OCKStoreError>) -> ()>') in a `@Sendable` closure; this is an error in the Swift 6 language mode
153 | guard let outcomes = outcomes as? [Outcome] else {
154 | let message = "Failed to add outcomes. Not all outcomes were the correct type, \(Outcome.self)."
155 | callbackQueue.async { completion?(.failure(.addFailed(reason: message))) }
| |- warning: capture of 'completion' with non-sendable type 'OCKResultClosure<[any OCKAnyOutcome]>?' (aka 'Optional<(Result<Array<any OCKAnyOutcome>, OCKStoreError>) -> ()>') 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'
156 | return
157 | }
/Users/admin/builder/spi-builder-workspace/CareKitStore/CareKitStore/Protocols/Outcomes/OCKOutcomeStore.swift:164:35: warning: capture of 'completion' with non-sendable type 'OCKResultClosure<[any OCKAnyOutcome]>?' (aka 'Optional<(Result<Array<any OCKAnyOutcome>, OCKStoreError>) -> ()>') in a `@Sendable` closure; this is an error in the Swift 6 language mode
162 | guard let outcomes = outcomes as? [Outcome] else {
163 | let message = "Failed to update outcomes. Not all outcomes were the correct type, \(Outcome.self)."
164 | callbackQueue.async { completion?(.failure(.updateFailed(reason: message))) }
| |- warning: capture of 'completion' with non-sendable type 'OCKResultClosure<[any OCKAnyOutcome]>?' (aka 'Optional<(Result<Array<any OCKAnyOutcome>, OCKStoreError>) -> ()>') 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'
165 | return
166 | }
/Users/admin/builder/spi-builder-workspace/CareKitStore/CareKitStore/Protocols/Outcomes/OCKOutcomeStore.swift:173:35: warning: capture of 'completion' with non-sendable type 'OCKResultClosure<[any OCKAnyOutcome]>?' (aka 'Optional<(Result<Array<any OCKAnyOutcome>, OCKStoreError>) -> ()>') in a `@Sendable` closure; this is an error in the Swift 6 language mode
171 | guard let outcomes = outcomes as? [Outcome] else {
172 | let message = "Failed to delete outcomes. Not all outcomes were the correct type, \(Outcome.self)."
173 | callbackQueue.async { completion?(.failure(.deleteFailed(reason: message))) }
| |- warning: capture of 'completion' with non-sendable type 'OCKResultClosure<[any OCKAnyOutcome]>?' (aka 'Optional<(Result<Array<any OCKAnyOutcome>, OCKStoreError>) -> ()>') 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'
174 | return
175 | }
/Users/admin/builder/spi-builder-workspace/CareKitStore/CareKitStore/Protocols/Patients/OCKPatientStore.swift:164:35: warning: capture of 'completion' with non-sendable type 'OCKResultClosure<[any OCKAnyPatient]>?' (aka 'Optional<(Result<Array<any OCKAnyPatient>, OCKStoreError>) -> ()>') in a `@Sendable` closure; this is an error in the Swift 6 language mode
162 | guard let patients = patients as? [Patient] else {
163 | let message = "Failed to add patients. Not all patients were of the correct type: \(Patient.self)"
164 | callbackQueue.async { completion?(.failure(.addFailed(reason: message))) }
| |- warning: capture of 'completion' with non-sendable type 'OCKResultClosure<[any OCKAnyPatient]>?' (aka 'Optional<(Result<Array<any OCKAnyPatient>, OCKStoreError>) -> ()>') 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'
165 | return
166 | }
/Users/admin/builder/spi-builder-workspace/CareKitStore/CareKitStore/Protocols/Patients/OCKPatientStore.swift:173:35: warning: capture of 'completion' with non-sendable type 'OCKResultClosure<[any OCKAnyPatient]>?' (aka 'Optional<(Result<Array<any OCKAnyPatient>, OCKStoreError>) -> ()>') in a `@Sendable` closure; this is an error in the Swift 6 language mode
171 | guard let patients = patients as? [Patient] else {
172 | let message = "Failed to update patients. Not all patients were of the correct type: \(Patient.self)"
173 | callbackQueue.async { completion?(.failure(.updateFailed(reason: message))) }
| |- warning: capture of 'completion' with non-sendable type 'OCKResultClosure<[any OCKAnyPatient]>?' (aka 'Optional<(Result<Array<any OCKAnyPatient>, OCKStoreError>) -> ()>') 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'
174 | return
175 | }
/Users/admin/builder/spi-builder-workspace/CareKitStore/CareKitStore/Protocols/Patients/OCKPatientStore.swift:182:35: warning: capture of 'completion' with non-sendable type 'OCKResultClosure<[any OCKAnyPatient]>?' (aka 'Optional<(Result<Array<any OCKAnyPatient>, OCKStoreError>) -> ()>') in a `@Sendable` closure; this is an error in the Swift 6 language mode
180 | guard let patients = patients as? [Patient] else {
181 | let message = "Failed to delete patients. Not all patients were of the correct type: \(Patient.self)"
182 | callbackQueue.async { completion?(.failure(.deleteFailed(reason: message))) }
| |- warning: capture of 'completion' with non-sendable type 'OCKResultClosure<[any OCKAnyPatient]>?' (aka 'Optional<(Result<Array<any OCKAnyPatient>, OCKStoreError>) -> ()>') 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'
183 | return
184 | }
[88/154] Compiling CareKitStore OCKPatientStoreDelegate.swift
/Users/admin/builder/spi-builder-workspace/CareKitStore/CareKitStore/Protocols/Outcomes/OCKOutcomeStore.swift:155:35: warning: capture of 'completion' with non-sendable type 'OCKResultClosure<[any OCKAnyOutcome]>?' (aka 'Optional<(Result<Array<any OCKAnyOutcome>, OCKStoreError>) -> ()>') in a `@Sendable` closure; this is an error in the Swift 6 language mode
153 | guard let outcomes = outcomes as? [Outcome] else {
154 | let message = "Failed to add outcomes. Not all outcomes were the correct type, \(Outcome.self)."
155 | callbackQueue.async { completion?(.failure(.addFailed(reason: message))) }
| |- warning: capture of 'completion' with non-sendable type 'OCKResultClosure<[any OCKAnyOutcome]>?' (aka 'Optional<(Result<Array<any OCKAnyOutcome>, OCKStoreError>) -> ()>') 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'
156 | return
157 | }
/Users/admin/builder/spi-builder-workspace/CareKitStore/CareKitStore/Protocols/Outcomes/OCKOutcomeStore.swift:164:35: warning: capture of 'completion' with non-sendable type 'OCKResultClosure<[any OCKAnyOutcome]>?' (aka 'Optional<(Result<Array<any OCKAnyOutcome>, OCKStoreError>) -> ()>') in a `@Sendable` closure; this is an error in the Swift 6 language mode
162 | guard let outcomes = outcomes as? [Outcome] else {
163 | let message = "Failed to update outcomes. Not all outcomes were the correct type, \(Outcome.self)."
164 | callbackQueue.async { completion?(.failure(.updateFailed(reason: message))) }
| |- warning: capture of 'completion' with non-sendable type 'OCKResultClosure<[any OCKAnyOutcome]>?' (aka 'Optional<(Result<Array<any OCKAnyOutcome>, OCKStoreError>) -> ()>') 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'
165 | return
166 | }
/Users/admin/builder/spi-builder-workspace/CareKitStore/CareKitStore/Protocols/Outcomes/OCKOutcomeStore.swift:173:35: warning: capture of 'completion' with non-sendable type 'OCKResultClosure<[any OCKAnyOutcome]>?' (aka 'Optional<(Result<Array<any OCKAnyOutcome>, OCKStoreError>) -> ()>') in a `@Sendable` closure; this is an error in the Swift 6 language mode
171 | guard let outcomes = outcomes as? [Outcome] else {
172 | let message = "Failed to delete outcomes. Not all outcomes were the correct type, \(Outcome.self)."
173 | callbackQueue.async { completion?(.failure(.deleteFailed(reason: message))) }
| |- warning: capture of 'completion' with non-sendable type 'OCKResultClosure<[any OCKAnyOutcome]>?' (aka 'Optional<(Result<Array<any OCKAnyOutcome>, OCKStoreError>) -> ()>') 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'
174 | return
175 | }
/Users/admin/builder/spi-builder-workspace/CareKitStore/CareKitStore/Protocols/Patients/OCKPatientStore.swift:164:35: warning: capture of 'completion' with non-sendable type 'OCKResultClosure<[any OCKAnyPatient]>?' (aka 'Optional<(Result<Array<any OCKAnyPatient>, OCKStoreError>) -> ()>') in a `@Sendable` closure; this is an error in the Swift 6 language mode
162 | guard let patients = patients as? [Patient] else {
163 | let message = "Failed to add patients. Not all patients were of the correct type: \(Patient.self)"
164 | callbackQueue.async { completion?(.failure(.addFailed(reason: message))) }
| |- warning: capture of 'completion' with non-sendable type 'OCKResultClosure<[any OCKAnyPatient]>?' (aka 'Optional<(Result<Array<any OCKAnyPatient>, OCKStoreError>) -> ()>') 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'
165 | return
166 | }
/Users/admin/builder/spi-builder-workspace/CareKitStore/CareKitStore/Protocols/Patients/OCKPatientStore.swift:173:35: warning: capture of 'completion' with non-sendable type 'OCKResultClosure<[any OCKAnyPatient]>?' (aka 'Optional<(Result<Array<any OCKAnyPatient>, OCKStoreError>) -> ()>') in a `@Sendable` closure; this is an error in the Swift 6 language mode
171 | guard let patients = patients as? [Patient] else {
172 | let message = "Failed to update patients. Not all patients were of the correct type: \(Patient.self)"
173 | callbackQueue.async { completion?(.failure(.updateFailed(reason: message))) }
| |- warning: capture of 'completion' with non-sendable type 'OCKResultClosure<[any OCKAnyPatient]>?' (aka 'Optional<(Result<Array<any OCKAnyPatient>, OCKStoreError>) -> ()>') 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'
174 | return
175 | }
/Users/admin/builder/spi-builder-workspace/CareKitStore/CareKitStore/Protocols/Patients/OCKPatientStore.swift:182:35: warning: capture of 'completion' with non-sendable type 'OCKResultClosure<[any OCKAnyPatient]>?' (aka 'Optional<(Result<Array<any OCKAnyPatient>, OCKStoreError>) -> ()>') in a `@Sendable` closure; this is an error in the Swift 6 language mode
180 | guard let patients = patients as? [Patient] else {
181 | let message = "Failed to delete patients. Not all patients were of the correct type: \(Patient.self)"
182 | callbackQueue.async { completion?(.failure(.deleteFailed(reason: message))) }
| |- warning: capture of 'completion' with non-sendable type 'OCKResultClosure<[any OCKAnyPatient]>?' (aka 'Optional<(Result<Array<any OCKAnyPatient>, OCKStoreError>) -> ()>') 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'
183 | return
184 | }
[89/154] Compiling CareKitStore OCKAnyTask.swift
/Users/admin/builder/spi-builder-workspace/CareKitStore/CareKitStore/Protocols/Outcomes/OCKOutcomeStore.swift:155:35: warning: capture of 'completion' with non-sendable type 'OCKResultClosure<[any OCKAnyOutcome]>?' (aka 'Optional<(Result<Array<any OCKAnyOutcome>, OCKStoreError>) -> ()>') in a `@Sendable` closure; this is an error in the Swift 6 language mode
153 | guard let outcomes = outcomes as? [Outcome] else {
154 | let message = "Failed to add outcomes. Not all outcomes were the correct type, \(Outcome.self)."
155 | callbackQueue.async { completion?(.failure(.addFailed(reason: message))) }
| |- warning: capture of 'completion' with non-sendable type 'OCKResultClosure<[any OCKAnyOutcome]>?' (aka 'Optional<(Result<Array<any OCKAnyOutcome>, OCKStoreError>) -> ()>') 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'
156 | return
157 | }
/Users/admin/builder/spi-builder-workspace/CareKitStore/CareKitStore/Protocols/Outcomes/OCKOutcomeStore.swift:164:35: warning: capture of 'completion' with non-sendable type 'OCKResultClosure<[any OCKAnyOutcome]>?' (aka 'Optional<(Result<Array<any OCKAnyOutcome>, OCKStoreError>) -> ()>') in a `@Sendable` closure; this is an error in the Swift 6 language mode
162 | guard let outcomes = outcomes as? [Outcome] else {
163 | let message = "Failed to update outcomes. Not all outcomes were the correct type, \(Outcome.self)."
164 | callbackQueue.async { completion?(.failure(.updateFailed(reason: message))) }
| |- warning: capture of 'completion' with non-sendable type 'OCKResultClosure<[any OCKAnyOutcome]>?' (aka 'Optional<(Result<Array<any OCKAnyOutcome>, OCKStoreError>) -> ()>') 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'
165 | return
166 | }
/Users/admin/builder/spi-builder-workspace/CareKitStore/CareKitStore/Protocols/Outcomes/OCKOutcomeStore.swift:173:35: warning: capture of 'completion' with non-sendable type 'OCKResultClosure<[any OCKAnyOutcome]>?' (aka 'Optional<(Result<Array<any OCKAnyOutcome>, OCKStoreError>) -> ()>') in a `@Sendable` closure; this is an error in the Swift 6 language mode
171 | guard let outcomes = outcomes as? [Outcome] else {
172 | let message = "Failed to delete outcomes. Not all outcomes were the correct type, \(Outcome.self)."
173 | callbackQueue.async { completion?(.failure(.deleteFailed(reason: message))) }
| |- warning: capture of 'completion' with non-sendable type 'OCKResultClosure<[any OCKAnyOutcome]>?' (aka 'Optional<(Result<Array<any OCKAnyOutcome>, OCKStoreError>) -> ()>') 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'
174 | return
175 | }
/Users/admin/builder/spi-builder-workspace/CareKitStore/CareKitStore/Protocols/Patients/OCKPatientStore.swift:164:35: warning: capture of 'completion' with non-sendable type 'OCKResultClosure<[any OCKAnyPatient]>?' (aka 'Optional<(Result<Array<any OCKAnyPatient>, OCKStoreError>) -> ()>') in a `@Sendable` closure; this is an error in the Swift 6 language mode
162 | guard let patients = patients as? [Patient] else {
163 | let message = "Failed to add patients. Not all patients were of the correct type: \(Patient.self)"
164 | callbackQueue.async { completion?(.failure(.addFailed(reason: message))) }
| |- warning: capture of 'completion' with non-sendable type 'OCKResultClosure<[any OCKAnyPatient]>?' (aka 'Optional<(Result<Array<any OCKAnyPatient>, OCKStoreError>) -> ()>') 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'
165 | return
166 | }
/Users/admin/builder/spi-builder-workspace/CareKitStore/CareKitStore/Protocols/Patients/OCKPatientStore.swift:173:35: warning: capture of 'completion' with non-sendable type 'OCKResultClosure<[any OCKAnyPatient]>?' (aka 'Optional<(Result<Array<any OCKAnyPatient>, OCKStoreError>) -> ()>') in a `@Sendable` closure; this is an error in the Swift 6 language mode
171 | guard let patients = patients as? [Patient] else {
172 | let message = "Failed to update patients. Not all patients were of the correct type: \(Patient.self)"
173 | callbackQueue.async { completion?(.failure(.updateFailed(reason: message))) }
| |- warning: capture of 'completion' with non-sendable type 'OCKResultClosure<[any OCKAnyPatient]>?' (aka 'Optional<(Result<Array<any OCKAnyPatient>, OCKStoreError>) -> ()>') 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'
174 | return
175 | }
/Users/admin/builder/spi-builder-workspace/CareKitStore/CareKitStore/Protocols/Patients/OCKPatientStore.swift:182:35: warning: capture of 'completion' with non-sendable type 'OCKResultClosure<[any OCKAnyPatient]>?' (aka 'Optional<(Result<Array<any OCKAnyPatient>, OCKStoreError>) -> ()>') in a `@Sendable` closure; this is an error in the Swift 6 language mode
180 | guard let patients = patients as? [Patient] else {
181 | let message = "Failed to delete patients. Not all patients were of the correct type: \(Patient.self)"
182 | callbackQueue.async { completion?(.failure(.deleteFailed(reason: message))) }
| |- warning: capture of 'completion' with non-sendable type 'OCKResultClosure<[any OCKAnyPatient]>?' (aka 'Optional<(Result<Array<any OCKAnyPatient>, OCKStoreError>) -> ()>') 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'
183 | return
184 | }
/Users/admin/builder/spi-builder-workspace/CareKitStore/CareKitStore/Protocols/Events/OCKAnyEventStore.swift:116:29: warning: capture of 'completion' with non-sendable type 'OCKResultClosure<[OCKAdherence]>' (aka '(Result<Array<OCKAdherence>, OCKStoreError>) -> ()') in a `@Sendable` closure; this is an error in the Swift 6 language mode
114 | if let error = error {
115 | callbackQueue.async {
116 | completion(.failure(.fetchFailed(reason: "Failed to fetch completion for tasks! \(error.localizedDescription)")))
| |- warning: capture of 'completion' with non-sendable type 'OCKResultClosure<[OCKAdherence]>' (aka '(Result<Array<OCKAdherence>, OCKStoreError>) -> ()') 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'
117 | }
118 | return
/Users/admin/builder/spi-builder-workspace/CareKitStore/CareKitStore/Protocols/Events/OCKAnyEventStore.swift:124:43: warning: capture of 'completion' with non-sendable type 'OCKResultClosure<[OCKAdherence]>' (aka '(Result<Array<OCKAdherence>, OCKStoreError>) -> ()') in a `@Sendable` closure; this is an error in the Swift 6 language mode
122 | let indicesWithTasks = self.datesWithTasks(query: query, tasks: tasks).enumerated().compactMap { $1 ? $0 : nil }
123 | indicesWithTasks.forEach { adherenceValues[$0] = query.aggregator.aggregate(events: groupedEvents[$0]) }
124 | callbackQueue.async { completion(.success(adherenceValues)) }
| |- warning: capture of 'completion' with non-sendable type 'OCKResultClosure<[OCKAdherence]>' (aka '(Result<Array<OCKAdherence>, OCKStoreError>) -> ()') 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'
125 | })
126 | }
/Users/admin/builder/spi-builder-workspace/CareKitStore/CareKitStore/Protocols/Events/OCKAnyEventStore.swift:124:63: warning: capture of 'adherenceValues' with non-sendable type '[OCKAdherence]' in a `@Sendable` closure; this is an error in the Swift 6 language mode
122 | let indicesWithTasks = self.datesWithTasks(query: query, tasks: tasks).enumerated().compactMap { $1 ? $0 : nil }
123 | indicesWithTasks.forEach { adherenceValues[$0] = query.aggregator.aggregate(events: groupedEvents[$0]) }
124 | callbackQueue.async { completion(.success(adherenceValues)) }
| `- warning: capture of 'adherenceValues' with non-sendable type '[OCKAdherence]' in a `@Sendable` closure; this is an error in the Swift 6 language mode
125 | })
126 | }
/Users/admin/builder/spi-builder-workspace/CareKitStore/CareKitStore/Structs/OCKAdherence.swift:34:13: note: consider making enum 'OCKAdherence' conform to the 'Sendable' protocol
32 |
33 | /// `OCKAdherence` specifies how many of their assigned tasks a patient has completed.
34 | public enum OCKAdherence: Equatable {
| `- note: consider making enum 'OCKAdherence' conform to the 'Sendable' protocol
35 | /// Indicates that there were no tasks scheduled anytime during the interval in which adherence was computed.
36 | case noTasks
/Users/admin/builder/spi-builder-workspace/CareKitStore/CareKitStore/Protocols/Events/OCKAnyEventStore.swift:124:63: warning: reference to captured var 'adherenceValues' in concurrently-executing code; this is an error in the Swift 6 language mode
122 | let indicesWithTasks = self.datesWithTasks(query: query, tasks: tasks).enumerated().compactMap { $1 ? $0 : nil }
123 | indicesWithTasks.forEach { adherenceValues[$0] = query.aggregator.aggregate(events: groupedEvents[$0]) }
124 | callbackQueue.async { completion(.success(adherenceValues)) }
| `- warning: reference to captured var 'adherenceValues' in concurrently-executing code; this is an error in the Swift 6 language mode
125 | })
126 | }
<unknown>:0: note: consider making generic parameter 'Self' conform to the 'Sendable' protocol
/Users/admin/builder/spi-builder-workspace/CareKitStore/CareKitStore/Protocols/Events/OCKEventStore.swift:72:57: warning: capture of 'self' with non-sendable type 'Self' in a `@Sendable` closure; this is an error in the Swift 6 language mode
70 | guard let typedTask = task as? Task else {
71 | callbackQueue.async {
72 | let message = "Store of type \(type(of: self)) cannot fetch event with task type \(type(of: task))."
| `- warning: capture of 'self' with non-sendable type 'Self' in a `@Sendable` closure; this is an error in the Swift 6 language mode
73 | completion(.failure(.fetchFailed(reason: message)))
74 | }
/Users/admin/builder/spi-builder-workspace/CareKitStore/CareKitStore/Protocols/Events/OCKEventStore.swift:72:109: warning: capture of 'task' with non-sendable type 'any OCKAnyTask' in a `@Sendable` closure; this is an error in the Swift 6 language mode
70 | guard let typedTask = task as? Task else {
71 | callbackQueue.async {
72 | let message = "Store of type \(type(of: self)) cannot fetch event with task type \(type(of: task))."
| `- warning: capture of 'task' with non-sendable type 'any OCKAnyTask' in a `@Sendable` closure; this is an error in the Swift 6 language mode
73 | completion(.failure(.fetchFailed(reason: message)))
74 | }
/Users/admin/builder/spi-builder-workspace/CareKitStore/CareKitStore/Protocols/Tasks/OCKAnyTask.swift:34:17: note: protocol 'OCKAnyTask' does not conform to the 'Sendable' protocol
32 |
33 | /// Conforming a type to `OCKAnyTask` allows it to be queried and displayed by CareKit.
34 | public protocol OCKAnyTask {
| `- note: protocol 'OCKAnyTask' does not conform to the 'Sendable' protocol
35 |
36 | /// A user-defined unique identifier, typically human readable.
/Users/admin/builder/spi-builder-workspace/CareKitStore/CareKitStore/Protocols/Events/OCKEventStore.swift:73:17: warning: capture of 'completion' with non-sendable type 'OCKResultClosure<OCKAnyEvent>' (aka '(Result<OCKAnyEvent, OCKStoreError>) -> ()') in a `@Sendable` closure; this is an error in the Swift 6 language mode
71 | callbackQueue.async {
72 | let message = "Store of type \(type(of: self)) cannot fetch event with task type \(type(of: task))."
73 | completion(.failure(.fetchFailed(reason: message)))
| |- warning: capture of 'completion' with non-sendable type 'OCKResultClosure<OCKAnyEvent>' (aka '(Result<OCKAnyEvent, OCKStoreError>) -> ()') 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'
74 | }
75 | return
/Users/admin/builder/spi-builder-workspace/CareKitStore/CareKitStore/Protocols/Events/OCKEventStore.swift:109:17: warning: capture of 'completion' with non-sendable type 'OCKResultClosure<Self.Event>' (aka '(Result<OCKEvent<Self.Task, OCKOutcome>, OCKStoreError>) -> ()') in a `@Sendable` closure; this is an error in the Swift 6 language mode
107 | callbackQueue.async {
108 | let message = "Cannot fetch events for a task that hasn't been persisted yet!"
109 | completion(.failure(.fetchFailed(reason: message)))
| |- warning: capture of 'completion' with non-sendable type 'OCKResultClosure<Self.Event>' (aka '(Result<OCKEvent<Self.Task, OCKOutcome>, OCKStoreError>) -> ()') 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'
110 | }
111 | return
/Users/admin/builder/spi-builder-workspace/CareKitStore/CareKitStore/Structs/OCKNote.swift:50:12: warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
48 | public internal(set) var updatedDate: Date?
49 | public internal(set) var schemaVersion: OCKSemanticVersion?
50 | public internal (set) var localDatabaseID: OCKLocalVersionID?
| `- warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
51 | public var groupIdentifier: String?
52 | public var tags: [String]?
/Users/admin/builder/spi-builder-workspace/CareKitStore/CareKitStore/Protocols/Events/OCKAnyEventStore.swift:116:29: warning: capture of 'completion' with non-sendable type 'OCKResultClosure<[OCKAdherence]>' (aka '(Result<Array<OCKAdherence>, OCKStoreError>) -> ()') in a `@Sendable` closure; this is an error in the Swift 6 language mode
114 | if let error = error {
115 | callbackQueue.async {
116 | completion(.failure(.fetchFailed(reason: "Failed to fetch completion for tasks! \(error.localizedDescription)")))
| |- warning: capture of 'completion' with non-sendable type 'OCKResultClosure<[OCKAdherence]>' (aka '(Result<Array<OCKAdherence>, OCKStoreError>) -> ()') 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'
117 | }
118 | return
/Users/admin/builder/spi-builder-workspace/CareKitStore/CareKitStore/Protocols/Events/OCKAnyEventStore.swift:124:43: warning: capture of 'completion' with non-sendable type 'OCKResultClosure<[OCKAdherence]>' (aka '(Result<Array<OCKAdherence>, OCKStoreError>) -> ()') in a `@Sendable` closure; this is an error in the Swift 6 language mode
122 | let indicesWithTasks = self.datesWithTasks(query: query, tasks: tasks).enumerated().compactMap { $1 ? $0 : nil }
123 | indicesWithTasks.forEach { adherenceValues[$0] = query.aggregator.aggregate(events: groupedEvents[$0]) }
124 | callbackQueue.async { completion(.success(adherenceValues)) }
| |- warning: capture of 'completion' with non-sendable type 'OCKResultClosure<[OCKAdherence]>' (aka '(Result<Array<OCKAdherence>, OCKStoreError>) -> ()') 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'
125 | })
126 | }
/Users/admin/builder/spi-builder-workspace/CareKitStore/CareKitStore/Protocols/Events/OCKAnyEventStore.swift:124:63: warning: capture of 'adherenceValues' with non-sendable type '[OCKAdherence]' in a `@Sendable` closure; this is an error in the Swift 6 language mode
122 | let indicesWithTasks = self.datesWithTasks(query: query, tasks: tasks).enumerated().compactMap { $1 ? $0 : nil }
123 | indicesWithTasks.forEach { adherenceValues[$0] = query.aggregator.aggregate(events: groupedEvents[$0]) }
124 | callbackQueue.async { completion(.success(adherenceValues)) }
| `- warning: capture of 'adherenceValues' with non-sendable type '[OCKAdherence]' in a `@Sendable` closure; this is an error in the Swift 6 language mode
125 | })
126 | }
/Users/admin/builder/spi-builder-workspace/CareKitStore/CareKitStore/Structs/OCKAdherence.swift:34:13: note: consider making enum 'OCKAdherence' conform to the 'Sendable' protocol
32 |
33 | /// `OCKAdherence` specifies how many of their assigned tasks a patient has completed.
34 | public enum OCKAdherence: Equatable {
| `- note: consider making enum 'OCKAdherence' conform to the 'Sendable' protocol
35 | /// Indicates that there were no tasks scheduled anytime during the interval in which adherence was computed.
36 | case noTasks
/Users/admin/builder/spi-builder-workspace/CareKitStore/CareKitStore/Protocols/Events/OCKAnyEventStore.swift:124:63: warning: reference to captured var 'adherenceValues' in concurrently-executing code; this is an error in the Swift 6 language mode
122 | let indicesWithTasks = self.datesWithTasks(query: query, tasks: tasks).enumerated().compactMap { $1 ? $0 : nil }
123 | indicesWithTasks.forEach { adherenceValues[$0] = query.aggregator.aggregate(events: groupedEvents[$0]) }
124 | callbackQueue.async { completion(.success(adherenceValues)) }
| `- warning: reference to captured var 'adherenceValues' in concurrently-executing code; this is an error in the Swift 6 language mode
125 | })
126 | }
<unknown>:0: note: consider making generic parameter 'Self' conform to the 'Sendable' protocol
/Users/admin/builder/spi-builder-workspace/CareKitStore/CareKitStore/Protocols/Events/OCKEventStore.swift:72:57: warning: capture of 'self' with non-sendable type 'Self' in a `@Sendable` closure; this is an error in the Swift 6 language mode
70 | guard let typedTask = task as? Task else {
71 | callbackQueue.async {
72 | let message = "Store of type \(type(of: self)) cannot fetch event with task type \(type(of: task))."
| `- warning: capture of 'self' with non-sendable type 'Self' in a `@Sendable` closure; this is an error in the Swift 6 language mode
73 | completion(.failure(.fetchFailed(reason: message)))
74 | }
/Users/admin/builder/spi-builder-workspace/CareKitStore/CareKitStore/Protocols/Events/OCKEventStore.swift:72:109: warning: capture of 'task' with non-sendable type 'any OCKAnyTask' in a `@Sendable` closure; this is an error in the Swift 6 language mode
70 | guard let typedTask = task as? Task else {
71 | callbackQueue.async {
72 | let message = "Store of type \(type(of: self)) cannot fetch event with task type \(type(of: task))."
| `- warning: capture of 'task' with non-sendable type 'any OCKAnyTask' in a `@Sendable` closure; this is an error in the Swift 6 language mode
73 | completion(.failure(.fetchFailed(reason: message)))
74 | }
/Users/admin/builder/spi-builder-workspace/CareKitStore/CareKitStore/Protocols/Tasks/OCKAnyTask.swift:34:17: note: protocol 'OCKAnyTask' does not conform to the 'Sendable' protocol
32 |
33 | /// Conforming a type to `OCKAnyTask` allows it to be queried and displayed by CareKit.
34 | public protocol OCKAnyTask {
| `- note: protocol 'OCKAnyTask' does not conform to the 'Sendable' protocol
35 |
36 | /// A user-defined unique identifier, typically human readable.
/Users/admin/builder/spi-builder-workspace/CareKitStore/CareKitStore/Protocols/Events/OCKEventStore.swift:73:17: warning: capture of 'completion' with non-sendable type 'OCKResultClosure<OCKAnyEvent>' (aka '(Result<OCKAnyEvent, OCKStoreError>) -> ()') in a `@Sendable` closure; this is an error in the Swift 6 language mode
71 | callbackQueue.async {
72 | let message = "Store of type \(type(of: self)) cannot fetch event with task type \(type(of: task))."
73 | completion(.failure(.fetchFailed(reason: message)))
| |- warning: capture of 'completion' with non-sendable type 'OCKResultClosure<OCKAnyEvent>' (aka '(Result<OCKAnyEvent, OCKStoreError>) -> ()') 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'
74 | }
75 | return
/Users/admin/builder/spi-builder-workspace/CareKitStore/CareKitStore/Protocols/Events/OCKEventStore.swift:109:17: warning: capture of 'completion' with non-sendable type 'OCKResultClosure<Self.Event>' (aka '(Result<OCKEvent<Self.Task, OCKOutcome>, OCKStoreError>) -> ()') in a `@Sendable` closure; this is an error in the Swift 6 language mode
107 | callbackQueue.async {
108 | let message = "Cannot fetch events for a task that hasn't been persisted yet!"
109 | completion(.failure(.fetchFailed(reason: message)))
| |- warning: capture of 'completion' with non-sendable type 'OCKResultClosure<Self.Event>' (aka '(Result<OCKEvent<Self.Task, OCKOutcome>, OCKStoreError>) -> ()') 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'
110 | }
111 | return
/Users/admin/builder/spi-builder-workspace/CareKitStore/CareKitStore/Structs/OCKNote.swift:50:12: warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
48 | public internal(set) var updatedDate: Date?
49 | public internal(set) var schemaVersion: OCKSemanticVersion?
50 | public internal (set) var localDatabaseID: OCKLocalVersionID?
| `- warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
51 | public var groupIdentifier: String?
52 | public var tags: [String]?
/Users/admin/builder/spi-builder-workspace/CareKitStore/CareKitStore/Protocols/Events/OCKAnyEventStore.swift:116:29: warning: capture of 'completion' with non-sendable type 'OCKResultClosure<[OCKAdherence]>' (aka '(Result<Array<OCKAdherence>, OCKStoreError>) -> ()') in a `@Sendable` closure; this is an error in the Swift 6 language mode
114 | if let error = error {
115 | callbackQueue.async {
116 | completion(.failure(.fetchFailed(reason: "Failed to fetch completion for tasks! \(error.localizedDescription)")))
| |- warning: capture of 'completion' with non-sendable type 'OCKResultClosure<[OCKAdherence]>' (aka '(Result<Array<OCKAdherence>, OCKStoreError>) -> ()') 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'
117 | }
118 | return
/Users/admin/builder/spi-builder-workspace/CareKitStore/CareKitStore/Protocols/Events/OCKAnyEventStore.swift:124:43: warning: capture of 'completion' with non-sendable type 'OCKResultClosure<[OCKAdherence]>' (aka '(Result<Array<OCKAdherence>, OCKStoreError>) -> ()') in a `@Sendable` closure; this is an error in the Swift 6 language mode
122 | let indicesWithTasks = self.datesWithTasks(query: query, tasks: tasks).enumerated().compactMap { $1 ? $0 : nil }
123 | indicesWithTasks.forEach { adherenceValues[$0] = query.aggregator.aggregate(events: groupedEvents[$0]) }
124 | callbackQueue.async { completion(.success(adherenceValues)) }
| |- warning: capture of 'completion' with non-sendable type 'OCKResultClosure<[OCKAdherence]>' (aka '(Result<Array<OCKAdherence>, OCKStoreError>) -> ()') 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'
125 | })
126 | }
/Users/admin/builder/spi-builder-workspace/CareKitStore/CareKitStore/Protocols/Events/OCKAnyEventStore.swift:124:63: warning: capture of 'adherenceValues' with non-sendable type '[OCKAdherence]' in a `@Sendable` closure; this is an error in the Swift 6 language mode
122 | let indicesWithTasks = self.datesWithTasks(query: query, tasks: tasks).enumerated().compactMap { $1 ? $0 : nil }
123 | indicesWithTasks.forEach { adherenceValues[$0] = query.aggregator.aggregate(events: groupedEvents[$0]) }
124 | callbackQueue.async { completion(.success(adherenceValues)) }
| `- warning: capture of 'adherenceValues' with non-sendable type '[OCKAdherence]' in a `@Sendable` closure; this is an error in the Swift 6 language mode
125 | })
126 | }
/Users/admin/builder/spi-builder-workspace/CareKitStore/CareKitStore/Structs/OCKAdherence.swift:34:13: note: consider making enum 'OCKAdherence' conform to the 'Sendable' protocol
32 |
33 | /// `OCKAdherence` specifies how many of their assigned tasks a patient has completed.
34 | public enum OCKAdherence: Equatable {
| `- note: consider making enum 'OCKAdherence' conform to the 'Sendable' protocol
35 | /// Indicates that there were no tasks scheduled anytime during the interval in which adherence was computed.
36 | case noTasks
/Users/admin/builder/spi-builder-workspace/CareKitStore/CareKitStore/Protocols/Events/OCKAnyEventStore.swift:124:63: warning: reference to captured var 'adherenceValues' in concurrently-executing code; this is an error in the Swift 6 language mode
122 | let indicesWithTasks = self.datesWithTasks(query: query, tasks: tasks).enumerated().compactMap { $1 ? $0 : nil }
123 | indicesWithTasks.forEach { adherenceValues[$0] = query.aggregator.aggregate(events: groupedEvents[$0]) }
124 | callbackQueue.async { completion(.success(adherenceValues)) }
| `- warning: reference to captured var 'adherenceValues' in concurrently-executing code; this is an error in the Swift 6 language mode
125 | })
126 | }
<unknown>:0: note: consider making generic parameter 'Self' conform to the 'Sendable' protocol
/Users/admin/builder/spi-builder-workspace/CareKitStore/CareKitStore/Protocols/Events/OCKEventStore.swift:72:57: warning: capture of 'self' with non-sendable type 'Self' in a `@Sendable` closure; this is an error in the Swift 6 language mode
70 | guard let typedTask = task as? Task else {
71 | callbackQueue.async {
72 | let message = "Store of type \(type(of: self)) cannot fetch event with task type \(type(of: task))."
| `- warning: capture of 'self' with non-sendable type 'Self' in a `@Sendable` closure; this is an error in the Swift 6 language mode
73 | completion(.failure(.fetchFailed(reason: message)))
74 | }
/Users/admin/builder/spi-builder-workspace/CareKitStore/CareKitStore/Protocols/Events/OCKEventStore.swift:72:109: warning: capture of 'task' with non-sendable type 'any OCKAnyTask' in a `@Sendable` closure; this is an error in the Swift 6 language mode
70 | guard let typedTask = task as? Task else {
71 | callbackQueue.async {
72 | let message = "Store of type \(type(of: self)) cannot fetch event with task type \(type(of: task))."
| `- warning: capture of 'task' with non-sendable type 'any OCKAnyTask' in a `@Sendable` closure; this is an error in the Swift 6 language mode
73 | completion(.failure(.fetchFailed(reason: message)))
74 | }
/Users/admin/builder/spi-builder-workspace/CareKitStore/CareKitStore/Protocols/Tasks/OCKAnyTask.swift:34:17: note: protocol 'OCKAnyTask' does not conform to the 'Sendable' protocol
32 |
33 | /// Conforming a type to `OCKAnyTask` allows it to be queried and displayed by CareKit.
34 | public protocol OCKAnyTask {
| `- note: protocol 'OCKAnyTask' does not conform to the 'Sendable' protocol
35 |
36 | /// A user-defined unique identifier, typically human readable.
/Users/admin/builder/spi-builder-workspace/CareKitStore/CareKitStore/Protocols/Events/OCKEventStore.swift:73:17: warning: capture of 'completion' with non-sendable type 'OCKResultClosure<OCKAnyEvent>' (aka '(Result<OCKAnyEvent, OCKStoreError>) -> ()') in a `@Sendable` closure; this is an error in the Swift 6 language mode
71 | callbackQueue.async {
72 | let message = "Store of type \(type(of: self)) cannot fetch event with task type \(type(of: task))."
73 | completion(.failure(.fetchFailed(reason: message)))
| |- warning: capture of 'completion' with non-sendable type 'OCKResultClosure<OCKAnyEvent>' (aka '(Result<OCKAnyEvent, OCKStoreError>) -> ()') 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'
74 | }
75 | return
/Users/admin/builder/spi-builder-workspace/CareKitStore/CareKitStore/Protocols/Events/OCKEventStore.swift:109:17: warning: capture of 'completion' with non-sendable type 'OCKResultClosure<Self.Event>' (aka '(Result<OCKEvent<Self.Task, OCKOutcome>, OCKStoreError>) -> ()') in a `@Sendable` closure; this is an error in the Swift 6 language mode
107 | callbackQueue.async {
108 | let message = "Cannot fetch events for a task that hasn't been persisted yet!"
109 | completion(.failure(.fetchFailed(reason: message)))
| |- warning: capture of 'completion' with non-sendable type 'OCKResultClosure<Self.Event>' (aka '(Result<OCKEvent<Self.Task, OCKOutcome>, OCKStoreError>) -> ()') 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'
110 | }
111 | return
/Users/admin/builder/spi-builder-workspace/CareKitStore/CareKitStore/Structs/OCKNote.swift:50:12: warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
48 | public internal(set) var updatedDate: Date?
49 | public internal(set) var schemaVersion: OCKSemanticVersion?
50 | public internal (set) var localDatabaseID: OCKLocalVersionID?
| `- warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
51 | public var groupIdentifier: String?
52 | public var tags: [String]?
/Users/admin/builder/spi-builder-workspace/CareKitStore/CareKitStore/Protocols/Events/OCKAnyEventStore.swift:116:29: warning: capture of 'completion' with non-sendable type 'OCKResultClosure<[OCKAdherence]>' (aka '(Result<Array<OCKAdherence>, OCKStoreError>) -> ()') in a `@Sendable` closure; this is an error in the Swift 6 language mode
114 | if let error = error {
115 | callbackQueue.async {
116 | completion(.failure(.fetchFailed(reason: "Failed to fetch completion for tasks! \(error.localizedDescription)")))
| |- warning: capture of 'completion' with non-sendable type 'OCKResultClosure<[OCKAdherence]>' (aka '(Result<Array<OCKAdherence>, OCKStoreError>) -> ()') 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'
117 | }
118 | return
/Users/admin/builder/spi-builder-workspace/CareKitStore/CareKitStore/Protocols/Events/OCKAnyEventStore.swift:124:43: warning: capture of 'completion' with non-sendable type 'OCKResultClosure<[OCKAdherence]>' (aka '(Result<Array<OCKAdherence>, OCKStoreError>) -> ()') in a `@Sendable` closure; this is an error in the Swift 6 language mode
122 | let indicesWithTasks = self.datesWithTasks(query: query, tasks: tasks).enumerated().compactMap { $1 ? $0 : nil }
123 | indicesWithTasks.forEach { adherenceValues[$0] = query.aggregator.aggregate(events: groupedEvents[$0]) }
124 | callbackQueue.async { completion(.success(adherenceValues)) }
| |- warning: capture of 'completion' with non-sendable type 'OCKResultClosure<[OCKAdherence]>' (aka '(Result<Array<OCKAdherence>, OCKStoreError>) -> ()') 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'
125 | })
126 | }
/Users/admin/builder/spi-builder-workspace/CareKitStore/CareKitStore/Protocols/Events/OCKAnyEventStore.swift:124:63: warning: capture of 'adherenceValues' with non-sendable type '[OCKAdherence]' in a `@Sendable` closure; this is an error in the Swift 6 language mode
122 | let indicesWithTasks = self.datesWithTasks(query: query, tasks: tasks).enumerated().compactMap { $1 ? $0 : nil }
123 | indicesWithTasks.forEach { adherenceValues[$0] = query.aggregator.aggregate(events: groupedEvents[$0]) }
124 | callbackQueue.async { completion(.success(adherenceValues)) }
| `- warning: capture of 'adherenceValues' with non-sendable type '[OCKAdherence]' in a `@Sendable` closure; this is an error in the Swift 6 language mode
125 | })
126 | }
/Users/admin/builder/spi-builder-workspace/CareKitStore/CareKitStore/Structs/OCKAdherence.swift:34:13: note: consider making enum 'OCKAdherence' conform to the 'Sendable' protocol
32 |
33 | /// `OCKAdherence` specifies how many of their assigned tasks a patient has completed.
34 | public enum OCKAdherence: Equatable {
| `- note: consider making enum 'OCKAdherence' conform to the 'Sendable' protocol
35 | /// Indicates that there were no tasks scheduled anytime during the interval in which adherence was computed.
36 | case noTasks
/Users/admin/builder/spi-builder-workspace/CareKitStore/CareKitStore/Protocols/Events/OCKAnyEventStore.swift:124:63: warning: reference to captured var 'adherenceValues' in concurrently-executing code; this is an error in the Swift 6 language mode
122 | let indicesWithTasks = self.datesWithTasks(query: query, tasks: tasks).enumerated().compactMap { $1 ? $0 : nil }
123 | indicesWithTasks.forEach { adherenceValues[$0] = query.aggregator.aggregate(events: groupedEvents[$0]) }
124 | callbackQueue.async { completion(.success(adherenceValues)) }
| `- warning: reference to captured var 'adherenceValues' in concurrently-executing code; this is an error in the Swift 6 language mode
125 | })
126 | }
<unknown>:0: note: consider making generic parameter 'Self' conform to the 'Sendable' protocol
/Users/admin/builder/spi-builder-workspace/CareKitStore/CareKitStore/Protocols/Events/OCKEventStore.swift:72:57: warning: capture of 'self' with non-sendable type 'Self' in a `@Sendable` closure; this is an error in the Swift 6 language mode
70 | guard let typedTask = task as? Task else {
71 | callbackQueue.async {
72 | let message = "Store of type \(type(of: self)) cannot fetch event with task type \(type(of: task))."
| `- warning: capture of 'self' with non-sendable type 'Self' in a `@Sendable` closure; this is an error in the Swift 6 language mode
73 | completion(.failure(.fetchFailed(reason: message)))
74 | }
/Users/admin/builder/spi-builder-workspace/CareKitStore/CareKitStore/Protocols/Events/OCKEventStore.swift:72:109: warning: capture of 'task' with non-sendable type 'any OCKAnyTask' in a `@Sendable` closure; this is an error in the Swift 6 language mode
70 | guard let typedTask = task as? Task else {
71 | callbackQueue.async {
72 | let message = "Store of type \(type(of: self)) cannot fetch event with task type \(type(of: task))."
| `- warning: capture of 'task' with non-sendable type 'any OCKAnyTask' in a `@Sendable` closure; this is an error in the Swift 6 language mode
73 | completion(.failure(.fetchFailed(reason: message)))
74 | }
/Users/admin/builder/spi-builder-workspace/CareKitStore/CareKitStore/Protocols/Tasks/OCKAnyTask.swift:34:17: note: protocol 'OCKAnyTask' does not conform to the 'Sendable' protocol
32 |
33 | /// Conforming a type to `OCKAnyTask` allows it to be queried and displayed by CareKit.
34 | public protocol OCKAnyTask {
| `- note: protocol 'OCKAnyTask' does not conform to the 'Sendable' protocol
35 |
36 | /// A user-defined unique identifier, typically human readable.
/Users/admin/builder/spi-builder-workspace/CareKitStore/CareKitStore/Protocols/Events/OCKEventStore.swift:73:17: warning: capture of 'completion' with non-sendable type 'OCKResultClosure<OCKAnyEvent>' (aka '(Result<OCKAnyEvent, OCKStoreError>) -> ()') in a `@Sendable` closure; this is an error in the Swift 6 language mode
71 | callbackQueue.async {
72 | let message = "Store of type \(type(of: self)) cannot fetch event with task type \(type(of: task))."
73 | completion(.failure(.fetchFailed(reason: message)))
| |- warning: capture of 'completion' with non-sendable type 'OCKResultClosure<OCKAnyEvent>' (aka '(Result<OCKAnyEvent, OCKStoreError>) -> ()') 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'
74 | }
75 | return
/Users/admin/builder/spi-builder-workspace/CareKitStore/CareKitStore/Protocols/Events/OCKEventStore.swift:109:17: warning: capture of 'completion' with non-sendable type 'OCKResultClosure<Self.Event>' (aka '(Result<OCKEvent<Self.Task, OCKOutcome>, OCKStoreError>) -> ()') in a `@Sendable` closure; this is an error in the Swift 6 language mode
107 | callbackQueue.async {
108 | let message = "Cannot fetch events for a task that hasn't been persisted yet!"
109 | completion(.failure(.fetchFailed(reason: message)))
| |- warning: capture of 'completion' with non-sendable type 'OCKResultClosure<Self.Event>' (aka '(Result<OCKEvent<Self.Task, OCKOutcome>, OCKStoreError>) -> ()') 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'
110 | }
111 | return
/Users/admin/builder/spi-builder-workspace/CareKitStore/CareKitStore/Structs/OCKNote.swift:50:12: warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
48 | public internal(set) var updatedDate: Date?
49 | public internal(set) var schemaVersion: OCKSemanticVersion?
50 | public internal (set) var localDatabaseID: OCKLocalVersionID?
| `- warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
51 | public var groupIdentifier: String?
52 | public var tags: [String]?
/Users/admin/builder/spi-builder-workspace/CareKitStore/CareKitStore/Protocols/Events/OCKAnyEventStore.swift:116:29: warning: capture of 'completion' with non-sendable type 'OCKResultClosure<[OCKAdherence]>' (aka '(Result<Array<OCKAdherence>, OCKStoreError>) -> ()') in a `@Sendable` closure; this is an error in the Swift 6 language mode
114 | if let error = error {
115 | callbackQueue.async {
116 | completion(.failure(.fetchFailed(reason: "Failed to fetch completion for tasks! \(error.localizedDescription)")))
| |- warning: capture of 'completion' with non-sendable type 'OCKResultClosure<[OCKAdherence]>' (aka '(Result<Array<OCKAdherence>, OCKStoreError>) -> ()') 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'
117 | }
118 | return
/Users/admin/builder/spi-builder-workspace/CareKitStore/CareKitStore/Protocols/Events/OCKAnyEventStore.swift:124:43: warning: capture of 'completion' with non-sendable type 'OCKResultClosure<[OCKAdherence]>' (aka '(Result<Array<OCKAdherence>, OCKStoreError>) -> ()') in a `@Sendable` closure; this is an error in the Swift 6 language mode
122 | let indicesWithTasks = self.datesWithTasks(query: query, tasks: tasks).enumerated().compactMap { $1 ? $0 : nil }
123 | indicesWithTasks.forEach { adherenceValues[$0] = query.aggregator.aggregate(events: groupedEvents[$0]) }
124 | callbackQueue.async { completion(.success(adherenceValues)) }
| |- warning: capture of 'completion' with non-sendable type 'OCKResultClosure<[OCKAdherence]>' (aka '(Result<Array<OCKAdherence>, OCKStoreError>) -> ()') 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'
125 | })
126 | }
/Users/admin/builder/spi-builder-workspace/CareKitStore/CareKitStore/Protocols/Events/OCKAnyEventStore.swift:124:63: warning: capture of 'adherenceValues' with non-sendable type '[OCKAdherence]' in a `@Sendable` closure; this is an error in the Swift 6 language mode
122 | let indicesWithTasks = self.datesWithTasks(query: query, tasks: tasks).enumerated().compactMap { $1 ? $0 : nil }
123 | indicesWithTasks.forEach { adherenceValues[$0] = query.aggregator.aggregate(events: groupedEvents[$0]) }
124 | callbackQueue.async { completion(.success(adherenceValues)) }
| `- warning: capture of 'adherenceValues' with non-sendable type '[OCKAdherence]' in a `@Sendable` closure; this is an error in the Swift 6 language mode
125 | })
126 | }
/Users/admin/builder/spi-builder-workspace/CareKitStore/CareKitStore/Structs/OCKAdherence.swift:34:13: note: consider making enum 'OCKAdherence' conform to the 'Sendable' protocol
32 |
33 | /// `OCKAdherence` specifies how many of their assigned tasks a patient has completed.
34 | public enum OCKAdherence: Equatable {
| `- note: consider making enum 'OCKAdherence' conform to the 'Sendable' protocol
35 | /// Indicates that there were no tasks scheduled anytime during the interval in which adherence was computed.
36 | case noTasks
/Users/admin/builder/spi-builder-workspace/CareKitStore/CareKitStore/Protocols/Events/OCKAnyEventStore.swift:124:63: warning: reference to captured var 'adherenceValues' in concurrently-executing code; this is an error in the Swift 6 language mode
122 | let indicesWithTasks = self.datesWithTasks(query: query, tasks: tasks).enumerated().compactMap { $1 ? $0 : nil }
123 | indicesWithTasks.forEach { adherenceValues[$0] = query.aggregator.aggregate(events: groupedEvents[$0]) }
124 | callbackQueue.async { completion(.success(adherenceValues)) }
| `- warning: reference to captured var 'adherenceValues' in concurrently-executing code; this is an error in the Swift 6 language mode
125 | })
126 | }
<unknown>:0: note: consider making generic parameter 'Self' conform to the 'Sendable' protocol
/Users/admin/builder/spi-builder-workspace/CareKitStore/CareKitStore/Protocols/Events/OCKEventStore.swift:72:57: warning: capture of 'self' with non-sendable type 'Self' in a `@Sendable` closure; this is an error in the Swift 6 language mode
70 | guard let typedTask = task as? Task else {
71 | callbackQueue.async {
72 | let message = "Store of type \(type(of: self)) cannot fetch event with task type \(type(of: task))."
| `- warning: capture of 'self' with non-sendable type 'Self' in a `@Sendable` closure; this is an error in the Swift 6 language mode
73 | completion(.failure(.fetchFailed(reason: message)))
74 | }
/Users/admin/builder/spi-builder-workspace/CareKitStore/CareKitStore/Protocols/Events/OCKEventStore.swift:72:109: warning: capture of 'task' with non-sendable type 'any OCKAnyTask' in a `@Sendable` closure; this is an error in the Swift 6 language mode
70 | guard let typedTask = task as? Task else {
71 | callbackQueue.async {
72 | let message = "Store of type \(type(of: self)) cannot fetch event with task type \(type(of: task))."
| `- warning: capture of 'task' with non-sendable type 'any OCKAnyTask' in a `@Sendable` closure; this is an error in the Swift 6 language mode
73 | completion(.failure(.fetchFailed(reason: message)))
74 | }
/Users/admin/builder/spi-builder-workspace/CareKitStore/CareKitStore/Protocols/Tasks/OCKAnyTask.swift:34:17: note: protocol 'OCKAnyTask' does not conform to the 'Sendable' protocol
32 |
33 | /// Conforming a type to `OCKAnyTask` allows it to be queried and displayed by CareKit.
34 | public protocol OCKAnyTask {
| `- note: protocol 'OCKAnyTask' does not conform to the 'Sendable' protocol
35 |
36 | /// A user-defined unique identifier, typically human readable.
/Users/admin/builder/spi-builder-workspace/CareKitStore/CareKitStore/Protocols/Events/OCKEventStore.swift:73:17: warning: capture of 'completion' with non-sendable type 'OCKResultClosure<OCKAnyEvent>' (aka '(Result<OCKAnyEvent, OCKStoreError>) -> ()') in a `@Sendable` closure; this is an error in the Swift 6 language mode
71 | callbackQueue.async {
72 | let message = "Store of type \(type(of: self)) cannot fetch event with task type \(type(of: task))."
73 | completion(.failure(.fetchFailed(reason: message)))
| |- warning: capture of 'completion' with non-sendable type 'OCKResultClosure<OCKAnyEvent>' (aka '(Result<OCKAnyEvent, OCKStoreError>) -> ()') 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'
74 | }
75 | return
/Users/admin/builder/spi-builder-workspace/CareKitStore/CareKitStore/Protocols/Events/OCKEventStore.swift:109:17: warning: capture of 'completion' with non-sendable type 'OCKResultClosure<Self.Event>' (aka '(Result<OCKEvent<Self.Task, OCKOutcome>, OCKStoreError>) -> ()') in a `@Sendable` closure; this is an error in the Swift 6 language mode
107 | callbackQueue.async {
108 | let message = "Cannot fetch events for a task that hasn't been persisted yet!"
109 | completion(.failure(.fetchFailed(reason: message)))
| |- warning: capture of 'completion' with non-sendable type 'OCKResultClosure<Self.Event>' (aka '(Result<OCKEvent<Self.Task, OCKOutcome>, OCKStoreError>) -> ()') 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'
110 | }
111 | return
/Users/admin/builder/spi-builder-workspace/CareKitStore/CareKitStore/Structs/OCKNote.swift:50:12: warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
48 | public internal(set) var updatedDate: Date?
49 | public internal(set) var schemaVersion: OCKSemanticVersion?
50 | public internal (set) var localDatabaseID: OCKLocalVersionID?
| `- warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
51 | public var groupIdentifier: String?
52 | public var tags: [String]?
[95/154] Compiling CareKitStore OCKStoreProtocol+Synchronous.swift
/Users/admin/builder/spi-builder-workspace/CareKitStore/CareKitStore/Protocols/Events/OCKAnyEventStore.swift:116:29: warning: capture of 'completion' with non-sendable type 'OCKResultClosure<[OCKAdherence]>' (aka '(Result<Array<OCKAdherence>, OCKStoreError>) -> ()') in a `@Sendable` closure; this is an error in the Swift 6 language mode
114 | if let error = error {
115 | callbackQueue.async {
116 | completion(.failure(.fetchFailed(reason: "Failed to fetch completion for tasks! \(error.localizedDescription)")))
| |- warning: capture of 'completion' with non-sendable type 'OCKResultClosure<[OCKAdherence]>' (aka '(Result<Array<OCKAdherence>, OCKStoreError>) -> ()') 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'
117 | }
118 | return
/Users/admin/builder/spi-builder-workspace/CareKitStore/CareKitStore/Protocols/Events/OCKAnyEventStore.swift:124:43: warning: capture of 'completion' with non-sendable type 'OCKResultClosure<[OCKAdherence]>' (aka '(Result<Array<OCKAdherence>, OCKStoreError>) -> ()') in a `@Sendable` closure; this is an error in the Swift 6 language mode
122 | let indicesWithTasks = self.datesWithTasks(query: query, tasks: tasks).enumerated().compactMap { $1 ? $0 : nil }
123 | indicesWithTasks.forEach { adherenceValues[$0] = query.aggregator.aggregate(events: groupedEvents[$0]) }
124 | callbackQueue.async { completion(.success(adherenceValues)) }
| |- warning: capture of 'completion' with non-sendable type 'OCKResultClosure<[OCKAdherence]>' (aka '(Result<Array<OCKAdherence>, OCKStoreError>) -> ()') 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'
125 | })
126 | }
/Users/admin/builder/spi-builder-workspace/CareKitStore/CareKitStore/Protocols/Events/OCKAnyEventStore.swift:124:63: warning: capture of 'adherenceValues' with non-sendable type '[OCKAdherence]' in a `@Sendable` closure; this is an error in the Swift 6 language mode
122 | let indicesWithTasks = self.datesWithTasks(query: query, tasks: tasks).enumerated().compactMap { $1 ? $0 : nil }
123 | indicesWithTasks.forEach { adherenceValues[$0] = query.aggregator.aggregate(events: groupedEvents[$0]) }
124 | callbackQueue.async { completion(.success(adherenceValues)) }
| `- warning: capture of 'adherenceValues' with non-sendable type '[OCKAdherence]' in a `@Sendable` closure; this is an error in the Swift 6 language mode
125 | })
126 | }
/Users/admin/builder/spi-builder-workspace/CareKitStore/CareKitStore/Structs/OCKAdherence.swift:34:13: note: consider making enum 'OCKAdherence' conform to the 'Sendable' protocol
32 |
33 | /// `OCKAdherence` specifies how many of their assigned tasks a patient has completed.
34 | public enum OCKAdherence: Equatable {
| `- note: consider making enum 'OCKAdherence' conform to the 'Sendable' protocol
35 | /// Indicates that there were no tasks scheduled anytime during the interval in which adherence was computed.
36 | case noTasks
/Users/admin/builder/spi-builder-workspace/CareKitStore/CareKitStore/Protocols/Events/OCKAnyEventStore.swift:124:63: warning: reference to captured var 'adherenceValues' in concurrently-executing code; this is an error in the Swift 6 language mode
122 | let indicesWithTasks = self.datesWithTasks(query: query, tasks: tasks).enumerated().compactMap { $1 ? $0 : nil }
123 | indicesWithTasks.forEach { adherenceValues[$0] = query.aggregator.aggregate(events: groupedEvents[$0]) }
124 | callbackQueue.async { completion(.success(adherenceValues)) }
| `- warning: reference to captured var 'adherenceValues' in concurrently-executing code; this is an error in the Swift 6 language mode
125 | })
126 | }
<unknown>:0: note: consider making generic parameter 'Self' conform to the 'Sendable' protocol
/Users/admin/builder/spi-builder-workspace/CareKitStore/CareKitStore/Protocols/Events/OCKEventStore.swift:72:57: warning: capture of 'self' with non-sendable type 'Self' in a `@Sendable` closure; this is an error in the Swift 6 language mode
70 | guard let typedTask = task as? Task else {
71 | callbackQueue.async {
72 | let message = "Store of type \(type(of: self)) cannot fetch event with task type \(type(of: task))."
| `- warning: capture of 'self' with non-sendable type 'Self' in a `@Sendable` closure; this is an error in the Swift 6 language mode
73 | completion(.failure(.fetchFailed(reason: message)))
74 | }
/Users/admin/builder/spi-builder-workspace/CareKitStore/CareKitStore/Protocols/Events/OCKEventStore.swift:72:109: warning: capture of 'task' with non-sendable type 'any OCKAnyTask' in a `@Sendable` closure; this is an error in the Swift 6 language mode
70 | guard let typedTask = task as? Task else {
71 | callbackQueue.async {
72 | let message = "Store of type \(type(of: self)) cannot fetch event with task type \(type(of: task))."
| `- warning: capture of 'task' with non-sendable type 'any OCKAnyTask' in a `@Sendable` closure; this is an error in the Swift 6 language mode
73 | completion(.failure(.fetchFailed(reason: message)))
74 | }
/Users/admin/builder/spi-builder-workspace/CareKitStore/CareKitStore/Protocols/Tasks/OCKAnyTask.swift:34:17: note: protocol 'OCKAnyTask' does not conform to the 'Sendable' protocol
32 |
33 | /// Conforming a type to `OCKAnyTask` allows it to be queried and displayed by CareKit.
34 | public protocol OCKAnyTask {
| `- note: protocol 'OCKAnyTask' does not conform to the 'Sendable' protocol
35 |
36 | /// A user-defined unique identifier, typically human readable.
/Users/admin/builder/spi-builder-workspace/CareKitStore/CareKitStore/Protocols/Events/OCKEventStore.swift:73:17: warning: capture of 'completion' with non-sendable type 'OCKResultClosure<OCKAnyEvent>' (aka '(Result<OCKAnyEvent, OCKStoreError>) -> ()') in a `@Sendable` closure; this is an error in the Swift 6 language mode
71 | callbackQueue.async {
72 | let message = "Store of type \(type(of: self)) cannot fetch event with task type \(type(of: task))."
73 | completion(.failure(.fetchFailed(reason: message)))
| |- warning: capture of 'completion' with non-sendable type 'OCKResultClosure<OCKAnyEvent>' (aka '(Result<OCKAnyEvent, OCKStoreError>) -> ()') 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'
74 | }
75 | return
/Users/admin/builder/spi-builder-workspace/CareKitStore/CareKitStore/Protocols/Events/OCKEventStore.swift:109:17: warning: capture of 'completion' with non-sendable type 'OCKResultClosure<Self.Event>' (aka '(Result<OCKEvent<Self.Task, OCKOutcome>, OCKStoreError>) -> ()') in a `@Sendable` closure; this is an error in the Swift 6 language mode
107 | callbackQueue.async {
108 | let message = "Cannot fetch events for a task that hasn't been persisted yet!"
109 | completion(.failure(.fetchFailed(reason: message)))
| |- warning: capture of 'completion' with non-sendable type 'OCKResultClosure<Self.Event>' (aka '(Result<OCKEvent<Self.Task, OCKOutcome>, OCKStoreError>) -> ()') 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'
110 | }
111 | return
/Users/admin/builder/spi-builder-workspace/CareKitStore/CareKitStore/Structs/OCKNote.swift:50:12: warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
48 | public internal(set) var updatedDate: Date?
49 | public internal(set) var schemaVersion: OCKSemanticVersion?
50 | public internal (set) var localDatabaseID: OCKLocalVersionID?
| `- warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
51 | public var groupIdentifier: String?
52 | public var tags: [String]?
[96/154] Compiling CareKitStore OCKStoreProtocol.swift
/Users/admin/builder/spi-builder-workspace/CareKitStore/CareKitStore/Protocols/Events/OCKAnyEventStore.swift:116:29: warning: capture of 'completion' with non-sendable type 'OCKResultClosure<[OCKAdherence]>' (aka '(Result<Array<OCKAdherence>, OCKStoreError>) -> ()') in a `@Sendable` closure; this is an error in the Swift 6 language mode
114 | if let error = error {
115 | callbackQueue.async {
116 | completion(.failure(.fetchFailed(reason: "Failed to fetch completion for tasks! \(error.localizedDescription)")))
| |- warning: capture of 'completion' with non-sendable type 'OCKResultClosure<[OCKAdherence]>' (aka '(Result<Array<OCKAdherence>, OCKStoreError>) -> ()') 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'
117 | }
118 | return
/Users/admin/builder/spi-builder-workspace/CareKitStore/CareKitStore/Protocols/Events/OCKAnyEventStore.swift:124:43: warning: capture of 'completion' with non-sendable type 'OCKResultClosure<[OCKAdherence]>' (aka '(Result<Array<OCKAdherence>, OCKStoreError>) -> ()') in a `@Sendable` closure; this is an error in the Swift 6 language mode
122 | let indicesWithTasks = self.datesWithTasks(query: query, tasks: tasks).enumerated().compactMap { $1 ? $0 : nil }
123 | indicesWithTasks.forEach { adherenceValues[$0] = query.aggregator.aggregate(events: groupedEvents[$0]) }
124 | callbackQueue.async { completion(.success(adherenceValues)) }
| |- warning: capture of 'completion' with non-sendable type 'OCKResultClosure<[OCKAdherence]>' (aka '(Result<Array<OCKAdherence>, OCKStoreError>) -> ()') 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'
125 | })
126 | }
/Users/admin/builder/spi-builder-workspace/CareKitStore/CareKitStore/Protocols/Events/OCKAnyEventStore.swift:124:63: warning: capture of 'adherenceValues' with non-sendable type '[OCKAdherence]' in a `@Sendable` closure; this is an error in the Swift 6 language mode
122 | let indicesWithTasks = self.datesWithTasks(query: query, tasks: tasks).enumerated().compactMap { $1 ? $0 : nil }
123 | indicesWithTasks.forEach { adherenceValues[$0] = query.aggregator.aggregate(events: groupedEvents[$0]) }
124 | callbackQueue.async { completion(.success(adherenceValues)) }
| `- warning: capture of 'adherenceValues' with non-sendable type '[OCKAdherence]' in a `@Sendable` closure; this is an error in the Swift 6 language mode
125 | })
126 | }
/Users/admin/builder/spi-builder-workspace/CareKitStore/CareKitStore/Structs/OCKAdherence.swift:34:13: note: consider making enum 'OCKAdherence' conform to the 'Sendable' protocol
32 |
33 | /// `OCKAdherence` specifies how many of their assigned tasks a patient has completed.
34 | public enum OCKAdherence: Equatable {
| `- note: consider making enum 'OCKAdherence' conform to the 'Sendable' protocol
35 | /// Indicates that there were no tasks scheduled anytime during the interval in which adherence was computed.
36 | case noTasks
/Users/admin/builder/spi-builder-workspace/CareKitStore/CareKitStore/Protocols/Events/OCKAnyEventStore.swift:124:63: warning: reference to captured var 'adherenceValues' in concurrently-executing code; this is an error in the Swift 6 language mode
122 | let indicesWithTasks = self.datesWithTasks(query: query, tasks: tasks).enumerated().compactMap { $1 ? $0 : nil }
123 | indicesWithTasks.forEach { adherenceValues[$0] = query.aggregator.aggregate(events: groupedEvents[$0]) }
124 | callbackQueue.async { completion(.success(adherenceValues)) }
| `- warning: reference to captured var 'adherenceValues' in concurrently-executing code; this is an error in the Swift 6 language mode
125 | })
126 | }
<unknown>:0: note: consider making generic parameter 'Self' conform to the 'Sendable' protocol
/Users/admin/builder/spi-builder-workspace/CareKitStore/CareKitStore/Protocols/Events/OCKEventStore.swift:72:57: warning: capture of 'self' with non-sendable type 'Self' in a `@Sendable` closure; this is an error in the Swift 6 language mode
70 | guard let typedTask = task as? Task else {
71 | callbackQueue.async {
72 | let message = "Store of type \(type(of: self)) cannot fetch event with task type \(type(of: task))."
| `- warning: capture of 'self' with non-sendable type 'Self' in a `@Sendable` closure; this is an error in the Swift 6 language mode
73 | completion(.failure(.fetchFailed(reason: message)))
74 | }
/Users/admin/builder/spi-builder-workspace/CareKitStore/CareKitStore/Protocols/Events/OCKEventStore.swift:72:109: warning: capture of 'task' with non-sendable type 'any OCKAnyTask' in a `@Sendable` closure; this is an error in the Swift 6 language mode
70 | guard let typedTask = task as? Task else {
71 | callbackQueue.async {
72 | let message = "Store of type \(type(of: self)) cannot fetch event with task type \(type(of: task))."
| `- warning: capture of 'task' with non-sendable type 'any OCKAnyTask' in a `@Sendable` closure; this is an error in the Swift 6 language mode
73 | completion(.failure(.fetchFailed(reason: message)))
74 | }
/Users/admin/builder/spi-builder-workspace/CareKitStore/CareKitStore/Protocols/Tasks/OCKAnyTask.swift:34:17: note: protocol 'OCKAnyTask' does not conform to the 'Sendable' protocol
32 |
33 | /// Conforming a type to `OCKAnyTask` allows it to be queried and displayed by CareKit.
34 | public protocol OCKAnyTask {
| `- note: protocol 'OCKAnyTask' does not conform to the 'Sendable' protocol
35 |
36 | /// A user-defined unique identifier, typically human readable.
/Users/admin/builder/spi-builder-workspace/CareKitStore/CareKitStore/Protocols/Events/OCKEventStore.swift:73:17: warning: capture of 'completion' with non-sendable type 'OCKResultClosure<OCKAnyEvent>' (aka '(Result<OCKAnyEvent, OCKStoreError>) -> ()') in a `@Sendable` closure; this is an error in the Swift 6 language mode
71 | callbackQueue.async {
72 | let message = "Store of type \(type(of: self)) cannot fetch event with task type \(type(of: task))."
73 | completion(.failure(.fetchFailed(reason: message)))
| |- warning: capture of 'completion' with non-sendable type 'OCKResultClosure<OCKAnyEvent>' (aka '(Result<OCKAnyEvent, OCKStoreError>) -> ()') 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'
74 | }
75 | return
/Users/admin/builder/spi-builder-workspace/CareKitStore/CareKitStore/Protocols/Events/OCKEventStore.swift:109:17: warning: capture of 'completion' with non-sendable type 'OCKResultClosure<Self.Event>' (aka '(Result<OCKEvent<Self.Task, OCKOutcome>, OCKStoreError>) -> ()') in a `@Sendable` closure; this is an error in the Swift 6 language mode
107 | callbackQueue.async {
108 | let message = "Cannot fetch events for a task that hasn't been persisted yet!"
109 | completion(.failure(.fetchFailed(reason: message)))
| |- warning: capture of 'completion' with non-sendable type 'OCKResultClosure<Self.Event>' (aka '(Result<OCKEvent<Self.Task, OCKOutcome>, OCKStoreError>) -> ()') 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'
110 | }
111 | return
/Users/admin/builder/spi-builder-workspace/CareKitStore/CareKitStore/Structs/OCKNote.swift:50:12: warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
48 | public internal(set) var updatedDate: Date?
49 | public internal(set) var schemaVersion: OCKSemanticVersion?
50 | public internal (set) var localDatabaseID: OCKLocalVersionID?
| `- warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
51 | public var groupIdentifier: String?
52 | public var tags: [String]?
[97/154] Compiling CareKitStore OCKAnyOutcome.swift
/Users/admin/builder/spi-builder-workspace/CareKitStore/CareKitStore/Protocols/Events/OCKAnyEventStore.swift:116:29: warning: capture of 'completion' with non-sendable type 'OCKResultClosure<[OCKAdherence]>' (aka '(Result<Array<OCKAdherence>, OCKStoreError>) -> ()') in a `@Sendable` closure; this is an error in the Swift 6 language mode
114 | if let error = error {
115 | callbackQueue.async {
116 | completion(.failure(.fetchFailed(reason: "Failed to fetch completion for tasks! \(error.localizedDescription)")))
| |- warning: capture of 'completion' with non-sendable type 'OCKResultClosure<[OCKAdherence]>' (aka '(Result<Array<OCKAdherence>, OCKStoreError>) -> ()') 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'
117 | }
118 | return
/Users/admin/builder/spi-builder-workspace/CareKitStore/CareKitStore/Protocols/Events/OCKAnyEventStore.swift:124:43: warning: capture of 'completion' with non-sendable type 'OCKResultClosure<[OCKAdherence]>' (aka '(Result<Array<OCKAdherence>, OCKStoreError>) -> ()') in a `@Sendable` closure; this is an error in the Swift 6 language mode
122 | let indicesWithTasks = self.datesWithTasks(query: query, tasks: tasks).enumerated().compactMap { $1 ? $0 : nil }
123 | indicesWithTasks.forEach { adherenceValues[$0] = query.aggregator.aggregate(events: groupedEvents[$0]) }
124 | callbackQueue.async { completion(.success(adherenceValues)) }
| |- warning: capture of 'completion' with non-sendable type 'OCKResultClosure<[OCKAdherence]>' (aka '(Result<Array<OCKAdherence>, OCKStoreError>) -> ()') 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'
125 | })
126 | }
/Users/admin/builder/spi-builder-workspace/CareKitStore/CareKitStore/Protocols/Events/OCKAnyEventStore.swift:124:63: warning: capture of 'adherenceValues' with non-sendable type '[OCKAdherence]' in a `@Sendable` closure; this is an error in the Swift 6 language mode
122 | let indicesWithTasks = self.datesWithTasks(query: query, tasks: tasks).enumerated().compactMap { $1 ? $0 : nil }
123 | indicesWithTasks.forEach { adherenceValues[$0] = query.aggregator.aggregate(events: groupedEvents[$0]) }
124 | callbackQueue.async { completion(.success(adherenceValues)) }
| `- warning: capture of 'adherenceValues' with non-sendable type '[OCKAdherence]' in a `@Sendable` closure; this is an error in the Swift 6 language mode
125 | })
126 | }
/Users/admin/builder/spi-builder-workspace/CareKitStore/CareKitStore/Structs/OCKAdherence.swift:34:13: note: consider making enum 'OCKAdherence' conform to the 'Sendable' protocol
32 |
33 | /// `OCKAdherence` specifies how many of their assigned tasks a patient has completed.
34 | public enum OCKAdherence: Equatable {
| `- note: consider making enum 'OCKAdherence' conform to the 'Sendable' protocol
35 | /// Indicates that there were no tasks scheduled anytime during the interval in which adherence was computed.
36 | case noTasks
/Users/admin/builder/spi-builder-workspace/CareKitStore/CareKitStore/Protocols/Events/OCKAnyEventStore.swift:124:63: warning: reference to captured var 'adherenceValues' in concurrently-executing code; this is an error in the Swift 6 language mode
122 | let indicesWithTasks = self.datesWithTasks(query: query, tasks: tasks).enumerated().compactMap { $1 ? $0 : nil }
123 | indicesWithTasks.forEach { adherenceValues[$0] = query.aggregator.aggregate(events: groupedEvents[$0]) }
124 | callbackQueue.async { completion(.success(adherenceValues)) }
| `- warning: reference to captured var 'adherenceValues' in concurrently-executing code; this is an error in the Swift 6 language mode
125 | })
126 | }
<unknown>:0: note: consider making generic parameter 'Self' conform to the 'Sendable' protocol
/Users/admin/builder/spi-builder-workspace/CareKitStore/CareKitStore/Protocols/Events/OCKEventStore.swift:72:57: warning: capture of 'self' with non-sendable type 'Self' in a `@Sendable` closure; this is an error in the Swift 6 language mode
70 | guard let typedTask = task as? Task else {
71 | callbackQueue.async {
72 | let message = "Store of type \(type(of: self)) cannot fetch event with task type \(type(of: task))."
| `- warning: capture of 'self' with non-sendable type 'Self' in a `@Sendable` closure; this is an error in the Swift 6 language mode
73 | completion(.failure(.fetchFailed(reason: message)))
74 | }
/Users/admin/builder/spi-builder-workspace/CareKitStore/CareKitStore/Protocols/Events/OCKEventStore.swift:72:109: warning: capture of 'task' with non-sendable type 'any OCKAnyTask' in a `@Sendable` closure; this is an error in the Swift 6 language mode
70 | guard let typedTask = task as? Task else {
71 | callbackQueue.async {
72 | let message = "Store of type \(type(of: self)) cannot fetch event with task type \(type(of: task))."
| `- warning: capture of 'task' with non-sendable type 'any OCKAnyTask' in a `@Sendable` closure; this is an error in the Swift 6 language mode
73 | completion(.failure(.fetchFailed(reason: message)))
74 | }
/Users/admin/builder/spi-builder-workspace/CareKitStore/CareKitStore/Protocols/Tasks/OCKAnyTask.swift:34:17: note: protocol 'OCKAnyTask' does not conform to the 'Sendable' protocol
32 |
33 | /// Conforming a type to `OCKAnyTask` allows it to be queried and displayed by CareKit.
34 | public protocol OCKAnyTask {
| `- note: protocol 'OCKAnyTask' does not conform to the 'Sendable' protocol
35 |
36 | /// A user-defined unique identifier, typically human readable.
/Users/admin/builder/spi-builder-workspace/CareKitStore/CareKitStore/Protocols/Events/OCKEventStore.swift:73:17: warning: capture of 'completion' with non-sendable type 'OCKResultClosure<OCKAnyEvent>' (aka '(Result<OCKAnyEvent, OCKStoreError>) -> ()') in a `@Sendable` closure; this is an error in the Swift 6 language mode
71 | callbackQueue.async {
72 | let message = "Store of type \(type(of: self)) cannot fetch event with task type \(type(of: task))."
73 | completion(.failure(.fetchFailed(reason: message)))
| |- warning: capture of 'completion' with non-sendable type 'OCKResultClosure<OCKAnyEvent>' (aka '(Result<OCKAnyEvent, OCKStoreError>) -> ()') 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'
74 | }
75 | return
/Users/admin/builder/spi-builder-workspace/CareKitStore/CareKitStore/Protocols/Events/OCKEventStore.swift:109:17: warning: capture of 'completion' with non-sendable type 'OCKResultClosure<Self.Event>' (aka '(Result<OCKEvent<Self.Task, OCKOutcome>, OCKStoreError>) -> ()') in a `@Sendable` closure; this is an error in the Swift 6 language mode
107 | callbackQueue.async {
108 | let message = "Cannot fetch events for a task that hasn't been persisted yet!"
109 | completion(.failure(.fetchFailed(reason: message)))
| |- warning: capture of 'completion' with non-sendable type 'OCKResultClosure<Self.Event>' (aka '(Result<OCKEvent<Self.Task, OCKOutcome>, OCKStoreError>) -> ()') 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'
110 | }
111 | return
/Users/admin/builder/spi-builder-workspace/CareKitStore/CareKitStore/Structs/OCKNote.swift:50:12: warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
48 | public internal(set) var updatedDate: Date?
49 | public internal(set) var schemaVersion: OCKSemanticVersion?
50 | public internal (set) var localDatabaseID: OCKLocalVersionID?
| `- warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
51 | public var groupIdentifier: String?
52 | public var tags: [String]?
[98/154] Compiling CareKitStore OCKPostalAddress.swift
/Users/admin/builder/spi-builder-workspace/CareKitStore/CareKitStore/Structs/OCKNote.swift:50:12: warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
48 | public internal(set) var updatedDate: Date?
49 | public internal(set) var schemaVersion: OCKSemanticVersion?
50 | public internal (set) var localDatabaseID: OCKLocalVersionID?
| `- warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
51 | public var groupIdentifier: String?
52 | public var tags: [String]?
[99/154] Compiling CareKitStore OCKSchedule.swift
/Users/admin/builder/spi-builder-workspace/CareKitStore/CareKitStore/Structs/OCKNote.swift:50:12: warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
48 | public internal(set) var updatedDate: Date?
49 | public internal(set) var schemaVersion: OCKSemanticVersion?
50 | public internal (set) var localDatabaseID: OCKLocalVersionID?
| `- warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
51 | public var groupIdentifier: String?
52 | public var tags: [String]?
[100/154] Compiling CareKitStore OCKScheduleElement.swift
/Users/admin/builder/spi-builder-workspace/CareKitStore/CareKitStore/Structs/OCKNote.swift:50:12: warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
48 | public internal(set) var updatedDate: Date?
49 | public internal(set) var schemaVersion: OCKSemanticVersion?
50 | public internal (set) var localDatabaseID: OCKLocalVersionID?
| `- warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
51 | public var groupIdentifier: String?
52 | public var tags: [String]?
[101/154] Compiling CareKitStore OCKScheduleEvent.swift
/Users/admin/builder/spi-builder-workspace/CareKitStore/CareKitStore/Structs/OCKNote.swift:50:12: warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
48 | public internal(set) var updatedDate: Date?
49 | public internal(set) var schemaVersion: OCKSemanticVersion?
50 | public internal (set) var localDatabaseID: OCKLocalVersionID?
| `- warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
51 | public var groupIdentifier: String?
52 | public var tags: [String]?
[102/154] Compiling CareKitStore OCKSemanticVersion.swift
/Users/admin/builder/spi-builder-workspace/CareKitStore/CareKitStore/Structs/OCKNote.swift:50:12: warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
48 | public internal(set) var updatedDate: Date?
49 | public internal(set) var schemaVersion: OCKSemanticVersion?
50 | public internal (set) var localDatabaseID: OCKLocalVersionID?
| `- warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
51 | public var groupIdentifier: String?
52 | public var tags: [String]?
[103/154] Compiling CareKitStore OCKStoreConfiguration.swift
/Users/admin/builder/spi-builder-workspace/CareKitStore/CareKitStore/Structs/OCKNote.swift:50:12: warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
48 | public internal(set) var updatedDate: Date?
49 | public internal(set) var schemaVersion: OCKSemanticVersion?
50 | public internal (set) var localDatabaseID: OCKLocalVersionID?
| `- warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
51 | public var groupIdentifier: String?
52 | public var tags: [String]?
[104/154] Compiling CareKitStore OCKTask.swift
/Users/admin/builder/spi-builder-workspace/CareKitStore/CareKitStore/Structs/OCKNote.swift:50:12: warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
48 | public internal(set) var updatedDate: Date?
49 | public internal(set) var schemaVersion: OCKSemanticVersion?
50 | public internal (set) var localDatabaseID: OCKLocalVersionID?
| `- warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
51 | public var groupIdentifier: String?
52 | public var tags: [String]?
[105/154] Compiling CareKitStore OCKAdherenceQuery.swift
/Users/admin/builder/spi-builder-workspace/CareKitStore/CareKitStore/Structs/OCKNote.swift:50:12: warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
48 | public internal(set) var updatedDate: Date?
49 | public internal(set) var schemaVersion: OCKSemanticVersion?
50 | public internal (set) var localDatabaseID: OCKLocalVersionID?
| `- warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
51 | public var groupIdentifier: String?
52 | public var tags: [String]?
[106/154] Compiling CareKitUI OCKInstructionsTaskView.swift
/Users/admin/builder/spi-builder-workspace/CareKitStore/CareKitStore/Structs/OCKNote.swift:50:12: warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
48 | public internal(set) var updatedDate: Date?
49 | public internal(set) var schemaVersion: OCKSemanticVersion?
50 | public internal (set) var localDatabaseID: OCKLocalVersionID?
| `- warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
51 | public var groupIdentifier: String?
52 | public var tags: [String]?
/Users/admin/builder/spi-builder-workspace/CareKitStore/CareKitStore/Structs/OCKHealthKitLinkage.swift:61:99: error: 'HKUnit' is only available in macOS 13.0 or newer
35 |
36 | /// Describes how a task outcome values should be retrieved from HealthKit.
37 | internal struct OCKHealthKitLinkage: Equatable, Codable {
| `- note: add @available attribute to enclosing struct
38 |
39 | internal enum QuantityType: String, Codable {
:
59 | /// - Parameter quantityType: Determines what kind of query will be used to fetch data from HealthKit.
60 | /// - Parameter unit: A HealthKit unit that will be associated with outcomes saved to and fetched from HealthKit.
61 | internal init(quantityIdentifier: HKQuantityTypeIdentifier, quantityType: QuantityType, unit: HKUnit) {
| | `- error: 'HKUnit' is only available in macOS 13.0 or newer
| `- note: add @available attribute to enclosing initializer
62 | self.quantityIdentifier = quantityIdentifier
63 | self.quantityType = quantityType
[107/154] Compiling CareKitUI OCKLogTaskView.swift
/Users/admin/builder/spi-builder-workspace/CareKitStore/CareKitStore/Structs/OCKNote.swift:50:12: warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
48 | public internal(set) var updatedDate: Date?
49 | public internal(set) var schemaVersion: OCKSemanticVersion?
50 | public internal (set) var localDatabaseID: OCKLocalVersionID?
| `- warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
51 | public var groupIdentifier: String?
52 | public var tags: [String]?
/Users/admin/builder/spi-builder-workspace/CareKitStore/CareKitStore/Structs/OCKHealthKitLinkage.swift:61:99: error: 'HKUnit' is only available in macOS 13.0 or newer
35 |
36 | /// Describes how a task outcome values should be retrieved from HealthKit.
37 | internal struct OCKHealthKitLinkage: Equatable, Codable {
| `- note: add @available attribute to enclosing struct
38 |
39 | internal enum QuantityType: String, Codable {
:
59 | /// - Parameter quantityType: Determines what kind of query will be used to fetch data from HealthKit.
60 | /// - Parameter unit: A HealthKit unit that will be associated with outcomes saved to and fetched from HealthKit.
61 | internal init(quantityIdentifier: HKQuantityTypeIdentifier, quantityType: QuantityType, unit: HKUnit) {
| | `- error: 'HKUnit' is only available in macOS 13.0 or newer
| `- note: add @available attribute to enclosing initializer
62 | self.quantityIdentifier = quantityIdentifier
63 | self.quantityType = quantityType
[108/154] Compiling CareKitUI OCKSimpleTaskView.swift
/Users/admin/builder/spi-builder-workspace/CareKitStore/CareKitStore/Structs/OCKNote.swift:50:12: warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
48 | public internal(set) var updatedDate: Date?
49 | public internal(set) var schemaVersion: OCKSemanticVersion?
50 | public internal (set) var localDatabaseID: OCKLocalVersionID?
| `- warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
51 | public var groupIdentifier: String?
52 | public var tags: [String]?
/Users/admin/builder/spi-builder-workspace/CareKitStore/CareKitStore/Structs/OCKHealthKitLinkage.swift:61:99: error: 'HKUnit' is only available in macOS 13.0 or newer
35 |
36 | /// Describes how a task outcome values should be retrieved from HealthKit.
37 | internal struct OCKHealthKitLinkage: Equatable, Codable {
| `- note: add @available attribute to enclosing struct
38 |
39 | internal enum QuantityType: String, Codable {
:
59 | /// - Parameter quantityType: Determines what kind of query will be used to fetch data from HealthKit.
60 | /// - Parameter unit: A HealthKit unit that will be associated with outcomes saved to and fetched from HealthKit.
61 | internal init(quantityIdentifier: HKQuantityTypeIdentifier, quantityType: QuantityType, unit: HKUnit) {
| | `- error: 'HKUnit' is only available in macOS 13.0 or newer
| `- note: add @available attribute to enclosing initializer
62 | self.quantityIdentifier = quantityIdentifier
63 | self.quantityType = quantityType
[109/154] Compiling CareKitUI OCKTaskDisplayable.swift
/Users/admin/builder/spi-builder-workspace/CareKitStore/CareKitStore/Structs/OCKNote.swift:50:12: warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
48 | public internal(set) var updatedDate: Date?
49 | public internal(set) var schemaVersion: OCKSemanticVersion?
50 | public internal (set) var localDatabaseID: OCKLocalVersionID?
| `- warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
51 | public var groupIdentifier: String?
52 | public var tags: [String]?
/Users/admin/builder/spi-builder-workspace/CareKitStore/CareKitStore/Structs/OCKHealthKitLinkage.swift:61:99: error: 'HKUnit' is only available in macOS 13.0 or newer
35 |
36 | /// Describes how a task outcome values should be retrieved from HealthKit.
37 | internal struct OCKHealthKitLinkage: Equatable, Codable {
| `- note: add @available attribute to enclosing struct
38 |
39 | internal enum QuantityType: String, Codable {
:
59 | /// - Parameter quantityType: Determines what kind of query will be used to fetch data from HealthKit.
60 | /// - Parameter unit: A HealthKit unit that will be associated with outcomes saved to and fetched from HealthKit.
61 | internal init(quantityIdentifier: HKQuantityTypeIdentifier, quantityType: QuantityType, unit: HKUnit) {
| | `- error: 'HKUnit' is only available in macOS 13.0 or newer
| `- note: add @available attribute to enclosing initializer
62 | self.quantityIdentifier = quantityIdentifier
63 | self.quantityType = quantityType
[110/154] Compiling CareKitUI OCKDetailView.swift
/Users/admin/builder/spi-builder-workspace/CareKitStore/CareKitStore/Structs/OCKNote.swift:50:12: warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
48 | public internal(set) var updatedDate: Date?
49 | public internal(set) var schemaVersion: OCKSemanticVersion?
50 | public internal (set) var localDatabaseID: OCKLocalVersionID?
| `- warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
51 | public var groupIdentifier: String?
52 | public var tags: [String]?
/Users/admin/builder/spi-builder-workspace/CareKitStore/CareKitStore/Structs/OCKHealthKitLinkage.swift:61:99: error: 'HKUnit' is only available in macOS 13.0 or newer
35 |
36 | /// Describes how a task outcome values should be retrieved from HealthKit.
37 | internal struct OCKHealthKitLinkage: Equatable, Codable {
| `- note: add @available attribute to enclosing struct
38 |
39 | internal enum QuantityType: String, Codable {
:
59 | /// - Parameter quantityType: Determines what kind of query will be used to fetch data from HealthKit.
60 | /// - Parameter unit: A HealthKit unit that will be associated with outcomes saved to and fetched from HealthKit.
61 | internal init(quantityIdentifier: HKQuantityTypeIdentifier, quantityType: QuantityType, unit: HKUnit) {
| | `- error: 'HKUnit' is only available in macOS 13.0 or newer
| `- note: add @available attribute to enclosing initializer
62 | self.quantityIdentifier = quantityIdentifier
63 | self.quantityType = quantityType
[111/154] Compiling CareKitUI OCKLocalization.swift
/Users/admin/builder/spi-builder-workspace/CareKitStore/CareKitStore/Structs/OCKNote.swift:50:12: warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
48 | public internal(set) var updatedDate: Date?
49 | public internal(set) var schemaVersion: OCKSemanticVersion?
50 | public internal (set) var localDatabaseID: OCKLocalVersionID?
| `- warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
51 | public var groupIdentifier: String?
52 | public var tags: [String]?
/Users/admin/builder/spi-builder-workspace/CareKitStore/CareKitStore/Structs/OCKHealthKitLinkage.swift:61:99: error: 'HKUnit' is only available in macOS 13.0 or newer
35 |
36 | /// Describes how a task outcome values should be retrieved from HealthKit.
37 | internal struct OCKHealthKitLinkage: Equatable, Codable {
| `- note: add @available attribute to enclosing struct
38 |
39 | internal enum QuantityType: String, Codable {
:
59 | /// - Parameter quantityType: Determines what kind of query will be used to fetch data from HealthKit.
60 | /// - Parameter unit: A HealthKit unit that will be associated with outcomes saved to and fetched from HealthKit.
61 | internal init(quantityIdentifier: HKQuantityTypeIdentifier, quantityType: QuantityType, unit: HKUnit) {
| | `- error: 'HKUnit' is only available in macOS 13.0 or newer
| `- note: add @available attribute to enclosing initializer
62 | self.quantityIdentifier = quantityIdentifier
63 | self.quantityType = quantityType
[112/154] Compiling CareKitStore OCKOutcomeValue.swift
/Users/admin/builder/spi-builder-workspace/CareKitStore/CareKitStore/Structs/OCKNote.swift:50:12: warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
48 | public internal(set) var updatedDate: Date?
49 | public internal(set) var schemaVersion: OCKSemanticVersion?
50 | public internal (set) var localDatabaseID: OCKLocalVersionID?
| `- warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
51 | public var groupIdentifier: String?
52 | public var tags: [String]?
/Users/admin/builder/spi-builder-workspace/CareKitStore/CareKitStore/Structs/OCKHealthKitLinkage.swift:61:99: error: 'HKUnit' is only available in macOS 13.0 or newer
35 |
36 | /// Describes how a task outcome values should be retrieved from HealthKit.
37 | internal struct OCKHealthKitLinkage: Equatable, Codable {
| `- note: add @available attribute to enclosing struct
38 |
39 | internal enum QuantityType: String, Codable {
:
59 | /// - Parameter quantityType: Determines what kind of query will be used to fetch data from HealthKit.
60 | /// - Parameter unit: A HealthKit unit that will be associated with outcomes saved to and fetched from HealthKit.
61 | internal init(quantityIdentifier: HKQuantityTypeIdentifier, quantityType: QuantityType, unit: HKUnit) {
| | `- error: 'HKUnit' is only available in macOS 13.0 or newer
| `- note: add @available attribute to enclosing initializer
62 | self.quantityIdentifier = quantityIdentifier
63 | self.quantityType = quantityType
[113/154] Compiling CareKitStore OCKPatient.swift
/Users/admin/builder/spi-builder-workspace/CareKitStore/CareKitStore/Structs/OCKNote.swift:50:12: warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
48 | public internal(set) var updatedDate: Date?
49 | public internal(set) var schemaVersion: OCKSemanticVersion?
50 | public internal (set) var localDatabaseID: OCKLocalVersionID?
| `- warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
51 | public var groupIdentifier: String?
52 | public var tags: [String]?
/Users/admin/builder/spi-builder-workspace/CareKitStore/CareKitStore/Structs/OCKHealthKitLinkage.swift:61:99: error: 'HKUnit' is only available in macOS 13.0 or newer
35 |
36 | /// Describes how a task outcome values should be retrieved from HealthKit.
37 | internal struct OCKHealthKitLinkage: Equatable, Codable {
| `- note: add @available attribute to enclosing struct
38 |
39 | internal enum QuantityType: String, Codable {
:
59 | /// - Parameter quantityType: Determines what kind of query will be used to fetch data from HealthKit.
60 | /// - Parameter unit: A HealthKit unit that will be associated with outcomes saved to and fetched from HealthKit.
61 | internal init(quantityIdentifier: HKQuantityTypeIdentifier, quantityType: QuantityType, unit: HKUnit) {
| | `- error: 'HKUnit' is only available in macOS 13.0 or newer
| `- note: add @available attribute to enclosing initializer
62 | self.quantityIdentifier = quantityIdentifier
63 | self.quantityType = quantityType
[114/154] Compiling CareKitStore OCKCarePlanQuery.swift
[115/154] Compiling CareKitStore OCKContactQuery.swift
[116/154] Compiling CareKitStore OCKEntityQuery.swift
[117/154] Compiling CareKitStore OCKEventQuery.swift
[118/154] Compiling CareKitStore OCKInsightQuery.swift
[119/154] Compiling CareKitStore OCKOutcomeQuery.swift
[120/154] Compiling CareKitStore OCKPatientQuery.swift
[121/154] Compiling CareKitStore OCKTaskQuery.swift
BUILD FAILURE 6.0 macosSpm