Build Information
Failed to build carsxe, reference v1.4.0 (fbc207), with Swift 6.3 for Wasm on 9 Sep 2026 12:26:37 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-53886770-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.0.2
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/carsxe/carsxe-swift-package.git
Reference: v1.4.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/carsxe/carsxe-swift-package
* tag v1.4.0 -> FETCH_HEAD
HEAD is now at fbc2071 Merge pull request #1 from carsxe/cursor/add-missing-carsxe-api-methods-e2c0
Cloned https://github.com/carsxe/carsxe-swift-package.git
Revision (git rev-parse @):
fbc20710ee38b3bd86091086e883f5e70c5ed809
SUCCESS checkout https://github.com/carsxe/carsxe-swift-package.git at v1.4.0
========================================
Build
========================================
Selected platform: wasm
Swift version: 6.3
Building package at path: $PWD
https://github.com/carsxe/carsxe-swift-package.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-53886770-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:e92e38b97676c18adb57b57429ddfb766786102cb50cb918e0d9e8055d05b35d
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
error: emit-module command failed with exit code 1 (use -v to see invocation)
[3/5] Emitting module carsxe
/host/spi-builder-workspace/Sources/carsxe/carsxe.swift:12:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
10 | private let apiKey: String
11 | private let sourceName = "swift"
12 | private let session: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
13 |
14 | public init(apiKey: String, session: URLSession = .shared) {
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/carsxe/carsxe.swift:14:42: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
12 | private let session: URLSession
13 |
14 | public init(apiKey: String, session: URLSession = .shared) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
15 | self.apiKey = apiKey
16 | self.session = session
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/carsxe/carsxe.swift:14:56: error: value of type '_' expected to be instance of class or class-constrained type
12 | private let session: URLSession
13 |
14 | public init(apiKey: String, session: URLSession = .shared) {
| `- error: value of type '_' expected to be instance of class or class-constrained type
15 | self.apiKey = apiKey
16 | self.session = session
/host/spi-builder-workspace/Sources/carsxe/carsxe.swift:14:56: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
12 | private let session: URLSession
13 |
14 | public init(apiKey: String, session: URLSession = .shared) {
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
15 | self.apiKey = apiKey
16 | self.session = session
/host/spi-builder-workspace/Sources/carsxe/carsxe.swift:67:36: error: cannot find type 'URLRequest' in scope
65 | /// Perform a request with native async URLSession on Darwin, or an async
66 | /// continuation wrapper on Linux (`FoundationNetworking`).
67 | private func data(for request: URLRequest) async throws -> (Data, URLResponse) {
| `- error: cannot find type 'URLRequest' in scope
68 | #if canImport(FoundationNetworking)
69 | try await withCheckedThrowingContinuation { continuation in
/host/spi-builder-workspace/Sources/carsxe/carsxe.swift:67:71: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
65 | /// Perform a request with native async URLSession on Darwin, or an async
66 | /// continuation wrapper on Linux (`FoundationNetworking`).
67 | private 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.
68 | #if canImport(FoundationNetworking)
69 | try await withCheckedThrowingContinuation { continuation in
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/carsxe/carsxe.swift:86:37: error: cannot find type 'URLRequest' in scope
84 | }
85 |
86 | private func perform(_ request: URLRequest) async throws -> Data {
| `- error: cannot find type 'URLRequest' in scope
87 | let data: Data
88 | let response: URLResponse
[4/5] Compiling carsxe types.swift
[5/5] Compiling carsxe carsxe.swift
/host/spi-builder-workspace/Sources/carsxe/carsxe.swift:12:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
10 | private let apiKey: String
11 | private let sourceName = "swift"
12 | private let session: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
13 |
14 | public init(apiKey: String, session: URLSession = .shared) {
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/carsxe/carsxe.swift:14:42: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
12 | private let session: URLSession
13 |
14 | public init(apiKey: String, session: URLSession = .shared) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
15 | self.apiKey = apiKey
16 | self.session = session
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/carsxe/carsxe.swift:14:56: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
12 | private let session: URLSession
13 |
14 | public init(apiKey: String, session: URLSession = .shared) {
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
15 | self.apiKey = apiKey
16 | self.session = session
/host/spi-builder-workspace/Sources/carsxe/carsxe.swift:14:56: error: value of type '_' expected to be instance of class or class-constrained type
12 | private let session: URLSession
13 |
14 | public init(apiKey: String, session: URLSession = .shared) {
| `- error: value of type '_' expected to be instance of class or class-constrained type
15 | self.apiKey = apiKey
16 | self.session = session
/host/spi-builder-workspace/Sources/carsxe/carsxe.swift:67:36: error: cannot find type 'URLRequest' in scope
65 | /// Perform a request with native async URLSession on Darwin, or an async
66 | /// continuation wrapper on Linux (`FoundationNetworking`).
67 | private func data(for request: URLRequest) async throws -> (Data, URLResponse) {
| `- error: cannot find type 'URLRequest' in scope
68 | #if canImport(FoundationNetworking)
69 | try await withCheckedThrowingContinuation { continuation in
/host/spi-builder-workspace/Sources/carsxe/carsxe.swift:67:71: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
65 | /// Perform a request with native async URLSession on Darwin, or an async
66 | /// continuation wrapper on Linux (`FoundationNetworking`).
67 | private 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.
68 | #if canImport(FoundationNetworking)
69 | try await withCheckedThrowingContinuation { continuation in
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/carsxe/carsxe.swift:86:37: error: cannot find type 'URLRequest' in scope
84 | }
85 |
86 | private func perform(_ request: URLRequest) async throws -> Data {
| `- error: cannot find type 'URLRequest' in scope
87 | let data: Data
88 | let response: URLResponse
/host/spi-builder-workspace/Sources/carsxe/carsxe.swift:82:27: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
80 | }
81 | #else
82 | try await session.data(for: request)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
83 | #endif
84 | }
/host/spi-builder-workspace/Sources/carsxe/carsxe.swift:88:23: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
86 | private func perform(_ request: URLRequest) async throws -> Data {
87 | let data: Data
88 | let response: URLResponse
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
89 | do {
90 | (data, response) = try await self.data(for: request)
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/carsxe/carsxe.swift:97:35: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
95 | }
96 |
97 | guard let http = response as? HTTPURLResponse else {
| `- warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
98 | throw CarsXEError.networkError(NSError(domain: "CarsXE", code: -1, userInfo: [NSLocalizedDescriptionKey: "Invalid response"]))
99 | }
/host/spi-builder-workspace/Sources/carsxe/carsxe.swift:97:39: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
95 | }
96 |
97 | 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.
98 | throw CarsXEError.networkError(NSError(domain: "CarsXE", code: -1, userInfo: [NSLocalizedDescriptionKey: "Invalid response"]))
99 | }
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/carsxe/carsxe.swift:101:41: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
99 | }
100 |
101 | guard (200...299).contains(http.statusCode) else {
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
102 | throw CarsXEError.httpError(statusCode: http.statusCode, data: data)
103 | }
/host/spi-builder-workspace/Sources/carsxe/carsxe.swift:102:58: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
100 |
101 | guard (200...299).contains(http.statusCode) else {
102 | throw CarsXEError.httpError(statusCode: http.statusCode, data: data)
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
103 | }
104 |
/host/spi-builder-workspace/Sources/carsxe/carsxe.swift:109:23: error: cannot find 'URLRequest' in scope
107 |
108 | private func fetch(url: URL) async throws -> [String: Any] {
109 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
110 | request.httpMethod = "GET"
111 | return try parseJSONObject(from: try await perform(request))
/host/spi-builder-workspace/Sources/carsxe/carsxe.swift:115:23: error: cannot find 'URLRequest' in scope
113 |
114 | private func post(url: URL, jsonBody: [String: Any], headers: [String: String] = [:]) async throws -> [String: Any] {
115 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
116 | request.httpMethod = "POST"
117 | request.setValue("application/json", forHTTPHeaderField: "Content-Type")
/host/spi-builder-workspace/Sources/carsxe/carsxe.swift:128:23: error: cannot find 'URLRequest' in scope
126 |
127 | private func fetchText(url: URL) async throws -> String {
128 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
129 | request.httpMethod = "GET"
130 | let data = try await perform(request)
BUILD FAILURE 6.3 wasm