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 1.1.0 (a39ea6), with Swift 6.0 for macOS (SPM) on 14 Sep 2024 13:29:21 UTC.

Swift 6 data race errors: 1

Build Command

env DEVELOPER_DIR=/Applications/Xcode-16.0.0-Release.Candidate.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.53.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/divadretlaw/swiftui-dependencies.git
Reference: 1.1.0
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/divadretlaw/swiftui-dependencies
 * tag               1.1.0      -> FETCH_HEAD
HEAD is now at a39ea6b Code Cleanup
Cloned https://github.com/divadretlaw/swiftui-dependencies.git
Revision (git rev-parse @):
a39ea6b73333955fe7edd129b4b1ab798e8838c0
SUCCESS checkout https://github.com/divadretlaw/swiftui-dependencies.git at 1.1.0
========================================
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-Release.Candidate.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-117DEE11B69C53C9.txt
[3/16] Compiling Dependencies DependencyInjectable.swift
[4/17] Compiling Dependencies ObservableDependency.swift
[5/17] Compiling Dependencies ObservableDependencyObject.swift
[6/17] Compiling Dependencies DependencyKey.swift
[7/17] Compiling Dependencies PropertyList.swift
[8/17] Compiling Dependencies Dependency.swift
[9/17] Compiling Dependencies DependencyState.swift
[10/17] Compiling Dependencies DependencyObject.swift
[11/17] Emitting module Dependencies
/Users/admin/builder/spi-builder-workspace/Sources/Dependencies/Extensions/MainActor+Extensions.swift:21:53: warning: sending 'body' risks causing data races; this is an error in the Swift 6 language mode
19 |         } else {
20 |             return try DispatchQueue.main.sync {
21 |                 return 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 EnvironmentValues+Extensions.swift
/Users/admin/builder/spi-builder-workspace/Sources/Dependencies/Extensions/MainActor+Extensions.swift:21:53: warning: sending 'body' risks causing data races; this is an error in the Swift 6 language mode
19 |         } else {
20 |             return try DispatchQueue.main.sync {
21 |                 return 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] Compiling Dependencies MainActor+Extensions.swift
/Users/admin/builder/spi-builder-workspace/Sources/Dependencies/Extensions/MainActor+Extensions.swift:21:53: warning: sending 'body' risks causing data races; this is an error in the Swift 6 language mode
19 |         } else {
20 |             return try DispatchQueue.main.sync {
21 |                 return 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 View+Extensions.swift
[15/17] Compiling Dependencies PropertyKey.swift
[16/17] Compiling Dependencies DependencyContext.swift
[17/17] Compiling Dependencies DependencyValues.swift
Build complete! (21.53s)
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.