The Swift Package Index logo.Swift Package Index

Build Information

Failed to build APIClientCore, reference main (99ce9a), with Swift 6.3 for Linux on 17 Apr 2026 05:55:31 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4609320-2":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/swiftpackageindex/spi-images:basic-6.3-latest swift build --triple x86_64-unknown-linux-gnu 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.70.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:         linux
Swift version:             6.3
Building package at path:  $PWD
https://github.com/zino-88/APIClientCore.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-2":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/swiftpackageindex/spi-images:basic-6.3-latest swift build --triple x86_64-unknown-linux-gnu 2>&1
basic-6.3-latest: Pulling from swiftpackageindex/spi-images
Digest: sha256:5a7d791d2ead8a924b1292cb31bf3288eabcfe8880e0b005b00b45b71a5bc36a
Status: Image is up to date for registry.gitlab.com/swiftpackageindex/spi-images:basic-6.3-latest
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-24593BA9C3E375BF.txt
[3/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
[4/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:21:40: error: value of type '_' expected to be instance of class or class-constrained type
19 |     /// - Parameter session: The session to use for performing requests.
20 |     ///   Defaults to `.shared`.
21 |     public init(session: URLSession = .shared) {
   |                                        `- error: value of type '_' expected to be instance of class or class-constrained type
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 '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 '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)
[5/16] Compiling APIClientCore APIEndpoint.swift
[6/16] 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/16] 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 |
[8/16] Compiling APIClientCore JSONCoder+Convenience.swift
/host/spi-builder-workspace/Sources/APIClientCore/Core/DataCoding/PropertyListCoder+Convenience.swift:24:28: warning: type 'Any' does not conform to the 'Sendable' protocol
22 |         let encoder = PropertyListEncoder()
23 |         encoder.outputFormat = outputFormat
24 |         encoder.userInfo = userInfo
   |                            `- warning: type 'Any' does not conform to the 'Sendable' protocol
25 |         return encoder
26 |     }
/host/spi-builder-workspace/Sources/APIClientCore/Core/DataCoding/PropertyListCoder+Convenience.swift:34:28: warning: type 'Any' does not conform to the 'Sendable' protocol
32 |     static func configured(userInfo: [CodingUserInfoKey: Any]) -> PropertyListDecoder {
33 |         let decoder = PropertyListDecoder()
34 |         decoder.userInfo = userInfo
   |                            `- warning: type 'Any' does not conform to the 'Sendable' protocol
35 |         return decoder
36 |     }
[9/16] Compiling APIClientCore PropertyListCoder+Convenience.swift
/host/spi-builder-workspace/Sources/APIClientCore/Core/DataCoding/PropertyListCoder+Convenience.swift:24:28: warning: type 'Any' does not conform to the 'Sendable' protocol
22 |         let encoder = PropertyListEncoder()
23 |         encoder.outputFormat = outputFormat
24 |         encoder.userInfo = userInfo
   |                            `- warning: type 'Any' does not conform to the 'Sendable' protocol
25 |         return encoder
26 |     }
/host/spi-builder-workspace/Sources/APIClientCore/Core/DataCoding/PropertyListCoder+Convenience.swift:34:28: warning: type 'Any' does not conform to the 'Sendable' protocol
32 |     static func configured(userInfo: [CodingUserInfoKey: Any]) -> PropertyListDecoder {
33 |         let decoder = PropertyListDecoder()
34 |         decoder.userInfo = userInfo
   |                            `- warning: type 'Any' does not conform to the 'Sendable' protocol
35 |         return decoder
36 |     }
error: emit-module command failed with exit code 1 (use -v to see invocation)
[10/16] 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 '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 '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 |     }
[11/16] 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 '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 '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 |     }
[12/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/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/Transport/URLSessionTransport.swift:21:40: error: value of type '_' expected to be instance of class or class-constrained type
19 |     /// - Parameter session: The session to use for performing requests.
20 |     ///   Defaults to `.shared`.
21 |     public init(session: URLSession = .shared) {
   |                                        `- error: value of type '_' expected to be instance of class or class-constrained type
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 '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 '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: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
/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 '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 'AnyObject'
16 |
17 |     /// Creates a new `URLSessionTransport` instance.
[13/16] Compiling APIClientCore APIConfiguration.swift
/host/spi-builder-workspace/Sources/APIClientCore/Transport/URLSessionTransport.swift:21:40: error: value of type '_' expected to be instance of class or class-constrained type
19 |     /// - Parameter session: The session to use for performing requests.
20 |     ///   Defaults to `.shared`.
21 |     public init(session: URLSession = .shared) {
   |                                        `- error: value of type '_' expected to be instance of class or class-constrained type
22 |         self.session = session
23 |     }
/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 DataCoding.swift
/host/spi-builder-workspace/Sources/APIClientCore/Transport/URLSessionTransport.swift:21:40: error: value of type '_' expected to be instance of class or class-constrained type
19 |     /// - Parameter session: The session to use for performing requests.
20 |     ///   Defaults to `.shared`.
21 |     public init(session: URLSession = .shared) {
   |                                        `- error: value of type '_' expected to be instance of class or class-constrained type
22 |         self.session = session
23 |     }
/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 |     }
[15/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/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)
/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 |
[16/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/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)
/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 |
BUILD FAILURE 6.3 linux