The Swift Package Index logo.Swift Package Index

Has it really been five years since Swift Package Index launched? Read our anniversary blog post!

Build Information

Successful build of UncommonCrypto, reference 0.2.1 (075344), with Swift 6.1 for macOS (SPM) on 30 Apr 2025 00:45:30 UTC.

Swift 6 data race errors: 4

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.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/tesseract-one/UncommonCrypto.swift.git
Reference: 0.2.1
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/tesseract-one/UncommonCrypto.swift
 * tag               0.2.1      -> FETCH_HEAD
HEAD is now at 075344f fixed warning
Cloned https://github.com/tesseract-one/UncommonCrypto.swift.git
Revision (git rev-parse @):
075344faec47dadba98bef6a319e310c98be0820
SUCCESS checkout https://github.com/tesseract-one/UncommonCrypto.swift.git at 0.2.1
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.1
Building package at path:  $PWD
https://github.com/tesseract-one/UncommonCrypto.swift.git
https://github.com/tesseract-one/UncommonCrypto.swift.git
{
  "dependencies" : [
  ],
  "manifest_display_name" : "UncommonCrypto",
  "name" : "UncommonCrypto",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "macos",
      "version" : "10.13"
    },
    {
      "name" : "ios",
      "version" : "11.0"
    },
    {
      "name" : "tvos",
      "version" : "11.0"
    },
    {
      "name" : "watchos",
      "version" : "6.0"
    }
  ],
  "products" : [
    {
      "name" : "UncommonCrypto",
      "targets" : [
        "UncommonCrypto"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    },
    {
      "name" : "CUncommonCrypto",
      "targets" : [
        "CUncommonCrypto"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "UncommonCryptoTests",
      "module_type" : "SwiftTarget",
      "name" : "UncommonCryptoTests",
      "path" : "Tests/UncommonCryptoTests",
      "sources" : [
        "Hex.swift",
        "SHA1.swift",
        "SHA2.swift"
      ],
      "target_dependencies" : [
        "UncommonCrypto"
      ],
      "type" : "test"
    },
    {
      "c99name" : "UncommonCrypto",
      "module_type" : "SwiftTarget",
      "name" : "UncommonCrypto",
      "path" : "Sources/UncommonCrypto",
      "product_memberships" : [
        "UncommonCrypto"
      ],
      "sources" : [
        "HMAC.swift",
        "PBKDF2.swift",
        "SHA1.swift",
        "SHA2.swift",
        "SHA3.swift",
        "SecureRandom.swift"
      ],
      "target_dependencies" : [
        "CUncommonCrypto"
      ],
      "type" : "library"
    },
    {
      "c99name" : "CUncommonCrypto",
      "module_type" : "ClangTarget",
      "name" : "CUncommonCrypto",
      "path" : "Sources/CUncommonCrypto",
      "product_memberships" : [
        "UncommonCrypto",
        "CUncommonCrypto"
      ],
      "sources" : [
        "hmac.c",
        "memzero.c",
        "pbkdf2.c",
        "sha2.c",
        "sha3.c"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.4"
}
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/7] Write sources
[1/7] Write swift-version-2F0A5646E1D333AE.txt
[2/7] Compiling CUncommonCrypto sha3.c
[3/7] Compiling CUncommonCrypto hmac.c
[4/7] Compiling CUncommonCrypto pbkdf2.c
[5/7] Compiling CUncommonCrypto sha2.c
[6/7] Compiling CUncommonCrypto memzero.c
[8/14] Compiling UncommonCrypto SHA1.swift
[9/14] Compiling UncommonCrypto PBKDF2.swift
[10/14] Compiling UncommonCrypto SHA2.swift
/Users/admin/builder/spi-builder-workspace/Sources/UncommonCrypto/SHA2.swift:133:16: warning: static property 'outSize' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
131 |     }
132 |
133 |     static var outSize: Int = Int(CC_SHA256_DIGEST_LENGTH)
    |                |- warning: static property 'outSize' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                |- note: convert 'outSize' to a 'let' constant to make 'Sendable' shared state immutable
    |                |- note: add '@MainActor' to make static property 'outSize' part of global actor 'MainActor'
    |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
134 | }
135 |
/Users/admin/builder/spi-builder-workspace/Sources/UncommonCrypto/SHA2.swift:163:16: warning: static property 'outSize' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
161 |     }
162 |
163 |     static var outSize: Int = Int(CC_SHA512_DIGEST_LENGTH)
    |                |- warning: static property 'outSize' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                |- note: convert 'outSize' to a 'let' constant to make 'Sendable' shared state immutable
    |                |- note: add '@MainActor' to make static property 'outSize' part of global actor 'MainActor'
    |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
164 | }
165 | #else
[11/14] Compiling UncommonCrypto SecureRandom.swift
[12/14] Compiling UncommonCrypto SHA3.swift
[13/14] Emitting module UncommonCrypto
/Users/admin/builder/spi-builder-workspace/Sources/UncommonCrypto/HMAC.swift:145:16: warning: static property 'outSize' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
143 |     }
144 |
145 |     static var outSize: Int = Int(CC_SHA256_DIGEST_LENGTH)
    |                |- warning: static property 'outSize' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                |- note: convert 'outSize' to a 'let' constant to make 'Sendable' shared state immutable
    |                |- note: add '@MainActor' to make static property 'outSize' part of global actor 'MainActor'
    |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
