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, reference 1.0.1 (c529d2), with Swift 6.0 for macOS (SPM) on 28 Nov 2024 17:50:12 UTC.

Swift 6 data race errors: 2

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 -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.58.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/buh/Spiral.git
Reference: 1.0.1
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/buh/Spiral
 * tag               1.0.1      -> FETCH_HEAD
HEAD is now at c529d2e Update README.md
Cloned https://github.com/buh/Spiral.git
Revision (git rev-parse @):
c529d2e71152edf6890f5f508689de17936d6e96
SUCCESS checkout https://github.com/buh/Spiral.git at 1.0.1
========================================
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": "spiral",
      "name": "Spiral",
      "url": "https://github.com/buh/Spiral.git",
      "version": "unspecified",
      "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/Spiral",
      "dependencies": [
      ]
    }
  ]
}
Fetching https://github.com/buh/Spiral.git
[10/969] Fetching spiral
Fetched https://github.com/buh/Spiral.git from cache (1.01s)
Creating working copy for https://github.com/buh/Spiral.git
Working copy of https://github.com/buh/Spiral.git resolved at 1.0.1 (c529d2e)
warning: '.resolve-product-dependencies': dependency 'spiral' 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/buh/Spiral.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 -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--7754E27361AE5C74.txt
[3/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
[4/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 |
[5/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 |
[6/6] Compiling Spiral SpiralView.swift
Build complete! (12.28s)
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.