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 CryptorECC with Swift 6.0 for macOS (SPM).

Swift 6 data race errors: 6

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/Kitura/BlueECC.git
Reference: master
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/Kitura/BlueECC
 * branch            master     -> FETCH_HEAD
 * [new branch]      master     -> origin/master
HEAD is now at 1485268 Update podspec to specify Swift 5.2 as the minimum supported
Cloned https://github.com/Kitura/BlueECC.git
Revision (git rev-parse @):
1485268a54f8135435a825a855e733f026fa6cc8
SUCCESS checkout https://github.com/Kitura/BlueECC.git at master
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.0
Building package at path:  $workDir
https://github.com/Kitura/BlueECC.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/13] Compiling CryptorECC ECSignature.swift
[4/14] Compiling CryptorECC ECSignable.swift
[5/14] Compiling CryptorECC EllipticCurve.swift
/Users/admin/builder/spi-builder-workspace/Sources/CryptorECC/EllipticCurve.swift:36:23: warning: static property 'prime256v1' is not concurrency-safe because non-'Sendable' type 'EllipticCurve' may have shared mutable state; this is an error in the Swift 6 language mode
 24 | /// An extensible list of elliptic curves supported by this repository.
 25 | @available(macOS 10.13, iOS 11, watchOS 4.0, tvOS 11.0, *)
 26 | public struct EllipticCurve: Equatable, CustomStringConvertible {
    |               `- note: consider making struct 'EllipticCurve' conform to the 'Sendable' protocol
 27 |
 28 |     private let internalRepresentation: InternalRepresentation
    :
 34 |
 35 |     /// A prime256v1 curve.
 36 |     public static let prime256v1 = EllipticCurve.p256
    |                       |- warning: static property 'prime256v1' is not concurrency-safe because non-'Sendable' type 'EllipticCurve' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: annotate 'prime256v1' 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
 37 |
 38 |     /// A secp384r1 curve.
/Users/admin/builder/spi-builder-workspace/Sources/CryptorECC/EllipticCurve.swift:88:16: warning: static property 'p256' is not concurrency-safe because non-'Sendable' type 'EllipticCurve' may have shared mutable state; this is an error in the Swift 6 language mode
 24 | /// An extensible list of elliptic curves supported by this repository.
 25 | @available(macOS 10.13, iOS 11, watchOS 4.0, tvOS 11.0, *)
 26 | public struct EllipticCurve: Equatable, CustomStringConvertible {
    |               `- note: consider making struct 'EllipticCurve' conform to the 'Sendable' protocol
 27 |
 28 |     private let internalRepresentation: InternalRepresentation
    :
 86 |     #else
 87 |     /// Secure Hash Algorithm 2 256-bit
 88 |     static let p256 = EllipticCurve(internalRepresentation: .prime256v1,
    |                |- warning: static property 'p256' is not concurrency-safe because non-'Sendable' type 'EllipticCurve' may have shared mutable state; this is an error in the Swift 6 language mode
    |                |- note: annotate 'p256' 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
 89 |                                     signingAlgorithm: .ecdsaSignatureDigestX962SHA256,
 90 |                                     hashEngine: CC_SHA256,
/Users/admin/builder/spi-builder-workspace/Sources/CryptorECC/EllipticCurve.swift:39:23: warning: static property 'secp384r1' is not concurrency-safe because non-'Sendable' type 'EllipticCurve' may have shared mutable state; this is an error in the Swift 6 language mode
 24 | /// An extensible list of elliptic curves supported by this repository.
 25 | @available(macOS 10.13, iOS 11, watchOS 4.0, tvOS 11.0, *)
 26 | public struct EllipticCurve: Equatable, CustomStringConvertible {
    |               `- note: consider making struct 'EllipticCurve' conform to the 'Sendable' protocol
 27 |
 28 |     private let internalRepresentation: InternalRepresentation
    :
 37 |
 38 |     /// A secp384r1 curve.
 39 |     public static let secp384r1 = EllipticCurve.p384
    |                       |- warning: static property 'secp384r1' is not concurrency-safe because non-'Sendable' type 'EllipticCurve' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: annotate 'secp384r1' 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
 40 |
 41 |     /// A secp521r1 curve.
/Users/admin/builder/spi-builder-workspace/Sources/CryptorECC/EllipticCurve.swift:95:16: warning: static property 'p384' is not concurrency-safe because non-'Sendable' type 'EllipticCurve' may have shared mutable state; this is an error in the Swift 6 language mode
 24 | /// An extensible list of elliptic curves supported by this repository.
 25 | @available(macOS 10.13, iOS 11, watchOS 4.0, tvOS 11.0, *)
 26 | public struct EllipticCurve: Equatable, CustomStringConvertible {
    |               `- note: consider making struct 'EllipticCurve' conform to the 'Sendable' protocol
 27 |
 28 |     private let internalRepresentation: InternalRepresentation
    :
 93 |
 94 |     /// Secure Hash Algorithm 2 384-bit
 95 |     static let p384 = EllipticCurve(internalRepresentation: .secp384r1,
    |                |- warning: static property 'p384' is not concurrency-safe because non-'Sendable' type 'EllipticCurve' may have shared mutable state; this is an error in the Swift 6 language mode
    |                |- note: annotate 'p384' 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
 96 |                                     signingAlgorithm: .ecdsaSignatureDigestX962SHA384,
 97 |                                     hashEngine: CC_SHA384,
/Users/admin/builder/spi-builder-workspace/Sources/CryptorECC/EllipticCurve.swift:42:23: warning: static property 'secp521r1' is not concurrency-safe because non-'Sendable' type 'EllipticCurve' may have shared mutable state; this is an error in the Swift 6 language mode
 24 | /// An extensible list of elliptic curves supported by this repository.
 25 | @available(macOS 10.13, iOS 11, watchOS 4.0, tvOS 11.0, *)
 26 | public struct EllipticCurve: Equatable, CustomStringConvertible {
    |               `- note: consider making struct 'EllipticCurve' conform to the 'Sendable' protocol
 27 |
 28 |     private let internalRepresentation: InternalRepresentation
    :
 40 |
 41 |     /// A secp521r1 curve.
 42 |     public static let secp521r1 = EllipticCurve.p521
    |                       |- warning: static property 'secp521r1' is not concurrency-safe because non-'Sendable' type 'EllipticCurve' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: annotate 'secp521r1' 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
 43 |
 44 |     /// Checks if two Curves are equal, required for Equatable protocol.
/Users/admin/builder/spi-builder-workspace/Sources/CryptorECC/EllipticCurve.swift:102:16: warning: static property 'p521' is not concurrency-safe because non-'Sendable' type 'EllipticCurve' may have shared mutable state; this is an error in the Swift 6 language mode
 24 | /// An extensible list of elliptic curves supported by this repository.
 25 | @available(macOS 10.13, iOS 11, watchOS 4.0, tvOS 11.0, *)
 26 | public struct EllipticCurve: Equatable, CustomStringConvertible {
    |               `- note: consider making struct 'EllipticCurve' conform to the 'Sendable' protocol
 27 |
 28 |     private let internalRepresentation: InternalRepresentation
    :
100 |
101 |     /// Secure Hash Algorithm 512-bit
102 |     static let p521 = EllipticCurve(internalRepresentation: .secp521r1,
    |                |- warning: static property 'p521' is not concurrency-safe because non-'Sendable' type 'EllipticCurve' may have shared mutable state; this is an error in the Swift 6 language mode
    |                |- note: annotate 'p521' 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
103 |                                     signingAlgorithm: .ecdsaSignatureDigestX962SHA512,
104 |                                     hashEngine: CC_SHA512,
[6/14] Compiling CryptorECC ECEncryptable.swift
[7/14] Emitting module CryptorECC
/Users/admin/builder/spi-builder-workspace/Sources/CryptorECC/EllipticCurve.swift:36:23: warning: static property 'prime256v1' is not concurrency-safe because non-'Sendable' type 'EllipticCurve' may have shared mutable state; this is an error in the Swift 6 language mode
 24 | /// An extensible list of elliptic curves supported by this repository.
 25 | @available(macOS 10.13, iOS 11, watchOS 4.0, tvOS 11.0, *)
 26 | public struct EllipticCurve: Equatable, CustomStringConvertible {
    |               `- note: consider making struct 'EllipticCurve' conform to the 'Sendable' protocol
 27 |
 28 |     private let internalRepresentation: InternalRepresentation
    :
 34 |
 35 |     /// A prime256v1 curve.
 36 |     public static let prime256v1 = EllipticCurve.p256
    |                       |- warning: static property 'prime256v1' is not concurrency-safe because non-'Sendable' type 'EllipticCurve' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: annotate 'prime256v1' 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
 37 |
 38 |     /// A secp384r1 curve.
/Users/admin/builder/spi-builder-workspace/Sources/CryptorECC/EllipticCurve.swift:88:16: warning: static property 'p256' is not concurrency-safe because non-'Sendable' type 'EllipticCurve' may have shared mutable state; this is an error in the Swift 6 language mode
 24 | /// An extensible list of elliptic curves supported by this repository.
 25 | @available(macOS 10.13, iOS 11, watchOS 4.0, tvOS 11.0, *)
 26 | public struct EllipticCurve: Equatable, CustomStringConvertible {
    |               `- note: consider making struct 'EllipticCurve' conform to the 'Sendable' protocol
 27 |
 28 |     private let internalRepresentation: InternalRepresentation
    :
 86 |     #else
 87 |     /// Secure Hash Algorithm 2 256-bit
 88 |     static let p256 = EllipticCurve(internalRepresentation: .prime256v1,
    |                |- warning: static property 'p256' is not concurrency-safe because non-'Sendable' type 'EllipticCurve' may have shared mutable state; this is an error in the Swift 6 language mode
    |                |- note: annotate 'p256' 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
 89 |                                     signingAlgorithm: .ecdsaSignatureDigestX962SHA256,
 90 |                                     hashEngine: CC_SHA256,
/Users/admin/builder/spi-builder-workspace/Sources/CryptorECC/EllipticCurve.swift:39:23: warning: static property 'secp384r1' is not concurrency-safe because non-'Sendable' type 'EllipticCurve' may have shared mutable state; this is an error in the Swift 6 language mode
 24 | /// An extensible list of elliptic curves supported by this repository.
 25 | @available(macOS 10.13, iOS 11, watchOS 4.0, tvOS 11.0, *)
 26 | public struct EllipticCurve: Equatable, CustomStringConvertible {
    |               `- note: consider making struct 'EllipticCurve' conform to the 'Sendable' protocol
 27 |
 28 |     private let internalRepresentation: InternalRepresentation
    :
 37 |
 38 |     /// A secp384r1 curve.
 39 |     public static let secp384r1 = EllipticCurve.p384
    |                       |- warning: static property 'secp384r1' is not concurrency-safe because non-'Sendable' type 'EllipticCurve' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: annotate 'secp384r1' 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
 40 |
 41 |     /// A secp521r1 curve.
/Users/admin/builder/spi-builder-workspace/Sources/CryptorECC/EllipticCurve.swift:95:16: warning: static property 'p384' is not concurrency-safe because non-'Sendable' type 'EllipticCurve' may have shared mutable state; this is an error in the Swift 6 language mode
 24 | /// An extensible list of elliptic curves supported by this repository.
 25 | @available(macOS 10.13, iOS 11, watchOS 4.0, tvOS 11.0, *)
 26 | public struct EllipticCurve: Equatable, CustomStringConvertible {
    |               `- note: consider making struct 'EllipticCurve' conform to the 'Sendable' protocol
 27 |
 28 |     private let internalRepresentation: InternalRepresentation
    :
 93 |
 94 |     /// Secure Hash Algorithm 2 384-bit
 95 |     static let p384 = EllipticCurve(internalRepresentation: .secp384r1,
    |                |- warning: static property 'p384' is not concurrency-safe because non-'Sendable' type 'EllipticCurve' may have shared mutable state; this is an error in the Swift 6 language mode
    |                |- note: annotate 'p384' 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
 96 |                                     signingAlgorithm: .ecdsaSignatureDigestX962SHA384,
 97 |                                     hashEngine: CC_SHA384,
/Users/admin/builder/spi-builder-workspace/Sources/CryptorECC/EllipticCurve.swift:42:23: warning: static property 'secp521r1' is not concurrency-safe because non-'Sendable' type 'EllipticCurve' may have shared mutable state; this is an error in the Swift 6 language mode
 24 | /// An extensible list of elliptic curves supported by this repository.
 25 | @available(macOS 10.13, iOS 11, watchOS 4.0, tvOS 11.0, *)
 26 | public struct EllipticCurve: Equatable, CustomStringConvertible {
    |               `- note: consider making struct 'EllipticCurve' conform to the 'Sendable' protocol
 27 |
 28 |     private let internalRepresentation: InternalRepresentation
    :
 40 |
 41 |     /// A secp521r1 curve.
 42 |     public static let secp521r1 = EllipticCurve.p521
    |                       |- warning: static property 'secp521r1' is not concurrency-safe because non-'Sendable' type 'EllipticCurve' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: annotate 'secp521r1' 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
 43 |
 44 |     /// Checks if two Curves are equal, required for Equatable protocol.
/Users/admin/builder/spi-builder-workspace/Sources/CryptorECC/EllipticCurve.swift:102:16: warning: static property 'p521' is not concurrency-safe because non-'Sendable' type 'EllipticCurve' may have shared mutable state; this is an error in the Swift 6 language mode
 24 | /// An extensible list of elliptic curves supported by this repository.
 25 | @available(macOS 10.13, iOS 11, watchOS 4.0, tvOS 11.0, *)
 26 | public struct EllipticCurve: Equatable, CustomStringConvertible {
    |               `- note: consider making struct 'EllipticCurve' conform to the 'Sendable' protocol
 27 |
 28 |     private let internalRepresentation: InternalRepresentation
    :
100 |
101 |     /// Secure Hash Algorithm 512-bit
102 |     static let p521 = EllipticCurve(internalRepresentation: .secp521r1,
    |                |- warning: static property 'p521' is not concurrency-safe because non-'Sendable' type 'EllipticCurve' may have shared mutable state; this is an error in the Swift 6 language mode
    |                |- note: annotate 'p521' 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
103 |                                     signingAlgorithm: .ecdsaSignatureDigestX962SHA512,
104 |                                     hashEngine: CC_SHA512,
[8/14] Compiling CryptorECC ECError.swift
[9/14] Compiling CryptorECC ECDecryptable.swift
[10/14] Compiling CryptorECC ECPublicKey.swift
[11/14] Compiling CryptorECC ECPrivateKey.swift
/Users/admin/builder/spi-builder-workspace/Sources/CryptorECC/EllipticCurve.swift:36:23: warning: static property 'prime256v1' is not concurrency-safe because non-'Sendable' type 'EllipticCurve' may have shared mutable state; this is an error in the Swift 6 language mode
 24 | /// An extensible list of elliptic curves supported by this repository.
 25 | @available(macOS 10.13, iOS 11, watchOS 4.0, tvOS 11.0, *)
 26 | public struct EllipticCurve: Equatable, CustomStringConvertible {
    |               `- note: consider making struct 'EllipticCurve' conform to the 'Sendable' protocol
 27 |
 28 |     private let internalRepresentation: InternalRepresentation
    :
 34 |
 35 |     /// A prime256v1 curve.
 36 |     public static let prime256v1 = EllipticCurve.p256
    |                       |- warning: static property 'prime256v1' is not concurrency-safe because non-'Sendable' type 'EllipticCurve' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: annotate 'prime256v1' 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
 37 |
 38 |     /// A secp384r1 curve.
/Users/admin/builder/spi-builder-workspace/Sources/CryptorECC/EllipticCurve.swift:39:23: warning: static property 'secp384r1' is not concurrency-safe because non-'Sendable' type 'EllipticCurve' may have shared mutable state; this is an error in the Swift 6 language mode
 24 | /// An extensible list of elliptic curves supported by this repository.
 25 | @available(macOS 10.13, iOS 11, watchOS 4.0, tvOS 11.0, *)
 26 | public struct EllipticCurve: Equatable, CustomStringConvertible {
    |               `- note: consider making struct 'EllipticCurve' conform to the 'Sendable' protocol
 27 |
 28 |     private let internalRepresentation: InternalRepresentation
    :
 37 |
 38 |     /// A secp384r1 curve.
 39 |     public static let secp384r1 = EllipticCurve.p384
    |                       |- warning: static property 'secp384r1' is not concurrency-safe because non-'Sendable' type 'EllipticCurve' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: annotate 'secp384r1' 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
 40 |
 41 |     /// A secp521r1 curve.
/Users/admin/builder/spi-builder-workspace/Sources/CryptorECC/EllipticCurve.swift:42:23: warning: static property 'secp521r1' is not concurrency-safe because non-'Sendable' type 'EllipticCurve' may have shared mutable state; this is an error in the Swift 6 language mode
 24 | /// An extensible list of elliptic curves supported by this repository.
 25 | @available(macOS 10.13, iOS 11, watchOS 4.0, tvOS 11.0, *)
 26 | public struct EllipticCurve: Equatable, CustomStringConvertible {
    |               `- note: consider making struct 'EllipticCurve' conform to the 'Sendable' protocol
 27 |
 28 |     private let internalRepresentation: InternalRepresentation
    :
 40 |
 41 |     /// A secp521r1 curve.
 42 |     public static let secp521r1 = EllipticCurve.p521
    |                       |- warning: static property 'secp521r1' is not concurrency-safe because non-'Sendable' type 'EllipticCurve' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: annotate 'secp521r1' 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
 43 |
 44 |     /// Checks if two Curves are equal, required for Equatable protocol.
[12/14] Compiling CryptorECC ASN1.swift
[13/14] Compiling CryptorECC Data+Extensions.swift
[14/14] Compiling CryptorECC SSLPointerTricks.swift
Build complete! (23.23s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "CryptorECC",
  "name" : "CryptorECC",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "CryptorECC",
      "targets" : [
        "CryptorECC"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "CryptorECCTests",
      "module_type" : "SwiftTarget",
      "name" : "CryptorECCTests",
      "path" : "Tests/CryptorECCTests",
      "sources" : [
        "CryptorECCTests.swift",
        "XCTestManifests.swift"
      ],
      "target_dependencies" : [
        "CryptorECC"
      ],
      "type" : "test"
    },
    {
      "c99name" : "CryptorECC",
      "module_type" : "SwiftTarget",
      "name" : "CryptorECC",
      "path" : "Sources/CryptorECC",
      "product_memberships" : [
        "CryptorECC"
      ],
      "sources" : [
        "ASN1.swift",
        "Data+Extensions.swift",
        "ECDecryptable.swift",
        "ECEncryptable.swift",
        "ECError.swift",
        "ECPrivateKey.swift",
        "ECPublicKey.swift",
        "ECSignable.swift",
        "ECSignature.swift",
        "EllipticCurve.swift",
        "SSLPointerTricks.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.0"
}
Done.
This is a staging environment. For live and up-to-date package information, visit swiftpackageindex.com.