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 SwiftCalc, reference main (fb3157), with Swift 6.1 for macOS (SPM) on 27 Apr 2025 10:03:45 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/schwa/SwiftCalc.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/schwa/SwiftCalc
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at fb31571 Remove code cov to fix buildkite.
Cloned https://github.com/schwa/SwiftCalc.git
Revision (git rev-parse @):
fb31571bf338526f50478897027ac9747b7acaa7
SUCCESS checkout https://github.com/schwa/SwiftCalc.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": "swiftcalc",
      "name": "SwiftCalc",
      "url": "https://github.com/schwa/SwiftCalc.git",
      "version": "unspecified",
      "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/SwiftCalc",
      "dependencies": [
      ]
    }
  ]
}
Fetching https://github.com/schwa/SwiftCalc.git
[1/108] Fetching swiftcalc
Fetched https://github.com/schwa/SwiftCalc.git from cache (0.72s)
Creating working copy for https://github.com/schwa/SwiftCalc.git
Working copy of https://github.com/schwa/SwiftCalc.git resolved at main (fb31571)
warning: '.resolve-product-dependencies': dependency 'swiftcalc' 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/schwa/SwiftCalc.git
https://github.com/schwa/SwiftCalc.git
{
  "dependencies" : [
  ],
  "manifest_display_name" : "SwiftCalc",
  "name" : "SwiftCalc",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "SwiftCalc",
      "targets" : [
        "SwiftCalc"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "parser",
      "module_type" : "ClangTarget",
      "name" : "parser",
      "path" : "Sources/parser",
      "product_memberships" : [
        "SwiftCalc"
      ],
      "sources" : [
        "parser.c"
      ],
      "type" : "library"
    },
    {
      "c99name" : "SwiftCalcTests",
      "module_type" : "SwiftTarget",
      "name" : "SwiftCalcTests",
      "path" : "Tests/SwiftCalcTests",
      "sources" : [
        "SwiftCalcTests.swift"
      ],
      "target_dependencies" : [
        "SwiftCalc"
      ],
      "type" : "test"
    },
    {
      "c99name" : "SwiftCalc",
      "module_type" : "SwiftTarget",
      "name" : "SwiftCalc",
      "path" : "Sources/SwiftCalc",
      "product_memberships" : [
        "SwiftCalc"
      ],
      "sources" : [
        "AttributedString.swift",
        "Introspection.swift",
        "Math.swift",
        "SwiftCalc.swift"
      ],
      "target_dependencies" : [
        "parser"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.5"
}
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
Building for debugging...
[0/3] Write sources
[1/3] Write swift-version-2F0A5646E1D333AE.txt
[2/3] Compiling parser parser.c
[4/8] Compiling SwiftCalc SwiftCalc.swift
[5/8] Compiling SwiftCalc Math.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftCalc/Math.swift:32:16: warning: static property 'all' is not concurrency-safe because non-'Sendable' type '[Function]' may have shared mutable state; this is an error in the Swift 6 language mode
30 | public extension Math {
31 |
32 |     static let all = [
   |                |- warning: static property 'all' is not concurrency-safe because non-'Sendable' type '[Function]' may have shared mutable state; this is an error in the Swift 6 language mode
   |                |- note: add '@MainActor' to make static property 'all' part of global actor 'MainActor'
   |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
33 |         Function("sin") { parameters in
34 |             return try .number(Darwin.sin(parameters.doubles.onlyElement))
/Users/admin/builder/spi-builder-workspace/Sources/SwiftCalc/SwiftCalc.swift:44:15: note: consider making struct 'Function' conform to the 'Sendable' protocol
 42 | }
 43 |
 44 | public struct Function: Identifiable {
    |               `- note: consider making struct 'Function' conform to the 'Sendable' protocol
 45 |     public let id: String
 46 |     public let closure: ([Value]) throws -> Value
[6/8] Compiling SwiftCalc Introspection.swift
[7/8] Compiling SwiftCalc AttributedString.swift
[8/8] Emitting module SwiftCalc
/Users/admin/builder/spi-builder-workspace/Sources/SwiftCalc/Math.swift:32:16: warning: static property 'all' is not concurrency-safe because non-'Sendable' type '[Function]' may have shared mutable state; this is an error in the Swift 6 language mode
30 | public extension Math {
31 |
32 |     static let all = [
   |                |- warning: static property 'all' is not concurrency-safe because non-'Sendable' type '[Function]' may have shared mutable state; this is an error in the Swift 6 language mode
   |                |- note: add '@MainActor' to make static property 'all' part of global actor 'MainActor'
   |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
33 |         Function("sin") { parameters in
34 |             return try .number(Darwin.sin(parameters.doubles.onlyElement))
/Users/admin/builder/spi-builder-workspace/Sources/SwiftCalc/SwiftCalc.swift:44:15: note: consider making struct 'Function' conform to the 'Sendable' protocol
 42 | }
 43 |
 44 | public struct Function: Identifiable {
    |               `- note: consider making struct 'Function' conform to the 'Sendable' protocol
 45 |     public let id: String
 46 |     public let closure: ([Value]) throws -> Value
Build complete! (8.77s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "SwiftCalc",
  "name" : "SwiftCalc",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "SwiftCalc",
      "targets" : [
        "SwiftCalc"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "parser",
      "module_type" : "ClangTarget",
      "name" : "parser",
      "path" : "Sources/parser",
      "product_memberships" : [
        "SwiftCalc"
      ],
      "sources" : [
        "parser.c"
      ],
      "type" : "library"
    },
    {
      "c99name" : "SwiftCalcTests",
      "module_type" : "SwiftTarget",
      "name" : "SwiftCalcTests",
      "path" : "Tests/SwiftCalcTests",
      "sources" : [
        "SwiftCalcTests.swift"
      ],
      "target_dependencies" : [
        "SwiftCalc"
      ],
      "type" : "test"
    },
    {
      "c99name" : "SwiftCalc",
      "module_type" : "SwiftTarget",
      "name" : "SwiftCalc",
      "path" : "Sources/SwiftCalc",
      "product_memberships" : [
        "SwiftCalc"
      ],
      "sources" : [
        "AttributedString.swift",
        "Introspection.swift",
        "Math.swift",
        "SwiftCalc.swift"
      ],
      "target_dependencies" : [
        "parser"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.5"
}
Done.