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 SwiftUIPreciselyRoundedRectangle, reference 0.1.0 (ac37e1), with Swift 6.0 for macOS (SPM) on 28 Nov 2024 04:29:23 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/CypherPoet/SwiftUIPreciselyRoundedRectangle.git
Reference: 0.1.0
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/CypherPoet/SwiftUIPreciselyRoundedRectangle
 * tag               0.1.0      -> FETCH_HEAD
HEAD is now at ac37e1e Add and document `View.cornerRadius` extensions
Cloned https://github.com/CypherPoet/SwiftUIPreciselyRoundedRectangle.git
Revision (git rev-parse @):
ac37e1eaa92872b8d92baae0dae3068d1273b6ad
SUCCESS checkout https://github.com/CypherPoet/SwiftUIPreciselyRoundedRectangle.git at 0.1.0
Fetching https://github.com/CypherPoet/SwiftUIGeometryUtils
[1/137] Fetching swiftuigeometryutils
Fetched https://github.com/CypherPoet/SwiftUIGeometryUtils from cache (1.17s)
Computing version for https://github.com/CypherPoet/SwiftUIGeometryUtils
Computed https://github.com/CypherPoet/SwiftUIGeometryUtils at 0.2.1 (0.56s)
Creating working copy for https://github.com/CypherPoet/SwiftUIGeometryUtils
Working copy of https://github.com/CypherPoet/SwiftUIGeometryUtils resolved at 0.2.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": "swiftuipreciselyroundedrectangle",
      "name": "SwiftUIPreciselyRoundedRectangle",
      "url": "https://github.com/CypherPoet/SwiftUIPreciselyRoundedRectangle.git",
      "version": "unspecified",
      "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/SwiftUIPreciselyRoundedRectangle",
      "dependencies": [
        {
          "identity": "swiftuigeometryutils",
          "name": "CypherPoetSwiftUIGeometryUtils",
          "url": "https://github.com/CypherPoet/SwiftUIGeometryUtils",
          "version": "0.2.1",
          "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/SwiftUIGeometryUtils",
          "dependencies": [
          ]
        }
      ]
    }
  ]
}
Fetching https://github.com/CypherPoet/SwiftUIPreciselyRoundedRectangle.git
[1/954] Fetching swiftuipreciselyroundedrectangle
Fetched https://github.com/CypherPoet/SwiftUIPreciselyRoundedRectangle.git from cache (1.46s)
Fetching https://github.com/CypherPoet/SwiftUIGeometryUtils from cache
Fetched https://github.com/CypherPoet/SwiftUIGeometryUtils from cache (0.45s)
Computing version for https://github.com/CypherPoet/SwiftUIGeometryUtils
Computed https://github.com/CypherPoet/SwiftUIGeometryUtils at 0.2.1 (0.02s)
Creating working copy for https://github.com/CypherPoet/SwiftUIPreciselyRoundedRectangle.git
Working copy of https://github.com/CypherPoet/SwiftUIPreciselyRoundedRectangle.git resolved at 0.1.0 (ac37e1e)
Creating working copy for https://github.com/CypherPoet/SwiftUIGeometryUtils
Working copy of https://github.com/CypherPoet/SwiftUIGeometryUtils resolved at 0.2.1
warning: '.resolve-product-dependencies': dependency 'swiftuipreciselyroundedrectangle' is not used by any target
Found 1 product dependencies
  - CypherPoetSwiftUIGeometryUtils
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.0
Building package at path:  $PWD
https://github.com/CypherPoet/SwiftUIPreciselyRoundedRectangle.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/3] Write sources
[2/3] Write swift-version--7754E27361AE5C74.txt
[4/8] Compiling SwiftUIGeometryUtils CGRect+Points.swift
[5/8] Compiling SwiftUIGeometryUtils Double+Constants.swift
[6/8] Compiling SwiftUIGeometryUtils Angle+Constants.swift
[7/8] Compiling SwiftUIGeometryUtils RectangleCorner.swift
[8/8] Emitting module SwiftUIGeometryUtils
[9/15] Compiling PreciselyRoundedRectangle Path+Init.swift
[10/15] Compiling PreciselyRoundedRectangle View+cornerRadius.swift
[11/15] Compiling PreciselyRoundedRectangle CornerRadiusMap.swift
/Users/admin/builder/spi-builder-workspace/Sources/PreciselyRoundedRectangle/CornerRadiusMap.swift:25:23: warning: static property 'zeroed' is not concurrency-safe because non-'Sendable' type 'CornerRadiusMap' may have shared mutable state; this is an error in the Swift 6 language mode
 3 |
 4 |
 5 | public struct CornerRadiusMap {
   |               `- note: consider making struct 'CornerRadiusMap' conform to the 'Sendable' protocol
 6 |     public var topLeading: Double
 7 |     public var topTrailing: Double
   :
23 |
24 |
25 |     public static let zeroed: CornerRadiusMap = .init()
   |                       |- warning: static property 'zeroed' is not concurrency-safe because non-'Sendable' type 'CornerRadiusMap' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: annotate 'zeroed' 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
26 | }
27 |
[12/15] Compiling PreciselyRoundedRectangle PreciselyRoundedRectangle.swift
/Users/admin/builder/spi-builder-workspace/Sources/PreciselyRoundedRectangle/CornerRadiusMap.swift:25:23: warning: static property 'zeroed' is not concurrency-safe because non-'Sendable' type 'CornerRadiusMap' may have shared mutable state; this is an error in the Swift 6 language mode
 3 |
 4 |
 5 | public struct CornerRadiusMap {
   |               `- note: consider making struct 'CornerRadiusMap' conform to the 'Sendable' protocol
 6 |     public var topLeading: Double
 7 |     public var topTrailing: Double
   :
23 |
24 |
25 |     public static let zeroed: CornerRadiusMap = .init()
   |                       |- warning: static property 'zeroed' is not concurrency-safe because non-'Sendable' type 'CornerRadiusMap' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: annotate 'zeroed' 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
26 | }
27 |
/Users/admin/builder/spi-builder-workspace/Sources/PreciselyRoundedRectangle/PreciselyRoundedRectangle.swift:7:16: warning: stored property 'cornerRadiusMap' of 'Sendable'-conforming struct 'PreciselyRoundedRectangle' has non-sendable type 'CornerRadiusMap'; this is an error in the Swift 6 language mode
 5 | /// each corner.
 6 | public struct PreciselyRoundedRectangle {
 7 |     public var cornerRadiusMap: CornerRadiusMap
   |                `- warning: stored property 'cornerRadiusMap' of 'Sendable'-conforming struct 'PreciselyRoundedRectangle' has non-sendable type 'CornerRadiusMap'; this is an error in the Swift 6 language mode
 8 |
 9 |     public init(
/Users/admin/builder/spi-builder-workspace/Sources/PreciselyRoundedRectangle/CornerRadiusMap.swift:5:15: note: consider making struct 'CornerRadiusMap' conform to the 'Sendable' protocol
 3 |
 4 |
 5 | public struct CornerRadiusMap {
   |               `- note: consider making struct 'CornerRadiusMap' conform to the 'Sendable' protocol
 6 |     public var topLeading: Double
 7 |     public var topTrailing: Double
[13/15] Compiling PreciselyRoundedRectangle BezierPath.swift
[14/15] Emitting module PreciselyRoundedRectangle
/Users/admin/builder/spi-builder-workspace/Sources/PreciselyRoundedRectangle/CornerRadiusMap.swift:25:23: warning: static property 'zeroed' is not concurrency-safe because non-'Sendable' type 'CornerRadiusMap' may have shared mutable state; this is an error in the Swift 6 language mode
 3 |
 4 |
 5 | public struct CornerRadiusMap {
   |               `- note: consider making struct 'CornerRadiusMap' conform to the 'Sendable' protocol
 6 |     public var topLeading: Double
 7 |     public var topTrailing: Double
   :
23 |
24 |
25 |     public static let zeroed: CornerRadiusMap = .init()
   |                       |- warning: static property 'zeroed' is not concurrency-safe because non-'Sendable' type 'CornerRadiusMap' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: annotate 'zeroed' 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
26 | }
27 |
/Users/admin/builder/spi-builder-workspace/Sources/PreciselyRoundedRectangle/PreciselyRoundedRectangle.swift:7:16: warning: stored property 'cornerRadiusMap' of 'Sendable'-conforming struct 'PreciselyRoundedRectangle' has non-sendable type 'CornerRadiusMap'; this is an error in the Swift 6 language mode
 5 | /// each corner.
 6 | public struct PreciselyRoundedRectangle {
 7 |     public var cornerRadiusMap: CornerRadiusMap
   |                `- warning: stored property 'cornerRadiusMap' of 'Sendable'-conforming struct 'PreciselyRoundedRectangle' has non-sendable type 'CornerRadiusMap'; this is an error in the Swift 6 language mode
 8 |
 9 |     public init(
/Users/admin/builder/spi-builder-workspace/Sources/PreciselyRoundedRectangle/CornerRadiusMap.swift:5:15: note: consider making struct 'CornerRadiusMap' conform to the 'Sendable' protocol
 3 |
 4 |
 5 | public struct CornerRadiusMap {
   |               `- note: consider making struct 'CornerRadiusMap' conform to the 'Sendable' protocol
 6 |     public var topLeading: Double
 7 |     public var topTrailing: Double
[15/15] Compiling PreciselyRoundedRectangle NSBezierPath+cgPath.swift
/Users/admin/builder/spi-builder-workspace/Sources/PreciselyRoundedRectangle/Toolbox/Extensions/NSBezierPath+cgPath.swift:17:13: warning: switch must be exhaustive; this is an error in the Swift 6 language mode
15 |             let type = element(at: i, associatedPoints: &points)
16 |
17 |             switch type {
   |             |- warning: switch must be exhaustive; this is an error in the Swift 6 language mode
   |             |- note: add missing case: '.cubicCurveTo'
   |             `- note: add missing case: '.quadraticCurveTo'
18 |             case .moveTo:
19 |                 path.move(to: points[0])
Build complete! (12.11s)
Build complete.
{
  "dependencies" : [
    {
      "identity" : "swiftuigeometryutils",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "0.2.0",
            "upper_bound" : "0.3.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/CypherPoet/SwiftUIGeometryUtils"
    }
  ],
  "manifest_display_name" : "SwiftUIPreciselyRoundedRectangle",
  "name" : "SwiftUIPreciselyRoundedRectangle",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "ios",
      "version" : "14.0"
    },
    {
      "name" : "macos",
      "version" : "11.0"
    },
    {
      "name" : "tvos",
      "version" : "14.0"
    },
    {
      "name" : "watchos",
      "version" : "7.0"
    }
  ],
  "products" : [
    {
      "name" : "PreciselyRoundedRectangle",
      "targets" : [
        "PreciselyRoundedRectangle"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "PreciselyRoundedRectangleTests",
      "module_type" : "SwiftTarget",
      "name" : "PreciselyRoundedRectangleTests",
      "path" : "Tests/PreciselyRoundedRectangle",
      "sources" : [
        "Cases/PreciselyRoundedRectangleTests.swift"
      ],
      "target_dependencies" : [
        "PreciselyRoundedRectangle"
      ],
      "type" : "test"
    },
    {
      "c99name" : "PreciselyRoundedRectangle",
      "module_type" : "SwiftTarget",
      "name" : "PreciselyRoundedRectangle",
      "path" : "Sources/PreciselyRoundedRectangle",
      "product_dependencies" : [
        "SwiftUIGeometryUtils"
      ],
      "product_memberships" : [
        "PreciselyRoundedRectangle"
      ],
      "sources" : [
        "BezierPath.swift",
        "CornerRadiusMap.swift",
        "PreciselyRoundedRectangle.swift",
        "Toolbox/Extensions/NSBezierPath+cgPath.swift",
        "Toolbox/Extensions/Path+Init.swift",
        "View Modifiers/View+cornerRadius.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.5"
}
Done.