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 swift-bezier, reference 0.6.0 (7061d2), with Swift 6.0 for macOS (SPM) on 14 Oct 2024 00:58:26 UTC.

Swift 6 data race errors: 2

Build Command

env DEVELOPER_DIR=/Applications/Xcode-16.0.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.55.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/LuizZak/swift-bezier.git
Reference: 0.6.0
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/LuizZak/swift-bezier
 * tag               0.6.0      -> FETCH_HEAD
HEAD is now at 7061d2e Adding BezierType.approximate() function
Cloned https://github.com/LuizZak/swift-bezier.git
Revision (git rev-parse @):
7061d2e5396e006e6b80313510c3689917d9569d
SUCCESS checkout https://github.com/LuizZak/swift-bezier.git at 0.6.0
Fetching https://github.com/LuizZak/MiniP5Printer.git
[1/50] Fetching minip5printer
Fetched https://github.com/LuizZak/MiniP5Printer.git from cache (0.67s)
Fetching https://github.com/apple/swift-numerics.git
[1/5576] Fetching swift-numerics
Fetched https://github.com/apple/swift-numerics.git from cache (1.10s)
Computing version for https://github.com/apple/swift-numerics.git
Computed https://github.com/apple/swift-numerics.git at 1.0.2 (0.64s)
Creating working copy for https://github.com/apple/swift-numerics.git
Working copy of https://github.com/apple/swift-numerics.git resolved at 1.0.2
Creating working copy for https://github.com/LuizZak/MiniP5Printer.git
Working copy of https://github.com/LuizZak/MiniP5Printer.git resolved at main (5be1800)
========================================
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": "swift-bezier",
      "name": "swift-bezier",
      "url": "https://github.com/LuizZak/swift-bezier.git",
      "version": "unspecified",
      "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/swift-bezier",
      "dependencies": [
      ]
    }
  ]
}
Fetching https://github.com/LuizZak/swift-bezier.git
[1/802] Fetching swift-bezier
Fetched https://github.com/LuizZak/swift-bezier.git from cache (1.13s)
Creating working copy for https://github.com/LuizZak/swift-bezier.git
Working copy of https://github.com/LuizZak/swift-bezier.git resolved at 0.6.0 (7061d2e)
warning: '.resolve-product-dependencies': dependency 'swift-bezier' 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/LuizZak/swift-bezier.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.0.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--4A847ED0836F2485.txt
[3/30] Emitting module SwiftBezier
/Users/admin/builder/spi-builder-workspace/Sources/swift-bezier/Point/Bezier2DPoint.swift:8:23: warning: static property 'zero' is not concurrency-safe because non-'Sendable' type 'Bezier2DPoint' may have shared mutable state; this is an error in the Swift 6 language mode
  2 |
  3 | /// An implementation of `ConstructibleBezier2PointType` with `Double` scalars.
  4 | public struct Bezier2DPoint: ConstructibleBezier2PointType, Hashable, CustomStringConvertible {
    |               `- note: consider making struct 'Bezier2DPoint' conform to the 'Sendable' protocol
  5 |     public typealias Scalar = Double
  6 |
  7 |     /// Returns the zero point, or `(0.0, 0.0)`.
  8 |     public static let zero = Bezier2DPoint(x: 0.0, y: 0.0)
    |                       |- warning: static property 'zero' is not concurrency-safe because non-'Sendable' type 'Bezier2DPoint' 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
  9 |
 10 |     public var x: Scalar
/Users/admin/builder/spi-builder-workspace/Sources/swift-bezier/Point/Bezier2FPoint.swift:8:23: warning: static property 'zero' is not concurrency-safe because non-'Sendable' type 'Bezier2FPoint' may have shared mutable state; this is an error in the Swift 6 language mode
  2 |
  3 | /// An implementation of `ConstructibleBezier2PointType` with `Float` scalars.
  4 | public struct Bezier2FPoint: ConstructibleBezier2PointType, Hashable, CustomStringConvertible {
    |               `- note: consider making struct 'Bezier2FPoint' conform to the 'Sendable' protocol
  5 |     public typealias Scalar = Float
  6 |
  7 |     /// Returns the zero point, or `(0.0, 0.0)`.
  8 |     public static let zero = Bezier2FPoint(x: 0.0, y: 0.0)
    |                       |- warning: static property 'zero' is not concurrency-safe because non-'Sendable' type 'Bezier2FPoint' 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
  9 |
 10 |     public var x: Scalar
[4/33] Compiling SwiftBezier CubicBezier2.swift
[5/33] Compiling SwiftBezier LinearBezier+Cached.swift
[6/33] Compiling SwiftBezier LinearBezier.swift
[7/33] Compiling SwiftBezier BezierLookUpTable.swift
[8/33] Compiling SwiftBezier CubicBezier+Cached.swift
[9/33] Compiling SwiftBezier CubicBezier.swift
[10/33] Compiling SwiftBezier QuadBezier2.swift
[11/33] Compiling SwiftBezier CachedBezier.swift
[12/33] Compiling SwiftBezier BinarySearch.swift
[13/33] Compiling SwiftBezier CubicBezier+Alias.swift
[14/33] Compiling SwiftBezier LinearBezier+Alias.swift
[15/33] Compiling SwiftBezier QuadBezier+Alias.swift
[16/33] Compiling SwiftBezier LinearBezier2.swift
[17/33] Compiling SwiftBezier QuadBezier+Cached.swift
[18/33] Compiling SwiftBezier QuadBezier.swift
[19/33] Compiling SwiftBezier BoundedBezier2Type.swift
[20/33] Compiling SwiftBezier DeCasteljauSolvableBezierType.swift
[21/33] Compiling SwiftBezier DerivableBezierType.swift
[22/33] Compiling SwiftBezier Bezier2PointType.swift
[23/33] Compiling SwiftBezier BezierPointType.swift
[24/33] Compiling SwiftBezier ConstructibleBezier2PointType.swift
[25/33] Compiling SwiftBezier Comparable+Ext.swift
[26/33] Compiling SwiftBezier LegendreGauss.swift
[27/33] Compiling SwiftBezier Math.swift
[28/33] Compiling SwiftBezier QuadraticSolver.swift
/Users/admin/builder/spi-builder-workspace/Sources/swift-bezier/Point/Bezier2DPoint.swift:8:23: warning: static property 'zero' is not concurrency-safe because non-'Sendable' type 'Bezier2DPoint' may have shared mutable state; this is an error in the Swift 6 language mode
  2 |
  3 | /// An implementation of `ConstructibleBezier2PointType` with `Double` scalars.
  4 | public struct Bezier2DPoint: ConstructibleBezier2PointType, Hashable, CustomStringConvertible {
    |               `- note: consider making struct 'Bezier2DPoint' conform to the 'Sendable' protocol
  5 |     public typealias Scalar = Double
  6 |
  7 |     /// Returns the zero point, or `(0.0, 0.0)`.
  8 |     public static let zero = Bezier2DPoint(x: 0.0, y: 0.0)
    |                       |- warning: static property 'zero' is not concurrency-safe because non-'Sendable' type 'Bezier2DPoint' 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
  9 |
 10 |     public var x: Scalar
[29/33] Compiling SwiftBezier LookUpTable.swift
/Users/admin/builder/spi-builder-workspace/Sources/swift-bezier/Point/Bezier2DPoint.swift:8:23: warning: static property 'zero' is not concurrency-safe because non-'Sendable' type 'Bezier2DPoint' may have shared mutable state; this is an error in the Swift 6 language mode
  2 |
  3 | /// An implementation of `ConstructibleBezier2PointType` with `Double` scalars.
  4 | public struct Bezier2DPoint: ConstructibleBezier2PointType, Hashable, CustomStringConvertible {
    |               `- note: consider making struct 'Bezier2DPoint' conform to the 'Sendable' protocol
  5 |     public typealias Scalar = Double
  6 |
  7 |     /// Returns the zero point, or `(0.0, 0.0)`.
  8 |     public static let zero = Bezier2DPoint(x: 0.0, y: 0.0)
    |                       |- warning: static property 'zero' is not concurrency-safe because non-'Sendable' type 'Bezier2DPoint' 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
  9 |
 10 |     public var x: Scalar
[30/33] Compiling SwiftBezier Bezier2DPoint.swift
/Users/admin/builder/spi-builder-workspace/Sources/swift-bezier/Point/Bezier2DPoint.swift:8:23: warning: static property 'zero' is not concurrency-safe because non-'Sendable' type 'Bezier2DPoint' may have shared mutable state; this is an error in the Swift 6 language mode
  2 |
  3 | /// An implementation of `ConstructibleBezier2PointType` with `Double` scalars.
  4 | public struct Bezier2DPoint: ConstructibleBezier2PointType, Hashable, CustomStringConvertible {
    |               `- note: consider making struct 'Bezier2DPoint' conform to the 'Sendable' protocol
  5 |     public typealias Scalar = Double
  6 |
  7 |     /// Returns the zero point, or `(0.0, 0.0)`.
  8 |     public static let zero = Bezier2DPoint(x: 0.0, y: 0.0)
    |                       |- warning: static property 'zero' is not concurrency-safe because non-'Sendable' type 'Bezier2DPoint' 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
  9 |
 10 |     public var x: Scalar
[31/33] Compiling SwiftBezier Bezier2FPoint.swift
/Users/admin/builder/spi-builder-workspace/Sources/swift-bezier/Point/Bezier2FPoint.swift:8:23: warning: static property 'zero' is not concurrency-safe because non-'Sendable' type 'Bezier2FPoint' may have shared mutable state; this is an error in the Swift 6 language mode
  2 |
  3 | /// An implementation of `ConstructibleBezier2PointType` with `Float` scalars.
  4 | public struct Bezier2FPoint: ConstructibleBezier2PointType, Hashable, CustomStringConvertible {
    |               `- note: consider making struct 'Bezier2FPoint' conform to the 'Sendable' protocol
  5 |     public typealias Scalar = Float
  6 |
  7 |     /// Returns the zero point, or `(0.0, 0.0)`.
  8 |     public static let zero = Bezier2FPoint(x: 0.0, y: 0.0)
    |                       |- warning: static property 'zero' is not concurrency-safe because non-'Sendable' type 'Bezier2FPoint' 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
  9 |
 10 |     public var x: Scalar
[32/33] Compiling SwiftBezier Bezier2Type.swift
/Users/admin/builder/spi-builder-workspace/Sources/swift-bezier/Point/Bezier2FPoint.swift:8:23: warning: static property 'zero' is not concurrency-safe because non-'Sendable' type 'Bezier2FPoint' may have shared mutable state; this is an error in the Swift 6 language mode
  2 |
  3 | /// An implementation of `ConstructibleBezier2PointType` with `Float` scalars.
  4 | public struct Bezier2FPoint: ConstructibleBezier2PointType, Hashable, CustomStringConvertible {
    |               `- note: consider making struct 'Bezier2FPoint' conform to the 'Sendable' protocol
  5 |     public typealias Scalar = Float
  6 |
  7 |     /// Returns the zero point, or `(0.0, 0.0)`.
  8 |     public static let zero = Bezier2FPoint(x: 0.0, y: 0.0)
    |                       |- warning: static property 'zero' is not concurrency-safe because non-'Sendable' type 'Bezier2FPoint' 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
  9 |
 10 |     public var x: Scalar
[33/33] Compiling SwiftBezier BezierType.swift
/Users/admin/builder/spi-builder-workspace/Sources/swift-bezier/Point/Bezier2FPoint.swift:8:23: warning: static property 'zero' is not concurrency-safe because non-'Sendable' type 'Bezier2FPoint' may have shared mutable state; this is an error in the Swift 6 language mode
  2 |
  3 | /// An implementation of `ConstructibleBezier2PointType` with `Float` scalars.
  4 | public struct Bezier2FPoint: ConstructibleBezier2PointType, Hashable, CustomStringConvertible {
    |               `- note: consider making struct 'Bezier2FPoint' conform to the 'Sendable' protocol
  5 |     public typealias Scalar = Float
  6 |
  7 |     /// Returns the zero point, or `(0.0, 0.0)`.
  8 |     public static let zero = Bezier2FPoint(x: 0.0, y: 0.0)
    |                       |- warning: static property 'zero' is not concurrency-safe because non-'Sendable' type 'Bezier2FPoint' 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
  9 |
 10 |     public var x: Scalar
Build complete! (13.23s)
Build complete.
{
  "dependencies" : [
    {
      "identity" : "swift-numerics",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "1.0.0",
            "upper_bound" : "2.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/apple/swift-numerics.git"
    },
    {
      "identity" : "minip5printer",
      "requirement" : {
        "branch" : [
          "main"
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/LuizZak/MiniP5Printer.git"
    }
  ],
  "manifest_display_name" : "swift-bezier",
  "name" : "swift-bezier",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "SwiftBezier",
      "targets" : [
        "SwiftBezier"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "SwiftBezierTests",
      "module_type" : "SwiftTarget",
      "name" : "SwiftBezierTests",
      "path" : "Tests/swift-bezierTests",
      "product_dependencies" : [
        "Numerics",
        "MiniP5Printer"
      ],
      "sources" : [
        "Beziers/Cubic/CubicBezier2Tests.swift",
        "Beziers/Cubic/CubicBezierTests.swift",
        "Beziers/Linear/LinearBezier2Tests.swift",
        "Beziers/Linear/LinearBezierTests.swift",
        "Beziers/Quadratic/QuadBezier2Tests.swift",
        "Beziers/Quadratic/QuadBezierTests.swift",
        "CachedBezierTests.swift",
        "Internal/BinarySearchTests.swift",
        "Internal/QuadraticSolverTests.swift",
        "LookUpTableTests.swift",
        "Point/Bezier2DPointTests.swift",
        "Point/Bezier2FPointTests.swift",
        "Protocols/BezierTypeTests.swift",
        "TestUtils/Assertions.swift",
        "TestUtils/CubicBezier2+Factory.swift",
        "TestUtils/LinearBezier2+Factory.swift",
        "TestUtils/P5Printer.swift",
        "TestUtils/ProxyTestBezier.swift",
        "TestUtils/QuadBezier2+Factory.swift",
        "TestUtils/TestFixture.swift"
      ],
      "target_dependencies" : [
        "SwiftBezier"
      ],
      "type" : "test"
    },
    {
      "c99name" : "SwiftBezier",
      "module_type" : "SwiftTarget",
      "name" : "SwiftBezier",
      "path" : "Sources/swift-bezier",
      "product_memberships" : [
        "SwiftBezier"
      ],
      "sources" : [
        "BezierLookUpTable.swift",
        "Beziers/Cubic/CubicBezier+Cached.swift",
        "Beziers/Cubic/CubicBezier.swift",
        "Beziers/Cubic/CubicBezier2.swift",
        "Beziers/Linear/LinearBezier+Cached.swift",
        "Beziers/Linear/LinearBezier.swift",
        "Beziers/Linear/LinearBezier2.swift",
        "Beziers/Quadratic/QuadBezier+Cached.swift",
        "Beziers/Quadratic/QuadBezier.swift",
        "Beziers/Quadratic/QuadBezier2.swift",
        "CachedBezier.swift",
        "Internal/BinarySearch.swift",
        "Internal/Comparable+Ext.swift",
        "Internal/LegendreGauss.swift",
        "Internal/Math.swift",
        "Internal/QuadraticSolver.swift",
        "LookUpTable.swift",
        "Point/Bezier2DPoint.swift",
        "Point/Bezier2FPoint.swift",
        "Protocols/Bezier2Type.swift",
        "Protocols/BezierType.swift",
        "Protocols/BoundedBezier2Type.swift",
        "Protocols/DeCasteljauSolvableBezierType.swift",
        "Protocols/DerivableBezierType.swift",
        "Protocols/Point/Bezier2PointType.swift",
        "Protocols/Point/BezierPointType.swift",
        "Protocols/Point/ConstructibleBezier2PointType.swift",
        "Typealiases/CubicBezier+Alias.swift",
        "Typealiases/LinearBezier+Alias.swift",
        "Typealiases/QuadBezier+Alias.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.5"
}
Done.