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

Failed to build Hamilton, reference 1.0.3 (6a56e6), with Swift 6.0 for macOS (SPM) on 31 Oct 2024 20:03:58 UTC.

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

Build Log

========================================
RunAll
========================================
Builder version: 4.56.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/pducks32/Hamilton.git
Reference: 1.0.3
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/pducks32/Hamilton
 * tag               1.0.3      -> FETCH_HEAD
HEAD is now at 6a56e6d add Xcode check
Cloned https://github.com/pducks32/Hamilton.git
Revision (git rev-parse @):
6a56e6d3e1d481be2e5f35b934bac15d6ff70435
SUCCESS checkout https://github.com/pducks32/Hamilton.git at 1.0.3
========================================
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": "hamilton",
      "name": "Hamilton",
      "url": "https://github.com/pducks32/Hamilton.git",
      "version": "unspecified",
      "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/Hamilton",
      "dependencies": [
      ]
    }
  ]
}
Fetching https://github.com/pducks32/Hamilton.git
[1/339] Fetching hamilton
Fetched https://github.com/pducks32/Hamilton.git from cache (0.78s)
Creating working copy for https://github.com/pducks32/Hamilton.git
Working copy of https://github.com/pducks32/Hamilton.git resolved at 1.0.3 (6a56e6d)
warning: '.resolve-product-dependencies': dependency 'hamilton' 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/pducks32/Hamilton.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
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version--7754E27361AE5C74.txt
[3/14] Compiling Hamilton Scalar.swift
[4/14] Compiling Hamilton VectorableFormatter.swift
/Users/admin/builder/spi-builder-workspace/Sources/Hamilton/VectorableFormatter.swift:24:23: warning: static property 'defaultNumberFormatter' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
22 |     }
23 |
24 |     public static var defaultNumberFormatter : NumberFormatter = {
   |                       |- warning: static property 'defaultNumberFormatter' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: convert 'defaultNumberFormatter' to a 'let' constant to make 'Sendable' shared state immutable
   |                       |- note: annotate 'defaultNumberFormatter' 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
25 |         let formatter = NumberFormatter()
26 |         formatter.maximumFractionDigits = 3
[5/14] Compiling Hamilton Vectorable.swift
[6/14] Compiling Hamilton Vector2.swift
/Users/admin/builder/spi-builder-workspace/Sources/Hamilton/Vectors/Vector2.swift:16:23: warning: static property 'zero' is not concurrency-safe because non-'Sendable' type 'Vector2' may have shared mutable state; this is an error in the Swift 6 language mode
 8 | import Foundation
 9 |
10 | public struct Vector2 : Vectorable {
   |               `- note: consider making struct 'Vector2' conform to the 'Sendable' protocol
11 |
12 |     public typealias Size = TwoDegreesOfFreedom
   :
14 |
15 |     /// 2D origin
16 |     public static let zero = Vector2(x: 0, y: 0)
   |                       |- warning: static property 'zero' is not concurrency-safe because non-'Sendable' type 'Vector2' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: annotate 'zero' 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
17 |
18 |     /// First component of vector
[7/14] Compiling Hamilton Vector3.swift
/Users/admin/builder/spi-builder-workspace/Sources/Hamilton/Vectors/Vector3.swift:12:31: error: ambiguous use of 'init'
 10 | public struct Vector3 : Vectorable {
 11 |     /// X Axis in 3D space
 12 |     public static let xAxis = Vector3(1, 0, 0)
    |                               `- error: ambiguous use of 'init'
 13 |     /// Y Axis in 3D space
 14 |     public static let yAxis = Vector3(0, 1, 0)
    :
 33 |     }
 34 |
 35 |     public init(_ elements: Component...) {
    |            `- note: found this candidate
 36 |         x = elements[0]
 37 |         y = elements[1]
    :
 39 |     }
 40 |
 41 |     public init(_ x : Component, _ y : Component, _ z : Component) {
    |            `- note: found this candidate
 42 |         self.x = x
 43 |         self.y = y
/Users/admin/builder/spi-builder-workspace/Sources/Hamilton/Vectors/Vector3.swift:14:31: error: ambiguous use of 'init'
 12 |     public static let xAxis = Vector3(1, 0, 0)
 13 |     /// Y Axis in 3D space
 14 |     public static let yAxis = Vector3(0, 1, 0)
    |                               `- error: ambiguous use of 'init'
 15 |     /// Z Axis in 3D space
 16 |     public static let zAxis = Vector3(0, 0, 1)
    :
 33 |     }
 34 |
 35 |     public init(_ elements: Component...) {
    |            `- note: found this candidate
 36 |         x = elements[0]
 37 |         y = elements[1]
    :
 39 |     }
 40 |
 41 |     public init(_ x : Component, _ y : Component, _ z : Component) {
    |            `- note: found this candidate
 42 |         self.x = x
 43 |         self.y = y
/Users/admin/builder/spi-builder-workspace/Sources/Hamilton/Vectors/Vector3.swift:16:31: error: ambiguous use of 'init'
 14 |     public static let yAxis = Vector3(0, 1, 0)
 15 |     /// Z Axis in 3D space
 16 |     public static let zAxis = Vector3(0, 0, 1)
    |                               `- error: ambiguous use of 'init'
 17 |
 18 |     /// 3D origin
    :
 33 |     }
 34 |
 35 |     public init(_ elements: Component...) {
    |            `- note: found this candidate
 36 |         x = elements[0]
 37 |         y = elements[1]
    :
 39 |     }
 40 |
 41 |     public init(_ x : Component, _ y : Component, _ z : Component) {
    |            `- note: found this candidate
 42 |         self.x = x
 43 |         self.y = y
/Users/admin/builder/spi-builder-workspace/Sources/Hamilton/Vectors/Vector3.swift:19:23: warning: static property 'zero' is not concurrency-safe because non-'Sendable' type 'Vector3' may have shared mutable state; this is an error in the Swift 6 language mode
  8 | import Foundation
  9 |
 10 | public struct Vector3 : Vectorable {
    |               `- note: consider making struct 'Vector3' conform to the 'Sendable' protocol
 11 |     /// X Axis in 3D space
 12 |     public static let xAxis = Vector3(1, 0, 0)
    :
 17 |
 18 |     /// 3D origin
 19 |     public static let zero = Vector3(x: 0, y: 0, z: 0)
    |                       |- warning: static property 'zero' is not concurrency-safe because non-'Sendable' type 'Vector3' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: annotate 'zero' 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
 20 |
 21 |     public typealias Size = ThreeDegreesOfFreedom
[8/15] Compiling Hamilton Rotateable.swift
/Users/admin/builder/spi-builder-workspace/Sources/Hamilton/Rotateable.swift:55:16: error: ambiguous use of 'init'
53 |         let selfAsQuat = Quaternion(w: Quaternion.Component(0), x: Quaternion.Component(x), y: Quaternion.Component(y), z: Quaternion.Component(z))
54 |         let rotateQuat = quaternion.multiplied(by: selfAsQuat).multiplied(by: quaternion.inverse)
55 |         return Vector3(Component(rotateQuat.x), Component(rotateQuat.y), Component(rotateQuat.z))
   |                `- error: ambiguous use of 'init'
56 |     }
57 | }
/Users/admin/builder/spi-builder-workspace/Sources/Hamilton/Vectors/Vector3.swift:35:12: note: found this candidate
 33 |     }
 34 |
 35 |     public init(_ elements: Component...) {
    |            `- note: found this candidate
 36 |         x = elements[0]
 37 |         y = elements[1]
    :
 39 |     }
 40 |
 41 |     public init(_ x : Component, _ y : Component, _ z : Component) {
    |            `- note: found this candidate
 42 |         self.x = x
 43 |         self.y = y
[9/15] Compiling Hamilton Vector4.swift
/Users/admin/builder/spi-builder-workspace/Sources/Hamilton/Vectors/Vector4.swift:16:23: warning: static property 'zero' is not concurrency-safe because non-'Sendable' type 'Vector4' may have shared mutable state; this is an error in the Swift 6 language mode
  9 |
 10 | /// W first 4 vector.
 11 | public struct Vector4 : Vectorable {
    |               `- note: consider making struct 'Vector4' conform to the 'Sendable' protocol
 12 |     public typealias Size = FourDegreesOfFreedom
 13 |     public typealias Component = Float
 14 |
 15 |     /// 4D origin
 16 |     public static let zero = Vector4(w: 0, x: 0, y: 0, z: 0)
    |                       |- warning: static property 'zero' is not concurrency-safe because non-'Sendable' type 'Vector4' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: annotate 'zero' 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
 17 |
 18 |     /// First component of vector
error: emit-module command failed with exit code 1 (use -v to see invocation)
[10/15] Compiling Hamilton AngleConvertible.swift
[11/15] Compiling Hamilton EulerAngles+Equatable.swift
[12/15] Compiling Hamilton EulerAngles+Operators.swift
[13/15] Compiling Hamilton EulerAngles.swift
[14/15] Emitting module Hamilton
/Users/admin/builder/spi-builder-workspace/Sources/Hamilton/Quaternion.swift:12:1: warning: extension declares a conformance of imported type '_GLKMatrix4' to imported protocol 'CustomDebugStringConvertible'; this will not behave correctly if the owners of 'GLKit' introduce this conformance in the future
 10 | import SceneKit
 11 |
 12 | extension GLKMatrix4 : CustomDebugStringConvertible {
    | |- warning: extension declares a conformance of imported type '_GLKMatrix4' to imported protocol 'CustomDebugStringConvertible'; this will not behave correctly if the owners of 'GLKit' introduce this conformance in the future
    | `- note: add '@retroactive' to silence this warning
 13 |     public var debugDescription: String {
 14 |         let topRow = GLKMatrix4GetRow(self, 0)
/Users/admin/builder/spi-builder-workspace/Sources/Hamilton/VectorableFormatter.swift:24:23: warning: static property 'defaultNumberFormatter' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
22 |     }
23 |
24 |     public static var defaultNumberFormatter : NumberFormatter = {
   |                       |- warning: static property 'defaultNumberFormatter' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: convert 'defaultNumberFormatter' to a 'let' constant to make 'Sendable' shared state immutable
   |                       |- note: annotate 'defaultNumberFormatter' 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
25 |         let formatter = NumberFormatter()
26 |         formatter.maximumFractionDigits = 3
/Users/admin/builder/spi-builder-workspace/Sources/Hamilton/Vectors/Vector2.swift:16:23: warning: static property 'zero' is not concurrency-safe because non-'Sendable' type 'Vector2' may have shared mutable state; this is an error in the Swift 6 language mode
 8 | import Foundation
 9 |
10 | public struct Vector2 : Vectorable {
   |               `- note: consider making struct 'Vector2' conform to the 'Sendable' protocol
11 |
12 |     public typealias Size = TwoDegreesOfFreedom
   :
14 |
15 |     /// 2D origin
16 |     public static let zero = Vector2(x: 0, y: 0)
   |                       |- warning: static property 'zero' is not concurrency-safe because non-'Sendable' type 'Vector2' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: annotate 'zero' 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
17 |
18 |     /// First component of vector
/Users/admin/builder/spi-builder-workspace/Sources/Hamilton/Vectors/Vector3.swift:12:31: error: ambiguous use of 'init'
 10 | public struct Vector3 : Vectorable {
 11 |     /// X Axis in 3D space
 12 |     public static let xAxis = Vector3(1, 0, 0)
    |                               `- error: ambiguous use of 'init'
 13 |     /// Y Axis in 3D space
 14 |     public static let yAxis = Vector3(0, 1, 0)
    :
 33 |     }
 34 |
 35 |     public init(_ elements: Component...) {
    |            `- note: found this candidate
 36 |         x = elements[0]
 37 |         y = elements[1]
    :
 39 |     }
 40 |
 41 |     public init(_ x : Component, _ y : Component, _ z : Component) {
    |            `- note: found this candidate
 42 |         self.x = x
 43 |         self.y = y
/Users/admin/builder/spi-builder-workspace/Sources/Hamilton/Vectors/Vector3.swift:14:31: error: ambiguous use of 'init'
 12 |     public static let xAxis = Vector3(1, 0, 0)
 13 |     /// Y Axis in 3D space
 14 |     public static let yAxis = Vector3(0, 1, 0)
    |                               `- error: ambiguous use of 'init'
 15 |     /// Z Axis in 3D space
 16 |     public static let zAxis = Vector3(0, 0, 1)
    :
 33 |     }
 34 |
 35 |     public init(_ elements: Component...) {
    |            `- note: found this candidate
 36 |         x = elements[0]
 37 |         y = elements[1]
    :
 39 |     }
 40 |
 41 |     public init(_ x : Component, _ y : Component, _ z : Component) {
    |            `- note: found this candidate
 42 |         self.x = x
 43 |         self.y = y
/Users/admin/builder/spi-builder-workspace/Sources/Hamilton/Vectors/Vector3.swift:16:31: error: ambiguous use of 'init'
 14 |     public static let yAxis = Vector3(0, 1, 0)
 15 |     /// Z Axis in 3D space
 16 |     public static let zAxis = Vector3(0, 0, 1)
    |                               `- error: ambiguous use of 'init'
 17 |
 18 |     /// 3D origin
    :
 33 |     }
 34 |
 35 |     public init(_ elements: Component...) {
    |            `- note: found this candidate
 36 |         x = elements[0]
 37 |         y = elements[1]
    :
 39 |     }
 40 |
 41 |     public init(_ x : Component, _ y : Component, _ z : Component) {
    |            `- note: found this candidate
 42 |         self.x = x
 43 |         self.y = y
/Users/admin/builder/spi-builder-workspace/Sources/Hamilton/Vectors/Vector3.swift:19:23: warning: static property 'zero' is not concurrency-safe because non-'Sendable' type 'Vector3' may have shared mutable state; this is an error in the Swift 6 language mode
  8 | import Foundation
  9 |
 10 | public struct Vector3 : Vectorable {
    |               `- note: consider making struct 'Vector3' conform to the 'Sendable' protocol
 11 |     /// X Axis in 3D space
 12 |     public static let xAxis = Vector3(1, 0, 0)
    :
 17 |
 18 |     /// 3D origin
 19 |     public static let zero = Vector3(x: 0, y: 0, z: 0)
    |                       |- warning: static property 'zero' is not concurrency-safe because non-'Sendable' type 'Vector3' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: annotate 'zero' 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
 20 |
 21 |     public typealias Size = ThreeDegreesOfFreedom
/Users/admin/builder/spi-builder-workspace/Sources/Hamilton/Vectors/Vector4.swift:16:23: warning: static property 'zero' is not concurrency-safe because non-'Sendable' type 'Vector4' may have shared mutable state; this is an error in the Swift 6 language mode
  9 |
 10 | /// W first 4 vector.
 11 | public struct Vector4 : Vectorable {
    |               `- note: consider making struct 'Vector4' conform to the 'Sendable' protocol
 12 |     public typealias Size = FourDegreesOfFreedom
 13 |     public typealias Component = Float
 14 |
 15 |     /// 4D origin
 16 |     public static let zero = Vector4(w: 0, x: 0, y: 0, z: 0)
    |                       |- warning: static property 'zero' is not concurrency-safe because non-'Sendable' type 'Vector4' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: annotate 'zero' 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
 17 |
 18 |     /// First component of vector
[15/15] Compiling Hamilton Quaternion.swift
/Users/admin/builder/spi-builder-workspace/Sources/Hamilton/Quaternion.swift:12:1: warning: extension declares a conformance of imported type '_GLKMatrix4' to imported protocol 'CustomDebugStringConvertible'; this will not behave correctly if the owners of 'GLKit' introduce this conformance in the future
 10 | import SceneKit
 11 |
 12 | extension GLKMatrix4 : CustomDebugStringConvertible {
    | |- warning: extension declares a conformance of imported type '_GLKMatrix4' to imported protocol 'CustomDebugStringConvertible'; this will not behave correctly if the owners of 'GLKit' introduce this conformance in the future
    | `- note: add '@retroactive' to silence this warning
 13 |     public var debugDescription: String {
 14 |         let topRow = GLKMatrix4GetRow(self, 0)
/Users/admin/builder/spi-builder-workspace/Sources/Hamilton/Quaternion.swift:326:44: error: ambiguous use of 'init'
324 |         }
325 |
326 |         return EulerAngles(vectorOfAngles: Vector3(x, y, z), unit: .radians, system: system)
    |                                            `- error: ambiguous use of 'init'
327 |     }
328 |
/Users/admin/builder/spi-builder-workspace/Sources/Hamilton/Vectors/Vector3.swift:35:12: note: found this candidate
 33 |     }
 34 |
 35 |     public init(_ elements: Component...) {
    |            `- note: found this candidate
 36 |         x = elements[0]
 37 |         y = elements[1]
    :
 39 |     }
 40 |
 41 |     public init(_ x : Component, _ y : Component, _ z : Component) {
    |            `- note: found this candidate
 42 |         self.x = x
 43 |         self.y = y
BUILD FAILURE 6.0 macosSpm