Build Information
Failed to build RabbitMQHTTPAPIClient, reference v0.7.0 (c3a7e4), with Swift 6.1 for Wasm on 17 Mar 2026 08:09:11 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4609320-1":/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.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1Build 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.1
Building package at path: $PWD
https://github.com/michaelklishin/rabbitmq-http-api-client-swift.git
https://github.com/michaelklishin/rabbitmq-http-api-client-swift.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
"dependencies" : [
{
"identity" : "bunny-swift",
"requirement" : {
"branch" : [
"main"
]
},
"type" : "sourceControl",
"url" : "https://github.com/michaelklishin/bunny-swift.git"
}
],
"manifest_display_name" : "RabbitMQHTTPAPIClient",
"name" : "RabbitMQHTTPAPIClient",
"path" : "/host/spi-builder-workspace",
"platforms" : [
{
"name" : "macos",
"version" : "14.0"
},
{
"name" : "ios",
"version" : "17.0"
},
{
"name" : "tvos",
"version" : "17.0"
},
{
"name" : "watchos",
"version" : "10.0"
}
],
"products" : [
{
"name" : "RabbitMQHTTPAPIClient",
"targets" : [
"RabbitMQHTTPAPIClient"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "UnitTests",
"module_type" : "SwiftTarget",
"name" : "UnitTests",
"path" : "Tests/UnitTests",
"sources" : [
"ChannelConnectionDetailsTests.swift",
"ClientErrorTests.swift",
"JSONValueTests.swift",
"MemoryValueTests.swift",
"PathEncodingTests.swift",
"UserTagsTests.swift"
],
"target_dependencies" : [
"RabbitMQHTTPAPIClient"
],
"type" : "test"
},
{
"c99name" : "RabbitMQHTTPAPIClientTests",
"module_type" : "SwiftTarget",
"name" : "RabbitMQHTTPAPIClientTests",
"path" : "Tests/RabbitMQHTTPAPIClientTests",
"product_dependencies" : [
"BunnySwift"
],
"sources" : [
"BindingTests.swift",
"ChannelTests.swift",
"ConnectionTests.swift",
"ConsumerTests.swift",
"DefinitionTests.swift",
"DeprecatedFeatureTests.swift",
"ExchangeTests.swift",
"FeatureFlagTests.swift",
"FederationTests.swift",
"GlobalParameterTests.swift",
"HealthCheckTests.swift",
"LimitTests.swift",
"MessageTests.swift",
"NodeTests.swift",
"OperatorPolicyTests.swift",
"OverviewTests.swift",
"PaginationTests.swift",
"PermissionTests.swift",
"PluginTests.swift",
"PolicyTests.swift",
"QueueTests.swift",
"RebalanceTests.swift",
"RuntimeParameterTests.swift",
"ShovelTests.swift",
"StreamProtocolTests.swift",
"TestHelpers.swift",
"TopicPermissionTests.swift",
"UserTests.swift",
"VirtualHostTests.swift"
],
"target_dependencies" : [
"RabbitMQHTTPAPIClient"
],
"type" : "test"
},
{
"c99name" : "RabbitMQHTTPAPIClient",
"module_type" : "SwiftTarget",
"name" : "RabbitMQHTTPAPIClient",
"path" : "Sources/RabbitMQHTTPAPIClient",
"product_memberships" : [
"RabbitMQHTTPAPIClient"
],
"sources" : [
"Client.swift",
"Commons.swift",
"Errors.swift",
"PathEncoding.swift",
"Requests.swift",
"Responses.swift"
],
"type" : "library"
}
],
"tools_version" : "6.0"
}
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-1":/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.1-latest swift build --swift-sdk wasm32-unknown-wasi -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats 2>&1
wasm-6.1-latest: Pulling from swiftpackageindex/spi-images
Digest: sha256:a7b4552feb759c014e60bb7d16019351f72ce4b9f19dbbaa081e1f5551c90672
Status: Image is up to date for registry.gitlab.com/swiftpackageindex/spi-images:wasm-6.1-latest
Fetching https://github.com/michaelklishin/bunny-swift.git
[1/464] Fetching bunny-swift
Fetched https://github.com/michaelklishin/bunny-swift.git from cache (0.28s)
Fetching https://github.com/apple/swift-nio.git
Fetching https://github.com/apple/swift-collections.git
Fetching https://github.com/apple/swift-nio-ssl.git
[1/22410] Fetching swift-collections
[1794/37770] Fetching swift-collections, swift-nio-ssl
[11648/120597] Fetching swift-collections, swift-nio-ssl, swift-nio
Fetched https://github.com/apple/swift-nio-ssl.git from cache (2.10s)
[58854/105237] Fetching swift-collections, swift-nio
Fetched https://github.com/apple/swift-collections.git from cache (5.98s)
Fetched https://github.com/apple/swift-nio.git from cache (6.07s)
Computing version for https://github.com/apple/swift-collections.git
Computed https://github.com/apple/swift-collections.git at 1.4.0 (6.88s)
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.66s)
Computing version for https://github.com/apple/swift-nio.git
Computed https://github.com/apple/swift-nio.git at 2.96.0 (1.08s)
Fetching https://github.com/apple/swift-system.git
Fetching https://github.com/apple/swift-atomics.git
[1/1820] Fetching swift-atomics
[1821/7421] Fetching swift-atomics, swift-system
Fetched https://github.com/apple/swift-atomics.git from cache (0.44s)
Fetched https://github.com/apple/swift-system.git from cache (0.44s)
Computing version for https://github.com/apple/swift-atomics.git
Computed https://github.com/apple/swift-atomics.git at 1.3.0 (1.01s)
Computing version for https://github.com/apple/swift-system.git
Computed https://github.com/apple/swift-system.git at 1.6.4 (0.65s)
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
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-atomics.git
Working copy of https://github.com/apple/swift-atomics.git resolved at 1.3.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
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] Compiling RabbitMQHTTPAPIClient Commons.swift
[4/9] Compiling RabbitMQHTTPAPIClient Errors.swift
[5/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
[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)
[7/9] Compiling RabbitMQHTTPAPIClient Requests.swift
[8/9] Compiling RabbitMQHTTPAPIClient PathEncoding.swift
[9/9] Compiling RabbitMQHTTPAPIClient Responses.swift
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-1":/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.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1
wasm-6.1-latest: Pulling from swiftpackageindex/spi-images
Digest: sha256:a7b4552feb759c014e60bb7d16019351f72ce4b9f19dbbaa081e1f5551c90672
Status: Image is up to date for registry.gitlab.com/swiftpackageindex/spi-images:wasm-6.1-latest
[0/1] Planning build
Building for debugging...
[0/1] Write swift-version-24593BA9C3E375BF.txt
[2/8] 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)
[3/8] Compiling RabbitMQHTTPAPIClient Errors.swift
[4/8] 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
[5/8] Compiling RabbitMQHTTPAPIClient PathEncoding.swift
[6/8] Compiling RabbitMQHTTPAPIClient Commons.swift
[7/8] Compiling RabbitMQHTTPAPIClient Requests.swift
[8/8] Compiling RabbitMQHTTPAPIClient Responses.swift
BUILD FAILURE 6.1 wasm