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 BDDSwift, reference main (a08363), with Swift 6.0 for macOS (SPM) on 2 Nov 2024 21:05:34 UTC.

Swift 6 data race errors: 1

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

Build Log

========================================
RunAll
========================================
Builder version: 4.56.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/KaneCheshire/BDDSwift.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/KaneCheshire/BDDSwift
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at a08363c Update to README
Cloned https://github.com/KaneCheshire/BDDSwift.git
Revision (git rev-parse @):
a08363c0cb3dfd8ae7ec3701f85f9a593c3086f1
SUCCESS checkout https://github.com/KaneCheshire/BDDSwift.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": "bddswift",
      "name": "BDDSwift",
      "url": "https://github.com/KaneCheshire/BDDSwift.git",
      "version": "unspecified",
      "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/BDDSwift",
      "dependencies": [
      ]
    }
  ]
}
Fetching https://github.com/KaneCheshire/BDDSwift.git
[2/30] Fetching bddswift
Fetched https://github.com/KaneCheshire/BDDSwift.git from cache (0.68s)
Creating working copy for https://github.com/KaneCheshire/BDDSwift.git
Working copy of https://github.com/KaneCheshire/BDDSwift.git resolved at main (a08363c)
warning: '.resolve-product-dependencies': dependency 'bddswift' 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/KaneCheshire/BDDSwift.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
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version--7754E27361AE5C74.txt
[3/6] Compiling BDDSwift StepsBuilder.swift
[4/6] Emitting module BDDSwift
/Users/admin/builder/spi-builder-workspace/Sources/BDDSwift/Scenario.swift:32:36: warning: static property 'lastExecutedScenario' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
30 |
31 |     /// The most recently executed scenario.
32 |     static public private(set) var lastExecutedScenario: Scenario?
   |                                    |- warning: static property 'lastExecutedScenario' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                                    |- note: convert 'lastExecutedScenario' to a 'let' constant to make 'Sendable' shared state immutable
   |                                    |- note: annotate 'lastExecutedScenario' with '@MainActor' if property should only be accessed from the main actor
   |                                    `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
33 |
34 |     /// The most recently executed step for this scenario.
[5/6] Compiling BDDSwift Scenario.swift
/Users/admin/builder/spi-builder-workspace/Sources/BDDSwift/Scenario.swift:32:36: warning: static property 'lastExecutedScenario' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
30 |
31 |     /// The most recently executed scenario.
32 |     static public private(set) var lastExecutedScenario: Scenario?
   |                                    |- warning: static property 'lastExecutedScenario' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                                    |- note: convert 'lastExecutedScenario' to a 'let' constant to make 'Sendable' shared state immutable
   |                                    |- note: annotate 'lastExecutedScenario' with '@MainActor' if property should only be accessed from the main actor
   |                                    `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
33 |
34 |     /// The most recently executed step for this scenario.
/Users/admin/builder/spi-builder-workspace/Sources/BDDSwift/Scenario.swift:54:20: warning: call to main actor-isolated class method 'runActivity(named:block:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
52 |         let totalStepCount = stepsChain.index + 1
53 |         let activityName = "Running scenario with \(totalStepCount) steps: \(description)"
54 |         XCTContext.runActivity(named: activityName) { _ in
   |                    `- warning: call to main actor-isolated class method 'runActivity(named:block:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
55 |             stepsChain.performInSequence(in: &self, totalStepCount: totalStepCount)
56 |         }
XCTest.XCTContext:2:50: note: calls to class method 'runActivity(named:block:)' from outside of its actor context are implicitly asynchronous
1 | extension XCTContext {
2 |     @MainActor @preconcurrency public class func runActivity<Result>(named name: String, block: @MainActor (any XCTActivity) throws -> Result) rethrows -> Result
  |                                                  `- note: calls to class method 'runActivity(named:block:)' from outside of its actor context are implicitly asynchronous
3 | }
/Users/admin/builder/spi-builder-workspace/Sources/BDDSwift/Scenario.swift:65:20: warning: call to main actor-isolated class method 'runActivity(named:block:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
60 | private extension Step {
61 |
62 |     func performInSequence(in scenario: inout Scenario, totalStepCount: Int) {
   |          `- note: add '@MainActor' to make instance method 'performInSequence(in:totalStepCount:)' part of global actor 'MainActor'
63 |         if let previous { previous.performInSequence(in: &scenario, totalStepCount: totalStepCount) }
64 |         let activityName = "Performing step \(index + 1) of \(totalStepCount): \(description)"
65 |         XCTContext.runActivity(named: activityName) { _ in
   |                    `- warning: call to main actor-isolated class method 'runActivity(named:block:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
66 |             scenario.lastExecutedStep = self
67 |             logic()
XCTest.XCTContext:2:50: note: calls to class method 'runActivity(named:block:)' from outside of its actor context are implicitly asynchronous
1 | extension XCTContext {
2 |     @MainActor @preconcurrency public class func runActivity<Result>(named name: String, block: @MainActor (any XCTActivity) throws -> Result) rethrows -> Result
  |                                                  `- note: calls to class method 'runActivity(named:block:)' from outside of its actor context are implicitly asynchronous
3 | }
/Users/admin/builder/spi-builder-workspace/Sources/BDDSwift/Scenario.swift:55:13: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
53 |         let activityName = "Running scenario with \(totalStepCount) steps: \(description)"
54 |         XCTContext.runActivity(named: activityName) { _ in
55 |             stepsChain.performInSequence(in: &self, totalStepCount: totalStepCount)
   |             |- warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
   |             `- note: 'self' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
56 |         }
57 |     }
   |     `- note: access can happen concurrently
58 | }
59 |
/Users/admin/builder/spi-builder-workspace/Sources/BDDSwift/Scenario.swift:66:13: warning: sending 'scenario' risks causing data races; this is an error in the Swift 6 language mode
64 |         let activityName = "Performing step \(index + 1) of \(totalStepCount): \(description)"
65 |         XCTContext.runActivity(named: activityName) { _ in
66 |             scenario.lastExecutedStep = self
   |             |- warning: sending 'scenario' risks causing data races; this is an error in the Swift 6 language mode
   |             `- note: task-isolated 'scenario' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
67 |             logic()
68 |         }
/Users/admin/builder/spi-builder-workspace/Sources/BDDSwift/Scenario.swift:66:41: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
64 |         let activityName = "Performing step \(index + 1) of \(totalStepCount): \(description)"
65 |         XCTContext.runActivity(named: activityName) { _ in
66 |             scenario.lastExecutedStep = self
   |                                         |- warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
   |                                         `- note: task-isolated 'self' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
67 |             logic()
68 |         }
[6/6] Compiling BDDSwift Step.swift
Build complete! (12.84s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "BDDSwift",
  "name" : "BDDSwift",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "BDDSwift",
      "targets" : [
        "BDDSwift"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "BDDSwiftTests",
      "module_type" : "SwiftTarget",
      "name" : "BDDSwiftTests",
      "path" : "Tests/BDDSwiftTests",
      "sources" : [
        "ScenarioTests.swift"
      ],
      "target_dependencies" : [
        "BDDSwift"
      ],
      "type" : "test"
    },
    {
      "c99name" : "BDDSwift",
      "module_type" : "SwiftTarget",
      "name" : "BDDSwift",
      "path" : "Sources/BDDSwift",
      "product_memberships" : [
        "BDDSwift"
      ],
      "sources" : [
        "Scenario.swift",
        "Step.swift",
        "StepsBuilder.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.7"
}
Done.