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 Redux, reference main (2dd0f7), with Swift 6.0 for macOS (SPM) on 28 Nov 2024 14:47:29 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/ReactComponentKit/Redux.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/ReactComponentKit/Redux
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at 2dd0f78 Merge pull request #11 from ReactComponentKit/feature/adopt-async-type
Cloned https://github.com/ReactComponentKit/Redux.git
Revision (git rev-parse @):
2dd0f78510be907a928067d22e720cf03763de74
SUCCESS checkout https://github.com/ReactComponentKit/Redux.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": "redux",
      "name": "Redux",
      "url": "https://github.com/ReactComponentKit/Redux.git",
      "version": "unspecified",
      "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/Redux",
      "dependencies": [
      ]
    }
  ]
}
Fetching https://github.com/ReactComponentKit/Redux.git
[13/637] Fetching redux
Fetched https://github.com/ReactComponentKit/Redux.git from cache (0.97s)
Creating working copy for https://github.com/ReactComponentKit/Redux.git
Working copy of https://github.com/ReactComponentKit/Redux.git resolved at main (2dd0f78)
warning: '.resolve-product-dependencies': dependency 'redux' 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/ReactComponentKit/Redux.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 Redux Async.swift
[4/6] Compiling Redux Store.swift
/Users/admin/builder/spi-builder-workspace/Sources/Redux/Store.swift:78:14: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
 76 |         mutation(&state, payload)
 77 |         doWorksAfterCommit()
 78 |         Task {
    |              `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
 79 |             await computeOnMainThread(new: state, old: old)
    |                   `- note: closure captures 'self' which is accessible to code in the current task
 80 |         }
 81 |     }
/Users/admin/builder/spi-builder-workspace/Sources/Redux/Store.swift:88:14: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
 86 |         mutation(&state)
 87 |         doWorksAfterCommit()
 88 |         Task {
    |              `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
 89 |             await computeOnMainThread(new: state, old: old)
    |                   `- note: closure captures 'self' which is accessible to code in the current task
 90 |         }
 91 |     }
[5/6] Emitting module Redux
[6/6] Compiling Redux State.swift
Build complete! (5.95s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "Redux",
  "name" : "Redux",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "ios",
      "version" : "13.0"
    },
    {
      "name" : "macos",
      "version" : "10.15"
    }
  ],
  "products" : [
    {
      "name" : "Redux",
      "targets" : [
        "Redux"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "ReduxTests",
      "module_type" : "SwiftTarget",
      "name" : "ReduxTests",
      "path" : "Tests/ReduxTests",
      "sources" : [
        "AsyncEnumTypeTests.swift",
        "ContextSwitching.swift",
        "CounterStoreTests.swift",
        "ReduxTests.swift",
        "SSOTTests.swift",
        "UserStoreTests.swift"
      ],
      "target_dependencies" : [
        "Redux"
      ],
      "type" : "test"
    },
    {
      "c99name" : "Redux",
      "module_type" : "SwiftTarget",
      "name" : "Redux",
      "path" : "Sources/Redux",
      "product_memberships" : [
        "Redux"
      ],
      "sources" : [
        "Async.swift",
        "State.swift",
        "Store.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.5"
}
Done.