Build Information
Failed to build HTTP, reference main (f61a71), with Swift 6.4 for Android on 22 Sep 2026 03:14:09 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.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/grdsdev/swift-http.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/grdsdev/swift-http
* branch main -> FETCH_HEAD
* [new branch] main -> origin/main
HEAD is now at f61a71a Update deps
Cloned https://github.com/grdsdev/swift-http.git
Revision (git rev-parse @):
f61a71ad4278287a033a36595132c19f1af2d3c6
SPI manifest file found: $PWD/.spi.yml
SUCCESS checkout https://github.com/grdsdev/swift-http.git at main
========================================
Build
========================================
Selected platform: android
Swift version: 6.4
Building package at path: $PWD
https://github.com/grdsdev/swift-http.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:abadcff584c273feba50641b454858d377ba30b35ea7287a94f45ebd8afd0ea0
Status: Image is up to date for registry.gitlab.com/saguaro1/spi-images:android-6.4-latest
Fetching https://github.com/apple/swift-http-types
Fetching https://github.com/pointfreeco/swift-snapshot-testing
[1/1935] Fetching swift-http-types
[1936/18370] Fetching swift-http-types, swift-snapshot-testing
Fetched https://github.com/apple/swift-http-types (2.31s)
Fetched https://github.com/pointfreeco/swift-snapshot-testing (2.34s)
Computing version for https://github.com/apple/swift-http-types
Computed https://github.com/apple/swift-http-types at 1.8.0 (2.56s)
Computing version for https://github.com/pointfreeco/swift-snapshot-testing
Computed https://github.com/pointfreeco/swift-snapshot-testing at 1.19.6 (0.16s)
Fetching https://github.com/pointfreeco/swift-custom-dump
Fetching https://github.com/swiftlang/swift-syntax
[1/5666] Fetching swift-custom-dump
[5667/85665] Fetching swift-custom-dump, swift-syntax
Fetched https://github.com/pointfreeco/swift-custom-dump (2.95s)
Fetched https://github.com/swiftlang/swift-syntax (2.97s)
Computing version for https://github.com/pointfreeco/swift-custom-dump
Computed https://github.com/pointfreeco/swift-custom-dump at 1.7.3 (3.17s)
Fetching https://github.com/pointfreeco/swift-issue-reporting
[1/6142] Fetching swift-issue-reporting
Fetched https://github.com/pointfreeco/swift-issue-reporting (0.67s)
Computing version for https://github.com/pointfreeco/swift-issue-reporting
Computed https://github.com/pointfreeco/swift-issue-reporting at 2.1.0 (1.78s)
Computing version for https://github.com/swiftlang/swift-syntax
Computed https://github.com/swiftlang/swift-syntax at 604.0.0 (1.17s)
Creating working copy for https://github.com/pointfreeco/swift-custom-dump
Working copy of https://github.com/pointfreeco/swift-custom-dump resolved at 1.7.3
Creating working copy for https://github.com/pointfreeco/swift-snapshot-testing
Working copy of https://github.com/pointfreeco/swift-snapshot-testing resolved at 1.19.6
Creating working copy for https://github.com/pointfreeco/swift-issue-reporting
Working copy of https://github.com/pointfreeco/swift-issue-reporting resolved at 2.1.0
Creating working copy for https://github.com/apple/swift-http-types
Working copy of https://github.com/apple/swift-http-types resolved at 1.8.0
Creating working copy for https://github.com/swiftlang/swift-syntax
Working copy of https://github.com/swiftlang/swift-syntax resolved at 604.0.0
warning: 'spi-builder-workspace': found 1 file(s) which are unhandled; explicitly declare them as resources or exclude from the target
/host/spi-builder-workspace/Tests/HTTPTests/Fixtures/file.txt
Building for debugging...
[Constructing description]
[Planning deferred tasks]
[54 / 92] HTTPTypes
[63 / 99] HTTPTypesFoundation
[66 / 99] HTTPTypesFoundation
[74 / 107] HTTP
[76 / 107] HTTPTypes
[79 / 107] HTTP
[85 / 108] HTTPTypes
[91 / 112] HTTP
[105 / 118] HTTPFoundation
error: SwiftCompile normal aarch64 /host/spi-builder-workspace/Sources/HTTPFoundation/DataLoader.swift failed with a nonzero exit code. Command line: cd /host
builtin-SwiftPerFileCompile DataLoader.swift
/host/spi-builder-workspace/Sources/HTTPFoundation/DataLoader.swift:150:20: [1;33mwarning: [1;39mTODO: loading whole file into memory is not ideal, find a better solution[0;0m
[0;36m148 |[0;0m {
[0;36m149 |[0;0m do {
[0;36m150 |[0;0m #warning([4;39m"TODO: loading whole file into memory is not ideal, find a better solution"[0;0m)
[0;36m|[0;0m `- [1;33mwarning: [1;39mTODO: loading whole file into memory is not ideal, find a better solution[0;0m
[0;36m151 |[0;0m let body = Response.Body()
[0;36m152 |[0;0m body.yield(try Data(contentsOf: location))
/host/spi-builder-workspace/Sources/HTTPFoundation/DataLoader.swift:102:38: [1;31merror: [1;39mcannot use optional chaining on non-optional value of type '(URLSession, (any Error)?) -> ()'[0;0m
[0;36m100 |[0;0m userSessionDelegate?.urlSession(session, didBecomeInvalidWithError: error)
[0;36m101 |[0;0m #else
[0;36m102 |[0;0m [4;39muserSessionDelegate?.urlSession?[0;0m(session, didBecomeInvalidWithError: error)
[0;36m|[0;0m `- [1;31merror: [1;39mcannot use optional chaining on non-optional value of type '(URLSession, (any Error)?) -> ()'[0;0m
[0;36m103 |[0;0m #endif
[0;36m104 |[0;0m }
/host/spi-builder-workspace/Sources/HTTPFoundation/DataLoader.swift:109:30: [1;31merror: [1;39mvalue of type 'any URLSessionDelegate' has no member 'urlSessionDidFinishEvents'[0;0m
[0;36m107 |[0;0m func urlSessionDidFinishEvents(forBackgroundURLSession session: URLSession) {
[0;36m108 |[0;0m if #available(macOS 11.0, *) {
[0;36m109 |[0;0m [4;39muserSessionDelegate?[0;0m.[4;39murlSessionDidFinishEvents[0;0m?(forBackgroundURLSession: session)
[0;36m|[0;0m `- [1;31merror: [1;39mvalue of type 'any URLSessionDelegate' has no member 'urlSessionDidFinishEvents'[0;0m
[0;36m110 |[0;0m } else {
[0;36m111 |[0;0m // Fallback on earlier versions
/host/spi-builder-workspace/Sources/HTTPFoundation/DataLoader.swift:125:35: [1;31merror: [1;39mcannot use optional chaining on non-optional value of type '(URLSession, URLSessionTask, (any Error)?) -> ()'[0;0m
[0;36m123 |[0;0m userTaskDelegate?.urlSession(session, task: task, didCompleteWithError: error)
[0;36m124 |[0;0m #else
[0;36m125 |[0;0m [4;39mhandler.delegate?.urlSession?[0;0m(session, task: task, didCompleteWithError: error)
[0;36m|[0;0m `- [1;31merror: [1;39mcannot use optional chaining on non-optional value of type '(URLSession, URLSessionTask, (any Error)?) -> ()'[0;0m
[0;36m126 |[0;0m userTaskDelegate?.urlSession?(session, task: task, didCompleteWithError: error)
[0;36m127 |[0;0m #endif
/host/spi-builder-workspace/Sources/HTTPFoundation/DataLoader.swift:126:35: [1;31merror: [1;39mcannot use optional chaining on non-optional value of type '(URLSession, URLSessionTask, (any Error)?) -> ()'[0;0m
[0;36m124 |[0;0m #else
[0;36m125 |[0;0m handler.delegate?.urlSession?(session, task: task, didCompleteWithError: error)
[0;36m126 |[0;0m [4;39muserTaskDelegate?.urlSession?[0;0m(session, task: task, didCompleteWithError: error)
[0;36m|[0;0m `- [1;31merror: [1;39mcannot use optional chaining on non-optional value of type '(URLSession, URLSessionTask, (any Error)?) -> ()'[0;0m
[0;36m127 |[0;0m #endif
[0;36m128 |[0;0m switch handler {
/host/spi-builder-workspace/Sources/HTTPFoundation/DataLoader.swift:180:36: [1;31merror: [1;39mcannot use optional chaining on non-optional value of type '(URLSession, URLSessionTask, URLSessionTaskMetrics) -> ()'[0;0m
[0;36m178 |[0;0m userTaskDelegate?.urlSession(session, task: task, didFinishCollecting: metrics)
[0;36m179 |[0;0m #else
[0;36m180 |[0;0m [4;39mhandler?.delegate?.urlSession?[0;0m(session, task: task, didFinishCollecting: metrics)
[0;36m|[0;0m `- [1;31merror: [1;39mcannot use optional chaining on non-optional value of type '(URLSession, URLSessionTask, URLSessionTaskMetrics) -> ()'[0;0m
[0;36m181 |[0;0m userTaskDelegate?.urlSession?(session, task: task, didFinishCollecting: metrics)
[0;36m182 |[0;0m #endif
/host/spi-builder-workspace/Sources/HTTPFoundation/DataLoader.swift:181:35: [1;31merror: [1;39mcannot use optional chaining on non-optional value of type '(URLSession, URLSessionTask, URLSessionTaskMetrics) -> ()'[0;0m
[0;36m179 |[0;0m #else
[0;36m180 |[0;0m handler?.delegate?.urlSession?(session, task: task, didFinishCollecting: metrics)
[0;36m181 |[0;0m [4;39muserTaskDelegate?.urlSession?[0;0m(session, task: task, didFinishCollecting: metrics)
[0;36m|[0;0m `- [1;31merror: [1;39mcannot use optional chaining on non-optional value of type '(URLSession, URLSessionTask, URLSessionTaskMetrics) -> ()'[0;0m
[0;36m182 |[0;0m #endif
[0;36m183 |[0;0m }
/host/spi-builder-workspace/Sources/HTTPFoundation/DataLoader.swift:197:43: [1;31merror: [1;39mcannot use optional chaining on non-optional value of type '(URLSession, URLSessionTask, HTTPURLResponse, URLRequest, @escaping @Sendable (URLRequest?) -> Void) -> ()'[0;0m
[0;36m195 |[0;0m completionHandler: completionHandler) ?? completionHandler(request)
[0;36m196 |[0;0m #else
[0;36m197 |[0;0m [4;39mhandlers[task]?.delegate?.urlSession?[0;0m(
[0;36m|[0;0m `- [1;31merror: [1;39mcannot use optional chaining on non-optional value of type '(URLSession, URLSessionTask, HTTPURLResponse, URLRequest, @escaping @Sendable (URLRequest?) -> Void) -> ()'[0;0m
[0;36m198 |[0;0m session, task: task, willPerformHTTPRedirection: response, newRequest: request,
[0;36m199 |[0;0m completionHandler: completionHandler) ?? userTaskDelegate?.urlSession?(
/host/spi-builder-workspace/Sources/HTTPFoundation/DataLoader.swift:199:78: [1;31merror: [1;39mcannot use optional chaining on non-optional value of type '(URLSession, URLSessionTask, HTTPURLResponse, URLRequest, @escaping @Sendable (URLRequest?) -> Void) -> ()'[0;0m
[0;36m197 |[0;0m handlers[task]?.delegate?.urlSession?(
[0;36m198 |[0;0m session, task: task, willPerformHTTPRedirection: response, newRequest: request,
[0;36m199 |[0;0m completionHandler: completionHandler) ?? [4;39muserTaskDelegate?.urlSession?[0;0m(
[0;36m|[0;0m `- [1;31merror: [1;39mcannot use optional chaining on non-optional value of type '(URLSession, URLSessionTask, HTTPURLResponse, URLRequest, @escaping @Sendable (URLRequest?) -> Void) -> ()'[0;0m
[0;36m200 |[0;0m session, task: task, willPerformHTTPRedirection: response, newRequest: request,
[0;36m201 |[0;0m completionHandler: completionHandler) ?? completionHandler(request)
/host/spi-builder-workspace/Sources/HTTPFoundation/DataLoader.swift:207:44: [1;31merror: [1;39mincorrect argument label in call (have '_:taskIsWaitingForConnectivity:', expected '_:didBecomeInvalidWithError:')[0;0m
[0;36m205 |[0;0m #if !os(Linux)
[0;36m206 |[0;0m func urlSession(_ session: URLSession, taskIsWaitingForConnectivity task: URLSessionTask) {
[0;36m207 |[0;0m handlers[task]?.delegate?.urlSession?(session, taskIsWaitingForConnectivity: task)
[0;36m|[0;0m `- [1;31merror: [1;39mincorrect argument label in call (have '_:taskIsWaitingForConnectivity:', expected '_:didBecomeInvalidWithError:')[0;0m
[0;36m208 |[0;0m userTaskDelegate?.urlSession?(session, taskIsWaitingForConnectivity: task)
[0;36m209 |[0;0m }
/host/spi-builder-workspace/Sources/HTTPFoundation/DataLoader.swift:207:84: [1;31merror: [1;39margument type 'URLSessionTask' does not conform to expected type 'Error'[0;0m
[0;36m205 |[0;0m #if !os(Linux)
[0;36m206 |[0;0m func urlSession(_ session: URLSession, taskIsWaitingForConnectivity task: URLSessionTask) {
[0;36m207 |[0;0m handlers[task]?.delegate?.urlSession?(session, taskIsWaitingForConnectivity: task)
[0;36m|[0;0m `- [1;31merror: [1;39margument type 'URLSessionTask' does not conform to expected type 'Error'[0;0m
[0;36m208 |[0;0m userTaskDelegate?.urlSession?(session, taskIsWaitingForConnectivity: task)
[0;36m209 |[0;0m }
/host/spi-builder-workspace/Sources/HTTPFoundation/DataLoader.swift:207:43: [1;31merror: [1;39mcannot use optional chaining on non-optional value of type '(URLSession, (any Error)?) -> ()'[0;0m
[0;36m205 |[0;0m #if !os(Linux)
[0;36m206 |[0;0m func urlSession(_ session: URLSession, taskIsWaitingForConnectivity task: URLSessionTask) {
[0;36m207 |[0;0m [4;39mhandlers[task]?.delegate?.urlSession?[0;0m(session, taskIsWaitingForConnectivity: task)
[0;36m|[0;0m `- [1;31merror: [1;39mcannot use optional chaining on non-optional value of type '(URLSession, (any Error)?) -> ()'[0;0m
[0;36m208 |[0;0m userTaskDelegate?.urlSession?(session, taskIsWaitingForConnectivity: task)
[0;36m209 |[0;0m }
/host/spi-builder-workspace/Sources/HTTPFoundation/DataLoader.swift:208:36: [1;31merror: [1;39mincorrect argument label in call (have '_:taskIsWaitingForConnectivity:', expected '_:didBecomeInvalidWithError:')[0;0m
[0;36m206 |[0;0m func urlSession(_ session: URLSession, taskIsWaitingForConnectivity task: URLSessionTask) {
[0;36m207 |[0;0m handlers[task]?.delegate?.urlSession?(session, taskIsWaitingForConnectivity: task)
[0;36m208 |[0;0m userTaskDelegate?.urlSession?(session, taskIsWaitingForConnectivity: task)
[0;36m|[0;0m `- [1;31merror: [1;39mincorrect argument label in call (have '_:taskIsWaitingForConnectivity:', expected '_:didBecomeInvalidWithError:')[0;0m
[0;36m209 |[0;0m }
[0;36m210 |[0;0m
/host/spi-builder-workspace/Sources/HTTPFoundation/DataLoader.swift:208:76: [1;31merror: [1;39margument type 'URLSessionTask' does not conform to expected type 'Error'[0;0m
[0;36m206 |[0;0m func urlSession(_ session: URLSession, taskIsWaitingForConnectivity task: URLSessionTask) {
[0;36m207 |[0;0m handlers[task]?.delegate?.urlSession?(session, taskIsWaitingForConnectivity: task)
[0;36m208 |[0;0m userTaskDelegate?.urlSession?(session, taskIsWaitingForConnectivity: task)
[0;36m|[0;0m `- [1;31merror: [1;39margument type 'URLSessionTask' does not conform to expected type 'Error'[0;0m
[0;36m209 |[0;0m }
[0;36m210 |[0;0m
/host/spi-builder-workspace/Sources/HTTPFoundation/DataLoader.swift:208:35: [1;31merror: [1;39mcannot use optional chaining on non-optional value of type '(URLSession, (any Error)?) -> ()'[0;0m
[0;36m206 |[0;0m func urlSession(_ session: URLSession, taskIsWaitingForConnectivity task: URLSessionTask) {
[0;36m207 |[0;0m handlers[task]?.delegate?.urlSession?(session, taskIsWaitingForConnectivity: task)
[0;36m208 |[0;0m [4;39muserTaskDelegate?.urlSession?[0;0m(session, taskIsWaitingForConnectivity: task)
[0;36m|[0;0m `- [1;31merror: [1;39mcannot use optional chaining on non-optional value of type '(URLSession, (any Error)?) -> ()'[0;0m
[0;36m209 |[0;0m }
[0;36m210 |[0;0m
/host/spi-builder-workspace/Sources/HTTPFoundation/DataLoader.swift:214:48: [1;31merror: [1;39mincorrect argument label in call (have '_:didCreateTask:', expected '_:didBecomeInvalidWithError:')[0;0m
[0;36m212 |[0;0m func urlSession(_ session: URLSession, didCreateTask task: URLSessionTask) {
[0;36m213 |[0;0m if #available(iOS 16.0, macOS 13.0, tvOS 16.0, watchOS 9.0, *) {
[0;36m214 |[0;0m handlers[task]?.delegate?.urlSession?(session, didCreateTask: task)
[0;36m|[0;0m `- [1;31merror: [1;39mincorrect argument label in call (have '_:didCreateTask:', expected '_:didBecomeInvalidWithError:')[0;0m
[0;36m215 |[0;0m userTaskDelegate?.urlSession?(session, didCreateTask: task)
[0;36m216 |[0;0m } else {
/host/spi-builder-workspace/Sources/HTTPFoundation/DataLoader.swift:214:73: [1;31merror: [1;39margument type 'URLSessionTask' does not conform to expected type 'Error'[0;0m
[0;36m212 |[0;0m func urlSession(_ session: URLSession, didCreateTask task: URLSessionTask) {
[0;36m213 |[0;0m if #available(iOS 16.0, macOS 13.0, tvOS 16.0, watchOS 9.0, *) {
[0;36m214 |[0;0m handlers[task]?.delegate?.urlSession?(session, didCreateTask: task)
[0;36m|[0;0m `- [1;31merror: [1;39margument type 'URLSessionTask' does not conform to expected type 'Error'[0;0m
[0;36m215 |[0;0m userTaskDelegate?.urlSession?(session, didCreateTask: task)
[0;36m216 |[0;0m } else {
/host/spi-builder-workspace/Sources/HTTPFoundation/DataLoader.swift:214:47: [1;31merror: [1;39mcannot use optional chaining on non-optional value of type '(URLSession, (any Error)?) -> ()'[0;0m
[0;36m212 |[0;0m func urlSession(_ session: URLSession, didCreateTask task: URLSessionTask) {
[0;36m213 |[0;0m if #available(iOS 16.0, macOS 13.0, tvOS 16.0, watchOS 9.0, *) {
[0;36m214 |[0;0m [4;39mhandlers[task]?.delegate?.urlSession?[0;0m(session, didCreateTask: task)
[0;36m|[0;0m `- [1;31merror: [1;39mcannot use optional chaining on non-optional value of type '(URLSession, (any Error)?) -> ()'[0;0m
[0;36m215 |[0;0m userTaskDelegate?.urlSession?(session, didCreateTask: task)
[0;36m216 |[0;0m } else {
/host/spi-builder-workspace/Sources/HTTPFoundation/DataLoader.swift:215:39: [1;31merror: [1;39mcannot use optional chaining on non-optional value of type '(URLSession, (any Error)?) -> ()'[0;0m
[0;36m213 |[0;0m if #available(iOS 16.0, macOS 13.0, tvOS 16.0, watchOS 9.0, *) {
[0;36m214 |[0;0m handlers[task]?.delegate?.urlSession?(session, didCreateTask: task)
[0;36m215 |[0;0m [4;39muserTaskDelegate?.urlSession?[0;0m(session, didCreateTask: task)
[0;36m|[0;0m `- [1;31merror: [1;39mcannot use optional chaining on non-optional value of type '(URLSession, (any Error)?) -> ()'[0;0m
[0;36m216 |[0;0m } else {
[0;36m217 |[0;0m // Doesn't exist on earlier versions
/host/spi-builder-workspace/Sources/HTTPFoundation/DataLoader.swift:215:40: [1;31merror: [1;39mincorrect argument label in call (have '_:didCreateTask:', expected '_:didBecomeInvalidWithError:')[0;0m
[0;36m213 |[0;0m if #available(iOS 16.0, macOS 13.0, tvOS 16.0, watchOS 9.0, *) {
[0;36m214 |[0;0m handlers[task]?.delegate?.urlSession?(session, didCreateTask: task)
[0;36m215 |[0;0m userTaskDelegate?.urlSession?(session, didCreateTask: task)
[0;36m|[0;0m `- [1;31merror: [1;39mincorrect argument label in call (have '_:didCreateTask:', expected '_:didBecomeInvalidWithError:')[0;0m
[0;36m216 |[0;0m } else {
[0;36m217 |[0;0m // Doesn't exist on earlier versions
/host/spi-builder-workspace/Sources/HTTPFoundation/DataLoader.swift:215:65: [1;31merror: [1;39margument type 'URLSessionTask' does not conform to expected type 'Error'[0;0m
[0;36m213 |[0;0m if #available(iOS 16.0, macOS 13.0, tvOS 16.0, watchOS 9.0, *) {
[0;36m214 |[0;0m handlers[task]?.delegate?.urlSession?(session, didCreateTask: task)
[0;36m215 |[0;0m userTaskDelegate?.urlSession?(session, didCreateTask: task)
[0;36m|[0;0m `- [1;31merror: [1;39margument type 'URLSessionTask' does not conform to expected type 'Error'[0;0m
[0;36m216 |[0;0m } else {
[0;36m217 |[0;0m // Doesn't exist on earlier versions
/host/spi-builder-workspace/Sources/HTTPFoundation/DataLoader.swift:235:43: [1;31merror: [1;39mcannot use optional chaining on non-optional value of type '(URLSession, URLSessionTask, URLAuthenticationChallenge, @escaping @Sendable (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) -> ()'[0;0m
[0;36m233 |[0;0m ?? completionHandler(.performDefaultHandling, nil)
[0;36m234 |[0;0m #else
[0;36m235 |[0;0m [4;39mhandlers[task]?.delegate?.urlSession?[0;0m(
[0;36m|[0;0m `- [1;31merror: [1;39mcannot use optional chaining on non-optional value of type '(URLSession, URLSessionTask, URLAuthenticationChallenge, @escaping @Sendable (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) -> ()'[0;0m
[0;36m236 |[0;0m session, task: task, didReceive: challenge, completionHandler: completionHandler)
[0;36m237 |[0;0m ?? userTaskDelegate?.urlSession?(
/host/spi-builder-workspace/Sources/HTTPFoundation/DataLoader.swift:237:40: [1;31merror: [1;39mcannot use optional chaining on non-optional value of type '(URLSession, URLSessionTask, URLAuthenticationChallenge, @escaping @Sendable (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) -> ()'[0;0m
[0;36m235 |[0;0m handlers[task]?.delegate?.urlSession?(
[0;36m236 |[0;0m session, task: task, didReceive: challenge, completionHandler: completionHandler)
[0;36m237 |[0;0m ?? [4;39muserTaskDelegate?.urlSession?[0;0m(
[0;36m|[0;0m `- [1;31merror: [1;39mcannot use optional chaining on non-optional value of type '(URLSession, URLSessionTask, URLAuthenticationChallenge, @escaping @Sendable (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) -> ()'[0;0m
[0;36m238 |[0;0m session, task: task, didReceive: challenge, completionHandler: completionHandler)
[0;36m239 |[0;0m ?? completionHandler(.performDefaultHandling, nil)
/host/spi-builder-workspace/Sources/HTTPFoundation/DataLoader.swift:255:43: [1;31merror: [1;39mcannot use optional chaining on non-optional value of type '(URLSession, URLSessionTask, URLRequest, @escaping @Sendable (URLSession.DelayedRequestDisposition, URLRequest?) -> Void) -> ()'[0;0m
[0;36m253 |[0;0m completionHandler: completionHandler) ?? completionHandler(.continueLoading, nil)
[0;36m254 |[0;0m #else
[0;36m255 |[0;0m [4;39mhandlers[task]?.delegate?.urlSession?[0;0m(
[0;36m|[0;0m `- [1;31merror: [1;39mcannot use optional chaining on non-optional value of type '(URLSession, URLSessionTask, URLRequest, @escaping @Sendable (URLSession.DelayedRequestDisposition, URLRequest?) -> Void) -> ()'[0;0m
[0;36m256 |[0;0m session, task: task, willBeginDelayedRequest: request, completionHandler: completionHandler)
[0;36m257 |[0;0m ?? userTaskDelegate?.urlSession?(
/host/spi-builder-workspace/Sources/HTTPFoundation/DataLoader.swift:257:40: [1;31merror: [1;39mcannot use optional chaining on non-optional value of type '(URLSession, URLSessionTask, URLRequest, @escaping @Sendable (URLSession.DelayedRequestDisposition, URLRequest?) -> Void) -> ()'[0;0m
[0;36m255 |[0;0m handlers[task]?.delegate?.urlSession?(
[0;36m256 |[0;0m session, task: task, willBeginDelayedRequest: request, completionHandler: completionHandler)
[0;36m257 |[0;0m ?? [4;39muserTaskDelegate?.urlSession?[0;0m(
[0;36m|[0;0m `- [1;31merror: [1;39mcannot use optional chaining on non-optional value of type '(URLSession, URLSessionTask, URLRequest, @escaping @Sendable (URLSession.DelayedRequestDisposition, URLRequest?) -> Void) -> ()'[0;0m
[0;36m258 |[0;0m session, task: task, willBeginDelayedRequest: request,
[0;36m259 |[0;0m completionHandler: completionHandler) ?? completionHandler(.continueLoading, nil)
/host/spi-builder-workspace/Sources/HTTPFoundation/DataLoader.swift:279:36: [1;31merror: [1;39mcannot use optional chaining on non-optional value of type '(URLSession, URLSessionTask, Int64, Int64, Int64) -> ()'[0;0m
[0;36m277 |[0;0m totalBytesExpectedToSend: totalBytesExpectedToSend)
[0;36m278 |[0;0m #else
[0;36m279 |[0;0m [4;39mhandler?.delegate?.urlSession?[0;0m(
[0;36m|[0;0m `- [1;31merror: [1;39mcannot use optional chaining on non-optional value of type '(URLSession, URLSessionTask, Int64, Int64, Int64) -> ()'[0;0m
[0;36m280 |[0;0m session, task: task, didSendBodyData: bytesSent, totalBytesSent: totalBytesSent,
[0;36m281 |[0;0m totalBytesExpectedToSend: totalBytesExpectedToSend)
/host/spi-builder-workspace/Sources/HTTPFoundation/DataLoader.swift:282:40: [1;31merror: [1;39mcannot use optional chaining on non-optional value of type '(URLSession, URLSessionTask, Int64, Int64, Int64) -> ()'[0;0m
[0;36m280 |[0;0m session, task: task, didSendBodyData: bytesSent, totalBytesSent: totalBytesSent,
[0;36m281 |[0;0m totalBytesExpectedToSend: totalBytesExpectedToSend)
[0;36m282 |[0;0m ?? [4;39muserTaskDelegate?.urlSession?[0;0m(
[0;36m|[0;0m `- [1;31merror: [1;39mcannot use optional chaining on non-optional value of type '(URLSession, URLSessionTask, Int64, Int64, Int64) -> ()'[0;0m
[0;36m283 |[0;0m session, task: task, didSendBodyData: bytesSent, totalBytesSent: totalBytesSent,
[0;36m284 |[0;0m totalBytesExpectedToSend: totalBytesExpectedToSend)
/host/spi-builder-workspace/Sources/HTTPFoundation/DataLoader.swift:301:73: [1;31merror: [1;39mcannot use optional chaining on non-optional value of type '(URLSession, URLSessionDataTask, URLResponse, @escaping @Sendable (URLSession.ResponseDisposition) -> Void) -> ()'[0;0m
[0;36m299 |[0;0m ?? completionHandler(.allow)
[0;36m300 |[0;0m #else
[0;36m301 |[0;0m [4;39m(handlers[dataTask] as? DataTaskHandler)?.dataDelegate?.urlSession?[0;0m(
[0;36m|[0;0m `- [1;31merror: [1;39mcannot use optional chaining on non-optional value of type '(URLSession, URLSessionDataTask, URLResponse, @escaping @Sendable (URLSession.ResponseDisposition) -> Void) -> ()'[0;0m
[0;36m302 |[0;0m session, dataTask: dataTask, didReceive: response, completionHandler: completionHandler)
[0;36m303 |[0;0m ?? userDataDelegate?.urlSession?(
/host/spi-builder-workspace/Sources/HTTPFoundation/DataLoader.swift:303:40: [1;31merror: [1;39mcannot use optional chaining on non-optional value of type '(URLSession, URLSessionDataTask, URLResponse, @escaping @Sendable (URLSession.ResponseDisposition) -> Void) -> ()'[0;0m
[0;36m301 |[0;0m (handlers[dataTask] as? DataTaskHandler)?.dataDelegate?.urlSession?(
[0;36m302 |[0;0m session, dataTask: dataTask, didReceive: response, completionHandler: completionHandler)
[0;36m303 |[0;0m ?? [4;39muserDataDelegate?.urlSession?[0;0m(
[0;36m|[0;0m `- [1;31merror: [1;39mcannot use optional chaining on non-optional value of type '(URLSession, URLSessionDataTask, URLResponse, @escaping @Sendable (URLSession.ResponseDisposition) -> Void) -> ()'[0;0m
[0;36m304 |[0;0m session, dataTask: dataTask, didReceive: response, completionHandler: completionHandler)
[0;36m305 |[0;0m ?? completionHandler(.allow)
/host/spi-builder-workspace/Sources/HTTPFoundation/DataLoader.swift:315:39: [1;31merror: [1;39mcannot use optional chaining on non-optional value of type '(URLSession, URLSessionDataTask, Data) -> ()'[0;0m
[0;36m313 |[0;0m userDataDelegate?.urlSession(session, dataTask: dataTask, didReceive: data)
[0;36m314 |[0;0m #else
[0;36m315 |[0;0m [4;39mhandler.dataDelegate?.urlSession?[0;0m(session, dataTask: dataTask, didReceive: data)
[0;36m|[0;0m `- [1;31merror: [1;39mcannot use optional chaining on non-optional value of type '(URLSession, URLSessionDataTask, Data) -> ()'[0;0m
[0;36m316 |[0;0m userDataDelegate?.urlSession?(session, dataTask: dataTask, didReceive: data)
[0;36m317 |[0;0m #endif
/host/spi-builder-workspace/Sources/HTTPFoundation/DataLoader.swift:316:35: [1;31merror: [1;39mcannot use optional chaining on non-optional value of type '(URLSession, URLSessionDataTask, Data) -> ()'[0;0m
[0;36m314 |[0;0m #else
[0;36m315 |[0;0m handler.dataDelegate?.urlSession?(session, dataTask: dataTask, didReceive: data)
[0;36m316 |[0;0m [4;39muserDataDelegate?.urlSession?[0;0m(session, dataTask: dataTask, didReceive: data)
[0;36m|[0;0m `- [1;31merror: [1;39mcannot use optional chaining on non-optional value of type '(URLSession, URLSessionDataTask, Data) -> ()'[0;0m
[0;36m317 |[0;0m #endif
[0;36m318 |[0;0m if handler.body == nil {
/host/spi-builder-workspace/Sources/HTTPFoundation/DataLoader.swift:329:73: [1;31merror: [1;39mcannot use optional chaining on non-optional value of type '(URLSession, URLSessionDataTask, URLSessionDownloadTask) -> ()'[0;0m
[0;36m327 |[0;0m didBecome downloadTask: URLSessionDownloadTask
[0;36m328 |[0;0m ) {
[0;36m329 |[0;0m [4;39m(handlers[dataTask] as? DataTaskHandler)?.dataDelegate?.urlSession?[0;0m(
[0;36m|[0;0m `- [1;31merror: [1;39mcannot use optional chaining on non-optional value of type '(URLSession, URLSessionDataTask, URLSessionDownloadTask) -> ()'[0;0m
[0;36m330 |[0;0m session, dataTask: dataTask, didBecome: downloadTask)
[0;36m331 |[0;0m userDataDelegate?.urlSession?(session, dataTask: dataTask, didBecome: downloadTask)
/host/spi-builder-workspace/Sources/HTTPFoundation/DataLoader.swift:331:35: [1;31merror: [1;39mcannot use optional chaining on non-optional value of type '(URLSession, URLSessionDataTask, URLSessionDownloadTask) -> ()'[0;0m
[0;36m329 |[0;0m (handlers[dataTask] as? DataTaskHandler)?.dataDelegate?.urlSession?(
[0;36m330 |[0;0m session, dataTask: dataTask, didBecome: downloadTask)
[0;36m331 |[0;0m [4;39muserDataDelegate?.urlSession?[0;0m(session, dataTask: dataTask, didBecome: downloadTask)
[0;36m|[0;0m `- [1;31merror: [1;39mcannot use optional chaining on non-optional value of type '(URLSession, URLSessionDataTask, URLSessionDownloadTask) -> ()'[0;0m
[0;36m332 |[0;0m }
[0;36m333 |[0;0m
/host/spi-builder-workspace/Sources/HTTPFoundation/DataLoader.swift:338:73: [1;31merror: [1;39mcannot use optional chaining on non-optional value of type '(URLSession, URLSessionDataTask, URLSessionStreamTask) -> ()'[0;0m
[0;36m336 |[0;0m didBecome streamTask: URLSessionStreamTask
[0;36m337 |[0;0m ) {
[0;36m338 |[0;0m [4;39m(handlers[dataTask] as? DataTaskHandler)?.dataDelegate?.urlSession?[0;0m(
[0;36m|[0;0m `- [1;31merror: [1;39mcannot use optional chaining on non-optional value of type '(URLSession, URLSessionDataTask, URLSessionStreamTask) -> ()'[0;0m
[0;36m339 |[0;0m session, dataTask: dataTask, didBecome: streamTask)
[0;36m340 |[0;0m userDataDelegate?.urlSession?(session, dataTask: dataTask, didBecome: streamTask)
/host/spi-builder-workspace/Sources/HTTPFoundation/DataLoader.swift:340:35: [1;31merror: [1;39mcannot use optional chaining on non-optional value of type '(URLSession, URLSessionDataTask, URLSessionStreamTask) -> ()'[0;0m
[0;36m338 |[0;0m (handlers[dataTask] as? DataTaskHandler)?.dataDelegate?.urlSession?(
[0;36m339 |[0;0m session, dataTask: dataTask, didBecome: streamTask)
[0;36m340 |[0;0m [4;39muserDataDelegate?.urlSession?[0;0m(session, dataTask: dataTask, didBecome: streamTask)
[0;36m|[0;0m `- [1;31merror: [1;39mcannot use optional chaining on non-optional value of type '(URLSession, URLSessionDataTask, URLSessionStreamTask) -> ()'[0;0m
[0;36m341 |[0;0m }
[0;36m342 |[0;0m #endif
/host/spi-builder-workspace/Sources/HTTPFoundation/DataLoader.swift:358:73: [1;31merror: [1;39mcannot use optional chaining on non-optional value of type '(URLSession, URLSessionDataTask, CachedURLResponse, @escaping @Sendable (CachedURLResponse?) -> Void) -> ()'[0;0m
[0;36m356 |[0;0m completionHandler(proposedResponse)
[0;36m357 |[0;0m #else
[0;36m358 |[0;0m [4;39m(handlers[dataTask] as? DataTaskHandler)?.dataDelegate?.urlSession?[0;0m(
[0;36m|[0;0m `- [1;31merror: [1;39mcannot use optional chaining on non-optional value of type '(URLSession, URLSessionDataTask, CachedURLResponse, @escaping @Sendable (CachedURLResponse?) -> Void) -> ()'[0;0m
[0;36m359 |[0;0m session, dataTask: dataTask, willCacheResponse: proposedResponse,
[0;36m360 |[0;0m completionHandler: completionHandler) ?? userDataDelegate?.urlSession?(
/host/spi-builder-workspace/Sources/HTTPFoundation/DataLoader.swift:360:78: [1;31merror: [1;39mcannot use optional chaining on non-optional value of type '(URLSession, URLSessionDataTask, CachedURLResponse, @escaping @Sendable (CachedURLResponse?) -> Void) -> ()'[0;0m
[0;36m358 |[0;0m (handlers[dataTask] as? DataTaskHandler)?.dataDelegate?.urlSession?(
[0;36m359 |[0;0m session, dataTask: dataTask, willCacheResponse: proposedResponse,
[0;36m360 |[0;0m completionHandler: completionHandler) ?? [4;39muserDataDelegate?.urlSession?[0;0m(
[0;36m|[0;0m `- [1;31merror: [1;39mcannot use optional chaining on non-optional value of type '(URLSession, URLSessionDataTask, CachedURLResponse, @escaping @Sendable (CachedURLResponse?) -> Void) -> ()'[0;0m
[0;36m361 |[0;0m session, dataTask: dataTask, willCacheResponse: proposedResponse,
[0;36m362 |[0;0m completionHandler: completionHandler) ?? completionHandler(proposedResponse)
/host/spi-builder-workspace/Sources/HTTPFoundation/DataLoader.swift:397:85: [1;31merror: [1;39mcannot use optional chaining on non-optional value of type '(URLSession, URLSessionDownloadTask, Int64, Int64, Int64) -> ()'[0;0m
[0;36m395 |[0;0m totalBytesWritten: totalBytesWritten, totalBytesExpectedToWrite: totalBytesExpectedToWrite)
[0;36m396 |[0;0m #else
[0;36m397 |[0;0m [4;39m(handlers[downloadTask] as? DownloadTaskHandler)?.downloadDelegate?.urlSession?[0;0m(
[0;36m|[0;0m `- [1;31merror: [1;39mcannot use optional chaining on non-optional value of type '(URLSession, URLSessionDownloadTask, Int64, Int64, Int64) -> ()'[0;0m
[0;36m398 |[0;0m session, downloadTask: downloadTask, didWriteData: bytesWritten,
[0;36m399 |[0;0m totalBytesWritten: totalBytesWritten, totalBytesExpectedToWrite: totalBytesExpectedToWrite)
/host/spi-builder-workspace/Sources/HTTPFoundation/DataLoader.swift:400:39: [1;31merror: [1;39mcannot use optional chaining on non-optional value of type '(URLSession, URLSessionDownloadTask, Int64, Int64, Int64) -> ()'[0;0m
[0;36m398 |[0;0m session, downloadTask: downloadTask, didWriteData: bytesWritten,
[0;36m399 |[0;0m totalBytesWritten: totalBytesWritten, totalBytesExpectedToWrite: totalBytesExpectedToWrite)
[0;36m400 |[0;0m [4;39muserDownloadDelegate?.urlSession?[0;0m(
[0;36m|[0;0m `- [1;31merror: [1;39mcannot use optional chaining on non-optional value of type '(URLSession, URLSessionDownloadTask, Int64, Int64, Int64) -> ()'[0;0m
[0;36m401 |[0;0m session, downloadTask: downloadTask, didWriteData: bytesWritten,
[0;36m402 |[0;0m totalBytesWritten: totalBytesWritten, totalBytesExpectedToWrite: totalBytesExpectedToWrite)
/host/spi-builder-workspace/Sources/HTTPFoundation/DataLoader.swift:418:85: [1;31merror: [1;39mcannot use optional chaining on non-optional value of type '(URLSession, URLSessionDownloadTask, Int64, Int64) -> ()'[0;0m
[0;36m416 |[0;0m expectedTotalBytes: expectedTotalBytes)
[0;36m417 |[0;0m #else
[0;36m418 |[0;0m [4;39m(handlers[downloadTask] as? DownloadTaskHandler)?.downloadDelegate?.urlSession?[0;0m(
[0;36m|[0;0m `- [1;31merror: [1;39mcannot use optional chaining on non-optional value of type '(URLSession, URLSessionDownloadTask, Int64, Int64) -> ()'[0;0m
[0;36m419 |[0;0m session, downloadTask: downloadTask, didResumeAtOffset: fileOffset,
[0;36m420 |[0;0m expectedTotalBytes: expectedTotalBytes)
/host/spi-builder-workspace/Sources/HTTPFoundation/DataLoader.swift:421:39: [1;31merror: [1;39mcannot use optional chaining on non-optional value of type '(URLSession, URLSessionDownloadTask, Int64, Int64) -> ()'[0;0m
[0;36m419 |[0;0m session, downloadTask: downloadTask, didResumeAtOffset: fileOffset,
[0;36m420 |[0;0m expectedTotalBytes: expectedTotalBytes)
[0;36m421 |[0;0m [4;39muserDownloadDelegate?.urlSession?[0;0m(
[0;36m|[0;0m `- [1;31merror: [1;39mcannot use optional chaining on non-optional value of type '(URLSession, URLSessionDownloadTask, Int64, Int64) -> ()'[0;0m
[0;36m422 |[0;0m session, downloadTask: downloadTask, didResumeAtOffset: fileOffset,
[0;36m423 |[0;0m expectedTotalBytes: expectedTotalBytes)
Failed frontend command:
/root/.local/share/swiftly/toolchains/6.4.x-snapshot-2026-09-04/usr/bin/swift-frontend -frontend -c -primary-file /host/spi-builder-workspace/Sources/HTTPFoundation/DataLoader.swift /host/spi-builder-workspace/Sources/HTTPFoundation/URLSessionHTTPClient.swift -emit-dependencies-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/HTTP.build/Debug-android-aarch64/HTTPFoundation-t.build/Objects-normal/aarch64/DataLoader.d -emit-const-values-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/HTTP.build/Debug-android-aarch64/HTTPFoundation-t.build/Objects-normal/aarch64/DataLoader.swiftconstvalues -emit-reference-dependencies-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/HTTP.build/Debug-android-aarch64/HTTPFoundation-t.build/Objects-normal/aarch64/DataLoader.swiftdeps -serialize-diagnostics-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/HTTP.build/Debug-android-aarch64/HTTPFoundation-t.build/Objects-normal/aarch64/DataLoader.dia -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 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/HTTP.build/Debug-android-aarch64/HTTPFoundation-t.build/DerivedSources-normal/aarch64 -Xcc -I/host/spi-builder-workspace/.build/out/Intermediates.noindex/HTTP.build/Debug-android-aarch64/HTTPFoundation-t.build/DerivedSources/aarch64 -Xcc -I/host/spi-builder-workspace/.build/out/Intermediates.noindex/HTTP.build/Debug-android-aarch64/HTTPFoundation-t.build/DerivedSources -Xcc -DSWIFT_PACKAGE -Xcc -DDEBUG\=1 -no-auto-bridging-header-chaining -module-name HTTPFoundation -package-name spi_builder_workspace -const-gather-protocols-file /host/spi-builder-workspace/.build/out/Intermediates.noindex/HTTP.build/Debug-android-aarch64/HTTPFoundation-t.build/Objects-normal/aarch64/HTTPFoundation_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 -parse-as-library -o /host/spi-builder-workspace/.build/out/Intermediates.noindex/HTTP.build/Debug-android-aarch64/HTTPFoundation-t.build/Objects-normal/aarch64/DataLoader.o -index-unit-output-path /HTTP.build/Debug-android-aarch64/HTTPFoundation-t.build/Objects-normal/aarch64/DataLoader.o -index-store-path /host/spi-builder-workspace/.build/out -index-system-modules
error: Build failed
BUILD FAILURE 6.4 android