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 SwiftCompactor, reference 1.3.0 (5caf0b), with Swift 6.1 for macOS (SPM) on 27 Apr 2025 11:14:37 UTC.

Swift 6 data race errors: 4

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/openalloc/SwiftCompactor.git
Reference: 1.3.0
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/openalloc/SwiftCompactor
 * tag               1.3.0      -> FETCH_HEAD
HEAD is now at 5caf0b3 Add support for medium-length abbreviations for time #1
Cloned https://github.com/openalloc/SwiftCompactor.git
Revision (git rev-parse @):
5caf0b3d43ee139fc34673df89c5ad93d2f5078f
SUCCESS checkout https://github.com/openalloc/SwiftCompactor.git at 1.3.0
========================================
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": "swiftcompactor",
      "name": "SwiftCompactor",
      "url": "https://github.com/openalloc/SwiftCompactor.git",
      "version": "unspecified",
      "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/SwiftCompactor",
      "dependencies": [
      ]
    }
  ]
}
Fetching https://github.com/openalloc/SwiftCompactor.git
[1/112] Fetching swiftcompactor
Fetched https://github.com/openalloc/SwiftCompactor.git from cache (0.66s)
Creating working copy for https://github.com/openalloc/SwiftCompactor.git
Working copy of https://github.com/openalloc/SwiftCompactor.git resolved at 1.3.0 (5caf0b3)
warning: '.resolve-product-dependencies': dependency 'swiftcompactor' 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/openalloc/SwiftCompactor.git
https://github.com/openalloc/SwiftCompactor.git
{
  "dependencies" : [
  ],
  "manifest_display_name" : "SwiftCompactor",
  "name" : "SwiftCompactor",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "Compactor",
      "targets" : [
        "Compactor"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "CompactorTests",
      "module_type" : "SwiftTarget",
      "name" : "CompactorTests",
      "path" : "Tests",
      "sources" : [
        "CurrencyCompactorTests.swift",
        "NumberCompactorTests.swift",
        "TimeCompactorTests.swift"
      ],
      "target_dependencies" : [
        "Compactor"
      ],
      "type" : "test"
    },
    {
      "c99name" : "Compactor",
      "module_type" : "SwiftTarget",
      "name" : "Compactor",
      "path" : "Sources",
      "product_memberships" : [
        "Compactor"
      ],
      "sources" : [
        "CurrencyCompactor.swift",
        "NumberCompactor+Scale.swift",
        "NumberCompactor.swift",
        "TimeCompactor+Scale.swift",
        "TimeCompactor+Style.swift",
        "TimeCompactor.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.3"
}
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/9] Compiling Compactor TimeCompactor+Scale.swift
[4/9] Compiling Compactor TimeCompactor+Style.swift
[5/9] Compiling Compactor NumberCompactor+Scale.swift
[6/9] Compiling Compactor CurrencyCompactor.swift
/Users/admin/builder/spi-builder-workspace/Sources/CurrencyCompactor.swift:21:14: warning: class 'CurrencyCompactor' must restate inherited '@unchecked Sendable' conformance
19 | import Foundation
20 |
21 | public class CurrencyCompactor: NumberCompactor {
   |              `- warning: class 'CurrencyCompactor' must restate inherited '@unchecked Sendable' conformance
22 |
23 |     @available(*, deprecated, message: "use init(ifZero: String?, roundSmallToWhole: Bool) instead")
[7/9] Compiling Compactor TimeCompactor.swift
/Users/admin/builder/spi-builder-workspace/Sources/TimeCompactor.swift:21:14: warning: class 'TimeCompactor' must restate inherited '@unchecked Sendable' conformance
 19 | import Foundation
 20 |
 21 | public class TimeCompactor: NumberFormatter {
    |              `- warning: class 'TimeCompactor' must restate inherited '@unchecked Sendable' conformance
 22 |
 23 |     public var ifZero: String?
/Users/admin/builder/spi-builder-workspace/Sources/TimeCompactor.swift:101:24: warning: static property 'halfDollarLookup' is not concurrency-safe because non-'Sendable' type '[TimeCompactor.LOOKUP]' (aka 'Array<(range: Range<Double>, divisor: Double, scale: TimeCompactor.Scale)>') may have shared mutable state; this is an error in the Swift 6 language mode
 99 |
100 |     // cached lookup tables
101 |     private static let halfDollarLookup: [LOOKUP] = TimeCompactor.generateLookup(threshold: halfDollar)
    |                        |- warning: static property 'halfDollarLookup' is not concurrency-safe because non-'Sendable' type '[TimeCompactor.LOOKUP]' (aka 'Array<(range: Range<Double>, divisor: Double, scale: TimeCompactor.Scale)>') may have shared mutable state; this is an error in the Swift 6 language mode
    |                        |- note: add '@MainActor' to make static property 'halfDollarLookup' part of global actor 'MainActor'
    |                        `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
102 |     private static let nickelLookup: [LOOKUP] = TimeCompactor.generateLookup(threshold: nickel)
103 |
/Users/admin/builder/spi-builder-workspace/Sources/TimeCompactor+Scale.swift:22:17: note: consider making enum 'Scale' conform to the 'Sendable' protocol
 20 |
 21 | extension TimeCompactor {
 22 |     public enum Scale {
    |                 `- note: consider making enum 'Scale' conform to the 'Sendable' protocol
 23 |         case second
 24 |         case minute
/Users/admin/builder/spi-builder-workspace/Sources/TimeCompactor.swift:102:24: warning: static property 'nickelLookup' is not concurrency-safe because non-'Sendable' type '[TimeCompactor.LOOKUP]' (aka 'Array<(range: Range<Double>, divisor: Double, scale: TimeCompactor.Scale)>') may have shared mutable state; this is an error in the Swift 6 language mode
100 |     // cached lookup tables
101 |     private static let halfDollarLookup: [LOOKUP] = TimeCompactor.generateLookup(threshold: halfDollar)
102 |     private static let nickelLookup: [LOOKUP] = TimeCompactor.generateLookup(threshold: nickel)
    |                        |- warning: static property 'nickelLookup' is not concurrency-safe because non-'Sendable' type '[TimeCompactor.LOOKUP]' (aka 'Array<(range: Range<Double>, divisor: Double, scale: TimeCompactor.Scale)>') may have shared mutable state; this is an error in the Swift 6 language mode
    |                        |- note: add '@MainActor' to make static property 'nickelLookup' part of global actor 'MainActor'
    |                        `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
103 |
104 |     static func getThreshold(_ roundSmallToWhole: Bool) -> Double {
/Users/admin/builder/spi-builder-workspace/Sources/TimeCompactor+Scale.swift:22:17: note: consider making enum 'Scale' conform to the 'Sendable' protocol
 20 |
 21 | extension TimeCompactor {
 22 |     public enum Scale {
    |                 `- note: consider making enum 'Scale' conform to the 'Sendable' protocol
 23 |         case second
 24 |         case minute
[8/9] Emitting module Compactor
/Users/admin/builder/spi-builder-workspace/Sources/CurrencyCompactor.swift:21:14: warning: class 'CurrencyCompactor' must restate inherited '@unchecked Sendable' conformance
19 | import Foundation
20 |
21 | public class CurrencyCompactor: NumberCompactor {
   |              `- warning: class 'CurrencyCompactor' must restate inherited '@unchecked Sendable' conformance
22 |
23 |     @available(*, deprecated, message: "use init(ifZero: String?, roundSmallToWhole: Bool) instead")
/Users/admin/builder/spi-builder-workspace/Sources/NumberCompactor.swift:21:14: warning: class 'NumberCompactor' must restate inherited '@unchecked Sendable' conformance
 19 | import Foundation
 20 |
 21 | public class NumberCompactor: NumberFormatter {
    |              `- warning: class 'NumberCompactor' must restate inherited '@unchecked Sendable' conformance
 22 |
 23 |     public var ifZero: String?
/Users/admin/builder/spi-builder-workspace/Sources/NumberCompactor.swift:86:24: warning: static property 'halfDollarLookup' is not concurrency-safe because non-'Sendable' type '[NumberCompactor.LOOKUP]' (aka 'Array<(range: Range<Double>, divisor: Double, scale: NumberCompactor.Scale)>') may have shared mutable state; this is an error in the Swift 6 language mode
 84 |
 85 |     // cached lookup tables
 86 |     private static let halfDollarLookup: [LOOKUP] = NumberCompactor.generateLookup(threshold: halfDollar)
    |                        |- warning: static property 'halfDollarLookup' is not concurrency-safe because non-'Sendable' type '[NumberCompactor.LOOKUP]' (aka 'Array<(range: Range<Double>, divisor: Double, scale: NumberCompactor.Scale)>') may have shared mutable state; this is an error in the Swift 6 language mode
    |                        |- note: add '@MainActor' to make static property 'halfDollarLookup' part of global actor 'MainActor'
    |                        `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 87 |     private static let nickelLookup: [LOOKUP] = NumberCompactor.generateLookup(threshold: nickel)
 88 |
/Users/admin/builder/spi-builder-workspace/Sources/NumberCompactor+Scale.swift:22:17: note: consider making enum 'Scale' conform to the 'Sendable' protocol
20 |
21 | extension NumberCompactor {
22 |     public enum Scale: Int, CaseIterable {
   |                 `- note: consider making enum 'Scale' conform to the 'Sendable' protocol
23 |         case none = 0
24 |         case kilo = 1
/Users/admin/builder/spi-builder-workspace/Sources/NumberCompactor.swift:87:24: warning: static property 'nickelLookup' is not concurrency-safe because non-'Sendable' type '[NumberCompactor.LOOKUP]' (aka 'Array<(range: Range<Double>, divisor: Double, scale: NumberCompactor.Scale)>') may have shared mutable state; this is an error in the Swift 6 language mode
 85 |     // cached lookup tables
 86 |     private static let halfDollarLookup: [LOOKUP] = NumberCompactor.generateLookup(threshold: halfDollar)
 87 |     private static let nickelLookup: [LOOKUP] = NumberCompactor.generateLookup(threshold: nickel)
    |                        |- warning: static property 'nickelLookup' is not concurrency-safe because non-'Sendable' type '[NumberCompactor.LOOKUP]' (aka 'Array<(range: Range<Double>, divisor: Double, scale: NumberCompactor.Scale)>') may have shared mutable state; this is an error in the Swift 6 language mode
    |                        |- note: add '@MainActor' to make static property 'nickelLookup' part of global actor 'MainActor'
    |                        `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 88 |
 89 |     static func getThreshold(_ roundSmallToWhole: Bool) -> Double {
/Users/admin/builder/spi-builder-workspace/Sources/NumberCompactor+Scale.swift:22:17: note: consider making enum 'Scale' conform to the 'Sendable' protocol
20 |
21 | extension NumberCompactor {
22 |     public enum Scale: Int, CaseIterable {
   |                 `- note: consider making enum 'Scale' conform to the 'Sendable' protocol
23 |         case none = 0
24 |         case kilo = 1
/Users/admin/builder/spi-builder-workspace/Sources/TimeCompactor.swift:21:14: warning: class 'TimeCompactor' must restate inherited '@unchecked Sendable' conformance
 19 | import Foundation
 20 |
 21 | public class TimeCompactor: NumberFormatter {
    |              `- warning: class 'TimeCompactor' must restate inherited '@unchecked Sendable' conformance
 22 |
 23 |     public var ifZero: String?
/Users/admin/builder/spi-builder-workspace/Sources/TimeCompactor.swift:101:24: warning: static property 'halfDollarLookup' is not concurrency-safe because non-'Sendable' type '[TimeCompactor.LOOKUP]' (aka 'Array<(range: Range<Double>, divisor: Double, scale: TimeCompactor.Scale)>') may have shared mutable state; this is an error in the Swift 6 language mode
 99 |
100 |     // cached lookup tables
101 |     private static let halfDollarLookup: [LOOKUP] = TimeCompactor.generateLookup(threshold: halfDollar)
    |                        |- warning: static property 'halfDollarLookup' is not concurrency-safe because non-'Sendable' type '[TimeCompactor.LOOKUP]' (aka 'Array<(range: Range<Double>, divisor: Double, scale: TimeCompactor.Scale)>') may have shared mutable state; this is an error in the Swift 6 language mode
    |                        |- note: add '@MainActor' to make static property 'halfDollarLookup' part of global actor 'MainActor'
    |                        `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
102 |     private static let nickelLookup: [LOOKUP] = TimeCompactor.generateLookup(threshold: nickel)
103 |
/Users/admin/builder/spi-builder-workspace/Sources/TimeCompactor+Scale.swift:22:17: note: consider making enum 'Scale' conform to the 'Sendable' protocol
 20 |
 21 | extension TimeCompactor {
 22 |     public enum Scale {
    |                 `- note: consider making enum 'Scale' conform to the 'Sendable' protocol
 23 |         case second
 24 |         case minute
/Users/admin/builder/spi-builder-workspace/Sources/TimeCompactor.swift:102:24: warning: static property 'nickelLookup' is not concurrency-safe because non-'Sendable' type '[TimeCompactor.LOOKUP]' (aka 'Array<(range: Range<Double>, divisor: Double, scale: TimeCompactor.Scale)>') may have shared mutable state; this is an error in the Swift 6 language mode
100 |     // cached lookup tables
101 |     private static let halfDollarLookup: [LOOKUP] = TimeCompactor.generateLookup(threshold: halfDollar)
102 |     private static let nickelLookup: [LOOKUP] = TimeCompactor.generateLookup(threshold: nickel)
    |                        |- warning: static property 'nickelLookup' is not concurrency-safe because non-'Sendable' type '[TimeCompactor.LOOKUP]' (aka 'Array<(range: Range<Double>, divisor: Double, scale: TimeCompactor.Scale)>') may have shared mutable state; this is an error in the Swift 6 language mode
    |                        |- note: add '@MainActor' to make static property 'nickelLookup' part of global actor 'MainActor'
    |                        `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
103 |
104 |     static func getThreshold(_ roundSmallToWhole: Bool) -> Double {
/Users/admin/builder/spi-builder-workspace/Sources/TimeCompactor+Scale.swift:22:17: note: consider making enum 'Scale' conform to the 'Sendable' protocol
 20 |
 21 | extension TimeCompactor {
 22 |     public enum Scale {
    |                 `- note: consider making enum 'Scale' conform to the 'Sendable' protocol
 23 |         case second
 24 |         case minute
[9/9] Compiling Compactor NumberCompactor.swift
/Users/admin/builder/spi-builder-workspace/Sources/NumberCompactor.swift:21:14: warning: class 'NumberCompactor' must restate inherited '@unchecked Sendable' conformance
 19 | import Foundation
 20 |
 21 | public class NumberCompactor: NumberFormatter {
    |              `- warning: class 'NumberCompactor' must restate inherited '@unchecked Sendable' conformance
 22 |
 23 |     public var ifZero: String?
/Users/admin/builder/spi-builder-workspace/Sources/NumberCompactor.swift:86:24: warning: static property 'halfDollarLookup' is not concurrency-safe because non-'Sendable' type '[NumberCompactor.LOOKUP]' (aka 'Array<(range: Range<Double>, divisor: Double, scale: NumberCompactor.Scale)>') may have shared mutable state; this is an error in the Swift 6 language mode
 84 |
 85 |     // cached lookup tables
 86 |     private static let halfDollarLookup: [LOOKUP] = NumberCompactor.generateLookup(threshold: halfDollar)
    |                        |- warning: static property 'halfDollarLookup' is not concurrency-safe because non-'Sendable' type '[NumberCompactor.LOOKUP]' (aka 'Array<(range: Range<Double>, divisor: Double, scale: NumberCompactor.Scale)>') may have shared mutable state; this is an error in the Swift 6 language mode
    |                        |- note: add '@MainActor' to make static property 'halfDollarLookup' part of global actor 'MainActor'
    |                        `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 87 |     private static let nickelLookup: [LOOKUP] = NumberCompactor.generateLookup(threshold: nickel)
 88 |
/Users/admin/builder/spi-builder-workspace/Sources/NumberCompactor+Scale.swift:22:17: note: consider making enum 'Scale' conform to the 'Sendable' protocol
20 |
21 | extension NumberCompactor {
22 |     public enum Scale: Int, CaseIterable {
   |                 `- note: consider making enum 'Scale' conform to the 'Sendable' protocol
23 |         case none = 0
24 |         case kilo = 1
/Users/admin/builder/spi-builder-workspace/Sources/NumberCompactor.swift:87:24: warning: static property 'nickelLookup' is not concurrency-safe because non-'Sendable' type '[NumberCompactor.LOOKUP]' (aka 'Array<(range: Range<Double>, divisor: Double, scale: NumberCompactor.Scale)>') may have shared mutable state; this is an error in the Swift 6 language mode
 85 |     // cached lookup tables
 86 |     private static let halfDollarLookup: [LOOKUP] = NumberCompactor.generateLookup(threshold: halfDollar)
 87 |     private static let nickelLookup: [LOOKUP] = NumberCompactor.generateLookup(threshold: nickel)
    |                        |- warning: static property 'nickelLookup' is not concurrency-safe because non-'Sendable' type '[NumberCompactor.LOOKUP]' (aka 'Array<(range: Range<Double>, divisor: Double, scale: NumberCompactor.Scale)>') may have shared mutable state; this is an error in the Swift 6 language mode
    |                        |- note: add '@MainActor' to make static property 'nickelLookup' part of global actor 'MainActor'
    |                        `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 88 |
 89 |     static func getThreshold(_ roundSmallToWhole: Bool) -> Double {
/Users/admin/builder/spi-builder-workspace/Sources/NumberCompactor+Scale.swift:22:17: note: consider making enum 'Scale' conform to the 'Sendable' protocol
20 |
21 | extension NumberCompactor {
22 |     public enum Scale: Int, CaseIterable {
   |                 `- note: consider making enum 'Scale' conform to the 'Sendable' protocol
23 |         case none = 0
24 |         case kilo = 1
Build complete! (4.55s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "SwiftCompactor",
  "name" : "SwiftCompactor",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "Compactor",
      "targets" : [
        "Compactor"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "CompactorTests",
      "module_type" : "SwiftTarget",
      "name" : "CompactorTests",
      "path" : "Tests",
      "sources" : [
        "CurrencyCompactorTests.swift",
        "NumberCompactorTests.swift",
        "TimeCompactorTests.swift"
      ],
      "target_dependencies" : [
        "Compactor"
      ],
      "type" : "test"
    },
    {
      "c99name" : "Compactor",
      "module_type" : "SwiftTarget",
      "name" : "Compactor",
      "path" : "Sources",
      "product_memberships" : [
        "Compactor"
      ],
      "sources" : [
        "CurrencyCompactor.swift",
        "NumberCompactor+Scale.swift",
        "NumberCompactor.swift",
        "TimeCompactor+Scale.swift",
        "TimeCompactor+Style.swift",
        "TimeCompactor.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.3"
}
Done.