This is a staging environment. For live and up-to-date package information, visit swiftpackageindex.com.

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 CypherPoetSwiftUIReduxUtils with Swift 6.0 for macOS (SPM).

Swift 6 data race errors: 0

Build Command

env DEVELOPER_DIR=/Applications/Xcode-15.3.0.app xcrun --toolchain org.swift.600202405261a swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete

Build Log

========================================
RunAll
========================================
Builder version: 4.40.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/CypherPoet/SwiftUIReduxUtils.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/CypherPoet/SwiftUIReduxUtils
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at c2db00c 0.5.0
Cloned https://github.com/CypherPoet/SwiftUIReduxUtils.git
Revision (git rev-parse @):
c2db00c6d727972edd9926faf424a8066eec99fd
SUCCESS checkout https://github.com/CypherPoet/SwiftUIReduxUtils.git at main
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.0
Building package at path:  $workDir
https://github.com/CypherPoet/SwiftUIReduxUtils.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-15.3.0.app xcrun --toolchain org.swift.600202405261a 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-6F35C1178C84523A.txt
[3/6] Compiling SwiftUIReduxUtils Middleware.swift
[4/6] Compiling SwiftUIReduxUtils Store.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIReduxUtils/Store.swift:35:34: warning: non-sendable type 'AppState' returned by implicitly asynchronous call to nonisolated function cannot cross actor boundary; this is an error in the Swift 6 language mode
  4 |
  5 | @MainActor
  6 | public final class Store<AppState, AppAction>: ObservableObject {
    |                          `- note: consider making generic parameter 'AppState' conform to the 'Sendable' protocol
  7 |
  8 |     /// Read-only access to app state
    :
 33 |     /// for processing.
 34 |     private func dispatch(_ action: AppAction) async {
 35 |         state = await appReducer.reduce(state, action)
    |                                  `- warning: non-sendable type 'AppState' returned by implicitly asynchronous call to nonisolated function cannot cross actor boundary; this is an error in the Swift 6 language mode
 36 |     }
 37 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIReduxUtils/Store.swift:57:17: warning: non-sendable type 'AppAction?' returned by implicitly asynchronous call to nonisolated function cannot cross actor boundary; this is an error in the Swift 6 language mode
  4 |
  5 | @MainActor
  6 | public final class Store<AppState, AppAction>: ObservableObject {
    |                                    `- note: consider making generic parameter 'AppAction' conform to the 'Sendable' protocol
  7 |
  8 |     /// Read-only access to app state
    :
 55 |                 }
 56 |
 57 |                 for await appAction in resultingAppActions where Task.isCancelled == false {
    |                 `- warning: non-sendable type 'AppAction?' returned by implicitly asynchronous call to nonisolated function cannot cross actor boundary; this is an error in the Swift 6 language mode
 58 |                     await send(appAction)
 59 |                 }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIReduxUtils/Store.swift:35:34: warning: sending main actor-isolated value of type 'AppState' with later accesses to nonisolated context risks causing data races; this is an error in the Swift 6 language mode
 33 |     /// for processing.
 34 |     private func dispatch(_ action: AppAction) async {
 35 |         state = await appReducer.reduce(state, action)
    |                                  `- warning: sending main actor-isolated value of type 'AppState' with later accesses to nonisolated context risks causing data races; this is an error in the Swift 6 language mode
 36 |     }
 37 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIReduxUtils/Store.swift:35:34: warning: sending 'action' risks causing data races; this is an error in the Swift 6 language mode
 33 |     /// for processing.
 34 |     private func dispatch(_ action: AppAction) async {
 35 |         state = await appReducer.reduce(state, action)
    |                                  |- warning: sending 'action' risks causing data races; this is an error in the Swift 6 language mode
    |                                  `- note: sending main actor-isolated 'action' to nonisolated callee risks causing data races between nonisolated and main actor-isolated uses
 36 |     }
 37 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIReduxUtils/Store.swift:57:17: warning: sending '$appAction$generator' risks causing data races; this is an error in the Swift 6 language mode
 55 |                 }
 56 |
 57 |                 for await appAction in resultingAppActions where Task.isCancelled == false {
    |                 |- warning: sending '$appAction$generator' risks causing data races; this is an error in the Swift 6 language mode
    |                 `- note: sending main actor-isolated '$appAction$generator' to nonisolated callee risks causing data races between nonisolated and main actor-isolated uses
 58 |                     await send(appAction)
 59 |                 }
[5/6] Compiling SwiftUIReduxUtils Reducer.swift
[6/6] Emitting module SwiftUIReduxUtils
Build complete! (30.90s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "CypherPoetSwiftUIReduxUtils",
  "name" : "CypherPoetSwiftUIReduxUtils",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "ios",
      "version" : "15.0"
    },
    {
      "name" : "macos",
      "version" : "12.0"
    },
    {
      "name" : "tvos",
      "version" : "15.0"
    },
    {
      "name" : "watchos",
      "version" : "8.0"
    }
  ],
  "products" : [
    {
      "name" : "SwiftUIReduxUtils",
      "targets" : [
        "SwiftUIReduxUtils"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "SwiftUIReduxUtilsTests",
      "module_type" : "SwiftTarget",
      "name" : "SwiftUIReduxUtilsTests",
      "path" : "Tests/SwiftUIReduxUtils",
      "sources" : [
        "SwiftUIReduxUtilsTests.swift"
      ],
      "target_dependencies" : [
        "SwiftUIReduxUtils"
      ],
      "type" : "test"
    },
    {
      "c99name" : "SwiftUIReduxUtils",
      "module_type" : "SwiftTarget",
      "name" : "SwiftUIReduxUtils",
      "path" : "Sources/SwiftUIReduxUtils",
      "product_memberships" : [
        "SwiftUIReduxUtils"
      ],
      "sources" : [
        "Middleware.swift",
        "Reducer.swift",
        "Store.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.5"
}
Done.
This is a staging environment. For live and up-to-date package information, visit swiftpackageindex.com.