Build Information
Failed to build UniRateAPI, reference main (b7e889), with Swift 6.3 for Wasm on 13 Oct 2026 18:53:17 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.3-latest swift build --swift-sdk swift-6.3.2-RELEASE_wasm 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: main
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
* branch main -> FETCH_HEAD
* [new branch] main -> origin/main
HEAD is now at b7e889f Add CocoaPods podspec (UniRateAPI 0.1.1)
Cloned https://github.com/UniRate-API/unirate-api-swift.git
Revision (git rev-parse @):
b7e889fe487cbbb7b100469c8311d5f474a0cafb
SUCCESS checkout https://github.com/UniRate-API/unirate-api-swift.git at main
========================================
Build
========================================
Selected platform: wasm
Swift version: 6.3
Building package at path: $PWD
https://github.com/UniRate-API/unirate-api-swift.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.3-latest swift build --swift-sdk swift-6.3.2-RELEASE_wasm 2>&1
wasm-6.3-latest: Pulling from saguaro1/spi-images
Digest: sha256:df2e9038ff906af397ec7b7e13902ccb183f8867606bc33419e44453a9abdb4b
Status: Image is up to date for registry.gitlab.com/saguaro1/spi-images:wasm-6.3-latest
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-24593BA9C3E375BF.txt
[3/6] Compiling UniRateAPI UniRateError.swift
[4/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 [#NominalTypes]
8 | }
9 |
10 | extension URLSession: HTTPFetching {}
| `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
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 |
[#NominalTypes]: <https://docs.swift.org/compiler/documentation/diagnostics/nominal-types>
error: emit-module command failed with exit code 1 (use -v to see invocation)
[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 [#NominalTypes]
8 | }
9 |
10 | extension URLSession: HTTPFetching {}
| `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
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
[#NominalTypes]: <https://docs.swift.org/compiler/documentation/diagnostics/nominal-types>
[6/6] Compiling UniRateAPI Models.swift
BUILD FAILURE 6.3 wasm