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 1.0.4 (0b0a36), with Swift 6.0 for macOS (SPM) on 28 Nov 2024 16:42:08 UTC.

Swift 6 data race errors: 2

Build Command

env DEVELOPER_DIR=/Applications/Xcode-16.1.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.58.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/karwa/uniqueid.git
Reference: 1.0.4
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/karwa/uniqueid
 * tag               1.0.4      -> FETCH_HEAD
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 1.0.4
========================================
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
[1/439] Fetching uniqueid
Fetched https://github.com/karwa/uniqueid.git from cache (0.96s)
Creating working copy for https://github.com/karwa/uniqueid.git
Working copy of https://github.com/karwa/uniqueid.git resolved at 1.0.4 (0b0a369)
warning: '.resolve-product-dependencies': dependency 'uniqueid' is not used by any target
Found 0 product dependencies
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.0
Building package at path:  $PWD
https://github.com/karwa/uniqueid.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.1.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--7754E27361AE5C74.txt
[3/11] Compiling UniqueID UniqueID.swift
[4/11] Compiling UniqueID UniqueID+v4.swift
[5/11] Compiling UniqueID UniqueID+Components.swift
[6/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: 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 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: 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())
[7/11] Compiling UniqueID UniqueID+Serialization.swift
[8/11] Compiling UniqueID UniqueID+Parser.swift
[9/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: 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 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: 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())
[10/11] Compiling UniqueID Time.swift
[11/11] Compiling UniqueID Foundation+UniqueID.swift
Build complete! (7.79s)
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.