Build Information
Failed to build Nexio, reference main (d4a313), with Swift 6.4 for Android on 25 Sep 2026 17:23:38 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.4-latest swift build --swift-sdk aarch64-unknown-linux-android28 2>&1Build Log
========================================
RunAll
========================================
Builder version: 5.1.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/ANSCoder/Nexio.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/ANSCoder/Nexio
* branch main -> FETCH_HEAD
* [new branch] main -> origin/main
HEAD is now at d4a3130 Merge pull request #3 from ANSCoder/chore/pr-tooling
Cloned https://github.com/ANSCoder/Nexio.git
Revision (git rev-parse @):
d4a31301027dea0a9dfd6a4eca91ceb289be1475
SUCCESS checkout https://github.com/ANSCoder/Nexio.git at main
========================================
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-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.4-latest swift build --swift-sdk aarch64-unknown-linux-android28 2>&1
android-6.4-latest: Pulling from saguaro1/spi-images
Digest: sha256:abadcff584c273feba50641b454858d377ba30b35ea7287a94f45ebd8afd0ea0
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:30:87: [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m28 |[0;0m }
[0;36m29 |[0;0m
[0;36m30 |[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;36m31 |[0;0m var mutableRequest = request
[0;36m32 |[0;0m let strategy = await provider()
/host/spi-builder-workspace/Sources/Nexio/Auth/AuthInterceptor.swift:30:34: [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m28 |[0;0m }
[0;36m29 |[0;0m
[0;36m30 |[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;36m31 |[0;0m var mutableRequest = request
[0;36m32 |[0;0m let strategy = await provider()
/host/spi-builder-workspace/Sources/Nexio/Auth/AuthInterceptor.swift:30: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;36m28 |[0;0m }
[0;36m29 |[0;0m
[0;36m30 |[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;36m31 |[0;0m var mutableRequest = request
[0;36m32 |[0;0m let strategy = await provider()
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:47:20: [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m45 |[0;0m
[0;36m46 |[0;0m public func retry(
[0;36m47 |[0;0m _ request: [4;39mURLRequest[0;0m,
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m48 |[0;0m dueTo error: NexioError,
[0;36m49 |[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:34: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;36m32 |[0;0m private var authStrategy: AuthStrategy = .none
[0;36m33 |[0;0m private var interceptors: [any Interceptor] = []
[0;36m34 |[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;36m35 |[0;0m private let decoder: JSONDecoder = JSONDecoder()
[0;36m36 |[0;0m private let encoder: JSONEncoder = JSONEncoder()
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:34:50: [1;31merror: [1;39mtype 'URLSession' (aka 'AnyObject') has no member 'shared'[0;0m
[0;36m32 |[0;0m private var authStrategy: AuthStrategy = .none
[0;36m33 |[0;0m private var interceptors: [any Interceptor] = []
[0;36m34 |[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;36m35 |[0;0m private let decoder: JSONDecoder = JSONDecoder()
[0;36m36 |[0;0m private let encoder: JSONEncoder = JSONEncoder()
/host/spi-builder-workspace/Sources/Nexio/Core/NexioClient.swift:34:50: [1;31merror: [1;39mvalue of type '_' expected to be instance of class or class-constrained type[0;0m
[0;36m32 |[0;0m private var authStrategy: AuthStrategy = .none
[0;36m33 |[0;0m private var interceptors: [any Interceptor] = []
[0;36m34 |[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;36m35 |[0;0m private let decoder: JSONDecoder = JSONDecoder()
[0;36m36 |[0;0m private let encoder: JSONEncoder = JSONEncoder()
/host/spi-builder-workspace/Sources/Nexio/Core/NexioClient.swift:222:62: [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m220 |[0;0m /// - Throws: ``NexioError/decodingFailed(underlying:data:)`` if `T`
[0;36m221 |[0;0m /// doesn't match the response shape, or any status-mapped ``NexioError``.
[0;36m222 |[0;0m private func perform<T: Decodable & Sendable>(_ request: [4;39mURLRequest[0;0m) async throws -> T {
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m223 |[0;0m let (data, http) = try await executeWithInterceptors(request, attempt: 0)
[0;36m224 |[0;0m logIfNeeded(request: request, response: http, data: data)
/host/spi-builder-workspace/Sources/Nexio/Core/NexioClient.swift:254:20: [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m252 |[0;0m /// interceptor opts to retry.
[0;36m253 |[0;0m private func executeWithInterceptors(
[0;36m254 |[0;0m _ request: [4;39mURLRequest[0;0m,
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m255 |[0;0m attempt: Int
[0;36m256 |[0;0m ) async throws -> (Data, HTTPURLResponse) {
/host/spi-builder-workspace/Sources/Nexio/Core/NexioClient.swift:256: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;36m254 |[0;0m _ request: URLRequest,
[0;36m255 |[0;0m attempt: Int
[0;36m256 |[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;36m257 |[0;0m var adapted = request
[0;36m258 |[0;0m for interceptor in interceptors {
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:292:17: [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m290 |[0;0m headers: [String: String],
[0;36m291 |[0;0m body: Body?
[0;36m292 |[0;0m ) throws -> [4;39mURLRequest[0;0m {
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m293 |[0;0m guard let resolved = resolve(url) else {
[0;36m294 |[0;0m throw NexioError.invalidURL(url)
/host/spi-builder-workspace/Sources/Nexio/Core/NexioClient.swift:318:71: [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m316 |[0;0m /// - Returns: A populated `URLRequest`, ready for the interceptor pipeline.
[0;36m317 |[0;0m /// - Throws: ``NexioError/invalidURL(_:)`` if the composed URL is malformed.
[0;36m318 |[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;36m319 |[0;0m var components = URLComponents(
[0;36m320 |[0;0m url: endpoint.baseURL.appendingPathComponent(endpoint.path),
/host/spi-builder-workspace/Sources/Nexio/Core/NexioClient.swift:365:56: [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m363 |[0;0m ///
[0;36m364 |[0;0m /// - Parameter request: The request to mutate in place.
[0;36m365 |[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;36m366 |[0;0m config.defaultHeaders.forEach { request.setValue($1, forHTTPHeaderField: $0) }
[0;36m367 |[0;0m }
/host/spi-builder-workspace/Sources/Nexio/Core/NexioClient.swift:375:72: [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m373 |[0;0m /// - strategy: The strategy to apply — global or per-endpoint.
[0;36m374 |[0;0m /// - request: The request to mutate in place.
[0;36m375 |[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;36m376 |[0;0m switch strategy {
[0;36m377 |[0;0m case .bearer(let token):
/host/spi-builder-workspace/Sources/Nexio/Core/NexioClient.swift:396:39: [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m394 |[0;0m /// - response: The response that came back.
[0;36m395 |[0;0m /// - data: The raw response body (only its byte count is logged).
[0;36m396 |[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;36m397 |[0;0m switch config.logLevel {
[0;36m398 |[0;0m case .none:
/host/spi-builder-workspace/Sources/Nexio/Core/NexioClient.swift:396: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;36m394 |[0;0m /// - response: The response that came back.
[0;36m395 |[0;0m /// - data: The raw response body (only its byte count is logged).
[0;36m396 |[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;36m397 |[0;0m switch config.logLevel {
[0;36m398 |[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:27: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;36m25 |[0;0m }
[0;36m26 |[0;0m
[0;36m27 |[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;36m28 |[0;0m task = _TaskBox(urlSessionTask)
[0;36m29 |[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:37: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;36m35 |[0;0m /// `URLSessionTask` is thread-safe for `cancel()` calls per Apple's docs.
[0;36m36 |[0;0m private final class _TaskBox: @unchecked Sendable {
[0;36m37 |[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;36m38 |[0;0m init(_ task: URLSessionTask) { wrapped = task }
[0;36m39 |[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:38: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;36m36 |[0;0m private final class _TaskBox: @unchecked Sendable {
[0;36m37 |[0;0m private let wrapped: URLSessionTask
[0;36m38 |[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;36m39 |[0;0m func cancel() { wrapped.cancel() }
[0;36m40 |[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:40: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;36m38 |[0;0m // MARK: - Private State
[0;36m39 |[0;0m
[0;36m40 |[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;36m41 |[0;0m
[0;36m42 |[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:50: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;36m48 |[0;0m ///
[0;36m49 |[0;0m /// - Parameter session: Override for testing. Pass `nil` to use the default.
[0;36m50 |[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;36m51 |[0;0m if let session {
[0;36m52 |[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:74:50: [1;31merror: [1;39mcannot find type 'PlatformImage' in scope[0;0m
[0;36m72 |[0;0m /// - Throws: ``NexioError`` on network failure; a generic error if the
[0;36m73 |[0;0m /// data cannot be decoded as an image.
[0;36m74 |[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;36m75 |[0;0m let request = URLRequest(url: url)
[0;36m76 |[0;0m let (data, response) = try await session.nexioData(for: request)
/host/spi-builder-workspace/Sources/Nexio/Image/ImageLoader.swift:54:25: [1;31merror: [1;39m'URLCache' (aka 'AnyObject') cannot be constructed because it has no accessible initializers[0;0m
[0;36m52 |[0;0m self.session = session
[0;36m53 |[0;0m } else {
[0;36m54 |[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;36m55 |[0;0m memoryCapacity: 50 * 1024 * 1024, // 50 MB
[0;36m56 |[0;0m diskCapacity: 200 * 1024 * 1024, // 200 MB
/host/spi-builder-workspace/Sources/Nexio/Image/ImageLoader.swift:59:50: [1;31merror: [1;39mtype 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'[0;0m
[0;36m57 |[0;0m diskPath: "com.nexio.imagecache"
[0;36m58 |[0;0m )
[0;36m59 |[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;36m60 |[0;0m config.urlCache = cache
[0;36m61 |[0;0m config.requestCachePolicy = .returnCacheDataElseLoad
/host/spi-builder-workspace/Sources/Nexio/Image/ImageLoader.swift:61:42: [1;31merror: [1;39mcannot infer contextual base in reference to member 'returnCacheDataElseLoad'[0;0m
[0;36m59 |[0;0m let config = URLSessionConfiguration.default
[0;36m60 |[0;0m config.urlCache = cache
[0;36m61 |[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;36m62 |[0;0m self.session = URLSession(configuration: config)
[0;36m63 |[0;0m }
/host/spi-builder-workspace/Sources/Nexio/Image/ImageLoader.swift:62:28: [1;31merror: [1;39mvalue of type '_' expected to be an instance of a class or class-constrained type in assignment[0;0m
[0;36m60 |[0;0m config.urlCache = cache
[0;36m61 |[0;0m config.requestCachePolicy = .returnCacheDataElseLoad
[0;36m62 |[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;36m63 |[0;0m }
[0;36m64 |[0;0m }
/host/spi-builder-workspace/Sources/Nexio/Image/ImageLoader.swift:62:28: [1;31merror: [1;39m'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers[0;0m
[0;36m60 |[0;0m config.urlCache = cache
[0;36m61 |[0;0m config.requestCachePolicy = .returnCacheDataElseLoad
[0;36m62 |[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;36m63 |[0;0m }
[0;36m64 |[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:92:87: [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m90 |[0;0m }
[0;36m91 |[0;0m
[0;36m92 |[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;36m93 |[0;0m request // pass-through
[0;36m94 |[0;0m }
/host/spi-builder-workspace/Sources/Nexio/Interceptor/RetryInterceptor.swift:92:34: [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m90 |[0;0m }
[0;36m91 |[0;0m
[0;36m92 |[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;36m93 |[0;0m request // pass-through
[0;36m94 |[0;0m }
/host/spi-builder-workspace/Sources/Nexio/Interceptor/RetryInterceptor.swift:92: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;36m90 |[0;0m }
[0;36m91 |[0;0m
[0;36m92 |[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;36m93 |[0;0m request // pass-through
[0;36m94 |[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:97:20: [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m95 |[0;0m
[0;36m96 |[0;0m public func retry(
[0;36m97 |[0;0m _ request: [4;39mURLRequest[0;0m,
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m98 |[0;0m dueTo error: NexioError,
[0;36m99 |[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.x-snapshot-2026-09-04/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-r27d/toolchains/llvm/prebuilt/linux-x86_64/sysroot -sysroot /android-ndk/android-ndk-r27d/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.x-snapshot-2026-09-04/usr/lib/swift/host/plugins/testing\#/root/.local/share/swiftly/toolchains/6.4.x-snapshot-2026-09-04/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.x-DEVELOPMENT-SNAPSHOT-2026-09-04-a_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-r27d/toolchains/llvm/prebuilt/linux-x86_64/lib/clang/18 -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.x-snapshot-2026-09-04/usr/lib/swift/host/libSwiftInProcPluginServer.so -plugin-path /root/.local/share/swiftly/toolchains/6.4.x-snapshot-2026-09-04/usr/lib/swift/host/plugins -plugin-path /root/.local/share/swiftly/toolchains/6.4.x-snapshot-2026-09-04/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