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 SwiftCheck, reference master (7494be), with Swift 6.1 for macOS (SPM) on 24 Apr 2025 22:02:07 UTC.

Swift 6 data race errors: 1

Build Command

env DEVELOPER_DIR=/Applications/Xcode-16.3.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.61.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/typelift/SwiftCheck.git
Reference: master
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/typelift/SwiftCheck
 * branch            master     -> FETCH_HEAD
 * [new branch]      master     -> origin/master
HEAD is now at 7494bed Fix Xcode 12.5 build issues (#305)
Submodule path 'Carthage/Checkouts/FileCheck': checked out 'bd9cb30ceee1f21c02f51a7168f58471449807d8'
Submodule 'Carthage/Checkouts/FileCheck' (https://github.com/trill-lang/FileCheck.git) registered for path 'Carthage/Checkouts/FileCheck'
Cloning into '/Users/admin/builder/spi-builder-workspace/Carthage/Checkouts/FileCheck'...
Cloned https://github.com/typelift/SwiftCheck.git
Revision (git rev-parse @):
7494bedfa42972431004a5d478dbf1fc2655e1e6
SUCCESS checkout https://github.com/typelift/SwiftCheck.git at master
Fetching https://github.com/llvm-swift/FileCheck.git
[1/479] Fetching filecheck
Fetched https://github.com/llvm-swift/FileCheck.git from cache (0.65s)
Computing version for https://github.com/llvm-swift/FileCheck.git
Computed https://github.com/llvm-swift/FileCheck.git at 0.2.6 (1.27s)
Fetching https://github.com/mxcl/Chalk.git
Fetching https://github.com/apple/swift-argument-parser from cache
[1/81] Fetching chalk
Fetched https://github.com/apple/swift-argument-parser from cache (0.63s)
Fetched https://github.com/mxcl/Chalk.git from cache (0.98s)
Computing version for https://github.com/mxcl/Chalk.git
Computed https://github.com/mxcl/Chalk.git at 0.5.0 (1.58s)
Computing version for https://github.com/apple/swift-argument-parser
Computed https://github.com/apple/swift-argument-parser at 1.5.0 (0.52s)
Creating working copy for https://github.com/apple/swift-argument-parser
Working copy of https://github.com/apple/swift-argument-parser resolved at 1.5.0
Creating working copy for https://github.com/mxcl/Chalk.git
Working copy of https://github.com/mxcl/Chalk.git resolved at 0.5.0
Creating working copy for https://github.com/llvm-swift/FileCheck.git
Working copy of https://github.com/llvm-swift/FileCheck.git resolved at 0.2.6
========================================
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": "swiftcheck",
      "name": "SwiftCheck",
      "url": "https://github.com/typelift/SwiftCheck.git",
      "version": "unspecified",
      "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/SwiftCheck",
      "dependencies": [
      ]
    }
  ]
}
Fetching https://github.com/typelift/SwiftCheck.git
[1/4870] Fetching swiftcheck
Fetched https://github.com/typelift/SwiftCheck.git from cache (1.01s)
Creating working copy for https://github.com/typelift/SwiftCheck.git
Working copy of https://github.com/typelift/SwiftCheck.git resolved at master (7494bed)
warning: '.resolve-product-dependencies': dependency 'swiftcheck' is not used by any target
Found 0 product dependencies
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.1
Building package at path:  $PWD
https://github.com/typelift/SwiftCheck.git
https://github.com/typelift/SwiftCheck.git
{
  "dependencies" : [
    {
      "identity" : "filecheck",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "0.1.0",
            "upper_bound" : "1.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/llvm-swift/FileCheck.git"
    }
  ],
  "manifest_display_name" : "SwiftCheck",
  "name" : "SwiftCheck",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "SwiftCheck",
      "targets" : [
        "SwiftCheck"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "SwiftCheckTests",
      "module_type" : "SwiftTarget",
      "name" : "SwiftCheckTests",
      "path" : "Tests/SwiftCheckTests",
      "product_dependencies" : [
        "FileCheck"
      ],
      "sources" : [
        "BooleanIdentitySpec.swift",
        "CartesianSpec.swift",
        "ComplexSpec.swift",
        "DiscardSpec.swift",
        "FailureSpec.swift",
        "FormatterSpec.swift",
        "GenSpec.swift",
        "LambdaSpec.swift",
        "ModifierSpec.swift",
        "PathSpec.swift",
        "PropertySpec.swift",
        "ReplaySpec.swift",
        "RoseSpec.swift",
        "ShrinkSpec.swift",
        "SimpleSpec.swift",
        "TestSpec.swift"
      ],
      "target_dependencies" : [
        "SwiftCheck"
      ],
      "type" : "test"
    },
    {
      "c99name" : "SwiftCheck",
      "module_type" : "SwiftTarget",
      "name" : "SwiftCheck",
      "path" : "Sources/SwiftCheck",
      "product_memberships" : [
        "SwiftCheck"
      ],
      "sources" : [
        "Arbitrary.swift",
        "Cartesian.swift",
        "Check.swift",
        "CoArbitrary.swift",
        "Compose.swift",
        "Gen.swift",
        "Lattice.swift",
        "Modifiers.swift",
        "Property.swift",
        "Random.swift",
        "Rose.swift",
        "State.swift",
        "Test.swift",
        "Testable.swift",
        "WitnessedArbitrary.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.2"
}
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.3.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
[1/1] Compiling plugin GenerateManual
Building for debugging...
[1/3] Write sources
[2/3] Write swift-version-2F0A5646E1D333AE.txt
[4/18] Compiling SwiftCheck Testable.swift
[5/19] Compiling SwiftCheck WitnessedArbitrary.swift
[6/19] Compiling SwiftCheck Test.swift
[7/19] Compiling SwiftCheck State.swift
[8/19] Compiling SwiftCheck Lattice.swift
[9/19] Compiling SwiftCheck Modifiers.swift
[10/19] Compiling SwiftCheck Property.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftCheck/Random.swift:103:13: warning: var 'theStdGen' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
101 | }
102 |
103 | private var theStdGen : StdGen = mkStdRNG(0)
    |             |- warning: var 'theStdGen' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |             |- note: convert 'theStdGen' to a 'let' constant to make 'Sendable' shared state immutable
    |             |- note: add '@MainActor' to make var 'theStdGen' part of global actor 'MainActor'
    |             `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
104 |
105 | /// A library-provided standard random number generator.
[11/19] Compiling SwiftCheck Random.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftCheck/Random.swift:103:13: warning: var 'theStdGen' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
101 | }
102 |
103 | private var theStdGen : StdGen = mkStdRNG(0)
    |             |- warning: var 'theStdGen' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |             |- note: convert 'theStdGen' to a 'let' constant to make 'Sendable' shared state immutable
    |             |- note: add '@MainActor' to make var 'theStdGen' part of global actor 'MainActor'
    |             `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
104 |
105 | /// A library-provided standard random number generator.
[12/19] Compiling SwiftCheck Rose.swift
[13/19] Compiling SwiftCheck Compose.swift
[14/19] Compiling SwiftCheck Gen.swift
[15/19] Emitting module SwiftCheck
/Users/admin/builder/spi-builder-workspace/Sources/SwiftCheck/Random.swift:103:13: warning: var 'theStdGen' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
101 | }
102 |
103 | private var theStdGen : StdGen = mkStdRNG(0)
    |             |- warning: var 'theStdGen' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |             |- note: convert 'theStdGen' to a 'let' constant to make 'Sendable' shared state immutable
    |             |- note: add '@MainActor' to make var 'theStdGen' part of global actor 'MainActor'
    |             `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
104 |
105 | /// A library-provided standard random number generator.
[16/19] Compiling SwiftCheck Arbitrary.swift
[17/19] Compiling SwiftCheck Cartesian.swift
[18/19] Compiling SwiftCheck Check.swift
[19/19] Compiling SwiftCheck CoArbitrary.swift
Build complete! (12.45s)
Build complete.
{
  "dependencies" : [
    {
      "identity" : "filecheck",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "0.1.0",
            "upper_bound" : "1.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/llvm-swift/FileCheck.git"
    }
  ],
  "manifest_display_name" : "SwiftCheck",
  "name" : "SwiftCheck",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "SwiftCheck",
      "targets" : [
        "SwiftCheck"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "SwiftCheckTests",
      "module_type" : "SwiftTarget",
      "name" : "SwiftCheckTests",
      "path" : "Tests/SwiftCheckTests",
      "product_dependencies" : [
        "FileCheck"
      ],
      "sources" : [
        "BooleanIdentitySpec.swift",
        "CartesianSpec.swift",
        "ComplexSpec.swift",
        "DiscardSpec.swift",
        "FailureSpec.swift",
        "FormatterSpec.swift",
        "GenSpec.swift",
        "LambdaSpec.swift",
        "ModifierSpec.swift",
        "PathSpec.swift",
        "PropertySpec.swift",
        "ReplaySpec.swift",
        "RoseSpec.swift",
        "ShrinkSpec.swift",
        "SimpleSpec.swift",
        "TestSpec.swift"
      ],
      "target_dependencies" : [
        "SwiftCheck"
      ],
      "type" : "test"
    },
    {
      "c99name" : "SwiftCheck",
      "module_type" : "SwiftTarget",
      "name" : "SwiftCheck",
      "path" : "Sources/SwiftCheck",
      "product_memberships" : [
        "SwiftCheck"
      ],
      "sources" : [
        "Arbitrary.swift",
        "Cartesian.swift",
        "Check.swift",
        "CoArbitrary.swift",
        "Compose.swift",
        "Gen.swift",
        "Lattice.swift",
        "Modifiers.swift",
        "Property.swift",
        "Random.swift",
        "Rose.swift",
        "State.swift",
        "Test.swift",
        "Testable.swift",
        "WitnessedArbitrary.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.2"
}
Done.