Build Information
Failed to build Nexio, reference 2.0.0 (aca814), with Swift 6.4 for Android on 23 Oct 2026 02:21:04 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-53886769-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.4-latest swift build --swift-sdk aarch64-unknown-linux-android28 2>&1Build Log
========================================
RunAll
========================================
Builder version: 5.1.3
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/ANSCoder/Nexio.git
Reference: 2.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/ANSCoder/Nexio
* tag 2.0.0 -> FETCH_HEAD
HEAD is now at aca8149 Fix request pipeline, authentication, cancellation, and URL handling (#4)
Cloned https://github.com/ANSCoder/Nexio.git
Revision (git rev-parse @):
aca8149127f8a05a7d1e2942d570fe184e061451
SUCCESS checkout https://github.com/ANSCoder/Nexio.git at 2.0.0
========================================
Build
========================================
Selected platform: android
Swift version: 6.4
Building package at path: $PWD
https://github.com/ANSCoder/Nexio.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-53886769-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.4-latest swift build --swift-sdk aarch64-unknown-linux-android28 2>&1
android-6.4-latest: Pulling from saguaro1/spi-images
Digest: sha256:d9a84d7647394b4473e054b8d8a8f0e0b43300080afc6972ec459a3a608366e4
Status: Image is up to date for registry.gitlab.com/saguaro1/spi-images:android-6.4-latest
Building for debugging...
[Planning deferred tasks]
error: SwiftCompile normal aarch64 failed with a nonzero exit code. Command line: cd /host
/host/spi-builder-workspace/Sources/Nexio/Auth/AuthInterceptor.swift:34:87: [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m32 |[0;0m }
[0;36m33 |[0;0m
[0;36m34 |[0;0m public func adapt(_ request: URLRequest, for session: URLSession) async throws -> [4;39mURLRequest[0;0m {
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m35 |[0;0m var mutableRequest = request
[0;36m36 |[0;0m let strategy = await AuthResolution.$isResolving.withValue(true) {
/host/spi-builder-workspace/Sources/Nexio/Auth/AuthInterceptor.swift:34:34: [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m32 |[0;0m }
[0;36m33 |[0;0m
[0;36m34 |[0;0m public func adapt(_ request: [4;39mURLRequest[0;0m, for session: URLSession) async throws -> URLRequest {
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m35 |[0;0m var mutableRequest = request
[0;36m36 |[0;0m let strategy = await AuthResolution.$isResolving.withValue(true) {
/host/spi-builder-workspace/Sources/Nexio/Auth/AuthInterceptor.swift:34:59: [1;31merror: [1;39m'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m32 |[0;0m }
[0;36m33 |[0;0m
[0;36m34 |[0;0m public func adapt(_ request: URLRequest, for session: [4;39mURLSession[0;0m) async throws -> URLRequest {
[0;36m|[0;0m `- [1;31merror: [1;39m'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m35 |[0;0m var mutableRequest = request
[0;36m36 |[0;0m let strategy = await AuthResolution.$isResolving.withValue(true) {
Foundation.URLSession:2:18: [1;39mnote: [1;39m'URLSession' has been explicitly marked unavailable here[0;0m
[0;36m1 |[0;0m @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
[0;36m2 |[0;0m public typealias URLSession = AnyObject
[0;36m|[0;0m `- [1;39mnote: [1;39m'URLSession' has been explicitly marked unavailable here[0;0m
/host/spi-builder-workspace/Sources/Nexio/Auth/AuthInterceptor.swift:53:20: [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m51 |[0;0m
[0;36m52 |[0;0m public func retry(
[0;36m53 |[0;0m _ request: [4;39mURLRequest[0;0m,
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m54 |[0;0m dueTo error: NexioError,
[0;36m55 |[0;0m attempt: Int
/host/spi-builder-workspace/Sources/Nexio/Interceptor/Interceptor.swift:34:80: [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m32 |[0;0m /// - session: The session that will execute the request.
[0;36m33 |[0;0m /// - Returns: The (possibly mutated) request.
[0;36m34 |[0;0m func adapt(_ request: URLRequest, for session: URLSession) async throws -> [4;39mURLRequest[0;0m
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m35 |[0;0m
[0;36m36 |[0;0m /// Called after a request fails.
/host/spi-builder-workspace/Sources/Nexio/Interceptor/Interceptor.swift:34:27: [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m32 |[0;0m /// - session: The session that will execute the request.
[0;36m33 |[0;0m /// - Returns: The (possibly mutated) request.
[0;36m34 |[0;0m func adapt(_ request: [4;39mURLRequest[0;0m, for session: URLSession) async throws -> URLRequest
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m35 |[0;0m
[0;36m36 |[0;0m /// Called after a request fails.
/host/spi-builder-workspace/Sources/Nexio/Interceptor/Interceptor.swift:46:27: [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m44 |[0;0m /// - attempt: Zero-based retry counter (0 = first failure).
[0;36m45 |[0;0m /// - Returns: `true` to retry, `false` to propagate the error.
[0;36m46 |[0;0m func retry(_ request: [4;39mURLRequest[0;0m, dueTo error: NexioError, attempt: Int) async -> Bool
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m47 |[0;0m }
/host/spi-builder-workspace/Sources/Nexio/Core/NexioClient.swift:42:26: [1;31merror: [1;39m'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m40 |[0;0m private var retryPolicy: RetryPolicy = .none
[0;36m41 |[0;0m private var interceptors: [any Interceptor] = []
[0;36m42 |[0;0m private var session: [4;39mURLSession[0;0m = URLSession.shared
[0;36m|[0;0m `- [1;31merror: [1;39m'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m43 |[0;0m private let encoder: JSONEncoder = JSONEncoder()
[0;36m44 |[0;0m
Foundation.URLSession:2:18: [1;39mnote: [1;39m'URLSession' has been explicitly marked unavailable here[0;0m
[0;36m1 |[0;0m @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
[0;36m2 |[0;0m public typealias URLSession = AnyObject
[0;36m|[0;0m `- [1;39mnote: [1;39m'URLSession' has been explicitly marked unavailable here[0;0m
/host/spi-builder-workspace/Sources/Nexio/Core/NexioClient.swift:42:50: [1;31merror: [1;39mtype 'URLSession' (aka 'AnyObject') has no member 'shared'[0;0m
[0;36m40 |[0;0m private var retryPolicy: RetryPolicy = .none
[0;36m41 |[0;0m private var interceptors: [any Interceptor] = []
[0;36m42 |[0;0m private var session: URLSession = [4;39mURLSession[0;0m.[4;39mshared[0;0m
[0;36m|[0;0m `- [1;31merror: [1;39mtype 'URLSession' (aka 'AnyObject') has no member 'shared'[0;0m
[0;36m43 |[0;0m private let encoder: JSONEncoder = JSONEncoder()
[0;36m44 |[0;0m
/host/spi-builder-workspace/Sources/Nexio/Core/NexioClient.swift:42:50: [1;31merror: [1;39mvalue of type '_' expected to be instance of class or class-constrained type[0;0m
[0;36m40 |[0;0m private var retryPolicy: RetryPolicy = .none
[0;36m41 |[0;0m private var interceptors: [any Interceptor] = []
[0;36m42 |[0;0m private var session: URLSession = [4;39mURLSession.shared[0;0m
[0;36m|[0;0m `- [1;31merror: [1;39mvalue of type '_' expected to be instance of class or class-constrained type[0;0m
[0;36m43 |[0;0m private let encoder: JSONEncoder = JSONEncoder()
[0;36m44 |[0;0m
/host/spi-builder-workspace/Sources/Nexio/Core/NexioClient.swift:246:20: [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m244 |[0;0m /// match the response, or any status-mapped ``NexioError``.
[0;36m245 |[0;0m private func perform<T: Decodable & Sendable>(
[0;36m246 |[0;0m _ request: [4;39mURLRequest[0;0m,
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m247 |[0;0m skipDynamicAuth: Bool
[0;36m248 |[0;0m ) async throws -> T {
/host/spi-builder-workspace/Sources/Nexio/Core/NexioClient.swift:271:21: [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m269 |[0;0m /// transport ``NexioError`` from the final attempt.
[0;36m270 |[0;0m private func send(
[0;36m271 |[0;0m _ original: [4;39mURLRequest[0;0m,
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m272 |[0;0m skipDynamicAuth: Bool
[0;36m273 |[0;0m ) async throws -> (Data, HTTPURLResponse) {
/host/spi-builder-workspace/Sources/Nexio/Core/NexioClient.swift:273:30: [1;31merror: [1;39m'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m271 |[0;0m _ original: URLRequest,
[0;36m272 |[0;0m skipDynamicAuth: Bool
[0;36m273 |[0;0m ) async throws -> (Data, [4;39mHTTPURLResponse[0;0m) {
[0;36m|[0;0m `- [1;31merror: [1;39m'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m274 |[0;0m // A token refresh issued from inside an AuthInterceptor provider must not
[0;36m275 |[0;0m // go through that same interceptor again, or it would recurse.
Foundation.HTTPURLResponse:2:18: [1;39mnote: [1;39m'HTTPURLResponse' has been explicitly marked unavailable here[0;0m
[0;36m1 |[0;0m @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
[0;36m2 |[0;0m public typealias HTTPURLResponse = AnyObject
[0;36m|[0;0m `- [1;39mnote: [1;39m'HTTPURLResponse' has been explicitly marked unavailable here[0;0m
/host/spi-builder-workspace/Sources/Nexio/Core/NexioClient.swift:315:86: [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m313 |[0;0m /// - skipDynamicAuth: Whether to skip ``AuthInterceptor``.
[0;36m314 |[0;0m /// - Returns: The adapted request.
[0;36m315 |[0;0m private func adapt(_ request: URLRequest, skipDynamicAuth: Bool) async throws -> [4;39mURLRequest[0;0m {
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m316 |[0;0m var adapted = request
[0;36m317 |[0;0m for interceptor in interceptors {
/host/spi-builder-workspace/Sources/Nexio/Core/NexioClient.swift:315:35: [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m313 |[0;0m /// - skipDynamicAuth: Whether to skip ``AuthInterceptor``.
[0;36m314 |[0;0m /// - Returns: The adapted request.
[0;36m315 |[0;0m private func adapt(_ request: [4;39mURLRequest[0;0m, skipDynamicAuth: Bool) async throws -> URLRequest {
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m316 |[0;0m var adapted = request
[0;36m317 |[0;0m for interceptor in interceptors {
/host/spi-builder-workspace/Sources/Nexio/Core/NexioClient.swift:336:20: [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m334 |[0;0m /// - Returns: `true` to run another attempt.
[0;36m335 |[0;0m private func shouldRetry(
[0;36m336 |[0;0m _ request: [4;39mURLRequest[0;0m,
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m337 |[0;0m dueTo error: NexioError,
[0;36m338 |[0;0m attempt: Int
/host/spi-builder-workspace/Sources/Nexio/Core/NexioClient.swift:368:17: [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m366 |[0;0m headers: [String: String],
[0;36m367 |[0;0m body: Body?
[0;36m368 |[0;0m ) throws -> [4;39mURLRequest[0;0m {
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m369 |[0;0m guard let resolved = resolve(url) else {
[0;36m370 |[0;0m throw NexioError.invalidURL(url)
/host/spi-builder-workspace/Sources/Nexio/Core/NexioClient.swift:394:71: [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m392 |[0;0m /// - Returns: A populated `URLRequest`, ready for the interceptor pipeline.
[0;36m393 |[0;0m /// - Throws: ``NexioError/invalidURL(_:)`` if the composed URL is malformed.
[0;36m394 |[0;0m private func buildRequest(from endpoint: some Endpoint) throws -> [4;39mURLRequest[0;0m {
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m395 |[0;0m var components = URLComponents(
[0;36m396 |[0;0m url: endpoint.baseURL.appendingPathComponent(endpoint.path),
/host/spi-builder-workspace/Sources/Nexio/Core/NexioClient.swift:461:56: [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m459 |[0;0m ///
[0;36m460 |[0;0m /// - Parameter request: The request to mutate in place.
[0;36m461 |[0;0m private func applyDefaultHeaders(to request: inout [4;39mURLRequest[0;0m) {
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m462 |[0;0m config.defaultHeaders.forEach { request.setValue($1, forHTTPHeaderField: $0) }
[0;36m463 |[0;0m }
/host/spi-builder-workspace/Sources/Nexio/Core/NexioClient.swift:473:61: [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m471 |[0;0m ///
[0;36m472 |[0;0m /// - Parameter request: The request to clean, in place.
[0;36m473 |[0;0m private func stripCredentialHeaders(from request: inout [4;39mURLRequest[0;0m) {
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m474 |[0;0m for name in Self.credentialHeaderNames {
[0;36m475 |[0;0m request.setValue(nil, forHTTPHeaderField: name)
/host/spi-builder-workspace/Sources/Nexio/Core/NexioClient.swift:485:72: [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m483 |[0;0m /// - strategy: The strategy to apply, global or per-endpoint.
[0;36m484 |[0;0m /// - request: The request to mutate in place.
[0;36m485 |[0;0m private func applyAuth(_ strategy: AuthStrategy, to request: inout [4;39mURLRequest[0;0m) {
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m486 |[0;0m switch strategy {
[0;36m487 |[0;0m case .bearer(let token):
/host/spi-builder-workspace/Sources/Nexio/Core/NexioClient.swift:506:39: [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m504 |[0;0m /// - response: The response that came back.
[0;36m505 |[0;0m /// - data: The raw response body (only its byte count is logged).
[0;36m506 |[0;0m private func logIfNeeded(request: [4;39mURLRequest[0;0m, response: HTTPURLResponse, data: Data) {
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m507 |[0;0m switch config.logLevel {
[0;36m508 |[0;0m case .none:
/host/spi-builder-workspace/Sources/Nexio/Core/NexioClient.swift:506:61: [1;31merror: [1;39m'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m504 |[0;0m /// - response: The response that came back.
[0;36m505 |[0;0m /// - data: The raw response body (only its byte count is logged).
[0;36m506 |[0;0m private func logIfNeeded(request: URLRequest, response: [4;39mHTTPURLResponse[0;0m, data: Data) {
[0;36m|[0;0m `- [1;31merror: [1;39m'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m507 |[0;0m switch config.logLevel {
[0;36m508 |[0;0m case .none:
Foundation.HTTPURLResponse:2:18: [1;39mnote: [1;39m'HTTPURLResponse' has been explicitly marked unavailable here[0;0m
[0;36m1 |[0;0m @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
[0;36m2 |[0;0m public typealias HTTPURLResponse = AnyObject
[0;36m|[0;0m `- [1;39mnote: [1;39m'HTTPURLResponse' has been explicitly marked unavailable here[0;0m
/host/spi-builder-workspace/Sources/Nexio/Core/NexioRequest.swift:30:26: [1;31merror: [1;39m'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m28 |[0;0m }
[0;36m29 |[0;0m
[0;36m30 |[0;0m init(urlSessionTask: [4;39mURLSessionTask[0;0m) {
[0;36m|[0;0m `- [1;31merror: [1;39m'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m31 |[0;0m task = _TaskBox(urlSessionTask)
[0;36m32 |[0;0m }
Foundation.URLSessionTask:2:18: [1;39mnote: [1;39m'URLSessionTask' has been explicitly marked unavailable here[0;0m
[0;36m1 |[0;0m @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
[0;36m2 |[0;0m public typealias URLSessionTask = AnyObject
[0;36m|[0;0m `- [1;39mnote: [1;39m'URLSessionTask' has been explicitly marked unavailable here[0;0m
/host/spi-builder-workspace/Sources/Nexio/Core/NexioRequest.swift:40:26: [1;31merror: [1;39m'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m38 |[0;0m /// `URLSessionTask` is thread-safe for `cancel()` calls per Apple's docs.
[0;36m39 |[0;0m private final class _TaskBox: @unchecked Sendable {
[0;36m40 |[0;0m private let wrapped: [4;39mURLSessionTask[0;0m
[0;36m|[0;0m `- [1;31merror: [1;39m'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m41 |[0;0m init(_ task: URLSessionTask) { wrapped = task }
[0;36m42 |[0;0m func cancel() { wrapped.cancel() }
Foundation.URLSessionTask:2:18: [1;39mnote: [1;39m'URLSessionTask' has been explicitly marked unavailable here[0;0m
[0;36m1 |[0;0m @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
[0;36m2 |[0;0m public typealias URLSessionTask = AnyObject
[0;36m|[0;0m `- [1;39mnote: [1;39m'URLSessionTask' has been explicitly marked unavailable here[0;0m
/host/spi-builder-workspace/Sources/Nexio/Core/NexioRequest.swift:41:18: [1;31merror: [1;39m'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m39 |[0;0m private final class _TaskBox: @unchecked Sendable {
[0;36m40 |[0;0m private let wrapped: URLSessionTask
[0;36m41 |[0;0m init(_ task: [4;39mURLSessionTask[0;0m) { wrapped = task }
[0;36m|[0;0m `- [1;31merror: [1;39m'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m42 |[0;0m func cancel() { wrapped.cancel() }
[0;36m43 |[0;0m }
Foundation.URLSessionTask:2:18: [1;39mnote: [1;39m'URLSessionTask' has been explicitly marked unavailable here[0;0m
[0;36m1 |[0;0m @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
[0;36m2 |[0;0m public typealias URLSessionTask = AnyObject
[0;36m|[0;0m `- [1;39mnote: [1;39m'URLSessionTask' has been explicitly marked unavailable here[0;0m
/host/spi-builder-workspace/Sources/Nexio/Errors/NexioError.swift:22:23: [1;31merror: [1;39m'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m20 |[0;0m
[0;36m21 |[0;0m /// The server returned HTTP 401.
[0;36m22 |[0;0m case unauthorized([4;39mHTTPURLResponse[0;0m)
[0;36m|[0;0m `- [1;31merror: [1;39m'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m23 |[0;0m
[0;36m24 |[0;0m /// The server returned HTTP 404.
Foundation.HTTPURLResponse:2:18: [1;39mnote: [1;39m'HTTPURLResponse' has been explicitly marked unavailable here[0;0m
[0;36m1 |[0;0m @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
[0;36m2 |[0;0m public typealias HTTPURLResponse = AnyObject
[0;36m|[0;0m `- [1;39mnote: [1;39m'HTTPURLResponse' has been explicitly marked unavailable here[0;0m
/host/spi-builder-workspace/Sources/Nexio/Errors/NexioError.swift:25:19: [1;31merror: [1;39m'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m23 |[0;0m
[0;36m24 |[0;0m /// The server returned HTTP 404.
[0;36m25 |[0;0m case notFound([4;39mHTTPURLResponse[0;0m)
[0;36m|[0;0m `- [1;31merror: [1;39m'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m26 |[0;0m
[0;36m27 |[0;0m /// The server returned a 5xx or other unexpected status code.
Foundation.HTTPURLResponse:2:18: [1;39mnote: [1;39m'HTTPURLResponse' has been explicitly marked unavailable here[0;0m
[0;36m1 |[0;0m @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
[0;36m2 |[0;0m public typealias HTTPURLResponse = AnyObject
[0;36m|[0;0m `- [1;39mnote: [1;39m'HTTPURLResponse' has been explicitly marked unavailable here[0;0m
/host/spi-builder-workspace/Sources/Nexio/Errors/NexioError.swift:22:10: [1;31merror: [1;39massociated value 'unauthorized' of 'Sendable'-conforming enum 'NexioError' has non-Sendable type 'AnyObject'[0;0m
[0;36m20 |[0;0m
[0;36m21 |[0;0m /// The server returned HTTP 401.
[0;36m22 |[0;0m case unauthorized(HTTPURLResponse)
[0;36m|[0;0m `- [1;31merror: [1;39massociated value 'unauthorized' of 'Sendable'-conforming enum 'NexioError' has non-Sendable type 'AnyObject'[0;0m
[0;36m23 |[0;0m
[0;36m24 |[0;0m /// The server returned HTTP 404.
/host/spi-builder-workspace/Sources/Nexio/Errors/NexioError.swift:25:10: [1;31merror: [1;39massociated value 'notFound' of 'Sendable'-conforming enum 'NexioError' has non-Sendable type 'AnyObject'[0;0m
[0;36m23 |[0;0m
[0;36m24 |[0;0m /// The server returned HTTP 404.
[0;36m25 |[0;0m case notFound(HTTPURLResponse)
[0;36m|[0;0m `- [1;31merror: [1;39massociated value 'notFound' of 'Sendable'-conforming enum 'NexioError' has non-Sendable type 'AnyObject'[0;0m
[0;36m26 |[0;0m
[0;36m27 |[0;0m /// The server returned a 5xx or other unexpected status code.
/host/spi-builder-workspace/Sources/Nexio/Image/ImageLoader.swift:24:16: [1;31merror: [1;39mcannot find type 'PlatformImage' in scope[0;0m
[0;36m22 |[0;0m /// never mutated afterwards, so sharing the reference is safe.
[0;36m23 |[0;0m private struct DecodedImage: @unchecked Sendable {
[0;36m24 |[0;0m let image: [4;39mPlatformImage[0;0m
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find type 'PlatformImage' in scope[0;0m
[0;36m25 |[0;0m }
[0;36m26 |[0;0m
/host/spi-builder-workspace/Sources/Nexio/Image/ImageLoader.swift:51:26: [1;31merror: [1;39m'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m49 |[0;0m // MARK: - Private State
[0;36m50 |[0;0m
[0;36m51 |[0;0m private let session: [4;39mURLSession[0;0m
[0;36m|[0;0m `- [1;31merror: [1;39m'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m52 |[0;0m
[0;36m53 |[0;0m // MARK: - Init
Foundation.URLSession:2:18: [1;39mnote: [1;39m'URLSession' has been explicitly marked unavailable here[0;0m
[0;36m1 |[0;0m @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
[0;36m2 |[0;0m public typealias URLSession = AnyObject
[0;36m|[0;0m `- [1;39mnote: [1;39m'URLSession' has been explicitly marked unavailable here[0;0m
/host/spi-builder-workspace/Sources/Nexio/Image/ImageLoader.swift:61:26: [1;31merror: [1;39m'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m59 |[0;0m ///
[0;36m60 |[0;0m /// - Parameter session: Override for testing. Pass `nil` to use the default.
[0;36m61 |[0;0m public init(session: [4;39mURLSession[0;0m? = nil) {
[0;36m|[0;0m `- [1;31merror: [1;39m'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m62 |[0;0m if let session {
[0;36m63 |[0;0m self.session = session
Foundation.URLSession:2:18: [1;39mnote: [1;39m'URLSession' has been explicitly marked unavailable here[0;0m
[0;36m1 |[0;0m @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
[0;36m2 |[0;0m public typealias URLSession = AnyObject
[0;36m|[0;0m `- [1;39mnote: [1;39m'URLSession' has been explicitly marked unavailable here[0;0m
/host/spi-builder-workspace/Sources/Nexio/Image/ImageLoader.swift:85:50: [1;31merror: [1;39mcannot find type 'PlatformImage' in scope[0;0m
[0;36m83 |[0;0m /// - Throws: ``NexioError`` on network failure; a generic error if the
[0;36m84 |[0;0m /// data cannot be decoded as an image.
[0;36m85 |[0;0m public func load(_ url: URL) async throws -> [4;39mPlatformImage[0;0m {
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find type 'PlatformImage' in scope[0;0m
[0;36m86 |[0;0m let request = URLRequest(url: url)
[0;36m87 |[0;0m let (data, response) = try await session.nexioData(for: request)
/host/spi-builder-workspace/Sources/Nexio/Image/ImageLoader.swift:65:25: [1;31merror: [1;39m'URLCache' (aka 'AnyObject') cannot be constructed because it has no accessible initializers[0;0m
[0;36m63 |[0;0m self.session = session
[0;36m64 |[0;0m } else {
[0;36m65 |[0;0m let cache = [4;39mURLCache[0;0m(
[0;36m|[0;0m `- [1;31merror: [1;39m'URLCache' (aka 'AnyObject') cannot be constructed because it has no accessible initializers[0;0m
[0;36m66 |[0;0m memoryCapacity: 50 * 1024 * 1024, // 50 MB
[0;36m67 |[0;0m diskCapacity: 200 * 1024 * 1024, // 200 MB
/host/spi-builder-workspace/Sources/Nexio/Image/ImageLoader.swift:70:50: [1;31merror: [1;39mtype 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'[0;0m
[0;36m68 |[0;0m diskPath: "com.nexio.imagecache"
[0;36m69 |[0;0m )
[0;36m70 |[0;0m let config = [4;39mURLSessionConfiguration[0;0m.[4;39mdefault[0;0m
[0;36m|[0;0m `- [1;31merror: [1;39mtype 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'[0;0m
[0;36m71 |[0;0m config.urlCache = cache
[0;36m72 |[0;0m config.requestCachePolicy = .returnCacheDataElseLoad
/host/spi-builder-workspace/Sources/Nexio/Image/ImageLoader.swift:72:42: [1;31merror: [1;39mcannot infer contextual base in reference to member 'returnCacheDataElseLoad'[0;0m
[0;36m70 |[0;0m let config = URLSessionConfiguration.default
[0;36m71 |[0;0m config.urlCache = cache
[0;36m72 |[0;0m config.requestCachePolicy = [4;39m.returnCacheDataElseLoad[0;0m
[0;36m|[0;0m `- [1;31merror: [1;39mcannot infer contextual base in reference to member 'returnCacheDataElseLoad'[0;0m
[0;36m73 |[0;0m self.session = URLSession(configuration: config)
[0;36m74 |[0;0m }
/host/spi-builder-workspace/Sources/Nexio/Image/ImageLoader.swift:73:28: [1;31merror: [1;39mvalue of type '_' expected to be an instance of a class or class-constrained type in assignment[0;0m
[0;36m71 |[0;0m config.urlCache = cache
[0;36m72 |[0;0m config.requestCachePolicy = .returnCacheDataElseLoad
[0;36m73 |[0;0m self.session = [4;39mURLSession(configuration: config)[0;0m
[0;36m|[0;0m `- [1;31merror: [1;39mvalue of type '_' expected to be an instance of a class or class-constrained type in assignment[0;0m
[0;36m74 |[0;0m }
[0;36m75 |[0;0m }
/host/spi-builder-workspace/Sources/Nexio/Image/ImageLoader.swift:73:28: [1;31merror: [1;39m'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers[0;0m
[0;36m71 |[0;0m config.urlCache = cache
[0;36m72 |[0;0m config.requestCachePolicy = .returnCacheDataElseLoad
[0;36m73 |[0;0m self.session = [4;39mURLSession[0;0m(configuration: config)
[0;36m|[0;0m `- [1;31merror: [1;39m'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers[0;0m
[0;36m74 |[0;0m }
[0;36m75 |[0;0m }
/host/spi-builder-workspace/Sources/Nexio/Interceptor/Interceptor.swift:34:52: [1;31merror: [1;39m'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m32 |[0;0m /// - session: The session that will execute the request.
[0;36m33 |[0;0m /// - Returns: The (possibly mutated) request.
[0;36m34 |[0;0m func adapt(_ request: URLRequest, for session: [4;39mURLSession[0;0m) async throws -> URLRequest
[0;36m|[0;0m `- [1;31merror: [1;39m'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m35 |[0;0m
[0;36m36 |[0;0m /// Called after a request fails.
Foundation.URLSession:2:18: [1;39mnote: [1;39m'URLSession' has been explicitly marked unavailable here[0;0m
[0;36m1 |[0;0m @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
[0;36m2 |[0;0m public typealias URLSession = AnyObject
[0;36m|[0;0m `- [1;39mnote: [1;39m'URLSession' has been explicitly marked unavailable here[0;0m
/host/spi-builder-workspace/Sources/Nexio/Interceptor/RetryInterceptor.swift:99:33: [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m97 |[0;0m /// - attempt: Zero-based attempt counter.
[0;36m98 |[0;0m /// - Returns: `true` to run another attempt.
[0;36m99 |[0;0m func shouldRetry(_ request: [4;39mURLRequest[0;0m, dueTo error: NexioError, attempt: Int) async -> Bool {
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m100 |[0;0m guard maxAttempts > 0, attempt < maxAttempts else { return false }
[0;36m101 |[0;0m guard Self.isIdempotent(request), Self.isRetryable(error) else { return false }
/host/spi-builder-workspace/Sources/Nexio/Interceptor/RetryInterceptor.swift:115:41: [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m113 |[0;0m
[0;36m114 |[0;0m /// Whether repeating `request` is safe. A missing method means GET.
[0;36m115 |[0;0m static func isIdempotent(_ request: [4;39mURLRequest[0;0m) -> Bool {
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m116 |[0;0m let method = (request.httpMethod ?? "GET").uppercased()
[0;36m117 |[0;0m return ["GET", "HEAD", "PUT", "DELETE", "OPTIONS"].contains(method)
/host/spi-builder-workspace/Sources/Nexio/Interceptor/RetryInterceptor.swift:155:87: [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m153 |[0;0m }
[0;36m154 |[0;0m
[0;36m155 |[0;0m public func adapt(_ request: URLRequest, for session: URLSession) async throws -> [4;39mURLRequest[0;0m {
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m156 |[0;0m request // pass-through
[0;36m157 |[0;0m }
/host/spi-builder-workspace/Sources/Nexio/Interceptor/RetryInterceptor.swift:155:34: [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m153 |[0;0m }
[0;36m154 |[0;0m
[0;36m155 |[0;0m public func adapt(_ request: [4;39mURLRequest[0;0m, for session: URLSession) async throws -> URLRequest {
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m156 |[0;0m request // pass-through
[0;36m157 |[0;0m }
/host/spi-builder-workspace/Sources/Nexio/Interceptor/RetryInterceptor.swift:155:59: [1;31merror: [1;39m'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m153 |[0;0m }
[0;36m154 |[0;0m
[0;36m155 |[0;0m public func adapt(_ request: URLRequest, for session: [4;39mURLSession[0;0m) async throws -> URLRequest {
[0;36m|[0;0m `- [1;31merror: [1;39m'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m156 |[0;0m request // pass-through
[0;36m157 |[0;0m }
Foundation.URLSession:2:18: [1;39mnote: [1;39m'URLSession' has been explicitly marked unavailable here[0;0m
[0;36m1 |[0;0m @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
[0;36m2 |[0;0m public typealias URLSession = AnyObject
[0;36m|[0;0m `- [1;39mnote: [1;39m'URLSession' has been explicitly marked unavailable here[0;0m
/host/spi-builder-workspace/Sources/Nexio/Interceptor/RetryInterceptor.swift:160:20: [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m158 |[0;0m
[0;36m159 |[0;0m public func retry(
[0;36m160 |[0;0m _ request: [4;39mURLRequest[0;0m,
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m161 |[0;0m dueTo error: NexioError,
[0;36m162 |[0;0m attempt: Int
/host/spi-builder-workspace/Sources/Nexio/Internal/HTTPURLResponseExtensions.swift:6:1: [1;31merror: [1;39mnon-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended[0;0m [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/nominal-types\NominalTypes]8;;\]
[0;36m4 |[0;0m import Foundation
[0;36m5 |[0;0m
[0;36m6 |[0;0m extension [4;39mHTTPURLResponse[0;0m {
[0;36m|[0;0m `- [1;31merror: [1;39mnon-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended[0;0m [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/nominal-types\NominalTypes]8;;\]
[0;36m7 |[0;0m
[0;36m8 |[0;0m /// Returns `true` when the status code is in the 200–299 range.
/host/spi-builder-workspace/Sources/Nexio/Internal/URLSessionExtensions.swift:6:1: [1;31merror: [1;39mnon-nominal type 'URLSession' (aka 'AnyObject') cannot be extended[0;0m [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/nominal-types\NominalTypes]8;;\]
[0;36m4 |[0;0m import Foundation
[0;36m5 |[0;0m
[0;36m6 |[0;0m extension [4;39mURLSession[0;0m {
[0;36m|[0;0m `- [1;31merror: [1;39mnon-nominal type 'URLSession' (aka 'AnyObject') cannot be extended[0;0m [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/nominal-types\NominalTypes]8;;\]
[0;36m7 |[0;0m
[0;36m8 |[0;0m /// Performs a data task and maps common `NSError` codes to ``NexioError``.
[#NominalTypes]: <https://docs.swift.org/compiler/documentation/diagnostics/nominal-types>
Failed frontend command:
/root/.local/share/swiftly/toolchains/6.4.0/usr/bin/swift-frontend -frontend -emit-module -experimental-skip-non-inlinable-function-bodies-without-types /host/spi-builder-workspace/Sources/Nexio/Auth/AuthInterceptor.swift /host/spi-builder-workspace/Sources/Nexio/Auth/AuthStrategy.swift /host/spi-builder-workspace/Sources/Nexio/Core/Endpoint.swift /host/spi-builder-workspace/Sources/Nexio/Core/NexioClient.swift /host/spi-builder-workspace/Sources/Nexio/Core/NexioConfig.swift /host/spi-builder-workspace/Sources/Nexio/Core/NexioRequest.swift /host/spi-builder-workspace/Sources/Nexio/Errors/NexioError.swift /host/spi-builder-workspace/Sources/Nexio/Image/ImageLoader.swift /host/spi-builder-workspace/Sources/Nexio/Image/NexioImage.swift /host/spi-builder-workspace/Sources/Nexio/Interceptor/Interceptor.swift /host/spi-builder-workspace/Sources/Nexio/Interceptor/RetryInterceptor.swift /host/spi-builder-workspace/Sources/Nexio/Internal/HTTPURLResponseExtensions.swift /host/spi-builder-workspace/Sources/Nexio/Internal/URLSessionExtensions.swift -target aarch64-unknown-linux-android28 -Xllvm -aarch64-use-tbi -disable-objc-interop -sdk /android-ndk/android-ndk-r30/toolchains/llvm/prebuilt/linux-x86_64/sysroot -sysroot /android-ndk/android-ndk-r30/toolchains/llvm/prebuilt/linux-x86_64/sysroot -I /host/spi-builder-workspace/.build/out/Products/Debug-android-aarch64 -module-cache-path /host/spi-builder-workspace/.build/out/ModuleCache.noindex -color-diagnostics -Xcc -fcolor-diagnostics -enable-testing -g -debug-info-format\=dwarf -dwarf-version\=4 -swift-version 6 -Onone -D SWIFT_PACKAGE -D DEBUG -D SWIFT_MODULE_RESOURCE_BUNDLE_UNAVAILABLE -D Xcode -serialize-debugging-options -enable-experimental-feature StrictConcurrency -enable-experimental-feature DebugDescriptionMacro -empty-abi-descriptor -external-plugin-path /root/.local/share/swiftly/toolchains/6.4.0/usr/lib/swift/host/plugins/testing\#/root/.local/share/swiftly/toolchains/6.4.0/usr/bin/swift-plugin-server -validate-clang-modules-once -clang-build-session-file /host/spi-builder-workspace/.build/out/ModuleCache.noindex/Session.modulevalidation -Xcc -working-directory -Xcc /host -resource-dir /root/.swiftpm/swift-sdks/swift-6.4.0-RELEASE_android.artifactbundle/swift-android/swift-resources/usr/lib/swift-aarch64 -enable-anonymous-context-mangled-names -file-compilation-dir /host -Xcc -resource-dir -Xcc /android-ndk/android-ndk-r30/toolchains/llvm/prebuilt/linux-x86_64/lib/clang/21 -Xcc -fno-omit-frame-pointer -Xcc -D_LIBCPP_HARDENING_MODE\=_LIBCPP_HARDENING_MODE_DEBUG -Xcc -fmodules-prune-interval\=86400 -Xcc -fmodules-prune-after\=345600 -Xcc -I/host/spi-builder-workspace/.build/out/Products/Debug-android-aarch64/include -Xcc -I/host/spi-builder-workspace/.build/out/Intermediates.noindex/Nexio.build/Debug-android-aarch64/Nexio-t.build/DerivedSources-normal/aarch64 -Xcc -I/host/spi-builder-workspace/.build/out/Intermediates.noindex/Nexio.build/Debug-android-aarch64/Nexio-t.build/DerivedSources/aarch64 -Xcc -I/host/spi-builder-workspace/.build/out/Intermediates.noindex/Nexio.build/Debug-android-aarch64/Nexio-t.build/DerivedSources -Xcc -DSWIFT_PACKAGE -Xcc -DDEBUG\=1 -no-auto-bridging-header-chaining -module-name Nexio -package-name spi_builder_workspace -const-gather-protocols-file /host/spi-builder-workspace/.build/out/Intermediates.noindex/Nexio.build/Debug-android-aarch64/Nexio-t.build/Objects-normal/aarch64/Nexio_const_extract_protocols.json -in-process-plugin-server-path /root/.local/share/swiftly/toolchains/6.4.0/usr/lib/swift/host/libSwiftInProcPluginServer.so -plugin-path /root/.local/share/swiftly/toolchains/6.4.0/usr/lib/swift/host/plugins -plugin-path /root/.local/share/swiftly/toolchains/6.4.0/usr/local/lib/swift/host/plugins -emit-module-doc-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/Nexio.build/Debug-android-aarch64/Nexio-t.build/Objects-normal/aarch64/Modules/Nexio.swiftdoc -emit-module-source-info-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/Nexio.build/Debug-android-aarch64/Nexio-t.build/Objects-normal/aarch64/Modules/Nexio.swiftsourceinfo -emit-objc-header-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/Nexio.build/Debug-android-aarch64/Nexio-t.build/Objects-normal/aarch64/Nexio-Swift.h -serialize-diagnostics-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/Nexio.build/Debug-android-aarch64/Nexio-t.build/Objects-normal/aarch64/Nexio-primary-emit-module.dia -emit-dependencies-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/Nexio.build/Debug-android-aarch64/Nexio-t.build/Objects-normal/aarch64/Nexio-primary-emit-module.d -parse-as-library -o /host/spi-builder-workspace/.build/out/Intermediates.noindex/Nexio.build/Debug-android-aarch64/Nexio-t.build/Objects-normal/aarch64/Modules/Nexio.swiftmodule
error: Build failed
BUILD FAILURE 6.4 android