The Swift Package Index logo.Swift Package Index

Build Information

Failed to build ViewState, reference 2.1.0 (4e0926), with Swift 6.3 for Wasm on 13 Apr 2026 21:59:45 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/swiftpackageindex/spi-images:wasm-6.3-latest swift build --swift-sdk swift-6.3-RELEASE_wasm 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.70.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/heroesofcode/ViewState.git
Reference: 2.1.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/heroesofcode/ViewState
 * tag               2.1.0      -> FETCH_HEAD
HEAD is now at 4e0926c Bump version to 2.1.0
Cloned https://github.com/heroesofcode/ViewState.git
Revision (git rev-parse @):
4e0926c6c05082f809088c9f8df30276a3cc00bd
SPI manifest file found: $PWD/.spi.yml
SUCCESS checkout https://github.com/heroesofcode/ViewState.git at 2.1.0
========================================
Build
========================================
Selected platform:         wasm
Swift version:             6.3
Building package at path:  $PWD
https://github.com/heroesofcode/ViewState.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/swiftpackageindex/spi-images:wasm-6.3-latest swift build --swift-sdk swift-6.3-RELEASE_wasm 2>&1
wasm-6.3-latest: Pulling from swiftpackageindex/spi-images
Digest: sha256:d69f4e7582c319245442d62a08b2d7c7fd5a0c0c69f5d2ef11d1530cd8d3329b
Status: Image is up to date for registry.gitlab.com/swiftpackageindex/spi-images:wasm-6.3-latest
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-24593BA9C3E375BF.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[3/6] Compiling ViewState Observable.swift
[4/6] Compiling ViewState ObserverProtocol.swift
[5/6] Emitting module ViewState
/host/spi-builder-workspace/Sources/ViewState/ViewState.swift:19:30: error: cannot find 'DispatchQueue' in scope
 17 |     private var fetchSourceBehavior: () -> Void = {}
 18 |
 19 |     private let stateQueue = DispatchQueue(
    |                              `- error: cannot find 'DispatchQueue' in scope
 20 |         label: "viewState.queue",
 21 |         attributes: .concurrent
/host/spi-builder-workspace/Sources/ViewState/ViewState.swift:21:22: error: cannot infer contextual base in reference to member 'concurrent'
 19 |     private let stateQueue = DispatchQueue(
 20 |         label: "viewState.queue",
 21 |         attributes: .concurrent
    |                      `- error: cannot infer contextual base in reference to member 'concurrent'
 22 |     )
 23 |
[6/6] Compiling ViewState ViewState.swift
/host/spi-builder-workspace/Sources/ViewState/ViewState.swift:19:30: error: cannot find 'DispatchQueue' in scope
 17 |     private var fetchSourceBehavior: () -> Void = {}
 18 |
 19 |     private let stateQueue = DispatchQueue(
    |                              `- error: cannot find 'DispatchQueue' in scope
 20 |         label: "viewState.queue",
 21 |         attributes: .concurrent
/host/spi-builder-workspace/Sources/ViewState/ViewState.swift:21:22: error: cannot infer contextual base in reference to member 'concurrent'
 19 |     private let stateQueue = DispatchQueue(
 20 |         label: "viewState.queue",
 21 |         attributes: .concurrent
    |                      `- error: cannot infer contextual base in reference to member 'concurrent'
 22 |     )
 23 |
/host/spi-builder-workspace/Sources/ViewState/ViewState.swift:32:13: error: cannot find 'DispatchQueue' in scope
 30 |         successBehavior.addObserver(self) { data in
 31 |             guard let data else { return }
 32 |             DispatchQueue.main.async {
    |             `- error: cannot find 'DispatchQueue' in scope
 33 |                 success(data)
 34 |             }
/host/spi-builder-workspace/Sources/ViewState/ViewState.swift:44:13: error: cannot find 'DispatchQueue' in scope
 42 |     public func loadingObserver(_ loading: @escaping () -> Void) -> ViewState {
 43 |         loadingBehavior.addObserver(self) { _ in
 44 |             DispatchQueue.main.async {
    |             `- error: cannot find 'DispatchQueue' in scope
 45 |                 loading()
 46 |             }
/host/spi-builder-workspace/Sources/ViewState/ViewState.swift:57:13: error: cannot find 'DispatchQueue' in scope
 55 |         errorBehavior.addObserver(self) { errorMessage in
 56 |             guard let errorMessage else { return }
 57 |             DispatchQueue.main.async {
    |             `- error: cannot find 'DispatchQueue' in scope
 58 |                 error(errorMessage)
 59 |             }
/host/spi-builder-workspace/Sources/ViewState/ViewState.swift:71:34: error: cannot infer contextual base in reference to member 'barrier'
 69 |
 70 |     private func postRequest() {
 71 |         stateQueue.async(flags: .barrier) {
    |                                  `- error: cannot infer contextual base in reference to member 'barrier'
 72 |             self.verifyCanMakeRequest.value = Any.self
 73 |         }
/host/spi-builder-workspace/Sources/ViewState/ViewState.swift:86:34: error: cannot infer contextual base in reference to member 'barrier'
 84 |
 85 |     private func loading() {
 86 |         stateQueue.async(flags: .barrier) {
    |                                  `- error: cannot infer contextual base in reference to member 'barrier'
 87 |             self.loadingBehavior.value = {}
 88 |         }
/host/spi-builder-workspace/Sources/ViewState/ViewState.swift:92:34: error: cannot infer contextual base in reference to member 'barrier'
 90 |
 91 |     public func success(data: T) {
 92 |         stateQueue.async(flags: .barrier) {
    |                                  `- error: cannot infer contextual base in reference to member 'barrier'
 93 |             self.clearErrors()
 94 |             self.successBehavior.value = data
/host/spi-builder-workspace/Sources/ViewState/ViewState.swift:99:34: error: cannot infer contextual base in reference to member 'barrier'
 97 |
 98 |     public func error(error: E) {
 99 |         stateQueue.async(flags: .barrier) {
    |                                  `- error: cannot infer contextual base in reference to member 'barrier'
100 |             self.clearSuccess()
101 |             self.errorBehavior.value = error
BUILD FAILURE 6.3 wasm