The Swift Package Index logo.Swift Package Index

Build Information

Failed to build sMock, reference 1.2.0 (831a80), with Swift 6.4 for Wasm on 19 Sep 2026 04:20:48 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-54344847-0":/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.4-latest swift build --swift-sdk swift-6.4.x-DEVELOPMENT-SNAPSHOT-2026-09-04-a_wasm 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 5.1.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/Alkenso/sMock.git
Reference: 1.2.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/Alkenso/sMock
 * tag               1.2.0      -> FETCH_HEAD
HEAD is now at 831a80a Merge branch 'refactoring'
Cloned https://github.com/Alkenso/sMock.git
Revision (git rev-parse @):
831a80a4cef948c0b0a4bbaf812f7b6f4b101ba1
SUCCESS checkout https://github.com/Alkenso/sMock.git at 1.2.0
========================================
Build
========================================
Selected platform:         wasm
Swift version:             6.4
Building package at path:  $PWD
https://github.com/Alkenso/sMock.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-54344847-0":/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.4-latest swift build --swift-sdk swift-6.4.x-DEVELOPMENT-SNAPSHOT-2026-09-04-a_wasm 2>&1
wasm-6.4-latest: Pulling from saguaro1/spi-images
Digest: sha256:4328fdb43c680d205c1d6761b1e3267aa38277eefdda9ddfb17b6a0f1a77857a
Status: Image is up to date for registry.gitlab.com/saguaro1/spi-images:wasm-6.4-latest
Building for debugging...
[Planning deferred tasks]
error: SwiftCompile normal wasm32 failed with a nonzero exit code. Command line:     cd /host

