The Swift Package Index logo.Swift Package Index

Has it really been five years since Swift Package Index launched? Read our anniversary blog post!

Build Information

Failed to build Version, reference 0.8.0 (fd4b0e), with Swift 6.1 for Wasm on 27 May 2025 16:46:04 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4609320-1":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.63.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/mrackwitz/Version.git
Reference: 0.8.0
Initialized empty Git repository in /host/spi-builder-workspace/.git/
hint: Using 'master' as the name for the initial branch. This default branch name
hint: is subject to change. To configure the initial branch name to use in all
hint: of your new repositories, which will suppress this warning, call:
hint:
hint: 	git config --global init.defaultBranch <name>
hint:
hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and
hint: 'development'. The just-created branch can be renamed via this command:
hint:
hint: 	git branch -m <name>
From https://github.com/mrackwitz/Version
 * tag               0.8.0      -> FETCH_HEAD
HEAD is now at fd4b0eb Bumped version to 0.8.0
Cloned https://github.com/mrackwitz/Version.git
Revision (git rev-parse @):
fd4b0eb5756aa7f1c33977fb626cf37d2140a3a0
SUCCESS checkout https://github.com/mrackwitz/Version.git at 0.8.0
========================================
Build
========================================
Selected platform:         wasm
Swift version:             6.1
Building package at path:  $PWD
https://github.com/mrackwitz/Version.git
https://github.com/mrackwitz/Version.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
  "dependencies" : [
  ],
  "manifest_display_name" : "Version",
  "name" : "Version",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "Version",
      "targets" : [
        "Version"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "VersionTests",
      "module_type" : "SwiftTarget",
      "name" : "VersionTests",
      "path" : "Tests/VersionTests",
      "sources" : [
        "VersionParserTests.swift",
        "VersionTests.swift",
        "XCTestManifests.swift"
      ],
      "target_dependencies" : [
        "Version"
      ],
      "type" : "test"
    },
    {
      "c99name" : "Version",
      "module_type" : "SwiftTarget",
      "name" : "Version",
      "path" : "Sources/Version",
      "product_memberships" : [
        "Version"
      ],
      "sources" : [
        "Regex.swift",
        "Version.swift",
        "VersionParser.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.1"
}
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-1":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi -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 2>&1
wasm-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:7e37457820e5f17452a98118754f345f2619722c485f2db0d8b666940a83afd2
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-24593BA9C3E375BF.txt
[3/6] Compiling Version VersionParser.swift
[4/6] Compiling Version Version.swift
/host/spi-builder-workspace/Sources/Version/Version.swift:87:28: warning: static property 'strictParser' is not concurrency-safe because non-'Sendable' type 'VersionParser' may have shared mutable state; this is an error in the Swift 6 language mode
 85 |     public var build: String?
 86 |
 87 |     fileprivate static let strictParser = VersionParser(strict: true)
    |                            |- warning: static property 'strictParser' is not concurrency-safe because non-'Sendable' type 'VersionParser' may have shared mutable state; this is an error in the Swift 6 language mode
    |                            |- note: add '@MainActor' to make static property 'strictParser' part of global actor 'MainActor'
    |                            `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 88 |     fileprivate static let lenientParser = VersionParser(strict: false)
 89 |
/host/spi-builder-workspace/Sources/Version/VersionParser.swift:20:15: note: consider making struct 'VersionParser' conform to the 'Sendable' protocol
 18 | }
 19 |
 20 | public struct VersionParser {
    |               `- note: consider making struct 'VersionParser' conform to the 'Sendable' protocol
 21 |     static func versionPattern(strict: Bool, anchored: Bool) -> Regex {
 22 |         let number = VersionParser.numberPatternString(strict: strict)
/host/spi-builder-workspace/Sources/Version/Version.swift:88:28: warning: static property 'lenientParser' is not concurrency-safe because non-'Sendable' type 'VersionParser' may have shared mutable state; this is an error in the Swift 6 language mode
 86 |
 87 |     fileprivate static let strictParser = VersionParser(strict: true)
 88 |     fileprivate static let lenientParser = VersionParser(strict: false)
    |                            |- warning: static property 'lenientParser' is not concurrency-safe because non-'Sendable' type 'VersionParser' may have shared mutable state; this is an error in the Swift 6 language mode
    |                            |- note: add '@MainActor' to make static property 'lenientParser' part of global actor 'MainActor'
    |                            `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 89 |
 90 |     /// Initialize a version from its components.
/host/spi-builder-workspace/Sources/Version/VersionParser.swift:20:15: note: consider making struct 'VersionParser' conform to the 'Sendable' protocol
 18 | }
 19 |
 20 | public struct VersionParser {
    |               `- note: consider making struct 'VersionParser' conform to the 'Sendable' protocol
 21 |     static func versionPattern(strict: Bool, anchored: Bool) -> Regex {
 22 |         let number = VersionParser.numberPatternString(strict: strict)
/host/spi-builder-workspace/Sources/Version/Version.swift:284:62: error: cannot find 'kCFBundleVersionKey' in scope
282 |         return nil
283 |         #else
284 |         return self.versionFromInfoDictionary(forKey: String(kCFBundleVersionKey))
    |                                                              `- error: cannot find 'kCFBundleVersionKey' in scope
285 |         #endif
286 |     }
[5/6] Compiling Version Regex.swift
[6/6] Emitting module Version
/host/spi-builder-workspace/Sources/Version/Version.swift:87:28: warning: static property 'strictParser' is not concurrency-safe because non-'Sendable' type 'VersionParser' may have shared mutable state; this is an error in the Swift 6 language mode
 85 |     public var build: String?
 86 |
 87 |     fileprivate static let strictParser = VersionParser(strict: true)
    |                            |- warning: static property 'strictParser' is not concurrency-safe because non-'Sendable' type 'VersionParser' may have shared mutable state; this is an error in the Swift 6 language mode
    |                            |- note: add '@MainActor' to make static property 'strictParser' part of global actor 'MainActor'
    |                            `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 88 |     fileprivate static let lenientParser = VersionParser(strict: false)
 89 |
/host/spi-builder-workspace/Sources/Version/VersionParser.swift:20:15: note: consider making struct 'VersionParser' conform to the 'Sendable' protocol
 18 | }
 19 |
 20 | public struct VersionParser {
    |               `- note: consider making struct 'VersionParser' conform to the 'Sendable' protocol
 21 |     static func versionPattern(strict: Bool, anchored: Bool) -> Regex {
 22 |         let number = VersionParser.numberPatternString(strict: strict)
/host/spi-builder-workspace/Sources/Version/Version.swift:88:28: warning: static property 'lenientParser' is not concurrency-safe because non-'Sendable' type 'VersionParser' may have shared mutable state; this is an error in the Swift 6 language mode
 86 |
 87 |     fileprivate static let strictParser = VersionParser(strict: true)
 88 |     fileprivate static let lenientParser = VersionParser(strict: false)
    |                            |- warning: static property 'lenientParser' is not concurrency-safe because non-'Sendable' type 'VersionParser' may have shared mutable state; this is an error in the Swift 6 language mode
    |                            |- note: add '@MainActor' to make static property 'lenientParser' part of global actor 'MainActor'
    |                            `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 89 |
 90 |     /// Initialize a version from its components.
/host/spi-builder-workspace/Sources/Version/VersionParser.swift:20:15: note: consider making struct 'VersionParser' conform to the 'Sendable' protocol
 18 | }
 19 |
 20 | public struct VersionParser {
    |               `- note: consider making struct 'VersionParser' conform to the 'Sendable' protocol
 21 |     static func versionPattern(strict: Bool, anchored: Bool) -> Regex {
 22 |         let number = VersionParser.numberPatternString(strict: strict)
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-1":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1
wasm-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:7e37457820e5f17452a98118754f345f2619722c485f2db0d8b666940a83afd2
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest
[0/1] Planning build
Building for debugging...
[0/1] Write swift-version-24593BA9C3E375BF.txt
[2/5] Compiling Version VersionParser.swift
[3/5] Compiling Version Regex.swift
[4/5] Emitting module Version
[5/5] Compiling Version Version.swift
/host/spi-builder-workspace/Sources/Version/Version.swift:284:62: error: cannot find 'kCFBundleVersionKey' in scope
282 |         return nil
283 |         #else
284 |         return self.versionFromInfoDictionary(forKey: String(kCFBundleVersionKey))
    |                                                              `- error: cannot find 'kCFBundleVersionKey' in scope
285 |         #endif
286 |     }
BUILD FAILURE 6.1 wasm