The Swift Package Index logo.Swift Package Index

Build Information

Failed to build Emaki, reference main (f6d0de), with Swift 6.2 for Android on 29 Oct 2026 09:27:28 UTC.

Build Command

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

Build Log

========================================
RunAll
========================================
Builder version: 5.1.4
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/hanshs474/emaki-swift.git
Reference: main
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/emaki-swift
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at f6d0de4 emaki emaki-swift v0.1.0
Cloned https://github.com/hanshs474/emaki-swift.git
Revision (git rev-parse @):
f6d0de45c652d50ce2430d474d2e42243ef4a6f8
SUCCESS checkout https://github.com/hanshs474/emaki-swift.git at main
========================================
Build
========================================
Selected platform:         android
Swift version:             6.2
Building package at path:  $PWD
https://github.com/hanshs474/emaki-swift.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-54344847-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.2-latest swift build --swift-sdk aarch64-unknown-linux-android28 2>&1
android-6.2-latest: Pulling from saguaro1/spi-images
Digest: sha256:9e4b64e17859f153444a8085b41803f96a8252f8f76139cd5e69e2540803aa5a
Status: Image is up to date for registry.gitlab.com/saguaro1/spi-images:android-6.2-latest
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version--11D90AFD9DD3AB2.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[3/4] Emitting module Emaki
/host/spi-builder-workspace/Sources/Emaki/Emaki.swift:65:25: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 63 |
 64 |     public let apiKey: String
 65 |     public let session: URLSession
    |                         `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 66 |     public var pollInterval: TimeInterval = 5
 67 |
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/Emaki/Emaki.swift:68:49: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 66 |     public var pollInterval: TimeInterval = 5
 67 |
 68 |     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.
 69 |         self.apiKey = (apiKey ?? ProcessInfo.processInfo.environment["EMAKI_API_KEY"] ?? "")
 70 |             .trimmingCharacters(in: .whitespacesAndNewlines)
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/Emaki/Emaki.swift:68:63: error: value of type '_' expected to be instance of class or class-constrained type
 66 |     public var pollInterval: TimeInterval = 5
 67 |
 68 |     public init(apiKey: String? = nil, session: URLSession = .shared) {
    |                                                               `- error: value of type '_' expected to be instance of class or class-constrained type
 69 |         self.apiKey = (apiKey ?? ProcessInfo.processInfo.environment["EMAKI_API_KEY"] ?? "")
 70 |             .trimmingCharacters(in: .whitespacesAndNewlines)
/host/spi-builder-workspace/Sources/Emaki/Emaki.swift:68:63: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 66 |     public var pollInterval: TimeInterval = 5
 67 |
 68 |     public init(apiKey: String? = nil, session: URLSession = .shared) {
    |                                                               `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 69 |         self.apiKey = (apiKey ?? ProcessInfo.processInfo.environment["EMAKI_API_KEY"] ?? "")
 70 |             .trimmingCharacters(in: .whitespacesAndNewlines)
[4/4] Compiling Emaki Emaki.swift
/host/spi-builder-workspace/Sources/Emaki/Emaki.swift:65:25: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 63 |
 64 |     public let apiKey: String
 65 |     public let session: URLSession
    |                         `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 66 |     public var pollInterval: TimeInterval = 5
 67 |
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/Emaki/Emaki.swift:68:49: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 66 |     public var pollInterval: TimeInterval = 5
 67 |
 68 |     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.
 69 |         self.apiKey = (apiKey ?? ProcessInfo.processInfo.environment["EMAKI_API_KEY"] ?? "")
 70 |             .trimmingCharacters(in: .whitespacesAndNewlines)
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/Emaki/Emaki.swift:68:63: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 66 |     public var pollInterval: TimeInterval = 5
 67 |
 68 |     public init(apiKey: String? = nil, session: URLSession = .shared) {
    |                                                               `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 69 |         self.apiKey = (apiKey ?? ProcessInfo.processInfo.environment["EMAKI_API_KEY"] ?? "")
 70 |             .trimmingCharacters(in: .whitespacesAndNewlines)
/host/spi-builder-workspace/Sources/Emaki/Emaki.swift:68:63: error: value of type '_' expected to be instance of class or class-constrained type
 66 |     public var pollInterval: TimeInterval = 5
 67 |
 68 |     public init(apiKey: String? = nil, session: URLSession = .shared) {
    |                                                               `- error: value of type '_' expected to be instance of class or class-constrained type
 69 |         self.apiKey = (apiKey ?? ProcessInfo.processInfo.environment["EMAKI_API_KEY"] ?? "")
 70 |             .trimmingCharacters(in: .whitespacesAndNewlines)
/host/spi-builder-workspace/Sources/Emaki/Emaki.swift:125:19: error: cannot find 'URLRequest' in scope
123 |     private func post(_ path: String, _ payload: [String: Any]) async throws -> (Int, [String: Any]) {
124 |         guard !apiKey.isEmpty else { throw EmakiError.auth("set EMAKI_API_KEY (create a key at \(Emaki.keysURL))") }
125 |         var req = URLRequest(url: Emaki.baseURL.appendingPathComponent(path))
    |                   `- error: cannot find 'URLRequest' in scope
126 |         req.httpMethod = "POST"
127 |         req.setValue("application/json", forHTTPHeaderField: "content-type")
/host/spi-builder-workspace/Sources/Emaki/Emaki.swift:131:45: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
129 |         req.setValue("emaki-swift/1.0.0", forHTTPHeaderField: "user-agent")
130 |         req.httpBody = try JSONSerialization.data(withJSONObject: payload)
131 |         let (data, res) = try await session.data(for: req)
    |                                             `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
132 |         let body = (try? JSONSerialization.jsonObject(with: data) as? [String: Any]) ?? [:]
133 |         return ((res as? HTTPURLResponse)?.statusCode ?? 0, body)
/host/spi-builder-workspace/Sources/Emaki/Emaki.swift:133:44: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
131 |         let (data, res) = try await session.data(for: req)
132 |         let body = (try? JSONSerialization.jsonObject(with: data) as? [String: Any]) ?? [:]
133 |         return ((res as? HTTPURLResponse)?.statusCode ?? 0, body)
    |                                            `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
134 |     }
135 |
BUILD FAILURE 6.2 android