The Swift Package Index logo.Swift Package Index

Build Information

Failed to build RabbitMQHTTPAPIClient, reference main (41ebd4), with Swift 6.1 for Wasm on 28 Mar 2026 07:49:19 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4606859-0":/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

Build Log

========================================
RunAll
========================================
Builder version: 4.69.2
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 41ebd45 Expand `ExchangeType` to include more core types
Cloned https://github.com/michaelklishin/rabbitmq-http-api-client-swift.git
Revision (git rev-parse @):
41ebd45d753b7828232be5772e8e02a105ecaec8
SUCCESS checkout https://github.com/michaelklishin/rabbitmq-http-api-client-swift.git at main
========================================
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-4606859-0":/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:c3bd0c8eb125dea46564a1eb8b09ee779ba7ae350b1ee58b5e9d6ff6c39cef37
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/546] Fetching bunny-swift
Fetched https://github.com/michaelklishin/bunny-swift.git from cache (0.26s)
Fetching https://github.com/apple/swift-collections.git
Fetching https://github.com/apple/swift-nio.git
Fetching https://github.com/apple/swift-nio-ssl.git
[1/23245] Fetching swift-collections
[1629/38605] Fetching swift-collections, swift-nio-ssl
[10279/121552] Fetching swift-collections, swift-nio-ssl, swift-nio
Fetched https://github.com/apple/swift-nio-ssl.git from cache (1.92s)
[59742/106192] Fetching swift-collections, swift-nio
Fetched https://github.com/apple/swift-collections.git from cache (5.88s)
Fetched https://github.com/apple/swift-nio.git from cache (5.97s)
Computing version for https://github.com/apple/swift-collections.git
Computed https://github.com/apple/swift-collections.git at 1.4.1 (6.90s)
Computing version for https://github.com/apple/swift-nio-ssl.git
Computed https://github.com/apple/swift-nio-ssl.git at 2.36.1 (0.65s)
Computing version for https://github.com/apple/swift-nio.git
Computed https://github.com/apple/swift-nio.git at 2.97.1 (1.07s)
Fetching https://github.com/apple/swift-atomics.git
Fetching https://github.com/apple/swift-system.git
[1/1820] Fetching swift-atomics
[1348/7421] Fetching swift-atomics, swift-system
Fetched https://github.com/apple/swift-atomics.git from cache (0.42s)
Fetched https://github.com/apple/swift-system.git from cache (0.42s)
Computing version for https://github.com/apple/swift-atomics.git
Computed https://github.com/apple/swift-atomics.git at 1.3.0 (1.04s)
Computing version for https://github.com/apple/swift-system.git
Computed https://github.com/apple/swift-system.git at 1.6.4 (0.68s)
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 (0f399ec)
Creating working copy for https://github.com/apple/swift-nio.git
Working copy of https://github.com/apple/swift-nio.git resolved at 2.97.1
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.1
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.1
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-24593BA9C3E375BF.txt
[3/9] Compiling RabbitMQHTTPAPIClient Requests.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[4/9] Compiling RabbitMQHTTPAPIClient Commons.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 PathEncoding.swift
[8/9] Compiling RabbitMQHTTPAPIClient Errors.swift
[9/9] Compiling RabbitMQHTTPAPIClient Responses.swift
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-0":/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:c3bd0c8eb125dea46564a1eb8b09ee779ba7ae350b1ee58b5e9d6ff6c39cef37
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
error: emit-module command failed with exit code 1 (use -v to see invocation)
[2/8] Compiling RabbitMQHTTPAPIClient Requests.swift
[3/8] Compiling RabbitMQHTTPAPIClient PathEncoding.swift
[4/8] Compiling RabbitMQHTTPAPIClient Errors.swift
[5/8] Compiling RabbitMQHTTPAPIClient Responses.swift
[6/8] Compiling RabbitMQHTTPAPIClient Commons.swift
[7/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
[8/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)
BUILD FAILURE 6.1 wasm