The Swift Package Index logo.Swift Package Index

Build Information

Failed to build LRCLIBKit, reference v1.1.1 (b39023), with Swift 6.2 for Android on 11 Nov 2026 02:02:49 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.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/workingDog/LRCLIBKit.git
Reference: v1.1.1
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/workingDog/LRCLIBKit
 * tag               v1.1.1     -> FETCH_HEAD
HEAD is now at b39023b added public init to struct
Cloned https://github.com/workingDog/LRCLIBKit.git
Revision (git rev-parse @):
b39023be13e34b701d5e8cce45b1129b8fc25df4
SUCCESS checkout https://github.com/workingDog/LRCLIBKit.git at v1.1.1
========================================
Build
========================================
Selected platform:         android
Swift version:             6.2
Building package at path:  $PWD
https://github.com/workingDog/LRCLIBKit.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.2-latest swift build --swift-sdk aarch64-unknown-linux-android28 2>&1
android-6.2-latest: Pulling from saguaro1/spi-images
Digest: sha256:e0fa058b07288559234bbb94c3bae865ad36d764d5fdddc6da70df8b87a7b06a
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/5] Compiling LRCLIBKit LyricsRecord.swift
[4/5] Emitting module LRCLIBKit
/host/spi-builder-workspace/Sources/LRCLIBKit/LRCLIBKit.swift:18:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 16 |     private let lrclibID: String?
 17 |     private let userAgent: String
 18 |     private let session: URLSession
    |                          `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 19 |
 20 |     private let maxAttempts = 3
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/LRCLIBKit/LRCLIBKit.swift:27:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 25 |         lrclibID: String? = nil,
 26 |         userAgent: String = "LRCLIBKit v1.0.0 (https://github.com/workingDog/LRCLIBKit)",
 27 |         session: URLSession = .shared
    |                  `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 28 |     ) {
 29 |         self.baseURL = baseURL
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/LRCLIBKit/LRCLIBKit.swift:27:32: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 25 |         lrclibID: String? = nil,
 26 |         userAgent: String = "LRCLIBKit v1.0.0 (https://github.com/workingDog/LRCLIBKit)",
 27 |         session: URLSession = .shared
    |                                `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 28 |     ) {
 29 |         self.baseURL = baseURL
/host/spi-builder-workspace/Sources/LRCLIBKit/LRCLIBKit.swift:27:32: error: value of type '_' expected to be instance of class or class-constrained type
 25 |         lrclibID: String? = nil,
 26 |         userAgent: String = "LRCLIBKit v1.0.0 (https://github.com/workingDog/LRCLIBKit)",
 27 |         session: URLSession = .shared
    |                                `- error: value of type '_' expected to be instance of class or class-constrained type
 28 |     ) {
 29 |         self.baseURL = baseURL
/host/spi-builder-workspace/Sources/LRCLIBKit/LRCLIBKit.swift:147:44: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
145 |     }
146 |
147 |     private func retryDelay(from response: HTTPURLResponse?, attempt: Int) -> TimeInterval {
    |                                            `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
148 |         if let value = response?.value(forHTTPHeaderField: "Retry-After") {
149 |             if let seconds = TimeInterval(value), seconds >= 0 {
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
[5/5] Compiling LRCLIBKit LRCLIBKit.swift
/host/spi-builder-workspace/Sources/LRCLIBKit/LRCLIBKit.swift:18:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 16 |     private let lrclibID: String?
 17 |     private let userAgent: String
 18 |     private let session: URLSession
    |                          `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 19 |
 20 |     private let maxAttempts = 3
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/LRCLIBKit/LRCLIBKit.swift:27:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 25 |         lrclibID: String? = nil,
 26 |         userAgent: String = "LRCLIBKit v1.0.0 (https://github.com/workingDog/LRCLIBKit)",
 27 |         session: URLSession = .shared
    |                  `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 28 |     ) {
 29 |         self.baseURL = baseURL
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/LRCLIBKit/LRCLIBKit.swift:27:32: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 25 |         lrclibID: String? = nil,
 26 |         userAgent: String = "LRCLIBKit v1.0.0 (https://github.com/workingDog/LRCLIBKit)",
 27 |         session: URLSession = .shared
    |                                `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 28 |     ) {
 29 |         self.baseURL = baseURL
/host/spi-builder-workspace/Sources/LRCLIBKit/LRCLIBKit.swift:27:32: error: value of type '_' expected to be instance of class or class-constrained type
 25 |         lrclibID: String? = nil,
 26 |         userAgent: String = "LRCLIBKit v1.0.0 (https://github.com/workingDog/LRCLIBKit)",
 27 |         session: URLSession = .shared
    |                                `- error: value of type '_' expected to be instance of class or class-constrained type
 28 |     ) {
 29 |         self.baseURL = baseURL
/host/spi-builder-workspace/Sources/LRCLIBKit/LRCLIBKit.swift:147:44: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
145 |     }
146 |
147 |     private func retryDelay(from response: HTTPURLResponse?, attempt: Int) -> TimeInterval {
    |                                            `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
148 |         if let value = response?.value(forHTTPHeaderField: "Retry-After") {
149 |             if let seconds = TimeInterval(value), seconds >= 0 {
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/LRCLIBKit/LRCLIBKit.swift:102:23: error: cannot find 'URLRequest' in scope
100 |             .appending(queryItems: queryItems)
101 |
102 |         var request = URLRequest(url: url)
    |                       `- error: cannot find 'URLRequest' in scope
103 |         request.httpMethod = "GET"
104 |         request.setValue("application/json", forHTTPHeaderField: "Accept")
/host/spi-builder-workspace/Sources/LRCLIBKit/LRCLIBKit.swift:112:27: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
110 |         for attempt in 1...maxAttempts {
111 |             let data: Data
112 |             let response: URLResponse
    |                           `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
113 |
114 |             do {
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/LRCLIBKit/LRCLIBKit.swift:115:54: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
113 |
114 |             do {
115 |                 (data, response) = try await session.data(for: request)
    |                                                      `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
116 |             } catch {
117 |                 guard attempt < maxAttempts, shouldRetry(error) else {
/host/spi-builder-workspace/Sources/LRCLIBKit/LRCLIBKit.swift:124:47: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
122 |             }
123 |
124 |             guard let httpResponse = response as? HTTPURLResponse else {
    |                                               `- warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
125 |                 throw ServerError.invalidResponse
126 |             }
/host/spi-builder-workspace/Sources/LRCLIBKit/LRCLIBKit.swift:124:51: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
122 |             }
123 |
124 |             guard let httpResponse = response as? HTTPURLResponse else {
    |                                                   `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
125 |                 throw ServerError.invalidResponse
126 |             }
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/LRCLIBKit/LRCLIBKit.swift:128:53: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
126 |             }
127 |
128 |             guard (200..<300).contains(httpResponse.statusCode) else {
    |                                                     `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
129 |                 let retryable = [429, 503].contains(httpResponse.statusCode)
130 |                 guard retryable, attempt < maxAttempts else {
/host/spi-builder-workspace/Sources/LRCLIBKit/LRCLIBKit.swift:129:66: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
127 |
128 |             guard (200..<300).contains(httpResponse.statusCode) else {
129 |                 let retryable = [429, 503].contains(httpResponse.statusCode)
    |                                                                  `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
130 |                 guard retryable, attempt < maxAttempts else {
131 |                     let retryAfter = httpResponse.value(forHTTPHeaderField: "Retry-After")
/host/spi-builder-workspace/Sources/LRCLIBKit/LRCLIBKit.swift:131:51: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
129 |                 let retryable = [429, 503].contains(httpResponse.statusCode)
130 |                 guard retryable, attempt < maxAttempts else {
131 |                     let retryAfter = httpResponse.value(forHTTPHeaderField: "Retry-After")
    |                                                   `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
132 |                     if let error = try? JSONDecoder().decode(LyricsError.self, from: data) {
133 |                         throw ServerError.apiError(error, retryAfter: retryAfter)
/host/spi-builder-workspace/Sources/LRCLIBKit/LRCLIBKit.swift:135:66: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
133 |                         throw ServerError.apiError(error, retryAfter: retryAfter)
134 |                     }
135 |                     throw ServerError.httpErrorCode(httpResponse.statusCode)
    |                                                                  `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
136 |                 }
137 |                 let delay = retryDelay(from: httpResponse, attempt: attempt)
/host/spi-builder-workspace/Sources/LRCLIBKit/LRCLIBKit.swift:148:34: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
146 |
147 |     private func retryDelay(from response: HTTPURLResponse?, attempt: Int) -> TimeInterval {
148 |         if let value = response?.value(forHTTPHeaderField: "Retry-After") {
    |                                  `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
149 |             if let seconds = TimeInterval(value), seconds >= 0 {
150 |                 return seconds
BUILD FAILURE 6.2 android