The Swift Package Index logo.Swift Package Index

Build Information

Failed to build LRCLIBKit, reference main (d14707), with Swift 6.1 for Android on 14 Nov 2026 21:22:55 UTC.

Build Command

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

Build Log

========================================
RunAll
========================================
Builder version: 5.1.4
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/workingDog/LRCLIBKit.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/workingDog/LRCLIBKit
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at d147077 minor update
Cloned https://github.com/workingDog/LRCLIBKit.git
Revision (git rev-parse @):
d1470772cac7a95efbbb33bd898458defc506772
SUCCESS checkout https://github.com/workingDog/LRCLIBKit.git at main
========================================
Build
========================================
Selected platform:         android
Swift version:             6.1
Building package at path:  $PWD
https://github.com/workingDog/LRCLIBKit.git
https://github.com/workingDog/LRCLIBKit.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-54344847-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.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 saguaro1/spi-images
Digest: sha256:f3d584653be307e49a83a538a44ff19f3e457cf354c03a81b3bd04fe87199e26
Status: Image is up to date for registry.gitlab.com/saguaro1/spi-images:android-6.1-latest
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-24593BA9C3E375BF.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[3/5] Compiling LRCLIBKit LyricsRecord.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[4/5] Emitting module LRCLIBKit
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
/host/spi-builder-workspace/Sources/LRCLIBKit/LRCLIBKit.swift:18:25: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 16 |     public let lrclibID: String?
 17 |     public let userAgent: String
 18 |     public let session: URLSession
    |                         `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 19 |
 20 |     public 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:149:44: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
147 |     }
148 |
149 |     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.
150 |         if let value = response?.value(forHTTPHeaderField: "Retry-After") {
151 |             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
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
/host/spi-builder-workspace/Sources/LRCLIBKit/LRCLIBKit.swift:18:25: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 16 |     public let lrclibID: String?
 17 |     public let userAgent: String
 18 |     public let session: URLSession
    |                         `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 19 |
 20 |     public 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:149:44: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
