The Swift Package Index logo.Swift Package Index

Build Information

Failed to build JSONHTTPClient, reference develop (345021), with Swift 6.3 for Android on 21 Apr 2026 16:33:38 UTC.

Build Command

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

Build Log

========================================
RunAll
========================================
Builder version: 4.70.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/otaviokz/JSONHTTPClient.git
Reference: develop
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
 * branch            develop    -> FETCH_HEAD
 * [new branch]      develop    -> origin/develop
HEAD is now at 3450210 Merge pull request #3 from otaviokz/v1.1.0
Cloned https://github.com/otaviokz/JSONHTTPClient.git
Revision (git rev-parse @):
34502106a676cac3d86209814a9bb99ddab66ea2
SUCCESS checkout https://github.com/otaviokz/JSONHTTPClient.git at develop
========================================
Build
========================================
Selected platform:         android
Swift version:             6.3
Building package at path:  $PWD
https://github.com/otaviokz/JSONHTTPClient.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/swiftpackageindex/spi-images:android-6.3-latest swift build --swift-sdk aarch64-unknown-linux-android28 2>&1
android-6.3-latest: Pulling from swiftpackageindex/spi-images
Digest: sha256:9008270ea37a55e78725e6225015adb5eff8582da520c5232bf0499f32c36dc4
Status: Image is up to date for registry.gitlab.com/swiftpackageindex/spi-images:android-6.3-latest
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version--4F562202D5529B1.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[3/6] Compiling JSONHTTPClient JSONHTTPClientError.swift
[4/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
[5/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 {
[6/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 |     }
BUILD FAILURE 6.3 android