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, reference 0.5.0 (c2db00), with Swift 6.0 for macOS (SPM) on 28 Nov 2024 12:36:52 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 -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/SwiftUIReduxUtils.git
Reference: 0.5.0
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/CypherPoet/SwiftUIReduxUtils
 * tag               0.5.0      -> FETCH_HEAD
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 0.5.0
========================================
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": "swiftuireduxutils",
      "name": "CypherPoetSwiftUIReduxUtils",
      "url": "https://github.com/CypherPoet/SwiftUIReduxUtils.git",
      "version": "unspecified",
      "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/SwiftUIReduxUtils",
      "dependencies": [
      ]
    }
  ]
}
Fetching https://github.com/CypherPoet/SwiftUIReduxUtils.git
[1/281] Fetching swiftuireduxutils
Fetched https://github.com/CypherPoet/SwiftUIReduxUtils.git from cache (1.19s)
Creating working copy for https://github.com/CypherPoet/SwiftUIReduxUtils.git
Working copy of https://github.com/CypherPoet/SwiftUIReduxUtils.git resolved at 0.5.0 (c2db00c)
warning: '.resolve-product-dependencies': dependency 'swiftuireduxutils' 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/CypherPoet/SwiftUIReduxUtils.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/2] Write sources
[1/2] Write swift-version--7754E27361AE5C74.txt
[3/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 |
[4/6] Emitting module SwiftUIReduxUtils
[5/6] Compiling SwiftUIReduxUtils Middleware.swift
[6/6] Compiling SwiftUIReduxUtils Reducer.swift
Build complete! (11.25s)
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.