Build Information
Failed to build NRouter, reference main (5b62e4), with Swift 6.2 for Android on 6 Sep 2026 06:25:41 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-53886770-0":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/saguaro1/spi-images:android-6.2-latest swift build --swift-sdk aarch64-unknown-linux-android28 2>&1Build Log
========================================
RunAll
========================================
Builder version: 5.0.2
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/nRouterAI/nrouter-sdk.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/nRouterAI/nrouter-sdk
* branch main -> FETCH_HEAD
* [new branch] main -> origin/main
HEAD is now at 5b62e4b feat(sdks): error envelopes, log redaction, trace routing and session context (iterations 9-10)
Cloned https://github.com/nRouterAI/nrouter-sdk.git
Revision (git rev-parse @):
5b62e4b978d59815b853ee34c8b6304007be5502
SUCCESS checkout https://github.com/nRouterAI/nrouter-sdk.git at main
========================================
Build
========================================
Selected platform: android
Swift version: 6.2
Building package at path: $PWD
https://github.com/nRouterAI/nrouter-sdk.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-53886770-0":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/saguaro1/spi-images:android-6.2-latest swift build --swift-sdk aarch64-unknown-linux-android28 2>&1
android-6.2-latest: Pulling from saguaro1/spi-images
Digest: sha256:573917aa137cc6f081a4f3d2a0330bac24553e9cd713cd758adf65046f5c6b90
Status: Image is up to date for registry.gitlab.com/saguaro1/spi-images:android-6.2-latest
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version--11D90AFD9DD3AB2.txt
[3/10] Compiling NRouter Memory.swift
[4/11] Compiling NRouter Media.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[5/11] Compiling NRouter Diagnostics.swift
[6/11] Emitting module NRouter
/host/spi-builder-workspace/sdks/swift/Sources/NRouter/ResponseMeta.swift:89:27: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
87 |
88 | /// Parse from an `HTTPURLResponse`.
89 | public init(response: HTTPURLResponse) {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
90 | self.init { name in
91 | // Header names are case-insensitive on the wire; ask the way
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
[7/11] Compiling NRouter NRouterError.swift
[8/11] Compiling NRouter Prompts.swift
[9/11] Compiling NRouter ResponseMeta.swift
/host/spi-builder-workspace/sdks/swift/Sources/NRouter/ResponseMeta.swift:89:27: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
87 |
88 | /// Parse from an `HTTPURLResponse`.
89 | public init(response: HTTPURLResponse) {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
90 | self.init { name in
91 | // Header names are case-insensitive on the wire; ask the way
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/sdks/swift/Sources/NRouter/ResponseMeta.swift:95:37: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
93 | // platforms where the case-insensitive lookup is unavailable.
94 | if #available(macOS 13.0, iOS 16.0, tvOS 16.0, watchOS 9.0, *) {
95 | if let v = response.value(forHTTPHeaderField: name) { return v }
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
96 | }
97 | for (key, value) in response.allHeaderFields {
[10/11] Compiling NRouter NRouter.swift
/host/spi-builder-workspace/sdks/swift/Sources/NRouter/NRouter.swift:515:31: error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
513 | NRouter.applyDeadline(&request, from: streamingSession)
514 |
515 | let bytes: URLSession.AsyncBytes
| `- error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
516 | let response: URLResponse
517 | do {
FoundationNetworking.URLSession:1:12: note: 'URLSession' declared here
1 | open class URLSession : NSObject, @unchecked Sendable {
| `- note: 'URLSession' declared here
2 | open class var shared: URLSession { get }
3 | public init(configuration: URLSessionConfiguration)
/host/spi-builder-workspace/sdks/swift/Sources/NRouter/NRouter.swift:518:60: error: value of type 'URLSession' has no member 'bytes'
516 | let response: URLResponse
517 | do {
518 | (bytes, response) = try await streamingSession.bytes(for: request)
| `- error: value of type 'URLSession' has no member 'bytes'
519 | } catch is CancellationError {
520 | throw CancellationError()
[11/11] Compiling NRouter Sampling.swift
BUILD FAILURE 6.2 android