The Swift Package Index logo.Swift Package Index

Build Information

Failed to build JityApiClient, reference 1.0.2 (7d476b), with Swift 6.1 for Android on 14 May 2026 06:31:15 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4609320-3":/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.1-latest swift build --swift-sdk aarch64-unknown-linux-android24 2>&1

Build 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.1
Building package at path:  $PWD
https://github.com/Vritti-ai/jity-api-client-swift.git
https://github.com/Vritti-ai/jity-api-client-swift.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-3":/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.1-latest swift build --swift-sdk aarch64-unknown-linux-android24 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures 2>&1
android-6.1-latest: Pulling from swiftpackageindex/spi-images
Digest: sha256:d37fe7b8fba27dae59fb1d9d7dfa86b38b41ffb3975924aad6f05cb4cc3de131
Status: Image is up to date for registry.gitlab.com/swiftpackageindex/spi-images:android-6.1-latest
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-24593BA9C3E375BF.txt
[3/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 |         }
[4/6] Compiling JityApiClient JityApiTypes.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[5/6] Compiling JityApiClient JityApiError.swift
/host/spi-builder-workspace/Sources/JityApiClient/JityApiError.swift:5:10: warning: associated value 'httpError(statusCode:details:)' of 'Sendable'-conforming enum 'JityApiError' has non-sendable type 'Any'; this is an error in the Swift 6 language mode
 3 | public enum JityApiError: Error, LocalizedError {
 4 |     case missingCredentials
 5 |     case httpError(statusCode: Int, details: Any?)
   |          `- warning: associated value 'httpError(statusCode:details:)' of 'Sendable'-conforming enum 'JityApiError' has non-sendable type 'Any'; this is an error in the Swift 6 language mode
 6 |     case decodingError(Error)
 7 |     case networkError(Error)
[6/6] Emitting module JityApiClient
/host/spi-builder-workspace/Sources/JityApiClient/JityApiError.swift:5:10: warning: associated value 'httpError(statusCode:details:)' of 'Sendable'-conforming enum 'JityApiError' has non-sendable type 'Any'; this is an error in the Swift 6 language mode
 3 | public enum JityApiError: Error, LocalizedError {
 4 |     case missingCredentials
 5 |     case httpError(statusCode: Int, details: Any?)
   |          `- warning: associated value 'httpError(statusCode:details:)' of 'Sendable'-conforming enum 'JityApiError' has non-sendable type 'Any'; this is an error in the Swift 6 language mode
 6 |     case decodingError(Error)
 7 |     case networkError(Error)
/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
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-3":/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.1-latest swift build --swift-sdk aarch64-unknown-linux-android24 2>&1
android-6.1-latest: Pulling from swiftpackageindex/spi-images
Digest: sha256:d37fe7b8fba27dae59fb1d9d7dfa86b38b41ffb3975924aad6f05cb4cc3de131
Status: Image is up to date for registry.gitlab.com/swiftpackageindex/spi-images:android-6.1-latest
[0/1] Planning build
Building for debugging...
[0/1] Write swift-version-24593BA9C3E375BF.txt
[2/5] 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 |         }
error: emit-module command failed with exit code 1 (use -v to see invocation)
[3/5] Compiling JityApiClient JityApiError.swift
[4/5] Compiling JityApiClient JityApiTypes.swift
[5/5] 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
BUILD FAILURE 6.1 android