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 SwiftUI Dependencies, reference main (de6355), with Swift 6.0 for macOS (SPM) on 22 Sep 2024 21:12:37 UTC.

Swift 6 data race errors: 1

Build Command

env DEVELOPER_DIR=/Applications/Xcode-16.0.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.54.2
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/divadretlaw/swiftui-dependencies.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/divadretlaw/swiftui-dependencies
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at de63559 Code Cleanup
Cloned https://github.com/divadretlaw/swiftui-dependencies.git
Revision (git rev-parse @):
de6355943faf9d00d60cda0f8335193a29fe1354
SUCCESS checkout https://github.com/divadretlaw/swiftui-dependencies.git at main
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.0
Building package at path:  $PWD
https://github.com/divadretlaw/swiftui-dependencies.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.0.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--4A847ED0836F2485.txt
[3/16] Compiling Dependencies ObservableDependency.swift
[4/16] Compiling Dependencies DependencyKey.swift
[5/16] Compiling Dependencies DependencyInjectable.swift
[6/16] Compiling Dependencies DependencyState.swift
[7/17] Compiling Dependencies PropertyList.swift
[8/17] Compiling Dependencies Dependency.swift
[9/17] Compiling Dependencies View+Extensions.swift
[10/17] Compiling Dependencies PropertyKey.swift
[11/17] Compiling Dependencies EnvironmentValues+Extensions.swift
/Users/admin/builder/spi-builder-workspace/Sources/Dependencies/Extensions/MainActor+Extensions.swift:21:46: warning: sending 'body' risks causing data races; this is an error in the Swift 6 language mode
19 |         } else {
20 |             try DispatchQueue.main.sync {
21 |                 try MainActor.assumeIsolated(body)
   |                                              |- warning: sending 'body' risks causing data races; this is an error in the Swift 6 language mode
   |                                              `- note: task-isolated 'body' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
22 |             }
23 |         }
[12/17] Compiling Dependencies MainActor+Extensions.swift
/Users/admin/builder/spi-builder-workspace/Sources/Dependencies/Extensions/MainActor+Extensions.swift:21:46: warning: sending 'body' risks causing data races; this is an error in the Swift 6 language mode
19 |         } else {
20 |             try DispatchQueue.main.sync {
21 |                 try MainActor.assumeIsolated(body)
   |                                              |- warning: sending 'body' risks causing data races; this is an error in the Swift 6 language mode
   |                                              `- note: task-isolated 'body' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
22 |             }
23 |         }
[13/17] Emitting module Dependencies
/Users/admin/builder/spi-builder-workspace/Sources/Dependencies/Extensions/MainActor+Extensions.swift:21:46: warning: sending 'body' risks causing data races; this is an error in the Swift 6 language mode
19 |         } else {
20 |             try DispatchQueue.main.sync {
21 |                 try MainActor.assumeIsolated(body)
   |                                              |- warning: sending 'body' risks causing data races; this is an error in the Swift 6 language mode
   |                                              `- note: task-isolated 'body' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
22 |             }
23 |         }
[14/17] Compiling Dependencies DependencyObject.swift
[15/17] Compiling Dependencies DependencyContext.swift
[16/17] Compiling Dependencies DependencyValues.swift
[17/17] Compiling Dependencies ObservableDependencyObject.swift
Build complete! (20.18s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "SwiftUI Dependencies",
  "name" : "SwiftUI Dependencies",
  "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"
    },
    {
      "name" : "visionos",
      "version" : "1.0"
    }
  ],
  "products" : [
    {
      "name" : "Dependencies",
      "targets" : [
        "Dependencies"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "DependenciesTests",
      "module_type" : "SwiftTarget",
      "name" : "DependenciesTests",
      "path" : "Tests/DependenciesTests",
      "sources" : [
        "DependenciesTests.swift",
        "PropertyListTests.swift"
      ],
      "target_dependencies" : [
        "Dependencies"
      ],
      "type" : "test"
    },
    {
      "c99name" : "Dependencies",
      "module_type" : "SwiftTarget",
      "name" : "Dependencies",
      "path" : "Sources/Dependencies",
      "product_memberships" : [
        "Dependencies"
      ],
      "sources" : [
        "DependencyContext.swift",
        "DependencyValues.swift",
        "Extensions/EnvironmentValues+Extensions.swift",
        "Extensions/MainActor+Extensions.swift",
        "Extensions/View+Extensions.swift",
        "PropertyList/PropertyKey.swift",
        "PropertyList/PropertyList.swift",
        "PropertyWrappers/Dependency.swift",
        "PropertyWrappers/DependencyObject.swift",
        "PropertyWrappers/DependencyState.swift",
        "Protocols/DependencyInjectable.swift",
        "Protocols/DependencyKey.swift",
        "Protocols/ObservableDependency.swift",
        "Protocols/ObservableDependencyObject.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.10"
}
Done.