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, reference main (0b0a36), with Swift 6.1 for macOS (SPM) on 26 Apr 2025 22:59:52 UTC.

Swift 6 data race errors: 2

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/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
========================================
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": "uniqueid",
      "name": "UniqueID",
      "url": "https://github.com/karwa/uniqueid.git",
      "version": "unspecified",
      "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/uniqueid",
      "dependencies": [
      ]
    }
  ]
}
Fetching https://github.com/karwa/uniqueid.git
[5/439] Fetching uniqueid
Fetched https://github.com/karwa/uniqueid.git from cache (0.87s)
Creating working copy for https://github.com/karwa/uniqueid.git
Working copy of https://github.com/karwa/uniqueid.git resolved at main (0b0a369)
warning: '.resolve-product-dependencies': dependency 'uniqueid' 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/karwa/uniqueid.git
https://github.com/karwa/uniqueid.git
{
  "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"
}
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/11] Compiling UniqueID UniqueID.swift
[4/11] Compiling UniqueID UniqueID+Serialization.swift
[5/11] Compiling UniqueID UniqueID+v4.swift
[6/11] Compiling UniqueID UniqueID+Parser.swift
[7/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 nonisolated 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 nonisolated 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: add '@MainActor' to make var '_uuidv6GeneratorState' part of global actor 'MainActor'
    |              `- 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 nonisolated 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 nonisolated 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: add '@MainActor' to make var '_uuidv6GeneratorStateLock' part of global actor 'MainActor'
    |                `- 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())
[8/11] Compiling UniqueID Time.swift
[9/11] Compiling UniqueID UniqueID+Components.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 nonisolated 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 nonisolated 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: add '@MainActor' to make var '_uuidv6GeneratorState' part of global actor 'MainActor'
    |              `- 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 nonisolated 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 nonisolated 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: add '@MainActor' to make var '_uuidv6GeneratorStateLock' part of global actor 'MainActor'
    |                `- 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! (4.05s)
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.