The Swift Package Index logo.Swift Package Index

Build Information

Failed to build RabbitMQHTTPAPIClient, reference v0.7.0 (c3a7e4), with Swift 6.2 for Wasm on 17 Mar 2026 08:06:59 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4609320-2":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/swiftpackageindex/spi-images:wasm-6.2-latest swift build --swift-sdk wasm32-unknown-wasip1 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.69.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/michaelklishin/rabbitmq-http-api-client-swift.git
Reference: v0.7.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/michaelklishin/rabbitmq-http-api-client-swift
 * tag               v0.7.0     -> FETCH_HEAD
HEAD is now at c3a7e4a 0.7.0
Cloned https://github.com/michaelklishin/rabbitmq-http-api-client-swift.git
Revision (git rev-parse @):
c3a7e4a52231dafbb9b0ce1afadc9d0592cc196c
SUCCESS checkout https://github.com/michaelklishin/rabbitmq-http-api-client-swift.git at v0.7.0
========================================
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-4609320-2":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/swiftpackageindex/spi-images:wasm-6.2-latest swift build --swift-sdk wasm32-unknown-wasip1 2>&1
wasm-6.2-latest: Pulling from swiftpackageindex/spi-images
Digest: sha256:33aba1b4ee401c56e0fd7ee42e05ab1ffc0b6f44277ad19cffda5d456eb09500
Status: Image is up to date for registry.gitlab.com/swiftpackageindex/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
Fetching https://github.com/michaelklishin/bunny-swift.git
[1/464] Fetching bunny-swift
Fetched https://github.com/michaelklishin/bunny-swift.git from cache (0.22s)
Fetching https://github.com/apple/swift-nio-ssl.git
Fetching https://github.com/apple/swift-nio.git
Fetching https://github.com/apple/swift-collections.git
[1/22410] Fetching swift-collections
[4035/37770] Fetching swift-collections, swift-nio-ssl
[13050/120597] Fetching swift-collections, swift-nio-ssl, swift-nio
Fetched https://github.com/apple/swift-nio-ssl.git from cache (6.75s)
Fetched https://github.com/apple/swift-collections.git from cache (6.76s)
Fetched https://github.com/apple/swift-nio.git from cache (6.83s)
Computing version for https://github.com/apple/swift-collections.git
Computed https://github.com/apple/swift-collections.git at 1.4.0 (8.39s)
Computing version for https://github.com/apple/swift-nio-ssl.git
Computed https://github.com/apple/swift-nio-ssl.git at 2.36.0 (0.50s)
Computing version for https://github.com/apple/swift-nio.git
Computed https://github.com/apple/swift-nio.git at 2.96.0 (0.83s)
Fetching https://github.com/apple/swift-atomics.git
Fetching https://github.com/apple/swift-system.git
[1/1820] Fetching swift-atomics
[1821/7421] Fetching swift-atomics, swift-system
Fetched https://github.com/apple/swift-atomics.git from cache (0.40s)
Fetched https://github.com/apple/swift-system.git from cache (0.47s)
Computing version for https://github.com/apple/swift-atomics.git
Computed https://github.com/apple/swift-atomics.git at 1.3.0 (0.89s)
Computing version for https://github.com/apple/swift-system.git
Computed https://github.com/apple/swift-system.git at 1.6.4 (0.45s)
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.0
Creating working copy for https://github.com/michaelklishin/bunny-swift.git
Working copy of https://github.com/michaelklishin/bunny-swift.git resolved at main (c896b42)
Creating working copy for https://github.com/apple/swift-collections.git
Working copy of https://github.com/apple/swift-collections.git resolved at 1.4.0
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.36.0
Creating working copy for https://github.com/apple/swift-nio.git
Working copy of https://github.com/apple/swift-nio.git resolved at 2.96.0
Creating working copy for https://github.com/apple/swift-system.git
Working copy of https://github.com/apple/swift-system.git resolved at 1.6.4
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/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
[4/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)
[5/9] Compiling RabbitMQHTTPAPIClient Errors.swift
[6/9] Compiling RabbitMQHTTPAPIClient Requests.swift
[7/9] Compiling RabbitMQHTTPAPIClient Responses.swift
[8/9] Compiling RabbitMQHTTPAPIClient Commons.swift
[9/9] Compiling RabbitMQHTTPAPIClient PathEncoding.swift
BUILD FAILURE 6.2 wasm