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 GoldenKey, reference master (7fe1fa), with Swift 6.1 for macOS (SPM) on 26 Apr 2025 11:59:21 UTC.

Swift 6 data race errors: 1

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.61.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/RedMadRobot/golden-key.git
Reference: master
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/RedMadRobot/golden-key
 * branch            master     -> FETCH_HEAD
 * [new branch]      master     -> origin/master
HEAD is now at 7fe1faa Merge pull request #8 from subdan/hash_readme
Cloned https://github.com/RedMadRobot/golden-key.git
Revision (git rev-parse @):
7fe1faa3a284bfee389be3f43ad12a6074dc1af4
SUCCESS checkout https://github.com/RedMadRobot/golden-key.git at master
========================================
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": "golden-key",
      "name": "GoldenKey",
      "url": "https://github.com/RedMadRobot/golden-key.git",
      "version": "unspecified",
      "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/golden-key",
      "dependencies": [
      ]
    }
  ]
}
Fetching https://github.com/RedMadRobot/golden-key.git
[4/151] Fetching golden-key
Fetched https://github.com/RedMadRobot/golden-key.git from cache (0.92s)
Creating working copy for https://github.com/RedMadRobot/golden-key.git
Working copy of https://github.com/RedMadRobot/golden-key.git resolved at master (7fe1faa)
warning: '.resolve-product-dependencies': dependency 'golden-key' is not used by any target
Found 0 product dependencies
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.1
Building package at path:  $PWD
https://github.com/RedMadRobot/golden-key.git
https://github.com/RedMadRobot/golden-key.git
{
  "dependencies" : [
  ],
  "manifest_display_name" : "GoldenKey",
  "name" : "GoldenKey",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "macos",
      "version" : "10.12"
    },
    {
      "name" : "ios",
      "version" : "10.0"
    },
    {
      "name" : "tvos",
      "version" : "10.0"
    },
    {
      "name" : "watchos",
      "version" : "3.0"
    }
  ],
  "products" : [
    {
      "name" : "GoldenKey",
      "targets" : [
        "GoldenKey"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "swift_languages_versions" : [
    "5"
  ],
  "targets" : [
    {
      "c99name" : "GoldenKeyTests",
      "module_type" : "SwiftTarget",
      "name" : "GoldenKeyTests",
      "path" : "GoldenKeyTests",
      "sources" : [
        "CommonCrypto/CryptorTests.swift",
        "CommonCrypto/DigestTests.swift",
        "CommonCrypto/GoldenKeyTests.swift",
        "CommonCrypto/HMACTests.swift",
        "CommonCrypto/PBKDF2Tests.swift",
        "CommonCrypto/RandomBytesTests.swift"
      ],
      "target_dependencies" : [
        "GoldenKey"
      ],
      "type" : "test"
    },
    {
      "c99name" : "GoldenKey",
      "module_type" : "SwiftTarget",
      "name" : "GoldenKey",
      "path" : "GoldenKey",
      "product_memberships" : [
        "GoldenKey"
      ],
      "sources" : [
        "CommonCrypto/Cryptor.swift",
        "CommonCrypto/CryptorAlgorithm.swift",
        "CommonCrypto/CryptorError.swift",
        "CommonCrypto/CryptorOptions.swift",
        "CommonCrypto/Digest.swift",
        "CommonCrypto/HMAC.swift",
        "CommonCrypto/PBKDF2.swift",
        "CommonCrypto/RandomBytes.swift",
        "CommonCrypto/SecurityError.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.0"
}
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/12] Compiling GoldenKey RandomBytes.swift
[4/12] Compiling GoldenKey SecurityError.swift
/Users/admin/builder/spi-builder-workspace/GoldenKey/CommonCrypto/SecurityError.swift:47:23: warning: static property 'errorDomain' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
45 |
46 |     /// The domain of the error.
47 |     public static var errorDomain = NSOSStatusErrorDomain
   |                       |- warning: static property 'errorDomain' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: convert 'errorDomain' to a 'let' constant to make 'Sendable' shared state immutable
   |                       |- note: add '@MainActor' to make static property 'errorDomain' part of global actor 'MainActor'
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
48 |
49 |     /// The error code within the given domain.
[5/12] Compiling GoldenKey CryptorError.swift
[6/12] Compiling GoldenKey Digest.swift
[7/12] Compiling GoldenKey CryptorOptions.swift
[8/12] Compiling GoldenKey CryptorAlgorithm.swift
[9/12] Compiling GoldenKey PBKDF2.swift
[10/12] Compiling GoldenKey HMAC.swift
[11/12] Emitting module GoldenKey
/Users/admin/builder/spi-builder-workspace/GoldenKey/CommonCrypto/SecurityError.swift:47:23: warning: static property 'errorDomain' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
45 |
46 |     /// The domain of the error.
47 |     public static var errorDomain = NSOSStatusErrorDomain
   |                       |- warning: static property 'errorDomain' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: convert 'errorDomain' to a 'let' constant to make 'Sendable' shared state immutable
   |                       |- note: add '@MainActor' to make static property 'errorDomain' part of global actor 'MainActor'
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
48 |
49 |     /// The error code within the given domain.
[12/12] Compiling GoldenKey Cryptor.swift
/Users/admin/builder/spi-builder-workspace/GoldenKey/CommonCrypto/Cryptor.swift:157:46: warning: forming 'UnsafeRawPointer' to a variable of type 'Optional<Data>'; this is likely incorrect because 'Optional<Data>' may contain an object reference.
155 |     public func reset(iv: Data? = nil) throws {
156 |         var vector = iv
157 |         let status = CCCryptorReset(cryptor, &vector)
    |                                              `- warning: forming 'UnsafeRawPointer' to a variable of type 'Optional<Data>'; this is likely incorrect because 'Optional<Data>' may contain an object reference.
158 |         try CryptorError.verify(status)
159 |     }
Build complete! (5.64s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "GoldenKey",
  "name" : "GoldenKey",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "macos",
      "version" : "10.12"
    },
    {
      "name" : "ios",
      "version" : "10.0"
    },
    {
      "name" : "tvos",
      "version" : "10.0"
    },
    {
      "name" : "watchos",
      "version" : "3.0"
    }
  ],
  "products" : [
    {
      "name" : "GoldenKey",
      "targets" : [
        "GoldenKey"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "swift_languages_versions" : [
    "5"
  ],
  "targets" : [
    {
      "c99name" : "GoldenKeyTests",
      "module_type" : "SwiftTarget",
      "name" : "GoldenKeyTests",
      "path" : "GoldenKeyTests",
      "sources" : [
        "CommonCrypto/CryptorTests.swift",
        "CommonCrypto/DigestTests.swift",
        "CommonCrypto/GoldenKeyTests.swift",
        "CommonCrypto/HMACTests.swift",
        "CommonCrypto/PBKDF2Tests.swift",
        "CommonCrypto/RandomBytesTests.swift"
      ],
      "target_dependencies" : [
        "GoldenKey"
      ],
      "type" : "test"
    },
    {
      "c99name" : "GoldenKey",
      "module_type" : "SwiftTarget",
      "name" : "GoldenKey",
      "path" : "GoldenKey",
      "product_memberships" : [
        "GoldenKey"
      ],
      "sources" : [
        "CommonCrypto/Cryptor.swift",
        "CommonCrypto/CryptorAlgorithm.swift",
        "CommonCrypto/CryptorError.swift",
        "CommonCrypto/CryptorOptions.swift",
        "CommonCrypto/Digest.swift",
        "CommonCrypto/HMAC.swift",
        "CommonCrypto/PBKDF2.swift",
        "CommonCrypto/RandomBytes.swift",
        "CommonCrypto/SecurityError.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.0"
}
Done.