Build Information
Failed to build HTTP Client, reference main (89a069), with Swift 6.2 for Android on 22 Jun 2025 21:00:42 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4609320-3":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:android-6.2-latest swift build --swift-sdk aarch64-unknown-linux-android28 2>&1Build Log
========================================
RunAll
========================================
Builder version: 4.64.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/joemasilotti/HTTP-Client.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/joemasilotti/HTTP-Client
* branch main -> FETCH_HEAD
* [new branch] main -> origin/main
HEAD is now at 89a0698 Update README.md
Cloned https://github.com/joemasilotti/HTTP-Client.git
Revision (git rev-parse @):
89a0698e2db9efd95c0299adfba53bd8a2a7e3f3
SUCCESS checkout https://github.com/joemasilotti/HTTP-Client.git at main
========================================
Build
========================================
Selected platform: android
Swift version: 6.2
Building package at path: $PWD
https://github.com/joemasilotti/HTTP-Client.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-3":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:android-6.2-latest swift build --swift-sdk aarch64-unknown-linux-android28 2>&1
android-6.2-latest: Pulling from finestructure/spi-images
Digest: sha256:b7c4a6b4153ff40ef9277e2157e708f835b8eb011095d53bd8db4594eb2b7798
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:android-6.2-latest
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-8C5A4AE7A8CE2BA.txt
[3/11] Compiling HTTP Method.swift
[4/12] Compiling HTTP Response.swift
[5/12] Compiling HTTP HTTPError.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[6/12] Compiling HTTP Empty.swift
[7/12] Emitting module HTTP
/host/spi-builder-workspace/Sources/HTTP/BodyRequest.swift:11:49: error: cannot find type 'URLRequest' in scope
9 | // MARK: Internal
10 |
11 | override func addToRequest(_ request: inout URLRequest) {
| `- error: cannot find type 'URLRequest' in scope
12 | let encoder = JSONEncoder()
13 | encoder.keyEncodingStrategy = Global.keyEncodingStrategy
/host/spi-builder-workspace/Sources/HTTP/RequestLoader.swift:4:26: error: cannot find type 'URLRequest' in scope
2 |
3 | public protocol RequestLoader {
4 | func load(_ request: URLRequest) async throws -> (Data, URLResponse)
| `- error: cannot find type 'URLRequest' in scope
5 | }
6 |
/host/spi-builder-workspace/Sources/HTTP/Client.swift:17:36: error: cannot find type 'URLRequest' in scope
15 |
16 | @MainActor
17 | public func request(_ request: URLRequest) async -> ClientResult<T, E> {
| `- error: cannot find type 'URLRequest' in scope
18 | do {
19 | let (data, response) = try await requestLoader.load(request)
/host/spi-builder-workspace/Sources/HTTP/Client.swift:30:45: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
28 | private let requestLoader: RequestLoader
29 |
30 | private func handleResponse(_ response: URLResponse, with data: Data) -> ClientResult<T, E> {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
31 | guard let response = response as? HTTPURLResponse
32 | else { return .failure(.failedRequest(nil)) }
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/HTTP/Global.swift:7:65: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
5 | public static var keyEncodingStrategy: JSONEncoder.KeyEncodingStrategy = .convertToSnakeCase
6 | public static var userAgent: String?
7 | public static var requestLoader: RequestLoader = URLSession.shared
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
8 |
9 | static func resetToDefaults() {
/host/spi-builder-workspace/Sources/HTTP/Request.swift:19:23: error: cannot find type 'URLRequest' in scope
17 | // MARK: Internal
18 |
19 | var asURLRequest: URLRequest {
| `- error: cannot find type 'URLRequest' in scope
20 | var request = URLRequest(url: url)
21 | request.httpMethod = method.rawValue
/host/spi-builder-workspace/Sources/HTTP/Request.swift:27:40: error: cannot find type 'URLRequest' in scope
25 | }
26 |
27 | func addToRequest(_ request: inout URLRequest) {}
| `- error: cannot find type 'URLRequest' in scope
28 |
29 | // MARK: Private
/host/spi-builder-workspace/Sources/HTTP/RequestLoader.swift:4:61: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
2 |
3 | public protocol RequestLoader {
4 | func load(_ request: URLRequest) async throws -> (Data, URLResponse)
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
5 | }
6 |
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/HTTP/RequestLoader.swift:7:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
5 | }
6 |
7 | extension URLSession: RequestLoader {
| `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
8 | public func load(_ request: URLRequest) async throws -> (Data, URLResponse) {
9 | if #available(iOS 15.0, macOS 12.0, *) {
[#NominalTypes]: <https://docs.swift.org/compiler/documentation/diagnostics/nominal-types>
[8/12] Compiling HTTP BodyRequest.swift
/host/spi-builder-workspace/Sources/HTTP/BodyRequest.swift:11:49: error: cannot find type 'URLRequest' in scope
9 | // MARK: Internal
10 |
11 | override func addToRequest(_ request: inout URLRequest) {
| `- error: cannot find type 'URLRequest' in scope
12 | let encoder = JSONEncoder()
13 | encoder.keyEncodingStrategy = Global.keyEncodingStrategy
/host/spi-builder-workspace/Sources/HTTP/RequestLoader.swift:4:26: error: cannot find type 'URLRequest' in scope
2 |
3 | public protocol RequestLoader {
4 | func load(_ request: URLRequest) async throws -> (Data, URLResponse)
| `- error: cannot find type 'URLRequest' in scope
5 | }
6 |
/host/spi-builder-workspace/Sources/HTTP/Client.swift:17:36: error: cannot find type 'URLRequest' in scope
15 |
16 | @MainActor
17 | public func request(_ request: URLRequest) async -> ClientResult<T, E> {
| `- error: cannot find type 'URLRequest' in scope
18 | do {
19 | let (data, response) = try await requestLoader.load(request)
/host/spi-builder-workspace/Sources/HTTP/Client.swift:30:45: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
28 | private let requestLoader: RequestLoader
29 |
30 | private func handleResponse(_ response: URLResponse, with data: Data) -> ClientResult<T, E> {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
31 | guard let response = response as? HTTPURLResponse
32 | else { return .failure(.failedRequest(nil)) }
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/HTTP/Request.swift:19:23: error: cannot find type 'URLRequest' in scope
17 | // MARK: Internal
18 |
19 | var asURLRequest: URLRequest {
| `- error: cannot find type 'URLRequest' in scope
20 | var request = URLRequest(url: url)
21 | request.httpMethod = method.rawValue
/host/spi-builder-workspace/Sources/HTTP/Client.swift:31:39: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
29 |
30 | private func handleResponse(_ response: URLResponse, with data: Data) -> ClientResult<T, E> {
31 | guard let response = response as? HTTPURLResponse
| `- warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
32 | else { return .failure(.failedRequest(nil)) }
33 |
/host/spi-builder-workspace/Sources/HTTP/Client.swift:31:43: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
29 |
30 | private func handleResponse(_ response: URLResponse, with data: Data) -> ClientResult<T, E> {
31 | guard let response = response as? HTTPURLResponse
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
32 | else { return .failure(.failedRequest(nil)) }
33 |
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/HTTP/Client.swift:34:44: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
32 | else { return .failure(.failedRequest(nil)) }
33 |
34 | if (200 ..< 300).contains(response.statusCode) {
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
35 | return handleSuccess(data, headers: response.allHeaderFields, statusCode: response.statusCode)
36 | } else {
/host/spi-builder-workspace/Sources/HTTP/Client.swift:35:58: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
33 |
34 | if (200 ..< 300).contains(response.statusCode) {
35 | return handleSuccess(data, headers: response.allHeaderFields, statusCode: response.statusCode)
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
36 | } else {
37 | return handleFailure(data, statusCode: response.statusCode)
/host/spi-builder-workspace/Sources/HTTP/Client.swift:35:96: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
33 |
34 | if (200 ..< 300).contains(response.statusCode) {
35 | return handleSuccess(data, headers: response.allHeaderFields, statusCode: response.statusCode)
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
36 | } else {
37 | return handleFailure(data, statusCode: response.statusCode)
/host/spi-builder-workspace/Sources/HTTP/Client.swift:37:61: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
35 | return handleSuccess(data, headers: response.allHeaderFields, statusCode: response.statusCode)
36 | } else {
37 | return handleFailure(data, statusCode: response.statusCode)
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
38 | }
39 | }
[9/12] Compiling HTTP Client.swift
/host/spi-builder-workspace/Sources/HTTP/BodyRequest.swift:11:49: error: cannot find type 'URLRequest' in scope
9 | // MARK: Internal
10 |
11 | override func addToRequest(_ request: inout URLRequest) {
| `- error: cannot find type 'URLRequest' in scope
12 | let encoder = JSONEncoder()
13 | encoder.keyEncodingStrategy = Global.keyEncodingStrategy
/host/spi-builder-workspace/Sources/HTTP/RequestLoader.swift:4:26: error: cannot find type 'URLRequest' in scope
2 |
3 | public protocol RequestLoader {
4 | func load(_ request: URLRequest) async throws -> (Data, URLResponse)
| `- error: cannot find type 'URLRequest' in scope
5 | }
6 |
/host/spi-builder-workspace/Sources/HTTP/Client.swift:17:36: error: cannot find type 'URLRequest' in scope
15 |
16 | @MainActor
17 | public func request(_ request: URLRequest) async -> ClientResult<T, E> {
| `- error: cannot find type 'URLRequest' in scope
18 | do {
19 | let (data, response) = try await requestLoader.load(request)
/host/spi-builder-workspace/Sources/HTTP/Client.swift:30:45: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
28 | private let requestLoader: RequestLoader
29 |
30 | private func handleResponse(_ response: URLResponse, with data: Data) -> ClientResult<T, E> {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
31 | guard let response = response as? HTTPURLResponse
32 | else { return .failure(.failedRequest(nil)) }
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/HTTP/Request.swift:19:23: error: cannot find type 'URLRequest' in scope
17 | // MARK: Internal
18 |
19 | var asURLRequest: URLRequest {
| `- error: cannot find type 'URLRequest' in scope
20 | var request = URLRequest(url: url)
21 | request.httpMethod = method.rawValue
/host/spi-builder-workspace/Sources/HTTP/Client.swift:31:39: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
29 |
30 | private func handleResponse(_ response: URLResponse, with data: Data) -> ClientResult<T, E> {
31 | guard let response = response as? HTTPURLResponse
| `- warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
32 | else { return .failure(.failedRequest(nil)) }
33 |
/host/spi-builder-workspace/Sources/HTTP/Client.swift:31:43: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
29 |
30 | private func handleResponse(_ response: URLResponse, with data: Data) -> ClientResult<T, E> {
31 | guard let response = response as? HTTPURLResponse
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
32 | else { return .failure(.failedRequest(nil)) }
33 |
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/HTTP/Client.swift:34:44: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
32 | else { return .failure(.failedRequest(nil)) }
33 |
34 | if (200 ..< 300).contains(response.statusCode) {
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
35 | return handleSuccess(data, headers: response.allHeaderFields, statusCode: response.statusCode)
36 | } else {
/host/spi-builder-workspace/Sources/HTTP/Client.swift:35:58: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
33 |
34 | if (200 ..< 300).contains(response.statusCode) {
35 | return handleSuccess(data, headers: response.allHeaderFields, statusCode: response.statusCode)
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
36 | } else {
37 | return handleFailure(data, statusCode: response.statusCode)
/host/spi-builder-workspace/Sources/HTTP/Client.swift:35:96: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
33 |
34 | if (200 ..< 300).contains(response.statusCode) {
35 | return handleSuccess(data, headers: response.allHeaderFields, statusCode: response.statusCode)
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
36 | } else {
37 | return handleFailure(data, statusCode: response.statusCode)
/host/spi-builder-workspace/Sources/HTTP/Client.swift:37:61: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
35 | return handleSuccess(data, headers: response.allHeaderFields, statusCode: response.statusCode)
36 | } else {
37 | return handleFailure(data, statusCode: response.statusCode)
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
38 | }
39 | }
[10/12] Compiling HTTP Global.swift
/host/spi-builder-workspace/Sources/HTTP/Global.swift:7:65: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
5 | public static var keyEncodingStrategy: JSONEncoder.KeyEncodingStrategy = .convertToSnakeCase
6 | public static var userAgent: String?
7 | public static var requestLoader: RequestLoader = URLSession.shared
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
8 |
9 | static func resetToDefaults() {
/host/spi-builder-workspace/Sources/HTTP/Global.swift:13:36: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
11 | keyEncodingStrategy = .convertToSnakeCase
12 | userAgent = nil
13 | requestLoader = URLSession.shared
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
14 | }
15 | }
[11/12] Compiling HTTP RequestLoader.swift
/host/spi-builder-workspace/Sources/HTTP/RequestLoader.swift:4:26: error: cannot find type 'URLRequest' in scope
2 |
3 | public protocol RequestLoader {
4 | func load(_ request: URLRequest) async throws -> (Data, URLResponse)
| `- error: cannot find type 'URLRequest' in scope
5 | }
6 |
/host/spi-builder-workspace/Sources/HTTP/RequestLoader.swift:4:61: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
2 |
3 | public protocol RequestLoader {
4 | func load(_ request: URLRequest) async throws -> (Data, URLResponse)
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
5 | }
6 |
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/HTTP/RequestLoader.swift:7:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
5 | }
6 |
7 | extension URLSession: RequestLoader {
| `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
8 | public func load(_ request: URLRequest) async throws -> (Data, URLResponse) {
9 | if #available(iOS 15.0, macOS 12.0, *) {
/host/spi-builder-workspace/Sources/HTTP/RequestLoader.swift:8:33: error: cannot find type 'URLRequest' in scope
6 |
7 | extension URLSession: RequestLoader {
8 | public func load(_ request: URLRequest) async throws -> (Data, URLResponse) {
| `- error: cannot find type 'URLRequest' in scope
9 | if #available(iOS 15.0, macOS 12.0, *) {
10 | return try await data(for: request)
/host/spi-builder-workspace/Sources/HTTP/RequestLoader.swift:16:37: error: cannot find type 'URLRequest' in scope
14 | }
15 |
16 | private func _data(for request: URLRequest) async throws -> (Data, URLResponse) {
| `- error: cannot find type 'URLRequest' in scope
17 | try await withCheckedThrowingContinuation { continuation in
18 | let task = self.dataTask(with: request) { data, response, error in
[#NominalTypes]: <https://docs.swift.org/compiler/documentation/diagnostics/nominal-types>
[12/12] Compiling HTTP Request.swift
/host/spi-builder-workspace/Sources/HTTP/Request.swift:19:23: error: cannot find type 'URLRequest' in scope
17 | // MARK: Internal
18 |
19 | var asURLRequest: URLRequest {
| `- error: cannot find type 'URLRequest' in scope
20 | var request = URLRequest(url: url)
21 | request.httpMethod = method.rawValue
/host/spi-builder-workspace/Sources/HTTP/Request.swift:27:40: error: cannot find type 'URLRequest' in scope
25 | }
26 |
27 | func addToRequest(_ request: inout URLRequest) {}
| `- error: cannot find type 'URLRequest' in scope
28 |
29 | // MARK: Private
/host/spi-builder-workspace/Sources/HTTP/Request.swift:20:23: error: cannot find 'URLRequest' in scope
18 |
19 | var asURLRequest: URLRequest {
20 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
21 | request.httpMethod = method.rawValue
22 | request.allHTTPHeaderFields = headers
BUILD FAILURE 6.2 android