The Swift Package Index logo.Swift Package Index

Build Information

Failed to build OpenLibrary, reference main (e52063), with Swift 6.2 for Android on 24 Oct 2026 23:13:20 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-54344845-1":/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.3
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/natikgadzhi/swift-openlibrary.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/natikgadzhi/swift-openlibrary
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at e52063a claude: run multi-agent builds as Workflows
Cloned https://github.com/natikgadzhi/swift-openlibrary.git
Revision (git rev-parse @):
e52063a3f6c0380616718a8f81e48f09e0864ff0
SUCCESS checkout https://github.com/natikgadzhi/swift-openlibrary.git at main
========================================
Build
========================================
Selected platform:         android
Swift version:             6.2
Building package at path:  $PWD
https://github.com/natikgadzhi/swift-openlibrary.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-54344845-1":/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/7] Write sources
[2/7] Write swift-version--11D90AFD9DD3AB2.txt
[4/17] Compiling OpenLibrary OpenLibraryWorkBookshelves.swift
[5/18] Compiling OpenLibrary OpenLibraryAPI.swift
/host/spi-builder-workspace/Sources/OpenLibrary/OpenLibraryAPI.swift:20:26: error: cannot find type 'URLRequest' in scope
 18 |   /// - Parameter request: The request to execute.
 19 |   /// - Returns: The raw response body and the corresponding URL response.
 20 |   func data(for request: URLRequest) async throws -> (Data, URLResponse)
    |                          `- error: cannot find type 'URLRequest' in scope
 21 | }
 22 |
/host/spi-builder-workspace/Sources/OpenLibrary/OpenLibraryAPI.swift:20:61: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 18 |   /// - Parameter request: The request to execute.
 19 |   /// - Returns: The raw response body and the corresponding URL response.
 20 |   func data(for request: URLRequest) async throws -> (Data, URLResponse)
    |                                                             `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 21 | }
 22 |
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/OpenLibrary/OpenLibraryAPI.swift:23:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
 21 | }
 22 |
 23 | extension URLSession: OpenLibraryHTTPSession {
    | `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
 24 |   /// Bridges `URLSession` into the sendable transport abstraction.
 25 |   public func data(for request: URLRequest) async throws -> (Data, URLResponse) {
/host/spi-builder-workspace/Sources/OpenLibrary/OpenLibraryAPI.swift:64:56: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 62 |     public init(
 63 |       baseURL: URL = URL(string: "https://openlibrary.org")!,
 64 |       session: any OpenLibraryHTTPSession = URLSession.shared,
    |                                                        `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 65 |       userAgent: String? = nil,
 66 |       contactEmail: String? = nil,
/host/spi-builder-workspace/Sources/OpenLibrary/OpenLibraryAPI.swift:481:41: error: cannot find type 'URLRequest' in scope
479 |
480 |   /// Builds a request with the configured identification headers.
481 |   private func makeRequest(url: URL) -> URLRequest {
    |                                         `- error: cannot find type 'URLRequest' in scope
482 |     var request = URLRequest(url: url)
483 |     request.setValue("application/json", forHTTPHeaderField: "Accept")
/host/spi-builder-workspace/Sources/OpenLibrary/OpenLibraryAPI.swift:482:19: error: cannot find 'URLRequest' in scope
480 |   /// Builds a request with the configured identification headers.
481 |   private func makeRequest(url: URL) -> URLRequest {
482 |     var request = URLRequest(url: url)
    |                   `- error: cannot find 'URLRequest' in scope
483 |     request.setValue("application/json", forHTTPHeaderField: "Accept")
484 |
/host/spi-builder-workspace/Sources/OpenLibrary/OpenLibraryAPI.swift:25:33: error: cannot find type 'URLRequest' in scope
 23 | extension URLSession: OpenLibraryHTTPSession {
 24 |   /// Bridges `URLSession` into the sendable transport abstraction.
 25 |   public func data(for request: URLRequest) async throws -> (Data, URLResponse) {
    |                                 `- error: cannot find type 'URLRequest' in scope
 26 |     try await data(for: request, delegate: nil)
 27 |   }
[#NominalTypes]: <https://docs.swift.org/compiler/documentation/diagnostics/nominal-types>
[6/18] Compiling OpenLibrary OpenLibraryAPIMocks.swift
/host/spi-builder-workspace/Sources/OpenLibrary/OpenLibraryAPI.swift:20:26: error: cannot find type 'URLRequest' in scope
 18 |   /// - Parameter request: The request to execute.
 19 |   /// - Returns: The raw response body and the corresponding URL response.
 20 |   func data(for request: URLRequest) async throws -> (Data, URLResponse)
    |                          `- error: cannot find type 'URLRequest' in scope
 21 | }
 22 |
/host/spi-builder-workspace/Sources/OpenLibrary/OpenLibraryAPI.swift:20:61: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 18 |   /// - Parameter request: The request to execute.
 19 |   /// - Returns: The raw response body and the corresponding URL response.
 20 |   func data(for request: URLRequest) async throws -> (Data, URLResponse)
    |                                                             `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 21 | }
 22 |
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/OpenLibrary/OpenLibraryAPI.swift:23:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
 21 | }
 22 |
 23 | extension URLSession: OpenLibraryHTTPSession {
    | `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
 24 |   /// Bridges `URLSession` into the sendable transport abstraction.
 25 |   public func data(for request: URLRequest) async throws -> (Data, URLResponse) {
/host/spi-builder-workspace/Sources/OpenLibrary/OpenLibraryAPI.swift:64:56: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 62 |     public init(
 63 |       baseURL: URL = URL(string: "https://openlibrary.org")!,
 64 |       session: any OpenLibraryHTTPSession = URLSession.shared,
    |                                                        `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 65 |       userAgent: String? = nil,
 66 |       contactEmail: String? = nil,
/host/spi-builder-workspace/Sources/OpenLibrary/OpenLibraryAPI.swift:481:41: error: cannot find type 'URLRequest' in scope
479 |
480 |   /// Builds a request with the configured identification headers.
481 |   private func makeRequest(url: URL) -> URLRequest {
    |                                         `- error: cannot find type 'URLRequest' in scope
482 |     var request = URLRequest(url: url)
483 |     request.setValue("application/json", forHTTPHeaderField: "Accept")
/host/spi-builder-workspace/Sources/OpenLibrary/OpenLibraryAPI.swift:482:19: error: cannot find 'URLRequest' in scope
480 |   /// Builds a request with the configured identification headers.
481 |   private func makeRequest(url: URL) -> URLRequest {
482 |     var request = URLRequest(url: url)
    |                   `- error: cannot find 'URLRequest' in scope
483 |     request.setValue("application/json", forHTTPHeaderField: "Accept")
484 |
/host/spi-builder-workspace/Sources/OpenLibrary/OpenLibraryAPI.swift:25:33: error: cannot find type 'URLRequest' in scope
 23 | extension URLSession: OpenLibraryHTTPSession {
 24 |   /// Bridges `URLSession` into the sendable transport abstraction.
 25 |   public func data(for request: URLRequest) async throws -> (Data, URLResponse) {
    |                                 `- error: cannot find type 'URLRequest' in scope
 26 |     try await data(for: request, delegate: nil)
 27 |   }
[#NominalTypes]: <https://docs.swift.org/compiler/documentation/diagnostics/nominal-types>
error: emit-module command failed with exit code 1 (use -v to see invocation)
[7/18] Compiling OpenLibrary OpenLibraryWork.swift
[8/18] Compiling OpenLibrary OpenLibrarySearch.swift
[9/18] Compiling OpenLibrary OpenLibraryLogger.swift
[10/18] Compiling OpenLibrary OpenLibrarySubject.swift
[11/18] Compiling OpenLibrary OpenLibraryCovers.swift
[12/18] Compiling OpenLibrary OpenLibraryEdition.swift
[13/18] Emitting module OpenLibrary
/host/spi-builder-workspace/Sources/OpenLibrary/OpenLibraryAPI.swift:20:26: error: cannot find type 'URLRequest' in scope
 18 |   /// - Parameter request: The request to execute.
 19 |   /// - Returns: The raw response body and the corresponding URL response.
 20 |   func data(for request: URLRequest) async throws -> (Data, URLResponse)
    |                          `- error: cannot find type 'URLRequest' in scope
 21 | }
 22 |
/host/spi-builder-workspace/Sources/OpenLibrary/OpenLibraryAPI.swift:20:61: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 18 |   /// - Parameter request: The request to execute.
 19 |   /// - Returns: The raw response body and the corresponding URL response.
 20 |   func data(for request: URLRequest) async throws -> (Data, URLResponse)
    |                                                             `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 21 | }
 22 |
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/OpenLibrary/OpenLibraryAPI.swift:23:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
 21 | }
 22 |
 23 | extension URLSession: OpenLibraryHTTPSession {
    | `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
 24 |   /// Bridges `URLSession` into the sendable transport abstraction.
 25 |   public func data(for request: URLRequest) async throws -> (Data, URLResponse) {
/host/spi-builder-workspace/Sources/OpenLibrary/OpenLibraryAPI.swift:64:56: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 62 |     public init(
 63 |       baseURL: URL = URL(string: "https://openlibrary.org")!,
 64 |       session: any OpenLibraryHTTPSession = URLSession.shared,
    |                                                        `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 65 |       userAgent: String? = nil,
 66 |       contactEmail: String? = nil,
/host/spi-builder-workspace/Sources/OpenLibrary/OpenLibraryAPI.swift:481:41: error: cannot find type 'URLRequest' in scope
479 |
480 |   /// Builds a request with the configured identification headers.
481 |   private func makeRequest(url: URL) -> URLRequest {
    |                                         `- error: cannot find type 'URLRequest' in scope
482 |     var request = URLRequest(url: url)
483 |     request.setValue("application/json", forHTTPHeaderField: "Accept")
[#NominalTypes]: <https://docs.swift.org/compiler/documentation/diagnostics/nominal-types>
[14/18] Compiling OpenLibrary OpenLibraryWorkRatings.swift
BUILD FAILURE 6.2 android