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 main (0fce73), with Swift 6.0 for macOS (SPM) on 1 Nov 2024 06:07:32 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: 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
========================================
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
[1/303] Fetching cloudkitfeatureflags
Fetched https://github.com/codeOfRobin/CloudKitFeatureFlags.git from cache (0.70s)
Creating working copy for https://github.com/codeOfRobin/CloudKitFeatureFlags.git
Working copy of https://github.com/codeOfRobin/CloudKitFeatureFlags.git resolved at main (0fce730)
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/10] Compiling CloudKitFeatureFlags FlaggingLogic.swift
[4/10] Compiling CloudKitFeatureFlags FeatureFlag.swift
[5/10] Compiling CloudKitFeatureFlags FeatureFlag+CloudKit.swift
[6/10] Compiling CloudKitFeatureFlags FeatureFlagStorage.swift
[7/10] Compiling CloudKitFeatureFlags FeatureFlagCoordinator.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! (9.08s)
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.