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 Prex 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/marty-suzuki/Prex.git
Reference: master
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/marty-suzuki/Prex
 * branch            master     -> FETCH_HEAD
 * [new branch]      master     -> origin/master
HEAD is now at d6c198f update podspec
Cloned https://github.com/marty-suzuki/Prex.git
Revision (git rev-parse @):
d6c198fc96e0155f658be55a1798aaa287acdc1b
SUCCESS checkout https://github.com/marty-suzuki/Prex.git at master
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.0
Building package at path:  $workDir
https://github.com/marty-suzuki/Prex.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/13] Compiling Prex Subscription.swift
[4/13] Compiling Prex View.swift
[5/13] Compiling Prex StateChange.swift
[6/14] Compiling Prex State.swift
[7/14] Compiling Prex PubSub.swift
[8/14] Compiling Prex Mutation.swift
[9/14] Compiling Prex Action.swift
[10/14] Compiling Prex Dispatcher.swift
[11/14] Compiling Prex Store.swift
[12/14] Emitting module Prex
[13/14] Compiling Prex Flux.swift
[14/14] Compiling Prex Presenter.swift
/Users/admin/builder/spi-builder-workspace/Sources/Prex/Presenter.swift:46:21: warning: capture of '_view' with non-sendable type '_WeakView<View>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
44 |             } else {
45 |                 DispatchQueue.main.async {
46 |                     _view.reflect(change: change)
   |                     `- warning: capture of '_view' with non-sendable type '_WeakView<View>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
47 |                 }
48 |             }
   :
66 | // MARK: - _WeakView
67 |
68 | private struct _WeakView<View: Prex.View> {
   |                `- note: consider making generic struct '_WeakView' conform to the 'Sendable' protocol
69 |
70 |     private weak var view: View?
/Users/admin/builder/spi-builder-workspace/Sources/Prex/Presenter.swift:46:43: warning: capture of 'change' with non-sendable type 'StateChange<State>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
44 |             } else {
45 |                 DispatchQueue.main.async {
46 |                     _view.reflect(change: change)
   |                                           `- warning: capture of 'change' with non-sendable type 'StateChange<State>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
47 |                 }
48 |             }
/Users/admin/builder/spi-builder-workspace/Sources/Prex/StateChange.swift:11:15: note: consider making generic struct 'StateChange' conform to the 'Sendable' protocol
 9 | /// Contains new and old value
10 | @dynamicMemberLookup
11 | public struct StateChange<State: Prex.State> {
   |               `- note: consider making generic struct 'StateChange' conform to the 'Sendable' protocol
12 |
13 |     /// New value of changes
/Users/admin/builder/spi-builder-workspace/Sources/Prex/Presenter.swift:46:21: warning: sending '_view' risks causing data races; this is an error in the Swift 6 language mode
44 |             } else {
45 |                 DispatchQueue.main.async {
46 |                     _view.reflect(change: change)
   |                     |- warning: sending '_view' risks causing data races; this is an error in the Swift 6 language mode
   |                     `- note: task-isolated '_view' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
47 |                 }
48 |             }
/Users/admin/builder/spi-builder-workspace/Sources/Prex/Presenter.swift:46:43: warning: sending 'change' risks causing data races; this is an error in the Swift 6 language mode
44 |             } else {
45 |                 DispatchQueue.main.async {
46 |                     _view.reflect(change: change)
   |                                           |- warning: sending 'change' risks causing data races; this is an error in the Swift 6 language mode
   |                                           `- note: task-isolated 'change' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
47 |                 }
48 |             }
Build complete! (19.57s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "Prex",
  "name" : "Prex",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "Prex",
      "targets" : [
        "Prex"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "PrexTests",
      "module_type" : "SwiftTarget",
      "name" : "PrexTests",
      "path" : "Tests/PrexTests",
      "sources" : [
        "Components.swift",
        "DispatcherTests.swift",
        "PresenterTests.swift",
        "PubSubTests.swift",
        "StoreTests.swift",
        "ValueChangeTests.swift",
        "XCTestManifests.swift"
      ],
      "target_dependencies" : [
        "Prex"
      ],
      "type" : "test"
    },
    {
      "c99name" : "Prex",
      "module_type" : "SwiftTarget",
      "name" : "Prex",
      "path" : "Sources/Prex",
      "product_memberships" : [
        "Prex"
      ],
      "sources" : [
        "Flux/Action.swift",
        "Flux/Dispatcher.swift",
        "Flux/Flux.swift",
        "Flux/Store.swift",
        "Flux/View.swift",
        "Mutation.swift",
        "Presenter.swift",
        "State.swift",
        "StateChange.swift",
        "Subscription.swift",
        "internal/PubSub.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "4.2"
}
Done.
This is a staging environment. For live and up-to-date package information, visit swiftpackageindex.com.