The Swift Package Index logo.Swift Package Index

Has it really been five years since Swift Package Index launched? Read our anniversary blog post!

Build Information

Successful build of SwiftyVector, reference 0.4.0-alpha (db9fdf), with Swift 6.1 for macOS (SPM) on 24 Apr 2025 17:05:30 UTC.

Swift 6 data race errors: 6

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/koher/swiftyvector.git
Reference: 0.4.0-alpha
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/koher/swiftyvector
 * tag               0.4.0-alpha -> FETCH_HEAD
HEAD is now at db9fdf8 Update README.md
Cloned https://github.com/koher/swiftyvector.git
Revision (git rev-parse @):
db9fdf8b2c66b34f6b10b11fe07ea64d90e70e27
SUCCESS checkout https://github.com/koher/swiftyvector.git at 0.4.0-alpha
========================================
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": "swiftyvector",
      "name": "SwiftyVector",
      "url": "https://github.com/koher/swiftyvector.git",
      "version": "unspecified",
      "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/swiftyvector",
      "dependencies": [
      ]
    }
  ]
}
Fetching https://github.com/koher/swiftyvector.git
[1/254] Fetching swiftyvector
Fetched https://github.com/koher/swiftyvector.git from cache (0.61s)
Creating working copy for https://github.com/koher/swiftyvector.git
Working copy of https://github.com/koher/swiftyvector.git resolved at 0.4.0-alpha (db9fdf8)
warning: '.resolve-product-dependencies': dependency 'swiftyvector' 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/koher/swiftyvector.git
https://github.com/koher/swiftyvector.git
{
  "dependencies" : [
  ],
  "manifest_display_name" : "SwiftyVector",
  "name" : "SwiftyVector",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "SwiftyVector",
      "targets" : [
        "SwiftyVector"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "SwiftyVectorTests",
      "module_type" : "SwiftTarget",
      "name" : "SwiftyVectorTests",
      "path" : "Tests/SwiftyVectorTests",
      "sources" : [
        "ConcreteTests.swift",
        "SwiftyVectorTests.swift",
        "Utils.swift"
      ],
      "target_dependencies" : [
        "SwiftyVector"
      ],
      "type" : "test"
    },
    {
      "c99name" : "SwiftyVector",
      "module_type" : "SwiftTarget",
      "name" : "SwiftyVector",
      "path" : "Sources/SwiftyVector",
      "product_memberships" : [
        "SwiftyVector"
      ],
      "sources" : [
        "Concrete.swift",
        "CoreGraphics.swift",
        "Vector.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "4.0"
}
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/6] Emitting module SwiftyVector
/Users/admin/builder/spi-builder-workspace/Sources/SwiftyVector/Concrete.swift:118:23: warning: static property 'zero' is not concurrency-safe because non-'Sendable' type 'Vector2f' may have shared mutable state; this is an error in the Swift 6 language mode
  4 |
  5 | #if canImport(simd)
  6 | public struct Vector2f: Vector {
    |               `- note: consider making struct 'Vector2f' conform to the 'Sendable' protocol
  7 |     fileprivate var vector: vector_float2
  8 |
    :
116 |     }
117 |
118 |     public static let zero: Vector2f = Vector2f(
    |                       |- warning: static property 'zero' is not concurrency-safe because non-'Sendable' type 'Vector2f' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: add '@MainActor' to make static property 'zero' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
119 |         x: 0,
120 |         y: 0
/Users/admin/builder/spi-builder-workspace/Sources/SwiftyVector/Concrete.swift:256: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
142 |
143 | #if canImport(simd)
144 | public struct Vector2: Vector {
    |               `- note: consider making struct 'Vector2' conform to the 'Sendable' protocol
145 |     fileprivate var vector: vector_double2
146 |
    :
254 |     }
255 |
256 |     public static let zero: Vector2 = Vector2(
    |                       |- 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: add '@MainActor' to make static property 'zero' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
257 |         x: 0,
258 |         y: 0
/Users/admin/builder/spi-builder-workspace/Sources/SwiftyVector/Concrete.swift:418:23: warning: static property 'zero' is not concurrency-safe because non-'Sendable' type 'Vector3f' may have shared mutable state; this is an error in the Swift 6 language mode
280 |
281 | #if canImport(simd)
282 | public struct Vector3f: Vector {
    |               `- note: consider making struct 'Vector3f' conform to the 'Sendable' protocol
283 |     fileprivate var vector: vector_float3
284 |
    :
416 |     }
417 |
418 |     public static let zero: Vector3f = Vector3f(
    |                       |- warning: static property 'zero' is not concurrency-safe because non-'Sendable' type 'Vector3f' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: add '@MainActor' to make static property 'zero' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
419 |         x: 0,
420 |         y: 0,
/Users/admin/builder/spi-builder-workspace/Sources/SwiftyVector/Concrete.swift:582: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
444 |
445 | #if canImport(simd)
446 | public struct Vector3: Vector {
    |               `- note: consider making struct 'Vector3' conform to the 'Sendable' protocol
447 |     fileprivate var vector: vector_double3
448 |
    :
580 |     }
581 |
582 |     public static let zero: Vector3 = Vector3(
    |                       |- 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: add '@MainActor' to make static property 'zero' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
583 |         x: 0,
584 |         y: 0,
/Users/admin/builder/spi-builder-workspace/Sources/SwiftyVector/Concrete.swift:754:23: warning: static property 'zero' is not concurrency-safe because non-'Sendable' type 'Vector4f' may have shared mutable state; this is an error in the Swift 6 language mode
608 |
609 | #if canImport(simd)
610 | public struct Vector4f: Vector {
    |               `- note: consider making struct 'Vector4f' conform to the 'Sendable' protocol
611 |     fileprivate var vector: vector_float4
612 |
    :
752 |     }
753 |
754 |     public static let zero: Vector4f = Vector4f(
    |                       |- warning: static property 'zero' is not concurrency-safe because non-'Sendable' type 'Vector4f' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: add '@MainActor' to make static property 'zero' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
755 |         x: 0,
756 |         y: 0,
/Users/admin/builder/spi-builder-workspace/Sources/SwiftyVector/Concrete.swift:928: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
782 |
783 | #if canImport(simd)
784 | public struct Vector4: Vector {
    |               `- note: consider making struct 'Vector4' conform to the 'Sendable' protocol
785 |     fileprivate var vector: vector_double4
786 |
    :
926 |     }
927 |
928 |     public static let zero: Vector4 = Vector4(
    |                       |- 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: add '@MainActor' to make static property 'zero' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
929 |         x: 0,
930 |         y: 0,
[4/6] Compiling SwiftyVector Concrete.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftyVector/Concrete.swift:118:23: warning: static property 'zero' is not concurrency-safe because non-'Sendable' type 'Vector2f' may have shared mutable state; this is an error in the Swift 6 language mode
  4 |
  5 | #if canImport(simd)
  6 | public struct Vector2f: Vector {
    |               `- note: consider making struct 'Vector2f' conform to the 'Sendable' protocol
  7 |     fileprivate var vector: vector_float2
  8 |
    :
116 |     }
117 |
118 |     public static let zero: Vector2f = Vector2f(
    |                       |- warning: static property 'zero' is not concurrency-safe because non-'Sendable' type 'Vector2f' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: add '@MainActor' to make static property 'zero' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
119 |         x: 0,
120 |         y: 0
/Users/admin/builder/spi-builder-workspace/Sources/SwiftyVector/Concrete.swift:256: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
142 |
143 | #if canImport(simd)
144 | public struct Vector2: Vector {
    |               `- note: consider making struct 'Vector2' conform to the 'Sendable' protocol
145 |     fileprivate var vector: vector_double2
146 |
    :
254 |     }
255 |
256 |     public static let zero: Vector2 = Vector2(
    |                       |- 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: add '@MainActor' to make static property 'zero' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
257 |         x: 0,
258 |         y: 0
/Users/admin/builder/spi-builder-workspace/Sources/SwiftyVector/Concrete.swift:418:23: warning: static property 'zero' is not concurrency-safe because non-'Sendable' type 'Vector3f' may have shared mutable state; this is an error in the Swift 6 language mode
280 |
281 | #if canImport(simd)
282 | public struct Vector3f: Vector {
    |               `- note: consider making struct 'Vector3f' conform to the 'Sendable' protocol
283 |     fileprivate var vector: vector_float3
284 |
    :
416 |     }
417 |
418 |     public static let zero: Vector3f = Vector3f(
    |                       |- warning: static property 'zero' is not concurrency-safe because non-'Sendable' type 'Vector3f' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: add '@MainActor' to make static property 'zero' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
419 |         x: 0,
420 |         y: 0,
/Users/admin/builder/spi-builder-workspace/Sources/SwiftyVector/Concrete.swift:582: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
444 |
445 | #if canImport(simd)
446 | public struct Vector3: Vector {
    |               `- note: consider making struct 'Vector3' conform to the 'Sendable' protocol
447 |     fileprivate var vector: vector_double3
448 |
    :
580 |     }
581 |
582 |     public static let zero: Vector3 = Vector3(
    |                       |- 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: add '@MainActor' to make static property 'zero' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
583 |         x: 0,
584 |         y: 0,
/Users/admin/builder/spi-builder-workspace/Sources/SwiftyVector/Concrete.swift:754:23: warning: static property 'zero' is not concurrency-safe because non-'Sendable' type 'Vector4f' may have shared mutable state; this is an error in the Swift 6 language mode
608 |
609 | #if canImport(simd)
610 | public struct Vector4f: Vector {
    |               `- note: consider making struct 'Vector4f' conform to the 'Sendable' protocol
611 |     fileprivate var vector: vector_float4
612 |
    :
752 |     }
753 |
754 |     public static let zero: Vector4f = Vector4f(
    |                       |- warning: static property 'zero' is not concurrency-safe because non-'Sendable' type 'Vector4f' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: add '@MainActor' to make static property 'zero' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
755 |         x: 0,
756 |         y: 0,
/Users/admin/builder/spi-builder-workspace/Sources/SwiftyVector/Concrete.swift:928: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
782 |
783 | #if canImport(simd)
784 | public struct Vector4: Vector {
    |               `- note: consider making struct 'Vector4' conform to the 'Sendable' protocol
785 |     fileprivate var vector: vector_double4
786 |
    :
926 |     }
927 |
928 |     public static let zero: Vector4 = Vector4(
    |                       |- 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: add '@MainActor' to make static property 'zero' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
929 |         x: 0,
930 |         y: 0,
[5/6] Compiling SwiftyVector CoreGraphics.swift
[6/6] Compiling SwiftyVector Vector.swift
Build complete! (4.44s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "SwiftyVector",
  "name" : "SwiftyVector",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "SwiftyVector",
      "targets" : [
        "SwiftyVector"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "SwiftyVectorTests",
      "module_type" : "SwiftTarget",
      "name" : "SwiftyVectorTests",
      "path" : "Tests/SwiftyVectorTests",
      "sources" : [
        "ConcreteTests.swift",
        "SwiftyVectorTests.swift",
        "Utils.swift"
      ],
      "target_dependencies" : [
        "SwiftyVector"
      ],
      "type" : "test"
    },
    {
      "c99name" : "SwiftyVector",
      "module_type" : "SwiftTarget",
      "name" : "SwiftyVector",
      "path" : "Sources/SwiftyVector",
      "product_memberships" : [
        "SwiftyVector"
      ],
      "sources" : [
        "Concrete.swift",
        "CoreGraphics.swift",
        "Vector.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "4.0"
}
Done.