Build Information
Failed to build Supabase, reference v2.55.3 (9c8c9d), with Swift 6.4 for Wasm on 2 Oct 2026 21:03:36 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-54344844-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>&1Build Log
========================================
RunAll
========================================
Builder version: 5.1.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/supabase/supabase-swift.git
Reference: v2.55.3
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/supabase/supabase-swift
* tag v2.55.3 -> FETCH_HEAD
HEAD is now at 9c8c9d2 chore(release/v2): release 2.55.3
Cloned https://github.com/supabase/supabase-swift.git
Revision (git rev-parse @):
9c8c9d283b13a369f52cc78d8639648d8a17f5d3
SPI manifest file found: $PWD/.spi.yml
SUCCESS checkout https://github.com/supabase/supabase-swift.git at v2.55.3
========================================
Build
========================================
Selected platform: wasm
Swift version: 6.4
Building package at path: $PWD
https://github.com/supabase/supabase-swift.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-54344844-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
Fetching https://github.com/krzyzanowskim/CryptoSwift.git
Fetching https://github.com/pointfreeco/swift-custom-dump
Fetching https://github.com/pointfreeco/xctest-dynamic-overlay
Fetching https://github.com/pointfreeco/swift-snapshot-testing
Fetching https://github.com/21-DOT-DEV/swift-secp256k1.git
[1/5669] Fetching swift-custom-dump
[2893/8396] Fetching swift-custom-dump, xctest-dynamic-overlay
[8397/21835] Fetching swift-custom-dump, xctest-dynamic-overlay, cryptoswift
Fetched https://github.com/pointfreeco/swift-custom-dump (0.80s)
[2862/16166] Fetching xctest-dynamic-overlay, cryptoswift
Fetching https://github.com/pointfreeco/swift-concurrency-extras
Fetched https://github.com/pointfreeco/xctest-dynamic-overlay (0.95s)
Fetching https://github.com/pointfreeco/swift-clocks
[1883/24633] Fetching cryptoswift, swift-secp256k1
[3137/25691] Fetching cryptoswift, swift-secp256k1, swift-concurrency-extras
Fetched https://github.com/pointfreeco/swift-concurrency-extras (0.56s)
[4728/41132] Fetching cryptoswift, swift-secp256k1, swift-snapshot-testing
Fetching https://github.com/apple/swift-http-types.git
[5223/42578] Fetching cryptoswift, swift-secp256k1, swift-snapshot-testing, swift-clocks
Fetched https://github.com/pointfreeco/swift-clocks (0.72s)
Fetching https://github.com/apple/swift-crypto.git
[5611/41132] Fetching cryptoswift, swift-secp256k1, swift-snapshot-testing
[12465/43071] Fetching cryptoswift, swift-secp256k1, swift-snapshot-testing, swift-http-types
Fetched https://github.com/apple/swift-http-types.git (0.76s)
[19250/41132] Fetching cryptoswift, swift-secp256k1, swift-snapshot-testing
[23038/59704] Fetching cryptoswift, swift-secp256k1, swift-snapshot-testing, swift-crypto
Fetching https://github.com/WeTransfer/Mocker
Fetched https://github.com/krzyzanowskim/CryptoSwift.git (3.73s)
[18930/46265] Fetching swift-secp256k1, swift-snapshot-testing, swift-crypto
[39810/48171] Fetching swift-secp256k1, swift-snapshot-testing, swift-crypto, mocker
Fetched https://github.com/WeTransfer/Mocker (1.21s)
[40656/46265] Fetching swift-secp256k1, swift-snapshot-testing, swift-crypto
Fetched https://github.com/apple/swift-crypto.git (3.81s)
Fetched https://github.com/21-DOT-DEV/swift-secp256k1.git (5.76s)
Fetched https://github.com/pointfreeco/swift-snapshot-testing (5.81s)
Computing version for https://github.com/krzyzanowskim/CryptoSwift.git
Computed https://github.com/krzyzanowskim/CryptoSwift.git at 1.10.0 (8.02s)
Computing version for https://github.com/21-DOT-DEV/swift-secp256k1.git
Computed https://github.com/21-DOT-DEV/swift-secp256k1.git at 0.23.2 (0.53s)
Computing version for https://github.com/WeTransfer/Mocker
Computed https://github.com/WeTransfer/Mocker at 3.0.2 (0.41s)
Computing version for https://github.com/pointfreeco/swift-concurrency-extras
Computed https://github.com/pointfreeco/swift-concurrency-extras at 1.4.1 (0.56s)
Computing version for https://github.com/apple/swift-http-types.git
Computed https://github.com/apple/swift-http-types.git at 1.8.0 (0.41s)
Computing version for https://github.com/pointfreeco/swift-clocks
Computed https://github.com/pointfreeco/swift-clocks at 1.1.1 (0.38s)
Fetching https://github.com/pointfreeco/swift-issue-reporting
[1/6170] Fetching swift-issue-reporting
Fetched https://github.com/pointfreeco/swift-issue-reporting (0.95s)
Computing version for https://github.com/pointfreeco/swift-issue-reporting
Computed https://github.com/pointfreeco/swift-issue-reporting at 2.1.1 (1.53s)
Computing version for https://github.com/pointfreeco/swift-custom-dump
Computed https://github.com/pointfreeco/swift-custom-dump at 1.7.3 (0.59s)
Computing version for https://github.com/pointfreeco/xctest-dynamic-overlay
Computed https://github.com/pointfreeco/xctest-dynamic-overlay at 1.13.1 (0.47s)
Computing version for https://github.com/pointfreeco/swift-snapshot-testing
Computed https://github.com/pointfreeco/swift-snapshot-testing at 1.19.6 (0.33s)
Fetching https://github.com/swiftlang/swift-syntax
[1/80201] Fetching swift-syntax
Fetched https://github.com/swiftlang/swift-syntax (6.96s)
Computing version for https://github.com/swiftlang/swift-syntax
Computed https://github.com/swiftlang/swift-syntax at 604.0.0 (7.72s)
Computing version for https://github.com/apple/swift-crypto.git
Computed https://github.com/apple/swift-crypto.git at 4.5.2 (0.56s)
Fetching https://github.com/apple/swift-asn1.git
[20/1986] Fetching swift-asn1
Fetched https://github.com/apple/swift-asn1.git (0.59s)
Computing version for https://github.com/apple/swift-asn1.git
Computed https://github.com/apple/swift-asn1.git at 1.7.3 (1.15s)
Creating working copy for https://github.com/21-DOT-DEV/swift-secp256k1.git
Working copy of https://github.com/21-DOT-DEV/swift-secp256k1.git resolved at 0.23.2
Creating working copy for https://github.com/swiftlang/swift-syntax
Working copy of https://github.com/swiftlang/swift-syntax resolved at 604.0.0
Creating working copy for https://github.com/apple/swift-crypto.git
Working copy of https://github.com/apple/swift-crypto.git resolved at 4.5.2
Creating working copy for https://github.com/pointfreeco/swift-concurrency-extras
Working copy of https://github.com/pointfreeco/swift-concurrency-extras resolved at 1.4.1
Creating working copy for https://github.com/pointfreeco/xctest-dynamic-overlay
Working copy of https://github.com/pointfreeco/xctest-dynamic-overlay resolved at 1.13.1
Creating working copy for https://github.com/pointfreeco/swift-snapshot-testing
Working copy of https://github.com/pointfreeco/swift-snapshot-testing resolved at 1.19.6
Creating working copy for https://github.com/WeTransfer/Mocker
Working copy of https://github.com/WeTransfer/Mocker resolved at 3.0.2
Creating working copy for https://github.com/pointfreeco/swift-issue-reporting
Working copy of https://github.com/pointfreeco/swift-issue-reporting resolved at 2.1.1
Creating working copy for https://github.com/krzyzanowskim/CryptoSwift.git
Working copy of https://github.com/krzyzanowskim/CryptoSwift.git resolved at 1.10.0
Creating working copy for https://github.com/pointfreeco/swift-custom-dump
Working copy of https://github.com/pointfreeco/swift-custom-dump resolved at 1.7.3
Creating working copy for https://github.com/apple/swift-http-types.git
Working copy of https://github.com/apple/swift-http-types.git resolved at 1.8.0
Creating working copy for https://github.com/apple/swift-asn1.git
Working copy of https://github.com/apple/swift-asn1.git resolved at 1.7.3
Creating working copy for https://github.com/pointfreeco/swift-clocks
Working copy of https://github.com/pointfreeco/swift-clocks resolved at 1.1.1
Building for debugging...
[Computing dependencies]
[Provisioning 1 / 66]
[Constructing description]
[Pre-planning 1 / 1534]
[Planning 335 / 1534]
[Planning 600 / 1534]
[Planning 791 / 1534]
[Planning 968 / 1534]
[Planning 1142 / 1534]
[Planning 1285 / 1534]
[Planning 1498 / 1534]
[Planning deferred tasks]
[Constructing 122 / 3540]
[Constructing 1718 / 3540]
[Starting]
[6 / 882]
[87 / 882] SwiftDiagnostics
[213 / 882] SwiftSyntax604
[228 / 891] SwiftSyntax604
[237 / 909] SwiftSyntax601
[237 / 909] SwiftSyntax600
[262 / 909] SwiftSyntax604
[271 / 916] SwiftSyntax510
[279 / 934] SwiftSyntax601
[281 / 961] SnapshotTesting
error: SwiftCompile normal wasm32 failed with a nonzero exit code. Command line: cd /host
/host/spi-builder-workspace/.build/checkouts/Mocker/Sources/Mocker/Mock.swift:308:42: [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m306 |[0;0m
[0;36m307 |[0;0m /// Used to compare the Mock data with the given `URLRequest`.
[0;36m308 |[0;0m static func == (mock: Mock, request: [4;39mURLRequest[0;0m) -> Bool {
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m309 |[0;0m guard let requestHTTPMethod = Mock.HTTPMethod(rawValue: request.httpMethod ?? "") else { return false }
[0;36m310 |[0;0m
/host/spi-builder-workspace/.build/checkouts/Mocker/Sources/Mocker/Mock.swift:35:46: [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m33 |[0;0m }
[0;36m34 |[0;0m
[0;36m35 |[0;0m public typealias OnRequest = (_ request: [4;39mURLRequest[0;0m, _ httpBodyArguments: [String: Any]?) -> Void
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m36 |[0;0m
[0;36m37 |[0;0m /// The type of the data which designates the Content-Type header.
/host/spi-builder-workspace/.build/checkouts/Mocker/Sources/Mocker/Mock.swift:70:25: [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m68 |[0;0m
[0;36m69 |[0;0m /// The `URLRequest` to use if you did not set a specific URL.
[0;36m70 |[0;0m public let request: [4;39mURLRequest[0;0m
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m71 |[0;0m
[0;36m72 |[0;0m /// If `true`, checking the URL will ignore the query and match only for the scheme, host and path.
/host/spi-builder-workspace/.build/checkouts/Mocker/Sources/Mocker/Mock.swift:82:23: [1;31merror: [1;39mcannot find type 'DispatchTimeInterval' in scope[0;0m
[0;36m80 |[0;0m
[0;36m81 |[0;0m /// Add a delay to a certain mock, which makes the response returned later.
[0;36m82 |[0;0m public var delay: [4;39mDispatchTimeInterval[0;0m?
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find type 'DispatchTimeInterval' in scope[0;0m
[0;36m83 |[0;0m
[0;36m84 |[0;0m /// Allow response cache.
/host/spi-builder-workspace/.build/checkouts/Mocker/Sources/Mocker/Mock.swift:85:45: [1;31merror: [1;39m'StoragePolicy' is not a member type of type 'Foundation.URLCache' (aka 'AnyObject')[0;0m
[0;36m83 |[0;0m
[0;36m84 |[0;0m /// Allow response cache.
[0;36m85 |[0;0m public var cacheStoragePolicy: [4;39mURLCache[0;0m.StoragePolicy = .notAllowed
[0;36m|[0;0m `- [1;31merror: [1;39m'StoragePolicy' is not a member type of type 'Foundation.URLCache' (aka 'AnyObject')[0;0m
[0;36m86 |[0;0m
[0;36m87 |[0;0m /// The callback which will be executed everytime this `Mock` was completed. Can be used within unit tests for validating that a request has been executed. The callback must be set before calling `register`.
/host/spi-builder-workspace/.build/checkouts/Mocker/Sources/Mocker/Mock.swift:105:31: [1;31merror: [1;39mcannot find type 'XCTestExpectation' in scope[0;0m
[0;36m103 |[0;0m
[0;36m104 |[0;0m /// Can only be set internally as it's used by the `expectationForRequestingMock(_:)` method.
[0;36m105 |[0;0m var onRequestExpectation: [4;39mXCTestExpectation[0;0m?
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find type 'XCTestExpectation' in scope[0;0m
[0;36m106 |[0;0m
[0;36m107 |[0;0m /// Can only be set internally as it's used by the `expectationForCompletingMock(_:)` method.
/host/spi-builder-workspace/.build/checkouts/Mocker/Sources/Mocker/Mock.swift:108:33: [1;31merror: [1;39mcannot find type 'XCTestExpectation' in scope[0;0m
[0;36m106 |[0;0m
[0;36m107 |[0;0m /// Can only be set internally as it's used by the `expectationForCompletingMock(_:)` method.
[0;36m108 |[0;0m var onCompletedExpectation: [4;39mXCTestExpectation[0;0m?
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find type 'XCTestExpectation' in scope[0;0m
[0;36m109 |[0;0m
[0;36m110 |[0;0m private init(url: URL? = nil, ignoreQuery: Bool = false, cacheStoragePolicy: URLCache.StoragePolicy = .notAllowed, contentType: DataType? = nil, statusCode: Int, data: [HTTPMethod: Data], requestError: Error? = nil, additionalHeaders: [String: String] = [:], fileExtensions: [String]? = nil) {
/host/spi-builder-workspace/.build/checkouts/Mocker/Sources/Mocker/Mock.swift:110:91: [1;31merror: [1;39m'StoragePolicy' is not a member type of type 'Foundation.URLCache' (aka 'AnyObject')[0;0m
[0;36m108 |[0;0m var onCompletedExpectation: XCTestExpectation?
[0;36m109 |[0;0m
[0;36m110 |[0;0m private init(url: URL? = nil, ignoreQuery: Bool = false, cacheStoragePolicy: [4;39mURLCache[0;0m.StoragePolicy = .notAllowed, contentType: DataType? = nil, statusCode: Int, data: [HTTPMethod: Data], requestError: Error? = nil, additionalHeaders: [String: String] = [:], fileExtensions: [String]? = nil) {
[0;36m|[0;0m `- [1;31merror: [1;39m'StoragePolicy' is not a member type of type 'Foundation.URLCache' (aka 'AnyObject')[0;0m
[0;36m111 |[0;0m guard data.count > 0 else {
[0;36m112 |[0;0m preconditionFailure("At least one entry is required in the data dictionary")
/host/spi-builder-workspace/.build/checkouts/Mocker/Sources/Mocker/Mock.swift:186:83: [1;31merror: [1;39m'StoragePolicy' is not a member type of type 'Foundation.URLCache' (aka 'AnyObject')[0;0m
[0;36m184 |[0;0m /// - requestError: If provided, the URLSession will report the passed error rather than returning data. Defaults to `nil`.
[0;36m185 |[0;0m @available(*, deprecated, renamed: "init(url:ignoreQuery:cacheStoragePolicy:contentType:statusCode:data:additionalHeaders:requestError:)")
[0;36m186 |[0;0m public init(url: URL, ignoreQuery: Bool = false, cacheStoragePolicy: [4;39mURLCache[0;0m.StoragePolicy = .notAllowed, dataType: DataType, statusCode: Int, data: [HTTPMethod: Data], additionalHeaders: [String: String] = [:], requestError: Error? = nil) {
[0;36m|[0;0m `- [1;31merror: [1;39m'StoragePolicy' is not a member type of type 'Foundation.URLCache' (aka 'AnyObject')[0;0m
[0;36m187 |[0;0m self.init(
[0;36m188 |[0;0m url: url,
/host/spi-builder-workspace/.build/checkouts/Mocker/Sources/Mocker/Mock.swift:211:83: [1;31merror: [1;39m'StoragePolicy' is not a member type of type 'Foundation.URLCache' (aka 'AnyObject')[0;0m
[0;36m209 |[0;0m /// - additionalHeaders: Additional headers to be added to the response.
[0;36m210 |[0;0m /// - requestError: If provided, the URLSession will report the passed error rather than returning data. Defaults to `nil`.
[0;36m211 |[0;0m public init(url: URL, ignoreQuery: Bool = false, cacheStoragePolicy: [4;39mURLCache[0;0m.StoragePolicy = .notAllowed, contentType: DataType? = nil, statusCode: Int, data: [HTTPMethod: Data], additionalHeaders: [String: String] = [:], requestError: Error? = nil) {
[0;36m|[0;0m `- [1;31merror: [1;39m'StoragePolicy' is not a member type of type 'Foundation.URLCache' (aka 'AnyObject')[0;0m
[0;36m212 |[0;0m self.init(
[0;36m213 |[0;0m url: url,
/host/spi-builder-workspace/.build/checkouts/Mocker/Sources/Mocker/Mock.swift:275:26: [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m273 |[0;0m /// - additionalHeaders: Additional headers to be added to the response.
[0;36m274 |[0;0m /// - requestError: If provided, the URLSession will report the passed error rather than returning data. Defaults to `nil`.
[0;36m275 |[0;0m public init(request: [4;39mURLRequest[0;0m, ignoreQuery: Bool = false, cacheStoragePolicy: URLCache.StoragePolicy = .notAllowed, contentType: DataType? = nil, statusCode: Int, data: Data = Data(), additionalHeaders: [String: String] = [:], requestError: Error? = nil) {
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m276 |[0;0m guard let requestHTTPMethod = Mock.HTTPMethod(rawValue: request.httpMethod ?? "") else {
[0;36m277 |[0;0m preconditionFailure("Unexpected http method")
/host/spi-builder-workspace/.build/checkouts/Mocker/Sources/Mocker/Mock.swift:275:94: [1;31merror: [1;39m'StoragePolicy' is not a member type of type 'Foundation.URLCache' (aka 'AnyObject')[0;0m
[0;36m273 |[0;0m /// - additionalHeaders: Additional headers to be added to the response.
[0;36m274 |[0;0m /// - requestError: If provided, the URLSession will report the passed error rather than returning data. Defaults to `nil`.
[0;36m275 |[0;0m public init(request: URLRequest, ignoreQuery: Bool = false, cacheStoragePolicy: [4;39mURLCache[0;0m.StoragePolicy = .notAllowed, contentType: DataType? = nil, statusCode: Int, data: Data = Data(), additionalHeaders: [String: String] = [:], requestError: Error? = nil) {
[0;36m|[0;0m `- [1;31merror: [1;39m'StoragePolicy' is not a member type of type 'Foundation.URLCache' (aka 'AnyObject')[0;0m
[0;36m276 |[0;0m guard let requestHTTPMethod = Mock.HTTPMethod(rawValue: request.httpMethod ?? "") else {
[0;36m277 |[0;0m preconditionFailure("Unexpected http method")
/host/spi-builder-workspace/.build/checkouts/Mocker/Sources/Mocker/Mock.swift:302:28: [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m300 |[0;0m /// - Parameter request: The request to match data for.
[0;36m301 |[0;0m /// - Returns: The `Data` which matches the request. Will be `nil` if no data is registered for the request `HTTPMethod`.
[0;36m302 |[0;0m func data(for request: [4;39mURLRequest[0;0m) -> Data? {
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m303 |[0;0m guard let requestHTTPMethod = Mock.HTTPMethod(rawValue: request.httpMethod ?? "") else { return nil }
[0;36m304 |[0;0m return data[requestHTTPMethod]
/host/spi-builder-workspace/.build/checkouts/Mocker/Sources/Mocker/OnRequestHandler.swift:19:47: [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m17 |[0;0m public typealias OnRequest<HTTPBody> = (_ request: URLRequest, _ httpBody: HTTPBody?) -> Void
[0;36m18 |[0;0m
[0;36m19 |[0;0m private let internalCallback: (_ request: [4;39mURLRequest[0;0m) -> Void
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m20 |[0;0m let legacyCallback: Mock.OnRequest?
[0;36m21 |[0;0m
/host/spi-builder-workspace/.build/checkouts/Mocker/Sources/Mocker/Mocker.swift:75:25: [1;31merror: [1;39mcannot find 'DispatchQueue' in scope[0;0m
[0;36m73 |[0;0m
[0;36m74 |[0;0m /// For Thread Safety access.
[0;36m75 |[0;0m private let queue = [4;39mDispatchQueue[0;0m(label: "mocker.mocks.access.queue", attributes: .concurrent)
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find 'DispatchQueue' in scope[0;0m
[0;36m76 |[0;0m
[0;36m77 |[0;0m private init() {
/host/spi-builder-workspace/.build/checkouts/Mocker/Sources/Mocker/Mocker.swift:108:48: [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m106 |[0;0m /// - Parameter url: The URL to check for.
[0;36m107 |[0;0m /// - Returns: `true` if it should be mocked, `false` if the URL is registered as ignored.
[0;36m108 |[0;0m public static func shouldHandle(_ request: [4;39mURLRequest[0;0m) -> Bool {
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m109 |[0;0m switch mode {
[0;36m110 |[0;0m case .optout:
/host/spi-builder-workspace/.build/checkouts/Mocker/Sources/Mocker/Mocker.swift:132:35: [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m130 |[0;0m /// - Parameter request: The request to search for a mock.
[0;36m131 |[0;0m /// - Returns: A mock if found, `nil` if there's no mocked data registered for the given request.
[0;36m132 |[0;0m static func mock(for request: [4;39mURLRequest[0;0m) -> Mock? {
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m133 |[0;0m shared.queue.sync {
[0;36m134 |[0;0m /// First check for specific URLs
/host/spi-builder-workspace/.build/checkouts/Mocker/Sources/Mocker/MockingURLProtocol.swift:35:35: [1;31merror: [1;39mcannot find type 'DispatchWorkItem' in scope[0;0m
[0;36m33 |[0;0m }
[0;36m34 |[0;0m
[0;36m35 |[0;0m private var responseWorkItem: [4;39mDispatchWorkItem[0;0m?
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find type 'DispatchWorkItem' in scope[0;0m
[0;36m36 |[0;0m
[0;36m37 |[0;0m /// Returns Mocked data based on the mocks register in the `Mocker`. Will end up in an error when no Mock data is found for the request.
/host/spi-builder-workspace/.build/checkouts/Mocker/Sources/Mocker/MockingURLProtocol.swift:38:26: [1;31merror: [1;39mmethod does not override any method from its superclass[0;0m
[0;36m36 |[0;0m
[0;36m37 |[0;0m /// Returns Mocked data based on the mocks register in the `Mocker`. Will end up in an error when no Mock data is found for the request.
[0;36m38 |[0;0m [4;39moverride[0;0m public func startLoading() {
[0;36m|[0;0m `- [1;31merror: [1;39mmethod does not override any method from its superclass[0;0m
[0;36m39 |[0;0m guard
[0;36m40 |[0;0m let mock = Mocker.mock(for: request),
/host/spi-builder-workspace/.build/checkouts/Mocker/Sources/Mocker/MockingURLProtocol.swift:67:70: [1;31merror: [1;39m'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m65 |[0;0m }
[0;36m66 |[0;0m
[0;36m67 |[0;0m private func finishRequest(for mock: Mock, data: Data, response: [4;39mHTTPURLResponse[0;0m) {
[0;36m|[0;0m `- [1;31merror: [1;39m'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m68 |[0;0m if let redirectLocation = data.redirectLocation {
[0;36m69 |[0;0m self.client?.urlProtocol(self, wasRedirectedTo: URLRequest(url: redirectLocation), redirectResponse: response)
Foundation.HTTPURLResponse:2:18: [1;39mnote: [1;39m'HTTPURLResponse' has been explicitly marked unavailable here[0;0m
[0;36m1 |[0;0m @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
[0;36m2 |[0;0m public typealias HTTPURLResponse = AnyObject
[0;36m|[0;0m `- [1;39mnote: [1;39m'HTTPURLResponse' has been explicitly marked unavailable here[0;0m
/host/spi-builder-workspace/.build/checkouts/Mocker/Sources/Mocker/MockingURLProtocol.swift:83:26: [1;31merror: [1;39mmethod does not override any method from its superclass[0;0m
[0;36m81 |[0;0m
[0;36m82 |[0;0m /// Implementation does nothing, but is needed for a valid inheritance of URLProtocol.
[0;36m83 |[0;0m [4;39moverride[0;0m public func stopLoading() {
[0;36m|[0;0m `- [1;31merror: [1;39mmethod does not override any method from its superclass[0;0m
[0;36m84 |[0;0m responseWorkItem?.cancel()
[0;36m85 |[0;0m }
/host/spi-builder-workspace/.build/checkouts/Mocker/Sources/Mocker/MockingURLProtocol.swift:88:77: [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m86 |[0;0m
[0;36m87 |[0;0m /// Simply sends back the passed request. Implementation is needed for a valid inheritance of URLProtocol.
[0;36m88 |[0;0m override public class func canonicalRequest(for request: URLRequest) -> [4;39mURLRequest[0;0m {
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m89 |[0;0m return request
[0;36m90 |[0;0m }
/host/spi-builder-workspace/.build/checkouts/Mocker/Sources/Mocker/MockingURLProtocol.swift:88:62: [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m86 |[0;0m
[0;36m87 |[0;0m /// Simply sends back the passed request. Implementation is needed for a valid inheritance of URLProtocol.
[0;36m88 |[0;0m override public class func canonicalRequest(for request: [4;39mURLRequest[0;0m) -> URLRequest {
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m89 |[0;0m return request
[0;36m90 |[0;0m }
/host/spi-builder-workspace/.build/checkouts/Mocker/Sources/Mocker/MockingURLProtocol.swift:93:54: [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m91 |[0;0m
[0;36m92 |[0;0m /// Overrides needed to define a valid inheritance of URLProtocol.
[0;36m93 |[0;0m override public class func canInit(with request: [4;39mURLRequest[0;0m) -> Bool {
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m94 |[0;0m return Mocker.shouldHandle(request)
[0;36m95 |[0;0m }
/host/spi-builder-workspace/.build/checkouts/Mocker/Sources/Mocker/MockingURLProtocol.swift:15:32: [1;31merror: [1;39m'URLProtocol' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m13 |[0;0m
[0;36m14 |[0;0m /// The protocol which can be used to send Mocked data back. Use the `Mocker` to register `Mock` data
[0;36m15 |[0;0m open class MockingURLProtocol: [4;39mURLProtocol[0;0m {
[0;36m|[0;0m `- [1;31merror: [1;39m'URLProtocol' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m16 |[0;0m
[0;36m17 |[0;0m enum Error: Swift.Error, LocalizedError, CustomDebugStringConvertible {
Foundation.URLProtocol:2:18: [1;39mnote: [1;39m'URLProtocol' has been explicitly marked unavailable here[0;0m
[0;36m1 |[0;0m @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
[0;36m2 |[0;0m public typealias URLProtocol = AnyObject
[0;36m|[0;0m `- [1;39mnote: [1;39m'URLProtocol' has been explicitly marked unavailable here[0;0m
/host/spi-builder-workspace/.build/checkouts/Mocker/Sources/Mocker/OnRequestHandler.swift:17:56: [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m15 |[0;0m public struct OnRequestHandler {
[0;36m16 |[0;0m
[0;36m17 |[0;0m public typealias OnRequest<HTTPBody> = (_ request: [4;39mURLRequest[0;0m, _ httpBody: HTTPBody?) -> Void
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m18 |[0;0m
[0;36m19 |[0;0m private let internalCallback: (_ request: URLRequest) -> Void
/host/spi-builder-workspace/.build/checkouts/Mocker/Sources/Mocker/OnRequestHandler.swift:26:78: [1;31merror: [1;39m'@escaping' only applies to function types[0;0m
[0;36m24 |[0;0m /// - httpBodyType: The decodable type to use for parsing the request body.
[0;36m25 |[0;0m /// - callback: The callback which will be called just before the request executes.
[0;36m26 |[0;0m public init<HTTPBody: Decodable>(httpBodyType: HTTPBody.Type?, callback: @escaping OnRequest<HTTPBody>) {
[0;36m|[0;0m `- [1;31merror: [1;39m'@escaping' only applies to function types[0;0m
[0;36m27 |[0;0m self.internalCallback = { request in
[0;36m28 |[0;0m guard
/host/spi-builder-workspace/.build/checkouts/Mocker/Sources/Mocker/OnRequestHandler.swift:42:56: [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m40 |[0;0m /// Creates a new request handler using the given callback to call on request without parsing the body arguments.
[0;36m41 |[0;0m /// - Parameter requestCallback: The callback which will be executed just before the request executes, containing the request.
[0;36m42 |[0;0m public init(requestCallback: @escaping (_ request: [4;39mURLRequest[0;0m) -> Void) {
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m43 |[0;0m self.internalCallback = requestCallback
[0;36m44 |[0;0m legacyCallback = nil
/host/spi-builder-workspace/.build/checkouts/Mocker/Sources/Mocker/OnRequestHandler.swift:58:64: [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m56 |[0;0m /// Creates a new request handler using the given callback to call on request.
[0;36m57 |[0;0m /// - Parameter jsonDictionaryCallback: The callback that executes just before the request executes, containing the HTTP Body Arguments as a JSON Object Dictionary.
[0;36m58 |[0;0m public init(jsonDictionaryCallback: @escaping ((_ request: [4;39mURLRequest[0;0m, _ httpBodyArguments: [String: Any]?) -> Void)) {
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m59 |[0;0m self.internalCallback = { request in
[0;36m60 |[0;0m guard
/host/spi-builder-workspace/.build/checkouts/Mocker/Sources/Mocker/OnRequestHandler.swift:58:41: [1;31merror: [1;39m'@escaping' only applies to function types[0;0m
[0;36m56 |[0;0m /// Creates a new request handler using the given callback to call on request.
[0;36m57 |[0;0m /// - Parameter jsonDictionaryCallback: The callback that executes just before the request executes, containing the HTTP Body Arguments as a JSON Object Dictionary.
[0;36m58 |[0;0m public init(jsonDictionaryCallback: @escaping ((_ request: URLRequest, _ httpBodyArguments: [String: Any]?) -> Void)) {
[0;36m|[0;0m `- [1;31merror: [1;39m'@escaping' only applies to function types[0;0m
[0;36m59 |[0;0m self.internalCallback = { request in
[0;36m60 |[0;0m guard
/host/spi-builder-workspace/.build/checkouts/Mocker/Sources/Mocker/OnRequestHandler.swift:74:59: [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m72 |[0;0m /// Creates a new request handler using the given callback to call on request.
[0;36m73 |[0;0m /// - Parameter jsonDictionaryCallback: The callback that executes just before the request executes, containing the HTTP Body Arguments as a JSON Object Array.
[0;36m74 |[0;0m public init(jsonArrayCallback: @escaping ((_ request: [4;39mURLRequest[0;0m, _ httpBodyArguments: [[String: Any]]?) -> Void)) {
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m75 |[0;0m self.internalCallback = { request in
[0;36m76 |[0;0m guard
/host/spi-builder-workspace/.build/checkouts/Mocker/Sources/Mocker/OnRequestHandler.swift:74:36: [1;31merror: [1;39m'@escaping' only applies to function types[0;0m
[0;36m72 |[0;0m /// Creates a new request handler using the given callback to call on request.
[0;36m73 |[0;0m /// - Parameter jsonDictionaryCallback: The callback that executes just before the request executes, containing the HTTP Body Arguments as a JSON Object Array.
[0;36m74 |[0;0m public init(jsonArrayCallback: @escaping ((_ request: URLRequest, _ httpBodyArguments: [[String: Any]]?) -> Void)) {
[0;36m|[0;0m `- [1;31merror: [1;39m'@escaping' only applies to function types[0;0m
[0;36m75 |[0;0m self.internalCallback = { request in
[0;36m76 |[0;0m guard
/host/spi-builder-workspace/.build/checkouts/Mocker/Sources/Mocker/OnRequestHandler.swift:102:35: [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m100 |[0;0m }
[0;36m101 |[0;0m
[0;36m102 |[0;0m func handleRequest(_ request: [4;39mURLRequest[0;0m) {
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m103 |[0;0m internalCallback(request)
[0;36m104 |[0;0m }
/host/spi-builder-workspace/.build/checkouts/Mocker/Sources/Mocker/OnRequestHandler.swift:107:19: [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m105 |[0;0m }
[0;36m106 |[0;0m
[0;36m107 |[0;0m private extension [4;39mURLRequest[0;0m {
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m108 |[0;0m /// We need to use the http body stream data as the URLRequest once launched converts the `httpBody` to this stream of data.
[0;36m109 |[0;0m func httpBodyStreamData() -> Data? {
/host/spi-builder-workspace/.build/checkouts/Mocker/Sources/Mocker/XCTest+Mocker.swift:13:62: [1;31merror: [1;39mcannot find type 'XCTestExpectation' in scope[0;0m
[0;36m11 |[0;0m
[0;36m12 |[0;0m public extension XCTestCase {
[0;36m13 |[0;0m func expectationForRequestingMock(_ mock: inout Mock) -> [4;39mXCTestExpectation[0;0m {
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find type 'XCTestExpectation' in scope[0;0m
[0;36m14 |[0;0m let mockExpectation = expectation(description: "\(mock) should be requested")
[0;36m15 |[0;0m mock.onRequestExpectation = mockExpectation
/host/spi-builder-workspace/.build/checkouts/Mocker/Sources/Mocker/XCTest+Mocker.swift:19:62: [1;31merror: [1;39mcannot find type 'XCTestExpectation' in scope[0;0m
[0;36m17 |[0;0m }
[0;36m18 |[0;0m
[0;36m19 |[0;0m func expectationForCompletingMock(_ mock: inout Mock) -> [4;39mXCTestExpectation[0;0m {
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find type 'XCTestExpectation' in scope[0;0m
[0;36m20 |[0;0m let mockExpectation = expectation(description: "\(mock) should be finishing")
[0;36m21 |[0;0m mock.onCompletedExpectation = mockExpectation
Failed frontend command:
/usr/bin/swift-frontend -frontend -emit-module -experimental-skip-non-inlinable-function-bodies-without-types /host/spi-builder-workspace/.build/checkouts/Mocker/Sources/Mocker/Mock+DataType.swift /host/spi-builder-workspace/.build/checkouts/Mocker/Sources/Mocker/Mock.swift /host/spi-builder-workspace/.build/checkouts/Mocker/Sources/Mocker/Mocker.swift /host/spi-builder-workspace/.build/checkouts/Mocker/Sources/Mocker/MockingURLProtocol.swift /host/spi-builder-workspace/.build/checkouts/Mocker/Sources/Mocker/OnRequestHandler.swift /host/spi-builder-workspace/.build/checkouts/Mocker/Sources/Mocker/XCTest+Mocker.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 -suppress-warnings -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/Mocker.build/Debug-webassembly-wasm32/Mocker-t.build/DerivedSources-normal/wasm32 -Xcc -I/host/spi-builder-workspace/.build/out/Intermediates.noindex/Mocker.build/Debug-webassembly-wasm32/Mocker-t.build/DerivedSources/wasm32 -Xcc -I/host/spi-builder-workspace/.build/out/Intermediates.noindex/Mocker.build/Debug-webassembly-wasm32/Mocker-t.build/DerivedSources -Xcc -DSWIFT_PACKAGE -Xcc -DDEBUG\=1 -no-auto-bridging-header-chaining -module-name Mocker -const-gather-protocols-file /host/spi-builder-workspace/.build/out/Intermediates.noindex/Mocker.build/Debug-webassembly-wasm32/Mocker-t.build/Objects-normal/wasm32/Mocker_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/Mocker.build/Debug-webassembly-wasm32/Mocker-t.build/Objects-normal/wasm32/Modules/Mocker.swiftdoc -emit-module-source-info-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/Mocker.build/Debug-webassembly-wasm32/Mocker-t.build/Objects-normal/wasm32/Modules/Mocker.swiftsourceinfo -emit-objc-header-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/Mocker.build/Debug-webassembly-wasm32/Mocker-t.build/Objects-normal/wasm32/Mocker-Swift.h -serialize-diagnostics-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/Mocker.build/Debug-webassembly-wasm32/Mocker-t.build/Objects-normal/wasm32/Mocker-primary-emit-module.dia -emit-dependencies-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/Mocker.build/Debug-webassembly-wasm32/Mocker-t.build/Objects-normal/wasm32/Mocker-primary-emit-module.d -parse-as-library -o /host/spi-builder-workspace/.build/out/Intermediates.noindex/Mocker.build/Debug-webassembly-wasm32/Mocker-t.build/Objects-normal/wasm32/Modules/Mocker.swiftmodule
error: Build failed
BUILD FAILURE 6.4 wasm