The Swift Package Index logo.Swift Package Index

Build Information

Successful build of MYCloudKit, reference main (c2b312), with Swift 6.1 for macOS (SPM) on 30 Apr 2026 09:42:20 UTC.

Swift 6 data race errors: 0

Build Command

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

Build Log

========================================
RunAll
========================================
Builder version: 4.70.0
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 c2b3126 Merge pull request #5 from alschmut/fix-getting-ckshare
Cloned https://github.com/mufasaYC/MYCloudKit.git
Revision (git rev-parse @):
c2b3126551862f9c092f28dd4652591d76218caa
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" : "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.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/19] Compiling MYCloudKit MYSyncEngine+Cache.swift
[4/19] Compiling MYCloudKit MYCloudEngine+Fetch.swift
[5/19] Compiling MYCloudKit MYCloudEngine+Share.swift
[6/19] Compiling MYCloudKit MYCloudEngine+Subscriptions.swift
/Users/admin/builder/spi-builder-workspace/Sources/MYCloudKit/MYSyncEngine/MYCloudEngine+Subscriptions.swift:43: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
41 |         subscription.notificationInfo = notification
42 |
43 |         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
44 |             guard let self else { return }
   |                       `- note: closure captures 'self' which is accessible to code in the current task
45 |
46 |             do {
/Users/admin/builder/spi-builder-workspace/Sources/MYCloudKit/MYSyncEngine/MYCloudEngine+Sync.swift:567:31: 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
565 |         try await withThrowingTaskGroup(of: Void.self) { [weak self] group in
566 |             for recordType in recordTypes {
567 |                 group.addTask {
    |                               `- 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
568 |                     let query = CKQuery(recordType: recordType, predicate: NSPredicate(format: "parent == %@", recordID))
569 |                     let childRecordIDs = (try await self?.getRecordIDs(with: query, zoneID: recordID.zoneID, scope: scope) ?? [])
    |                                                     `- note: closure captures reference to mutable var 'self' which is accessible to code in the current task
570 |
571 |                     try await withThrowingTaskGroup(of: Void.self) { childGroup in
/Users/admin/builder/spi-builder-workspace/Sources/MYCloudKit/MYSyncEngine/MYCloudEngine+Sync.swift:573:48: 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
571 |                     try await withThrowingTaskGroup(of: Void.self) { childGroup in
572 |                         for childRecordID in childRecordIDs {
573 |                             childGroup.addTask {
    |                                                `- 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
574 |                                 try await self?.cascadeDeleteChildRecords(for: childRecordID, in: scope)
    |                                           `- note: closure captures reference to mutable var 'self' which is accessible to code in the current task
575 |                             }
576 |                         }
[7/19] Compiling MYCloudKit MYCloudEngine+Sync.swift
/Users/admin/builder/spi-builder-workspace/Sources/MYCloudKit/MYSyncEngine/MYCloudEngine+Subscriptions.swift:43: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
41 |         subscription.notificationInfo = notification
42 |
43 |         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
44 |             guard let self else { return }
   |                       `- note: closure captures 'self' which is accessible to code in the current task
