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 PathPresenter, reference main (ae353e), with Swift 6.0 for macOS (SPM) on 3 Nov 2024 03:46:31 UTC.

Swift 6 data race errors: 0

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

Build Log

========================================
RunAll
========================================
Builder version: 4.56.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/alexdremov/PathPresenter.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/alexdremov/PathPresenter
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at ae353ea last view feaure
Cloned https://github.com/alexdremov/PathPresenter.git
Revision (git rev-parse @):
ae353eae4b18e7961b767b30fa2af76a9fd40eb6
SUCCESS checkout https://github.com/alexdremov/PathPresenter.git at main
========================================
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": "pathpresenter",
      "name": "PathPresenter",
      "url": "https://github.com/alexdremov/PathPresenter.git",
      "version": "unspecified",
      "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/PathPresenter",
      "dependencies": [
      ]
    }
  ]
}
Fetching https://github.com/alexdremov/PathPresenter.git
[1/145] Fetching pathpresenter
Fetched https://github.com/alexdremov/PathPresenter.git from cache (0.67s)
Creating working copy for https://github.com/alexdremov/PathPresenter.git
Working copy of https://github.com/alexdremov/PathPresenter.git resolved at main (ae353ea)
warning: '.resolve-product-dependencies': dependency 'pathpresenter' 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/alexdremov/PathPresenter.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
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version--7754E27361AE5C74.txt
[3/7] Compiling PathPresenter PathTypeView.swift
[4/7] Compiling PathPresenter Path.swift
/Users/admin/builder/spi-builder-workspace/Sources/PathPresenter/Path.swift:133:20: warning: call to main actor-isolated initializer 'init(id:body:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
 17 |          Helper structure as `ForEach` works with `Identifiable` instances only
 18 |          */
 19 |         private struct ViewIdentifiable<T: View>: View, Identifiable {
    |                        `- note: calls to initializer 'init(id:body:)' from outside of its actor context are implicitly asynchronous
 20 |             var id = UUID()
 21 |             let body: T
    :
130 |          Append one view to the path
131 |          */
132 |         public mutating func append<V: View>(_ value: V, type: PathType = .plain) {
    |                              `- note: add '@MainActor' to make instance method 'append(_:type:)' part of global actor 'MainActor'
133 |             append(ViewIdentifiable(body: value), type: type)
    |                    `- warning: call to main actor-isolated initializer 'init(id:body:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
134 |         }
135 |
/Users/admin/builder/spi-builder-workspace/Sources/PathPresenter/Path.swift:133:20: warning: sending 'value' risks causing data races; this is an error in the Swift 6 language mode
131 |          */
132 |         public mutating func append<V: View>(_ value: V, type: PathType = .plain) {
133 |             append(ViewIdentifiable(body: value), type: type)
    |                    |- warning: sending 'value' risks causing data races; this is an error in the Swift 6 language mode
    |                    `- note: sending task-isolated 'value' to main actor-isolated initializer 'init(id:body:)' risks causing data races between main actor-isolated and task-isolated uses
134 |         }
135 |
[5/7] Compiling PathPresenter RoutingView.swift
[6/7] Emitting module PathPresenter
[7/7] Compiling PathPresenter PathType.swift
Build complete! (14.76s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "PathPresenter",
  "name" : "PathPresenter",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "macos",
      "version" : "10.15"
    },
    {
      "name" : "ios",
      "version" : "14.0"
    },
    {
      "name" : "tvos",
      "version" : "13.0"
    },
    {
      "name" : "watchos",
      "version" : "6.0"
    }
  ],
  "products" : [
    {
      "name" : "PathPresenter",
      "targets" : [
        "PathPresenter"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "PathPresenterTests",
      "module_type" : "SwiftTarget",
      "name" : "PathPresenterTests",
      "path" : "Tests/PathPresenterTests",
      "sources" : [
        "PathPresenterTests.swift"
      ],
      "target_dependencies" : [
        "PathPresenter"
      ],
      "type" : "test"
    },
    {
      "c99name" : "PathPresenter",
      "module_type" : "SwiftTarget",
      "name" : "PathPresenter",
      "path" : "Sources/PathPresenter",
      "product_memberships" : [
        "PathPresenter"
      ],
      "sources" : [
        "Path.swift",
        "PathType.swift",
        "PathTypeView.swift",
        "RoutingView.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.6"
}
Done.