This is a staging environment. For live and up-to-date package information, visit swiftpackageindex.com.

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 Spiral with Swift 6.0 for macOS (SPM).

Swift 6 data race errors: 2

Build Command

env DEVELOPER_DIR=/Applications/Xcode-15.3.0.app xcrun --toolchain org.swift.600202405261a swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete

Build Log

========================================
RunAll
========================================
Builder version: 4.40.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/buh/Spiral.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/buh/Spiral
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at 7921e17 Update FUNDING.yml
Cloned https://github.com/buh/Spiral.git
Revision (git rev-parse @):
7921e17f20062e62c4fe6ee98fb8ed61e6f3427e
SUCCESS checkout https://github.com/buh/Spiral.git at main
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.0
Building package at path:  $workDir
https://github.com/buh/Spiral.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-15.3.0.app xcrun --toolchain org.swift.600202405261a 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-6F35C1178C84523A.txt
[3/6] Compiling Spiral SpiralPoints.swift
/Users/admin/builder/spi-builder-workspace/Sources/Spiral/SpiralPoints.swift:19:23: warning: static property 'zero' is not concurrency-safe because non-'Sendable' type 'SpiralPoint' may have shared mutable state; this is an error in the Swift 6 language mode
 8 |
 9 | /// Spiral point with location and angular position.
10 | public struct SpiralPoint {
   |               `- note: consider making struct 'SpiralPoint' conform to the 'Sendable' protocol
11 |
12 |     /// A spiral point location.
   :
17 |
18 |     /// A default empty value.
19 |     public static let zero = SpiralPoint(point: .zero, angle: .zero)
   |                       |- warning: static property 'zero' is not concurrency-safe because non-'Sendable' type 'SpiralPoint' 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 |
[4/6] Compiling Spiral SpiralView.swift
[5/6] Compiling Spiral Spiral.swift
/Users/admin/builder/spi-builder-workspace/Sources/Spiral/Spiral.swift:13:17: warning: stored property 'pathType' of 'Sendable'-conforming struct 'Spiral' has non-sendable type 'SpiralPathType'; this is an error in the Swift 6 language mode
 11 | public struct Spiral: Shape {
 12 |
 13 |     private let pathType: SpiralPathType
    |                 `- warning: stored property 'pathType' of 'Sendable'-conforming struct 'Spiral' has non-sendable type 'SpiralPathType'; this is an error in the Swift 6 language mode
 14 |     private let startAt: Angle
 15 |     private let endAt: Angle
    :
102 |
103 | /// Type of path to draw the spiral.
104 | public enum SpiralPathType {
    |             `- note: consider making enum 'SpiralPathType' conform to the 'Sendable' protocol
105 |     /// Line type draws lines between spiral points.
106 |     case line
[6/6] Emitting module Spiral
/Users/admin/builder/spi-builder-workspace/Sources/Spiral/Spiral.swift:13:17: warning: stored property 'pathType' of 'Sendable'-conforming struct 'Spiral' has non-sendable type 'SpiralPathType'; this is an error in the Swift 6 language mode
 11 | public struct Spiral: Shape {
 12 |
 13 |     private let pathType: SpiralPathType
    |                 `- warning: stored property 'pathType' of 'Sendable'-conforming struct 'Spiral' has non-sendable type 'SpiralPathType'; this is an error in the Swift 6 language mode
 14 |     private let startAt: Angle
 15 |     private let endAt: Angle
    :
102 |
103 | /// Type of path to draw the spiral.
104 | public enum SpiralPathType {
    |             `- note: consider making enum 'SpiralPathType' conform to the 'Sendable' protocol
105 |     /// Line type draws lines between spiral points.
106 |     case line
/Users/admin/builder/spi-builder-workspace/Sources/Spiral/SpiralPoints.swift:19:23: warning: static property 'zero' is not concurrency-safe because non-'Sendable' type 'SpiralPoint' may have shared mutable state; this is an error in the Swift 6 language mode
 8 |
 9 | /// Spiral point with location and angular position.
10 | public struct SpiralPoint {
   |               `- note: consider making struct 'SpiralPoint' conform to the 'Sendable' protocol
11 |
12 |     /// A spiral point location.
   :
17 |
18 |     /// A default empty value.
19 |     public static let zero = SpiralPoint(point: .zero, angle: .zero)
   |                       |- warning: static property 'zero' is not concurrency-safe because non-'Sendable' type 'SpiralPoint' 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 |
Build complete! (31.18s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "Spiral",
  "name" : "Spiral",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "macos",
      "version" : "11.0"
    },
    {
      "name" : "ios",
      "version" : "14.0"
    },
    {
      "name" : "watchos",
      "version" : "7.0"
    }
  ],
  "products" : [
    {
      "name" : "Spiral",
      "targets" : [
        "Spiral"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "Spiral",
      "module_type" : "SwiftTarget",
      "name" : "Spiral",
      "path" : "Sources/Spiral",
      "product_memberships" : [
        "Spiral"
      ],
      "sources" : [
        "Spiral.swift",
        "SpiralPoints.swift",
        "SpiralView.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.5"
}
Done.
This is a staging environment. For live and up-to-date package information, visit swiftpackageindex.com.