45 |
46 |             do {
/Users/admin/builder/spi-builder-workspace/Sources/MYCloudKit/MYSyncEngine/MYCloudEngine+Sync.swift:567:31: 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
565 |         try await withThrowingTaskGroup(of: Void.self) { [weak self] group in
566 |             for recordType in recordTypes {
567 |                 group.addTask {
    |                               `- 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
568 |                     let query = CKQuery(recordType: recordType, predicate: NSPredicate(format: "parent == %@", recordID))
569 |                     let childRecordIDs = (try await self?.getRecordIDs(with: query, zoneID: recordID.zoneID, scope: scope) ?? [])
    |                                                     `- note: closure captures reference to mutable var 'self' which is accessible to code in the current task
570 |
571 |                     try await withThrowingTaskGroup(of: Void.self) { childGroup in
/Users/admin/builder/spi-builder-workspace/Sources/MYCloudKit/MYSyncEngine/MYCloudEngine+Sync.swift:573:48: 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
571 |                     try await withThrowingTaskGroup(of: Void.self) { childGroup in
572 |                         for childRecordID in childRecordIDs {
573 |                             childGroup.addTask {
    |                                                `- 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
574 |                                 try await self?.cascadeDeleteChildRecords(for: childRecordID, in: scope)
    |                                           `- note: closure captures reference to mutable var 'self' which is accessible to code in the current task
575 |                             }
576 |                         }
[8/19] Compiling MYCloudKit UserDefault+Extension.swift
[9/19] Compiling MYCloudKit MYRecordConvertible.swift
[10/19] Compiling MYCloudKit CKRecord+Extension.swift
[11/19] Compiling MYCloudKit CKServerChangeToken+Extension.swift
[12/19] Compiling MYCloudKit MYCloudKit.swift
[13/19] Compiling MYCloudKit MYCloudEngine+CRUD.swift
[14/19] Compiling MYCloudKit MYCloudEngine+Transaction.swift
[15/19] Compiling MYCloudKit MYSyncDelegate.swift
[16/19] Compiling MYCloudKit MYSyncEngine+Logger.swift
[17/20] Emitting module MYCloudKit
[18/20] Compiling MYCloudKit Array+Extension.swift
[19/20] Compiling MYCloudKit CKDatabase+Extension.swift
[20/20] Compiling MYCloudKit MYSyncEngine.swift
/Users/admin/builder/spi-builder-workspace/Sources/MYCloudKit/MYSyncEngine/MYSyncEngine.swift:222:41: 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
 70 |
 71 |     /// Represents the state of a sync operation.
 72 |     public enum SyncState {
    |                 `- note: consider making enum 'SyncState' conform to the 'Sendable' protocol
 73 |         case idle
 74 |         case stopped(queueCount: Int, error: Error?)
    :
220 |                 return
221 |             }
222 |             self.syncState = 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
223 |         }
224 |     }
/Users/admin/builder/spi-builder-workspace/Sources/MYCloudKit/MYSyncEngine/MYSyncEngine.swift:233: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
 88 |
 89 |     /// Represents the state of a fetch operation.
 90 |     public enum FetchState {
    |                 `- note: consider making enum 'FetchState' conform to the 'Sendable' protocol
 91 |         case idle
 92 |         case fetching
    :
231 |         }
232 |         self.fetchState = .fetching
233 |         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
234 |     }
235 |
/Users/admin/builder/spi-builder-workspace/Sources/MYCloudKit/MYSyncEngine/MYSyncEngine.swift:199: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
197 |     @objc
198 |     private func willEnterForegroundNotification() {
199 |         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
200 |             guard let self else {
    |                       `- note: closure captures 'self' which is accessible to code in the current task
201 |                 return
202 |             }
/Users/admin/builder/spi-builder-workspace/Sources/MYCloudKit/MYSyncEngine/MYSyncEngine.swift:233:33: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
231 |         }
232 |         self.fetchState = .fetching
233 |         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
234 |     }
235 |
/Users/admin/builder/spi-builder-workspace/Sources/MYCloudKit/MYSyncEngine/MYSyncEngine.swift:206:24: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
204 |                 self.cloudKitAccountStatus =  try await ckContainer.accountStatus()
205 |             }
206 |             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
207 |             await self.beginSync()
208 |         }
/Users/admin/builder/spi-builder-workspace/Sources/MYCloudKit/MYSyncEngine/MYSyncEngine.swift:207:24: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
205 |             }
206 |             await self.beginFetch()
207 |             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
208 |         }
209 |     }
/Users/admin/builder/spi-builder-workspace/Sources/MYCloudKit/MYSyncEngine/MYSyncEngine.swift:239: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
237 |         syncWorkItem?.cancel()
238 |         let workItem: DispatchWorkItem = .init {
239 |             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
240 |                 await self?.beginSync()
    |                       `- note: closure captures 'self' which is accessible to code in the current task
241 |             }
242 |         }
/Users/admin/builder/spi-builder-workspace/Sources/MYCloudKit/MYSyncEngine/MYSyncEngine.swift:240:29: warning: sending value of non-Sendable type 'MYSyncEngine' risks causing data races; this is an error in the Swift 6 language mode
238 |         let workItem: DispatchWorkItem = .init {
239 |             Task { [weak self] in
240 |                 await self?.beginSync()
    |                             |- 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 'beginSync()' risks causing races in between task-isolated and main actor-isolated uses
241 |             }
242 |         }
Build complete! (6.69s)
Build complete.
{
  "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" : "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.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.10"
}
Done.