The Swift Package Index logo.Swift Package Index

Has it really been five years since Swift Package Index launched? Read our anniversary blog post!

Build Information

Failed to build HTTP, reference main (f61a71), with Swift 6.1 for Android on 30 May 2025 17:40:30 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4606859-2":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:android-6.1-latest swift build --swift-sdk aarch64-unknown-linux-android24 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.63.1
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.1
Building package at path:  $PWD
https://github.com/grdsdev/swift-http.git
https://github.com/grdsdev/swift-http.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
  "dependencies" : [
    {
      "identity" : "swift-snapshot-testing",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "1.0.0",
            "upper_bound" : "2.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/pointfreeco/swift-snapshot-testing"
    },
    {
      "identity" : "swift-http-types",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "1.0.0",
            "upper_bound" : "2.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/apple/swift-http-types"
    }
  ],
  "manifest_display_name" : "HTTP",
  "name" : "HTTP",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "ios",
      "version" : "13.0"
    },
    {
      "name" : "maccatalyst",
      "version" : "13.0"
    },
    {
      "name" : "macos",
      "version" : "10.15"
    },
    {
      "name" : "watchos",
      "version" : "6.0"
    },
    {
      "name" : "tvos",
      "version" : "13.0"
    }
  ],
  "products" : [
    {
      "name" : "HTTP",
      "targets" : [
        "HTTP"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    },
    {
      "name" : "HTTPFoundation",
      "targets" : [
        "HTTPFoundation"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    },
    {
      "name" : "HTTPMock",
      "targets" : [
        "HTTPMock"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "swift_languages_versions" : [
    "6"
  ],
  "targets" : [
    {
      "c99name" : "HTTPTests",
      "module_type" : "SwiftTarget",
      "name" : "HTTPTests",
      "path" : "Tests/HTTPTests",
      "product_dependencies" : [
        "InlineSnapshotTesting"
      ],
      "sources" : [
        "FormDataTests.swift",
        "HTTPClientMockTests.swift",
        "HTTPTests.swift",
        "ResponseTests.swift",
        "URLSearchParamsTests.swift"
      ],
      "target_dependencies" : [
        "HTTP",
        "HTTPFoundation",
        "HTTPMock"
      ],
      "type" : "test"
    },
    {
      "c99name" : "HTTPMock",
      "module_type" : "SwiftTarget",
      "name" : "HTTPMock",
      "path" : "Sources/HTTPMock",
      "product_memberships" : [
        "HTTPMock"
      ],
      "sources" : [
        "HTTPClientMock.swift",
        "Match.swift"
      ],
      "target_dependencies" : [
        "HTTP"
      ],
      "type" : "library"
    },
    {
      "c99name" : "HTTPFoundation",
      "module_type" : "SwiftTarget",
      "name" : "HTTPFoundation",
      "path" : "Sources/HTTPFoundation",
      "product_memberships" : [
        "HTTPFoundation"
      ],
      "sources" : [
        "DataLoader.swift",
        "URLSessionHTTPClient.swift"
      ],
      "target_dependencies" : [
        "HTTP"
      ],
      "type" : "library"
    },
    {
      "c99name" : "HTTP",
      "module_type" : "SwiftTarget",
      "name" : "HTTP",
      "path" : "Sources/HTTP",
      "product_dependencies" : [
        "HTTPTypes",
        "HTTPTypesFoundation"
      ],
      "product_memberships" : [
        "HTTP",
        "HTTPFoundation",
        "HTTPMock"
      ],
      "sources" : [
        "Coding.swift",
        "FormData.swift",
        "HTTPClient.swift",
        "HTTPRequestEncodableBody.swift",
        "Response.swift",
        "URLSearchParams.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "6.0"
}
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-2":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:android-6.1-latest swift build --swift-sdk aarch64-unknown-linux-android24 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats 2>&1
android-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:fe1962677657b2408c217cb5cceb3c09bc1d91486e360cebbc6eee461a5945d8
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:android-6.1-latest
Fetching https://github.com/apple/swift-http-types
Fetching https://github.com/pointfreeco/swift-snapshot-testing
[1/904] Fetching swift-http-types
[905/14093] Fetching swift-http-types, swift-snapshot-testing
Fetched https://github.com/apple/swift-http-types from cache (1.86s)
Fetched https://github.com/pointfreeco/swift-snapshot-testing from cache (1.94s)
Computing version for https://github.com/apple/swift-http-types
Computed https://github.com/apple/swift-http-types at 1.4.0 (3.18s)
Computing version for https://github.com/pointfreeco/swift-snapshot-testing
Computed https://github.com/pointfreeco/swift-snapshot-testing at 1.18.4 (0.60s)
Fetching https://github.com/swiftlang/swift-syntax
Fetching https://github.com/pointfreeco/swift-custom-dump
[1/4581] Fetching swift-custom-dump
Fetched https://github.com/pointfreeco/swift-custom-dump from cache (0.69s)
[1/70522] Fetching swift-syntax
Fetched https://github.com/swiftlang/swift-syntax from cache (5.69s)
Computing version for https://github.com/pointfreeco/swift-custom-dump
Computed https://github.com/pointfreeco/swift-custom-dump at 1.3.3 (6.24s)
Fetching https://github.com/pointfreeco/xctest-dynamic-overlay
[1/5458] Fetching xctest-dynamic-overlay
Fetched https://github.com/pointfreeco/xctest-dynamic-overlay from cache (0.90s)
Computing version for https://github.com/swiftlang/swift-syntax
Computed https://github.com/swiftlang/swift-syntax at 601.0.1 (5.41s)
Computing version for https://github.com/pointfreeco/xctest-dynamic-overlay
Computed https://github.com/pointfreeco/xctest-dynamic-overlay at 1.5.2 (0.60s)
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
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
Building for debugging...
[0/6] Write sources
[5/6] Write swift-version-24593BA9C3E375BF.txt
[7/14] Compiling HTTPTypes HTTPRequest.swift
[8/14] Compiling HTTPTypes HTTPResponse.swift
[9/15] Compiling HTTPTypes ISOLatin1String.swift
[10/15] Compiling HTTPTypes HTTPParsedFields.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 URLSession+HTTPTypes.swift
[18/22] Compiling HTTPTypesFoundation URLResponse+HTTPTypes.swift
[19/22] Compiling HTTPTypesFoundation HTTPTypes+ISOLatin1.swift
[20/22] Compiling HTTPTypesFoundation URLRequest+HTTPTypes.swift
[21/22] Emitting module HTTPTypesFoundation
[22/22] Compiling HTTPTypesFoundation HTTPRequest+URL.swift
[24/30] Compiling HTTP HTTPClient.swift
[25/30] Compiling HTTP Response.swift
[26/30] Compiling HTTP HTTPRequestEncodableBody.swift
[27/30] Compiling HTTP URLSearchParams.swift
[28/30] Emitting module HTTP
[29/30] Compiling HTTP FormData.swift
[30/30] Compiling HTTP Coding.swift
[32/37] Compiling HTTPMock HTTPClientMock.swift
[33/37] Emitting module HTTPMock
[34/37] Compiling HTTPMock Match.swift
[36/38] Emitting module HTTPFoundation
[37/38] Compiling HTTPFoundation DataLoader.swift
/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: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: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: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: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: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: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: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: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)
[38/38] Compiling HTTPFoundation URLSessionHTTPClient.swift
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-2":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:android-6.1-latest swift build --swift-sdk aarch64-unknown-linux-android24 2>&1
android-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:fe1962677657b2408c217cb5cceb3c09bc1d91486e360cebbc6eee461a5945d8
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:android-6.1-latest
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
[0/1] Planning build
Building for debugging...
[0/1] Write swift-version-24593BA9C3E375BF.txt
[2/9] Compiling HTTPTypes ISOLatin1String.swift
[3/10] Emitting module HTTPTypes
[4/10] Compiling HTTPTypes NIOLock.swift
[5/10] Compiling HTTPTypes HTTPField.swift
[6/10] Compiling HTTPTypes HTTPParsedFields.swift
[7/10] Compiling HTTPTypes HTTPRequest.swift
[8/10] Compiling HTTPTypes HTTPResponse.swift
[9/10] Compiling HTTPTypes HTTPFieldName.swift
[10/10] Compiling HTTPTypes HTTPFields.swift
[12/17] Compiling HTTPTypesFoundation URLSession+HTTPTypes.swift
[13/17] Compiling HTTPTypesFoundation URLRequest+HTTPTypes.swift
[14/17] Compiling HTTPTypesFoundation HTTPTypes+ISOLatin1.swift
[15/17] Compiling HTTPTypesFoundation URLResponse+HTTPTypes.swift
[16/17] Compiling HTTPTypesFoundation HTTPRequest+URL.swift
[17/17] Emitting module HTTPTypesFoundation
[19/25] Compiling HTTP HTTPRequestEncodableBody.swift
[20/25] Compiling HTTP HTTPClient.swift
[21/25] Emitting module HTTP
[22/25] Compiling HTTP Coding.swift
[23/25] Compiling HTTP URLSearchParams.swift
[24/25] Compiling HTTP FormData.swift
[25/25] Compiling HTTP Response.swift
[27/32] Compiling HTTPMock Match.swift
[28/32] Compiling HTTPMock HTTPClientMock.swift
[29/32] Emitting module HTTPMock
[31/33] Compiling HTTPFoundation DataLoader.swift
/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: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: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: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: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: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: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: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: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)
[32/33] Emitting module HTTPFoundation
[33/33] Compiling HTTPFoundation URLSessionHTTPClient.swift
BUILD FAILURE 6.1 android