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

The Swift Package Index logo.Swift Package Index

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

Build Information

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

Swift 6 data race errors: 4

Build Command

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

Build Log

========================================
RunAll
========================================
Builder version: 4.40.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/codeOfRobin/CloudKitFeatureFlags.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/codeOfRobin/CloudKitFeatureFlags
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at 0fce730 Merge pull request #29 from codeOfRobin/add-code-coverage
Cloned https://github.com/codeOfRobin/CloudKitFeatureFlags.git
Revision (git rev-parse @):
0fce7304011761002c190fd2261a3d2dda931104
SUCCESS checkout https://github.com/codeOfRobin/CloudKitFeatureFlags.git at main
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.0
Building package at path:  $workDir
https://github.com/codeOfRobin/CloudKitFeatureFlags.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-15.3.0.app xcrun --toolchain org.swift.600202405261a swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-6F35C1178C84523A.txt
[3/10] Compiling CloudKitFeatureFlags FlaggingLogic.swift
[4/10] Compiling CloudKitFeatureFlags FeatureFlagStorage.swift
[5/10] Compiling CloudKitFeatureFlags FeatureFlag+CloudKit.swift
[6/10] Compiling CloudKitFeatureFlags FeatureFlagCoordinator.swift
[7/10] Compiling CloudKitFeatureFlags FeatureFlag.swift
[8/10] Compiling CloudKitFeatureFlags AdditionalUserData.swift
[9/10] Emitting module CloudKitFeatureFlags
/Users/admin/builder/spi-builder-workspace/Sources/CloudKitFeatureFlags/CloudKitAbstractions.swift:24:1: warning: sendability of function types in instance method 'fetch(withRecordID:completionHandler:)' does not match requirement in protocol 'Database'; this is an error in the Swift 6 language mode
 9 |
