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 Primer, reference 1.0.0 (06f6cd), with Swift 6.1 for macOS (SPM) on 26 Apr 2025 16:49:11 UTC.

Swift 6 data race errors: 1

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/alexdrone/Primer.git
Reference: 1.0.0
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/alexdrone/Primer
 * tag               1.0.0      -> FETCH_HEAD
HEAD is now at 06f6cd9 Move Store to a separated repo
Cloned https://github.com/alexdrone/Primer.git
Revision (git rev-parse @):
06f6cd993e1aa684c2bfb5b33857dcc55a608804
SUCCESS checkout https://github.com/alexdrone/Primer.git at 1.0.0
Fetching https://github.com/apple/swift-atomics.git from cache
Fetching https://github.com/apple/swift-log.git from cache
Fetched https://github.com/apple/swift-log.git from cache (0.64s)
Fetched https://github.com/apple/swift-atomics.git from cache (0.64s)
Computing version for https://github.com/apple/swift-log.git
Computed https://github.com/apple/swift-log.git at 1.4.2 (1.19s)
Computing version for https://github.com/apple/swift-atomics.git
Computed https://github.com/apple/swift-atomics.git at 0.0.3 (0.56s)
Creating working copy for https://github.com/apple/swift-atomics.git
Working copy of https://github.com/apple/swift-atomics.git resolved at 0.0.3
Creating working copy for https://github.com/apple/swift-log.git
Working copy of https://github.com/apple/swift-log.git resolved at 1.4.2
========================================
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": "primer",
      "name": "Primer",
      "url": "https://github.com/alexdrone/Primer.git",
      "version": "unspecified",
      "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/Primer",
      "dependencies": [
        {
          "identity": "swift-atomics",
          "name": "swift-atomics",
          "url": "https://github.com/apple/swift-atomics.git",
          "version": "0.0.3",
          "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/swift-atomics",
          "dependencies": [
          ]
        },
        {
          "identity": "swift-log",
          "name": "swift-log",
          "url": "https://github.com/apple/swift-log.git",
          "version": "1.6.3",
          "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/swift-log",
          "dependencies": [
          ]
        }
      ]
    }
  ]
}
Fetching https://github.com/alexdrone/Primer.git
[7/324] Fetching primer
Fetched https://github.com/alexdrone/Primer.git from cache (0.97s)
Fetching https://github.com/apple/swift-atomics.git from cache
Fetching https://github.com/apple/swift-log.git from cache
Fetched https://github.com/apple/swift-atomics.git from cache (0.49s)
Fetched https://github.com/apple/swift-log.git from cache (0.49s)
Computing version for https://github.com/apple/swift-atomics.git
Computed https://github.com/apple/swift-atomics.git at 0.0.3 (0.54s)
Computing version for https://github.com/apple/swift-log.git
Computed https://github.com/apple/swift-log.git at 1.6.3 (0.47s)
Creating working copy for https://github.com/apple/swift-atomics.git
Working copy of https://github.com/apple/swift-atomics.git resolved at 0.0.3
Creating working copy for https://github.com/apple/swift-log.git
Working copy of https://github.com/apple/swift-log.git resolved at 1.6.3
Creating working copy for https://github.com/alexdrone/Primer.git
Working copy of https://github.com/alexdrone/Primer.git resolved at 1.0.0 (06f6cd9)
warning: '.resolve-product-dependencies': dependency 'primer' is not used by any target
Found 2 product dependencies
  - swift-atomics
  - swift-log
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.1
Building package at path:  $PWD
https://github.com/alexdrone/Primer.git
https://github.com/alexdrone/Primer.git
{
  "dependencies" : [
    {
      "identity" : "swift-atomics",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "0.0.3",
            "upper_bound" : "1.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/apple/swift-atomics.git"
    },
    {
      "identity" : "swift-log",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "1.0.0",
            "upper_bound" : "2.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/apple/swift-log.git"
    }
  ],
  "manifest_display_name" : "Primer",
  "name" : "Primer",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "ios",
      "version" : "13.0"
    },
    {
      "name" : "macos",
      "version" : "10.15"
    },
    {
      "name" : "tvos",
      "version" : "13.0"
    },
    {
      "name" : "watchos",
      "version" : "6.0"
    }
  ],
  "products" : [
    {
      "name" : "Primer",
      "targets" : [
        "Primer"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "PrimerTests",
      "module_type" : "SwiftTarget",
      "name" : "PrimerTests",
      "path" : "Tests/PrimerTests",
      "sources" : [
        "BasicTests.swift",
        "XCTestManifests.swift"
      ],
      "target_dependencies" : [
        "Primer"
      ],
      "type" : "test"
    },
    {
      "c99name" : "Primer",
      "module_type" : "SwiftTarget",
      "name" : "Primer",
      "path" : "Sources/Primer",
      "product_dependencies" : [
        "Atomics",
        "Logging"
      ],
      "product_memberships" : [
        "Primer"
      ],
      "sources" : [
        "Assign.swift",
        "Concurrency/Atomics.swift",
        "Concurrency/Locking.swift",
        "Concurrency/PropertyWrappers.swift",
        "Extensions/Binding.swift",
        "Extensions/KeyPath+ReadableFormat.swift",
        "Partial.swift",
        "PropertyObservable.swift",
        "PushID.swift",
        "ReadOnly.swift",
        "Serialization/DictionaryCodable.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.1"
}
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
[3/5] Write swift-version-2F0A5646E1D333AE.txt
[4/9] Compiling _AtomicsShims.c
[6/21] Compiling Atomics AtomicBool.swift
[7/22] Compiling Atomics PointerConformances.swift
[8/22] Emitting module Atomics
[9/22] Compiling Atomics AtomicLazyReference.swift
[10/22] Compiling Atomics AtomicInteger.swift
[11/22] Compiling Atomics AtomicMemoryOrderings.swift
[12/22] Compiling Atomics DoubleWord.swift
[13/22] Compiling Atomics AtomicStrongReference.swift
[14/22] Compiling Atomics AtomicValue.swift
[15/22] Compiling Atomics AtomicOptional.swift
[16/22] Compiling Atomics AtomicRawRepresentable.swift
[17/22] Compiling Atomics IntegerConformances.swift
[18/22] Compiling Atomics HighLevelTypes.swift
[19/22] Emitting module Logging
[20/22] Compiling Logging LogHandler.swift
[21/22] Compiling Logging Locks.swift
[22/22] Compiling Logging Logging.swift
[23/33] Compiling Primer ReadOnly.swift
[24/33] Compiling Primer KeyPath+ReadableFormat.swift
[25/33] Compiling Primer PropertyObservable.swift
[26/33] Compiling Primer PushID.swift
/Users/admin/builder/spi-builder-workspace/Sources/Primer/PushID.swift:22:21: warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'PushID' may have shared mutable state; this is an error in the Swift 6 language mode
 18 | /// the latter ones will sort after the former ones.  We do this by using the previous random bits
 19 | /// but "incrementing" them by 1 (only in the case of a timestamp collision).
 20 | public final class PushID {
    |                    `- note: class 'PushID' does not conform to the 'Sendable' protocol
 21 |
 22 |   public static let `default` = PushID()
    |                     |- warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'PushID' may have shared mutable state; this is an error in the Swift 6 language mode
    |                     |- note: add '@MainActor' to make static property 'default' part of global actor 'MainActor'
    |                     `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 23 |
 24 |   // MARK: Static constants
[27/34] Compiling Primer DictionaryCodable.swift
/Users/admin/builder/spi-builder-workspace/Sources/Primer/Serialization/DictionaryCodable.swift:34:3: warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
 32 |
 33 | extension DictionaryEncoder {
 34 |   open func encode<T: Encodable>(_ value: T) throws -> [String: Any] {
    |   `- warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
 35 |     do {
 36 |       return try castOrThrow([String: Any].self, try box(value))
/Users/admin/builder/spi-builder-workspace/Sources/Primer/Serialization/DictionaryCodable.swift:484:3: warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
482 |
483 | extension DictionaryDecoder {
484 |   open func decode<T: Decodable>(_ type: T.Type, from container: Any) throws -> T {
    |   `- warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
485 |     storage.push(container: container)
486 |     return try unbox(container, as: T.self)
[28/34] Compiling Primer Partial.swift
[29/34] Compiling Primer PropertyWrappers.swift
[30/34] Compiling Primer Assign.swift
/Users/admin/builder/spi-builder-workspace/Sources/Primer/Concurrency/Atomics.swift:4:1: warning: extension declares a conformance of imported type 'ManagedAtomic' to imported protocol 'Sendable'; this will not behave correctly if the owners of 'Atomics' introduce this conformance in the future
2 | import Atomics
3 |
4 | extension ManagedAtomic: @unchecked Sendable { }
  | |- warning: extension declares a conformance of imported type 'ManagedAtomic' to imported protocol 'Sendable'; this will not behave correctly if the owners of 'Atomics' introduce this conformance in the future
  | `- note: add '@retroactive' to silence this warning
5 |
[31/34] Compiling Primer Atomics.swift
/Users/admin/builder/spi-builder-workspace/Sources/Primer/Concurrency/Atomics.swift:4:1: warning: extension declares a conformance of imported type 'ManagedAtomic' to imported protocol 'Sendable'; this will not behave correctly if the owners of 'Atomics' introduce this conformance in the future
2 | import Atomics
3 |
4 | extension ManagedAtomic: @unchecked Sendable { }
  | |- warning: extension declares a conformance of imported type 'ManagedAtomic' to imported protocol 'Sendable'; this will not behave correctly if the owners of 'Atomics' introduce this conformance in the future
  | `- note: add '@retroactive' to silence this warning
5 |
[32/34] Emitting module Primer
/Users/admin/builder/spi-builder-workspace/Sources/Primer/Concurrency/Atomics.swift:4:1: warning: extension declares a conformance of imported type 'ManagedAtomic' to imported protocol 'Sendable'; this will not behave correctly if the owners of 'Atomics' introduce this conformance in the future
2 | import Atomics
3 |
4 | extension ManagedAtomic: @unchecked Sendable { }
  | |- warning: extension declares a conformance of imported type 'ManagedAtomic' to imported protocol 'Sendable'; this will not behave correctly if the owners of 'Atomics' introduce this conformance in the future
  | `- note: add '@retroactive' to silence this warning
5 |
/Users/admin/builder/spi-builder-workspace/Sources/Primer/PushID.swift:22:21: warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'PushID' may have shared mutable state; this is an error in the Swift 6 language mode
 18 | /// the latter ones will sort after the former ones.  We do this by using the previous random bits
 19 | /// but "incrementing" them by 1 (only in the case of a timestamp collision).
 20 | public final class PushID {
    |                    `- note: class 'PushID' does not conform to the 'Sendable' protocol
 21 |
 22 |   public static let `default` = PushID()
    |                     |- warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'PushID' may have shared mutable state; this is an error in the Swift 6 language mode
    |                     |- note: add '@MainActor' to make static property 'default' part of global actor 'MainActor'
    |                     `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 23 |
 24 |   // MARK: Static constants
/Users/admin/builder/spi-builder-workspace/Sources/Primer/Serialization/DictionaryCodable.swift:34:3: warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
 32 |
 33 | extension DictionaryEncoder {
 34 |   open func encode<T: Encodable>(_ value: T) throws -> [String: Any] {
    |   `- warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
 35 |     do {
 36 |       return try castOrThrow([String: Any].self, try box(value))
/Users/admin/builder/spi-builder-workspace/Sources/Primer/Serialization/DictionaryCodable.swift:484:3: warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
482 |
483 | extension DictionaryDecoder {
484 |   open func decode<T: Decodable>(_ type: T.Type, from container: Any) throws -> T {
    |   `- warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
485 |     storage.push(container: container)
486 |     return try unbox(container, as: T.self)
[33/34] Compiling Primer Binding.swift
/Users/admin/builder/spi-builder-workspace/Sources/Primer/Extensions/Binding.swift:8:12: warning: capture of 'lhs' with non-sendable type 'Binding<T?>' in a '@Sendable' closure
 4 |
 5 | /// Optional Coalescing for `Binding`.
 6 | public func ?? <T>(lhs: Binding<T?>, rhs: T) -> Binding<T> {
   |                 `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
 7 |   Binding(
 8 |     get: { lhs.wrappedValue ?? rhs },
   |            `- warning: capture of 'lhs' with non-sendable type 'Binding<T?>' in a '@Sendable' closure
 9 |     set: { lhs.wrappedValue = $0 }
10 |   )
/Users/admin/builder/spi-builder-workspace/Sources/Primer/Extensions/Binding.swift:8:32: warning: capture of 'rhs' with non-sendable type 'T' in a '@Sendable' closure
 4 |
 5 | /// Optional Coalescing for `Binding`.
 6 | public func ?? <T>(lhs: Binding<T?>, rhs: T) -> Binding<T> {
   |                 `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
 7 |   Binding(
 8 |     get: { lhs.wrappedValue ?? rhs },
   |                                `- warning: capture of 'rhs' with non-sendable type 'T' in a '@Sendable' closure
 9 |     set: { lhs.wrappedValue = $0 }
10 |   )
/Users/admin/builder/spi-builder-workspace/Sources/Primer/Extensions/Binding.swift:8:32: warning: implicit capture of 'rhs' requires that 'T' conforms to 'Sendable'; this is an error in the Swift 6 language mode
 4 |
 5 | /// Optional Coalescing for `Binding`.
 6 | public func ?? <T>(lhs: Binding<T?>, rhs: T) -> Binding<T> {
   |                 `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
 7 |   Binding(
 8 |     get: { lhs.wrappedValue ?? rhs },
   |                                `- warning: implicit capture of 'rhs' requires that 'T' conforms to 'Sendable'; this is an error in the Swift 6 language mode
 9 |     set: { lhs.wrappedValue = $0 }
10 |   )
/Users/admin/builder/spi-builder-workspace/Sources/Primer/Extensions/Binding.swift:9:12: warning: capture of 'lhs' with non-sendable type 'Binding<T?>' in a '@Sendable' closure
 4 |
 5 | /// Optional Coalescing for `Binding`.
 6 | public func ?? <T>(lhs: Binding<T?>, rhs: T) -> Binding<T> {
   |                 `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
 7 |   Binding(
 8 |     get: { lhs.wrappedValue ?? rhs },
 9 |     set: { lhs.wrappedValue = $0 }
   |            `- warning: capture of 'lhs' with non-sendable type 'Binding<T?>' in a '@Sendable' closure
10 |   )
11 | }
/Users/admin/builder/spi-builder-workspace/Sources/Primer/Extensions/Binding.swift:17:14: warning: capture of 'self' with non-sendable type 'Binding<Value>' in a '@Sendable' closure
15 |   func onUpdate(_ closure: @escaping () -> Void) -> Binding<Value> {
16 |     Binding(
17 |       get: { wrappedValue },
   |              `- warning: capture of 'self' with non-sendable type 'Binding<Value>' in a '@Sendable' closure
18 |       set: {
19 |         wrappedValue = $0
/Users/admin/builder/spi-builder-workspace/Sources/Primer/Extensions/Binding.swift:19:9: warning: capture of 'self' with non-sendable type 'Binding<Value>' in a '@Sendable' closure
17 |       get: { wrappedValue },
18 |       set: {
19 |         wrappedValue = $0
   |         `- warning: capture of 'self' with non-sendable type 'Binding<Value>' in a '@Sendable' closure
20 |         closure()
21 |       })
/Users/admin/builder/spi-builder-workspace/Sources/Primer/Extensions/Binding.swift:20:9: warning: capture of 'closure' with non-sendable type '() -> Void' in a '@Sendable' closure
18 |       set: {
19 |         wrappedValue = $0
20 |         closure()
   |         |- warning: capture of 'closure' with non-sendable type '() -> Void' in a '@Sendable' closure
   |         `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
21 |       })
22 |   }
[34/34] Compiling Primer Locking.swift
Build complete! (11.27s)
Build complete.
{
  "dependencies" : [
    {
      "identity" : "swift-atomics",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "0.0.3",
            "upper_bound" : "1.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/apple/swift-atomics.git"
    },
    {
      "identity" : "swift-log",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "1.0.0",
            "upper_bound" : "2.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/apple/swift-log.git"
    }
  ],
  "manifest_display_name" : "Primer",
  "name" : "Primer",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "ios",
      "version" : "13.0"
    },
    {
      "name" : "macos",
      "version" : "10.15"
    },
    {
      "name" : "tvos",
      "version" : "13.0"
    },
    {
      "name" : "watchos",
      "version" : "6.0"
    }
  ],
  "products" : [
    {
      "name" : "Primer",
      "targets" : [
        "Primer"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "PrimerTests",
      "module_type" : "SwiftTarget",
      "name" : "PrimerTests",
      "path" : "Tests/PrimerTests",
      "sources" : [
        "BasicTests.swift",
        "XCTestManifests.swift"
      ],
      "target_dependencies" : [
        "Primer"
      ],
      "type" : "test"
    },
    {
      "c99name" : "Primer",
      "module_type" : "SwiftTarget",
      "name" : "Primer",
      "path" : "Sources/Primer",
      "product_dependencies" : [
        "Atomics",
        "Logging"
      ],
      "product_memberships" : [
        "Primer"
      ],
      "sources" : [
        "Assign.swift",
        "Concurrency/Atomics.swift",
        "Concurrency/Locking.swift",
        "Concurrency/PropertyWrappers.swift",
        "Extensions/Binding.swift",
        "Extensions/KeyPath+ReadableFormat.swift",
        "Partial.swift",
        "PropertyObservable.swift",
        "PushID.swift",
        "ReadOnly.swift",
        "Serialization/DictionaryCodable.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.1"
}
Done.