Build Information
Failed to build MYCloudKit, reference main (0de379), with Swift 6.1 for macOS (SPM) on 19 Nov 2026 11:26:19 UTC.
Build Command
env DEVELOPER_DIR=/Applications/Xcode-16.3.0.app xcrun swift build --arch arm64Build Log
========================================
RunAll
========================================
Builder version: 5.1.4
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/mufasaYC/MYCloudKit.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/mufasaYC/MYCloudKit
* branch main -> FETCH_HEAD
* [new branch] main -> origin/main
HEAD is now at 0de3791 docs: refresh app showcase
Cloned https://github.com/mufasaYC/MYCloudKit.git
Revision (git rev-parse @):
0de3791b5db7d2d7e8e2460e88eaf4f435634fe8
SUCCESS checkout https://github.com/mufasaYC/MYCloudKit.git at main
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 6.1
Building package at path: $PWD
https://github.com/mufasaYC/MYCloudKit.git
https://github.com/mufasaYC/MYCloudKit.git
{
"dependencies" : [
],
"manifest_display_name" : "MYCloudKit",
"name" : "MYCloudKit",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
{
"name" : "ios",
"version" : "15.0"
},
{
"name" : "watchos",
"version" : "8.0"
},
{
"name" : "maccatalyst",
"version" : "15.0"
},
{
"name" : "macos",
"version" : "12.0"
},
{
"name" : "tvos",
"version" : "15.0"
},
{
"name" : "visionos",
"version" : "1.0"
}
],
"products" : [
{
"name" : "MYCloudKit",
"targets" : [
"MYCloudKit"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "MYCloudKitTests",
"module_type" : "SwiftTarget",
"name" : "MYCloudKitTests",
"path" : "Tests/MYCloudKitTests",
"sources" : [
"DatabaseScopeConfigurationTests.swift",
"EncryptedDataResetRecoveryTests.swift",
"QueueConcurrencyTests.swift",
"ReservedFieldKeyTests.swift",
"StagedAssetTests.swift",
"SyncPlanningTests.swift",
"SyncRetryPolicyTests.swift",
"ZoneDeletionRecoveryTests.swift"
],
"target_dependencies" : [
"MYCloudKit"
],
"type" : "test"
},
{
"c99name" : "MYCloudKit",
"module_type" : "SwiftTarget",
"name" : "MYCloudKit",
"path" : "Sources/MYCloudKit",
"product_memberships" : [
"MYCloudKit"
],
"sources" : [
"Extensions/Array+Extension.swift",
"Extensions/CKDatabase+Extension.swift",
"Extensions/CKRecord+Extension.swift",
"Extensions/CKServerChangeToken+Extension.swift",
"Extensions/UserDefault+Extension.swift",
"Helpers/MYRecordConvertible.swift",
"MYCloudKit.swift",
"MYSyncEngine/MYCloudEngine+CRUD.swift",
"MYSyncEngine/MYCloudEngine+Fetch.swift",
"MYSyncEngine/MYCloudEngine+Share.swift",
"MYSyncEngine/MYCloudEngine+Subscriptions.swift",
"MYSyncEngine/MYCloudEngine+Sync.swift",
"MYSyncEngine/MYCloudEngine+Transaction.swift",
"MYSyncEngine/MYSyncDelegate.swift",
"MYSyncEngine/MYSyncEngine+Cache.swift",
"MYSyncEngine/MYSyncEngine+Logger.swift",
"MYSyncEngine/MYSyncEngine+Queue.swift",
"MYSyncEngine/MYSyncEngine+Retry.swift",
"MYSyncEngine/MYSyncEngine.swift"
],
"type" : "library"
}
],
"tools_version" : "5.10"
}
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.3.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-2F0A5646E1D333AE.txt
[3/21] Compiling MYCloudKit UserDefault+Extension.swift
[4/21] Compiling MYCloudKit MYRecordConvertible.swift
[5/21] Compiling MYCloudKit MYCloudKit.swift
[6/21] Compiling MYCloudKit MYCloudEngine+CRUD.swift
[7/22] Compiling MYCloudKit MYSyncEngine+Queue.swift
[8/22] Compiling MYCloudKit MYSyncEngine+Retry.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[9/22] Compiling MYCloudKit MYCloudEngine+Transaction.swift
[10/22] Compiling MYCloudKit MYSyncDelegate.swift
[11/22] Compiling MYCloudKit CKRecord+Extension.swift
[12/22] Compiling MYCloudKit CKServerChangeToken+Extension.swift
[13/22] Compiling MYCloudKit MYCloudEngine+Fetch.swift
[14/22] Compiling MYCloudKit MYCloudEngine+Share.swift
[15/22] Compiling MYCloudKit Array+Extension.swift
[16/22] Compiling MYCloudKit CKDatabase+Extension.swift
[17/22] Compiling MYCloudKit MYSyncEngine+Cache.swift
[18/22] Compiling MYCloudKit MYSyncEngine+Logger.swift
[19/22] Compiling MYCloudKit MYCloudEngine+Subscriptions.swift
/Users/admin/builder/spi-builder-workspace/Sources/MYCloudKit/MYSyncEngine/MYCloudEngine+Sync.swift:540:94: error: type 'CKError.Code' has no member 'participantAlreadyInvited'
538 |
539 | // Shouldn’t occur in transaction-based sync
540 | case .alreadyShared, .participantMayNeedVerification, .tooManyParticipants, .participantAlreadyInvited:
| `- error: type 'CKError.Code' has no member 'participantAlreadyInvited'
541 | reason = "Share failure — should not apply to transactions."
542 | errorKind = .dontSyncThis
[20/22] Compiling MYCloudKit MYCloudEngine+Sync.swift
/Users/admin/builder/spi-builder-workspace/Sources/MYCloudKit/MYSyncEngine/MYCloudEngine+Sync.swift:540:94: error: type 'CKError.Code' has no member 'participantAlreadyInvited'
538 |
539 | // Shouldn’t occur in transaction-based sync
540 | case .alreadyShared, .participantMayNeedVerification, .tooManyParticipants, .participantAlreadyInvited:
| `- error: type 'CKError.Code' has no member 'participantAlreadyInvited'
541 | reason = "Share failure — should not apply to transactions."
542 | errorKind = .dontSyncThis
[21/22] Emitting module MYCloudKit
/Users/admin/builder/spi-builder-workspace/Sources/MYCloudKit/MYSyncEngine/MYCloudEngine+Sync.swift:540:94: error: type 'CKError.Code' has no member 'participantAlreadyInvited'
538 |
539 | // Shouldn’t occur in transaction-based sync
540 | case .alreadyShared, .participantMayNeedVerification, .tooManyParticipants, .participantAlreadyInvited:
| `- error: type 'CKError.Code' has no member 'participantAlreadyInvited'
541 | reason = "Share failure — should not apply to transactions."
542 | errorKind = .dontSyncThis
[22/22] Compiling MYCloudKit MYSyncEngine.swift
/Users/admin/builder/spi-builder-workspace/Sources/MYCloudKit/MYSyncEngine/MYSyncEngine.swift:205:13: warning: capture of 'syncCache' with non-sendable type 'MYSyncEngine.Cache' in a '@Sendable' closure
203 | let queuedTransactionIDs = Set(transactionQueue.snapshot.map(\.id))
204 | DispatchQueue.global(qos: .utility).async {
205 | syncCache.removeOrphanedTransactionFolders(keeping: queuedTransactionIDs)
| `- warning: capture of 'syncCache' with non-sendable type 'MYSyncEngine.Cache' in a '@Sendable' closure
206 | }
207 | self.databaseScopes = databaseScopes
/Users/admin/builder/spi-builder-workspace/Sources/MYCloudKit/MYSyncEngine/MYSyncEngine+Cache.swift:11:11: note: class 'Cache' does not conform to the 'Sendable' protocol
9 | /// A singleton responsible for managing all local caching related to CloudKit sync operations,
10 | /// including transaction queues, asset files, encoded system fields, and zone IDs.
11 | class Cache {
| `- note: class 'Cache' does not conform to the 'Sendable' protocol
12 | typealias Transaction = MYSyncEngine.Transaction
13 |
/Users/admin/builder/spi-builder-workspace/Sources/MYCloudKit/MYSyncEngine/MYSyncEngine.swift:335:36: warning: non-sendable result type 'MYSyncEngine.SyncState' cannot be sent from nonisolated context in call to instance method 'sync()'; this is an error in the Swift 6 language mode
93 |
94 | /// Represents the state of a sync operation.
95 | public enum SyncState {
| `- note: consider making enum 'SyncState' conform to the 'Sendable' protocol
96 | case idle
97 | case stopped(queueCount: Int, error: Error?)
:
333 | return
334 | }
335 | let state = await self.sync()
| `- warning: non-sendable result type 'MYSyncEngine.SyncState' cannot be sent from nonisolated context in call to instance method 'sync()'; this is an error in the Swift 6 language mode
336 | // Update the retry state before publishing, so observers of `syncState` see it consistently.
337 | self.applyRetryPolicy(after: state)
/Users/admin/builder/spi-builder-workspace/Sources/MYCloudKit/MYSyncEngine/MYSyncEngine.swift:411:33: warning: non-sendable result type 'MYSyncEngine.FetchState' cannot be sent from nonisolated context in call to instance method 'fetch()'; this is an error in the Swift 6 language mode
111 |
112 | /// Represents the state of a fetch operation.
113 | public enum FetchState {
| `- note: consider making enum 'FetchState' conform to the 'Sendable' protocol
114 | case idle
115 | case fetching
:
409 | }
410 | self.fetchState = .fetching
411 | self.fetchState = await fetch()
| `- warning: non-sendable result type 'MYSyncEngine.FetchState' cannot be sent from nonisolated context in call to instance method 'fetch()'; this is an error in the Swift 6 language mode
412 | }
413 |
/Users/admin/builder/spi-builder-workspace/Sources/MYCloudKit/MYSyncEngine/MYSyncEngine.swift:272:14: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
270 | @objc
271 | private func willEnterForegroundNotification() {
272 | Task { [weak self] in
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
273 | guard let self else {
| `- note: closure captures 'self' which is accessible to code in the current task
274 | return
275 | }
/Users/admin/builder/spi-builder-workspace/Sources/MYCloudKit/MYSyncEngine/MYSyncEngine.swift:411:33: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
409 | }
410 | self.fetchState = .fetching
411 | self.fetchState = await fetch()
| |- warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending main actor-isolated 'self' to nonisolated callee risks causing data races between nonisolated and main actor-isolated uses
412 | }
413 |
/Users/admin/builder/spi-builder-workspace/Sources/MYCloudKit/MYSyncEngine/MYSyncEngine.swift:276:24: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
274 | return
275 | }
276 | await self.beginFetch()
| |- warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'self' to main actor-isolated instance method 'beginFetch()' risks causing data races between main actor-isolated and task-isolated uses
277 | await self.beginSync()
278 | }
/Users/admin/builder/spi-builder-workspace/Sources/MYCloudKit/MYSyncEngine/MYSyncEngine.swift:277:24: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
275 | }
276 | await self.beginFetch()
277 | await self.beginSync()
| |- warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'self' to main actor-isolated instance method 'beginSync()' risks causing data races between main actor-isolated and task-isolated uses
278 | }
279 | }
/Users/admin/builder/spi-builder-workspace/Sources/MYCloudKit/MYSyncEngine/MYSyncEngine.swift:417:18: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
415 | syncWorkItem?.cancel()
416 | let workItem: DispatchWorkItem = .init {
417 | Task { [weak self] in
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
418 | await self?.startSync(resumingPause: false)
| `- note: closure captures 'self' which is accessible to code in the current task
419 | }
420 | }
/Users/admin/builder/spi-builder-workspace/Sources/MYCloudKit/MYSyncEngine/MYSyncEngine.swift:418:29: warning: sending value of non-Sendable type 'MYSyncEngine' risks causing data races; this is an error in the Swift 6 language mode
416 | let workItem: DispatchWorkItem = .init {
417 | Task { [weak self] in
418 | await self?.startSync(resumingPause: false)
| |- warning: sending value of non-Sendable type 'MYSyncEngine' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated value of non-Sendable type 'MYSyncEngine' to main actor-isolated instance method 'startSync(resumingPause:)' risks causing races in between task-isolated and main actor-isolated uses
419 | }
420 | }
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.3.0.app xcrun swift build --arch arm64
[0/1] Planning build
Building for debugging...
[0/1] Write swift-version-2F0A5646E1D333AE.txt
[2/20] Compiling MYCloudKit MYSyncEngine+Queue.swift
[3/20] Compiling MYCloudKit MYSyncEngine+Retry.swift
[4/20] Compiling MYCloudKit MYCloudEngine+Subscriptions.swift
/Users/admin/builder/spi-builder-workspace/Sources/MYCloudKit/MYSyncEngine/MYCloudEngine+Sync.swift:540:94: error: type 'CKError.Code' has no member 'participantAlreadyInvited'
538 |
539 | // Shouldn’t occur in transaction-based sync
540 | case .alreadyShared, .participantMayNeedVerification, .tooManyParticipants, .participantAlreadyInvited:
| `- error: type 'CKError.Code' has no member 'participantAlreadyInvited'
541 | reason = "Share failure — should not apply to transactions."
542 | errorKind = .dontSyncThis
[5/20] Compiling MYCloudKit MYCloudEngine+Sync.swift
/Users/admin/builder/spi-builder-workspace/Sources/MYCloudKit/MYSyncEngine/MYCloudEngine+Sync.swift:540:94: error: type 'CKError.Code' has no member 'participantAlreadyInvited'
538 |
539 | // Shouldn’t occur in transaction-based sync
540 | case .alreadyShared, .participantMayNeedVerification, .tooManyParticipants, .participantAlreadyInvited:
| `- error: type 'CKError.Code' has no member 'participantAlreadyInvited'
541 | reason = "Share failure — should not apply to transactions."
542 | errorKind = .dontSyncThis
[6/21] Compiling MYCloudKit MYSyncEngine+Cache.swift
[7/21] Compiling MYCloudKit MYSyncEngine+Logger.swift
[8/21] Compiling MYCloudKit MYCloudEngine+Transaction.swift
[9/21] Compiling MYCloudKit MYSyncDelegate.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[10/21] Compiling MYCloudKit MYCloudKit.swift
[11/21] Compiling MYCloudKit MYCloudEngine+CRUD.swift
[12/21] Compiling MYCloudKit CKRecord+Extension.swift
[13/21] Compiling MYCloudKit CKServerChangeToken+Extension.swift
[14/21] Compiling MYCloudKit UserDefault+Extension.swift
[15/21] Compiling MYCloudKit MYRecordConvertible.swift
[16/21] Compiling MYCloudKit MYCloudEngine+Fetch.swift
[17/21] Compiling MYCloudKit MYCloudEngine+Share.swift
[18/21] Compiling MYCloudKit Array+Extension.swift
[19/21] Compiling MYCloudKit CKDatabase+Extension.swift
[20/21] Emitting module MYCloudKit
/Users/admin/builder/spi-builder-workspace/Sources/MYCloudKit/MYSyncEngine/MYCloudEngine+Sync.swift:540:94: error: type 'CKError.Code' has no member 'participantAlreadyInvited'
538 |
539 | // Shouldn’t occur in transaction-based sync
540 | case .alreadyShared, .participantMayNeedVerification, .tooManyParticipants, .participantAlreadyInvited:
| `- error: type 'CKError.Code' has no member 'participantAlreadyInvited'
541 | reason = "Share failure — should not apply to transactions."
542 | errorKind = .dontSyncThis
[21/21] Compiling MYCloudKit MYSyncEngine.swift
BUILD FAILURE 6.1 macosSpm