/host/spi-builder-workspace/Sources/sMock/_MockFunctionBase.swift:101:33: error: cannot find type 'XCTestExpectation' in scope
 99 | class ArmedExpectation<Args, R> {
100 |     private let expectation: Expectation<Args, R>
101 |     private let xctExpectation: XCTestExpectation?
    |                                 `- error: cannot find type 'XCTestExpectation' in scope
102 |     private let queue = DispatchQueue(label: "ArmedExpectation.queue")
103 |     private var count: Int = 0
/host/spi-builder-workspace/Sources/sMock/_MockFunctionBase.swift:102:25: error: cannot find 'DispatchQueue' in scope
100 |     private let expectation: Expectation<Args, R>
101 |     private let xctExpectation: XCTestExpectation?
102 |     private let queue = DispatchQueue(label: "ArmedExpectation.queue")
    |                         `- error: cannot find 'DispatchQueue' in scope
103 |     private var count: Int = 0
104 |
/host/spi-builder-workspace/Sources/sMock/_MockFunctionBase.swift:227:46: error: cannot find type 'XCTestExpectation' in scope
225 |
226 | private extension ExpectTimes {
227 |     func expectation(description: String) -> XCTestExpectation? {
    |                                              `- error: cannot find type 'XCTestExpectation' in scope
228 |         switch self {
229 |         case .unlimited:
/host/spi-builder-workspace/Sources/sMock/_MockFunctionBase.swift:275:25: error: cannot find 'DispatchQueue' in scope
273 |
274 | public class ArgumentCaptor<Args> {
275 |     private var queue = DispatchQueue(label: "ArgumentCaptor")
    |                         `- error: cannot find 'DispatchQueue' in scope
276 |     private var capturedArgs: [Args] = []
277 |
/host/spi-builder-workspace/Sources/sMock/sMock.swift:59:165: error: cannot find type 'XCTWaiter' in scope
 57 |
 58 |     /// Wait for currently registered sMock expectations. Extended version.
 59 |     public static func waitForExpectations(timeout seconds: TimeInterval, enforceOrder enforceOrderOfFulfillment: Bool, file: String = #file, line: Int = #line) -> XCTWaiter.Result {
    |                                                                                                                                                                     `- error: cannot find type 'XCTWaiter' in scope
 60 |         let delegate = FailureReporter(file: file, line: line, timeout: seconds)
 61 |         let waiter = XCTWaiter(delegate: delegate)
/host/spi-builder-workspace/Sources/sMock/sMock.swift:68:50: error: cannot find type 'XCTestExpectation' in scope
 66 |
 67 |     /// Extracts all current sMock expectations, transferring them to the caller.
 68 |     public static func extractExpectations() -> [XCTestExpectation] {
    |                                                  `- error: cannot find type 'XCTestExpectation' in scope
 69 |         expectationsSyncQueue.sync {
 70 |             let currentExpectations = expectations
/host/spi-builder-workspace/Sources/sMock/sMock.swift:84:58: error: cannot find type 'XCTestExpectation' in scope
 82 |
 83 | extension sMock {
 84 |     static func expectation(description: String = "") -> XCTestExpectation {
    |                                                          `- error: cannot find type 'XCTestExpectation' in scope
 85 |         expectationsSyncQueue.sync {
 86 |             let exp = XCTestExpectation(description: description)
/host/spi-builder-workspace/Sources/sMock/sMock.swift:93:48: error: cannot find 'DispatchQueue' in scope
 91 |     }
 92 |
 93 |     private static let expectationsSyncQueue = DispatchQueue(label: "sMock.expectationsSyncQueue")
    |                                                `- error: cannot find 'DispatchQueue' in scope
 94 |     private static var expectations: [XCTestExpectation] = []
 95 | }
/host/spi-builder-workspace/Sources/sMock/sMock.swift:94:39: error: cannot find type 'XCTestExpectation' in scope
 92 |
 93 |     private static let expectationsSyncQueue = DispatchQueue(label: "sMock.expectationsSyncQueue")
 94 |     private static var expectations: [XCTestExpectation] = []
    |                                       `- error: cannot find type 'XCTestExpectation' in scope
 95 | }
 96 |
/host/spi-builder-workspace/Sources/sMock/sMock.swift:192:38: error: cannot find type 'XCTWaiterDelegate' in scope
190 |
191 | private extension sMock {
192 |     class FailureReporter: NSObject, XCTWaiterDelegate {
    |                                      `- error: cannot find type 'XCTWaiterDelegate' in scope
193 |         private let _file: String
194 |         private let _line: Int
/host/spi-builder-workspace/Sources/sMock/sMock.swift:203:31: error: cannot find type 'XCTWaiter' in scope
201 |         }
202 |
203 |         func waiter(_ waiter: XCTWaiter, didTimeoutWithUnfulfilledExpectations unfulfilledExpectations: [XCTestExpectation]) {
    |                               `- error: cannot find type 'XCTWaiter' in scope
204 |             let expectationsDescription = unfulfilledExpectations.map { "\"\($0.expectationDescription)\"" }.joined(separator: ", ")
205 |             reportFailure("Asynchronous wait failed: Exceeded timeout of \(_timeout) seconds, with unfulfilled expectations: \(expectationsDescription).")
/host/spi-builder-workspace/Sources/sMock/sMock.swift:203:106: error: cannot find type 'XCTestExpectation' in scope
201 |         }
202 |
203 |         func waiter(_ waiter: XCTWaiter, didTimeoutWithUnfulfilledExpectations unfulfilledExpectations: [XCTestExpectation]) {
    |                                                                                                          `- error: cannot find type 'XCTestExpectation' in scope
204 |             let expectationsDescription = unfulfilledExpectations.map { "\"\($0.expectationDescription)\"" }.joined(separator: ", ")
205 |             reportFailure("Asynchronous wait failed: Exceeded timeout of \(_timeout) seconds, with unfulfilled expectations: \(expectationsDescription).")
/host/spi-builder-workspace/Sources/sMock/sMock.swift:208:31: error: cannot find type 'XCTWaiter' in scope
206 |         }
207 |
208 |         func waiter(_ waiter: XCTWaiter, fulfillmentDidViolateOrderingConstraintsFor expectation: XCTestExpectation, requiredExpectation: XCTestExpectation) {
    |                               `- error: cannot find type 'XCTWaiter' in scope
209 |             reportFailure("Failed due to expectation fulfilled in incorrect order: requires \"\(requiredExpectation.expectationDescription)\", actually fulfilled \"\(expectation.expectationDescription)\".")
210 |         }
/host/spi-builder-workspace/Sources/sMock/sMock.swift:208:99: error: cannot find type 'XCTestExpectation' in scope
206 |         }
207 |
208 |         func waiter(_ waiter: XCTWaiter, fulfillmentDidViolateOrderingConstraintsFor expectation: XCTestExpectation, requiredExpectation: XCTestExpectation) {
    |                                                                                                   `- error: cannot find type 'XCTestExpectation' in scope
209 |             reportFailure("Failed due to expectation fulfilled in incorrect order: requires \"\(requiredExpectation.expectationDescription)\", actually fulfilled \"\(expectation.expectationDescription)\".")
210 |         }
/host/spi-builder-workspace/Sources/sMock/sMock.swift:208:139: error: cannot find type 'XCTestExpectation' in scope
206 |         }
207 |
208 |         func waiter(_ waiter: XCTWaiter, fulfillmentDidViolateOrderingConstraintsFor expectation: XCTestExpectation, requiredExpectation: XCTestExpectation) {
    |                                                                                                                                           `- error: cannot find type 'XCTestExpectation' in scope
209 |             reportFailure("Failed due to expectation fulfilled in incorrect order: requires \"\(requiredExpectation.expectationDescription)\", actually fulfilled \"\(expectation.expectationDescription)\".")
210 |         }
/host/spi-builder-workspace/Sources/sMock/sMock.swift:212:31: error: cannot find type 'XCTWaiter' in scope
210 |         }
211 |
212 |         func waiter(_ waiter: XCTWaiter, didFulfillInvertedExpectation expectation: XCTestExpectation) {
    |                               `- error: cannot find type 'XCTWaiter' in scope
213 |             reportFailure("Fulfilled inverted expectation \"\(expectation.expectationDescription)\".")
214 |         }
/host/spi-builder-workspace/Sources/sMock/sMock.swift:212:85: error: cannot find type 'XCTestExpectation' in scope
210 |         }
211 |
212 |         func waiter(_ waiter: XCTWaiter, didFulfillInvertedExpectation expectation: XCTestExpectation) {
    |                                                                                     `- error: cannot find type 'XCTestExpectation' in scope
213 |             reportFailure("Fulfilled inverted expectation \"\(expectation.expectationDescription)\".")
214 |         }
/host/spi-builder-workspace/Sources/sMock/sMock.swift:216:37: error: cannot find type 'XCTWaiter' in scope
214 |         }
215 |
216 |         func nestedWaiter(_ waiter: XCTWaiter, wasInterruptedByTimedOutWaiter outerWaiter: XCTWaiter) {
    |                                     `- error: cannot find type 'XCTWaiter' in scope
217 |             reportFailure("Asynchronous waiter \(waiter) failed: interrupted by timeout of containing waiter \(outerWaiter).");
218 |         }
/host/spi-builder-workspace/Sources/sMock/sMock.swift:216:92: error: cannot find type 'XCTWaiter' in scope
214 |         }
215 |
216 |         func nestedWaiter(_ waiter: XCTWaiter, wasInterruptedByTimedOutWaiter outerWaiter: XCTWaiter) {
    |                                                                                            `- error: cannot find type 'XCTWaiter' in scope
217 |             reportFailure("Asynchronous waiter \(waiter) failed: interrupted by timeout of containing waiter \(outerWaiter).");
218 |         }
Failed frontend command:
/usr/bin/swift-frontend -frontend -emit-module -experimental-skip-non-inlinable-function-bodies-without-types /host/spi-builder-workspace/Sources/sMock/Matcher.swift /host/spi-builder-workspace/Sources/sMock/MockClosure.swift /host/spi-builder-workspace/Sources/sMock/MockMethod.swift /host/spi-builder-workspace/Sources/sMock/_MockFunctionBase.swift /host/spi-builder-workspace/Sources/sMock/sMock.swift -target wasm32-unknown-wasip1 -disable-objc-interop -sdk /root/.swiftpm/swift-sdks/swift-6.4.x-DEVELOPMENT-SNAPSHOT-2026-09-04-a_wasm.artifactbundle/swift-6.4.x-DEVELOPMENT-SNAPSHOT-2026-09-04-a_wasm/wasm32-unknown-wasip1/WASI.sdk -sysroot /root/.swiftpm/swift-sdks/swift-6.4.x-DEVELOPMENT-SNAPSHOT-2026-09-04-a_wasm.artifactbundle/swift-6.4.x-DEVELOPMENT-SNAPSHOT-2026-09-04-a_wasm/wasm32-unknown-wasip1/WASI.sdk -I /host/spi-builder-workspace/.build/out/Products/Debug-webassembly-wasm32 -module-cache-path /host/spi-builder-workspace/.build/out/ModuleCache.noindex -color-diagnostics -Xcc -fcolor-diagnostics -enable-testing -g -debug-info-format\=dwarf -dwarf-version\=4 -swift-version 5 -Onone -D SWIFT_PACKAGE -D DEBUG -D SWIFT_MODULE_RESOURCE_BUNDLE_UNAVAILABLE -D Xcode -serialize-debugging-options -enable-experimental-feature DebugDescriptionMacro -empty-abi-descriptor -external-plugin-path /usr/lib/swift/host/plugins/testing\#/usr/bin/swift-plugin-server -validate-clang-modules-once -clang-build-session-file /host/spi-builder-workspace/.build/out/ModuleCache.noindex/Session.modulevalidation -Xcc -working-directory -Xcc /host -resource-dir /root/.swiftpm/swift-sdks/swift-6.4.x-DEVELOPMENT-SNAPSHOT-2026-09-04-a_wasm.artifactbundle/swift-6.4.x-DEVELOPMENT-SNAPSHOT-2026-09-04-a_wasm/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static -use-static-resource-dir -enable-anonymous-context-mangled-names -file-compilation-dir /host -Xcc -resource-dir -Xcc /root/.swiftpm/swift-sdks/swift-6.4.x-DEVELOPMENT-SNAPSHOT-2026-09-04-a_wasm.artifactbundle/swift-6.4.x-DEVELOPMENT-SNAPSHOT-2026-09-04-a_wasm/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/clang -Xcc -D_LIBCPP_HARDENING_MODE\=_LIBCPP_HARDENING_MODE_DEBUG -Xcc -fmodules-prune-interval\=86400 -Xcc -fmodules-prune-after\=345600 -Xcc -I/host/spi-builder-workspace/.build/out/Products/Debug-webassembly-wasm32/include -Xcc -I/host/spi-builder-workspace/.build/out/Intermediates.noindex/sMock.build/Debug-webassembly-wasm32/sMock-t.build/DerivedSources-normal/wasm32 -Xcc -I/host/spi-builder-workspace/.build/out/Intermediates.noindex/sMock.build/Debug-webassembly-wasm32/sMock-t.build/DerivedSources/wasm32 -Xcc -I/host/spi-builder-workspace/.build/out/Intermediates.noindex/sMock.build/Debug-webassembly-wasm32/sMock-t.build/DerivedSources -Xcc -DSWIFT_PACKAGE -Xcc -DDEBUG\=1 -no-auto-bridging-header-chaining -module-name sMock -const-gather-protocols-file /host/spi-builder-workspace/.build/out/Intermediates.noindex/sMock.build/Debug-webassembly-wasm32/sMock-t.build/Objects-normal/wasm32/sMock_const_extract_protocols.json -in-process-plugin-server-path /usr/lib/swift/host/libSwiftInProcPluginServer.so -plugin-path /usr/lib/swift/host/plugins -plugin-path /usr/local/lib/swift/host/plugins -emit-module-doc-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/sMock.build/Debug-webassembly-wasm32/sMock-t.build/Objects-normal/wasm32/Modules/sMock.swiftdoc -emit-module-source-info-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/sMock.build/Debug-webassembly-wasm32/sMock-t.build/Objects-normal/wasm32/Modules/sMock.swiftsourceinfo -emit-objc-header-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/sMock.build/Debug-webassembly-wasm32/sMock-t.build/Objects-normal/wasm32/sMock-Swift.h -serialize-diagnostics-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/sMock.build/Debug-webassembly-wasm32/sMock-t.build/Objects-normal/wasm32/sMock-primary-emit-module.dia -emit-dependencies-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/sMock.build/Debug-webassembly-wasm32/sMock-t.build/Objects-normal/wasm32/sMock-primary-emit-module.d -parse-as-library -o /host/spi-builder-workspace/.build/out/Intermediates.noindex/sMock.build/Debug-webassembly-wasm32/sMock-t.build/Objects-normal/wasm32/Modules/sMock.swiftmodule
error: Build failed
BUILD FAILURE 6.4 wasm