Build Information
Failed to build MYCloudKit, reference v1.0.1 (5b1b03), with Swift 6.1 for macOS (SPM) on 28 Oct 2026 23:47:03 UTC.
Build Command
env DEVELOPER_DIR=/Applications/Xcode-16.3.0.app xcrun swift build --arch arm64Build Log
========================================
RunAll
========================================
Builder version: 5.1.3
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/mufasaYC/MYCloudKit.git
Reference: v1.0.1
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/mufasaYC/MYCloudKit
* tag v1.0.1 -> FETCH_HEAD
HEAD is now at 5b1b03d Merge pull request #26 from mufasaYC/fix/watchos-account-recheck
Cloned https://github.com/mufasaYC/MYCloudKit.git
Revision (git rev-parse @):
5b1b03d9616df211a8cb9685fcd85362ebb49ff8
SUCCESS checkout https://github.com/mufasaYC/MYCloudKit.git at v1.0.1
========================================
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
error: emit-module command failed with exit code 1 (use -v to see invocation)
[3/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
[4/22] Compiling MYCloudKit MYCloudEngine+Transaction.swift
[5/22] Compiling MYCloudKit MYSyncDelegate.swift
[6/22] Compiling MYCloudKit UserDefault+Extension.swift
[7/22] Compiling MYCloudKit MYRecordConvertible.swift
[8/22] Compiling MYCloudKit MYSyncEngine+Queue.swift
[9/22] Compiling MYCloudKit MYSyncEngine+Retry.swift
[10/22] Compiling MYCloudKit MYCloudKit.swift
[11/22] Compiling MYCloudKit MYCloudEngine+CRUD.swift
[12/22] Compiling MYCloudKit MYCloudEngine+Fetch.swift
[13/22] Compiling MYCloudKit MYCloudEngine+Share.swift
[14/22] Compiling MYCloudKit CKRecord+Extension.swift
[15/22] Compiling MYCloudKit CKServerChangeToken+Extension.swift
[16/22] Compiling MYCloudKit MYSyncEngine+Cache.swift
[17/22] Compiling MYCloudKit MYSyncEngine+Logger.swift
[18/22] Compiling MYCloudKit Array+Extension.swift
[19/22] Compiling MYCloudKit CKDatabase+Extension.swift
[20/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
[21/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
[22/22] Compiling MYCloudKit MYSyncEngine.swift
/Users/admin/builder/spi-builder-workspace/Sources/MYCloudKit/MYSyncEngine/MYSyncEngine.swift:200:13: warning: capture of 'syncCache' with non-sendable type 'MYSyncEngine.Cache' in a '@Sendable' closure
198 | let queuedTransactionIDs = Set(transactionQueue.snapshot.map(\.id))
199 | DispatchQueue.global(qos: .utility).async {
200 | syncCache.removeOrphanedTransactionFolders(keeping: queuedTransactionIDs)
| `- warning: capture of 'syncCache' with non-sendable type 'MYSyncEngine.Cache' in a '@Sendable' closure
201 | }
202 | 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:321: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?)
:
319 | return
320 | }
321 | 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
322 | // Update the retry state before publishing, so observers of `syncState` see it consistently.
323 | self.applyRetryPolicy(after: state)
/Users/admin/builder/spi-builder-workspace/Sources/MYCloudKit/MYSyncEngine/MYSyncEngine.swift:397: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
:
395 | }
396 | self.fetchState = .fetching
397 | 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
398 | }
399 |
/Users/admin/builder/spi-builder-workspace/Sources/MYCloudKit/MYSyncEngine/MYSyncEngine.swift:258: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
256 | @objc
257 | private func willEnterForegroundNotification() {
258 | 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
259 | guard let self else {
| `- note: closure captures 'self' which is accessible to code in the current task
260 | return
261 | }
/Users/admin/builder/spi-builder-workspace/Sources/MYCloudKit/MYSyncEngine/MYSyncEngine.swift:397:33: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
395 | }
396 | self.fetchState = .fetching
397 | 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
398 | }
399 |
/Users/admin/builder/spi-builder-workspace/Sources/MYCloudKit/MYSyncEngine/MYSyncEngine.swift:262:24: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
260 | return
261 | }
262 | 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
263 | await self.beginSync()
264 | }
/Users/admin/builder/spi-builder-workspace/Sources/MYCloudKit/MYSyncEngine/MYSyncEngine.swift:263:24: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
261 | }
262 | await self.beginFetch()
263 | 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
264 | }
265 | }
/Users/admin/builder/spi-builder-workspace/Sources/MYCloudKit/MYSyncEngine/MYSyncEngine.swift:403: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
401 | syncWorkItem?.cancel()
402 | let workItem: DispatchWorkItem = .init {
403 | 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
404 | await self?.startSync(resumingPause: false)
| `- note: closure captures 'self' which is accessible to code in the current task
405 | }
406 | }
/Users/admin/builder/spi-builder-workspace/Sources/MYCloudKit/MYSyncEngine/MYSyncEngine.swift:404:29: warning: sending value of non-Sendable type 'MYSyncEngine' risks causing data races; this is an error in the Swift 6 language mode
402 | let workItem: DispatchWorkItem = .init {
403 | Task { [weak self] in
404 | 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
405 | }
406 | }
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/21] Compiling MYCloudKit MYSyncEngine+Cache.swift
[5/21] Compiling MYCloudKit MYSyncEngine+Logger.swift
[6/21] Compiling MYCloudKit MYCloudEngine+Transaction.swift
[7/21] Compiling MYCloudKit MYSyncDelegate.swift
[8/21] 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
[9/21] 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
[10/21] Compiling MYCloudKit MYCloudKit.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[11/21] Compiling MYCloudKit MYCloudEngine+CRUD.swift
[12/21] Compiling MYCloudKit UserDefault+Extension.swift
[13/21] Compiling MYCloudKit MYRecordConvertible.swift
[14/21] Compiling MYCloudKit MYCloudEngine+Fetch.swift
[15/21] Compiling MYCloudKit MYCloudEngine+Share.swift
[16/21] Compiling MYCloudKit Array+Extension.swift
[17/21] Compiling MYCloudKit CKDatabase+Extension.swift
[18/21] Compiling MYCloudKit CKRecord+Extension.swift
[19/21] Compiling MYCloudKit CKServerChangeToken+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