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 MnemonicSwift, reference 2.2.4 (716a2c), with Swift 6.0 for macOS (SPM) on 14 Sep 2024 21:42:04 UTC.

Swift 6 data race errors: 2

Build Command

env DEVELOPER_DIR=/Applications/Xcode-16.0.0-Release.Candidate.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.53.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/Electric-Coin-Company/MnemonicSwift.git
Reference: 2.2.4
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/Electric-Coin-Company/MnemonicSwift
 * tag               2.2.4      -> FETCH_HEAD
HEAD is now at 716a2c3 Merge pull request #33 from zcash-hackworks/release/2.2.4
Cloned https://github.com/Electric-Coin-Company/MnemonicSwift.git
Revision (git rev-parse @):
716a2c32ac2bbd8a1499ac834077df42b75edc85
SUCCESS checkout https://github.com/Electric-Coin-Company/MnemonicSwift.git at 2.2.4
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.0
Building package at path:  $PWD
https://github.com/Electric-Coin-Company/MnemonicSwift.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.0.0-Release.Candidate.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete
Building for debugging...
[0/3] Write sources
[2/3] Write swift-version-117DEE11B69C53C9.txt
[4/60] Compiling Crypto AES-GCM.swift
[5/60] Compiling Crypto AES-GCM_boring.swift
[6/60] Compiling Crypto ChaChaPoly_boring.swift
[7/60] Compiling Crypto ChaChaPoly.swift
[8/60] Compiling Crypto Cipher.swift
[9/60] Compiling Crypto Nonces.swift
[10/60] Compiling Crypto ASN1.swift
[11/66] Compiling Crypto EdDSA.swift
[12/66] Compiling Crypto Signature.swift
[13/66] Compiling Crypto ArbitraryPrecisionInteger_boring.swift
[14/66] Compiling Crypto CryptoKitErrors_boring.swift
[15/66] Compiling Crypto FiniteFieldArithmeticContext_boring.swift
[16/66] Compiling Crypto RNG_boring.swift
[17/66] Compiling Crypto Ed25519.swift
[18/66] Compiling Crypto NISTCurvesKeys.swift
[19/66] Compiling Crypto X25519Keys.swift
[20/66] Compiling Crypto SymmetricKeys.swift
[21/66] Compiling Crypto HMAC.swift
[22/66] Compiling Crypto MACFunctions.swift
[23/66] Compiling Crypto ECDH_boring.swift
[24/66] Compiling Crypto DH.swift
[25/66] Compiling Crypto ECDH.swift
[26/66] Compiling Crypto HKDF.swift
[27/66] Compiling Crypto AESWrap.swift
[28/66] Compiling Crypto AESWrap_boring.swift
[29/66] Emitting module Crypto
[30/66] Compiling Crypto Ed25519_boring.swift
[31/66] Compiling Crypto EllipticCurvePoint_boring.swift
[32/66] Compiling Crypto EllipticCurve_boring.swift
[33/66] Compiling Crypto NISTCurvesKeys_boring.swift
[34/66] Compiling Crypto X25519Keys_boring.swift
[35/66] Compiling Crypto Curve25519.swift
[36/66] Compiling Crypto PEMDocument.swift
[37/66] Compiling Crypto PKCS8PrivateKey.swift
[38/66] Compiling Crypto SEC1PrivateKey.swift
[39/66] Compiling Crypto SubjectPublicKeyInfo.swift
[40/66] Compiling Crypto CryptoKitErrors.swift
[41/66] Compiling Crypto Digest_boring.swift
[42/66] Compiling Crypto MessageAuthenticationCode.swift
[43/66] Compiling Crypto AES.swift
[44/66] Compiling Crypto ECDSASignature_boring.swift
[45/66] Compiling Crypto ECDSA_boring.swift
[46/66] Compiling Crypto EdDSA_boring.swift
[47/66] Compiling Crypto ECDSA.swift
[48/66] Compiling Crypto Digest.swift
[49/66] Compiling Crypto Digests.swift
[50/66] Compiling Crypto HashFunctions.swift
[51/66] Compiling Crypto HashFunctions_SHA2.swift
[52/66] Compiling Crypto Insecure.swift
[53/66] Compiling Crypto Insecure_HashFunctions.swift
[54/66] Compiling Crypto ASN1BitString.swift
[55/66] Compiling Crypto ASN1Identifier.swift
[56/66] Compiling Crypto ASN1Integer.swift
[57/66] Compiling Crypto ASN1OctetString.swift
[58/66] Compiling Crypto ArraySliceBigint.swift
[59/66] Compiling Crypto ObjectIdentifier.swift
[60/66] Compiling Crypto ECDSASignature.swift
[61/66] Compiling Crypto SafeCompare_boring.swift
[62/66] Compiling Crypto Zeroization_boring.swift
[63/66] Compiling Crypto PrettyBytes.swift
[64/66] Compiling Crypto SafeCompare.swift
[65/66] Compiling Crypto SecureBytes.swift
[66/66] Compiling Crypto Zeroization.swift
[67/74] Compiling MnemonicSwift MnemonicInteractor.swift
/Users/admin/builder/spi-builder-workspace/MnemonicSwift/MnemonicInteractor.swift:187:23: warning: static property 'live' is not concurrency-safe because non-'Sendable' type 'MnemonicInteractor' may have shared mutable state; this is an error in the Swift 6 language mode
 29 | /// functions directly without instantiating anything.
 30 | ///
 31 | public struct MnemonicInteractor {
    |               `- note: consider making struct 'MnemonicInteractor' conform to the 'Sendable' protocol
 32 |
 33 |     /// Generate a mnemonic from the given hex string in the given language.
    :
185 |
186 | extension MnemonicInteractor {
187 |     public static let live = MnemonicInteractor()
    |                       |- warning: static property 'live' is not concurrency-safe because non-'Sendable' type 'MnemonicInteractor' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: annotate 'live' with '@MainActor' if property should only be accessed from the main actor
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
188 |
189 |     public static let throwing = MnemonicInteractor(
/Users/admin/builder/spi-builder-workspace/MnemonicSwift/MnemonicInteractor.swift:189:23: warning: static property 'throwing' is not concurrency-safe because non-'Sendable' type 'MnemonicInteractor' may have shared mutable state; this is an error in the Swift 6 language mode
 29 | /// functions directly without instantiating anything.
 30 | ///
 31 | public struct MnemonicInteractor {
    |               `- note: consider making struct 'MnemonicInteractor' conform to the 'Sendable' protocol
 32 |
 33 |     /// Generate a mnemonic from the given hex string in the given language.
    :
187 |     public static let live = MnemonicInteractor()
188 |
189 |     public static let throwing = MnemonicInteractor(
    |                       |- warning: static property 'throwing' is not concurrency-safe because non-'Sendable' type 'MnemonicInteractor' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: annotate 'throwing' with '@MainActor' if property should only be accessed from the main actor
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
190 |         mnemonicEnglishString: { _ in
191 |             throw MnemonicError.invalidHexstring
[68/74] Compiling MnemonicSwift String+MnemonicData.swift
[69/74] Compiling MnemonicSwift Data+BitArray.swift
[70/74] Compiling MnemonicSwift Chinese.swift
[71/74] Emitting module MnemonicSwift
/Users/admin/builder/spi-builder-workspace/MnemonicSwift/MnemonicInteractor.swift:187:23: warning: static property 'live' is not concurrency-safe because non-'Sendable' type 'MnemonicInteractor' may have shared mutable state; this is an error in the Swift 6 language mode
 29 | /// functions directly without instantiating anything.
 30 | ///
 31 | public struct MnemonicInteractor {
    |               `- note: consider making struct 'MnemonicInteractor' conform to the 'Sendable' protocol
 32 |
 33 |     /// Generate a mnemonic from the given hex string in the given language.
    :
185 |
186 | extension MnemonicInteractor {
187 |     public static let live = MnemonicInteractor()
    |                       |- warning: static property 'live' is not concurrency-safe because non-'Sendable' type 'MnemonicInteractor' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: annotate 'live' with '@MainActor' if property should only be accessed from the main actor
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
188 |
189 |     public static let throwing = MnemonicInteractor(
/Users/admin/builder/spi-builder-workspace/MnemonicSwift/MnemonicInteractor.swift:189:23: warning: static property 'throwing' is not concurrency-safe because non-'Sendable' type 'MnemonicInteractor' may have shared mutable state; this is an error in the Swift 6 language mode
 29 | /// functions directly without instantiating anything.
 30 | ///
 31 | public struct MnemonicInteractor {
    |               `- note: consider making struct 'MnemonicInteractor' conform to the 'Sendable' protocol
 32 |
 33 |     /// Generate a mnemonic from the given hex string in the given language.
    :
187 |     public static let live = MnemonicInteractor()
188 |
189 |     public static let throwing = MnemonicInteractor(
    |                       |- warning: static property 'throwing' is not concurrency-safe because non-'Sendable' type 'MnemonicInteractor' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: annotate 'throwing' with '@MainActor' if property should only be accessed from the main actor
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
190 |         mnemonicEnglishString: { _ in
191 |             throw MnemonicError.invalidHexstring
[72/74] Compiling MnemonicSwift PKC5.swift
[73/74] Compiling MnemonicSwift Mnemonic.swift
[74/74] Compiling MnemonicSwift English.swift
Build complete! (21.30s)
Fetching https://github.com/apple/swift-crypto.git
[1/8867] Fetching swift-crypto
Fetched https://github.com/apple/swift-crypto.git from cache (1.96s)
Computing version for https://github.com/apple/swift-crypto.git
Computed https://github.com/apple/swift-crypto.git at 2.1.0 (0.82s)
Creating working copy for https://github.com/apple/swift-crypto.git
Working copy of https://github.com/apple/swift-crypto.git resolved at 2.1.0
Build complete.
{
  "dependencies" : [
    {
      "identity" : "swift-crypto",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "2.1.0",
            "upper_bound" : "3.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/apple/swift-crypto.git"
    }
  ],
  "manifest_display_name" : "MnemonicSwift",
  "name" : "MnemonicSwift",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "ios",
      "version" : "13.0"
    },
    {
      "name" : "macos",
      "version" : "10.15"
    }
  ],
  "products" : [
    {
      "name" : "MnemonicSwift",
      "targets" : [
        "MnemonicSwift"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "MnemonicSwiftTests",
      "module_type" : "SwiftTarget",
      "name" : "MnemonicSwiftTests",
      "path" : "Tests",
      "resources" : [
        {
          "path" : "/Users/admin/builder/spi-builder-workspace/Tests/vectors.json",
          "rule" : {
            "copy" : {
            }
          }
        }
      ],
      "sources" : [
        "MnemonicSwiftTests.swift"
      ],
      "target_dependencies" : [
        "MnemonicSwift"
      ],
      "type" : "test"
    },
    {
      "c99name" : "MnemonicSwift",
      "module_type" : "SwiftTarget",
      "name" : "MnemonicSwift",
      "path" : "MnemonicSwift",
      "product_dependencies" : [
        "Crypto"
      ],
      "product_memberships" : [
        "MnemonicSwift"
      ],
      "sources" : [
        "Data+BitArray.swift",
        "Language/Chinese.swift",
        "Language/English.swift",
        "Mnemonic.swift",
        "MnemonicInteractor.swift",
        "PKC5.swift",
        "String+MnemonicData.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.3"
}
Done.