147 |     }
148 |
149 |     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.
150 |         if let value = response?.value(forHTTPHeaderField: "Retry-After") {
151 |             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:104:23: error: cannot find 'URLRequest' in scope
102 |             .appending(queryItems: queryItems)
103 |
104 |         var request = URLRequest(url: url)
    |                       `- error: cannot find 'URLRequest' in scope
105 |         request.httpMethod = "GET"
106 |         request.setValue("application/json", forHTTPHeaderField: "Accept")
/host/spi-builder-workspace/Sources/LRCLIBKit/LRCLIBKit.swift:114:27: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
112 |         for attempt in 1...maxAttempts {
113 |             let data: Data
114 |             let response: URLResponse
    |                           `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
115 |
116 |             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:117:54: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
115 |
116 |             do {
117 |                 (data, response) = try await session.data(for: request)
    |                                                      `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
118 |             } catch {
119 |                 guard attempt < maxAttempts, shouldRetry(error) else {
/host/spi-builder-workspace/Sources/LRCLIBKit/LRCLIBKit.swift:126:47: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
124 |             }
125 |
126 |             guard let httpResponse = response as? HTTPURLResponse else {
    |                                               `- warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
127 |                 throw ServerError.invalidResponse
128 |             }
/host/spi-builder-workspace/Sources/LRCLIBKit/LRCLIBKit.swift:126:51: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
124 |             }
125 |
126 |             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.
127 |                 throw ServerError.invalidResponse
128 |             }
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:130:53: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
128 |             }
129 |
130 |             guard (200..<300).contains(httpResponse.statusCode) else {
    |                                                     `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
131 |                 let retryable = [429, 503].contains(httpResponse.statusCode)
132 |                 guard retryable, attempt < maxAttempts else {
/host/spi-builder-workspace/Sources/LRCLIBKit/LRCLIBKit.swift:131:66: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
129 |
130 |             guard (200..<300).contains(httpResponse.statusCode) else {
131 |                 let retryable = [429, 503].contains(httpResponse.statusCode)
    |                                                                  `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
132 |                 guard retryable, attempt < maxAttempts else {
133 |                     let retryAfter = httpResponse.value(forHTTPHeaderField: "Retry-After")
/host/spi-builder-workspace/Sources/LRCLIBKit/LRCLIBKit.swift:133:51: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
131 |                 let retryable = [429, 503].contains(httpResponse.statusCode)
132 |                 guard retryable, attempt < maxAttempts else {
133 |                     let retryAfter = httpResponse.value(forHTTPHeaderField: "Retry-After")
    |                                                   `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
134 |                     if let error = try? JSONDecoder().decode(LyricsError.self, from: data) {
135 |                         throw ServerError.apiError(error, retryAfter: retryAfter)
/host/spi-builder-workspace/Sources/LRCLIBKit/LRCLIBKit.swift:137:66: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
135 |                         throw ServerError.apiError(error, retryAfter: retryAfter)
136 |                     }
137 |                     throw ServerError.httpErrorCode(httpResponse.statusCode)
    |                                                                  `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
138 |                 }
139 |                 let delay = retryDelay(from: httpResponse, attempt: attempt)
/host/spi-builder-workspace/Sources/LRCLIBKit/LRCLIBKit.swift:150:34: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
148 |
149 |     private func retryDelay(from response: HTTPURLResponse?, attempt: Int) -> TimeInterval {
150 |         if let value = response?.value(forHTTPHeaderField: "Retry-After") {
    |                                  `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
151 |             if let seconds = TimeInterval(value), seconds >= 0 {
152 |                 return seconds
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-54344847-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.1-latest swift build --swift-sdk aarch64-unknown-linux-android24 2>&1
android-6.1-latest: Pulling from saguaro1/spi-images
Digest: sha256:f3d584653be307e49a83a538a44ff19f3e457cf354c03a81b3bd04fe87199e26
Status: Image is up to date for registry.gitlab.com/saguaro1/spi-images:android-6.1-latest
[0/1] Planning build
Building for debugging...
[0/1] Write swift-version-24593BA9C3E375BF.txt
[2/4] Compiling LRCLIBKit LyricsRecord.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[3/4] Emitting module LRCLIBKit
/host/spi-builder-workspace/Sources/LRCLIBKit/LRCLIBKit.swift:18:25: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 16 |     public let lrclibID: String?
 17 |     public let userAgent: String
 18 |     public let session: URLSession
    |                         `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 19 |
 20 |     public 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:149:44: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
147 |     }
148 |
149 |     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.
150 |         if let value = response?.value(forHTTPHeaderField: "Retry-After") {
151 |             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
[4/4] Compiling LRCLIBKit LRCLIBKit.swift
/host/spi-builder-workspace/Sources/LRCLIBKit/LRCLIBKit.swift:18:25: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 16 |     public let lrclibID: String?
 17 |     public let userAgent: String
 18 |     public let session: URLSession
    |                         `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 19 |
 20 |     public 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:149:44: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
147 |     }
148 |
149 |     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.
150 |         if let value = response?.value(forHTTPHeaderField: "Retry-After") {
151 |             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:104:23: error: cannot find 'URLRequest' in scope
102 |             .appending(queryItems: queryItems)
103 |
104 |         var request = URLRequest(url: url)
    |                       `- error: cannot find 'URLRequest' in scope
105 |         request.httpMethod = "GET"
106 |         request.setValue("application/json", forHTTPHeaderField: "Accept")
/host/spi-builder-workspace/Sources/LRCLIBKit/LRCLIBKit.swift:114:27: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
112 |         for attempt in 1...maxAttempts {
113 |             let data: Data
114 |             let response: URLResponse
    |                           `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
115 |
116 |             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:117:54: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
115 |
116 |             do {
117 |                 (data, response) = try await session.data(for: request)
    |                                                      `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
118 |             } catch {
119 |                 guard attempt < maxAttempts, shouldRetry(error) else {
/host/spi-builder-workspace/Sources/LRCLIBKit/LRCLIBKit.swift:126:47: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
124 |             }
125 |
126 |             guard let httpResponse = response as? HTTPURLResponse else {
    |                                               `- warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
127 |                 throw ServerError.invalidResponse
128 |             }
/host/spi-builder-workspace/Sources/LRCLIBKit/LRCLIBKit.swift:126:51: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
124 |             }
125 |
126 |             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.
127 |                 throw ServerError.invalidResponse
128 |             }
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:130:53: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
128 |             }
129 |
130 |             guard (200..<300).contains(httpResponse.statusCode) else {
    |                                                     `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
131 |                 let retryable = [429, 503].contains(httpResponse.statusCode)
132 |                 guard retryable, attempt < maxAttempts else {
/host/spi-builder-workspace/Sources/LRCLIBKit/LRCLIBKit.swift:131:66: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
129 |
130 |             guard (200..<300).contains(httpResponse.statusCode) else {
131 |                 let retryable = [429, 503].contains(httpResponse.statusCode)
    |                                                                  `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
132 |                 guard retryable, attempt < maxAttempts else {
133 |                     let retryAfter = httpResponse.value(forHTTPHeaderField: "Retry-After")
/host/spi-builder-workspace/Sources/LRCLIBKit/LRCLIBKit.swift:133:51: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
131 |                 let retryable = [429, 503].contains(httpResponse.statusCode)
132 |                 guard retryable, attempt < maxAttempts else {
133 |                     let retryAfter = httpResponse.value(forHTTPHeaderField: "Retry-After")
    |                                                   `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
134 |                     if let error = try? JSONDecoder().decode(LyricsError.self, from: data) {
135 |                         throw ServerError.apiError(error, retryAfter: retryAfter)
/host/spi-builder-workspace/Sources/LRCLIBKit/LRCLIBKit.swift:137:66: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
135 |                         throw ServerError.apiError(error, retryAfter: retryAfter)
136 |                     }
137 |                     throw ServerError.httpErrorCode(httpResponse.statusCode)
    |                                                                  `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
138 |                 }
139 |                 let delay = retryDelay(from: httpResponse, attempt: attempt)
/host/spi-builder-workspace/Sources/LRCLIBKit/LRCLIBKit.swift:150:34: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
148 |
149 |     private func retryDelay(from response: HTTPURLResponse?, attempt: Int) -> TimeInterval {
150 |         if let value = response?.value(forHTTPHeaderField: "Retry-After") {
    |                                  `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
151 |             if let seconds = TimeInterval(value), seconds >= 0 {
152 |                 return seconds
BUILD FAILURE 6.1 android