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 main (a047b4), with Swift 6.0 (beta) for macOS (SPM) on 14 Sep 2024 07:21:30 UTC.

Swift 6 data race errors: 1

Build Command

env DEVELOPER_DIR=/Applications/Xcode-16.0.0-Release.Candidate.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.53.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/heestand-xyz/SpatialExtensions.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/heestand-xyz/SpatialExtensions
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
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 main
========================================
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.0.0-Release.Candidate.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-117DEE11B69C53C9.txt
[3/9] Compiling SpatialExtensions Size3D+place.swift
[4/9] Compiling SpatialExtensions Rect3D.swift
[5/9] Compiling SpatialExtensions Vector3D.swift
[6/9] Compiling SpatialExtensions Size3D.swift
[7/9] Compiling SpatialExtensions Point3D.swift
[8/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
[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! (12.68s)
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.