146 | }
147 |
/Users/admin/builder/spi-builder-workspace/Sources/UncommonCrypto/HMAC.swift:159:16: warning: static property 'outSize' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
157 |     }
158 |
159 |     static var outSize: Int = Int(CC_SHA512_DIGEST_LENGTH)
    |                |- warning: static property 'outSize' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                |- note: convert 'outSize' to a 'let' constant to make 'Sendable' shared state immutable
    |                |- note: add '@MainActor' to make static property 'outSize' part of global actor 'MainActor'
    |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
160 | }
161 | #else
/Users/admin/builder/spi-builder-workspace/Sources/UncommonCrypto/SHA2.swift:133:16: warning: static property 'outSize' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
131 |     }
132 |
133 |     static var outSize: Int = Int(CC_SHA256_DIGEST_LENGTH)
    |                |- warning: static property 'outSize' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                |- note: convert 'outSize' to a 'let' constant to make 'Sendable' shared state immutable
    |                |- note: add '@MainActor' to make static property 'outSize' part of global actor 'MainActor'
    |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
134 | }
135 |
/Users/admin/builder/spi-builder-workspace/Sources/UncommonCrypto/SHA2.swift:163:16: warning: static property 'outSize' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
161 |     }
162 |
163 |     static var outSize: Int = Int(CC_SHA512_DIGEST_LENGTH)
    |                |- warning: static property 'outSize' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                |- note: convert 'outSize' to a 'let' constant to make 'Sendable' shared state immutable
    |                |- note: add '@MainActor' to make static property 'outSize' part of global actor 'MainActor'
    |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
164 | }
165 | #else
[14/14] Compiling UncommonCrypto HMAC.swift
/Users/admin/builder/spi-builder-workspace/Sources/UncommonCrypto/HMAC.swift:145:16: warning: static property 'outSize' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
143 |     }
144 |
145 |     static var outSize: Int = Int(CC_SHA256_DIGEST_LENGTH)
    |                |- warning: static property 'outSize' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                |- note: convert 'outSize' to a 'let' constant to make 'Sendable' shared state immutable
    |                |- note: add '@MainActor' to make static property 'outSize' part of global actor 'MainActor'
    |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
146 | }
147 |
/Users/admin/builder/spi-builder-workspace/Sources/UncommonCrypto/HMAC.swift:159:16: warning: static property 'outSize' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
157 |     }
158 |
159 |     static var outSize: Int = Int(CC_SHA512_DIGEST_LENGTH)
    |                |- warning: static property 'outSize' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                |- note: convert 'outSize' to a 'let' constant to make 'Sendable' shared state immutable
    |                |- note: add '@MainActor' to make static property 'outSize' part of global actor 'MainActor'
    |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
160 | }
161 | #else
Build complete! (5.11s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "UncommonCrypto",
  "name" : "UncommonCrypto",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "macos",
      "version" : "10.13"
    },
    {
      "name" : "ios",
      "version" : "11.0"
    },
    {
      "name" : "tvos",
      "version" : "11.0"
    },
    {
      "name" : "watchos",
      "version" : "6.0"
    }
  ],
  "products" : [
    {
      "name" : "UncommonCrypto",
      "targets" : [
        "UncommonCrypto"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    },
    {
      "name" : "CUncommonCrypto",
      "targets" : [
        "CUncommonCrypto"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "UncommonCryptoTests",
      "module_type" : "SwiftTarget",
      "name" : "UncommonCryptoTests",
      "path" : "Tests/UncommonCryptoTests",
      "sources" : [
        "Hex.swift",
        "SHA1.swift",
        "SHA2.swift"
      ],
      "target_dependencies" : [
        "UncommonCrypto"
      ],
      "type" : "test"
    },
    {
      "c99name" : "UncommonCrypto",
      "module_type" : "SwiftTarget",
      "name" : "UncommonCrypto",
      "path" : "Sources/UncommonCrypto",
      "product_memberships" : [
        "UncommonCrypto"
      ],
      "sources" : [
        "HMAC.swift",
        "PBKDF2.swift",
        "SHA1.swift",
        "SHA2.swift",
        "SHA3.swift",
        "SecureRandom.swift"
      ],
      "target_dependencies" : [
        "CUncommonCrypto"
      ],
      "type" : "library"
    },
    {
      "c99name" : "CUncommonCrypto",
      "module_type" : "ClangTarget",
      "name" : "CUncommonCrypto",
      "path" : "Sources/CUncommonCrypto",
      "product_memberships" : [
        "UncommonCrypto",
        "CUncommonCrypto"
      ],
      "sources" : [
        "hmac.c",
        "memzero.c",
        "pbkdf2.c",
        "sha2.c",
        "sha3.c"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.4"
}
Done.