The Swift Package Index logo.Swift Package Index

Build Information

Failed to build Kavel, reference 1.0.0 (56e604), with Swift 6.3 for Android on 27 Oct 2026 21:16:13 UTC.

Build Command

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

Build Log

========================================
RunAll
========================================
Builder version: 5.1.3
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/hanshs474/kavel-swift.git
Reference: 1.0.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/hanshs474/kavel-swift
 * tag               1.0.0      -> FETCH_HEAD
HEAD is now at 56e6046 Kavel Swift 1.0.0
Cloned https://github.com/hanshs474/kavel-swift.git
Revision (git rev-parse @):
56e60467dbe9f90176ec5869a191379d51ed0aa6
SUCCESS checkout https://github.com/hanshs474/kavel-swift.git at 1.0.0
========================================
Build
========================================
Selected platform:         android
Swift version:             6.3
Building package at path:  $PWD
https://github.com/hanshs474/kavel-swift.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-54344843-0":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/saguaro1/spi-images:android-6.3-latest swift build --swift-sdk aarch64-unknown-linux-android28 2>&1
android-6.3-latest: Pulling from saguaro1/spi-images
Digest: sha256:1259d966e40d034d138a282ea8b980b108763342a7ff8ac7ef483c73e99068f3
Status: Image is up to date for registry.gitlab.com/saguaro1/spi-images:android-6.3-latest
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-272D24FF697CF451.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[3/4] Emitting module Kavel
/host/spi-builder-workspace/Sources/Kavel/Kavel.swift:31:25: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 29 |
 30 |     public let apiKey: String?
 31 |     public let session: URLSession
    |                         `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 32 |
 33 |     public init(apiKey: String? = nil, session: URLSession = .shared) {
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/Kavel/Kavel.swift:33:49: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 31 |     public let session: URLSession
 32 |
 33 |     public init(apiKey: String? = nil, session: URLSession = .shared) {
    |                                                 `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 34 |         self.apiKey = apiKey ?? ProcessInfo.processInfo.environment["KAVEL_API_KEY"]
 35 |         self.session = session
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/Kavel/Kavel.swift:33:63: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 31 |     public let session: URLSession
 32 |
 33 |     public init(apiKey: String? = nil, session: URLSession = .shared) {
    |                                                               `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 34 |         self.apiKey = apiKey ?? ProcessInfo.processInfo.environment["KAVEL_API_KEY"]
 35 |         self.session = session
/host/spi-builder-workspace/Sources/Kavel/Kavel.swift:33:63: error: value of type '_' expected to be instance of class or class-constrained type
 31 |     public let session: URLSession
 32 |
 33 |     public init(apiKey: String? = nil, session: URLSession = .shared) {
    |                                                               `- error: value of type '_' expected to be instance of class or class-constrained type
 34 |         self.apiKey = apiKey ?? ProcessInfo.processInfo.environment["KAVEL_API_KEY"]
 35 |         self.session = session
/host/spi-builder-workspace/Sources/Kavel/Kavel.swift:62:30: error: cannot find type 'URLRequest' in scope
 60 |     }
 61 |
 62 |     private func json(_ req: URLRequest) async throws -> [String: Any] {
    |                              `- error: cannot find type 'URLRequest' in scope
 63 |         let (data, _) = try await session.data(for: req)
 64 |         return (try JSONSerialization.jsonObject(with: data) as? [String: Any]) ?? [:]
[4/4] Compiling Kavel Kavel.swift
/host/spi-builder-workspace/Sources/Kavel/Kavel.swift:31:25: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 29 |
 30 |     public let apiKey: String?
 31 |     public let session: URLSession
    |                         `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 32 |
 33 |     public init(apiKey: String? = nil, session: URLSession = .shared) {
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/Kavel/Kavel.swift:33:49: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 31 |     public let session: URLSession
 32 |
 33 |     public init(apiKey: String? = nil, session: URLSession = .shared) {
    |                                                 `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 34 |         self.apiKey = apiKey ?? ProcessInfo.processInfo.environment["KAVEL_API_KEY"]
 35 |         self.session = session
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/Kavel/Kavel.swift:33:63: error: value of type '_' expected to be instance of class or class-constrained type
 31 |     public let session: URLSession
 32 |
 33 |     public init(apiKey: String? = nil, session: URLSession = .shared) {
    |                                                               `- error: value of type '_' expected to be instance of class or class-constrained type
 34 |         self.apiKey = apiKey ?? ProcessInfo.processInfo.environment["KAVEL_API_KEY"]
 35 |         self.session = session
/host/spi-builder-workspace/Sources/Kavel/Kavel.swift:33:63: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 31 |     public let session: URLSession
 32 |
 33 |     public init(apiKey: String? = nil, session: URLSession = .shared) {
    |                                                               `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 34 |         self.apiKey = apiKey ?? ProcessInfo.processInfo.environment["KAVEL_API_KEY"]
 35 |         self.session = session
/host/spi-builder-workspace/Sources/Kavel/Kavel.swift:62:30: error: cannot find type 'URLRequest' in scope
 60 |     }
 61 |
 62 |     private func json(_ req: URLRequest) async throws -> [String: Any] {
    |                              `- error: cannot find type 'URLRequest' in scope
 63 |         let (data, _) = try await session.data(for: req)
 64 |         return (try JSONSerialization.jsonObject(with: data) as? [String: Any]) ?? [:]
/host/spi-builder-workspace/Sources/Kavel/Kavel.swift:63:43: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
 61 |
 62 |     private func json(_ req: URLRequest) async throws -> [String: Any] {
 63 |         let (data, _) = try await session.data(for: req)
    |                                           `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
 64 |         return (try JSONSerialization.jsonObject(with: data) as? [String: Any]) ?? [:]
 65 |     }
/host/spi-builder-workspace/Sources/Kavel/Kavel.swift:69:22: error: cannot find 'URLRequest' in scope
 67 |     private func run(_ payload: [String: Any], timeout: TimeInterval) async throws -> Image {
 68 |         let auth = headers()
 69 |         var submit = URLRequest(url: Kavel.baseURL.appendingPathComponent("api/ai/generate"))
    |                      `- error: cannot find 'URLRequest' in scope
 70 |         submit.httpMethod = "POST"
 71 |         submit.setValue("application/json", forHTTPHeaderField: "content-type")
/host/spi-builder-workspace/Sources/Kavel/Kavel.swift:86:23: error: cannot find type 'URLRequest' in scope
 84 |         while Date() < deadline {
 85 |             try await Task.sleep(nanoseconds: 5_000_000_000)
 86 |             var poll: URLRequest
    |                       `- error: cannot find type 'URLRequest' in scope
 87 |             if auth["authorization"] != nil {
 88 |                 poll = URLRequest(url: Kavel.baseURL.appendingPathComponent("api/ai/query"))
/host/spi-builder-workspace/Sources/Kavel/Kavel.swift:88:24: error: cannot find 'URLRequest' in scope
 86 |             var poll: URLRequest
 87 |             if auth["authorization"] != nil {
 88 |                 poll = URLRequest(url: Kavel.baseURL.appendingPathComponent("api/ai/query"))
    |                        `- error: cannot find 'URLRequest' in scope
 89 |                 poll.httpMethod = "POST"
 90 |                 poll.setValue("application/json", forHTTPHeaderField: "content-type")
/host/spi-builder-workspace/Sources/Kavel/Kavel.swift:95:24: error: cannot find 'URLRequest' in scope
 93 |                 var c = URLComponents(url: Kavel.baseURL.appendingPathComponent("api/ai/anon-query"), resolvingAgainstBaseURL: false)!
 94 |                 c.queryItems = [.init(name: "taskId", value: task), .init(name: "provider", value: "kie"), .init(name: "mediaType", value: "image")]
 95 |                 poll = URLRequest(url: c.url!)
    |                        `- error: cannot find 'URLRequest' in scope
 96 |             }
 97 |             auth.forEach { poll.setValue($0.value, forHTTPHeaderField: $0.key) }
BUILD FAILURE 6.3 android