Build Information
Failed to build JSONHTTPClient, reference v1.1.0 (23c167
), with Swift 6.2 (beta) for Android on 21 Jun 2025 15:54:58 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4606859-2":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:android-6.2-latest swift build --swift-sdk aarch64-unknown-linux-android28 2>&1
Build Log
========================================
RunAll
========================================
Builder version: 4.64.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/otaviokz/JSONHTTPClient.git
Reference: v1.1.0
Initialized empty Git repository in /host/spi-builder-workspace/.git/
hint: Using 'master' as the name for the initial branch. This default branch name
hint: is subject to change. To configure the initial branch name to use in all
hint: of your new repositories, which will suppress this warning, call:
hint:
hint: git config --global init.defaultBranch <name>
hint:
hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and
hint: 'development'. The just-created branch can be renamed via this command:
hint:
hint: git branch -m <name>
From https://github.com/otaviokz/JSONHTTPClient
* tag v1.1.0 -> FETCH_HEAD
HEAD is now at 23c1671 Merge pull request #2 from otaviokz/v1.0.3
Cloned https://github.com/otaviokz/JSONHTTPClient.git
Revision (git rev-parse @):
23c1671af60dcc61b447386db2fae27981a2fd6a
SUCCESS checkout https://github.com/otaviokz/JSONHTTPClient.git at v1.1.0
========================================
Build
========================================
Selected platform: android
Swift version: 6.2
Building package at path: $PWD
https://github.com/otaviokz/JSONHTTPClient.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-2":/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/6] Compiling JSONHTTPClient URLRequests+Utils.swift
/host/spi-builder-workspace/Sources/JSONHTTPClient/URLRequests+Utils.swift:15:11: error: cannot find type 'URLRequest' in scope
13 | }
14 |
15 | extension URLRequest {
| `- error: cannot find type 'URLRequest' in scope
16 | private func method(_ method: HTTPMethod) -> URLRequest {
17 | var request = self
/host/spi-builder-workspace/Sources/JSONHTTPClient/URLRequests+Utils.swift:16:50: error: cannot find type 'URLRequest' in scope
14 |
15 | extension URLRequest {
16 | private func method(_ method: HTTPMethod) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
17 | var request = self
18 | request.httpMethod = method.rawValue
/host/spi-builder-workspace/Sources/JSONHTTPClient/URLRequests+Utils.swift:22:32: error: cannot find type 'URLRequest' in scope
20 | }
21 |
22 | func body(_ body: Data) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
23 | var request = self
24 | request.httpBody = body
/host/spi-builder-workspace/Sources/JSONHTTPClient/URLRequests+Utils.swift:28:56: error: cannot find type 'URLRequest' in scope
26 | }
27 |
28 | static func postData(_ body: Data, to url: URL) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
29 | URLRequest(url: url).method(.post).body(body)
30 | }
/host/spi-builder-workspace/Sources/JSONHTTPClient/URLRequests+Utils.swift:32:56: error: cannot find type 'URLRequest' in scope
30 | }
31 |
32 | static func postJSON(_ body: Data, to url: URL) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
33 | postData(body, to: url).withJSONHeaders()
34 | }
/host/spi-builder-workspace/Sources/JSONHTTPClient/URLRequests+Utils.swift:49:88: error: cannot find type 'URLRequest' in scope
47 | }
48 |
49 | static func get(_ url: URL, cachePolicy: CachePolicy = .useProtocolCachePolicy) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
50 | URLRequest(url: url, cachePolicy: cachePolicy).method(.get)
51 | }
/host/spi-builder-workspace/Sources/JSONHTTPClient/URLRequests+Utils.swift:49:46: error: cannot find type 'CachePolicy' in scope
47 | }
48 |
49 | static func get(_ url: URL, cachePolicy: CachePolicy = .useProtocolCachePolicy) -> URLRequest {
| `- error: cannot find type 'CachePolicy' in scope
50 | URLRequest(url: url, cachePolicy: cachePolicy).method(.get)
51 | }
error: emit-module command failed with exit code 1 (use -v to see invocation)
[4/6] Compiling JSONHTTPClient JSONHTTPClientError.swift
[5/6] Emitting module JSONHTTPClient
/host/spi-builder-workspace/Sources/JSONHTTPClient/JSONHTTPClient.swift:30:43: error: cannot find type 'URLRequest' in scope
28 | @available(iOS 13.0.0, *)
29 | private extension JSONHTTPClient {
30 | func connect<T: Decodable>(_ request: URLRequest) async throws -> T {
| `- error: cannot find type 'URLRequest' in scope
31 | let (data, rulResponse) = try await URLSession.shared.data(for: request)
32 | if let httpUrlResponse = rulResponse as? HTTPURLResponse {
/host/spi-builder-workspace/Sources/JSONHTTPClient/URLRequests+Utils.swift:15:11: error: cannot find type 'URLRequest' in scope
13 | }
14 |
15 | extension URLRequest {
| `- error: cannot find type 'URLRequest' in scope
16 | private func method(_ method: HTTPMethod) -> URLRequest {
17 | var request = self
[6/6] Compiling JSONHTTPClient JSONHTTPClient.swift
/host/spi-builder-workspace/Sources/JSONHTTPClient/JSONHTTPClient.swift:30:43: error: cannot find type 'URLRequest' in scope
28 | @available(iOS 13.0.0, *)
29 | private extension JSONHTTPClient {
30 | func connect<T: Decodable>(_ request: URLRequest) async throws -> T {
| `- error: cannot find type 'URLRequest' in scope
31 | let (data, rulResponse) = try await URLSession.shared.data(for: request)
32 | if let httpUrlResponse = rulResponse as? HTTPURLResponse {
/host/spi-builder-workspace/Sources/JSONHTTPClient/JSONHTTPClient.swift:19:28: error: cannot infer contextual base in reference to member 'get'
17 |
18 | public func get<T: Decodable>(_ url: URL, httpHeaders: [String: String]?) async throws -> T {
19 | try await connect(.get(url).headers(httpHeaders))
| `- error: cannot infer contextual base in reference to member 'get'
20 |
21 | }
/host/spi-builder-workspace/Sources/JSONHTTPClient/JSONHTTPClient.swift:24:28: error: cannot infer contextual base in reference to member 'postJSON'
22 |
23 | public func postJSON<T: Decodable>(_ url: URL, body: Data, httpHeaders: [String: String]?) async throws -> T {
24 | try await connect(.postJSON(body, to: url).headers(httpHeaders))
| `- error: cannot infer contextual base in reference to member 'postJSON'
25 | }
26 | }
/host/spi-builder-workspace/Sources/JSONHTTPClient/JSONHTTPClient.swift:31:56: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
29 | private extension JSONHTTPClient {
30 | func connect<T: Decodable>(_ request: URLRequest) async throws -> T {
31 | let (data, rulResponse) = try await URLSession.shared.data(for: request)
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
32 | if let httpUrlResponse = rulResponse as? HTTPURLResponse {
33 | guard httpUrlResponse.statusCode == 200 else {
BUILD FAILURE 6.2 android