The Swift Package Index logo.Swift Package Index

Build Information

Successful build of ContextuallyUniqueIdentifier, reference production (ede27f), with Swift 6.1 for macOS (SPM) on 27 Jan 2026 06:44:16 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: production
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/RougeWare/Swift-ContextuallyUniqueIdentifier
 * branch            production -> FETCH_HEAD
 * [new branch]      production -> origin/production
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 production
========================================
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] Emitting module FunctionTools
[7/19] Compiling FunctionTools Null functions.swift
[8/19] Compiling FunctionTools Echo.swift
[9/19] Compiling FunctionTools Function types.swift
[10/19] Compiling LazyContainers LazyContainer + Hashable.swift
[11/19] Compiling LazyContainers LazyContainers.swift
[12/19] Compiling FunctionTools Blackholes.swift
[13/19] Compiling FunctionTools Curry.swift
[14/19] Compiling FunctionTools Constant.swift
[15/19] Compiling LazyContainers LazyContainer + Equatable.swift
[16/19] Compiling LazyContainers LazyContainer + Codable.swift
[17/19] Emitting module LazyContainers
[18/19] Compiling FunctionTools !.swift
[19/19] Compiling FunctionTools Call.swift
[20/31] Compiling SimpleLogging Loggable.swift
[21/31] Compiling SimpleLogging LoggableError.swift
[22/31] Compiling SimpleLogging LogMessage.swift
[23/31] Compiling SimpleLogging LogMessageProtocol.swift
[24/31] Compiling SimpleLogging CombinedLoggable.swift
[25/31] Compiling SimpleLogging FileHandle + TextOutputStream.swift
[26/31] Compiling SimpleLogging LogManager.swift
[27/31] Compiling SimpleLogging CodeLogMessage.swift
[28/31] Compiling SimpleLogging CombinedLogMessage.swift
[29/31] Emitting module SimpleLogging
[30/31] Compiling SimpleLogging LogChannel.swift
[31/31] Compiling SimpleLogging LogSeverity.swift
[32/32] Compiling SimpleLogging Simple Logging.swift
[33/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 |
[34/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 |                 }
Build complete! (12.74s)
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.79s)
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.36s)
Fetching https://github.com/RougeWare/Swift-Function-Tools.git
Fetching https://github.com/RougeWare/Swift-Lazy-Containers.git
[1/121] Fetching swift-function-tools
[12/516] Fetching swift-function-tools, swift-lazy-containers
Fetched https://github.com/RougeWare/Swift-Lazy-Containers.git from cache (0.82s)
Fetched https://github.com/RougeWare/Swift-Function-Tools.git from cache (0.82s)
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.55s)
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-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-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.