Build Information
Failed to build EazyRestClient, reference 1.1.0 (2c5166), with Swift 6.2 for Wasm on 19 Dec 2025 07:10:13 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4606859-2":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/finestructure/spi-images:wasm-6.2-latest swift build --swift-sdk wasm32-unknown-wasip1 2>&1Build Log
========================================
RunAll
========================================
Builder version: 4.68.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/nissaba/EazyRestClient.git
Reference: 1.1.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/nissaba/EazyRestClient
* tag 1.1.0 -> FETCH_HEAD
HEAD is now at 2c51663 github not taking swift 6.1
Cloned https://github.com/nissaba/EazyRestClient.git
Revision (git rev-parse @):
2c51663d28f7c87b81fa920c2448403babdd5814
SUCCESS checkout https://github.com/nissaba/EazyRestClient.git at 1.1.0
========================================
Build
========================================
Selected platform: wasm
Swift version: 6.2
Building package at path: $PWD
https://github.com/nissaba/EazyRestClient.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-2":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/finestructure/spi-images:wasm-6.2-latest swift build --swift-sdk wasm32-unknown-wasip1 2>&1
wasm-6.2-latest: Pulling from finestructure/spi-images
Digest: sha256:ea378e7d7954b9ce813c0ebc8f6bc113436e2b3d5aa4fd45225da8bf07e6be73
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:wasm-6.2-latest
warning: multiple Swift SDKs match target triple `wasm32-unknown-wasip1` and host triple x86_64-unknown-linux-gnu, selected one at /root/.swiftpm/swift-sdks/swift-6.2-RELEASE_wasm.artifactbundle/swift-6.2-RELEASE_wasm/wasm32-unknown-wasip1/swift-sdk.json
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-24593BA9C3E375BF.txt
[3/10] Compiling EazyRestClient EazyRestRequest.swift
[4/11] Compiling EazyRestClient EazyRestRequest+defaults.swift
[5/11] Compiling EazyRestClient HTTPMethods.swift
[6/11] Compiling EazyRestClient Decodable+EasyRest.swift
[7/11] Compiling EazyRestClient EasyRestDefaultResponse.swift
[8/11] Compiling EazyRestClient EasyRestClient.swift
/host/spi-builder-workspace/Sources/EasyRestClient/EasyRestClient.swift:39:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
37 | /// Handles request building, header injection, and response decoding.
38 | public class EazyRestClient {
39 | private let session: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
40 | private let baseURL: URL
41 |
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/EasyRestClient/EasyRestClient.swift:49:43: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
47 | /// - baseURL: The root endpoint for all requests (e.g. "https://api.example.com/").
48 | /// - session: URLSession instance to use; defaults to `URLSession.shared`.
49 | public init(baseURL: String, session: URLSession = .shared) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
50 | guard let url = URL(string: baseURL) else {
51 | fatalError("Invalid base URL: \(baseURL)")
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/EasyRestClient/EasyRestClient.swift:49:57: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
47 | /// - baseURL: The root endpoint for all requests (e.g. "https://api.example.com/").
48 | /// - session: URLSession instance to use; defaults to `URLSession.shared`.
49 | public init(baseURL: String, session: URLSession = .shared) {
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
50 | guard let url = URL(string: baseURL) else {
51 | fatalError("Invalid base URL: \(baseURL)")
/host/spi-builder-workspace/Sources/EasyRestClient/EasyRestClient.swift:49:57: error: value of type '_' expected to be instance of class or class-constrained type
47 | /// - baseURL: The root endpoint for all requests (e.g. "https://api.example.com/").
48 | /// - session: URLSession instance to use; defaults to `URLSession.shared`.
49 | public init(baseURL: String, session: URLSession = .shared) {
| `- error: value of type '_' expected to be instance of class or class-constrained type
50 | guard let url = URL(string: baseURL) else {
51 | fatalError("Invalid base URL: \(baseURL)")
/host/spi-builder-workspace/Sources/EasyRestClient/EasyRestClient.swift:141:17: error: cannot find type 'URLRequest' in scope
139 | private func buildURLRequest<Request: EazyRestRequest>(
140 | for request: Request
141 | ) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
142 | guard var components = URLComponents(
143 | url: baseURL.appendingPathComponent(request.resourceName),
/host/spi-builder-workspace/Sources/EasyRestClient/EasyRestClient.swift:67:25: error: cannot find type 'URLRequest' in scope
65 | completion: @escaping ResultCallback<Request.Response>
66 | ) {
67 | let urlRequest: URLRequest
| `- error: cannot find type 'URLRequest' in scope
68 | do {
69 | urlRequest = try buildURLRequest(for: request)
/host/spi-builder-workspace/Sources/EasyRestClient/EasyRestClient.swift:71:13: error: cannot find 'DispatchQueue' in scope
69 | urlRequest = try buildURLRequest(for: request)
70 | } catch {
71 | DispatchQueue.main.async {
| `- error: cannot find 'DispatchQueue' in scope
72 | completion(.failure(error))
73 | }
/host/spi-builder-workspace/Sources/EasyRestClient/EasyRestClient.swift:79:24: error: cannot find 'DispatchQueue' in scope
77 | let task = session.dataTask(with: urlRequest) { data, response, error in
78 | if let error = error {
79 | return DispatchQueue.main.async {
| `- error: cannot find 'DispatchQueue' in scope
80 | completion(.failure(EazyRestError.transportError(error)))
81 | }
/host/spi-builder-workspace/Sources/EasyRestClient/EasyRestClient.swift:84:24: error: cannot find 'DispatchQueue' in scope
82 | }
83 | guard let http = response as? HTTPURLResponse else {
84 | return DispatchQueue.main.async {
| `- error: cannot find 'DispatchQueue' in scope
85 | completion(.failure(EazyRestError.badResponse))
86 | }
/host/spi-builder-workspace/Sources/EasyRestClient/EasyRestClient.swift:89:24: error: cannot find 'DispatchQueue' in scope
87 | }
88 | guard (200..<300).contains(http.statusCode) else {
89 | return DispatchQueue.main.async {
| `- error: cannot find 'DispatchQueue' in scope
90 | completion(.failure(EazyRestError.serverError(http.statusCode)))
91 | }
/host/spi-builder-workspace/Sources/EasyRestClient/EasyRestClient.swift:94:24: error: cannot find 'DispatchQueue' in scope
92 | }
93 | guard let data = data else {
94 | return DispatchQueue.main.async {
| `- error: cannot find 'DispatchQueue' in scope
95 | completion(.failure(EazyRestError.badResponse))
96 | }
/host/spi-builder-workspace/Sources/EasyRestClient/EasyRestClient.swift:100:17: error: cannot find 'DispatchQueue' in scope
98 | do {
99 | let decoded = try JSONDecoder().decode(Request.Response.self, from: data)
100 | DispatchQueue.main.async {
| `- error: cannot find 'DispatchQueue' in scope
101 | completion(.success(decoded))
102 | }
/host/spi-builder-workspace/Sources/EasyRestClient/EasyRestClient.swift:104:17: error: cannot find 'DispatchQueue' in scope
102 | }
103 | } catch {
104 | DispatchQueue.main.async {
| `- error: cannot find 'DispatchQueue' in scope
105 | completion(.failure(EazyRestError.decodingError(error)))
106 | }
/host/spi-builder-workspace/Sources/EasyRestClient/EasyRestClient.swift:77:28: error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
75 | }
76 |
77 | let task = session.dataTask(with: urlRequest) { data, response, error in
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
78 | if let error = error {
79 | return DispatchQueue.main.async {
/host/spi-builder-workspace/Sources/EasyRestClient/EasyRestClient.swift:123:50: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
121 | ) async throws -> Request.Response {
122 | let urlRequest = try buildURLRequest(for: request)
123 | let (data, response) = try await session.data(for: urlRequest)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
124 |
125 | guard let http = response as? HTTPURLResponse,
/host/spi-builder-workspace/Sources/EasyRestClient/EasyRestClient.swift:127:77: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
125 | guard let http = response as? HTTPURLResponse,
126 | (200..<300).contains(http.statusCode) else {
127 | throw EazyRestError.serverError((response as? HTTPURLResponse)?.statusCode ?? -1)
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
128 | }
129 |
/host/spi-builder-workspace/Sources/EasyRestClient/EasyRestClient.swift:154:26: error: cannot find 'URLRequest' in scope
152 | throw EazyRestError.invalidURL
153 | }
154 | var urlRequest = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
155 | urlRequest.httpMethod = request.httpMethod.rawValue
156 | urlRequest.httpShouldHandleCookies = false
error: emit-module command failed with exit code 1 (use -v to see invocation)
[9/11] Emitting module EazyRestClient
/host/spi-builder-workspace/Sources/EasyRestClient/EasyRestClient.swift:39:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
37 | /// Handles request building, header injection, and response decoding.
38 | public class EazyRestClient {
39 | private let session: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
40 | private let baseURL: URL
41 |
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/EasyRestClient/EasyRestClient.swift:49:43: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
47 | /// - baseURL: The root endpoint for all requests (e.g. "https://api.example.com/").
48 | /// - session: URLSession instance to use; defaults to `URLSession.shared`.
49 | public init(baseURL: String, session: URLSession = .shared) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
50 | guard let url = URL(string: baseURL) else {
51 | fatalError("Invalid base URL: \(baseURL)")
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/EasyRestClient/EasyRestClient.swift:49:57: error: value of type '_' expected to be instance of class or class-constrained type
47 | /// - baseURL: The root endpoint for all requests (e.g. "https://api.example.com/").
48 | /// - session: URLSession instance to use; defaults to `URLSession.shared`.
49 | public init(baseURL: String, session: URLSession = .shared) {
| `- error: value of type '_' expected to be instance of class or class-constrained type
50 | guard let url = URL(string: baseURL) else {
51 | fatalError("Invalid base URL: \(baseURL)")
/host/spi-builder-workspace/Sources/EasyRestClient/EasyRestClient.swift:49:57: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
47 | /// - baseURL: The root endpoint for all requests (e.g. "https://api.example.com/").
48 | /// - session: URLSession instance to use; defaults to `URLSession.shared`.
49 | public init(baseURL: String, session: URLSession = .shared) {
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
50 | guard let url = URL(string: baseURL) else {
51 | fatalError("Invalid base URL: \(baseURL)")
/host/spi-builder-workspace/Sources/EasyRestClient/EasyRestClient.swift:141:17: error: cannot find type 'URLRequest' in scope
139 | private func buildURLRequest<Request: EazyRestRequest>(
140 | for request: Request
141 | ) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
142 | guard var components = URLComponents(
143 | url: baseURL.appendingPathComponent(request.resourceName),
[10/11] Compiling EazyRestClient EasyRestError.swift
[11/11] Compiling EazyRestClient EasyRestResponse.swift
BUILD FAILURE 6.2 wasm