Build Information
Failed to build RabbitMQHTTPAPIClient, reference main (28d084), with Swift 6.2 for Wasm on 11 Jul 2026 19:07:13 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-53886769-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>&1Build Log
========================================
RunAll
========================================
Builder version: 0e64495ecc1688c3b3e031a5ef1348b5c05091ae
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/michaelklishin/rabbitmq-http-api-client-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/michaelklishin/rabbitmq-http-api-client-swift
* branch main -> FETCH_HEAD
* [new branch] main -> origin/main
HEAD is now at 28d0840 Merge pull request #2 from michaelklishin/dependabot/github_actions/actions/checkout-7
Cloned https://github.com/michaelklishin/rabbitmq-http-api-client-swift.git
Revision (git rev-parse @):
28d0840cf1db4653a7f2cc65cffa53584cc24c3f
SUCCESS checkout https://github.com/michaelklishin/rabbitmq-http-api-client-swift.git at main
========================================
Build
========================================
Selected platform: wasm
Swift version: 6.2
Building package at path: $PWD
https://github.com/michaelklishin/rabbitmq-http-api-client-swift.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-53886769-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:dc8dffc38f1d92eca7ee5312617822470123661393ed20672e77964f9dcaaffb
Status: Image is up to date for registry.gitlab.com/saguaro1/spi-images:wasm-6.2-latest
Fetching https://github.com/michaelklishin/bunny-swift.git
[1/656] Fetching bunny-swift
Fetched https://github.com/michaelklishin/bunny-swift.git from cache (0.37s)
Fetching https://github.com/apple/swift-collections.git
Fetching https://github.com/apple/swift-nio-ssl.git
Fetching https://github.com/apple/swift-nio.git
[1/25985] Fetching swift-collections
[2340/41574] Fetching swift-collections, swift-nio-ssl
[10655/126114] Fetching swift-collections, swift-nio-ssl, swift-nio
Fetched https://github.com/apple/swift-collections.git from cache (3.00s)
Fetched https://github.com/apple/swift-nio-ssl.git from cache (3.00s)
Fetched https://github.com/apple/swift-nio.git from cache (3.03s)
Computing version for https://github.com/apple/swift-collections.git
Computed https://github.com/apple/swift-collections.git at 1.6.0 (3.29s)
Computing version for https://github.com/apple/swift-nio-ssl.git
Computed https://github.com/apple/swift-nio-ssl.git at 2.37.1 (0.20s)
Computing version for https://github.com/apple/swift-nio.git
Computed https://github.com/apple/swift-nio.git at 2.101.2 (0.36s)
Fetching https://github.com/apple/swift-system.git
Fetching https://github.com/apple/swift-atomics.git
[1/1868] Fetching swift-atomics
[1869/8028] Fetching swift-atomics, swift-system
Fetched https://github.com/apple/swift-atomics.git from cache (0.57s)
Fetched https://github.com/apple/swift-system.git from cache (0.57s)
Computing version for https://github.com/apple/swift-atomics.git
Computed https://github.com/apple/swift-atomics.git at 1.3.1 (0.75s)
Computing version for https://github.com/apple/swift-system.git
Computed https://github.com/apple/swift-system.git at 1.7.4 (0.20s)
Creating working copy for https://github.com/michaelklishin/bunny-swift.git
Working copy of https://github.com/michaelklishin/bunny-swift.git resolved at main (2de8e9f)
Creating working copy for https://github.com/apple/swift-nio-ssl.git
Working copy of https://github.com/apple/swift-nio-ssl.git resolved at 2.37.1
Creating working copy for https://github.com/apple/swift-system.git
Working copy of https://github.com/apple/swift-system.git resolved at 1.7.4
Creating working copy for https://github.com/apple/swift-nio.git
Working copy of https://github.com/apple/swift-nio.git resolved at 2.101.2
Creating working copy for https://github.com/apple/swift-collections.git
Working copy of https://github.com/apple/swift-collections.git resolved at 1.6.0
Creating working copy for https://github.com/apple/swift-atomics.git
Working copy of https://github.com/apple/swift-atomics.git resolved at 1.3.1
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-24593BA9C3E375BF.txt
[3/9] Compiling RabbitMQHTTPAPIClient PathEncoding.swift
[4/9] Compiling RabbitMQHTTPAPIClient Errors.swift
[5/9] Compiling RabbitMQHTTPAPIClient Commons.swift
[6/9] Compiling RabbitMQHTTPAPIClient Client.swift
/host/spi-builder-workspace/Sources/RabbitMQHTTPAPIClient/Client.swift:35:16: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
33 | let username: String
34 | let password: String
35 | let session: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
36 | let retrySettings: RetrySettings
37 | let decoder: JSONDecoder
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/RabbitMQHTTPAPIClient/Client.swift:45:14: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
43 | username: String = "guest",
44 | password: String = "guest",
45 | session: URLSession? = nil,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
46 | retrySettings: RetrySettings = RetrySettings()
47 | ) {
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/RabbitMQHTTPAPIClient/Client.swift:1179:28: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
1177 | _ urlPath: String, method: String,
1178 | body: Data? = nil, extraHeaders: [String: String] = [:]
1179 | ) async throws -> (Data, URLResponse) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
1180 | let fullURL = "\(endpoint)/\(urlPath)"
1181 | guard let url = URL(string: fullURL) else {
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/RabbitMQHTTPAPIClient/Client.swift:35:7: error: stored property 'session' of 'Sendable'-conforming struct 'Client' has non-Sendable type 'URLSession' (aka 'AnyObject')
33 | let username: String
34 | let password: String
35 | let session: URLSession
| `- error: stored property 'session' of 'Sendable'-conforming struct 'Client' has non-Sendable type 'URLSession' (aka 'AnyObject')
36 | let retrySettings: RetrySettings
37 | let decoder: JSONDecoder
/host/spi-builder-workspace/Sources/RabbitMQHTTPAPIClient/Client.swift:51:32: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
49 | self.username = username
50 | self.password = password
51 | self.session = session ?? .shared
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
52 | self.retrySettings = retrySettings
53 | self.decoder = JSONDecoder()
/host/spi-builder-workspace/Sources/RabbitMQHTTPAPIClient/Client.swift:1144:32: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
1142 | func healthCheck(_ urlPath: String) async throws {
1143 | let (data, response) = try await performRaw(urlPath, method: "GET")
1144 | let statusCode = (response as? HTTPURLResponse)?.statusCode ?? 0
| `- warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
1145 | if (200..<300).contains(statusCode) { return }
1146 | throw ClientError.healthCheckFailed(
/host/spi-builder-workspace/Sources/RabbitMQHTTPAPIClient/Client.swift:1144:54: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
1142 | func healthCheck(_ urlPath: String) async throws {
1143 | let (data, response) = try await performRaw(urlPath, method: "GET")
1144 | let statusCode = (response as? HTTPURLResponse)?.statusCode ?? 0
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
1145 | if (200..<300).contains(statusCode) { return }
1146 | throw ClientError.healthCheckFailed(
/host/spi-builder-workspace/Sources/RabbitMQHTTPAPIClient/Client.swift:1162:37: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
1160 | let (data, response) = try await performRaw(
1161 | urlPath, method: method, body: body, extraHeaders: extraHeaders)
1162 | let httpResponse = response as? HTTPURLResponse
| `- warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
1163 | let statusCode = httpResponse?.statusCode ?? 0
1164 | try checkStatus(statusCode, data: data, url: httpResponse?.url)
/host/spi-builder-workspace/Sources/RabbitMQHTTPAPIClient/Client.swift:1162:41: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
1160 | let (data, response) = try await performRaw(
1161 | urlPath, method: method, body: body, extraHeaders: extraHeaders)
1162 | let httpResponse = response as? HTTPURLResponse
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
1163 | let statusCode = httpResponse?.statusCode ?? 0
1164 | try checkStatus(statusCode, data: data, url: httpResponse?.url)
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/RabbitMQHTTPAPIClient/Client.swift:1163:40: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
1161 | urlPath, method: method, body: body, extraHeaders: extraHeaders)
1162 | let httpResponse = response as? HTTPURLResponse
1163 | let statusCode = httpResponse?.statusCode ?? 0
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
1164 | try checkStatus(statusCode, data: data, url: httpResponse?.url)
1165 | return data
/host/spi-builder-workspace/Sources/RabbitMQHTTPAPIClient/Client.swift:1164:68: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'url'
1162 | let httpResponse = response as? HTTPURLResponse
1163 | let statusCode = httpResponse?.statusCode ?? 0
1164 | try checkStatus(statusCode, data: data, url: httpResponse?.url)
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'url'
1165 | return data
1166 | } catch {
/host/spi-builder-workspace/Sources/RabbitMQHTTPAPIClient/Client.swift:1184:19: error: cannot find 'URLRequest' in scope
1182 | throw ClientError.invalidEndpoint(fullURL)
1183 | }
1184 | var request = URLRequest(url: url, timeoutInterval: 60)
| `- error: cannot find 'URLRequest' in scope
1185 | request.httpMethod = method
1186 | request.httpBody = body
/host/spi-builder-workspace/Sources/RabbitMQHTTPAPIClient/Client.swift:1195:32: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
1193 | }
1194 | do {
1195 | return try await session.data(for: request)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
1196 | } catch {
1197 | throw ClientError.requestFailed(underlying: error)
error: emit-module command failed with exit code 1 (use -v to see invocation)
[7/9] Compiling RabbitMQHTTPAPIClient Requests.swift
[8/9] Emitting module RabbitMQHTTPAPIClient
/host/spi-builder-workspace/Sources/RabbitMQHTTPAPIClient/Client.swift:35:16: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
33 | let username: String
34 | let password: String
35 | let session: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
36 | let retrySettings: RetrySettings
37 | let decoder: JSONDecoder
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/RabbitMQHTTPAPIClient/Client.swift:45:14: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
43 | username: String = "guest",
44 | password: String = "guest",
45 | session: URLSession? = nil,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
46 | retrySettings: RetrySettings = RetrySettings()
47 | ) {
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/RabbitMQHTTPAPIClient/Client.swift:1179:28: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
1177 | _ urlPath: String, method: String,
1178 | body: Data? = nil, extraHeaders: [String: String] = [:]
1179 | ) async throws -> (Data, URLResponse) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
1180 | let fullURL = "\(endpoint)/\(urlPath)"
1181 | guard let url = URL(string: fullURL) else {
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/RabbitMQHTTPAPIClient/Client.swift:35:7: error: stored property 'session' of 'Sendable'-conforming struct 'Client' has non-Sendable type 'URLSession' (aka 'AnyObject')
33 | let username: String
34 | let password: String
35 | let session: URLSession
| `- error: stored property 'session' of 'Sendable'-conforming struct 'Client' has non-Sendable type 'URLSession' (aka 'AnyObject')
36 | let retrySettings: RetrySettings
37 | let decoder: JSONDecoder
[9/9] Compiling RabbitMQHTTPAPIClient Responses.swift
BUILD FAILURE 6.2 wasm