10 | public protocol Database {
11 | 	func fetch(withRecordID recordID: CKRecord.ID, completionHandler: @escaping (CKRecord?, Error?) -> Void)
   |       `- note: expected sendability to match requirement here
12 | 	func save(_ record: CKRecord, completionHandler: @escaping (CKRecord?, Error?) -> Void)
13 | 	func perform(_ query: CKQuery, inZoneWith zoneID: CKRecordZone.ID?, completionHandler: @escaping ([CKRecord]?, Error?) -> Void)
   :
22 | }
23 |
24 | extension CKDatabase: Database { }
   | `- warning: sendability of function types in instance method 'fetch(withRecordID:completionHandler:)' does not match requirement in protocol 'Database'; this is an error in the Swift 6 language mode
25 |
26 | extension CKContainer: Container {
/Users/admin/builder/spi-builder-workspace/Sources/CloudKitFeatureFlags/CloudKitAbstractions.swift:24:1: warning: sendability of function types in instance method 'save(_:completionHandler:)' does not match requirement in protocol 'Database'; this is an error in the Swift 6 language mode
10 | public protocol Database {
11 | 	func fetch(withRecordID recordID: CKRecord.ID, completionHandler: @escaping (CKRecord?, Error?) -> Void)
12 | 	func save(_ record: CKRecord, completionHandler: @escaping (CKRecord?, Error?) -> Void)
   |       `- note: expected sendability to match requirement here
13 | 	func perform(_ query: CKQuery, inZoneWith zoneID: CKRecordZone.ID?, completionHandler: @escaping ([CKRecord]?, Error?) -> Void)
14 | }
   :
22 | }
23 |
24 | extension CKDatabase: Database { }
   | `- warning: sendability of function types in instance method 'save(_:completionHandler:)' does not match requirement in protocol 'Database'; this is an error in the Swift 6 language mode
25 |
26 | extension CKContainer: Container {
/Users/admin/builder/spi-builder-workspace/Sources/CloudKitFeatureFlags/CloudKitAbstractions.swift:24:1: warning: sendability of function types in instance method 'perform(_:inZoneWith:completionHandler:)' does not match requirement in protocol 'Database'; this is an error in the Swift 6 language mode
11 | 	func fetch(withRecordID recordID: CKRecord.ID, completionHandler: @escaping (CKRecord?, Error?) -> Void)
12 | 	func save(_ record: CKRecord, completionHandler: @escaping (CKRecord?, Error?) -> Void)
13 | 	func perform(_ query: CKQuery, inZoneWith zoneID: CKRecordZone.ID?, completionHandler: @escaping ([CKRecord]?, Error?) -> Void)
   |       `- note: expected sendability to match requirement here
14 | }
15 |
   :
22 | }
23 |
24 | extension CKDatabase: Database { }
   | `- warning: sendability of function types in instance method 'perform(_:inZoneWith:completionHandler:)' does not match requirement in protocol 'Database'; this is an error in the Swift 6 language mode
25 |
26 | extension CKContainer: Container {
/Users/admin/builder/spi-builder-workspace/Sources/CloudKitFeatureFlags/CloudKitAbstractions.swift:26:1: warning: sendability of function types in instance method 'fetchUserRecordID(completionHandler:)' does not match requirement in protocol 'Container'; this is an error in the Swift 6 language mode
19 | 	var featureFlaggingDatabase: Database { get }
20 |
21 | 	func fetchUserRecordID(completionHandler: @escaping (CKRecord.ID?, Error?) -> Void)
   |       `- note: expected sendability to match requirement here
22 | }
23 |
24 | extension CKDatabase: Database { }
25 |
26 | extension CKContainer: Container {
   | `- warning: sendability of function types in instance method 'fetchUserRecordID(completionHandler:)' does not match requirement in protocol 'Container'; this is an error in the Swift 6 language mode
27 | 	public var featureFlaggingDatabase: Database {
28 | 		return publicCloudDatabase
[10/10] Compiling CloudKitFeatureFlags CloudKitAbstractions.swift
/Users/admin/builder/spi-builder-workspace/Sources/CloudKitFeatureFlags/CloudKitAbstractions.swift:24:1: warning: sendability of function types in instance method 'fetch(withRecordID:completionHandler:)' does not match requirement in protocol 'Database'; this is an error in the Swift 6 language mode
 9 |
10 | public protocol Database {
11 | 	func fetch(withRecordID recordID: CKRecord.ID, completionHandler: @escaping (CKRecord?, Error?) -> Void)
   |       `- note: expected sendability to match requirement here
12 | 	func save(_ record: CKRecord, completionHandler: @escaping (CKRecord?, Error?) -> Void)
13 | 	func perform(_ query: CKQuery, inZoneWith zoneID: CKRecordZone.ID?, completionHandler: @escaping ([CKRecord]?, Error?) -> Void)
   :
22 | }
23 |
24 | extension CKDatabase: Database { }
   | `- warning: sendability of function types in instance method 'fetch(withRecordID:completionHandler:)' does not match requirement in protocol 'Database'; this is an error in the Swift 6 language mode
25 |
26 | extension CKContainer: Container {
/Users/admin/builder/spi-builder-workspace/Sources/CloudKitFeatureFlags/CloudKitAbstractions.swift:24:1: warning: sendability of function types in instance method 'save(_:completionHandler:)' does not match requirement in protocol 'Database'; this is an error in the Swift 6 language mode
10 | public protocol Database {
11 | 	func fetch(withRecordID recordID: CKRecord.ID, completionHandler: @escaping (CKRecord?, Error?) -> Void)
12 | 	func save(_ record: CKRecord, completionHandler: @escaping (CKRecord?, Error?) -> Void)
   |       `- note: expected sendability to match requirement here
13 | 	func perform(_ query: CKQuery, inZoneWith zoneID: CKRecordZone.ID?, completionHandler: @escaping ([CKRecord]?, Error?) -> Void)
14 | }
   :
22 | }
23 |
24 | extension CKDatabase: Database { }
   | `- warning: sendability of function types in instance method 'save(_:completionHandler:)' does not match requirement in protocol 'Database'; this is an error in the Swift 6 language mode
25 |
26 | extension CKContainer: Container {
/Users/admin/builder/spi-builder-workspace/Sources/CloudKitFeatureFlags/CloudKitAbstractions.swift:24:1: warning: sendability of function types in instance method 'perform(_:inZoneWith:completionHandler:)' does not match requirement in protocol 'Database'; this is an error in the Swift 6 language mode
11 | 	func fetch(withRecordID recordID: CKRecord.ID, completionHandler: @escaping (CKRecord?, Error?) -> Void)
12 | 	func save(_ record: CKRecord, completionHandler: @escaping (CKRecord?, Error?) -> Void)
13 | 	func perform(_ query: CKQuery, inZoneWith zoneID: CKRecordZone.ID?, completionHandler: @escaping ([CKRecord]?, Error?) -> Void)
   |       `- note: expected sendability to match requirement here
14 | }
15 |
   :
22 | }
23 |
24 | extension CKDatabase: Database { }
   | `- warning: sendability of function types in instance method 'perform(_:inZoneWith:completionHandler:)' does not match requirement in protocol 'Database'; this is an error in the Swift 6 language mode
25 |
26 | extension CKContainer: Container {
/Users/admin/builder/spi-builder-workspace/Sources/CloudKitFeatureFlags/CloudKitAbstractions.swift:26:1: warning: sendability of function types in instance method 'fetchUserRecordID(completionHandler:)' does not match requirement in protocol 'Container'; this is an error in the Swift 6 language mode
19 | 	var featureFlaggingDatabase: Database { get }
20 |
21 | 	func fetchUserRecordID(completionHandler: @escaping (CKRecord.ID?, Error?) -> Void)
   |       `- note: expected sendability to match requirement here
22 | }
23 |
24 | extension CKDatabase: Database { }
25 |
26 | extension CKContainer: Container {
   | `- warning: sendability of function types in instance method 'fetchUserRecordID(completionHandler:)' does not match requirement in protocol 'Container'; this is an error in the Swift 6 language mode
27 | 	public var featureFlaggingDatabase: Database {
28 | 		return publicCloudDatabase
Build complete! (30.84s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "CloudKitFeatureFlags",
  "name" : "CloudKitFeatureFlags",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "ios",
      "version" : "13.0"
    },
    {
      "name" : "macos",
      "version" : "10.15"
    }
  ],
  "products" : [
    {
      "name" : "CloudKitFeatureFlags",
      "targets" : [
        "CloudKitFeatureFlags"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "CloudKitFeatureFlagsTests",
      "module_type" : "SwiftTarget",
      "name" : "CloudKitFeatureFlagsTests",
      "path" : "Tests/CloudKitFeatureFlagsTests",
      "sources" : [
        "FeatureFlagCoordinatorTests.swift",
        "FeatureFlagStorageTests.swift",
        "FlaggingLogicTests.swift",
        "XCTestManifests.swift"
      ],
      "target_dependencies" : [
        "CloudKitFeatureFlags"
      ],
      "type" : "test"
    },
    {
      "c99name" : "CloudKitFeatureFlags",
      "module_type" : "SwiftTarget",
      "name" : "CloudKitFeatureFlags",
      "path" : "Sources/CloudKitFeatureFlags",
      "product_memberships" : [
        "CloudKitFeatureFlags"
      ],
      "sources" : [
        "AdditionalUserData.swift",
        "CloudKitAbstractions.swift",
        "FeatureFlag+CloudKit.swift",
        "FeatureFlag.swift",
        "FeatureFlagCoordinator.swift",
        "FeatureFlagStorage.swift",
        "FlaggingLogic.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.3"
}
Done.
This is a staging environment. For live and up-to-date package information, visit swiftpackageindex.com.