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 iShape, reference main (5093a2), with Swift 6.0 for macOS (SPM) on 1 Dec 2024 11:11:06 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 -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.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/iShape-Swift/iShape.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/iShape-Swift/iShape
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at 5093a24 fix version
Cloned https://github.com/iShape-Swift/iShape.git
Revision (git rev-parse @):
5093a243acb8bad08545a74165bd82aa84fda313
SUCCESS checkout https://github.com/iShape-Swift/iShape.git at main
Fetching https://github.com/iShape-Swift/iFixFloat
[1/195] Fetching ifixfloat
Fetched https://github.com/iShape-Swift/iFixFloat from cache (0.64s)
Computing version for https://github.com/iShape-Swift/iFixFloat
Computed https://github.com/iShape-Swift/iFixFloat at 1.9.0 (0.42s)
Creating working copy for https://github.com/iShape-Swift/iFixFloat
Working copy of https://github.com/iShape-Swift/iFixFloat resolved at 1.9.0
========================================
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": "ishape",
      "name": "iShape",
      "url": "https://github.com/iShape-Swift/iShape.git",
      "version": "unspecified",
      "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/iShape",
      "dependencies": [
        {
          "identity": "ifixfloat",
          "name": "iFixFloat",
          "url": "https://github.com/iShape-Swift/iFixFloat",
          "version": "1.9.0",
          "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/iFixFloat",
          "dependencies": [
          ]
        }
      ]
    }
  ]
}
Fetching https://github.com/iShape-Swift/iShape.git
[9/437] Fetching ishape
Fetched https://github.com/iShape-Swift/iShape.git from cache (0.79s)
Fetching https://github.com/iShape-Swift/iFixFloat from cache
Fetched https://github.com/iShape-Swift/iFixFloat from cache (0.44s)
Computing version for https://github.com/iShape-Swift/iFixFloat
Computed https://github.com/iShape-Swift/iFixFloat at 1.9.0 (0.02s)
Creating working copy for https://github.com/iShape-Swift/iFixFloat
Working copy of https://github.com/iShape-Swift/iFixFloat resolved at 1.9.0
Creating working copy for https://github.com/iShape-Swift/iShape.git
Working copy of https://github.com/iShape-Swift/iShape.git resolved at main (5093a24)
warning: '.resolve-product-dependencies': dependency 'ishape' is not used by any target
Found 1 product dependencies
  - iFixFloat
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.0
Building package at path:  $PWD
https://github.com/iShape-Swift/iShape.git
{
  "dependencies" : [
    {
      "identity" : "ifixfloat",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "1.8.0",
            "upper_bound" : "2.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/iShape-Swift/iFixFloat"
    }
  ],
  "manifest_display_name" : "iShape",
  "name" : "iShape",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "iShape",
      "targets" : [
        "iShape"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "iShapeTests",
      "module_type" : "SwiftTarget",
      "name" : "iShapeTests",
      "path" : "Tests/iShapeTests",
      "sources" : [
        "AdapterTests.swift",
        "iShapeTests.swift"
      ],
      "target_dependencies" : [
        "iShape"
      ],
      "type" : "test"
    },
    {
      "c99name" : "iShape",
      "module_type" : "SwiftTarget",
      "name" : "iShape",
      "path" : "Sources/iShape",
      "product_dependencies" : [
        "iFixFloat"
      ],
      "product_memberships" : [
        "iShape"
      ],
      "sources" : [
        "Fix/FixBnd.swift",
        "Fix/FixPath.swift",
        "Fix/FixPaths.swift",
        "Fix/FixShape.swift",
        "Fix/FixShapes.swift",
        "Graphic/Adapter.swift",
        "Graphic/CGFloat.swift",
        "Graphic/CGPoint.swift",
        "Int/Path.swift",
        "Int/Shape.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.7"
}
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/3] Write sources
[2/3] Write swift-version--7754E27361AE5C74.txt
[4/13] Compiling iFixFloat Triangle.swift
[5/14] Compiling iFixFloat Vec.swift
[6/14] Compiling iFixFloat UInt128.swift
[7/14] Compiling iFixFloat Point.swift
[8/14] Compiling iFixFloat Rect.swift
[9/14] Compiling iFixFloat FixSin.swift
[10/14] Compiling iFixFloat BitPack.swift
[11/14] Emitting module iFixFloat
[12/14] Compiling iFixFloat FixFloat.swift
[13/14] Compiling iFixFloat FixVec.swift
[14/14] Compiling iFixFloat FixAngle.swift
[15/24] Compiling iShape FixShapes.swift
[16/25] Compiling iShape Shape.swift
[17/25] Compiling iShape CGPoint.swift
[18/25] Compiling iShape Path.swift
[19/25] Compiling iShape CGFloat.swift
[20/25] Compiling iShape FixShape.swift
[21/25] Compiling iShape FixPath.swift
[22/25] Compiling iShape Adapter.swift
/Users/admin/builder/spi-builder-workspace/Sources/iShape/Graphic/Adapter.swift:173:13: warning: immutable value 'unionRect' was never used; consider replacing with '_' or removing it
171 |
172 |     init?(rect0: CGRect?, rect1: CGRect?) {
173 |         let unionRect: CGRect
    |             `- warning: immutable value 'unionRect' was never used; consider replacing with '_' or removing it
174 |         if let rect0 = rect0, let rect1 = rect1 {
175 |             self = CGRect(rect0: rect0, rect1: rect1)
[23/25] Compiling iShape FixPaths.swift
[24/25] Compiling iShape FixBnd.swift
/Users/admin/builder/spi-builder-workspace/Sources/iShape/Fix/FixBnd.swift:12:23: warning: static property 'zero' is not concurrency-safe because non-'Sendable' type 'FixBnd' may have shared mutable state; this is an error in the Swift 6 language mode
  8 | import iFixFloat
  9 |
 10 | public struct FixBnd: Equatable {
    |               `- note: consider making struct 'FixBnd' conform to the 'Sendable' protocol
 11 |
 12 |     public static let zero = FixBnd(min: .zero, max: .zero)
    |                       |- warning: static property 'zero' is not concurrency-safe because non-'Sendable' type 'FixBnd' 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
 13 |
 14 |     public let min: FixVec
[25/25] Emitting module iShape
/Users/admin/builder/spi-builder-workspace/Sources/iShape/Fix/FixBnd.swift:12:23: warning: static property 'zero' is not concurrency-safe because non-'Sendable' type 'FixBnd' may have shared mutable state; this is an error in the Swift 6 language mode
  8 | import iFixFloat
  9 |
 10 | public struct FixBnd: Equatable {
    |               `- note: consider making struct 'FixBnd' conform to the 'Sendable' protocol
 11 |
 12 |     public static let zero = FixBnd(min: .zero, max: .zero)
    |                       |- warning: static property 'zero' is not concurrency-safe because non-'Sendable' type 'FixBnd' 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
 13 |
 14 |     public let min: FixVec
Build complete! (10.48s)
Build complete.
{
  "dependencies" : [
    {
      "identity" : "ifixfloat",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "1.8.0",
            "upper_bound" : "2.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/iShape-Swift/iFixFloat"
    }
  ],
  "manifest_display_name" : "iShape",
  "name" : "iShape",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "iShape",
      "targets" : [
        "iShape"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "iShapeTests",
      "module_type" : "SwiftTarget",
      "name" : "iShapeTests",
      "path" : "Tests/iShapeTests",
      "sources" : [
        "AdapterTests.swift",
        "iShapeTests.swift"
      ],
      "target_dependencies" : [
        "iShape"
      ],
      "type" : "test"
    },
    {
      "c99name" : "iShape",
      "module_type" : "SwiftTarget",
      "name" : "iShape",
      "path" : "Sources/iShape",
      "product_dependencies" : [
        "iFixFloat"
      ],
      "product_memberships" : [
        "iShape"
      ],
      "sources" : [
        "Fix/FixBnd.swift",
        "Fix/FixPath.swift",
        "Fix/FixPaths.swift",
        "Fix/FixShape.swift",
        "Fix/FixShapes.swift",
        "Graphic/Adapter.swift",
        "Graphic/CGFloat.swift",
        "Graphic/CGPoint.swift",
        "Int/Path.swift",
        "Int/Shape.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.7"
}
Done.