The Swift Package Index logo.Swift Package Index

Build Information

Successful build of ContextuallyUniqueIdentifier, reference 1.2.0 (ede27f), with Swift 6.1 for macOS (SPM) on 27 Jan 2026 06:42:01 UTC.

Swift 6 data race errors: 3

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.68.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/RougeWare/Swift-ContextuallyUniqueIdentifier.git
Reference: 1.2.0
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/RougeWare/Swift-ContextuallyUniqueIdentifier
 * tag               1.2.0      -> FETCH_HEAD
HEAD is now at ede27fa Merge pull request #3 from RougeWare/feature/renaming/COID
Cloned https://github.com/RougeWare/Swift-ContextuallyUniqueIdentifier.git
Revision (git rev-parse @):
ede27fa9e881b4c928559bf281bb9b0154e96f20
SUCCESS checkout https://github.com/RougeWare/Swift-ContextuallyUniqueIdentifier.git at 1.2.0
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.1
Building package at path:  $PWD
https://github.com/RougeWare/Swift-ContextuallyUniqueIdentifier.git
https://github.com/RougeWare/Swift-ContextuallyUniqueIdentifier.git
{
  "dependencies" : [
    {
      "identity" : "swift-simple-logging",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "0.5.2",
            "upper_bound" : "1.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/RougeWare/Swift-Simple-Logging.git"
    }
  ],
  "manifest_display_name" : "ContextuallyUniqueIdentifier",
  "name" : "ContextuallyUniqueIdentifier",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "COID",
      "targets" : [
        "COID"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    },
    {
      "name" : "AppUniqueIdentifier",
      "targets" : [
        "COID"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "ContextuallyUniqueIdentifierTests",
      "module_type" : "SwiftTarget",
      "name" : "ContextuallyUniqueIdentifierTests",
      "path" : "Tests/ContextuallyUniqueIdentifierTests",
      "sources" : [
        "ContextuallyUniqueIdentifierTests.swift"
      ],
      "target_dependencies" : [
        "COID"
      ],
      "type" : "test"
    },
    {
      "c99name" : "COID",
      "module_type" : "SwiftTarget",
      "name" : "COID",
      "path" : "Sources/COID",
      "product_dependencies" : [
        "SimpleLogging"
      ],
      "product_memberships" : [
        "COID",
        "AppUniqueIdentifier"
      ],
      "sources" : [
        "ContextuallyUniqueIdentifier.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.7"
}
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/5] Write sources
[4/5] Write swift-version-2F0A5646E1D333AE.txt
[6/19] Compiling FunctionTools Null functions.swift
[7/19] Compiling FunctionTools Curry.swift
[8/19] Compiling FunctionTools Echo.swift
[9/19] Compiling FunctionTools Function types.swift
[10/19] Compiling FunctionTools Blackholes.swift
[11/19] Compiling FunctionTools Call.swift
[12/19] Compiling LazyContainers LazyContainer + Equatable.swift
[13/19] Compiling FunctionTools !.swift
[14/19] Emitting module FunctionTools
[15/19] Compiling LazyContainers LazyContainers.swift
[16/19] Compiling FunctionTools Constant.swift
[17/19] Compiling LazyContainers LazyContainer + Codable.swift
[18/19] Emitting module LazyContainers
[19/19] Compiling LazyContainers LazyContainer + Hashable.swift
[20/31] Compiling SimpleLogging Loggable.swift
[21/32] Compiling SimpleLogging LogMessage.swift
[22/32] Compiling SimpleLogging LoggableError.swift
[23/32] Compiling SimpleLogging LogMessageProtocol.swift
[24/32] Compiling SimpleLogging LogSeverity.swift
[25/32] Compiling SimpleLogging LogManager.swift
[26/32] Compiling SimpleLogging CodeLogMessage.swift
[27/32] Compiling SimpleLogging CombinedLogMessage.swift
[28/32] Emitting module SimpleLogging
[29/32] Compiling SimpleLogging CombinedLoggable.swift
[30/32] Compiling SimpleLogging FileHandle + TextOutputStream.swift
[31/32] Compiling SimpleLogging LogChannel.swift
[32/32] Compiling SimpleLogging Simple Logging.swift
[33/34] Compiling COID ContextuallyUniqueIdentifier.swift
/Users/admin/builder/spi-builder-workspace/Sources/COID/ContextuallyUniqueIdentifier.swift:72:24: warning: static property '__idRegistry' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 70 |
 71 |     /// The IDs which are currently in use in this runtime
 72 |     private static var __idRegistry = Set<ID>()
    |                        |- warning: static property '__idRegistry' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                        |- note: convert '__idRegistry' to a 'let' constant to make 'Sendable' shared state immutable
    |                        |- note: add '@MainActor' to make static property '__idRegistry' part of global actor 'MainActor'
    |                        `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 73 |
 74 |     /// Controls access to ID registration
/Users/admin/builder/spi-builder-workspace/Sources/COID/ContextuallyUniqueIdentifier.swift:78:24: warning: static property '__nextAvailableIdRawValue' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 76 |
 77 |     /// Backing storage for ``nextAvailableIdRawValue``. Do not access this outside the ``nextIdExclusiveAccessQueue``
 78 |     private static var __nextAvailableIdRawValue = RegionRanges.generalUse.lowerBound
    |                        |- warning: static property '__nextAvailableIdRawValue' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                        |- note: convert '__nextAvailableIdRawValue' to a 'let' constant to make 'Sendable' shared state immutable
    |                        |- note: add '@MainActor' to make static property '__nextAvailableIdRawValue' part of global actor 'MainActor'
    |                        `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 79 |
 80 |     /// Keeps track of the mimimum ID which is not yet used
/Users/admin/builder/spi-builder-workspace/Sources/COID/ContextuallyUniqueIdentifier.swift:265:16: warning: static property 'error' is not concurrency-safe because non-'Sendable' type 'ContextuallyUniqueIdentifier' may have shared mutable state; this is an error in the Swift 6 language mode
 42 | /// 🔒 🔒 🔒 🔒 🔒 🔒 🔒 *️⃣ *️⃣ ❗️
 43 | /// ```
 44 | public struct ContextuallyUniqueIdentifier {
    |               `- note: consider making struct 'ContextuallyUniqueIdentifier' conform to the 'Sendable' protocol
 45 |     private let rawValue: ID
 46 | }
    :
263 |     /// This special value is the only one in the error region, and only means that a serious problem occurred (e.g. could not allocate an COID).
264 |     /// This exists to allow objects to still exist while requiring a non-nil COID field, even after a serious problem occurred.
265 |     static let error = Self(rawValue: RegionRanges.error)
    |                |- warning: static property 'error' is not concurrency-safe because non-'Sendable' type 'ContextuallyUniqueIdentifier' may have shared mutable state; this is an error in the Swift 6 language mode
    |                |- note: add '@MainActor' to make static property 'error' part of global actor 'MainActor'
    |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
266 |
267 |
/Users/admin/builder/spi-builder-workspace/Sources/COID/ContextuallyUniqueIdentifier.swift:126:20: warning: capture of 'id' with non-sendable type 'ContextuallyUniqueIdentifier' in a '@Sendable' closure
 42 | /// 🔒 🔒 🔒 🔒 🔒 🔒 🔒 *️⃣ *️⃣ ❗️
 43 | /// ```
 44 | public struct ContextuallyUniqueIdentifier {
    |               `- note: consider making struct 'ContextuallyUniqueIdentifier' conform to the 'Sendable' protocol
 45 |     private let rawValue: ID
 46 | }
    :
124 |
125 |             nextIdExclusiveAccessQueue.async { [id] in
126 |                 if id.rawValue == __nextAvailableIdRawValue {
    |                    `- warning: capture of 'id' with non-sendable type 'ContextuallyUniqueIdentifier' in a '@Sendable' closure
127 |                     __nextAvailableIdRawValue += 1
128 |                 }
/Users/admin/builder/spi-builder-workspace/Sources/COID/ContextuallyUniqueIdentifier.swift:168:20: warning: capture of 'id' with non-sendable type 'ContextuallyUniqueIdentifier' in a '@Sendable' closure
 42 | /// 🔒 🔒 🔒 🔒 🔒 🔒 🔒 *️⃣ *️⃣ ❗️
 43 | /// ```
 44 | public struct ContextuallyUniqueIdentifier {
    |               `- note: consider making struct 'ContextuallyUniqueIdentifier' conform to the 'Sendable' protocol
 45 |     private let rawValue: ID
 46 | }
    :
166 |
167 |             nextIdExclusiveAccessQueue.async {
168 |                 if id.rawValue < __nextAvailableIdRawValue {
    |                    `- warning: capture of 'id' with non-sendable type 'ContextuallyUniqueIdentifier' in a '@Sendable' closure
169 |                     __nextAvailableIdRawValue = id.rawValue
170 |                 }
[34/34] Emitting module COID
/Users/admin/builder/spi-builder-workspace/Sources/COID/ContextuallyUniqueIdentifier.swift:72:24: warning: static property '__idRegistry' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 70 |
 71 |     /// The IDs which are currently in use in this runtime
 72 |     private static var __idRegistry = Set<ID>()
    |                        |- warning: static property '__idRegistry' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                        |- note: convert '__idRegistry' to a 'let' constant to make 'Sendable' shared state immutable
    |                        |- note: add '@MainActor' to make static property '__idRegistry' part of global actor 'MainActor'
    |                        `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 73 |
 74 |     /// Controls access to ID registration
/Users/admin/builder/spi-builder-workspace/Sources/COID/ContextuallyUniqueIdentifier.swift:78:24: warning: static property '__nextAvailableIdRawValue' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 76 |
 77 |     /// Backing storage for ``nextAvailableIdRawValue``. Do not access this outside the ``nextIdExclusiveAccessQueue``
 78 |     private static var __nextAvailableIdRawValue = RegionRanges.generalUse.lowerBound
    |                        |- warning: static property '__nextAvailableIdRawValue' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                        |- note: convert '__nextAvailableIdRawValue' to a 'let' constant to make 'Sendable' shared state immutable
    |                        |- note: add '@MainActor' to make static property '__nextAvailableIdRawValue' part of global actor 'MainActor'
    |                        `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 79 |
 80 |     /// Keeps track of the mimimum ID which is not yet used
/Users/admin/builder/spi-builder-workspace/Sources/COID/ContextuallyUniqueIdentifier.swift:265:16: warning: static property 'error' is not concurrency-safe because non-'Sendable' type 'ContextuallyUniqueIdentifier' may have shared mutable state; this is an error in the Swift 6 language mode
 42 | /// 🔒 🔒 🔒 🔒 🔒 🔒 🔒 *️⃣ *️⃣ ❗️
 43 | /// ```
 44 | public struct ContextuallyUniqueIdentifier {
    |               `- note: consider making struct 'ContextuallyUniqueIdentifier' conform to the 'Sendable' protocol
 45 |     private let rawValue: ID
 46 | }
    :
263 |     /// This special value is the only one in the error region, and only means that a serious problem occurred (e.g. could not allocate an COID).
264 |     /// This exists to allow objects to still exist while requiring a non-nil COID field, even after a serious problem occurred.
265 |     static let error = Self(rawValue: RegionRanges.error)
    |                |- warning: static property 'error' is not concurrency-safe because non-'Sendable' type 'ContextuallyUniqueIdentifier' may have shared mutable state; this is an error in the Swift 6 language mode
    |                |- note: add '@MainActor' to make static property 'error' part of global actor 'MainActor'
    |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
266 |
267 |
Build complete! (12.52s)
Fetching https://github.com/RougeWare/Swift-Simple-Logging.git
[1/376] Fetching swift-simple-logging
Fetched https://github.com/RougeWare/Swift-Simple-Logging.git from cache (0.80s)
Computing version for https://github.com/RougeWare/Swift-Simple-Logging.git
Computed https://github.com/RougeWare/Swift-Simple-Logging.git at 0.5.2 (1.40s)
Fetching https://github.com/RougeWare/Swift-Lazy-Containers.git
Fetching https://github.com/RougeWare/Swift-Function-Tools.git
[1/395] Fetching swift-lazy-containers
[33/516] Fetching swift-lazy-containers, swift-function-tools
Fetched https://github.com/RougeWare/Swift-Function-Tools.git from cache (0.80s)
Fetched https://github.com/RougeWare/Swift-Lazy-Containers.git from cache (0.80s)
Computing version for https://github.com/RougeWare/Swift-Function-Tools.git
Computed https://github.com/RougeWare/Swift-Function-Tools.git at 1.2.4 (1.40s)
Computing version for https://github.com/RougeWare/Swift-Lazy-Containers.git
Computed https://github.com/RougeWare/Swift-Lazy-Containers.git at 4.1.0 (0.57s)
Creating working copy for https://github.com/RougeWare/Swift-Simple-Logging.git
Working copy of https://github.com/RougeWare/Swift-Simple-Logging.git resolved at 0.5.2
Creating working copy for https://github.com/RougeWare/Swift-Function-Tools.git
Working copy of https://github.com/RougeWare/Swift-Function-Tools.git resolved at 1.2.4
Creating working copy for https://github.com/RougeWare/Swift-Lazy-Containers.git
Working copy of https://github.com/RougeWare/Swift-Lazy-Containers.git resolved at 4.1.0
Build complete.
{
  "dependencies" : [
    {
      "identity" : "swift-simple-logging",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "0.5.2",
            "upper_bound" : "1.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/RougeWare/Swift-Simple-Logging.git"
    }
  ],
  "manifest_display_name" : "ContextuallyUniqueIdentifier",
  "name" : "ContextuallyUniqueIdentifier",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "COID",
      "targets" : [
        "COID"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    },
    {
      "name" : "AppUniqueIdentifier",
      "targets" : [
        "COID"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "ContextuallyUniqueIdentifierTests",
      "module_type" : "SwiftTarget",
      "name" : "ContextuallyUniqueIdentifierTests",
      "path" : "Tests/ContextuallyUniqueIdentifierTests",
      "sources" : [
        "ContextuallyUniqueIdentifierTests.swift"
      ],
      "target_dependencies" : [
        "COID"
      ],
      "type" : "test"
    },
    {
      "c99name" : "COID",
      "module_type" : "SwiftTarget",
      "name" : "COID",
      "path" : "Sources/COID",
      "product_dependencies" : [
        "SimpleLogging"
      ],
      "product_memberships" : [
        "COID",
        "AppUniqueIdentifier"
      ],
      "sources" : [
        "ContextuallyUniqueIdentifier.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.7"
}
Done.