Build Information
Failed to build UniRateAPI, reference v0.1.1 (e641f3), with Swift 6.1 for Wasm on 13 Oct 2026 18:49:43 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-54344849-3":/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>&1Build Log
========================================
RunAll
========================================
Builder version: 5.1.2
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/UniRate-API/unirate-api-swift.git
Reference: v0.1.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/UniRate-API/unirate-api-swift
* tag v0.1.1 -> FETCH_HEAD
HEAD is now at e641f35 Fix VAT response decoding; add live integration tests
Cloned https://github.com/UniRate-API/unirate-api-swift.git
Revision (git rev-parse @):
e641f35d82118990d530762ef4cc07263053eeae
SUCCESS checkout https://github.com/UniRate-API/unirate-api-swift.git at v0.1.1
========================================
Build
========================================
Selected platform: wasm
Swift version: 6.1
Building package at path: $PWD
https://github.com/UniRate-API/unirate-api-swift.git
https://github.com/UniRate-API/unirate-api-swift.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-54344849-3":/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:005e294ea72e7f7733559677ac003354f37dc6afb35c5bbab6bc9a95fc174f44
Status: Image is up to date for registry.gitlab.com/saguaro1/spi-images:wasm-6.1-latest
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-24593BA9C3E375BF.txt
[3/6] Compiling UniRateAPI UniRateClient.swift
/host/spi-builder-workspace/Sources/UniRateAPI/UniRateClient.swift:7:28: error: cannot find type 'URLRequest' in scope
5 |
6 | public protocol HTTPFetching: Sendable {
7 | func data(for request: URLRequest) async throws -> (Data, URLResponse)
| `- error: cannot find type 'URLRequest' in scope
8 | }
9 |
/host/spi-builder-workspace/Sources/UniRateAPI/UniRateClient.swift:7:63: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
5 |
6 | public protocol HTTPFetching: Sendable {
7 | func data(for request: URLRequest) async throws -> (Data, URLResponse)
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
8 | }
9 |
Foundation.URLResponse:2:18: note: 'URLResponse' 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 URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/UniRateAPI/UniRateClient.swift:10:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
8 | }
9 |
10 | extension URLSession: HTTPFetching {}
| `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
11 |
12 | public struct UniRateClient: Sendable {
/host/spi-builder-workspace/Sources/UniRateAPI/UniRateClient.swift:24:44: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
22 | baseURL: URL = UniRateClient.defaultBaseURL,
23 | timeout: TimeInterval = 30,
24 | session: HTTPFetching = URLSession.shared
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
25 | ) {
26 | self.apiKey = apiKey
/host/spi-builder-workspace/Sources/UniRateAPI/UniRateClient.swift:185:19: error: cannot find 'URLRequest' in scope
183 | }
184 |
185 | var req = URLRequest(url: url, timeoutInterval: timeout)
| `- error: cannot find 'URLRequest' in scope
186 | req.httpMethod = "GET"
187 | req.setValue("unirate-swift/0.1.0", forHTTPHeaderField: "User-Agent")
/host/spi-builder-workspace/Sources/UniRateAPI/UniRateClient.swift:191:23: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
189 |
190 | let data: Data
191 | let response: URLResponse
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
192 | do {
193 | (data, response) = try await session.data(for: req)
Foundation.URLResponse:2:18: note: 'URLResponse' 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 URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/UniRateAPI/UniRateClient.swift:198:35: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
196 | }
197 |
198 | guard let http = response as? HTTPURLResponse else {
| `- warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
199 | throw UniRateError.invalidResponse
200 | }
/host/spi-builder-workspace/Sources/UniRateAPI/UniRateClient.swift:198:39: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
196 | }
197 |
198 | guard let http = response as? HTTPURLResponse else {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
199 | throw UniRateError.invalidResponse
200 | }
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/UniRateAPI/UniRateClient.swift:202:21: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
200 | }
201 |
202 | switch http.statusCode {
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
203 | case 200..<300:
204 | break
/host/spi-builder-workspace/Sources/UniRateAPI/UniRateClient.swift:217:58: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
215 | default:
216 | let body = String(data: data, encoding: .utf8) ?? ""
217 | throw UniRateError.apiError(statusCode: http.statusCode, message: body)
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
218 | }
219 |
error: emit-module command failed with exit code 1 (use -v to see invocation)
[4/6] Compiling UniRateAPI Models.swift
[5/6] Emitting module UniRateAPI
/host/spi-builder-workspace/Sources/UniRateAPI/UniRateClient.swift:7:28: error: cannot find type 'URLRequest' in scope
5 |
6 | public protocol HTTPFetching: Sendable {
7 | func data(for request: URLRequest) async throws -> (Data, URLResponse)
| `- error: cannot find type 'URLRequest' in scope
8 | }
9 |
/host/spi-builder-workspace/Sources/UniRateAPI/UniRateClient.swift:7:63: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
5 |
6 | public protocol HTTPFetching: Sendable {
7 | func data(for request: URLRequest) async throws -> (Data, URLResponse)
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
8 | }
9 |
Foundation.URLResponse:2:18: note: 'URLResponse' 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 URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/UniRateAPI/UniRateClient.swift:10:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
8 | }
9 |
10 | extension URLSession: HTTPFetching {}
| `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
11 |
12 | public struct UniRateClient: Sendable {
/host/spi-builder-workspace/Sources/UniRateAPI/UniRateClient.swift:24:44: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
22 | baseURL: URL = UniRateClient.defaultBaseURL,
23 | timeout: TimeInterval = 30,
24 | session: HTTPFetching = URLSession.shared
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
25 | ) {
26 | self.apiKey = apiKey
[6/6] Compiling UniRateAPI UniRateError.swift
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-54344849-3":/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:005e294ea72e7f7733559677ac003354f37dc6afb35c5bbab6bc9a95fc174f44
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/5] Compiling UniRateAPI UniRateError.swift
[3/5] Compiling UniRateAPI UniRateClient.swift
/host/spi-builder-workspace/Sources/UniRateAPI/UniRateClient.swift:7:28: error: cannot find type 'URLRequest' in scope
5 |
6 | public protocol HTTPFetching: Sendable {
7 | func data(for request: URLRequest) async throws -> (Data, URLResponse)
| `- error: cannot find type 'URLRequest' in scope
8 | }
9 |
/host/spi-builder-workspace/Sources/UniRateAPI/UniRateClient.swift:7:63: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
5 |
6 | public protocol HTTPFetching: Sendable {
7 | func data(for request: URLRequest) async throws -> (Data, URLResponse)
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
8 | }
9 |
Foundation.URLResponse:2:18: note: 'URLResponse' 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 URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/UniRateAPI/UniRateClient.swift:10:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
8 | }
9 |
10 | extension URLSession: HTTPFetching {}
| `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
11 |
12 | public struct UniRateClient: Sendable {
/host/spi-builder-workspace/Sources/UniRateAPI/UniRateClient.swift:24:44: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
22 | baseURL: URL = UniRateClient.defaultBaseURL,
23 | timeout: TimeInterval = 30,
24 | session: HTTPFetching = URLSession.shared
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
25 | ) {
26 | self.apiKey = apiKey
/host/spi-builder-workspace/Sources/UniRateAPI/UniRateClient.swift:185:19: error: cannot find 'URLRequest' in scope
183 | }
184 |
185 | var req = URLRequest(url: url, timeoutInterval: timeout)
| `- error: cannot find 'URLRequest' in scope
186 | req.httpMethod = "GET"
187 | req.setValue("unirate-swift/0.1.0", forHTTPHeaderField: "User-Agent")
/host/spi-builder-workspace/Sources/UniRateAPI/UniRateClient.swift:191:23: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
189 |
190 | let data: Data
191 | let response: URLResponse
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
192 | do {
193 | (data, response) = try await session.data(for: req)
Foundation.URLResponse:2:18: note: 'URLResponse' 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 URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/UniRateAPI/UniRateClient.swift:198:35: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
196 | }
197 |
198 | guard let http = response as? HTTPURLResponse else {
| `- warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
199 | throw UniRateError.invalidResponse
200 | }
/host/spi-builder-workspace/Sources/UniRateAPI/UniRateClient.swift:198:39: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
196 | }
197 |
198 | guard let http = response as? HTTPURLResponse else {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
199 | throw UniRateError.invalidResponse
200 | }
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/UniRateAPI/UniRateClient.swift:202:21: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
200 | }
201 |
202 | switch http.statusCode {
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
203 | case 200..<300:
204 | break
/host/spi-builder-workspace/Sources/UniRateAPI/UniRateClient.swift:217:58: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
215 | default:
216 | let body = String(data: data, encoding: .utf8) ?? ""
217 | throw UniRateError.apiError(statusCode: http.statusCode, message: body)
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
218 | }
219 |
[4/5] Compiling UniRateAPI Models.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[5/5] Emitting module UniRateAPI
/host/spi-builder-workspace/Sources/UniRateAPI/UniRateClient.swift:7:28: error: cannot find type 'URLRequest' in scope
5 |
6 | public protocol HTTPFetching: Sendable {
7 | func data(for request: URLRequest) async throws -> (Data, URLResponse)
| `- error: cannot find type 'URLRequest' in scope
8 | }
9 |
/host/spi-builder-workspace/Sources/UniRateAPI/UniRateClient.swift:7:63: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
5 |
6 | public protocol HTTPFetching: Sendable {
7 | func data(for request: URLRequest) async throws -> (Data, URLResponse)
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
8 | }
9 |
Foundation.URLResponse:2:18: note: 'URLResponse' 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 URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/UniRateAPI/UniRateClient.swift:10:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
8 | }
9 |
10 | extension URLSession: HTTPFetching {}
| `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
11 |
12 | public struct UniRateClient: Sendable {
/host/spi-builder-workspace/Sources/UniRateAPI/UniRateClient.swift:24:44: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
22 | baseURL: URL = UniRateClient.defaultBaseURL,
23 | timeout: TimeInterval = 30,
24 | session: HTTPFetching = URLSession.shared
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
25 | ) {
26 | self.apiKey = apiKey
BUILD FAILURE 6.1 wasm