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, reference 0.1.0-alpha (c2dff3), with Swift 6.0 for macOS (SPM) on 1 Nov 2024 06:08:12 UTC.

Swift 6 data race errors: 4

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

Build Log

========================================
RunAll
========================================
Builder version: 4.56.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/codeOfRobin/CloudKitFeatureFlags.git
Reference: 0.1.0-alpha
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/codeOfRobin/CloudKitFeatureFlags
 * tag               0.1.0-alpha -> FETCH_HEAD
HEAD is now at c2dff31 Add integration test
Cloned https://github.com/codeOfRobin/CloudKitFeatureFlags.git
Revision (git rev-parse @):
c2dff31abfa595b3b2577195b561fd4e4998b2e5
SUCCESS checkout https://github.com/codeOfRobin/CloudKitFeatureFlags.git at 0.1.0-alpha
========================================
ResolveProductDependencies
========================================
Resolving dependencies ...
{
  "identity": ".resolve-product-dependencies",
  "name": "resolve-dependencies",
  "url": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
  "version": "unspecified",
  "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
  "dependencies": [
    {
      "identity": "cloudkitfeatureflags",
      "name": "CloudKitFeatureFlags",
      "url": "https://github.com/codeOfRobin/CloudKitFeatureFlags.git",
      "version": "unspecified",
      "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/CloudKitFeatureFlags",
      "dependencies": [
      ]
    }
  ]
}
Fetching https://github.com/codeOfRobin/CloudKitFeatureFlags.git
[7/303] Fetching cloudkitfeatureflags
Fetched https://github.com/codeOfRobin/CloudKitFeatureFlags.git from cache (0.76s)
Creating working copy for https://github.com/codeOfRobin/CloudKitFeatureFlags.git
Working copy of https://github.com/codeOfRobin/CloudKitFeatureFlags.git resolved at 0.1.0-alpha (c2dff31)
warning: '.resolve-product-dependencies': dependency 'cloudkitfeatureflags' is not used by any target
Found 0 product dependencies
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.0
Building package at path:  $PWD
https://github.com/codeOfRobin/CloudKitFeatureFlags.git
Running build ...
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
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version--7754E27361AE5C74.txt
[3/9] Compiling CloudKitFeatureFlags FeatureFlag.swift
[4/9] Compiling CloudKitFeatureFlags FeatureFlag+CloudKit.swift
[5/9] Compiling CloudKitFeatureFlags FlaggingLogic.swift
[6/9] Compiling CloudKitFeatureFlags FeatureFlagCoordinator.swift
[7/9] Compiling CloudKitFeatureFlags AdditionalUserData.swift
[8/9] 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 | 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 | 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 | 	var featureFlaggingDatabase: Database {
28 | 		return publicCloudDatabase
[9/9] 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 | 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 | 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 | 	var featureFlaggingDatabase: Database {
28 | 		return publicCloudDatabase
Build complete! (8.03s)
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",
        "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",
        "FlaggingLogic.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.1"
}
Done.