The Swift Package Index logo.Swift Package Index

Build Information

Failed to build ProhibitedWord, reference main (58f974), with Swift 6.1 for Wasm on 3 Oct 2026 23:58:08 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-54344843-1":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/saguaro1/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 5.1.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/qalvinahmad/prohibited-word.git
Reference: main
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/qalvinahmad/prohibited-word
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at 58f9746 feat(swift): add root Package.swift for Swift Package Manager
Cloned https://github.com/qalvinahmad/prohibited-word.git
Revision (git rev-parse @):
58f974666576aeb4f2b3b699f974f4d57d3e718f
SUCCESS checkout https://github.com/qalvinahmad/prohibited-word.git at main
========================================
Build
========================================
Selected platform:         wasm
Swift version:             6.1
Building package at path:  $PWD
https://github.com/qalvinahmad/prohibited-word.git
https://github.com/qalvinahmad/prohibited-word.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-54344843-1":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/saguaro1/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 saguaro1/spi-images
Digest: sha256:beceeede496da67681f4fa220a6b97cc098a0178841a413735f598dc6bbaf4c8
Status: Image is up to date for registry.gitlab.com/saguaro1/spi-images:wasm-6.1-latest
Building for debugging...
[0/4] Copying words-lite.json
[0/4] Write sources
[2/4] Copying words.json
[3/4] Write swift-version-24593BA9C3E375BF.txt
[5/7] Compiling ProhibitedWord resource_bundle_accessor.swift
[6/7] Compiling ProhibitedWord ProhibitedWord.swift
/host/spi-builder-workspace/packages/swift/Sources/ProhibitedWord/ProhibitedWord.swift:223:13: warning: var 'wordDB' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
221 | }
222 |
223 | private var wordDB: DB = {
    |             |- warning: var 'wordDB' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |             |- note: convert 'wordDB' to a 'let' constant to make 'Sendable' shared state immutable
    |             |- note: add '@MainActor' to make var 'wordDB' part of global actor 'MainActor'
    |             `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
224 |   guard let url = Bundle.module.url(forResource: "words", withExtension: "json"),
225 |         let data = try? Data(contentsOf: url),
/host/spi-builder-workspace/packages/swift/Sources/ProhibitedWord/ProhibitedWord.swift:232:13: warning: var 'dictID' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
230 | }()
231 |
232 | private var dictID: String = "\(wordDB.version ?? 0):\(wordDB.langs.count)"
    |             |- warning: var 'dictID' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |             |- note: convert 'dictID' to a 'let' constant to make 'Sendable' shared state immutable
    |             |- note: add '@MainActor' to make var 'dictID' part of global actor 'MainActor'
    |             `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
233 | private var cache: [String: Engine] = [:]
234 | private let cacheLock = NSLock()
/host/spi-builder-workspace/packages/swift/Sources/ProhibitedWord/ProhibitedWord.swift:233:13: warning: var 'cache' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
231 |
232 | private var dictID: String = "\(wordDB.version ?? 0):\(wordDB.langs.count)"
233 | private var cache: [String: Engine] = [:]
    |             |- warning: var 'cache' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |             |- note: convert 'cache' to a 'let' constant to make 'Sendable' shared state immutable
    |             |- note: add '@MainActor' to make var 'cache' part of global actor 'MainActor'
    |             `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
234 | private let cacheLock = NSLock()
235 |
/host/spi-builder-workspace/packages/swift/Sources/ProhibitedWord/ProhibitedWord.swift:429:47: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
427 |
428 | public func fetchDataset(from url: URL) async throws -> Data {
429 |   let (data, response) = try await URLSession.shared.data(from: url)
    |                                               `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
430 |   if let http = response as? HTTPURLResponse, http.statusCode != 200 {
431 |     throw URLError(.badServerResponse)
[7/7] Emitting module ProhibitedWord
/host/spi-builder-workspace/packages/swift/Sources/ProhibitedWord/ProhibitedWord.swift:223:13: warning: var 'wordDB' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
221 | }
222 |
223 | private var wordDB: DB = {
    |             |- warning: var 'wordDB' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |             |- note: convert 'wordDB' to a 'let' constant to make 'Sendable' shared state immutable
    |             |- note: add '@MainActor' to make var 'wordDB' part of global actor 'MainActor'
    |             `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
224 |   guard let url = Bundle.module.url(forResource: "words", withExtension: "json"),
225 |         let data = try? Data(contentsOf: url),
/host/spi-builder-workspace/packages/swift/Sources/ProhibitedWord/ProhibitedWord.swift:232:13: warning: var 'dictID' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
230 | }()
231 |
232 | private var dictID: String = "\(wordDB.version ?? 0):\(wordDB.langs.count)"
    |             |- warning: var 'dictID' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |             |- note: convert 'dictID' to a 'let' constant to make 'Sendable' shared state immutable
    |             |- note: add '@MainActor' to make var 'dictID' part of global actor 'MainActor'
    |             `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
233 | private var cache: [String: Engine] = [:]
234 | private let cacheLock = NSLock()
/host/spi-builder-workspace/packages/swift/Sources/ProhibitedWord/ProhibitedWord.swift:233:13: warning: var 'cache' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
231 |
232 | private var dictID: String = "\(wordDB.version ?? 0):\(wordDB.langs.count)"
233 | private var cache: [String: Engine] = [:]
    |             |- warning: var 'cache' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |             |- note: convert 'cache' to a 'let' constant to make 'Sendable' shared state immutable
    |             |- note: add '@MainActor' to make var 'cache' part of global actor 'MainActor'
    |             `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
234 | private let cacheLock = NSLock()
235 |
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-54344843-1":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/saguaro1/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1
wasm-6.1-latest: Pulling from saguaro1/spi-images
Digest: sha256:beceeede496da67681f4fa220a6b97cc098a0178841a413735f598dc6bbaf4c8
Status: Image is up to date for registry.gitlab.com/saguaro1/spi-images:wasm-6.1-latest
[0/1] Planning build
Building for debugging...
[0/1] Write swift-version-24593BA9C3E375BF.txt
[2/4] Emitting module ProhibitedWord
[3/4] Compiling ProhibitedWord resource_bundle_accessor.swift
[4/4] Compiling ProhibitedWord ProhibitedWord.swift
/host/spi-builder-workspace/packages/swift/Sources/ProhibitedWord/ProhibitedWord.swift:429:47: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
427 |
428 | public func fetchDataset(from url: URL) async throws -> Data {
429 |   let (data, response) = try await URLSession.shared.data(from: url)
    |                                               `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
430 |   if let http = response as? HTTPURLResponse, http.statusCode != 200 {
431 |     throw URLError(.badServerResponse)
BUILD FAILURE 6.1 wasm