Build Information
Failed to build JityApiClient, reference 1.0.2 (7d476b), with Swift 6.3 for Android on 14 May 2026 06:31:00 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4606859-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>&1Build Log
========================================
RunAll
========================================
Builder version: 4.70.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/Vritti-ai/jity-api-client-swift.git
Reference: 1.0.2
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/Vritti-ai/jity-api-client-swift
* tag 1.0.2 -> FETCH_HEAD
HEAD is now at 7d476bc added license mit
Cloned https://github.com/Vritti-ai/jity-api-client-swift.git
Revision (git rev-parse @):
7d476bc8e2c236137adc49d5c3504871da44e179
SPI manifest file found: $PWD/.spi.yml
SUCCESS checkout https://github.com/Vritti-ai/jity-api-client-swift.git at 1.0.2
========================================
Build
========================================
Selected platform: android
Swift version: 6.3
Building package at path: $PWD
https://github.com/Vritti-ai/jity-api-client-swift.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-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] Emitting module JityApiClient
/host/spi-builder-workspace/Sources/JityApiClient/JityContentApi.swift:7:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
5 | private let authHeader: String
6 | private let enableLogging: Bool
7 | private let session: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
8 |
9 | public init(options: JityContentApiOptions) throws {
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
[4/6] Compiling JityApiClient JityContentApi.swift
/host/spi-builder-workspace/Sources/JityApiClient/JityContentApi.swift:7:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
5 | private let authHeader: String
6 | private let enableLogging: Bool
7 | private let session: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
8 |
9 | public init(options: JityContentApiOptions) throws {
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/JityApiClient/JityContentApi.swift:19:25: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
17 | self.baseURL = url
18 | self.enableLogging = options.enableLogging
19 | self.session = .shared
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
20 |
21 | let credentials = "\(options.clientId):\(options.apiKey)"
/host/spi-builder-workspace/Sources/JityApiClient/JityContentApi.swift:35:23: error: cannot find 'URLRequest' in scope
33 | guard let url = components.url else { throw JityApiError.unknown }
34 |
35 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
36 | request.httpMethod = "GET"
37 | request.setValue("application/json", forHTTPHeaderField: "Content-Type")
/host/spi-builder-workspace/Sources/JityApiClient/JityContentApi.swift:45:23: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
43 |
44 | let data: Data
45 | let response: URLResponse
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
46 | do {
47 | (data, response) = try await session.data(for: request)
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/JityApiClient/JityContentApi.swift:47:50: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
45 | let response: URLResponse
46 | do {
47 | (data, response) = try await session.data(for: request)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
48 | } catch {
49 | if enableLogging { print("❌ [Network Error] \(error)") }
/host/spi-builder-workspace/Sources/JityApiClient/JityContentApi.swift:53:32: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
51 | }
52 |
53 | if let http = response as? HTTPURLResponse {
| `- warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
54 | if enableLogging {
55 | print("✅ [Response] \(http.statusCode) \(url)")
/host/spi-builder-workspace/Sources/JityApiClient/JityContentApi.swift:53:36: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
51 | }
52 |
53 | if let http = response as? HTTPURLResponse {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
54 | if enableLogging {
55 | print("✅ [Response] \(http.statusCode) \(url)")
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/JityApiClient/JityContentApi.swift:55:46: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
53 | if let http = response as? HTTPURLResponse {
54 | if enableLogging {
55 | print("✅ [Response] \(http.statusCode) \(url)")
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
56 | }
57 | guard (200...299).contains(http.statusCode) else {
/host/spi-builder-workspace/Sources/JityApiClient/JityContentApi.swift:57:45: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
55 | print("✅ [Response] \(http.statusCode) \(url)")
56 | }
57 | guard (200...299).contains(http.statusCode) else {
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
58 | let details = try? JSONSerialization.jsonObject(with: data)
59 | if enableLogging { print("❌ [Error Response] \(http.statusCode)") }
/host/spi-builder-workspace/Sources/JityApiClient/JityContentApi.swift:59:71: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
57 | guard (200...299).contains(http.statusCode) else {
58 | let details = try? JSONSerialization.jsonObject(with: data)
59 | if enableLogging { print("❌ [Error Response] \(http.statusCode)") }
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
60 | throw JityApiError.httpError(statusCode: http.statusCode, details: details)
61 | }
/host/spi-builder-workspace/Sources/JityApiClient/JityContentApi.swift:60:63: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
58 | let details = try? JSONSerialization.jsonObject(with: data)
59 | if enableLogging { print("❌ [Error Response] \(http.statusCode)") }
60 | throw JityApiError.httpError(statusCode: http.statusCode, details: details)
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
61 | }
62 | }
[5/6] Compiling JityApiClient JityApiError.swift
[6/6] Compiling JityApiClient JityApiTypes.swift
BUILD FAILURE 6.3 android