The Swift Package Index logo.Swift Package Index

Build Information

Failed to build WAservix, reference v1.0.1 (26fb7f), with Swift 6.2 for Wasm on 13 Nov 2026 12:50:15 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-54344846-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.2-latest swift build --swift-sdk swift-6.2-RELEASE_wasm 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 5.1.4
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/TekservixHQ/waservix-swift.git
Reference: v1.0.1
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/TekservixHQ/waservix-swift
 * tag               v1.0.1     -> FETCH_HEAD
HEAD is now at 26fb7fb Mark JSONValue as Sendable
Cloned https://github.com/TekservixHQ/waservix-swift.git
Revision (git rev-parse @):
26fb7fba1a70188536fd75084c1b653cbfcabb8c
SPI manifest file found: $PWD/.spi.yml
SUCCESS checkout https://github.com/TekservixHQ/waservix-swift.git at v1.0.1
========================================
Build
========================================
Selected platform:         wasm
Swift version:             6.2
Building package at path:  $PWD
https://github.com/TekservixHQ/waservix-swift.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-54344846-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.2-latest swift build --swift-sdk swift-6.2-RELEASE_wasm 2>&1
wasm-6.2-latest: Pulling from saguaro1/spi-images
Digest: sha256:c060230b7064a851436b23425f977124baa85fecd3eee34dd1bad48fb18dc4fb
Status: Image is up to date for registry.gitlab.com/saguaro1/spi-images:wasm-6.2-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/5] Compiling WAservix JSONValue.swift
[4/5] Emitting module WAservix
/host/spi-builder-workspace/Sources/WAservix/WAservixClient.swift:8:39: error: cannot find type 'URLRequest' in scope
  6 | /// Sends a request and returns the raw body and response. Swap it out in tests
  7 | /// or to add your own logging, retries or proxy.
  8 | public typealias WAservixTransport = (URLRequest) async throws -> (Data, HTTPURLResponse)
    |                                       `- error: cannot find type 'URLRequest' in scope
  9 |
 10 | /// Thrown when the API answers with an error. A 503 means the device is reconnecting: retry shortly.
/host/spi-builder-workspace/Sources/WAservix/WAservixClient.swift:57:55: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 55 |
 56 |     /// Default transport built on URLSession (works on Apple platforms and Linux).
 57 |     public static func urlSessionTransport(_ session: URLSession) -> WAservixTransport {
    |                                                       `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 58 |         return { request in
 59 |             try await withCheckedThrowingContinuation { continuation in
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/WAservix/WAservixClient.swift:257:37: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
255 |     }
256 |
257 |     private func header(_ response: HTTPURLResponse, _ name: String) -> String? {
    |                                     `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
258 |         for (key, value) in response.allHeaderFields {
259 |             if let k = key as? String, k.caseInsensitiveCompare(name) == .orderedSame { return "\(value)" }
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
  |                  `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
[5/5] Compiling WAservix WAservixClient.swift
/host/spi-builder-workspace/Sources/WAservix/WAservixClient.swift:8:39: error: cannot find type 'URLRequest' in scope
  6 | /// Sends a request and returns the raw body and response. Swap it out in tests
  7 | /// or to add your own logging, retries or proxy.
  8 | public typealias WAservixTransport = (URLRequest) async throws -> (Data, HTTPURLResponse)
    |                                       `- error: cannot find type 'URLRequest' in scope
  9 |
 10 | /// Thrown when the API answers with an error. A 503 means the device is reconnecting: retry shortly.
/host/spi-builder-workspace/Sources/WAservix/WAservixClient.swift:57:55: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 55 |
 56 |     /// Default transport built on URLSession (works on Apple platforms and Linux).
 57 |     public static func urlSessionTransport(_ session: URLSession) -> WAservixTransport {
    |                                                       `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 58 |         return { request in
 59 |             try await withCheckedThrowingContinuation { continuation in
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/WAservix/WAservixClient.swift:257:37: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
255 |     }
256 |
257 |     private func header(_ response: HTTPURLResponse, _ name: String) -> String? {
    |                                     `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
258 |         for (key, value) in response.allHeaderFields {
259 |             if let k = key as? String, k.caseInsensitiveCompare(name) == .orderedSame { return "\(value)" }
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
  |                  `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/WAservix/WAservixClient.swift:53:75: error: cannot infer contextual base in reference to member 'shared'
 51 |         self.baseURL = url
 52 |         self.timeout = timeout
 53 |         self.transport = transport ?? WAservixClient.urlSessionTransport(.shared)
    |                                                                           `- error: cannot infer contextual base in reference to member 'shared'
 54 |     }
 55 |
/host/spi-builder-workspace/Sources/WAservix/WAservixClient.swift:82:19: error: cannot find 'URLRequest' in scope
 80 |             throw WAservixError(status: 0, message: "Invalid URL: \(baseURL + path)", errors: nil, body: nil, retryAfter: nil)
 81 |         }
 82 |         var req = URLRequest(url: url, timeoutInterval: timeout)
    |                   `- error: cannot find 'URLRequest' in scope
 83 |         req.httpMethod = method.uppercased()
 84 |         req.setValue("Bearer \(apiKey)", forHTTPHeaderField: "Authorization")
/host/spi-builder-workspace/Sources/WAservix/WAservixClient.swift:258:38: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
256 |
257 |     private func header(_ response: HTTPURLResponse, _ name: String) -> String? {
258 |         for (key, value) in response.allHeaderFields {
    |                                      `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
259 |             if let k = key as? String, k.caseInsensitiveCompare(name) == .orderedSame { return "\(value)" }
260 |         }
BUILD FAILURE 6.2 wasm