Build Information
Failed to build HTTP, reference 0.4.0 (6fcb34), with Swift 6.2 for Android on 23 Jun 2025 15:08:07 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4606859-3":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:android-6.2-latest swift build --swift-sdk aarch64-unknown-linux-android28 2>&1Build Log
========================================
RunAll
========================================
Builder version: 4.64.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/grdsdev/swift-http.git
Reference: 0.4.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/grdsdev/swift-http
* tag 0.4.0 -> FETCH_HEAD
HEAD is now at 6fcb342 remove IssueReporting dependency
Cloned https://github.com/grdsdev/swift-http.git
Revision (git rev-parse @):
6fcb342f768b67690f3628ea050f76b5f8ac4743
SPI manifest file found: $PWD/.spi.yml
SUCCESS checkout https://github.com/grdsdev/swift-http.git at 0.4.0
========================================
Build
========================================
Selected platform: android
Swift version: 6.2
Building package at path: $PWD
https://github.com/grdsdev/swift-http.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-3":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:android-6.2-latest swift build --swift-sdk aarch64-unknown-linux-android28 2>&1
android-6.2-latest: Pulling from finestructure/spi-images
Digest: sha256:b7c4a6b4153ff40ef9277e2157e708f835b8eb011095d53bd8db4594eb2b7798
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:android-6.2-latest
Fetching https://github.com/pointfreeco/swift-snapshot-testing
Fetching https://github.com/apple/swift-http-types
[1/904] Fetching swift-http-types
Fetched https://github.com/apple/swift-http-types from cache (0.30s)
[1/14051] Fetching swift-snapshot-testing
Fetched https://github.com/pointfreeco/swift-snapshot-testing from cache (2.30s)
Computing version for https://github.com/apple/swift-http-types
Computed https://github.com/apple/swift-http-types at 1.4.0 (2.79s)
Computing version for https://github.com/pointfreeco/swift-snapshot-testing
Computed https://github.com/pointfreeco/swift-snapshot-testing at 1.18.4 (0.51s)
Fetching https://github.com/swiftlang/swift-syntax
Fetching https://github.com/pointfreeco/swift-custom-dump
[1/4581] Fetching swift-custom-dump
[4582/75508] Fetching swift-custom-dump, swift-syntax
Fetched https://github.com/pointfreeco/swift-custom-dump from cache (6.71s)
Fetched https://github.com/swiftlang/swift-syntax from cache (6.78s)
Computing version for https://github.com/pointfreeco/swift-custom-dump
Computed https://github.com/pointfreeco/swift-custom-dump at 1.3.3 (7.21s)
Fetching https://github.com/pointfreeco/xctest-dynamic-overlay
[1/5467] Fetching xctest-dynamic-overlay
Fetched https://github.com/pointfreeco/xctest-dynamic-overlay from cache (1.11s)
Computing version for https://github.com/swiftlang/swift-syntax
Computed https://github.com/swiftlang/swift-syntax at 601.0.1 (4.02s)
Computing version for https://github.com/pointfreeco/xctest-dynamic-overlay
Computed https://github.com/pointfreeco/xctest-dynamic-overlay at 1.5.2 (0.42s)
Creating working copy for https://github.com/pointfreeco/swift-custom-dump
Working copy of https://github.com/pointfreeco/swift-custom-dump resolved at 1.3.3
Creating working copy for https://github.com/swiftlang/swift-syntax
Working copy of https://github.com/swiftlang/swift-syntax resolved at 601.0.1
Creating working copy for https://github.com/apple/swift-http-types
Working copy of https://github.com/apple/swift-http-types resolved at 1.4.0
Creating working copy for https://github.com/pointfreeco/xctest-dynamic-overlay
Working copy of https://github.com/pointfreeco/xctest-dynamic-overlay resolved at 1.5.2
Creating working copy for https://github.com/pointfreeco/swift-snapshot-testing
Working copy of https://github.com/pointfreeco/swift-snapshot-testing resolved at 1.18.4
Building for debugging...
[0/6] Write sources
[5/6] Write swift-version-8C5A4AE7A8CE2BA.txt
[7/14] Compiling HTTPTypes ISOLatin1String.swift
[8/14] Compiling HTTPTypes HTTPParsedFields.swift
[9/14] Compiling HTTPTypes HTTPResponse.swift
[10/14] Compiling HTTPTypes HTTPRequest.swift
[11/15] Compiling HTTPTypes NIOLock.swift
[12/15] Compiling HTTPTypes HTTPFieldName.swift
[13/15] Compiling HTTPTypes HTTPField.swift
[14/15] Emitting module HTTPTypes
[15/15] Compiling HTTPTypes HTTPFields.swift
[17/22] Compiling HTTPTypesFoundation URLRequest+HTTPTypes.swift
[18/22] Compiling HTTPTypesFoundation URLResponse+HTTPTypes.swift
[19/22] Compiling HTTPTypesFoundation URLSession+HTTPTypes.swift
[20/22] Compiling HTTPTypesFoundation HTTPTypes+ISOLatin1.swift
[21/22] Emitting module HTTPTypesFoundation
[22/22] Compiling HTTPTypesFoundation HTTPRequest+URL.swift
[24/30] Compiling HTTP HTTPRequestEncodableBody.swift
[25/30] Compiling HTTP HTTPClient.swift
[26/30] Compiling HTTP URLSearchParams.swift
[27/30] Compiling HTTP Response.swift
[28/30] Compiling HTTP Coding.swift
[29/30] Emitting module HTTP
[30/30] Compiling HTTP FormData.swift
[32/37] Compiling HTTPMock HTTPClientMock.swift
[33/37] Emitting module HTTPMock
[34/37] Compiling HTTPMock Match.swift
[36/38] Compiling HTTPFoundation DataLoader.swift
/host/spi-builder-workspace/Sources/HTTPFoundation/DataLoader.swift:150:20: warning: TODO: loading whole file into memory is not ideal, find a better solution
148 | {
149 | do {
150 | #warning("TODO: loading whole file into memory is not ideal, find a better solution")
| `- warning: TODO: loading whole file into memory is not ideal, find a better solution
151 | let body = Response.Body()
152 | body.yield(try Data(contentsOf: location))
/host/spi-builder-workspace/Sources/HTTPFoundation/DataLoader.swift:102:38: error: cannot use optional chaining on non-optional value of type '(URLSession, (any Error)?) -> ()'
100 | userSessionDelegate?.urlSession(session, didBecomeInvalidWithError: error)
101 | #else
102 | userSessionDelegate?.urlSession?(session, didBecomeInvalidWithError: error)
| `- error: cannot use optional chaining on non-optional value of type '(URLSession, (any Error)?) -> ()'
103 | #endif
104 | }
/host/spi-builder-workspace/Sources/HTTPFoundation/DataLoader.swift:109:30: error: value of type 'any URLSessionDelegate' has no member 'urlSessionDidFinishEvents'
107 | func urlSessionDidFinishEvents(forBackgroundURLSession session: URLSession) {
108 | if #available(macOS 11.0, *) {
109 | userSessionDelegate?.urlSessionDidFinishEvents?(forBackgroundURLSession: session)
| `- error: value of type 'any URLSessionDelegate' has no member 'urlSessionDidFinishEvents'
110 | } else {
111 | // Fallback on earlier versions
/host/spi-builder-workspace/Sources/HTTPFoundation/DataLoader.swift:125:35: error: cannot use optional chaining on non-optional value of type '(URLSession, URLSessionTask, (any Error)?) -> ()'
123 | userTaskDelegate?.urlSession(session, task: task, didCompleteWithError: error)
124 | #else
125 | handler.delegate?.urlSession?(session, task: task, didCompleteWithError: error)
| `- error: cannot use optional chaining on non-optional value of type '(URLSession, URLSessionTask, (any Error)?) -> ()'
126 | userTaskDelegate?.urlSession?(session, task: task, didCompleteWithError: error)
127 | #endif
/host/spi-builder-workspace/Sources/HTTPFoundation/DataLoader.swift:126:35: error: cannot use optional chaining on non-optional value of type '(URLSession, URLSessionTask, (any Error)?) -> ()'
124 | #else
125 | handler.delegate?.urlSession?(session, task: task, didCompleteWithError: error)
126 | userTaskDelegate?.urlSession?(session, task: task, didCompleteWithError: error)
| `- error: cannot use optional chaining on non-optional value of type '(URLSession, URLSessionTask, (any Error)?) -> ()'
127 | #endif
128 | switch handler {
/host/spi-builder-workspace/Sources/HTTPFoundation/DataLoader.swift:180:36: error: cannot use optional chaining on non-optional value of type '(URLSession, URLSessionTask, URLSessionTaskMetrics) -> ()'
178 | userTaskDelegate?.urlSession(session, task: task, didFinishCollecting: metrics)
179 | #else
180 | handler?.delegate?.urlSession?(session, task: task, didFinishCollecting: metrics)
| `- error: cannot use optional chaining on non-optional value of type '(URLSession, URLSessionTask, URLSessionTaskMetrics) -> ()'
181 | userTaskDelegate?.urlSession?(session, task: task, didFinishCollecting: metrics)
182 | #endif
/host/spi-builder-workspace/Sources/HTTPFoundation/DataLoader.swift:181:35: error: cannot use optional chaining on non-optional value of type '(URLSession, URLSessionTask, URLSessionTaskMetrics) -> ()'
179 | #else
180 | handler?.delegate?.urlSession?(session, task: task, didFinishCollecting: metrics)
181 | userTaskDelegate?.urlSession?(session, task: task, didFinishCollecting: metrics)
| `- error: cannot use optional chaining on non-optional value of type '(URLSession, URLSessionTask, URLSessionTaskMetrics) -> ()'
182 | #endif
183 | }
/host/spi-builder-workspace/Sources/HTTPFoundation/DataLoader.swift:197:43: error: cannot use optional chaining on non-optional value of type '(URLSession, URLSessionTask, HTTPURLResponse, URLRequest, @escaping @Sendable (URLRequest?) -> Void) -> ()'
195 | completionHandler: completionHandler) ?? completionHandler(request)
196 | #else
197 | handlers[task]?.delegate?.urlSession?(
| `- error: cannot use optional chaining on non-optional value of type '(URLSession, URLSessionTask, HTTPURLResponse, URLRequest, @escaping @Sendable (URLRequest?) -> Void) -> ()'
198 | session, task: task, willPerformHTTPRedirection: response, newRequest: request,
199 | completionHandler: completionHandler) ?? userTaskDelegate?.urlSession?(
/host/spi-builder-workspace/Sources/HTTPFoundation/DataLoader.swift:199:78: error: cannot use optional chaining on non-optional value of type '(URLSession, URLSessionTask, HTTPURLResponse, URLRequest, @escaping @Sendable (URLRequest?) -> Void) -> ()'
197 | handlers[task]?.delegate?.urlSession?(
198 | session, task: task, willPerformHTTPRedirection: response, newRequest: request,
199 | completionHandler: completionHandler) ?? userTaskDelegate?.urlSession?(
| `- error: cannot use optional chaining on non-optional value of type '(URLSession, URLSessionTask, HTTPURLResponse, URLRequest, @escaping @Sendable (URLRequest?) -> Void) -> ()'
200 | session, task: task, willPerformHTTPRedirection: response, newRequest: request,
201 | completionHandler: completionHandler) ?? completionHandler(request)
/host/spi-builder-workspace/Sources/HTTPFoundation/DataLoader.swift:207:44: error: incorrect argument label in call (have '_:taskIsWaitingForConnectivity:', expected '_:didBecomeInvalidWithError:')
205 | #if !os(Linux)
206 | func urlSession(_ session: URLSession, taskIsWaitingForConnectivity task: URLSessionTask) {
207 | handlers[task]?.delegate?.urlSession?(session, taskIsWaitingForConnectivity: task)
| `- error: incorrect argument label in call (have '_:taskIsWaitingForConnectivity:', expected '_:didBecomeInvalidWithError:')
208 | userTaskDelegate?.urlSession?(session, taskIsWaitingForConnectivity: task)
209 | }
/host/spi-builder-workspace/Sources/HTTPFoundation/DataLoader.swift:207:84: error: argument type 'URLSessionTask' does not conform to expected type 'Error'
205 | #if !os(Linux)
206 | func urlSession(_ session: URLSession, taskIsWaitingForConnectivity task: URLSessionTask) {
207 | handlers[task]?.delegate?.urlSession?(session, taskIsWaitingForConnectivity: task)
| `- error: argument type 'URLSessionTask' does not conform to expected type 'Error'
208 | userTaskDelegate?.urlSession?(session, taskIsWaitingForConnectivity: task)
209 | }
/host/spi-builder-workspace/Sources/HTTPFoundation/DataLoader.swift:207:43: error: cannot use optional chaining on non-optional value of type '(URLSession, (any Error)?) -> ()'
205 | #if !os(Linux)
206 | func urlSession(_ session: URLSession, taskIsWaitingForConnectivity task: URLSessionTask) {
207 | handlers[task]?.delegate?.urlSession?(session, taskIsWaitingForConnectivity: task)
| `- error: cannot use optional chaining on non-optional value of type '(URLSession, (any Error)?) -> ()'
208 | userTaskDelegate?.urlSession?(session, taskIsWaitingForConnectivity: task)
209 | }
/host/spi-builder-workspace/Sources/HTTPFoundation/DataLoader.swift:208:25: error: no exact matches in call to instance method 'urlSession'
206 | func urlSession(_ session: URLSession, taskIsWaitingForConnectivity task: URLSessionTask) {
207 | handlers[task]?.delegate?.urlSession?(session, taskIsWaitingForConnectivity: task)
208 | userTaskDelegate?.urlSession?(session, taskIsWaitingForConnectivity: task)
| |- error: no exact matches in call to instance method 'urlSession'
| |- note: candidate has partially matching parameter list (URLSession, didBecomeInvalidWithError: (any Error)?)
| `- note: candidate has partially matching parameter list (URLSession, didBecomeInvalidWithError: (any Error)?)
209 | }
210 |
/host/spi-builder-workspace/Sources/HTTPFoundation/DataLoader.swift:208:35: error: cannot use optional chaining on non-optional value of type '(URLSession, (any Error)?) -> ()'
206 | func urlSession(_ session: URLSession, taskIsWaitingForConnectivity task: URLSessionTask) {
207 | handlers[task]?.delegate?.urlSession?(session, taskIsWaitingForConnectivity: task)
208 | userTaskDelegate?.urlSession?(session, taskIsWaitingForConnectivity: task)
| `- error: cannot use optional chaining on non-optional value of type '(URLSession, (any Error)?) -> ()'
209 | }
210 |
/host/spi-builder-workspace/Sources/HTTPFoundation/DataLoader.swift:214:47: error: cannot use optional chaining on non-optional value of type '(URLSession, (any Error)?) -> ()'
212 | func urlSession(_ session: URLSession, didCreateTask task: URLSessionTask) {
213 | if #available(iOS 16.0, macOS 13.0, tvOS 16.0, watchOS 9.0, *) {
214 | handlers[task]?.delegate?.urlSession?(session, didCreateTask: task)
| `- error: cannot use optional chaining on non-optional value of type '(URLSession, (any Error)?) -> ()'
215 | userTaskDelegate?.urlSession?(session, didCreateTask: task)
216 | } else {
/host/spi-builder-workspace/Sources/HTTPFoundation/DataLoader.swift:214:48: error: incorrect argument label in call (have '_:didCreateTask:', expected '_:didBecomeInvalidWithError:')
212 | func urlSession(_ session: URLSession, didCreateTask task: URLSessionTask) {
213 | if #available(iOS 16.0, macOS 13.0, tvOS 16.0, watchOS 9.0, *) {
214 | handlers[task]?.delegate?.urlSession?(session, didCreateTask: task)
| `- error: incorrect argument label in call (have '_:didCreateTask:', expected '_:didBecomeInvalidWithError:')
215 | userTaskDelegate?.urlSession?(session, didCreateTask: task)
216 | } else {
/host/spi-builder-workspace/Sources/HTTPFoundation/DataLoader.swift:214:73: error: argument type 'URLSessionTask' does not conform to expected type 'Error'
212 | func urlSession(_ session: URLSession, didCreateTask task: URLSessionTask) {
213 | if #available(iOS 16.0, macOS 13.0, tvOS 16.0, watchOS 9.0, *) {
214 | handlers[task]?.delegate?.urlSession?(session, didCreateTask: task)
| `- error: argument type 'URLSessionTask' does not conform to expected type 'Error'
215 | userTaskDelegate?.urlSession?(session, didCreateTask: task)
216 | } else {
/host/spi-builder-workspace/Sources/HTTPFoundation/DataLoader.swift:215:29: error: no exact matches in call to instance method 'urlSession'
213 | if #available(iOS 16.0, macOS 13.0, tvOS 16.0, watchOS 9.0, *) {
214 | handlers[task]?.delegate?.urlSession?(session, didCreateTask: task)
215 | userTaskDelegate?.urlSession?(session, didCreateTask: task)
| |- error: no exact matches in call to instance method 'urlSession'
| |- note: candidate has partially matching parameter list (URLSession, didBecomeInvalidWithError: (any Error)?)
| `- note: candidate has partially matching parameter list (URLSession, didBecomeInvalidWithError: (any Error)?)
216 | } else {
217 | // Doesn't exist on earlier versions
/host/spi-builder-workspace/Sources/HTTPFoundation/DataLoader.swift:215:39: error: cannot use optional chaining on non-optional value of type '(URLSession, (any Error)?) -> ()'
213 | if #available(iOS 16.0, macOS 13.0, tvOS 16.0, watchOS 9.0, *) {
214 | handlers[task]?.delegate?.urlSession?(session, didCreateTask: task)
215 | userTaskDelegate?.urlSession?(session, didCreateTask: task)
| `- error: cannot use optional chaining on non-optional value of type '(URLSession, (any Error)?) -> ()'
216 | } else {
217 | // Doesn't exist on earlier versions
/host/spi-builder-workspace/Sources/HTTPFoundation/DataLoader.swift:235:43: error: cannot use optional chaining on non-optional value of type '(URLSession, URLSessionTask, URLAuthenticationChallenge, @escaping @Sendable (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) -> ()'
233 | ?? completionHandler(.performDefaultHandling, nil)
234 | #else
235 | handlers[task]?.delegate?.urlSession?(
| `- error: cannot use optional chaining on non-optional value of type '(URLSession, URLSessionTask, URLAuthenticationChallenge, @escaping @Sendable (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) -> ()'
236 | session, task: task, didReceive: challenge, completionHandler: completionHandler)
237 | ?? userTaskDelegate?.urlSession?(
/host/spi-builder-workspace/Sources/HTTPFoundation/DataLoader.swift:237:40: error: cannot use optional chaining on non-optional value of type '(URLSession, URLSessionTask, URLAuthenticationChallenge, @escaping @Sendable (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) -> ()'
235 | handlers[task]?.delegate?.urlSession?(
236 | session, task: task, didReceive: challenge, completionHandler: completionHandler)
237 | ?? userTaskDelegate?.urlSession?(
| `- error: cannot use optional chaining on non-optional value of type '(URLSession, URLSessionTask, URLAuthenticationChallenge, @escaping @Sendable (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) -> ()'
238 | session, task: task, didReceive: challenge, completionHandler: completionHandler)
239 | ?? completionHandler(.performDefaultHandling, nil)
/host/spi-builder-workspace/Sources/HTTPFoundation/DataLoader.swift:255:43: error: cannot use optional chaining on non-optional value of type '(URLSession, URLSessionTask, URLRequest, @escaping @Sendable (URLSession.DelayedRequestDisposition, URLRequest?) -> Void) -> ()'
253 | completionHandler: completionHandler) ?? completionHandler(.continueLoading, nil)
254 | #else
255 | handlers[task]?.delegate?.urlSession?(
| `- error: cannot use optional chaining on non-optional value of type '(URLSession, URLSessionTask, URLRequest, @escaping @Sendable (URLSession.DelayedRequestDisposition, URLRequest?) -> Void) -> ()'
256 | session, task: task, willBeginDelayedRequest: request, completionHandler: completionHandler)
257 | ?? userTaskDelegate?.urlSession?(
/host/spi-builder-workspace/Sources/HTTPFoundation/DataLoader.swift:257:40: error: cannot use optional chaining on non-optional value of type '(URLSession, URLSessionTask, URLRequest, @escaping @Sendable (URLSession.DelayedRequestDisposition, URLRequest?) -> Void) -> ()'
255 | handlers[task]?.delegate?.urlSession?(
256 | session, task: task, willBeginDelayedRequest: request, completionHandler: completionHandler)
257 | ?? userTaskDelegate?.urlSession?(
| `- error: cannot use optional chaining on non-optional value of type '(URLSession, URLSessionTask, URLRequest, @escaping @Sendable (URLSession.DelayedRequestDisposition, URLRequest?) -> Void) -> ()'
258 | session, task: task, willBeginDelayedRequest: request,
259 | completionHandler: completionHandler) ?? completionHandler(.continueLoading, nil)
/host/spi-builder-workspace/Sources/HTTPFoundation/DataLoader.swift:279:36: error: cannot use optional chaining on non-optional value of type '(URLSession, URLSessionTask, Int64, Int64, Int64) -> ()'
277 | totalBytesExpectedToSend: totalBytesExpectedToSend)
278 | #else
279 | handler?.delegate?.urlSession?(
| `- error: cannot use optional chaining on non-optional value of type '(URLSession, URLSessionTask, Int64, Int64, Int64) -> ()'
280 | session, task: task, didSendBodyData: bytesSent, totalBytesSent: totalBytesSent,
281 | totalBytesExpectedToSend: totalBytesExpectedToSend)
/host/spi-builder-workspace/Sources/HTTPFoundation/DataLoader.swift:282:40: error: cannot use optional chaining on non-optional value of type '(URLSession, URLSessionTask, Int64, Int64, Int64) -> ()'
280 | session, task: task, didSendBodyData: bytesSent, totalBytesSent: totalBytesSent,
281 | totalBytesExpectedToSend: totalBytesExpectedToSend)
282 | ?? userTaskDelegate?.urlSession?(
| `- error: cannot use optional chaining on non-optional value of type '(URLSession, URLSessionTask, Int64, Int64, Int64) -> ()'
283 | session, task: task, didSendBodyData: bytesSent, totalBytesSent: totalBytesSent,
284 | totalBytesExpectedToSend: totalBytesExpectedToSend)
/host/spi-builder-workspace/Sources/HTTPFoundation/DataLoader.swift:301:73: error: cannot use optional chaining on non-optional value of type '(URLSession, URLSessionDataTask, URLResponse, @escaping @Sendable (URLSession.ResponseDisposition) -> Void) -> ()'
299 | ?? completionHandler(.allow)
300 | #else
301 | (handlers[dataTask] as? DataTaskHandler)?.dataDelegate?.urlSession?(
| `- error: cannot use optional chaining on non-optional value of type '(URLSession, URLSessionDataTask, URLResponse, @escaping @Sendable (URLSession.ResponseDisposition) -> Void) -> ()'
302 | session, dataTask: dataTask, didReceive: response, completionHandler: completionHandler)
303 | ?? userDataDelegate?.urlSession?(
/host/spi-builder-workspace/Sources/HTTPFoundation/DataLoader.swift:303:40: error: cannot use optional chaining on non-optional value of type '(URLSession, URLSessionDataTask, URLResponse, @escaping @Sendable (URLSession.ResponseDisposition) -> Void) -> ()'
301 | (handlers[dataTask] as? DataTaskHandler)?.dataDelegate?.urlSession?(
302 | session, dataTask: dataTask, didReceive: response, completionHandler: completionHandler)
303 | ?? userDataDelegate?.urlSession?(
| `- error: cannot use optional chaining on non-optional value of type '(URLSession, URLSessionDataTask, URLResponse, @escaping @Sendable (URLSession.ResponseDisposition) -> Void) -> ()'
304 | session, dataTask: dataTask, didReceive: response, completionHandler: completionHandler)
305 | ?? completionHandler(.allow)
/host/spi-builder-workspace/Sources/HTTPFoundation/DataLoader.swift:315:39: error: cannot use optional chaining on non-optional value of type '(URLSession, URLSessionDataTask, Data) -> ()'
313 | userDataDelegate?.urlSession(session, dataTask: dataTask, didReceive: data)
314 | #else
315 | handler.dataDelegate?.urlSession?(session, dataTask: dataTask, didReceive: data)
| `- error: cannot use optional chaining on non-optional value of type '(URLSession, URLSessionDataTask, Data) -> ()'
316 | userDataDelegate?.urlSession?(session, dataTask: dataTask, didReceive: data)
317 | #endif
/host/spi-builder-workspace/Sources/HTTPFoundation/DataLoader.swift:316:35: error: cannot use optional chaining on non-optional value of type '(URLSession, URLSessionDataTask, Data) -> ()'
314 | #else
315 | handler.dataDelegate?.urlSession?(session, dataTask: dataTask, didReceive: data)
316 | userDataDelegate?.urlSession?(session, dataTask: dataTask, didReceive: data)
| `- error: cannot use optional chaining on non-optional value of type '(URLSession, URLSessionDataTask, Data) -> ()'
317 | #endif
318 | if handler.body == nil {
/host/spi-builder-workspace/Sources/HTTPFoundation/DataLoader.swift:329:73: error: cannot use optional chaining on non-optional value of type '(URLSession, URLSessionDataTask, URLSessionDownloadTask) -> ()'
327 | didBecome downloadTask: URLSessionDownloadTask
328 | ) {
329 | (handlers[dataTask] as? DataTaskHandler)?.dataDelegate?.urlSession?(
| `- error: cannot use optional chaining on non-optional value of type '(URLSession, URLSessionDataTask, URLSessionDownloadTask) -> ()'
330 | session, dataTask: dataTask, didBecome: downloadTask)
331 | userDataDelegate?.urlSession?(session, dataTask: dataTask, didBecome: downloadTask)
/host/spi-builder-workspace/Sources/HTTPFoundation/DataLoader.swift:331:35: error: cannot use optional chaining on non-optional value of type '(URLSession, URLSessionDataTask, URLSessionDownloadTask) -> ()'
329 | (handlers[dataTask] as? DataTaskHandler)?.dataDelegate?.urlSession?(
330 | session, dataTask: dataTask, didBecome: downloadTask)
331 | userDataDelegate?.urlSession?(session, dataTask: dataTask, didBecome: downloadTask)
| `- error: cannot use optional chaining on non-optional value of type '(URLSession, URLSessionDataTask, URLSessionDownloadTask) -> ()'
332 | }
333 |
/host/spi-builder-workspace/Sources/HTTPFoundation/DataLoader.swift:338:73: error: cannot use optional chaining on non-optional value of type '(URLSession, URLSessionDataTask, URLSessionStreamTask) -> ()'
336 | didBecome streamTask: URLSessionStreamTask
337 | ) {
338 | (handlers[dataTask] as? DataTaskHandler)?.dataDelegate?.urlSession?(
| `- error: cannot use optional chaining on non-optional value of type '(URLSession, URLSessionDataTask, URLSessionStreamTask) -> ()'
339 | session, dataTask: dataTask, didBecome: streamTask)
340 | userDataDelegate?.urlSession?(session, dataTask: dataTask, didBecome: streamTask)
/host/spi-builder-workspace/Sources/HTTPFoundation/DataLoader.swift:340:35: error: cannot use optional chaining on non-optional value of type '(URLSession, URLSessionDataTask, URLSessionStreamTask) -> ()'
338 | (handlers[dataTask] as? DataTaskHandler)?.dataDelegate?.urlSession?(
339 | session, dataTask: dataTask, didBecome: streamTask)
340 | userDataDelegate?.urlSession?(session, dataTask: dataTask, didBecome: streamTask)
| `- error: cannot use optional chaining on non-optional value of type '(URLSession, URLSessionDataTask, URLSessionStreamTask) -> ()'
341 | }
342 | #endif
/host/spi-builder-workspace/Sources/HTTPFoundation/DataLoader.swift:358:73: error: cannot use optional chaining on non-optional value of type '(URLSession, URLSessionDataTask, CachedURLResponse, @escaping @Sendable (CachedURLResponse?) -> Void) -> ()'
356 | completionHandler(proposedResponse)
357 | #else
358 | (handlers[dataTask] as? DataTaskHandler)?.dataDelegate?.urlSession?(
| `- error: cannot use optional chaining on non-optional value of type '(URLSession, URLSessionDataTask, CachedURLResponse, @escaping @Sendable (CachedURLResponse?) -> Void) -> ()'
359 | session, dataTask: dataTask, willCacheResponse: proposedResponse,
360 | completionHandler: completionHandler) ?? userDataDelegate?.urlSession?(
/host/spi-builder-workspace/Sources/HTTPFoundation/DataLoader.swift:360:78: error: cannot use optional chaining on non-optional value of type '(URLSession, URLSessionDataTask, CachedURLResponse, @escaping @Sendable (CachedURLResponse?) -> Void) -> ()'
358 | (handlers[dataTask] as? DataTaskHandler)?.dataDelegate?.urlSession?(
359 | session, dataTask: dataTask, willCacheResponse: proposedResponse,
360 | completionHandler: completionHandler) ?? userDataDelegate?.urlSession?(
| `- error: cannot use optional chaining on non-optional value of type '(URLSession, URLSessionDataTask, CachedURLResponse, @escaping @Sendable (CachedURLResponse?) -> Void) -> ()'
361 | session, dataTask: dataTask, willCacheResponse: proposedResponse,
362 | completionHandler: completionHandler) ?? completionHandler(proposedResponse)
/host/spi-builder-workspace/Sources/HTTPFoundation/DataLoader.swift:397:85: error: cannot use optional chaining on non-optional value of type '(URLSession, URLSessionDownloadTask, Int64, Int64, Int64) -> ()'
395 | totalBytesWritten: totalBytesWritten, totalBytesExpectedToWrite: totalBytesExpectedToWrite)
396 | #else
397 | (handlers[downloadTask] as? DownloadTaskHandler)?.downloadDelegate?.urlSession?(
| `- error: cannot use optional chaining on non-optional value of type '(URLSession, URLSessionDownloadTask, Int64, Int64, Int64) -> ()'
398 | session, downloadTask: downloadTask, didWriteData: bytesWritten,
399 | totalBytesWritten: totalBytesWritten, totalBytesExpectedToWrite: totalBytesExpectedToWrite)
/host/spi-builder-workspace/Sources/HTTPFoundation/DataLoader.swift:400:39: error: cannot use optional chaining on non-optional value of type '(URLSession, URLSessionDownloadTask, Int64, Int64, Int64) -> ()'
398 | session, downloadTask: downloadTask, didWriteData: bytesWritten,
399 | totalBytesWritten: totalBytesWritten, totalBytesExpectedToWrite: totalBytesExpectedToWrite)
400 | userDownloadDelegate?.urlSession?(
| `- error: cannot use optional chaining on non-optional value of type '(URLSession, URLSessionDownloadTask, Int64, Int64, Int64) -> ()'
401 | session, downloadTask: downloadTask, didWriteData: bytesWritten,
402 | totalBytesWritten: totalBytesWritten, totalBytesExpectedToWrite: totalBytesExpectedToWrite)
/host/spi-builder-workspace/Sources/HTTPFoundation/DataLoader.swift:418:85: error: cannot use optional chaining on non-optional value of type '(URLSession, URLSessionDownloadTask, Int64, Int64) -> ()'
416 | expectedTotalBytes: expectedTotalBytes)
417 | #else
418 | (handlers[downloadTask] as? DownloadTaskHandler)?.downloadDelegate?.urlSession?(
| `- error: cannot use optional chaining on non-optional value of type '(URLSession, URLSessionDownloadTask, Int64, Int64) -> ()'
419 | session, downloadTask: downloadTask, didResumeAtOffset: fileOffset,
420 | expectedTotalBytes: expectedTotalBytes)
/host/spi-builder-workspace/Sources/HTTPFoundation/DataLoader.swift:421:39: error: cannot use optional chaining on non-optional value of type '(URLSession, URLSessionDownloadTask, Int64, Int64) -> ()'
419 | session, downloadTask: downloadTask, didResumeAtOffset: fileOffset,
420 | expectedTotalBytes: expectedTotalBytes)
421 | userDownloadDelegate?.urlSession?(
| `- error: cannot use optional chaining on non-optional value of type '(URLSession, URLSessionDownloadTask, Int64, Int64) -> ()'
422 | session, downloadTask: downloadTask, didResumeAtOffset: fileOffset,
423 | expectedTotalBytes: expectedTotalBytes)
[37/38] Emitting module HTTPFoundation
[38/38] Compiling HTTPFoundation URLSessionHTTPClient.swift
BUILD FAILURE 6.2 android