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

Swift 6 data race errors: 2

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/karwa/uniqueid.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/karwa/uniqueid
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at 0b0a369 [README] Add package index badges
Cloned https://github.com/karwa/uniqueid.git
Revision (git rev-parse @):
0b0a36949d1ff5e02dc1c0aaee7461f12a768d07
SUCCESS checkout https://github.com/karwa/uniqueid.git at main
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.0
Building package at path:  $workDir
https://github.com/karwa/uniqueid.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/11] Compiling UniqueID UniqueID.swift
[4/11] Compiling UniqueID UniqueID+v6.swift
/Users/admin/builder/spi-builder-workspace/Sources/UniqueID/UniqueID+v6.swift:40:14: warning: var '_uuidv6GeneratorState' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
 38 |
 39 | @usableFromInline
 40 | internal var _uuidv6GeneratorState = UUIDv6GeneratorState()
    |              |- warning: var '_uuidv6GeneratorState' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
    |              |- note: convert '_uuidv6GeneratorState' to a 'let' constant to make 'Sendable' shared state immutable
    |              |- note: annotate '_uuidv6GeneratorState' 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
 41 |
 42 | #if canImport(Darwin)
/Users/admin/builder/spi-builder-workspace/Sources/UniqueID/UniqueID+v6.swift:47:16: warning: var '_uuidv6GeneratorStateLock' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
 45 |
 46 |   @usableFromInline
 47 |   internal var _uuidv6GeneratorStateLock: UnsafeMutablePointer<os_unfair_lock> = {
    |                |- warning: var '_uuidv6GeneratorStateLock' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
    |                |- note: convert '_uuidv6GeneratorStateLock' to a 'let' constant to make 'Sendable' shared state immutable
    |                |- note: annotate '_uuidv6GeneratorStateLock' 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
 48 |     let lock = UnsafeMutablePointer<os_unfair_lock>.allocate(capacity: 1)
 49 |     lock.initialize(to: os_unfair_lock())
[5/11] Compiling UniqueID UniqueID+Components.swift
[6/11] Compiling UniqueID UniqueID+Serialization.swift
[7/11] Compiling UniqueID UniqueID+v4.swift
[8/11] Compiling UniqueID Time.swift
[9/11] Compiling UniqueID UniqueID+Parser.swift
[10/11] Emitting module UniqueID
/Users/admin/builder/spi-builder-workspace/Sources/UniqueID/UniqueID+v6.swift:40:14: warning: var '_uuidv6GeneratorState' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
 38 |
 39 | @usableFromInline
 40 | internal var _uuidv6GeneratorState = UUIDv6GeneratorState()
    |              |- warning: var '_uuidv6GeneratorState' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
    |              |- note: convert '_uuidv6GeneratorState' to a 'let' constant to make 'Sendable' shared state immutable
    |              |- note: annotate '_uuidv6GeneratorState' 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
 41 |
 42 | #if canImport(Darwin)
/Users/admin/builder/spi-builder-workspace/Sources/UniqueID/UniqueID+v6.swift:47:16: warning: var '_uuidv6GeneratorStateLock' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
 45 |
 46 |   @usableFromInline
 47 |   internal var _uuidv6GeneratorStateLock: UnsafeMutablePointer<os_unfair_lock> = {
    |                |- warning: var '_uuidv6GeneratorStateLock' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
    |                |- note: convert '_uuidv6GeneratorStateLock' to a 'let' constant to make 'Sendable' shared state immutable
    |                |- note: annotate '_uuidv6GeneratorStateLock' 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
 48 |     let lock = UnsafeMutablePointer<os_unfair_lock>.allocate(capacity: 1)
 49 |     lock.initialize(to: os_unfair_lock())
[11/11] Compiling UniqueID Foundation+UniqueID.swift
Build complete! (18.44s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "UniqueID",
  "name" : "UniqueID",
  "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" : "UniqueID",
      "targets" : [
        "UniqueID"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "UniqueIDTests",
      "module_type" : "SwiftTarget",
      "name" : "UniqueIDTests",
      "path" : "Tests/UniqueIDTests",
      "sources" : [
        "UUIDv6Tests.swift",
        "UniqueIDTests.swift"
      ],
      "target_dependencies" : [
        "UniqueID"
      ],
      "type" : "test"
    },
    {
      "c99name" : "UniqueID",
      "module_type" : "SwiftTarget",
      "name" : "UniqueID",
      "path" : "Sources/UniqueID",
      "product_memberships" : [
        "UniqueID"
      ],
      "sources" : [
        "Foundation+UniqueID.swift",
        "Time.swift",
        "UniqueID+Components.swift",
        "UniqueID+Parser.swift",
        "UniqueID+Serialization.swift",
        "UniqueID+v4.swift",
        "UniqueID+v6.swift",
        "UniqueID.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.5"
}
Done.
This is a staging environment. For live and up-to-date package information, visit swiftpackageindex.com.