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 SpatialExtensions, reference 0.1.3 (a047b4), with Swift 6.0 for macOS (SPM) on 5 Nov 2024 13:08:11 UTC.

Swift 6 data race errors: 1

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/heestand-xyz/SpatialExtensions.git
Reference: 0.1.3
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/heestand-xyz/SpatialExtensions
 * tag               0.1.3      -> FETCH_HEAD
HEAD is now at a047b4f Slicing
Cloned https://github.com/heestand-xyz/SpatialExtensions.git
Revision (git rev-parse @):
a047b4fb938b6bffed9c6777d6b566fc2cb4ba25
SUCCESS checkout https://github.com/heestand-xyz/SpatialExtensions.git at 0.1.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": "spatialextensions",
      "name": "SpatialExtensions",
      "url": "https://github.com/heestand-xyz/SpatialExtensions.git",
      "version": "unspecified",
      "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/SpatialExtensions",
      "dependencies": [
      ]
    }
  ]
}
Fetching https://github.com/heestand-xyz/SpatialExtensions.git
[1/99] Fetching spatialextensions
Fetched https://github.com/heestand-xyz/SpatialExtensions.git from cache (0.69s)
Creating working copy for https://github.com/heestand-xyz/SpatialExtensions.git
Working copy of https://github.com/heestand-xyz/SpatialExtensions.git resolved at 0.1.3 (a047b4f)
warning: '.resolve-product-dependencies': dependency 'spatialextensions' 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/heestand-xyz/SpatialExtensions.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/9] Compiling SpatialExtensions Size3D.swift
[4/9] Compiling SpatialExtensions Size3D+place.swift
[5/9] Compiling SpatialExtensions Vector3D.swift
[6/9] Compiling SpatialExtensions Rect3D.swift
[7/9] Compiling SpatialExtensions Angle3D.swift
/Users/admin/builder/spi-builder-workspace/Sources/SpatialExtensions/Angle3D.swift:13:23: warning: static property 'zero' is not concurrency-safe because non-'Sendable' type 'Angle3D' may have shared mutable state; this is an error in the Swift 6 language mode
 9 | import Spatial
10 |
11 | public struct Angle3D: Codable, Equatable, Hashable {
   |               `- note: consider making struct 'Angle3D' conform to the 'Sendable' protocol
12 |
13 |     public static let zero = Angle3D(x: .zero, y: .zero, z: .zero)
   |                       |- warning: static property 'zero' is not concurrency-safe because non-'Sendable' type 'Angle3D' 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
14 |
15 |     public var x: Angle2D
[8/9] Compiling SpatialExtensions Point3D.swift
[9/9] Emitting module SpatialExtensions
/Users/admin/builder/spi-builder-workspace/Sources/SpatialExtensions/Angle3D.swift:13:23: warning: static property 'zero' is not concurrency-safe because non-'Sendable' type 'Angle3D' may have shared mutable state; this is an error in the Swift 6 language mode
 9 | import Spatial
10 |
11 | public struct Angle3D: Codable, Equatable, Hashable {
   |               `- note: consider making struct 'Angle3D' conform to the 'Sendable' protocol
12 |
13 |     public static let zero = Angle3D(x: .zero, y: .zero, z: .zero)
   |                       |- warning: static property 'zero' is not concurrency-safe because non-'Sendable' type 'Angle3D' 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
14 |
15 |     public var x: Angle2D
Build complete! (13.23s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "SpatialExtensions",
  "name" : "SpatialExtensions",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "ios",
      "version" : "16.0"
    },
    {
      "name" : "macos",
      "version" : "13.0"
    },
    {
      "name" : "visionos",
      "version" : "1.0"
    }
  ],
  "products" : [
    {
      "name" : "SpatialExtensions",
      "targets" : [
        "SpatialExtensions"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "SpatialExtensionsTests",
      "module_type" : "SwiftTarget",
      "name" : "SpatialExtensionsTests",
      "path" : "Tests/SpatialExtensionsTests",
      "sources" : [
        "Size3DTests.swift"
      ],
      "target_dependencies" : [
        "SpatialExtensions"
      ],
      "type" : "test"
    },
    {
      "c99name" : "SpatialExtensions",
      "module_type" : "SwiftTarget",
      "name" : "SpatialExtensions",
      "path" : "Sources/SpatialExtensions",
      "product_memberships" : [
        "SpatialExtensions"
      ],
      "sources" : [
        "Angle3D.swift",
        "Point3D.swift",
        "Rect3D.swift",
        "Size3D+place.swift",
        "Size3D.swift",
        "Vector3D.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.9"
}
Done.