The Swift Package Index logo.Swift Package Index

Build Information

Failed to build APIClientCore, reference main (99ce9a), with Swift 6.1 for Android on 13 Oct 2025 17:10:47 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/finestructure/spi-images:android-6.1-latest swift build --swift-sdk aarch64-unknown-linux-android24 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.68.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/zino-88/APIClientCore.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/zino-88/APIClientCore
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at 99ce9a4 update README file
Cloned https://github.com/zino-88/APIClientCore.git
Revision (git rev-parse @):
99ce9a40070b73cb4278cc18f4ebb8ca1812e473
SUCCESS checkout https://github.com/zino-88/APIClientCore.git at main
========================================
Build
========================================
Selected platform:         android
Swift version:             6.1
Building package at path:  $PWD
https://github.com/zino-88/APIClientCore.git
https://github.com/zino-88/APIClientCore.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
  "dependencies" : [
  ],
  "manifest_display_name" : "APIClientCore",
  "name" : "APIClientCore",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "ios",
      "version" : "16.0"
    }
  ],
  "products" : [
    {
      "name" : "APIClientCore",
      "targets" : [
        "APIClientCore"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "APIClientCoreTests",
      "module_type" : "SwiftTarget",
      "name" : "APIClientCoreTests",
      "path" : "Tests/APIClientCoreTests",
      "sources" : [
        "APIClientTests.swift",
        "Helpers/HTTPURLResponse+Mock.swift",
        "Helpers/TestAPIClient.swift",
        "Helpers/TestEndpoint.swift",
        "Helpers/TestModels.swift",
        "Mocks/ConcurrentHTTPTransportMock.swift",
        "Mocks/HTTPTransportMock.swift",
        "Mocks/URLProtocolStub.swift",
        "RequestBuilderTests.swift",
        "URLSessionTransportTests.swift"
      ],
      "target_dependencies" : [
        "APIClientCore"
      ],
      "type" : "test"
    },
    {
      "c99name" : "APIClientCore",
      "module_type" : "SwiftTarget",
      "name" : "APIClientCore",
      "path" : "Sources/APIClientCore",
      "product_memberships" : [
        "APIClientCore"
      ],
      "sources" : [
        "Client/APIClient.swift",
        "Client/DefaultAPIClient.swift",
        "Configuration/APIConfiguration.swift",
        "Core/DataCoding/DataCoding.swift",
        "Core/DataCoding/JSONCoder+Convenience.swift",
        "Core/DataCoding/PropertyListCoder+Convenience.swift",
        "Core/DataCoding/StringCoder+Convenience.swift",
        "Core/Errors/HTTPStatusError.swift",
        "Core/HTTPMethod.swift",
        "Core/RequestBuilder.swift",
        "Endpoint/APIEndpoint.swift",
        "Transport/HTTPTransport.swift",
        "Transport/URLSessionTransport.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "6.0"
}
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/finestructure/spi-images:android-6.1-latest swift build --swift-sdk aarch64-unknown-linux-android24 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats 2>&1
android-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:496d77b037d0552dd779110e0d7093275ebb8376a63c7a364a5a4acca11a4ff5
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:android-6.1-latest
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-24593BA9C3E375BF.txt
[3/15] Compiling APIClientCore StringCoder+Convenience.swift
/host/spi-builder-workspace/Sources/APIClientCore/Core/Errors/HTTPStatusError.swift:12:26: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
10 |
11 |     /// The full HTTP response associated with the error.
12 |     public let response: HTTPURLResponse
   |                          `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
13 |
14 |     /// The raw response body, if available.
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/APIClientCore/Core/Errors/HTTPStatusError.swift:17:44: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
15 |     public let data: Data?
16 |
17 |     public init(statusCode: Int, response: HTTPURLResponse, data: Data? = nil) {
   |                                            `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
18 |         self.statusCode = statusCode
19 |         self.response = response
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/APIClientCore/Core/Errors/HTTPStatusError.swift:12:16: error: stored property 'response' of 'Sendable'-conforming struct 'HTTPStatusError' has non-sendable type 'HTTPURLResponse' (aka 'AnyObject')
10 |
11 |     /// The full HTTP response associated with the error.
12 |     public let response: HTTPURLResponse
   |                `- error: stored property 'response' of 'Sendable'-conforming struct 'HTTPStatusError' has non-sendable type 'HTTPURLResponse' (aka 'AnyObject')
13 |
14 |     /// The raw response body, if available.
/host/spi-builder-workspace/Sources/APIClientCore/Core/Errors/HTTPStatusError.swift:27:25: error: type 'HTTPURLResponse' (aka 'AnyObject') has no member 'localizedString'
25 |     /// A human-readable message describing the HTTP status code.
26 |     public var errorDescription: String? {
27 |         HTTPURLResponse.localizedString(forStatusCode: statusCode)
   |                         `- error: type 'HTTPURLResponse' (aka 'AnyObject') has no member 'localizedString'
28 |     }
29 | }
/host/spi-builder-workspace/Sources/APIClientCore/Core/Errors/HTTPStatusError.swift:34:28: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'url'
32 |     /// Detailed debug description including status, message, and request URL.
33 |     public var debugDescription: String {
34 |         let url = response.url?.absoluteString ?? "nil"
   |                            `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'url'
35 |         return "HTTPStatusError(\(statusCode): \(localizedDescription)) [\(url)]"
36 |     }
[4/15] Compiling APIClientCore HTTPStatusError.swift
/host/spi-builder-workspace/Sources/APIClientCore/Core/Errors/HTTPStatusError.swift:12:26: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
10 |
11 |     /// The full HTTP response associated with the error.
12 |     public let response: HTTPURLResponse
   |                          `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
13 |
14 |     /// The raw response body, if available.
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/APIClientCore/Core/Errors/HTTPStatusError.swift:17:44: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
15 |     public let data: Data?
16 |
17 |     public init(statusCode: Int, response: HTTPURLResponse, data: Data? = nil) {
   |                                            `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
18 |         self.statusCode = statusCode
19 |         self.response = response
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/APIClientCore/Core/Errors/HTTPStatusError.swift:12:16: error: stored property 'response' of 'Sendable'-conforming struct 'HTTPStatusError' has non-sendable type 'HTTPURLResponse' (aka 'AnyObject')
10 |
11 |     /// The full HTTP response associated with the error.
12 |     public let response: HTTPURLResponse
   |                `- error: stored property 'response' of 'Sendable'-conforming struct 'HTTPStatusError' has non-sendable type 'HTTPURLResponse' (aka 'AnyObject')
13 |
14 |     /// The raw response body, if available.
/host/spi-builder-workspace/Sources/APIClientCore/Core/Errors/HTTPStatusError.swift:27:25: error: type 'HTTPURLResponse' (aka 'AnyObject') has no member 'localizedString'
25 |     /// A human-readable message describing the HTTP status code.
26 |     public var errorDescription: String? {
27 |         HTTPURLResponse.localizedString(forStatusCode: statusCode)
   |                         `- error: type 'HTTPURLResponse' (aka 'AnyObject') has no member 'localizedString'
28 |     }
29 | }
/host/spi-builder-workspace/Sources/APIClientCore/Core/Errors/HTTPStatusError.swift:34:28: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'url'
32 |     /// Detailed debug description including status, message, and request URL.
33 |     public var debugDescription: String {
34 |         let url = response.url?.absoluteString ?? "nil"
   |                            `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'url'
35 |         return "HTTPStatusError(\(statusCode): \(localizedDescription)) [\(url)]"
36 |     }
[5/15] Compiling APIClientCore APIEndpoint.swift
[6/15] Compiling APIClientCore HTTPTransport.swift
/host/spi-builder-workspace/Sources/APIClientCore/Transport/HTTPTransport.swift:23:28: error: cannot find type 'URLRequest' in scope
21 |     ///   - `CancellationError` (if the task was cancelled)
22 |     ///   -  or custom transport-specific errors.
23 |     func data(for request: URLRequest) async throws -> (Data, HTTPURLResponse)
   |                            `- error: cannot find type 'URLRequest' in scope
24 | }
25 |
/host/spi-builder-workspace/Sources/APIClientCore/Transport/HTTPTransport.swift:23:63: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
21 |     ///   - `CancellationError` (if the task was cancelled)
22 |     ///   -  or custom transport-specific errors.
23 |     func data(for request: URLRequest) async throws -> (Data, HTTPURLResponse)
   |                                                               `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
24 | }
25 |
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
[7/15] Compiling APIClientCore HTTPMethod.swift
/host/spi-builder-workspace/Sources/APIClientCore/Core/RequestBuilder.swift:22:17: error: cannot find type 'URLRequest' in scope
20 |         baseURL: URL,
21 |         defaultHeaders: [String: String] = [:]
22 |     ) throws -> URLRequest {
   |                 `- error: cannot find type 'URLRequest' in scope
23 |         let url = try buildURL(from: endpoint, baseURL: baseURL)
24 |         return try buildRequest(url: url, endpoint: endpoint, defaultHeaders: defaultHeaders)
/host/spi-builder-workspace/Sources/APIClientCore/Core/RequestBuilder.swift:66:17: error: cannot find type 'URLRequest' in scope
64 |         endpoint: any APIEndpoint,
65 |         defaultHeaders: [String: String] = [:]
66 |     ) throws -> URLRequest {
   |                 `- error: cannot find type 'URLRequest' in scope
67 |         var request = URLRequest(url: url)
68 |         request.httpMethod = endpoint.method.rawValue
/host/spi-builder-workspace/Sources/APIClientCore/Core/RequestBuilder.swift:67:23: error: cannot find 'URLRequest' in scope
65 |         defaultHeaders: [String: String] = [:]
66 |     ) throws -> URLRequest {
67 |         var request = URLRequest(url: url)
   |                       `- error: cannot find 'URLRequest' in scope
68 |         request.httpMethod = endpoint.method.rawValue
69 |
[8/15] Compiling APIClientCore RequestBuilder.swift
/host/spi-builder-workspace/Sources/APIClientCore/Core/RequestBuilder.swift:22:17: error: cannot find type 'URLRequest' in scope
20 |         baseURL: URL,
21 |         defaultHeaders: [String: String] = [:]
22 |     ) throws -> URLRequest {
   |                 `- error: cannot find type 'URLRequest' in scope
23 |         let url = try buildURL(from: endpoint, baseURL: baseURL)
24 |         return try buildRequest(url: url, endpoint: endpoint, defaultHeaders: defaultHeaders)
/host/spi-builder-workspace/Sources/APIClientCore/Core/RequestBuilder.swift:66:17: error: cannot find type 'URLRequest' in scope
64 |         endpoint: any APIEndpoint,
65 |         defaultHeaders: [String: String] = [:]
66 |     ) throws -> URLRequest {
   |                 `- error: cannot find type 'URLRequest' in scope
67 |         var request = URLRequest(url: url)
68 |         request.httpMethod = endpoint.method.rawValue
/host/spi-builder-workspace/Sources/APIClientCore/Core/RequestBuilder.swift:67:23: error: cannot find 'URLRequest' in scope
65 |         defaultHeaders: [String: String] = [:]
66 |     ) throws -> URLRequest {
67 |         var request = URLRequest(url: url)
   |                       `- error: cannot find 'URLRequest' in scope
68 |         request.httpMethod = endpoint.method.rawValue
69 |
[9/15] Compiling APIClientCore JSONCoder+Convenience.swift
[10/15] Compiling APIClientCore PropertyListCoder+Convenience.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[11/16] Emitting module APIClientCore
/host/spi-builder-workspace/Sources/APIClientCore/Client/APIClient.swift:36:93: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 34 |     ///   -  Other transport-specific errors depending on the configured `HTTPTransport`
 35 |     ///      implementation (e.g. `AFError` for Alamofire).
 36 |     func requestData(from endpoint: any APIEndpoint) async throws -> (data: Data, response: HTTPURLResponse)
    |                                                                                             `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 37 |
 38 |     /// Sends a request and decodes the response body into the given `Decodable` type.
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/APIClientCore/Transport/HTTPTransport.swift:23:28: error: cannot find type 'URLRequest' in scope
21 |     ///   - `CancellationError` (if the task was cancelled)
22 |     ///   -  or custom transport-specific errors.
23 |     func data(for request: URLRequest) async throws -> (Data, HTTPURLResponse)
   |                            `- error: cannot find type 'URLRequest' in scope
24 | }
25 |
/host/spi-builder-workspace/Sources/APIClientCore/Client/APIClient.swift:90:93: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 88 | public extension APIClient {
 89 |
 90 |     func requestData(from endpoint: any APIEndpoint) async throws -> (data: Data, response: HTTPURLResponse) {
    |                                                                                             `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 91 |         let request = try RequestBuilder.build(
 92 |             from: endpoint,
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/APIClientCore/Transport/URLSessionTransport.swift:21:40: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
19 |     /// - Parameter session: The session to use for performing requests.
20 |     ///   Defaults to `.shared`.
21 |     public init(session: URLSession = .shared) {
   |                                        `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
22 |         self.session = session
23 |     }
/host/spi-builder-workspace/Sources/APIClientCore/Core/Errors/HTTPStatusError.swift:12:26: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
10 |
11 |     /// The full HTTP response associated with the error.
12 |     public let response: HTTPURLResponse
   |                          `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
13 |
14 |     /// The raw response body, if available.
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/APIClientCore/Core/Errors/HTTPStatusError.swift:17:44: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
15 |     public let data: Data?
16 |
17 |     public init(statusCode: Int, response: HTTPURLResponse, data: Data? = nil) {
   |                                            `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
18 |         self.statusCode = statusCode
19 |         self.response = response
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/APIClientCore/Core/Errors/HTTPStatusError.swift:12:16: error: stored property 'response' of 'Sendable'-conforming struct 'HTTPStatusError' has non-sendable type 'HTTPURLResponse' (aka 'AnyObject')
10 |
11 |     /// The full HTTP response associated with the error.
12 |     public let response: HTTPURLResponse
   |                `- error: stored property 'response' of 'Sendable'-conforming struct 'HTTPStatusError' has non-sendable type 'HTTPURLResponse' (aka 'AnyObject')
13 |
14 |     /// The raw response body, if available.
/host/spi-builder-workspace/Sources/APIClientCore/Core/RequestBuilder.swift:22:17: error: cannot find type 'URLRequest' in scope
20 |         baseURL: URL,
21 |         defaultHeaders: [String: String] = [:]
22 |     ) throws -> URLRequest {
   |                 `- error: cannot find type 'URLRequest' in scope
23 |         let url = try buildURL(from: endpoint, baseURL: baseURL)
24 |         return try buildRequest(url: url, endpoint: endpoint, defaultHeaders: defaultHeaders)
/host/spi-builder-workspace/Sources/APIClientCore/Core/RequestBuilder.swift:66:17: error: cannot find type 'URLRequest' in scope
64 |         endpoint: any APIEndpoint,
65 |         defaultHeaders: [String: String] = [:]
66 |     ) throws -> URLRequest {
   |                 `- error: cannot find type 'URLRequest' in scope
67 |         var request = URLRequest(url: url)
68 |         request.httpMethod = endpoint.method.rawValue
/host/spi-builder-workspace/Sources/APIClientCore/Transport/HTTPTransport.swift:23:63: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
21 |     ///   - `CancellationError` (if the task was cancelled)
22 |     ///   -  or custom transport-specific errors.
23 |     func data(for request: URLRequest) async throws -> (Data, HTTPURLResponse)
   |                                                               `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
24 | }
25 |
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/APIClientCore/Transport/URLSessionTransport.swift:15:25: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
13 | public struct URLSessionTransport: HTTPTransport, Sendable {
14 |     /// The underlying `URLSession` used to execute requests.
15 |     public let session: URLSession
   |                         `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
16 |
17 |     /// Creates a new `URLSessionTransport` instance.
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/APIClientCore/Transport/URLSessionTransport.swift:21:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
19 |     /// - Parameter session: The session to use for performing requests.
20 |     ///   Defaults to `.shared`.
21 |     public init(session: URLSession = .shared) {
   |                          `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
22 |         self.session = session
23 |     }
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/APIClientCore/Transport/URLSessionTransport.swift:34:35: error: cannot find type 'URLRequest' in scope
32 |     ///   - `URLError(.badServerResponse)` if the response is not an `HTTPURLResponse`.
33 |     ///   - `CancellationError` if the task was cancelled.
34 |     public func data(for request: URLRequest) async throws -> (Data, HTTPURLResponse) {
   |                                   `- error: cannot find type 'URLRequest' in scope
35 |         let (data, response) = try await session.data(for: request)
36 |         guard let httpResponse = response as? HTTPURLResponse else {
/host/spi-builder-workspace/Sources/APIClientCore/Transport/URLSessionTransport.swift:34:70: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
32 |     ///   - `URLError(.badServerResponse)` if the response is not an `HTTPURLResponse`.
33 |     ///   - `CancellationError` if the task was cancelled.
34 |     public func data(for request: URLRequest) async throws -> (Data, HTTPURLResponse) {
   |                                                                      `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
35 |         let (data, response) = try await session.data(for: request)
36 |         guard let httpResponse = response as? HTTPURLResponse else {
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/APIClientCore/Transport/URLSessionTransport.swift:15:16: error: stored property 'session' of 'Sendable'-conforming struct 'URLSessionTransport' has non-sendable type 'URLSession' (aka 'AnyObject')
13 | public struct URLSessionTransport: HTTPTransport, Sendable {
14 |     /// The underlying `URLSession` used to execute requests.
15 |     public let session: URLSession
   |                `- error: stored property 'session' of 'Sendable'-conforming struct 'URLSessionTransport' has non-sendable type 'URLSession' (aka 'AnyObject')
16 |
17 |     /// Creates a new `URLSessionTransport` instance.
[12/16] Compiling APIClientCore APIConfiguration.swift
/host/spi-builder-workspace/Sources/APIClientCore/Transport/HTTPTransport.swift:23:28: error: cannot find type 'URLRequest' in scope
21 |     ///   - `CancellationError` (if the task was cancelled)
22 |     ///   -  or custom transport-specific errors.
23 |     func data(for request: URLRequest) async throws -> (Data, HTTPURLResponse)
   |                            `- error: cannot find type 'URLRequest' in scope
24 | }
25 |
/host/spi-builder-workspace/Sources/APIClientCore/Transport/URLSessionTransport.swift:21:40: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
19 |     /// - Parameter session: The session to use for performing requests.
20 |     ///   Defaults to `.shared`.
21 |     public init(session: URLSession = .shared) {
   |                                        `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
22 |         self.session = session
23 |     }
[13/16] Compiling APIClientCore DataCoding.swift
/host/spi-builder-workspace/Sources/APIClientCore/Transport/HTTPTransport.swift:23:28: error: cannot find type 'URLRequest' in scope
21 |     ///   - `CancellationError` (if the task was cancelled)
22 |     ///   -  or custom transport-specific errors.
23 |     func data(for request: URLRequest) async throws -> (Data, HTTPURLResponse)
   |                            `- error: cannot find type 'URLRequest' in scope
24 | }
25 |
/host/spi-builder-workspace/Sources/APIClientCore/Transport/URLSessionTransport.swift:21:40: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
19 |     /// - Parameter session: The session to use for performing requests.
20 |     ///   Defaults to `.shared`.
21 |     public init(session: URLSession = .shared) {
   |                                        `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
22 |         self.session = session
23 |     }
[14/16] Compiling APIClientCore APIClient.swift
/host/spi-builder-workspace/Sources/APIClientCore/Client/APIClient.swift:36:93: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 34 |     ///   -  Other transport-specific errors depending on the configured `HTTPTransport`
 35 |     ///      implementation (e.g. `AFError` for Alamofire).
 36 |     func requestData(from endpoint: any APIEndpoint) async throws -> (data: Data, response: HTTPURLResponse)
    |                                                                                             `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 37 |
 38 |     /// Sends a request and decodes the response body into the given `Decodable` type.
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/APIClientCore/Transport/HTTPTransport.swift:23:28: error: cannot find type 'URLRequest' in scope
21 |     ///   - `CancellationError` (if the task was cancelled)
22 |     ///   -  or custom transport-specific errors.
23 |     func data(for request: URLRequest) async throws -> (Data, HTTPURLResponse)
   |                            `- error: cannot find type 'URLRequest' in scope
24 | }
25 |
/host/spi-builder-workspace/Sources/APIClientCore/Client/APIClient.swift:90:93: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 88 | public extension APIClient {
 89 |
 90 |     func requestData(from endpoint: any APIEndpoint) async throws -> (data: Data, response: HTTPURLResponse) {
    |                                                                                             `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 91 |         let request = try RequestBuilder.build(
 92 |             from: endpoint,
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/APIClientCore/Core/RequestBuilder.swift:22:17: error: cannot find type 'URLRequest' in scope
20 |         baseURL: URL,
21 |         defaultHeaders: [String: String] = [:]
22 |     ) throws -> URLRequest {
   |                 `- error: cannot find type 'URLRequest' in scope
23 |         let url = try buildURL(from: endpoint, baseURL: baseURL)
24 |         return try buildRequest(url: url, endpoint: endpoint, defaultHeaders: defaultHeaders)
[15/16] Compiling APIClientCore DefaultAPIClient.swift
/host/spi-builder-workspace/Sources/APIClientCore/Client/APIClient.swift:36:93: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 34 |     ///   -  Other transport-specific errors depending on the configured `HTTPTransport`
 35 |     ///      implementation (e.g. `AFError` for Alamofire).
 36 |     func requestData(from endpoint: any APIEndpoint) async throws -> (data: Data, response: HTTPURLResponse)
    |                                                                                             `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 37 |
 38 |     /// Sends a request and decodes the response body into the given `Decodable` type.
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/APIClientCore/Transport/HTTPTransport.swift:23:28: error: cannot find type 'URLRequest' in scope
21 |     ///   - `CancellationError` (if the task was cancelled)
22 |     ///   -  or custom transport-specific errors.
23 |     func data(for request: URLRequest) async throws -> (Data, HTTPURLResponse)
   |                            `- error: cannot find type 'URLRequest' in scope
24 | }
25 |
/host/spi-builder-workspace/Sources/APIClientCore/Client/APIClient.swift:90:93: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 88 | public extension APIClient {
 89 |
 90 |     func requestData(from endpoint: any APIEndpoint) async throws -> (data: Data, response: HTTPURLResponse) {
    |                                                                                             `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 91 |         let request = try RequestBuilder.build(
 92 |             from: endpoint,
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/APIClientCore/Core/RequestBuilder.swift:22:17: error: cannot find type 'URLRequest' in scope
20 |         baseURL: URL,
21 |         defaultHeaders: [String: String] = [:]
22 |     ) throws -> URLRequest {
   |                 `- error: cannot find type 'URLRequest' in scope
23 |         let url = try buildURL(from: endpoint, baseURL: baseURL)
24 |         return try buildRequest(url: url, endpoint: endpoint, defaultHeaders: defaultHeaders)
[16/16] Compiling APIClientCore URLSessionTransport.swift
/host/spi-builder-workspace/Sources/APIClientCore/Transport/URLSessionTransport.swift:15:25: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
13 | public struct URLSessionTransport: HTTPTransport, Sendable {
14 |     /// The underlying `URLSession` used to execute requests.
15 |     public let session: URLSession
   |                         `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
16 |
17 |     /// Creates a new `URLSessionTransport` instance.
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/APIClientCore/Transport/URLSessionTransport.swift:21:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
19 |     /// - Parameter session: The session to use for performing requests.
20 |     ///   Defaults to `.shared`.
21 |     public init(session: URLSession = .shared) {
   |                          `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
22 |         self.session = session
23 |     }
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/APIClientCore/Transport/URLSessionTransport.swift:21:40: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
19 |     /// - Parameter session: The session to use for performing requests.
20 |     ///   Defaults to `.shared`.
21 |     public init(session: URLSession = .shared) {
   |                                        `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
22 |         self.session = session
23 |     }
/host/spi-builder-workspace/Sources/APIClientCore/Transport/URLSessionTransport.swift:34:35: error: cannot find type 'URLRequest' in scope
32 |     ///   - `URLError(.badServerResponse)` if the response is not an `HTTPURLResponse`.
33 |     ///   - `CancellationError` if the task was cancelled.
34 |     public func data(for request: URLRequest) async throws -> (Data, HTTPURLResponse) {
   |                                   `- error: cannot find type 'URLRequest' in scope
35 |         let (data, response) = try await session.data(for: request)
36 |         guard let httpResponse = response as? HTTPURLResponse else {
/host/spi-builder-workspace/Sources/APIClientCore/Transport/URLSessionTransport.swift:34:70: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
32 |     ///   - `URLError(.badServerResponse)` if the response is not an `HTTPURLResponse`.
33 |     ///   - `CancellationError` if the task was cancelled.
34 |     public func data(for request: URLRequest) async throws -> (Data, HTTPURLResponse) {
   |                                                                      `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
35 |         let (data, response) = try await session.data(for: request)
36 |         guard let httpResponse = response as? HTTPURLResponse else {
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/APIClientCore/Transport/URLSessionTransport.swift:15:16: error: stored property 'session' of 'Sendable'-conforming struct 'URLSessionTransport' has non-sendable type 'URLSession' (aka 'AnyObject')
13 | public struct URLSessionTransport: HTTPTransport, Sendable {
14 |     /// The underlying `URLSession` used to execute requests.
15 |     public let session: URLSession
   |                `- error: stored property 'session' of 'Sendable'-conforming struct 'URLSessionTransport' has non-sendable type 'URLSession' (aka 'AnyObject')
16 |
17 |     /// Creates a new `URLSessionTransport` instance.
/host/spi-builder-workspace/Sources/APIClientCore/Transport/HTTPTransport.swift:23:28: error: cannot find type 'URLRequest' in scope
21 |     ///   - `CancellationError` (if the task was cancelled)
22 |     ///   -  or custom transport-specific errors.
23 |     func data(for request: URLRequest) async throws -> (Data, HTTPURLResponse)
   |                            `- error: cannot find type 'URLRequest' in scope
24 | }
25 |
/host/spi-builder-workspace/Sources/APIClientCore/Transport/URLSessionTransport.swift:35:50: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
33 |     ///   - `CancellationError` if the task was cancelled.
34 |     public func data(for request: URLRequest) async throws -> (Data, HTTPURLResponse) {
35 |         let (data, response) = try await session.data(for: request)
   |                                                  `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
36 |         guard let httpResponse = response as? HTTPURLResponse else {
37 |             throw URLError(.badServerResponse)
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/finestructure/spi-images:android-6.1-latest swift build --swift-sdk aarch64-unknown-linux-android24 2>&1
android-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:496d77b037d0552dd779110e0d7093275ebb8376a63c7a364a5a4acca11a4ff5
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:android-6.1-latest
[0/1] Planning build
Building for debugging...
[0/1] Write swift-version-24593BA9C3E375BF.txt
[2/14] Compiling APIClientCore HTTPTransport.swift
/host/spi-builder-workspace/Sources/APIClientCore/Transport/HTTPTransport.swift:23:28: error: cannot find type 'URLRequest' in scope
21 |     ///   - `CancellationError` (if the task was cancelled)
22 |     ///   -  or custom transport-specific errors.
23 |     func data(for request: URLRequest) async throws -> (Data, HTTPURLResponse)
   |                            `- error: cannot find type 'URLRequest' in scope
24 | }
25 |
/host/spi-builder-workspace/Sources/APIClientCore/Transport/HTTPTransport.swift:23:63: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
21 |     ///   - `CancellationError` (if the task was cancelled)
22 |     ///   -  or custom transport-specific errors.
23 |     func data(for request: URLRequest) async throws -> (Data, HTTPURLResponse)
   |                                                               `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
24 | }
25 |
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
[3/15] Compiling APIClientCore APIEndpoint.swift
[4/15] Compiling APIClientCore StringCoder+Convenience.swift
/host/spi-builder-workspace/Sources/APIClientCore/Core/Errors/HTTPStatusError.swift:12:26: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
10 |
11 |     /// The full HTTP response associated with the error.
12 |     public let response: HTTPURLResponse
   |                          `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
13 |
14 |     /// The raw response body, if available.
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/APIClientCore/Core/Errors/HTTPStatusError.swift:17:44: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
15 |     public let data: Data?
16 |
17 |     public init(statusCode: Int, response: HTTPURLResponse, data: Data? = nil) {
   |                                            `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
18 |         self.statusCode = statusCode
19 |         self.response = response
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/APIClientCore/Core/Errors/HTTPStatusError.swift:12:16: error: stored property 'response' of 'Sendable'-conforming struct 'HTTPStatusError' has non-sendable type 'HTTPURLResponse' (aka 'AnyObject')
10 |
11 |     /// The full HTTP response associated with the error.
12 |     public let response: HTTPURLResponse
   |                `- error: stored property 'response' of 'Sendable'-conforming struct 'HTTPStatusError' has non-sendable type 'HTTPURLResponse' (aka 'AnyObject')
13 |
14 |     /// The raw response body, if available.
/host/spi-builder-workspace/Sources/APIClientCore/Core/Errors/HTTPStatusError.swift:27:25: error: type 'HTTPURLResponse' (aka 'AnyObject') has no member 'localizedString'
25 |     /// A human-readable message describing the HTTP status code.
26 |     public var errorDescription: String? {
27 |         HTTPURLResponse.localizedString(forStatusCode: statusCode)
   |                         `- error: type 'HTTPURLResponse' (aka 'AnyObject') has no member 'localizedString'
28 |     }
29 | }
/host/spi-builder-workspace/Sources/APIClientCore/Core/Errors/HTTPStatusError.swift:34:28: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'url'
32 |     /// Detailed debug description including status, message, and request URL.
33 |     public var debugDescription: String {
34 |         let url = response.url?.absoluteString ?? "nil"
   |                            `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'url'
35 |         return "HTTPStatusError(\(statusCode): \(localizedDescription)) [\(url)]"
36 |     }
[5/15] Compiling APIClientCore HTTPStatusError.swift
/host/spi-builder-workspace/Sources/APIClientCore/Core/Errors/HTTPStatusError.swift:12:26: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
10 |
11 |     /// The full HTTP response associated with the error.
12 |     public let response: HTTPURLResponse
   |                          `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
13 |
14 |     /// The raw response body, if available.
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/APIClientCore/Core/Errors/HTTPStatusError.swift:17:44: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
15 |     public let data: Data?
16 |
17 |     public init(statusCode: Int, response: HTTPURLResponse, data: Data? = nil) {
   |                                            `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
18 |         self.statusCode = statusCode
19 |         self.response = response
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/APIClientCore/Core/Errors/HTTPStatusError.swift:12:16: error: stored property 'response' of 'Sendable'-conforming struct 'HTTPStatusError' has non-sendable type 'HTTPURLResponse' (aka 'AnyObject')
10 |
11 |     /// The full HTTP response associated with the error.
12 |     public let response: HTTPURLResponse
   |                `- error: stored property 'response' of 'Sendable'-conforming struct 'HTTPStatusError' has non-sendable type 'HTTPURLResponse' (aka 'AnyObject')
13 |
14 |     /// The raw response body, if available.
/host/spi-builder-workspace/Sources/APIClientCore/Core/Errors/HTTPStatusError.swift:27:25: error: type 'HTTPURLResponse' (aka 'AnyObject') has no member 'localizedString'
25 |     /// A human-readable message describing the HTTP status code.
26 |     public var errorDescription: String? {
27 |         HTTPURLResponse.localizedString(forStatusCode: statusCode)
   |                         `- error: type 'HTTPURLResponse' (aka 'AnyObject') has no member 'localizedString'
28 |     }
29 | }
/host/spi-builder-workspace/Sources/APIClientCore/Core/Errors/HTTPStatusError.swift:34:28: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'url'
32 |     /// Detailed debug description including status, message, and request URL.
33 |     public var debugDescription: String {
34 |         let url = response.url?.absoluteString ?? "nil"
   |                            `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'url'
35 |         return "HTTPStatusError(\(statusCode): \(localizedDescription)) [\(url)]"
36 |     }
[6/15] Compiling APIClientCore HTTPMethod.swift
/host/spi-builder-workspace/Sources/APIClientCore/Core/RequestBuilder.swift:22:17: error: cannot find type 'URLRequest' in scope
20 |         baseURL: URL,
21 |         defaultHeaders: [String: String] = [:]
22 |     ) throws -> URLRequest {
   |                 `- error: cannot find type 'URLRequest' in scope
23 |         let url = try buildURL(from: endpoint, baseURL: baseURL)
24 |         return try buildRequest(url: url, endpoint: endpoint, defaultHeaders: defaultHeaders)
/host/spi-builder-workspace/Sources/APIClientCore/Core/RequestBuilder.swift:66:17: error: cannot find type 'URLRequest' in scope
64 |         endpoint: any APIEndpoint,
65 |         defaultHeaders: [String: String] = [:]
66 |     ) throws -> URLRequest {
   |                 `- error: cannot find type 'URLRequest' in scope
67 |         var request = URLRequest(url: url)
68 |         request.httpMethod = endpoint.method.rawValue
/host/spi-builder-workspace/Sources/APIClientCore/Core/RequestBuilder.swift:67:23: error: cannot find 'URLRequest' in scope
65 |         defaultHeaders: [String: String] = [:]
66 |     ) throws -> URLRequest {
67 |         var request = URLRequest(url: url)
   |                       `- error: cannot find 'URLRequest' in scope
68 |         request.httpMethod = endpoint.method.rawValue
69 |
[7/15] Compiling APIClientCore RequestBuilder.swift
/host/spi-builder-workspace/Sources/APIClientCore/Core/RequestBuilder.swift:22:17: error: cannot find type 'URLRequest' in scope
20 |         baseURL: URL,
21 |         defaultHeaders: [String: String] = [:]
22 |     ) throws -> URLRequest {
   |                 `- error: cannot find type 'URLRequest' in scope
23 |         let url = try buildURL(from: endpoint, baseURL: baseURL)
24 |         return try buildRequest(url: url, endpoint: endpoint, defaultHeaders: defaultHeaders)
/host/spi-builder-workspace/Sources/APIClientCore/Core/RequestBuilder.swift:66:17: error: cannot find type 'URLRequest' in scope
64 |         endpoint: any APIEndpoint,
65 |         defaultHeaders: [String: String] = [:]
66 |     ) throws -> URLRequest {
   |                 `- error: cannot find type 'URLRequest' in scope
67 |         var request = URLRequest(url: url)
68 |         request.httpMethod = endpoint.method.rawValue
/host/spi-builder-workspace/Sources/APIClientCore/Core/RequestBuilder.swift:67:23: error: cannot find 'URLRequest' in scope
65 |         defaultHeaders: [String: String] = [:]
66 |     ) throws -> URLRequest {
67 |         var request = URLRequest(url: url)
   |                       `- error: cannot find 'URLRequest' in scope
68 |         request.httpMethod = endpoint.method.rawValue
69 |
error: emit-module command failed with exit code 1 (use -v to see invocation)
[8/15] Compiling APIClientCore JSONCoder+Convenience.swift
[9/15] Compiling APIClientCore PropertyListCoder+Convenience.swift
[10/15] Emitting module APIClientCore
/host/spi-builder-workspace/Sources/APIClientCore/Client/APIClient.swift:36:93: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 34 |     ///   -  Other transport-specific errors depending on the configured `HTTPTransport`
 35 |     ///      implementation (e.g. `AFError` for Alamofire).
 36 |     func requestData(from endpoint: any APIEndpoint) async throws -> (data: Data, response: HTTPURLResponse)
    |                                                                                             `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 37 |
 38 |     /// Sends a request and decodes the response body into the given `Decodable` type.
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/APIClientCore/Transport/HTTPTransport.swift:23:28: error: cannot find type 'URLRequest' in scope
21 |     ///   - `CancellationError` (if the task was cancelled)
22 |     ///   -  or custom transport-specific errors.
23 |     func data(for request: URLRequest) async throws -> (Data, HTTPURLResponse)
   |                            `- error: cannot find type 'URLRequest' in scope
24 | }
25 |
/host/spi-builder-workspace/Sources/APIClientCore/Client/APIClient.swift:90:93: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 88 | public extension APIClient {
 89 |
 90 |     func requestData(from endpoint: any APIEndpoint) async throws -> (data: Data, response: HTTPURLResponse) {
    |                                                                                             `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 91 |         let request = try RequestBuilder.build(
 92 |             from: endpoint,
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/APIClientCore/Transport/URLSessionTransport.swift:21:40: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
19 |     /// - Parameter session: The session to use for performing requests.
20 |     ///   Defaults to `.shared`.
21 |     public init(session: URLSession = .shared) {
   |                                        `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
22 |         self.session = session
23 |     }
/host/spi-builder-workspace/Sources/APIClientCore/Core/Errors/HTTPStatusError.swift:12:26: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
10 |
11 |     /// The full HTTP response associated with the error.
12 |     public let response: HTTPURLResponse
   |                          `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
13 |
14 |     /// The raw response body, if available.
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/APIClientCore/Core/Errors/HTTPStatusError.swift:17:44: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
15 |     public let data: Data?
16 |
17 |     public init(statusCode: Int, response: HTTPURLResponse, data: Data? = nil) {
   |                                            `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
18 |         self.statusCode = statusCode
19 |         self.response = response
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/APIClientCore/Core/Errors/HTTPStatusError.swift:12:16: error: stored property 'response' of 'Sendable'-conforming struct 'HTTPStatusError' has non-sendable type 'HTTPURLResponse' (aka 'AnyObject')
10 |
11 |     /// The full HTTP response associated with the error.
12 |     public let response: HTTPURLResponse
   |                `- error: stored property 'response' of 'Sendable'-conforming struct 'HTTPStatusError' has non-sendable type 'HTTPURLResponse' (aka 'AnyObject')
13 |
14 |     /// The raw response body, if available.
/host/spi-builder-workspace/Sources/APIClientCore/Core/RequestBuilder.swift:22:17: error: cannot find type 'URLRequest' in scope
20 |         baseURL: URL,
21 |         defaultHeaders: [String: String] = [:]
22 |     ) throws -> URLRequest {
   |                 `- error: cannot find type 'URLRequest' in scope
23 |         let url = try buildURL(from: endpoint, baseURL: baseURL)
24 |         return try buildRequest(url: url, endpoint: endpoint, defaultHeaders: defaultHeaders)
/host/spi-builder-workspace/Sources/APIClientCore/Core/RequestBuilder.swift:66:17: error: cannot find type 'URLRequest' in scope
64 |         endpoint: any APIEndpoint,
65 |         defaultHeaders: [String: String] = [:]
66 |     ) throws -> URLRequest {
   |                 `- error: cannot find type 'URLRequest' in scope
67 |         var request = URLRequest(url: url)
68 |         request.httpMethod = endpoint.method.rawValue
/host/spi-builder-workspace/Sources/APIClientCore/Transport/HTTPTransport.swift:23:63: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
21 |     ///   - `CancellationError` (if the task was cancelled)
22 |     ///   -  or custom transport-specific errors.
23 |     func data(for request: URLRequest) async throws -> (Data, HTTPURLResponse)
   |                                                               `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
24 | }
25 |
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/APIClientCore/Transport/URLSessionTransport.swift:15:25: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
13 | public struct URLSessionTransport: HTTPTransport, Sendable {
14 |     /// The underlying `URLSession` used to execute requests.
15 |     public let session: URLSession
   |                         `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
16 |
17 |     /// Creates a new `URLSessionTransport` instance.
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/APIClientCore/Transport/URLSessionTransport.swift:21:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
19 |     /// - Parameter session: The session to use for performing requests.
20 |     ///   Defaults to `.shared`.
21 |     public init(session: URLSession = .shared) {
   |                          `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
22 |         self.session = session
23 |     }
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/APIClientCore/Transport/URLSessionTransport.swift:34:35: error: cannot find type 'URLRequest' in scope
32 |     ///   - `URLError(.badServerResponse)` if the response is not an `HTTPURLResponse`.
33 |     ///   - `CancellationError` if the task was cancelled.
34 |     public func data(for request: URLRequest) async throws -> (Data, HTTPURLResponse) {
   |                                   `- error: cannot find type 'URLRequest' in scope
35 |         let (data, response) = try await session.data(for: request)
36 |         guard let httpResponse = response as? HTTPURLResponse else {
/host/spi-builder-workspace/Sources/APIClientCore/Transport/URLSessionTransport.swift:34:70: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
32 |     ///   - `URLError(.badServerResponse)` if the response is not an `HTTPURLResponse`.
33 |     ///   - `CancellationError` if the task was cancelled.
34 |     public func data(for request: URLRequest) async throws -> (Data, HTTPURLResponse) {
   |                                                                      `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
35 |         let (data, response) = try await session.data(for: request)
36 |         guard let httpResponse = response as? HTTPURLResponse else {
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/APIClientCore/Transport/URLSessionTransport.swift:15:16: error: stored property 'session' of 'Sendable'-conforming struct 'URLSessionTransport' has non-sendable type 'URLSession' (aka 'AnyObject')
13 | public struct URLSessionTransport: HTTPTransport, Sendable {
14 |     /// The underlying `URLSession` used to execute requests.
15 |     public let session: URLSession
   |                `- error: stored property 'session' of 'Sendable'-conforming struct 'URLSessionTransport' has non-sendable type 'URLSession' (aka 'AnyObject')
16 |
17 |     /// Creates a new `URLSessionTransport` instance.
[11/15] Compiling APIClientCore APIConfiguration.swift
/host/spi-builder-workspace/Sources/APIClientCore/Transport/HTTPTransport.swift:23:28: error: cannot find type 'URLRequest' in scope
21 |     ///   - `CancellationError` (if the task was cancelled)
22 |     ///   -  or custom transport-specific errors.
23 |     func data(for request: URLRequest) async throws -> (Data, HTTPURLResponse)
   |                            `- error: cannot find type 'URLRequest' in scope
24 | }
25 |
/host/spi-builder-workspace/Sources/APIClientCore/Transport/URLSessionTransport.swift:21:40: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
19 |     /// - Parameter session: The session to use for performing requests.
20 |     ///   Defaults to `.shared`.
21 |     public init(session: URLSession = .shared) {
   |                                        `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
22 |         self.session = session
23 |     }
[12/15] Compiling APIClientCore DataCoding.swift
/host/spi-builder-workspace/Sources/APIClientCore/Transport/HTTPTransport.swift:23:28: error: cannot find type 'URLRequest' in scope
21 |     ///   - `CancellationError` (if the task was cancelled)
22 |     ///   -  or custom transport-specific errors.
23 |     func data(for request: URLRequest) async throws -> (Data, HTTPURLResponse)
   |                            `- error: cannot find type 'URLRequest' in scope
24 | }
25 |
/host/spi-builder-workspace/Sources/APIClientCore/Transport/URLSessionTransport.swift:21:40: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
19 |     /// - Parameter session: The session to use for performing requests.
20 |     ///   Defaults to `.shared`.
21 |     public init(session: URLSession = .shared) {
   |                                        `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
22 |         self.session = session
23 |     }
[13/15] Compiling APIClientCore APIClient.swift
/host/spi-builder-workspace/Sources/APIClientCore/Client/APIClient.swift:36:93: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 34 |     ///   -  Other transport-specific errors depending on the configured `HTTPTransport`
 35 |     ///      implementation (e.g. `AFError` for Alamofire).
 36 |     func requestData(from endpoint: any APIEndpoint) async throws -> (data: Data, response: HTTPURLResponse)
    |                                                                                             `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 37 |
 38 |     /// Sends a request and decodes the response body into the given `Decodable` type.
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/APIClientCore/Transport/HTTPTransport.swift:23:28: error: cannot find type 'URLRequest' in scope
21 |     ///   - `CancellationError` (if the task was cancelled)
22 |     ///   -  or custom transport-specific errors.
23 |     func data(for request: URLRequest) async throws -> (Data, HTTPURLResponse)
   |                            `- error: cannot find type 'URLRequest' in scope
24 | }
25 |
/host/spi-builder-workspace/Sources/APIClientCore/Client/APIClient.swift:90:93: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 88 | public extension APIClient {
 89 |
 90 |     func requestData(from endpoint: any APIEndpoint) async throws -> (data: Data, response: HTTPURLResponse) {
    |                                                                                             `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 91 |         let request = try RequestBuilder.build(
 92 |             from: endpoint,
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/APIClientCore/Core/RequestBuilder.swift:22:17: error: cannot find type 'URLRequest' in scope
20 |         baseURL: URL,
21 |         defaultHeaders: [String: String] = [:]
22 |     ) throws -> URLRequest {
   |                 `- error: cannot find type 'URLRequest' in scope
23 |         let url = try buildURL(from: endpoint, baseURL: baseURL)
24 |         return try buildRequest(url: url, endpoint: endpoint, defaultHeaders: defaultHeaders)
[14/15] Compiling APIClientCore DefaultAPIClient.swift
/host/spi-builder-workspace/Sources/APIClientCore/Client/APIClient.swift:36:93: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 34 |     ///   -  Other transport-specific errors depending on the configured `HTTPTransport`
 35 |     ///      implementation (e.g. `AFError` for Alamofire).
 36 |     func requestData(from endpoint: any APIEndpoint) async throws -> (data: Data, response: HTTPURLResponse)
    |                                                                                             `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 37 |
 38 |     /// Sends a request and decodes the response body into the given `Decodable` type.
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/APIClientCore/Transport/HTTPTransport.swift:23:28: error: cannot find type 'URLRequest' in scope
21 |     ///   - `CancellationError` (if the task was cancelled)
22 |     ///   -  or custom transport-specific errors.
23 |     func data(for request: URLRequest) async throws -> (Data, HTTPURLResponse)
   |                            `- error: cannot find type 'URLRequest' in scope
24 | }
25 |
/host/spi-builder-workspace/Sources/APIClientCore/Client/APIClient.swift:90:93: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 88 | public extension APIClient {
 89 |
 90 |     func requestData(from endpoint: any APIEndpoint) async throws -> (data: Data, response: HTTPURLResponse) {
    |                                                                                             `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 91 |         let request = try RequestBuilder.build(
 92 |             from: endpoint,
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/APIClientCore/Core/RequestBuilder.swift:22:17: error: cannot find type 'URLRequest' in scope
20 |         baseURL: URL,
21 |         defaultHeaders: [String: String] = [:]
22 |     ) throws -> URLRequest {
   |                 `- error: cannot find type 'URLRequest' in scope
23 |         let url = try buildURL(from: endpoint, baseURL: baseURL)
24 |         return try buildRequest(url: url, endpoint: endpoint, defaultHeaders: defaultHeaders)
[15/15] Compiling APIClientCore URLSessionTransport.swift
/host/spi-builder-workspace/Sources/APIClientCore/Transport/URLSessionTransport.swift:15:25: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
13 | public struct URLSessionTransport: HTTPTransport, Sendable {
14 |     /// The underlying `URLSession` used to execute requests.
15 |     public let session: URLSession
   |                         `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
16 |
17 |     /// Creates a new `URLSessionTransport` instance.
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/APIClientCore/Transport/URLSessionTransport.swift:21:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
19 |     /// - Parameter session: The session to use for performing requests.
20 |     ///   Defaults to `.shared`.
21 |     public init(session: URLSession = .shared) {
   |                          `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
22 |         self.session = session
23 |     }
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/APIClientCore/Transport/URLSessionTransport.swift:21:40: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
19 |     /// - Parameter session: The session to use for performing requests.
20 |     ///   Defaults to `.shared`.
21 |     public init(session: URLSession = .shared) {
   |                                        `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
22 |         self.session = session
23 |     }
/host/spi-builder-workspace/Sources/APIClientCore/Transport/URLSessionTransport.swift:34:35: error: cannot find type 'URLRequest' in scope
32 |     ///   - `URLError(.badServerResponse)` if the response is not an `HTTPURLResponse`.
33 |     ///   - `CancellationError` if the task was cancelled.
34 |     public func data(for request: URLRequest) async throws -> (Data, HTTPURLResponse) {
   |                                   `- error: cannot find type 'URLRequest' in scope
35 |         let (data, response) = try await session.data(for: request)
36 |         guard let httpResponse = response as? HTTPURLResponse else {
/host/spi-builder-workspace/Sources/APIClientCore/Transport/URLSessionTransport.swift:34:70: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
32 |     ///   - `URLError(.badServerResponse)` if the response is not an `HTTPURLResponse`.
33 |     ///   - `CancellationError` if the task was cancelled.
34 |     public func data(for request: URLRequest) async throws -> (Data, HTTPURLResponse) {
   |                                                                      `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
35 |         let (data, response) = try await session.data(for: request)
36 |         guard let httpResponse = response as? HTTPURLResponse else {
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/APIClientCore/Transport/URLSessionTransport.swift:15:16: error: stored property 'session' of 'Sendable'-conforming struct 'URLSessionTransport' has non-sendable type 'URLSession' (aka 'AnyObject')
13 | public struct URLSessionTransport: HTTPTransport, Sendable {
14 |     /// The underlying `URLSession` used to execute requests.
15 |     public let session: URLSession
   |                `- error: stored property 'session' of 'Sendable'-conforming struct 'URLSessionTransport' has non-sendable type 'URLSession' (aka 'AnyObject')
16 |
17 |     /// Creates a new `URLSessionTransport` instance.
/host/spi-builder-workspace/Sources/APIClientCore/Transport/HTTPTransport.swift:23:28: error: cannot find type 'URLRequest' in scope
21 |     ///   - `CancellationError` (if the task was cancelled)
22 |     ///   -  or custom transport-specific errors.
23 |     func data(for request: URLRequest) async throws -> (Data, HTTPURLResponse)
   |                            `- error: cannot find type 'URLRequest' in scope
24 | }
25 |
/host/spi-builder-workspace/Sources/APIClientCore/Transport/URLSessionTransport.swift:35:50: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
33 |     ///   - `CancellationError` if the task was cancelled.
34 |     public func data(for request: URLRequest) async throws -> (Data, HTTPURLResponse) {
35 |         let (data, response) = try await session.data(for: request)
   |                                                  `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
36 |         guard let httpResponse = response as? HTTPURLResponse else {
37 |             throw URLError(.badServerResponse)
BUILD FAILURE 6.1 android