The Swift Package Index logo.Swift Package Index

Build Information

Failed to build RealHTTP, reference main (8f1ea5), with Swift 6.1 for Wasm on 30 May 2025 05:34:47 UTC.

Build Command

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

Build Log

1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPDataLoader/HTTPDataLoader.swift:337:76: error: 'URLSessionDownloadTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
335 |     }
336 |
337 |     public func urlSession(_ session: Foundation.URLSession, downloadTask: URLSessionDownloadTask,
    |                                                                            `- error: 'URLSessionDownloadTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
338 |                            didWriteData bytesWritten: Int64,
339 |                            totalBytesWritten: Int64, totalBytesExpectedToWrite: Int64) {
Foundation.URLSessionDownloadTask:2:18: note: 'URLSessionDownloadTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionDownloadTask = AnyObject
  |                  `- note: 'URLSessionDownloadTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPDataLoader/HTTPDataLoader.swift:348:39: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
346 |     }
347 |
348 |     public func urlSession(_ session: URLSession, downloadTask: URLSessionDownloadTask,
    |                                       `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
349 |                            didResumeAtOffset fileOffset: Int64, expectedTotalBytes: Int64) {
350 |
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPDataLoader/HTTPDataLoader.swift:348:65: error: 'URLSessionDownloadTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
346 |     }
347 |
348 |     public func urlSession(_ session: URLSession, downloadTask: URLSessionDownloadTask,
    |                                                                 `- error: 'URLSessionDownloadTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
349 |                            didResumeAtOffset fileOffset: Int64, expectedTotalBytes: Int64) {
350 |
Foundation.URLSessionDownloadTask:2:18: note: 'URLSessionDownloadTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionDownloadTask = AnyObject
  |                  `- note: 'URLSessionDownloadTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPDataLoader/HTTPDataLoader.swift:361:39: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
359 |     // MARK: - Stream
360 |
361 |     public func urlSession(_ session: URLSession, task: URLSessionTask,
    |                                       `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
362 |                            needNewBodyStream completionHandler: @escaping (InputStream?) -> Void) {
363 |         guard let request = dataLoadersMap[task.taskIdentifier]?.request else {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPDataLoader/HTTPDataLoader.swift:361:57: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
359 |     // MARK: - Stream
360 |
361 |     public func urlSession(_ session: URLSession, task: URLSessionTask,
    |                                                         `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
362 |                            needNewBodyStream completionHandler: @escaping (InputStream?) -> Void) {
363 |         guard let request = dataLoadersMap[task.taskIdentifier]?.request else {
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionTask = AnyObject
  |                  `- note: 'URLSessionTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPDataLoader/HTTPDataLoader.swift:376:32: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
374 |     // MARK: - Other Events
375 |
376 |     func urlSession(_ session: URLSession, taskIsWaitingForConnectivity task: URLSessionTask) {
    |                                `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
377 |         guard let request = dataLoadersMap[task.taskIdentifier]?.request else {
378 |             return
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPDataLoader/HTTPDataLoader.swift:376:79: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
374 |     // MARK: - Other Events
375 |
376 |     func urlSession(_ session: URLSession, taskIsWaitingForConnectivity task: URLSessionTask) {
    |                                                                               `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
377 |         guard let request = dataLoadersMap[task.taskIdentifier]?.request else {
378 |             return
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionTask = AnyObject
  |                  `- note: 'URLSessionTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPDataLoader/HTTPDataLoader.swift:419:31: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
417 |     ///   - handler: response received.
418 |     ///   - error: error received, if any.
419 |     func completeTask(_ task: URLSessionTask, handler: HTTPDataLoaderResponse?, error: Error?) {
    |                               `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
420 |         guard let handler = handler else {
421 |             return
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionTask = AnyObject
  |                  `- note: 'URLSessionTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPDataLoader/HTTPDataLoader.swift:463:85: error: cannot find type 'URLRequest' in scope
461 |     ///   - request: original request executed.
462 |     ///   - completion: completion block.
463 |     func evaluateRedirect(task: URLSessionTask, response: HTTPURLResponse, request: URLRequest,
    |                                                                                     `- error: cannot find type 'URLRequest' in scope
464 |                           completion: @escaping (URLRequest?) -> Void) {
465 |         // missing components, continue to the default behaviour
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPDataLoader/HTTPDataLoader.swift:464:50: error: cannot find type 'URLRequest' in scope
462 |     ///   - completion: completion block.
463 |     func evaluateRedirect(task: URLSessionTask, response: HTTPURLResponse, request: URLRequest,
464 |                           completion: @escaping (URLRequest?) -> Void) {
    |                                                  `- error: cannot find type 'URLRequest' in scope
465 |         // missing components, continue to the default behaviour
466 |         let handler = dataLoadersMap[task.taskIdentifier]
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPDataLoader/HTTPDataLoader.swift:463:33: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
461 |     ///   - request: original request executed.
462 |     ///   - completion: completion block.
463 |     func evaluateRedirect(task: URLSessionTask, response: HTTPURLResponse, request: URLRequest,
    |                                 `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
464 |                           completion: @escaping (URLRequest?) -> Void) {
465 |         // missing components, continue to the default behaviour
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionTask = AnyObject
  |                  `- note: 'URLSessionTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPDataLoader/HTTPDataLoader.swift:463:59: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
461 |     ///   - request: original request executed.
462 |     ///   - completion: completion block.
463 |     func evaluateRedirect(task: URLSessionTask, response: HTTPURLResponse, request: URLRequest,
    |                                                           `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
464 |                           completion: @escaping (URLRequest?) -> Void) {
465 |         // missing components, continue to the default behaviour
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
  |                  `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPDataLoader/HTTPDataLoader.swift:504:73: error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
502 |     ///   - completionHandler: completion callback.
503 |     func evaluateAuthChallange(_ task: URLSessionTask, challenge: URLAuthenticationChallenge,
504 |                                completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) {
    |                                                                         `- error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
505 |         guard let request = dataLoadersMap[task.taskIdentifier]?.request,
506 |               let security = request.security ?? client?.security else {
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPDataLoader/HTTPDataLoader.swift:503:40: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
501 |     ///   - challenge: challange.
502 |     ///   - completionHandler: completion callback.
503 |     func evaluateAuthChallange(_ task: URLSessionTask, challenge: URLAuthenticationChallenge,
    |                                        `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
504 |                                completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) {
505 |         guard let request = dataLoadersMap[task.taskIdentifier]?.request,
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionTask = AnyObject
  |                  `- note: 'URLSessionTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPDataLoader/HTTPDataLoader.swift:503:67: error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
501 |     ///   - challenge: challange.
502 |     ///   - completionHandler: completion callback.
503 |     func evaluateAuthChallange(_ task: URLSessionTask, challenge: URLAuthenticationChallenge,
    |                                                                   `- error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
504 |                                completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) {
505 |         guard let request = dataLoadersMap[task.taskIdentifier]?.request,
Foundation.URLAuthenticationChallenge:2:18: note: 'URLAuthenticationChallenge' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLAuthenticationChallenge = AnyObject
  |                  `- note: 'URLAuthenticationChallenge' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPDataLoader/HTTPDataLoader.swift:527:19: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
525 |     /// Support class for incapsulation of the task.
526 |     private final class Box {
527 |         var task: URLSessionTask?
    |                   `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
528 |     }
529 |
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionTask = AnyObject
  |                  `- note: 'URLSessionTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPDataLoader/HTTPDataLoader.swift:59:24: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 57 |                   maxConcurrentOperations: Int) {
 58 |         super.init()
 59 |         self.session = URLSession(configuration: configuration, delegate: self, delegateQueue: queue)
    |                        `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 60 |         self.queue.maxConcurrentOperationCount = maxConcurrentOperations
 61 |     }
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPDataLoader/HTTPDataLoader.swift:138:23: error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'cancel'
136 |         }, onCancel: {
137 |             // Support for task cancellation
138 |             box.task?.cancel()
    |                       `- error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'cancel'
139 |
140 |         })
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPDataLoader/HTTPDataLoader.swift:155:13: error: cannot find 'DispatchQueue' in scope
153 |
154 |         if request.isAltRequest {
155 |             DispatchQueue.main.async { [weak self] in
    |             `- error: cannot find 'DispatchQueue' in scope
156 |                 guard let client = self?.client else { return }
157 |                 client.delegate?.client(client, request: (request, task),
/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPClient/HTTPClientDelegate.swift:63:58: error: cannot find type 'URLRequest' in scope
61 |     ///   - newRequest: the request to follow in redirect.
62 |     func client(_ client: HTTPClient, willPerformRedirect request: ExecutedRequest,
63 |                 response: HTTPResponse, with newRequest: URLRequest)
   |                                                          `- error: cannot find type 'URLRequest' in scope
64 |
65 |     /// Client receive an auth challenge which will be managed by the `security` property of the
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPDataLoader/HTTPDataLoader.swift:230:13: error: cannot find 'DispatchQueue' in scope
228 |             self.dataLoadersMap[task.taskIdentifier] = response
229 |
230 |             DispatchQueue.main.async { [weak self] in
    |             `- error: cannot find 'DispatchQueue' in scope
231 |                 guard let client = self?.client else { return }
232 |                 client.delegate?.client(client, didEnqueue: (request, task))
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPDataLoader/HTTPDataLoader.swift:219:17: error: value of type 'URLSession' (aka 'AnyObject') has no member 'delegateQueue'
217 |     private func fetch(_ request: HTTPRequest, task: URLSessionTask,
218 |                        completion: @escaping HTTPDataLoaderResponse.Completion) -> URLSessionTask {
219 |         session.delegateQueue.addOperation { [weak self] in
    |                 `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'delegateQueue'
220 |             guard let self = self else { return }
221 |
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPDataLoader/HTTPDataLoader.swift:228:38: error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'taskIdentifier'
226 |             // multiple finished calls attempt to modify the dataLoadersMap dictionary causing
227 |             // this crash <https://github.com/immobiliare/RealHTTP/issues/44>
228 |             self.dataLoadersMap[task.taskIdentifier] = response
    |                                      `- error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'taskIdentifier'
229 |
230 |             DispatchQueue.main.async { [weak self] in
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPDataLoader/HTTPDataLoader.swift:235:14: error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'resume'
233 |             }
234 |         }
235 |         task.resume()
    |              `- error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'resume'
236 |         return task
237 |     }
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPDataLoader/HTTPDataLoader.swift:275:38: error: value of type 'URLSessionDataTask' (aka 'AnyObject') has no member 'taskIdentifier'
273 |     public func urlSession(_ session: URLSession, dataTask: URLSessionDataTask,
274 |                            didReceive data: Data) {
275 |         self.dataLoadersMap[dataTask.taskIdentifier]?.appendData(data)
    |                                      `- error: value of type 'URLSessionDataTask' (aka 'AnyObject') has no member 'taskIdentifier'
276 |     }
277 |
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPDataLoader/HTTPDataLoader.swift:288:43: error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'taskIdentifier'
286 |     public func urlSession(_ session: URLSession, task: URLSessionTask,
287 |                            didCompleteWithError error: Error?) {
288 |         let handler = dataLoadersMap[task.taskIdentifier]
    |                                           `- error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'taskIdentifier'
289 |         completeTask(task, handler: handler, error: error)
290 |     }
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPDataLoader/HTTPDataLoader.swift:296:54: error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'taskIdentifier'
294 |
295 |         // Metrics may fire after URLSession:task:didCompleteWithError: is called, delegate may be nil
296 |         guard let handler = self.dataLoadersMap[task.taskIdentifier] else { return }
    |                                                      `- error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'taskIdentifier'
297 |
298 |         let httpMetrics = HTTPMetrics(metrics: metrics, task: task)
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Metrics/HTTPMetrics.swift:57:29: error: cannot find type 'URLSessionTaskMetrics' in scope
 55 |
 56 |     /// Initialize the object with the metrics gathered for a task.
 57 |     internal init?(metrics: URLSessionTaskMetrics?, task: URLSessionTask?) {
    |                             `- error: cannot find type 'URLSessionTaskMetrics' in scope
 58 |         self.taskMetrics = metrics
 59 |         self.task = task
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPDataLoader/HTTPDataLoader.swift:303:13: error: cannot find 'DispatchQueue' in scope
301 |
302 |         if let httpMetrics = httpMetrics {
303 |             DispatchQueue.main.async { [weak self] in
    |             `- error: cannot find 'DispatchQueue' in scope
304 |                 guard let client = self?.client else { return }
305 |                 client.delegate?.client(client, didCollectedMetricsFor: (handler.request, task), metrics: httpMetrics)
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/HTTPProgress.swift:77:29: error: cannot find type 'Progress' in scope
75 |     ///   - partialData: partially downloaded data in case it's available and operation is `failed`.
76 |     internal init(event: Event = .download,
77 |                   progress: Progress? = nil,
   |                             `- error: cannot find type 'Progress' in scope
78 |                   currentLength: Int64, expectedLength: Int64,
79 |                   partialData: Data? = nil) {
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPDataLoader/HTTPDataLoader.swift:316:45: error: cannot infer contextual base in reference to member 'upload'
314 |                            totalBytesSent: Int64, totalBytesExpectedToSend: Int64) {
315 |
316 |         let progress = HTTPProgress(event: .upload,
    |                                             `- error: cannot infer contextual base in reference to member 'upload'
317 |                                     progress: task.progress,
318 |                                     currentLength: totalBytesSent, expectedLength: totalBytesExpectedToSend)
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPDataLoader/HTTPDataLoader.swift:317:52: error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'progress'
315 |
316 |         let progress = HTTPProgress(event: .upload,
317 |                                     progress: task.progress,
    |                                                    `- error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'progress'
318 |                                     currentLength: totalBytesSent, expectedLength: totalBytesExpectedToSend)
319 |         dataLoadersMap[task.taskIdentifier]?.request.progress = progress
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPDataLoader/HTTPDataLoader.swift:319:29: error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'taskIdentifier'
317 |                                     progress: task.progress,
318 |                                     currentLength: totalBytesSent, expectedLength: totalBytesExpectedToSend)
319 |         dataLoadersMap[task.taskIdentifier]?.request.progress = progress
    |                             `- error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'taskIdentifier'
320 |     }
321 |
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPDataLoader/HTTPDataLoader.swift:326:57: error: value of type 'URLSessionDownloadTask' (aka 'AnyObject') has no member 'taskIdentifier'
324 |     func urlSession(_ session: URLSession, downloadTask: URLSessionDownloadTask,
325 |                     didFinishDownloadingTo location: URL) {
326 |         guard let handler = dataLoadersMap[downloadTask.taskIdentifier],
    |                                                         `- error: value of type 'URLSessionDownloadTask' (aka 'AnyObject') has no member 'taskIdentifier'
327 |               let fileURL = location.copyFileToDefaultLocation(task: downloadTask,
328 |                                                                forRequest: handler.request) else {
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPDataLoader/HTTPDataLoader.swift:341:45: error: cannot infer contextual base in reference to member 'download'
339 |                            totalBytesWritten: Int64, totalBytesExpectedToWrite: Int64) {
340 |
341 |         let progress = HTTPProgress(event: .download,
    |                                             `- error: cannot infer contextual base in reference to member 'download'
342 |                                     progress: downloadTask.progress,
343 |                                     currentLength: totalBytesWritten, expectedLength: totalBytesExpectedToWrite)
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPDataLoader/HTTPDataLoader.swift:342:60: error: value of type 'URLSessionDownloadTask' (aka 'AnyObject') has no member 'progress'
340 |
341 |         let progress = HTTPProgress(event: .download,
342 |                                     progress: downloadTask.progress,
    |                                                            `- error: value of type 'URLSessionDownloadTask' (aka 'AnyObject') has no member 'progress'
343 |                                     currentLength: totalBytesWritten, expectedLength: totalBytesExpectedToWrite)
344 |
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPDataLoader/HTTPDataLoader.swift:345:42: error: value of type 'URLSessionDownloadTask' (aka 'AnyObject') has no member 'taskIdentifier'
343 |                                     currentLength: totalBytesWritten, expectedLength: totalBytesExpectedToWrite)
344 |
345 |         self.dataLoadersMap[downloadTask.taskIdentifier]?.request.progress = progress
    |                                          `- error: value of type 'URLSessionDownloadTask' (aka 'AnyObject') has no member 'taskIdentifier'
346 |     }
347 |
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPDataLoader/HTTPDataLoader.swift:351:45: error: cannot infer contextual base in reference to member 'resumed'
349 |                            didResumeAtOffset fileOffset: Int64, expectedTotalBytes: Int64) {
350 |
351 |         let progress = HTTPProgress(event: .resumed,
    |                                             `- error: cannot infer contextual base in reference to member 'resumed'
352 |                                     progress: downloadTask.progress,
353 |                                     currentLength: fileOffset,
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPDataLoader/HTTPDataLoader.swift:352:60: error: value of type 'URLSessionDownloadTask' (aka 'AnyObject') has no member 'progress'
350 |
351 |         let progress = HTTPProgress(event: .resumed,
352 |                                     progress: downloadTask.progress,
    |                                                            `- error: value of type 'URLSessionDownloadTask' (aka 'AnyObject') has no member 'progress'
353 |                                     currentLength: fileOffset,
354 |                                     expectedLength: expectedTotalBytes)
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPDataLoader/HTTPDataLoader.swift:356:42: error: value of type 'URLSessionDownloadTask' (aka 'AnyObject') has no member 'taskIdentifier'
354 |                                     expectedLength: expectedTotalBytes)
355 |
356 |         self.dataLoadersMap[downloadTask.taskIdentifier]?.request.progress = progress
    |                                          `- error: value of type 'URLSessionDownloadTask' (aka 'AnyObject') has no member 'taskIdentifier'
357 |     }
358 |
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPDataLoader/HTTPDataLoader.swift:363:49: error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'taskIdentifier'
361 |     public func urlSession(_ session: URLSession, task: URLSessionTask,
362 |                            needNewBodyStream completionHandler: @escaping (InputStream?) -> Void) {
363 |         guard let request = dataLoadersMap[task.taskIdentifier]?.request else {
    |                                                 `- error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'taskIdentifier'
364 |             return
365 |         }
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPDataLoader/HTTPDataLoader.swift:377:49: error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'taskIdentifier'
375 |
376 |     func urlSession(_ session: URLSession, taskIsWaitingForConnectivity task: URLSessionTask) {
377 |         guard let request = dataLoadersMap[task.taskIdentifier]?.request else {
    |                                                 `- error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'taskIdentifier'
378 |             return
379 |         }
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPDataLoader/HTTPDataLoader.swift:381:9: error: cannot find 'DispatchQueue' in scope
379 |         }
380 |
381 |         DispatchQueue.main.async { [weak self] in
    |         `- error: cannot find 'DispatchQueue' in scope
382 |             guard let client = self?.client else { return }
383 |             client.delegate?.client(client, taskIsWaitingForConnectivity: (request, task))
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPDataLoader/HTTPDataLoader.swift:424:34: error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'taskIdentifier'
422 |         }
423 |
424 |         self.dataLoadersMap[task.taskIdentifier]?.urlResponse = task.response
    |                                  `- error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'taskIdentifier'
425 |
426 |         if handler.request.transferMode == .largeData,
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPDataLoader/HTTPDataLoader.swift:424:70: error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'response'
422 |         }
423 |
424 |         self.dataLoadersMap[task.taskIdentifier]?.urlResponse = task.response
    |                                                                      `- error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'response'
425 |
426 |         if handler.request.transferMode == .largeData,
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPDataLoader/HTTPDataLoader.swift:428:49: error: cannot find 'NSURLSessionDownloadTaskResumeData' in scope
426 |         if handler.request.transferMode == .largeData,
427 |             let error = error, let  nsError = error as NSError?,
428 |            let resumableData = nsError.userInfo[NSURLSessionDownloadTaskResumeData] as? Data {
    |                                                 `- error: cannot find 'NSURLSessionDownloadTaskResumeData' in scope
429 |             // When download fails task will be completed with an error and the error contains
430 |             // a resumable set of data.
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPDataLoader/HTTPDataLoader.swift:432:61: error: cannot infer contextual base in reference to member 'failed'
430 |             // a resumable set of data.
431 |             // <https://developer.apple.com/forums/thread/24770>
432 |             handler.request.progress = HTTPProgress(event: .failed,
    |                                                             `- error: cannot infer contextual base in reference to member 'failed'
433 |                                                     currentLength: 0,
434 |                                                     expectedLength: 0, partialData: resumableData)
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPDataLoader/HTTPDataLoader+Response.swift:58:33: error: cannot find type 'URLRequest' in scope
56 |     ///             except when the server has responded to the initial request with a
57 |     ///             redirect to a different URL.
58 |     var urlRequests: (original: URLRequest?, current: URLRequest?) = (nil, nil)
   |                                 `- error: cannot find type 'URLRequest' in scope
59 |
60 |     // MARK: - Initialization
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPDataLoader/HTTPDataLoader+Response.swift:58:55: error: cannot find type 'URLRequest' in scope
56 |     ///             except when the server has responded to the initial request with a
57 |     ///             redirect to a different URL.
58 |     var urlRequests: (original: URLRequest?, current: URLRequest?) = (nil, nil)
   |                                                       `- error: cannot find type 'URLRequest' in scope
59 |
60 |     // MARK: - Initialization
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPDataLoader/HTTPDataLoader.swift:439:37: error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'originalRequest'
437 |         }
438 |
439 |         handler.urlRequests = (task.originalRequest, task.currentRequest)
    |                                     `- error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'originalRequest'
440 |
441 |         if let error = error {
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPDataLoader/HTTPDataLoader.swift:439:59: error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'currentRequest'
437 |         }
438 |
439 |         handler.urlRequests = (task.originalRequest, task.currentRequest)
    |                                                           `- error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'currentRequest'
440 |
441 |         if let error = error {
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPDataLoader/HTTPDataLoader.swift:445:34: error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'taskIdentifier'
443 |         }
444 |
445 |         self.dataLoadersMap[task.taskIdentifier] = nil
    |                                  `- error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'taskIdentifier'
446 |
447 |         let response = HTTPResponse(response: handler)
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPDataLoader/HTTPDataLoader.swift:450:9: error: cannot find 'DispatchQueue' in scope
448 |         handler.completion(response)
449 |
450 |         DispatchQueue.main.async { [weak self] in
    |         `- error: cannot find 'DispatchQueue' in scope
451 |             guard let client = self?.client else { return }
452 |             client.delegate?.client(client, didFinish: (handler.request, task), response: response)
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPDataLoader/HTTPDataLoader.swift:466:43: error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'taskIdentifier'
464 |                           completion: @escaping (URLRequest?) -> Void) {
465 |         // missing components, continue to the default behaviour
466 |         let handler = dataLoadersMap[task.taskIdentifier]
    |                                           `- error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'taskIdentifier'
467 |         guard let client = client, let handler = handler else {
468 |             completion(request)
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPDataLoader/HTTPDataLoader.swift:477:30: error: cannot find type 'URLRequest' in scope
475 |
476 |         // For some reason both body, headers and method is not copied
477 |         var redirectRequest: URLRequest?
    |                              `- error: cannot find type 'URLRequest' in scope
478 |
479 |         switch redirectMode {
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPDataLoader/HTTPDataLoader.swift:485:46: error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'originalRequest'
483 |             // maintain http body, headers and method of the original request.
484 |             redirectRequest = request
485 |             redirectRequest?.httpBody = task.originalRequest?.httpBody
    |                                              `- error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'originalRequest'
486 |             redirectRequest?.allHTTPHeaderFields = task.originalRequest?.allHTTPHeaderFields
487 |             redirectRequest?.httpMethod = task.originalRequest?.httpMethod
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPDataLoader/HTTPDataLoader.swift:486:57: error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'originalRequest'
484 |             redirectRequest = request
485 |             redirectRequest?.httpBody = task.originalRequest?.httpBody
486 |             redirectRequest?.allHTTPHeaderFields = task.originalRequest?.allHTTPHeaderFields
    |                                                         `- error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'originalRequest'
487 |             redirectRequest?.httpMethod = task.originalRequest?.httpMethod
488 |         case .followCustom(let urlRequestBuilder):
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPDataLoader/HTTPDataLoader.swift:487:48: error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'originalRequest'
485 |             redirectRequest?.httpBody = task.originalRequest?.httpBody
486 |             redirectRequest?.allHTTPHeaderFields = task.originalRequest?.allHTTPHeaderFields
487 |             redirectRequest?.httpMethod = task.originalRequest?.httpMethod
    |                                                `- error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'originalRequest'
488 |         case .followCustom(let urlRequestBuilder):
489 |             redirectRequest = urlRequestBuilder(request)
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPDataLoader/HTTPDataLoader.swift:505:49: error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'taskIdentifier'
503 |     func evaluateAuthChallange(_ task: URLSessionTask, challenge: URLAuthenticationChallenge,
504 |                                completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) {
505 |         guard let request = dataLoadersMap[task.taskIdentifier]?.request,
    |                                                 `- error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'taskIdentifier'
506 |               let security = request.security ?? client?.security else {
507 |             // if not security is settings for both client and request we can use the default handling
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPDataLoader/HTTPDataLoader.swift:508:32: error: cannot infer contextual base in reference to member 'performDefaultHandling'
506 |               let security = request.security ?? client?.security else {
507 |             // if not security is settings for both client and request we can use the default handling
508 |             completionHandler(.performDefaultHandling, nil)
    |                                `- error: cannot infer contextual base in reference to member 'performDefaultHandling'
509 |             return
510 |         }
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPDataLoader/HTTPDataLoader.swift:508:56: error: 'nil' requires a contextual type
506 |               let security = request.security ?? client?.security else {
507 |             // if not security is settings for both client and request we can use the default handling
508 |             completionHandler(.performDefaultHandling, nil)
    |                                                        `- error: 'nil' requires a contextual type
509 |             return
510 |         }
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPDataLoader/HTTPDataLoader.swift:512:9: error: cannot find 'DispatchQueue' in scope
510 |         }
511 |
512 |         DispatchQueue.main.async { [weak self] in
    |         `- error: cannot find 'DispatchQueue' in scope
513 |             guard let client = self?.client else { return }
514 |             client.delegate?.client(client, didReceiveAuthChallangeFor: (request, task), authChallenge: challenge)
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPSecurity/HTTPSecurityService.swift:35:68: error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
33 |     func receiveChallenge(_ challenge: URLAuthenticationChallenge,
34 |                           forRequest request: HTTPRequest, task: URLSessionTask,
35 |                           completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void)
   |                                                                    `- error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
36 |
37 | }
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPSecurity/HTTPSecurityService.swift:33:40: error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
31 |     ///   - task: task associated with request.
32 |     ///   - completionHandler: completion handler.
33 |     func receiveChallenge(_ challenge: URLAuthenticationChallenge,
   |                                        `- error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
34 |                           forRequest request: HTTPRequest, task: URLSessionTask,
35 |                           completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void)
Foundation.URLAuthenticationChallenge:2:18: note: 'URLAuthenticationChallenge' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLAuthenticationChallenge = AnyObject
  |                  `- note: 'URLAuthenticationChallenge' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPSecurity/HTTPSecurityService.swift:34:66: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
32 |     ///   - completionHandler: completion handler.
33 |     func receiveChallenge(_ challenge: URLAuthenticationChallenge,
34 |                           forRequest request: HTTPRequest, task: URLSessionTask,
   |                                                                  `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
35 |                           completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void)
36 |
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionTask = AnyObject
  |                  `- note: 'URLSessionTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPSecurity/Options/CertificatesSecurity/CertificatesSecurity.swift:33:22: error: cannot find type 'SecKey' in scope
 31 |
 32 |     /// The public keys
 33 |     var publicKeys: [SecKey]?
    |                      `- error: cannot find type 'SecKey' in scope
 34 |
 35 |     /// Use public keys or certificate validation?
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPSecurity/Options/CertificatesSecurity/CertificatesSecurity.swift:82:73: error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
 80 |                                forRequest request: HTTPRequest,
 81 |                                task: URLSessionTask,
 82 |                                completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) {
    |                                                                         `- error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
 83 |         guard challenge.protectionSpace.authenticationMethod == NSURLAuthenticationMethodServerTrust,
 84 |               let trust = challenge.protectionSpace.serverTrust,
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPSecurity/Options/CertificatesSecurity/CertificatesSecurity.swift:79:45: error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 77 |     // MARK: - Conformance
 78 |
 79 |     open func receiveChallenge(_ challenge: URLAuthenticationChallenge,
    |                                             `- error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 80 |                                forRequest request: HTTPRequest,
 81 |                                task: URLSessionTask,
Foundation.URLAuthenticationChallenge:2:18: note: 'URLAuthenticationChallenge' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLAuthenticationChallenge = AnyObject
  |                  `- note: 'URLAuthenticationChallenge' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPSecurity/Options/CertificatesSecurity/CertificatesSecurity.swift:81:38: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 79 |     open func receiveChallenge(_ challenge: URLAuthenticationChallenge,
 80 |                                forRequest request: HTTPRequest,
 81 |                                task: URLSessionTask,
    |                                      `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 82 |                                completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) {
 83 |         guard challenge.protectionSpace.authenticationMethod == NSURLAuthenticationMethodServerTrust,
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionTask = AnyObject
  |                  `- note: 'URLSessionTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPSecurity/Options/CertificatesSecurity/CertificatesSecurity.swift:95:30: error: cannot find type 'SecTrust' in scope
 93 |     // MARK: - Public Functions
 94 |
 95 |     open func isValid(trust: SecTrust, forDomain domain: String?) -> Bool {
    |                              `- error: cannot find type 'SecTrust' in scope
 96 |         SecTrustSetPolicies(trust, trustPolicyForDomain(domain))
 97 |
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPSecurity/Options/CertificatesSecurity/CertificatesSecurity.swift:113:61: error: cannot find type 'SecPolicy' in scope
111 |     /// - Parameter domain: domain.
112 |     /// - Returns: SecPolicy
113 |     private func trustPolicyForDomain(_ domain: String?) -> SecPolicy {
    |                                                             `- error: cannot find type 'SecPolicy' in scope
114 |         switch validatedDomainName {
115 |         case true:
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPSecurity/Options/CertificatesSecurity/CertificatesSecurity.swift:122:62: error: cannot find type 'SecTrust' in scope
120 |     }
121 |
122 |     private func isValidCertificates(_ certs: [Data], trust: SecTrust, domain: String?) -> Bool {
    |                                                              `- error: cannot find type 'SecTrust' in scope
123 |         let serverCerts = trust.certificateChain()
124 |
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPSecurity/Options/CertificatesSecurity/CertificatesSecurity.swift:152:43: error: cannot find type 'SecTrust' in scope
150 |     }
151 |
152 |     private func isValidPublicKeys(trust: SecTrust, domain: String?) -> Bool {
    |                                           `- error: cannot find type 'SecTrust' in scope
153 |         guard let keys = publicKeys else {
154 |             return false
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPSecurity/Options/CertificatesSecurity/CertificatesSecurity.swift:180:32: error: cannot find type 'SecKey' in scope
178 |     ///
179 |     /// - Returns: SecKey?
180 |     func extractPublicKey() -> SecKey? {
    |                                `- error: cannot find type 'SecKey' in scope
181 |         let possibleCert = SecCertificateCreateWithData(nil, self as CFData)
182 |         return possibleCert?.extractPublicKeyFromCert(policy: SecPolicyCreateBasicX509())
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPSecurity/Options/CertificatesSecurity/CertificatesSecurity.swift:189:23: error: cannot find type 'SecTrust' in scope
187 | // MARK: - SecTrust Extension
188 |
189 | fileprivate extension SecTrust {
    |                       `- error: cannot find type 'SecTrust' in scope
190 |
191 |     /// Get the public key chain for the trust instance.
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPSecurity/Options/CertificatesSecurity/CertificatesSecurity.swift:218:23: error: cannot find type 'SecCertificate' in scope
216 | // MARK: - SecCertificate Extension
217 |
218 | fileprivate extension SecCertificate {
    |                       `- error: cannot find type 'SecCertificate' in scope
219 |
220 |     /// Get the public key from a certificate data
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPSecurity/Options/CertificatesSecurity/SSLCertificate.swift:30:41: error: cannot find type 'SecKey' in scope
28 |
29 |     /// Public key to be used.
30 |     public internal(set) var publicKey: SecKey?
   |                                         `- error: cannot find type 'SecKey' in scope
31 |
32 |     // MARK: - Initialization
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPSecurity/Options/CertificatesSecurity/CertificatesSecurity.swift:49:44: error: generic parameter 'ElementOfResult' could not be inferred
 47 |
 48 |         if self.usePublicKeys {
 49 |             self.publicKeys = certificates.compactMap { cert in
    |                                            `- error: generic parameter 'ElementOfResult' could not be inferred
 50 |                 if let data = cert.certData, cert.publicKey == nil {
 51 |                     cert.publicKey = data.extractPublicKey()
Swift.Sequence.compactMap:2:24: note: in call to function 'compactMap'
1 | protocol Sequence {
2 | @inlinable public func compactMap<ElementOfResult>(_ transform: (Self.Element) throws -> ElementOfResult?) rethrows -> [ElementOfResult]}
  |                        `- note: in call to function 'compactMap'
3 |
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPSecurity/Options/CertificatesSecurity/CertificatesSecurity.swift:83:65: error: cannot find 'NSURLAuthenticationMethodServerTrust' in scope
 81 |                                task: URLSessionTask,
 82 |                                completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) {
 83 |         guard challenge.protectionSpace.authenticationMethod == NSURLAuthenticationMethodServerTrust,
    |                                                                 `- error: cannot find 'NSURLAuthenticationMethodServerTrust' in scope
 84 |               let trust = challenge.protectionSpace.serverTrust,
 85 |               isValid(trust: trust, forDomain: challenge.protectionSpace.host) else {
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPSecurity/Options/CertificatesSecurity/CertificatesSecurity.swift:83:25: error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
 81 |                                task: URLSessionTask,
 82 |                                completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) {
 83 |         guard challenge.protectionSpace.authenticationMethod == NSURLAuthenticationMethodServerTrust,
    |                         `- error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
 84 |               let trust = challenge.protectionSpace.serverTrust,
 85 |               isValid(trust: trust, forDomain: challenge.protectionSpace.host) else {
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPSecurity/Options/CertificatesSecurity/CertificatesSecurity.swift:84:37: error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
 82 |                                completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) {
 83 |         guard challenge.protectionSpace.authenticationMethod == NSURLAuthenticationMethodServerTrust,
 84 |               let trust = challenge.protectionSpace.serverTrust,
    |                                     `- error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
 85 |               isValid(trust: trust, forDomain: challenge.protectionSpace.host) else {
 86 |             completionHandler(.cancelAuthenticationChallenge, nil)
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPSecurity/Options/CertificatesSecurity/CertificatesSecurity.swift:85:58: error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
 83 |         guard challenge.protectionSpace.authenticationMethod == NSURLAuthenticationMethodServerTrust,
 84 |               let trust = challenge.protectionSpace.serverTrust,
 85 |               isValid(trust: trust, forDomain: challenge.protectionSpace.host) else {
    |                                                          `- error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
 86 |             completionHandler(.cancelAuthenticationChallenge, nil)
 87 |             return
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPSecurity/Options/CertificatesSecurity/CertificatesSecurity.swift:86:32: error: cannot infer contextual base in reference to member 'cancelAuthenticationChallenge'
 84 |               let trust = challenge.protectionSpace.serverTrust,
 85 |               isValid(trust: trust, forDomain: challenge.protectionSpace.host) else {
 86 |             completionHandler(.cancelAuthenticationChallenge, nil)
    |                                `- error: cannot infer contextual base in reference to member 'cancelAuthenticationChallenge'
 87 |             return
 88 |         }
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPSecurity/Options/CertificatesSecurity/CertificatesSecurity.swift:86:63: error: 'nil' requires a contextual type
 84 |               let trust = challenge.protectionSpace.serverTrust,
 85 |               isValid(trust: trust, forDomain: challenge.protectionSpace.host) else {
 86 |             completionHandler(.cancelAuthenticationChallenge, nil)
    |                                                               `- error: 'nil' requires a contextual type
 87 |             return
 88 |         }
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPSecurity/Options/CertificatesSecurity/CertificatesSecurity.swift:90:28: error: cannot infer contextual base in reference to member 'useCredential'
 88 |         }
 89 |
 90 |         completionHandler(.useCredential, URLCredential(trust: trust))
    |                            `- error: cannot infer contextual base in reference to member 'useCredential'
 91 |     }
 92 |
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPSecurity/Options/CertificatesSecurity/CertificatesSecurity.swift:90:43: error: 'URLCredential' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 88 |         }
 89 |
 90 |         completionHandler(.useCredential, URLCredential(trust: trust))
    |                                           `- error: 'URLCredential' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 91 |     }
 92 |
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPSecurity/Options/CertificatesSecurity/CertificatesSecurity.swift:96:9: error: cannot find 'SecTrustSetPolicies' in scope
 94 |
 95 |     open func isValid(trust: SecTrust, forDomain domain: String?) -> Bool {
 96 |         SecTrustSetPolicies(trust, trustPolicyForDomain(domain))
    |         `- error: cannot find 'SecTrustSetPolicies' in scope
 97 |
 98 |         if usePublicKeys {
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPSecurity/Options/CertificatesSecurity/CertificatesSecurity.swift:125:23: error: cannot find type 'SecCertificate' in scope
123 |         let serverCerts = trust.certificateChain()
124 |
125 |         let collect: [SecCertificate] = certs.map {
    |                       `- error: cannot find type 'SecCertificate' in scope
126 |             SecCertificateCreateWithData(nil, $0 as CFData)!
127 |         }
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPSecurity/Options/CertificatesSecurity/CertificatesSecurity.swift:129:9: error: cannot find 'SecTrustSetAnchorCertificates' in scope
127 |         }
128 |
129 |         SecTrustSetAnchorCertificates(trust, collect as CFArray)
    |         `- error: cannot find 'SecTrustSetAnchorCertificates' in scope
130 |         var result: SecTrustResultType = SecTrustResultType(rawValue: UInt32(0))!
131 |         if SecTrustEvaluateWithError(trust, nil) == false {
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPSecurity/Options/CertificatesSecurity/CertificatesSecurity.swift:129:57: error: cannot find type 'CFArray' in scope
127 |         }
128 |
129 |         SecTrustSetAnchorCertificates(trust, collect as CFArray)
    |                                                         `- error: cannot find type 'CFArray' in scope
130 |         var result: SecTrustResultType = SecTrustResultType(rawValue: UInt32(0))!
131 |         if SecTrustEvaluateWithError(trust, nil) == false {
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPSecurity/Options/CertificatesSecurity/CertificatesSecurity.swift:130:21: error: cannot find type 'SecTrustResultType' in scope
128 |
129 |         SecTrustSetAnchorCertificates(trust, collect as CFArray)
130 |         var result: SecTrustResultType = SecTrustResultType(rawValue: UInt32(0))!
    |                     `- error: cannot find type 'SecTrustResultType' in scope
131 |         if SecTrustEvaluateWithError(trust, nil) == false {
132 |             result = .fatalTrustFailure
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPSecurity/Options/CertificatesSecurity/CertificatesSecurity.swift:131:12: error: cannot find 'SecTrustEvaluateWithError' in scope
129 |         SecTrustSetAnchorCertificates(trust, collect as CFArray)
130 |         var result: SecTrustResultType = SecTrustResultType(rawValue: UInt32(0))!
131 |         if SecTrustEvaluateWithError(trust, nil) == false {
    |            `- error: cannot find 'SecTrustEvaluateWithError' in scope
132 |             result = .fatalTrustFailure
133 |         }
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPSecurity/Options/CertificatesSecurity/CertificatesSecurity.swift:131:45: error: 'nil' requires a contextual type
129 |         SecTrustSetAnchorCertificates(trust, collect as CFArray)
130 |         var result: SecTrustResultType = SecTrustResultType(rawValue: UInt32(0))!
131 |         if SecTrustEvaluateWithError(trust, nil) == false {
    |                                             `- error: 'nil' requires a contextual type
132 |             result = .fatalTrustFailure
133 |         }
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPSecurity/Options/CertificatesSecurity/CertificatesSecurity.swift:181:28: error: cannot find 'SecCertificateCreateWithData' in scope
179 |     /// - Returns: SecKey?
180 |     func extractPublicKey() -> SecKey? {
181 |         let possibleCert = SecCertificateCreateWithData(nil, self as CFData)
    |                            `- error: cannot find 'SecCertificateCreateWithData' in scope
182 |         return possibleCert?.extractPublicKeyFromCert(policy: SecPolicyCreateBasicX509())
183 |     }
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPSecurity/Options/CertificatesSecurity/CertificatesSecurity.swift:181:70: error: cannot find type 'CFData' in scope
179 |     /// - Returns: SecKey?
180 |     func extractPublicKey() -> SecKey? {
181 |         let possibleCert = SecCertificateCreateWithData(nil, self as CFData)
    |                                                                      `- error: cannot find type 'CFData' in scope
182 |         return possibleCert?.extractPublicKeyFromCert(policy: SecPolicyCreateBasicX509())
183 |     }
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPSecurity/Options/CertificatesSecurity/CertificatesSecurity.swift:181:57: error: 'nil' requires a contextual type
179 |     /// - Returns: SecKey?
180 |     func extractPublicKey() -> SecKey? {
181 |         let possibleCert = SecCertificateCreateWithData(nil, self as CFData)
    |                                                         `- error: 'nil' requires a contextual type
182 |         return possibleCert?.extractPublicKeyFromCert(policy: SecPolicyCreateBasicX509())
183 |     }
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPSecurity/Options/CertificatesSecurity/SSLCertificate.swift:44:28: error: cannot find type 'SecKey' in scope
42 |     ///
43 |     /// - Parameter key: public key to be used.
44 |     public init(publicKey: SecKey) {
   |                            `- error: cannot find type 'SecKey' in scope
45 |         self.publicKey = publicKey
46 |     }
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPSecurity/Options/CertificatesSecurity/CertificatesSecurity.swift:193:31: error: cannot find type 'SecKey' in scope
191 |     /// Get the public key chain for the trust instance.
192 |     /// - Returns: [SecKey]
193 |     func publicKeyChain() -> [SecKey] {
    |                               `- error: cannot find type 'SecKey' in scope
194 |         let policy = SecPolicyCreateBasicX509()
195 |         let list: [SecKey] = (0..<SecTrustGetCertificateCount(self)).compactMap { index in
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPSecurity/Options/CertificatesSecurity/CertificatesSecurity.swift:224:57: error: cannot find type 'SecKey' in scope
222 |     /// - Parameter policy: policty to use.
223 |     /// - Returns: SecKey
224 |     func extractPublicKeyFromCert(policy: SecPolicy) -> SecKey? {
    |                                                         `- error: cannot find type 'SecKey' in scope
225 |         var possibleTrust: SecTrust?
226 |         SecTrustCreateWithCertificates(self, policy, &possibleTrust)
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPSecurity/Options/CertificatesSecurity/CertificatesSecurity.swift:224:43: error: cannot find type 'SecPolicy' in scope
222 |     /// - Parameter policy: policty to use.
223 |     /// - Returns: SecKey
224 |     func extractPublicKeyFromCert(policy: SecPolicy) -> SecKey? {
    |                                           `- error: cannot find type 'SecPolicy' in scope
225 |         var possibleTrust: SecTrust?
226 |         SecTrustCreateWithCertificates(self, policy, &possibleTrust)
[71/80] Compiling RealHTTP HTTPMetrics+Console.swift
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Metrics/Renders/HTTPMetrics+Console.swift:194:11: error: cannot find type 'URLSessionTaskMetrics' in scope
192 | // MARK: - URLSessionTaskMetrics.ResourceFetchType Extension
193 |
194 | extension URLSessionTaskMetrics.ResourceFetchType {
    |           `- error: cannot find type 'URLSessionTaskMetrics' in scope
195 |
196 |     var name: String {
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Metrics/Renders/HTTPMetrics+Console.swift:69:43: error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'taskIdentifier'
 67 |         var buffer: [String] = []
 68 |
 69 |         let taskIdentifier = (stats.task?.taskIdentifier != nil ? "\(stats.task!.taskIdentifier)" : "-")
    |                                           `- error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'taskIdentifier'
 70 |         buffer.append("Task ID: \(taskIdentifier) lifetime: \(stats.elapsedInterval.milliseconds) redirects: \(stats.countRedirects)")
 71 |
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Metrics/Renders/HTTPMetrics+Console.swift:69:82: error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'taskIdentifier'
 67 |         var buffer: [String] = []
 68 |
 69 |         let taskIdentifier = (stats.task?.taskIdentifier != nil ? "\(stats.task!.taskIdentifier)" : "-")
    |                                                                                  `- error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'taskIdentifier'
 70 |         buffer.append("Task ID: \(taskIdentifier) lifetime: \(stats.elapsedInterval.milliseconds) redirects: \(stats.countRedirects)")
 71 |
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Metrics/HTTPMetrics.swift:97:40: error: cannot find type 'URLSessionTaskTransactionMetrics' in scope
 95 |
 96 |         /// Underlying transaction metrics.
 97 |         public let transactionMetrics: URLSessionTaskTransactionMetrics
    |                                        `- error: cannot find type 'URLSessionTaskTransactionMetrics' in scope
 98 |
 99 |         /// The transaction request.
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/cURLHelper.swift:63:54: error: cannot find type 'URLRequest' in scope
 61 | public struct cURLHelper {
 62 |
 63 |     fileprivate static func cURLDescription(request: URLRequest?, client: HTTPClient?) -> String {
    |                                                      `- error: cannot find type 'URLRequest' in scope
 64 |         guard let client = client,
 65 |               let request = request,
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/cURLHelper.swift:92:53: error: cannot find type 'URLRequest' in scope
 90 |     ///   - client: where the request is running in.
 91 |     ///   - components: components array.
 92 |     private static func addCredentials(for request: URLRequest, whenIn client: HTTPClient, into components: inout [String]) {
    |                                                     `- error: cannot find type 'URLRequest' in scope
 93 |         guard let credentialStorage = client.session.configuration.urlCredentialStorage,
 94 |               let url = request.url,
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/cURLHelper.swift:119:52: error: cannot find type 'URLRequest' in scope
117 |     ///   - client: where the request is running in.
118 |     ///   - components: components array.
119 |     private static func addSetCookies(for request: URLRequest, whenIn client: HTTPClient, into components: inout [String]) {
    |                                                    `- error: cannot find type 'URLRequest' in scope
120 |         let configuration = client.session.configuration
121 |         guard configuration.httpShouldSetCookies,
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/cURLHelper.swift:142:49: error: cannot find type 'URLRequest' in scope
140 |     ///   - client: where the request is running in.
141 |     ///   - components: components array.
142 |     private static func addHeaders(for request: URLRequest, whenIn client: HTTPClient, into components: inout [String]) {
    |                                                 `- error: cannot find type 'URLRequest' in scope
143 |         let configuration = client.session.configuration
144 |         var headers = HTTPHeaders()
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/cURLHelper.swift:166:46: error: cannot find type 'URLRequest' in scope
164 |     ///   - client: where the request is running in.
165 |     ///   - components: components array.
166 |     private static func addBody(for request: URLRequest, whenIn client: HTTPClient, into components: inout [String]) {
    |                                              `- error: cannot find type 'URLRequest' in scope
167 |         if let httpBodyData = request.httpBody {
168 |             let httpBody = String(decoding: httpBodyData, as: UTF8.self)
/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPRequest/HTTPRequest.swift:451:76: error: cannot find type 'URLRequest' in scope
449 |     /// - Parameter client: client instance.
450 |     /// - Returns: `URLRequest`
451 |     internal func urlRequest(inClient client: HTTPClient?) async throws -> URLRequest {
    |                                                                            `- error: cannot find type 'URLRequest' in scope
452 |         guard let client = client,
453 |               let fullURL = urlComponents.fullURLInClient(client) else {
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/cURLHelper.swift:52:67: error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'originalRequest'
 50 |     /// - Returns: String
 51 |     public func cURLDescription() -> String {
 52 |         cURLHelper.cURLDescription(request: request?.sessionTask?.originalRequest, client: request?.client)
    |                                                                   `- error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'originalRequest'
 53 |     }
 54 |
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/cURLHelper.swift:93:54: error: value of type 'URLSession' (aka 'AnyObject') has no member 'configuration'
 91 |     ///   - components: components array.
 92 |     private static func addCredentials(for request: URLRequest, whenIn client: HTTPClient, into components: inout [String]) {
 93 |         guard let credentialStorage = client.session.configuration.urlCredentialStorage,
    |                                                      `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'configuration'
 94 |               let url = request.url,
 95 |               let host = url.host else {
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/cURLHelper.swift:103:72: error: cannot find 'NSURLAuthenticationMethodHTTPBasic' in scope
101 |                                                  protocol: url.scheme,
102 |                                                  realm: host,
103 |                                                  authenticationMethod: NSURLAuthenticationMethodHTTPBasic)
    |                                                                        `- error: cannot find 'NSURLAuthenticationMethodHTTPBasic' in scope
104 |
105 |         if let credentials = credentialStorage.credentials(for: protectionSpace)?.values {
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/cURLHelper.swift:99:31: error: 'URLProtectionSpace' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 97 |               }
 98 |
 99 |         let protectionSpace = URLProtectionSpace(host: host,
    |                               `- error: 'URLProtectionSpace' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
100 |                                                  port: url.port ?? 0,
101 |                                                  protocol: url.scheme,
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/cURLHelper.swift:120:44: error: value of type 'URLSession' (aka 'AnyObject') has no member 'configuration'
118 |     ///   - components: components array.
119 |     private static func addSetCookies(for request: URLRequest, whenIn client: HTTPClient, into components: inout [String]) {
120 |         let configuration = client.session.configuration
    |                                            `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'configuration'
121 |         guard configuration.httpShouldSetCookies,
122 |               let url = request.url else {
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/cURLHelper.swift:143:44: error: value of type 'URLSession' (aka 'AnyObject') has no member 'configuration'
141 |     ///   - components: components array.
142 |     private static func addHeaders(for request: URLRequest, whenIn client: HTTPClient, into components: inout [String]) {
143 |         let configuration = client.session.configuration
    |                                            `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'configuration'
144 |         var headers = HTTPHeaders()
145 |
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/Stub Matchers/HTTPStubMatcher.swift:43:27: error: cannot find type 'URLRequest' in scope
41 |     ///   - request: request instance received.
42 |     ///   - source: source of data.
43 |     func matches(request: URLRequest, for source: HTTPMatcherSource) -> Bool
   |                           `- error: cannot find type 'URLRequest' in scope
44 |
45 | }
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/HTTPStubIgnoreRule.swift:83:41: error: cannot find type 'URLRequest' in scope
81 |     // MARK: - Internal Functions
82 |
83 |     internal func matches(_ urlRequest: URLRequest) -> Bool {
   |                                         `- error: cannot find type 'URLRequest' in scope
84 |         for matcher in matchers {
85 |             if matcher.matches(request: urlRequest, for: self) == false {
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/Stub Matchers/Built-In Matchers/HTTPStubBodyMatcher.swift:41:34: error: cannot find type 'URLRequest' in scope
39 |     // MARK: - Conformance
40 |
41 |     public func matches(request: URLRequest, for source: HTTPMatcherSource) -> Bool {
   |                                  `- error: cannot find type 'URLRequest' in scope
42 |         guard let data = request.body else {
43 |             return false
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/Stub Matchers/Built-In Matchers/HTTPStubCustomMatcher.swift:22:33: error: cannot find type 'URLRequest' in scope
20 |
21 | public struct HTTPStubCustomMatcher: HTTPStubMatcher {
22 |     public typealias Handler = (URLRequest, HTTPMatcherSource) -> Bool
   |                                 `- error: cannot find type 'URLRequest' in scope
23 |
24 |     // MARK: - Private Properties
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/Stub Matchers/Built-In Matchers/HTTPStubCustomMatcher.swift:33:29: error: @escaping attribute only applies to function types
31 |     ///
32 |     /// - Parameter callback: callback to call.
33 |     public init(_ callback: @escaping Handler) {
   |                             `- error: @escaping attribute only applies to function types
34 |         self.callback = callback
35 |     }
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/Stub Matchers/Built-In Matchers/HTTPStubCustomMatcher.swift:39:34: error: cannot find type 'URLRequest' in scope
37 |     // MARK: - Protocol
38 |
39 |     public func matches(request: URLRequest, for source: HTTPMatcherSource) -> Bool {
   |                                  `- error: cannot find type 'URLRequest' in scope
40 |         callback(request, source)
41 |     }
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/Stub Matchers/Built-In Matchers/HTTPStubJSONMatcher.swift:56:34: error: cannot find type 'URLRequest' in scope
54 |     // MARK: - Conformance
55 |
56 |     public func matches(request: URLRequest, for source: HTTPMatcherSource) -> Bool {
   |                                  `- error: cannot find type 'URLRequest' in scope
57 |         guard let data = request.body,
58 |               let decodedObject = try? self.decoder.decode(T.self, from: data) else {
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/Stub Matchers/Built-In Matchers/HTTPStubRegExMatcher.swift:50:34: error: cannot find type 'URLRequest' in scope
48 |     // MARK: - Conformances
49 |
50 |     public func matches(request: URLRequest, for source: HTTPMatcherSource) -> Bool {
   |                                  `- error: cannot find type 'URLRequest' in scope
51 |         switch location {
52 |         case .url:
[72/80] Compiling RealHTTP HTTPMetricsRender.swift
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Metrics/Renders/HTTPMetrics+Console.swift:194:11: error: cannot find type 'URLSessionTaskMetrics' in scope
192 | // MARK: - URLSessionTaskMetrics.ResourceFetchType Extension
193 |
194 | extension URLSessionTaskMetrics.ResourceFetchType {
    |           `- error: cannot find type 'URLSessionTaskMetrics' in scope
195 |
196 |     var name: String {
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Metrics/Renders/HTTPMetrics+Console.swift:69:43: error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'taskIdentifier'
 67 |         var buffer: [String] = []
 68 |
 69 |         let taskIdentifier = (stats.task?.taskIdentifier != nil ? "\(stats.task!.taskIdentifier)" : "-")
    |                                           `- error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'taskIdentifier'
 70 |         buffer.append("Task ID: \(taskIdentifier) lifetime: \(stats.elapsedInterval.milliseconds) redirects: \(stats.countRedirects)")
 71 |
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Metrics/Renders/HTTPMetrics+Console.swift:69:82: error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'taskIdentifier'
 67 |         var buffer: [String] = []
 68 |
 69 |         let taskIdentifier = (stats.task?.taskIdentifier != nil ? "\(stats.task!.taskIdentifier)" : "-")
    |                                                                                  `- error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'taskIdentifier'
 70 |         buffer.append("Task ID: \(taskIdentifier) lifetime: \(stats.elapsedInterval.milliseconds) redirects: \(stats.countRedirects)")
 71 |
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Metrics/HTTPMetrics.swift:97:40: error: cannot find type 'URLSessionTaskTransactionMetrics' in scope
 95 |
 96 |         /// Underlying transaction metrics.
 97 |         public let transactionMetrics: URLSessionTaskTransactionMetrics
    |                                        `- error: cannot find type 'URLSessionTaskTransactionMetrics' in scope
 98 |
 99 |         /// The transaction request.
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/cURLHelper.swift:63:54: error: cannot find type 'URLRequest' in scope
 61 | public struct cURLHelper {
 62 |
 63 |     fileprivate static func cURLDescription(request: URLRequest?, client: HTTPClient?) -> String {
    |                                                      `- error: cannot find type 'URLRequest' in scope
 64 |         guard let client = client,
 65 |               let request = request,
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/cURLHelper.swift:92:53: error: cannot find type 'URLRequest' in scope
 90 |     ///   - client: where the request is running in.
 91 |     ///   - components: components array.
 92 |     private static func addCredentials(for request: URLRequest, whenIn client: HTTPClient, into components: inout [String]) {
    |                                                     `- error: cannot find type 'URLRequest' in scope
 93 |         guard let credentialStorage = client.session.configuration.urlCredentialStorage,
 94 |               let url = request.url,
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/cURLHelper.swift:119:52: error: cannot find type 'URLRequest' in scope
117 |     ///   - client: where the request is running in.
118 |     ///   - components: components array.
119 |     private static func addSetCookies(for request: URLRequest, whenIn client: HTTPClient, into components: inout [String]) {
    |                                                    `- error: cannot find type 'URLRequest' in scope
120 |         let configuration = client.session.configuration
121 |         guard configuration.httpShouldSetCookies,
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/cURLHelper.swift:142:49: error: cannot find type 'URLRequest' in scope
140 |     ///   - client: where the request is running in.
141 |     ///   - components: components array.
142 |     private static func addHeaders(for request: URLRequest, whenIn client: HTTPClient, into components: inout [String]) {
    |                                                 `- error: cannot find type 'URLRequest' in scope
143 |         let configuration = client.session.configuration
144 |         var headers = HTTPHeaders()
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/cURLHelper.swift:166:46: error: cannot find type 'URLRequest' in scope
164 |     ///   - client: where the request is running in.
165 |     ///   - components: components array.
166 |     private static func addBody(for request: URLRequest, whenIn client: HTTPClient, into components: inout [String]) {
    |                                              `- error: cannot find type 'URLRequest' in scope
167 |         if let httpBodyData = request.httpBody {
168 |             let httpBody = String(decoding: httpBodyData, as: UTF8.self)
/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPRequest/HTTPRequest.swift:451:76: error: cannot find type 'URLRequest' in scope
449 |     /// - Parameter client: client instance.
450 |     /// - Returns: `URLRequest`
451 |     internal func urlRequest(inClient client: HTTPClient?) async throws -> URLRequest {
    |                                                                            `- error: cannot find type 'URLRequest' in scope
452 |         guard let client = client,
453 |               let fullURL = urlComponents.fullURLInClient(client) else {
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/cURLHelper.swift:52:67: error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'originalRequest'
 50 |     /// - Returns: String
 51 |     public func cURLDescription() -> String {
 52 |         cURLHelper.cURLDescription(request: request?.sessionTask?.originalRequest, client: request?.client)
    |                                                                   `- error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'originalRequest'
 53 |     }
 54 |
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/cURLHelper.swift:93:54: error: value of type 'URLSession' (aka 'AnyObject') has no member 'configuration'
 91 |     ///   - components: components array.
 92 |     private static func addCredentials(for request: URLRequest, whenIn client: HTTPClient, into components: inout [String]) {
 93 |         guard let credentialStorage = client.session.configuration.urlCredentialStorage,
    |                                                      `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'configuration'
 94 |               let url = request.url,
 95 |               let host = url.host else {
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/cURLHelper.swift:103:72: error: cannot find 'NSURLAuthenticationMethodHTTPBasic' in scope
101 |                                                  protocol: url.scheme,
102 |                                                  realm: host,
103 |                                                  authenticationMethod: NSURLAuthenticationMethodHTTPBasic)
    |                                                                        `- error: cannot find 'NSURLAuthenticationMethodHTTPBasic' in scope
104 |
105 |         if let credentials = credentialStorage.credentials(for: protectionSpace)?.values {
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/cURLHelper.swift:99:31: error: 'URLProtectionSpace' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 97 |               }
 98 |
 99 |         let protectionSpace = URLProtectionSpace(host: host,
    |                               `- error: 'URLProtectionSpace' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
100 |                                                  port: url.port ?? 0,
101 |                                                  protocol: url.scheme,
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/cURLHelper.swift:120:44: error: value of type 'URLSession' (aka 'AnyObject') has no member 'configuration'
118 |     ///   - components: components array.
119 |     private static func addSetCookies(for request: URLRequest, whenIn client: HTTPClient, into components: inout [String]) {
120 |         let configuration = client.session.configuration
    |                                            `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'configuration'
121 |         guard configuration.httpShouldSetCookies,
122 |               let url = request.url else {
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/cURLHelper.swift:143:44: error: value of type 'URLSession' (aka 'AnyObject') has no member 'configuration'
141 |     ///   - components: components array.
142 |     private static func addHeaders(for request: URLRequest, whenIn client: HTTPClient, into components: inout [String]) {
143 |         let configuration = client.session.configuration
    |                                            `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'configuration'
144 |         var headers = HTTPHeaders()
145 |
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/Stub Matchers/HTTPStubMatcher.swift:43:27: error: cannot find type 'URLRequest' in scope
41 |     ///   - request: request instance received.
42 |     ///   - source: source of data.
43 |     func matches(request: URLRequest, for source: HTTPMatcherSource) -> Bool
   |                           `- error: cannot find type 'URLRequest' in scope
44 |
45 | }
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/HTTPStubIgnoreRule.swift:83:41: error: cannot find type 'URLRequest' in scope
81 |     // MARK: - Internal Functions
82 |
83 |     internal func matches(_ urlRequest: URLRequest) -> Bool {
   |                                         `- error: cannot find type 'URLRequest' in scope
84 |         for matcher in matchers {
85 |             if matcher.matches(request: urlRequest, for: self) == false {
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/Stub Matchers/Built-In Matchers/HTTPStubBodyMatcher.swift:41:34: error: cannot find type 'URLRequest' in scope
39 |     // MARK: - Conformance
40 |
41 |     public func matches(request: URLRequest, for source: HTTPMatcherSource) -> Bool {
   |                                  `- error: cannot find type 'URLRequest' in scope
42 |         guard let data = request.body else {
43 |             return false
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/Stub Matchers/Built-In Matchers/HTTPStubCustomMatcher.swift:22:33: error: cannot find type 'URLRequest' in scope
20 |
21 | public struct HTTPStubCustomMatcher: HTTPStubMatcher {
22 |     public typealias Handler = (URLRequest, HTTPMatcherSource) -> Bool
   |                                 `- error: cannot find type 'URLRequest' in scope
23 |
24 |     // MARK: - Private Properties
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/Stub Matchers/Built-In Matchers/HTTPStubCustomMatcher.swift:33:29: error: @escaping attribute only applies to function types
31 |     ///
32 |     /// - Parameter callback: callback to call.
33 |     public init(_ callback: @escaping Handler) {
   |                             `- error: @escaping attribute only applies to function types
34 |         self.callback = callback
35 |     }
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/Stub Matchers/Built-In Matchers/HTTPStubCustomMatcher.swift:39:34: error: cannot find type 'URLRequest' in scope
37 |     // MARK: - Protocol
38 |
39 |     public func matches(request: URLRequest, for source: HTTPMatcherSource) -> Bool {
   |                                  `- error: cannot find type 'URLRequest' in scope
40 |         callback(request, source)
41 |     }
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/Stub Matchers/Built-In Matchers/HTTPStubJSONMatcher.swift:56:34: error: cannot find type 'URLRequest' in scope
54 |     // MARK: - Conformance
55 |
56 |     public func matches(request: URLRequest, for source: HTTPMatcherSource) -> Bool {
   |                                  `- error: cannot find type 'URLRequest' in scope
57 |         guard let data = request.body,
58 |               let decodedObject = try? self.decoder.decode(T.self, from: data) else {
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/Stub Matchers/Built-In Matchers/HTTPStubRegExMatcher.swift:50:34: error: cannot find type 'URLRequest' in scope
48 |     // MARK: - Conformances
49 |
50 |     public func matches(request: URLRequest, for source: HTTPMatcherSource) -> Bool {
   |                                  `- error: cannot find type 'URLRequest' in scope
51 |         switch location {
52 |         case .url:
[73/80] Compiling RealHTTP URITemplate.swift
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Metrics/Renders/HTTPMetrics+Console.swift:194:11: error: cannot find type 'URLSessionTaskMetrics' in scope
192 | // MARK: - URLSessionTaskMetrics.ResourceFetchType Extension
193 |
194 | extension URLSessionTaskMetrics.ResourceFetchType {
    |           `- error: cannot find type 'URLSessionTaskMetrics' in scope
195 |
196 |     var name: String {
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Metrics/Renders/HTTPMetrics+Console.swift:69:43: error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'taskIdentifier'
 67 |         var buffer: [String] = []
 68 |
 69 |         let taskIdentifier = (stats.task?.taskIdentifier != nil ? "\(stats.task!.taskIdentifier)" : "-")
    |                                           `- error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'taskIdentifier'
 70 |         buffer.append("Task ID: \(taskIdentifier) lifetime: \(stats.elapsedInterval.milliseconds) redirects: \(stats.countRedirects)")
 71 |
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Metrics/Renders/HTTPMetrics+Console.swift:69:82: error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'taskIdentifier'
 67 |         var buffer: [String] = []
 68 |
 69 |         let taskIdentifier = (stats.task?.taskIdentifier != nil ? "\(stats.task!.taskIdentifier)" : "-")
    |                                                                                  `- error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'taskIdentifier'
 70 |         buffer.append("Task ID: \(taskIdentifier) lifetime: \(stats.elapsedInterval.milliseconds) redirects: \(stats.countRedirects)")
 71 |
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Metrics/HTTPMetrics.swift:97:40: error: cannot find type 'URLSessionTaskTransactionMetrics' in scope
 95 |
 96 |         /// Underlying transaction metrics.
 97 |         public let transactionMetrics: URLSessionTaskTransactionMetrics
    |                                        `- error: cannot find type 'URLSessionTaskTransactionMetrics' in scope
 98 |
 99 |         /// The transaction request.
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/cURLHelper.swift:63:54: error: cannot find type 'URLRequest' in scope
 61 | public struct cURLHelper {
 62 |
 63 |     fileprivate static func cURLDescription(request: URLRequest?, client: HTTPClient?) -> String {
    |                                                      `- error: cannot find type 'URLRequest' in scope
 64 |         guard let client = client,
 65 |               let request = request,
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/cURLHelper.swift:92:53: error: cannot find type 'URLRequest' in scope
 90 |     ///   - client: where the request is running in.
 91 |     ///   - components: components array.
 92 |     private static func addCredentials(for request: URLRequest, whenIn client: HTTPClient, into components: inout [String]) {
    |                                                     `- error: cannot find type 'URLRequest' in scope
 93 |         guard let credentialStorage = client.session.configuration.urlCredentialStorage,
 94 |               let url = request.url,
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/cURLHelper.swift:119:52: error: cannot find type 'URLRequest' in scope
117 |     ///   - client: where the request is running in.
118 |     ///   - components: components array.
119 |     private static func addSetCookies(for request: URLRequest, whenIn client: HTTPClient, into components: inout [String]) {
    |                                                    `- error: cannot find type 'URLRequest' in scope
120 |         let configuration = client.session.configuration
121 |         guard configuration.httpShouldSetCookies,
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/cURLHelper.swift:142:49: error: cannot find type 'URLRequest' in scope
140 |     ///   - client: where the request is running in.
141 |     ///   - components: components array.
142 |     private static func addHeaders(for request: URLRequest, whenIn client: HTTPClient, into components: inout [String]) {
    |                                                 `- error: cannot find type 'URLRequest' in scope
143 |         let configuration = client.session.configuration
144 |         var headers = HTTPHeaders()
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/cURLHelper.swift:166:46: error: cannot find type 'URLRequest' in scope
164 |     ///   - client: where the request is running in.
165 |     ///   - components: components array.
166 |     private static func addBody(for request: URLRequest, whenIn client: HTTPClient, into components: inout [String]) {
    |                                              `- error: cannot find type 'URLRequest' in scope
167 |         if let httpBodyData = request.httpBody {
168 |             let httpBody = String(decoding: httpBodyData, as: UTF8.self)
/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPRequest/HTTPRequest.swift:451:76: error: cannot find type 'URLRequest' in scope
449 |     /// - Parameter client: client instance.
450 |     /// - Returns: `URLRequest`
451 |     internal func urlRequest(inClient client: HTTPClient?) async throws -> URLRequest {
    |                                                                            `- error: cannot find type 'URLRequest' in scope
452 |         guard let client = client,
453 |               let fullURL = urlComponents.fullURLInClient(client) else {
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/cURLHelper.swift:52:67: error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'originalRequest'
 50 |     /// - Returns: String
 51 |     public func cURLDescription() -> String {
 52 |         cURLHelper.cURLDescription(request: request?.sessionTask?.originalRequest, client: request?.client)
    |                                                                   `- error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'originalRequest'
 53 |     }
 54 |
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/cURLHelper.swift:93:54: error: value of type 'URLSession' (aka 'AnyObject') has no member 'configuration'
 91 |     ///   - components: components array.
 92 |     private static func addCredentials(for request: URLRequest, whenIn client: HTTPClient, into components: inout [String]) {
 93 |         guard let credentialStorage = client.session.configuration.urlCredentialStorage,
    |                                                      `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'configuration'
 94 |               let url = request.url,
 95 |               let host = url.host else {
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/cURLHelper.swift:103:72: error: cannot find 'NSURLAuthenticationMethodHTTPBasic' in scope
101 |                                                  protocol: url.scheme,
102 |                                                  realm: host,
103 |                                                  authenticationMethod: NSURLAuthenticationMethodHTTPBasic)
    |                                                                        `- error: cannot find 'NSURLAuthenticationMethodHTTPBasic' in scope
104 |
105 |         if let credentials = credentialStorage.credentials(for: protectionSpace)?.values {
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/cURLHelper.swift:99:31: error: 'URLProtectionSpace' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 97 |               }
 98 |
 99 |         let protectionSpace = URLProtectionSpace(host: host,
    |                               `- error: 'URLProtectionSpace' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
100 |                                                  port: url.port ?? 0,
101 |                                                  protocol: url.scheme,
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/cURLHelper.swift:120:44: error: value of type 'URLSession' (aka 'AnyObject') has no member 'configuration'
118 |     ///   - components: components array.
119 |     private static func addSetCookies(for request: URLRequest, whenIn client: HTTPClient, into components: inout [String]) {
120 |         let configuration = client.session.configuration
    |                                            `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'configuration'
121 |         guard configuration.httpShouldSetCookies,
122 |               let url = request.url else {
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/cURLHelper.swift:143:44: error: value of type 'URLSession' (aka 'AnyObject') has no member 'configuration'
141 |     ///   - components: components array.
142 |     private static func addHeaders(for request: URLRequest, whenIn client: HTTPClient, into components: inout [String]) {
143 |         let configuration = client.session.configuration
    |                                            `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'configuration'
144 |         var headers = HTTPHeaders()
145 |
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/Stub Matchers/HTTPStubMatcher.swift:43:27: error: cannot find type 'URLRequest' in scope
41 |     ///   - request: request instance received.
42 |     ///   - source: source of data.
43 |     func matches(request: URLRequest, for source: HTTPMatcherSource) -> Bool
   |                           `- error: cannot find type 'URLRequest' in scope
44 |
45 | }
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/HTTPStubIgnoreRule.swift:83:41: error: cannot find type 'URLRequest' in scope
81 |     // MARK: - Internal Functions
82 |
83 |     internal func matches(_ urlRequest: URLRequest) -> Bool {
   |                                         `- error: cannot find type 'URLRequest' in scope
84 |         for matcher in matchers {
85 |             if matcher.matches(request: urlRequest, for: self) == false {
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/Stub Matchers/Built-In Matchers/HTTPStubBodyMatcher.swift:41:34: error: cannot find type 'URLRequest' in scope
39 |     // MARK: - Conformance
40 |
41 |     public func matches(request: URLRequest, for source: HTTPMatcherSource) -> Bool {
   |                                  `- error: cannot find type 'URLRequest' in scope
42 |         guard let data = request.body else {
43 |             return false
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/Stub Matchers/Built-In Matchers/HTTPStubCustomMatcher.swift:22:33: error: cannot find type 'URLRequest' in scope
20 |
21 | public struct HTTPStubCustomMatcher: HTTPStubMatcher {
22 |     public typealias Handler = (URLRequest, HTTPMatcherSource) -> Bool
   |                                 `- error: cannot find type 'URLRequest' in scope
23 |
24 |     // MARK: - Private Properties
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/Stub Matchers/Built-In Matchers/HTTPStubCustomMatcher.swift:33:29: error: @escaping attribute only applies to function types
31 |     ///
32 |     /// - Parameter callback: callback to call.
33 |     public init(_ callback: @escaping Handler) {
   |                             `- error: @escaping attribute only applies to function types
34 |         self.callback = callback
35 |     }
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/Stub Matchers/Built-In Matchers/HTTPStubCustomMatcher.swift:39:34: error: cannot find type 'URLRequest' in scope
37 |     // MARK: - Protocol
38 |
39 |     public func matches(request: URLRequest, for source: HTTPMatcherSource) -> Bool {
   |                                  `- error: cannot find type 'URLRequest' in scope
40 |         callback(request, source)
41 |     }
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/Stub Matchers/Built-In Matchers/HTTPStubJSONMatcher.swift:56:34: error: cannot find type 'URLRequest' in scope
54 |     // MARK: - Conformance
55 |
56 |     public func matches(request: URLRequest, for source: HTTPMatcherSource) -> Bool {
   |                                  `- error: cannot find type 'URLRequest' in scope
57 |         guard let data = request.body,
58 |               let decodedObject = try? self.decoder.decode(T.self, from: data) else {
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/Stub Matchers/Built-In Matchers/HTTPStubRegExMatcher.swift:50:34: error: cannot find type 'URLRequest' in scope
48 |     // MARK: - Conformances
49 |
50 |     public func matches(request: URLRequest, for source: HTTPMatcherSource) -> Bool {
   |                                  `- error: cannot find type 'URLRequest' in scope
51 |         switch location {
52 |         case .url:
[74/80] Compiling RealHTTP cURLHelper.swift
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Metrics/Renders/HTTPMetrics+Console.swift:194:11: error: cannot find type 'URLSessionTaskMetrics' in scope
192 | // MARK: - URLSessionTaskMetrics.ResourceFetchType Extension
193 |
194 | extension URLSessionTaskMetrics.ResourceFetchType {
    |           `- error: cannot find type 'URLSessionTaskMetrics' in scope
195 |
196 |     var name: String {
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Metrics/Renders/HTTPMetrics+Console.swift:69:43: error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'taskIdentifier'
 67 |         var buffer: [String] = []
 68 |
 69 |         let taskIdentifier = (stats.task?.taskIdentifier != nil ? "\(stats.task!.taskIdentifier)" : "-")
    |                                           `- error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'taskIdentifier'
 70 |         buffer.append("Task ID: \(taskIdentifier) lifetime: \(stats.elapsedInterval.milliseconds) redirects: \(stats.countRedirects)")
 71 |
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Metrics/Renders/HTTPMetrics+Console.swift:69:82: error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'taskIdentifier'
 67 |         var buffer: [String] = []
 68 |
 69 |         let taskIdentifier = (stats.task?.taskIdentifier != nil ? "\(stats.task!.taskIdentifier)" : "-")
    |                                                                                  `- error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'taskIdentifier'
 70 |         buffer.append("Task ID: \(taskIdentifier) lifetime: \(stats.elapsedInterval.milliseconds) redirects: \(stats.countRedirects)")
 71 |
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Metrics/HTTPMetrics.swift:97:40: error: cannot find type 'URLSessionTaskTransactionMetrics' in scope
 95 |
 96 |         /// Underlying transaction metrics.
 97 |         public let transactionMetrics: URLSessionTaskTransactionMetrics
    |                                        `- error: cannot find type 'URLSessionTaskTransactionMetrics' in scope
 98 |
 99 |         /// The transaction request.
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/cURLHelper.swift:63:54: error: cannot find type 'URLRequest' in scope
 61 | public struct cURLHelper {
 62 |
 63 |     fileprivate static func cURLDescription(request: URLRequest?, client: HTTPClient?) -> String {
    |                                                      `- error: cannot find type 'URLRequest' in scope
 64 |         guard let client = client,
 65 |               let request = request,
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/cURLHelper.swift:92:53: error: cannot find type 'URLRequest' in scope
 90 |     ///   - client: where the request is running in.
 91 |     ///   - components: components array.
 92 |     private static func addCredentials(for request: URLRequest, whenIn client: HTTPClient, into components: inout [String]) {
    |                                                     `- error: cannot find type 'URLRequest' in scope
 93 |         guard let credentialStorage = client.session.configuration.urlCredentialStorage,
 94 |               let url = request.url,
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/cURLHelper.swift:119:52: error: cannot find type 'URLRequest' in scope
117 |     ///   - client: where the request is running in.
118 |     ///   - components: components array.
119 |     private static func addSetCookies(for request: URLRequest, whenIn client: HTTPClient, into components: inout [String]) {
    |                                                    `- error: cannot find type 'URLRequest' in scope
120 |         let configuration = client.session.configuration
121 |         guard configuration.httpShouldSetCookies,
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/cURLHelper.swift:142:49: error: cannot find type 'URLRequest' in scope
140 |     ///   - client: where the request is running in.
141 |     ///   - components: components array.
142 |     private static func addHeaders(for request: URLRequest, whenIn client: HTTPClient, into components: inout [String]) {
    |                                                 `- error: cannot find type 'URLRequest' in scope
143 |         let configuration = client.session.configuration
144 |         var headers = HTTPHeaders()
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/cURLHelper.swift:166:46: error: cannot find type 'URLRequest' in scope
164 |     ///   - client: where the request is running in.
165 |     ///   - components: components array.
166 |     private static func addBody(for request: URLRequest, whenIn client: HTTPClient, into components: inout [String]) {
    |                                              `- error: cannot find type 'URLRequest' in scope
167 |         if let httpBodyData = request.httpBody {
168 |             let httpBody = String(decoding: httpBodyData, as: UTF8.self)
/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPRequest/HTTPRequest.swift:451:76: error: cannot find type 'URLRequest' in scope
449 |     /// - Parameter client: client instance.
450 |     /// - Returns: `URLRequest`
451 |     internal func urlRequest(inClient client: HTTPClient?) async throws -> URLRequest {
    |                                                                            `- error: cannot find type 'URLRequest' in scope
452 |         guard let client = client,
453 |               let fullURL = urlComponents.fullURLInClient(client) else {
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/cURLHelper.swift:52:67: error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'originalRequest'
 50 |     /// - Returns: String
 51 |     public func cURLDescription() -> String {
 52 |         cURLHelper.cURLDescription(request: request?.sessionTask?.originalRequest, client: request?.client)
    |                                                                   `- error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'originalRequest'
 53 |     }
 54 |
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/cURLHelper.swift:93:54: error: value of type 'URLSession' (aka 'AnyObject') has no member 'configuration'
 91 |     ///   - components: components array.
 92 |     private static func addCredentials(for request: URLRequest, whenIn client: HTTPClient, into components: inout [String]) {
 93 |         guard let credentialStorage = client.session.configuration.urlCredentialStorage,
    |                                                      `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'configuration'
 94 |               let url = request.url,
 95 |               let host = url.host else {
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/cURLHelper.swift:103:72: error: cannot find 'NSURLAuthenticationMethodHTTPBasic' in scope
101 |                                                  protocol: url.scheme,
102 |                                                  realm: host,
103 |                                                  authenticationMethod: NSURLAuthenticationMethodHTTPBasic)
    |                                                                        `- error: cannot find 'NSURLAuthenticationMethodHTTPBasic' in scope
104 |
105 |         if let credentials = credentialStorage.credentials(for: protectionSpace)?.values {
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/cURLHelper.swift:99:31: error: 'URLProtectionSpace' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 97 |               }
 98 |
 99 |         let protectionSpace = URLProtectionSpace(host: host,
    |                               `- error: 'URLProtectionSpace' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
100 |                                                  port: url.port ?? 0,
101 |                                                  protocol: url.scheme,
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/cURLHelper.swift:120:44: error: value of type 'URLSession' (aka 'AnyObject') has no member 'configuration'
118 |     ///   - components: components array.
119 |     private static func addSetCookies(for request: URLRequest, whenIn client: HTTPClient, into components: inout [String]) {
120 |         let configuration = client.session.configuration
    |                                            `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'configuration'
121 |         guard configuration.httpShouldSetCookies,
122 |               let url = request.url else {
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/cURLHelper.swift:143:44: error: value of type 'URLSession' (aka 'AnyObject') has no member 'configuration'
141 |     ///   - components: components array.
142 |     private static func addHeaders(for request: URLRequest, whenIn client: HTTPClient, into components: inout [String]) {
143 |         let configuration = client.session.configuration
    |                                            `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'configuration'
144 |         var headers = HTTPHeaders()
145 |
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/Stub Matchers/HTTPStubMatcher.swift:43:27: error: cannot find type 'URLRequest' in scope
41 |     ///   - request: request instance received.
42 |     ///   - source: source of data.
43 |     func matches(request: URLRequest, for source: HTTPMatcherSource) -> Bool
   |                           `- error: cannot find type 'URLRequest' in scope
44 |
45 | }
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/HTTPStubIgnoreRule.swift:83:41: error: cannot find type 'URLRequest' in scope
81 |     // MARK: - Internal Functions
82 |
83 |     internal func matches(_ urlRequest: URLRequest) -> Bool {
   |                                         `- error: cannot find type 'URLRequest' in scope
84 |         for matcher in matchers {
85 |             if matcher.matches(request: urlRequest, for: self) == false {
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/Stub Matchers/Built-In Matchers/HTTPStubBodyMatcher.swift:41:34: error: cannot find type 'URLRequest' in scope
39 |     // MARK: - Conformance
40 |
41 |     public func matches(request: URLRequest, for source: HTTPMatcherSource) -> Bool {
   |                                  `- error: cannot find type 'URLRequest' in scope
42 |         guard let data = request.body else {
43 |             return false
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/Stub Matchers/Built-In Matchers/HTTPStubCustomMatcher.swift:22:33: error: cannot find type 'URLRequest' in scope
20 |
21 | public struct HTTPStubCustomMatcher: HTTPStubMatcher {
22 |     public typealias Handler = (URLRequest, HTTPMatcherSource) -> Bool
   |                                 `- error: cannot find type 'URLRequest' in scope
23 |
24 |     // MARK: - Private Properties
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/Stub Matchers/Built-In Matchers/HTTPStubCustomMatcher.swift:33:29: error: @escaping attribute only applies to function types
31 |     ///
32 |     /// - Parameter callback: callback to call.
33 |     public init(_ callback: @escaping Handler) {
   |                             `- error: @escaping attribute only applies to function types
34 |         self.callback = callback
35 |     }
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/Stub Matchers/Built-In Matchers/HTTPStubCustomMatcher.swift:39:34: error: cannot find type 'URLRequest' in scope
37 |     // MARK: - Protocol
38 |
39 |     public func matches(request: URLRequest, for source: HTTPMatcherSource) -> Bool {
   |                                  `- error: cannot find type 'URLRequest' in scope
40 |         callback(request, source)
41 |     }
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/Stub Matchers/Built-In Matchers/HTTPStubJSONMatcher.swift:56:34: error: cannot find type 'URLRequest' in scope
54 |     // MARK: - Conformance
55 |
56 |     public func matches(request: URLRequest, for source: HTTPMatcherSource) -> Bool {
   |                                  `- error: cannot find type 'URLRequest' in scope
57 |         guard let data = request.body,
58 |               let decodedObject = try? self.decoder.decode(T.self, from: data) else {
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/Stub Matchers/Built-In Matchers/HTTPStubRegExMatcher.swift:50:34: error: cannot find type 'URLRequest' in scope
48 |     // MARK: - Conformances
49 |
50 |     public func matches(request: URLRequest, for source: HTTPMatcherSource) -> Bool {
   |                                  `- error: cannot find type 'URLRequest' in scope
51 |         switch location {
52 |         case .url:
[75/80] Compiling RealHTTP RealHTTP.swift
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Metrics/Renders/HTTPMetrics+Console.swift:194:11: error: cannot find type 'URLSessionTaskMetrics' in scope
192 | // MARK: - URLSessionTaskMetrics.ResourceFetchType Extension
193 |
194 | extension URLSessionTaskMetrics.ResourceFetchType {
    |           `- error: cannot find type 'URLSessionTaskMetrics' in scope
195 |
196 |     var name: String {
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Metrics/Renders/HTTPMetrics+Console.swift:69:43: error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'taskIdentifier'
 67 |         var buffer: [String] = []
 68 |
 69 |         let taskIdentifier = (stats.task?.taskIdentifier != nil ? "\(stats.task!.taskIdentifier)" : "-")
    |                                           `- error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'taskIdentifier'
 70 |         buffer.append("Task ID: \(taskIdentifier) lifetime: \(stats.elapsedInterval.milliseconds) redirects: \(stats.countRedirects)")
 71 |
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Metrics/Renders/HTTPMetrics+Console.swift:69:82: error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'taskIdentifier'
 67 |         var buffer: [String] = []
 68 |
 69 |         let taskIdentifier = (stats.task?.taskIdentifier != nil ? "\(stats.task!.taskIdentifier)" : "-")
    |                                                                                  `- error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'taskIdentifier'
 70 |         buffer.append("Task ID: \(taskIdentifier) lifetime: \(stats.elapsedInterval.milliseconds) redirects: \(stats.countRedirects)")
 71 |
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Metrics/HTTPMetrics.swift:97:40: error: cannot find type 'URLSessionTaskTransactionMetrics' in scope
 95 |
 96 |         /// Underlying transaction metrics.
 97 |         public let transactionMetrics: URLSessionTaskTransactionMetrics
    |                                        `- error: cannot find type 'URLSessionTaskTransactionMetrics' in scope
 98 |
 99 |         /// The transaction request.
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/cURLHelper.swift:63:54: error: cannot find type 'URLRequest' in scope
 61 | public struct cURLHelper {
 62 |
 63 |     fileprivate static func cURLDescription(request: URLRequest?, client: HTTPClient?) -> String {
    |                                                      `- error: cannot find type 'URLRequest' in scope
 64 |         guard let client = client,
 65 |               let request = request,
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/cURLHelper.swift:92:53: error: cannot find type 'URLRequest' in scope
 90 |     ///   - client: where the request is running in.
 91 |     ///   - components: components array.
 92 |     private static func addCredentials(for request: URLRequest, whenIn client: HTTPClient, into components: inout [String]) {
    |                                                     `- error: cannot find type 'URLRequest' in scope
 93 |         guard let credentialStorage = client.session.configuration.urlCredentialStorage,
 94 |               let url = request.url,
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/cURLHelper.swift:119:52: error: cannot find type 'URLRequest' in scope
117 |     ///   - client: where the request is running in.
118 |     ///   - components: components array.
119 |     private static func addSetCookies(for request: URLRequest, whenIn client: HTTPClient, into components: inout [String]) {
    |                                                    `- error: cannot find type 'URLRequest' in scope
120 |         let configuration = client.session.configuration
121 |         guard configuration.httpShouldSetCookies,
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/cURLHelper.swift:142:49: error: cannot find type 'URLRequest' in scope
140 |     ///   - client: where the request is running in.
141 |     ///   - components: components array.
142 |     private static func addHeaders(for request: URLRequest, whenIn client: HTTPClient, into components: inout [String]) {
    |                                                 `- error: cannot find type 'URLRequest' in scope
143 |         let configuration = client.session.configuration
144 |         var headers = HTTPHeaders()
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/cURLHelper.swift:166:46: error: cannot find type 'URLRequest' in scope
164 |     ///   - client: where the request is running in.
165 |     ///   - components: components array.
166 |     private static func addBody(for request: URLRequest, whenIn client: HTTPClient, into components: inout [String]) {
    |                                              `- error: cannot find type 'URLRequest' in scope
167 |         if let httpBodyData = request.httpBody {
168 |             let httpBody = String(decoding: httpBodyData, as: UTF8.self)
/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPRequest/HTTPRequest.swift:451:76: error: cannot find type 'URLRequest' in scope
449 |     /// - Parameter client: client instance.
450 |     /// - Returns: `URLRequest`
451 |     internal func urlRequest(inClient client: HTTPClient?) async throws -> URLRequest {
    |                                                                            `- error: cannot find type 'URLRequest' in scope
452 |         guard let client = client,
453 |               let fullURL = urlComponents.fullURLInClient(client) else {
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/cURLHelper.swift:52:67: error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'originalRequest'
 50 |     /// - Returns: String
 51 |     public func cURLDescription() -> String {
 52 |         cURLHelper.cURLDescription(request: request?.sessionTask?.originalRequest, client: request?.client)
    |                                                                   `- error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'originalRequest'
 53 |     }
 54 |
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/cURLHelper.swift:93:54: error: value of type 'URLSession' (aka 'AnyObject') has no member 'configuration'
 91 |     ///   - components: components array.
 92 |     private static func addCredentials(for request: URLRequest, whenIn client: HTTPClient, into components: inout [String]) {
 93 |         guard let credentialStorage = client.session.configuration.urlCredentialStorage,
    |                                                      `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'configuration'
 94 |               let url = request.url,
 95 |               let host = url.host else {
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/cURLHelper.swift:103:72: error: cannot find 'NSURLAuthenticationMethodHTTPBasic' in scope
101 |                                                  protocol: url.scheme,
102 |                                                  realm: host,
103 |                                                  authenticationMethod: NSURLAuthenticationMethodHTTPBasic)
    |                                                                        `- error: cannot find 'NSURLAuthenticationMethodHTTPBasic' in scope
104 |
105 |         if let credentials = credentialStorage.credentials(for: protectionSpace)?.values {
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/cURLHelper.swift:99:31: error: 'URLProtectionSpace' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 97 |               }
 98 |
 99 |         let protectionSpace = URLProtectionSpace(host: host,
    |                               `- error: 'URLProtectionSpace' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
100 |                                                  port: url.port ?? 0,
101 |                                                  protocol: url.scheme,
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/cURLHelper.swift:120:44: error: value of type 'URLSession' (aka 'AnyObject') has no member 'configuration'
118 |     ///   - components: components array.
119 |     private static func addSetCookies(for request: URLRequest, whenIn client: HTTPClient, into components: inout [String]) {
120 |         let configuration = client.session.configuration
    |                                            `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'configuration'
121 |         guard configuration.httpShouldSetCookies,
122 |               let url = request.url else {
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/cURLHelper.swift:143:44: error: value of type 'URLSession' (aka 'AnyObject') has no member 'configuration'
141 |     ///   - components: components array.
142 |     private static func addHeaders(for request: URLRequest, whenIn client: HTTPClient, into components: inout [String]) {
143 |         let configuration = client.session.configuration
    |                                            `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'configuration'
144 |         var headers = HTTPHeaders()
145 |
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/Stub Matchers/HTTPStubMatcher.swift:43:27: error: cannot find type 'URLRequest' in scope
41 |     ///   - request: request instance received.
42 |     ///   - source: source of data.
43 |     func matches(request: URLRequest, for source: HTTPMatcherSource) -> Bool
   |                           `- error: cannot find type 'URLRequest' in scope
44 |
45 | }
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/HTTPStubIgnoreRule.swift:83:41: error: cannot find type 'URLRequest' in scope
81 |     // MARK: - Internal Functions
82 |
83 |     internal func matches(_ urlRequest: URLRequest) -> Bool {
   |                                         `- error: cannot find type 'URLRequest' in scope
84 |         for matcher in matchers {
85 |             if matcher.matches(request: urlRequest, for: self) == false {
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/Stub Matchers/Built-In Matchers/HTTPStubBodyMatcher.swift:41:34: error: cannot find type 'URLRequest' in scope
39 |     // MARK: - Conformance
40 |
41 |     public func matches(request: URLRequest, for source: HTTPMatcherSource) -> Bool {
   |                                  `- error: cannot find type 'URLRequest' in scope
42 |         guard let data = request.body else {
43 |             return false
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/Stub Matchers/Built-In Matchers/HTTPStubCustomMatcher.swift:22:33: error: cannot find type 'URLRequest' in scope
20 |
21 | public struct HTTPStubCustomMatcher: HTTPStubMatcher {
22 |     public typealias Handler = (URLRequest, HTTPMatcherSource) -> Bool
   |                                 `- error: cannot find type 'URLRequest' in scope
23 |
24 |     // MARK: - Private Properties
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/Stub Matchers/Built-In Matchers/HTTPStubCustomMatcher.swift:33:29: error: @escaping attribute only applies to function types
31 |     ///
32 |     /// - Parameter callback: callback to call.
33 |     public init(_ callback: @escaping Handler) {
   |                             `- error: @escaping attribute only applies to function types
34 |         self.callback = callback
35 |     }
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/Stub Matchers/Built-In Matchers/HTTPStubCustomMatcher.swift:39:34: error: cannot find type 'URLRequest' in scope
37 |     // MARK: - Protocol
38 |
39 |     public func matches(request: URLRequest, for source: HTTPMatcherSource) -> Bool {
   |                                  `- error: cannot find type 'URLRequest' in scope
40 |         callback(request, source)
41 |     }
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/Stub Matchers/Built-In Matchers/HTTPStubJSONMatcher.swift:56:34: error: cannot find type 'URLRequest' in scope
54 |     // MARK: - Conformance
55 |
56 |     public func matches(request: URLRequest, for source: HTTPMatcherSource) -> Bool {
   |                                  `- error: cannot find type 'URLRequest' in scope
57 |         guard let data = request.body,
58 |               let decodedObject = try? self.decoder.decode(T.self, from: data) else {
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/Stub Matchers/Built-In Matchers/HTTPStubRegExMatcher.swift:50:34: error: cannot find type 'URLRequest' in scope
48 |     // MARK: - Conformances
49 |
50 |     public func matches(request: URLRequest, for source: HTTPMatcherSource) -> Bool {
   |                                  `- error: cannot find type 'URLRequest' in scope
51 |         switch location {
52 |         case .url:
[76/80] Compiling RealHTTP HTTPStubIgnoreRule.swift
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Metrics/Renders/HTTPMetrics+Console.swift:194:11: error: cannot find type 'URLSessionTaskMetrics' in scope
192 | // MARK: - URLSessionTaskMetrics.ResourceFetchType Extension
193 |
194 | extension URLSessionTaskMetrics.ResourceFetchType {
    |           `- error: cannot find type 'URLSessionTaskMetrics' in scope
195 |
196 |     var name: String {
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Metrics/Renders/HTTPMetrics+Console.swift:69:43: error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'taskIdentifier'
 67 |         var buffer: [String] = []
 68 |
 69 |         let taskIdentifier = (stats.task?.taskIdentifier != nil ? "\(stats.task!.taskIdentifier)" : "-")
    |                                           `- error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'taskIdentifier'
 70 |         buffer.append("Task ID: \(taskIdentifier) lifetime: \(stats.elapsedInterval.milliseconds) redirects: \(stats.countRedirects)")
 71 |
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Metrics/Renders/HTTPMetrics+Console.swift:69:82: error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'taskIdentifier'
 67 |         var buffer: [String] = []
 68 |
 69 |         let taskIdentifier = (stats.task?.taskIdentifier != nil ? "\(stats.task!.taskIdentifier)" : "-")
    |                                                                                  `- error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'taskIdentifier'
 70 |         buffer.append("Task ID: \(taskIdentifier) lifetime: \(stats.elapsedInterval.milliseconds) redirects: \(stats.countRedirects)")
 71 |
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Metrics/HTTPMetrics.swift:97:40: error: cannot find type 'URLSessionTaskTransactionMetrics' in scope
 95 |
 96 |         /// Underlying transaction metrics.
 97 |         public let transactionMetrics: URLSessionTaskTransactionMetrics
    |                                        `- error: cannot find type 'URLSessionTaskTransactionMetrics' in scope
 98 |
 99 |         /// The transaction request.
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/cURLHelper.swift:63:54: error: cannot find type 'URLRequest' in scope
 61 | public struct cURLHelper {
 62 |
 63 |     fileprivate static func cURLDescription(request: URLRequest?, client: HTTPClient?) -> String {
    |                                                      `- error: cannot find type 'URLRequest' in scope
 64 |         guard let client = client,
 65 |               let request = request,
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/cURLHelper.swift:92:53: error: cannot find type 'URLRequest' in scope
 90 |     ///   - client: where the request is running in.
 91 |     ///   - components: components array.
 92 |     private static func addCredentials(for request: URLRequest, whenIn client: HTTPClient, into components: inout [String]) {
    |                                                     `- error: cannot find type 'URLRequest' in scope
 93 |         guard let credentialStorage = client.session.configuration.urlCredentialStorage,
 94 |               let url = request.url,
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/cURLHelper.swift:119:52: error: cannot find type 'URLRequest' in scope
117 |     ///   - client: where the request is running in.
118 |     ///   - components: components array.
119 |     private static func addSetCookies(for request: URLRequest, whenIn client: HTTPClient, into components: inout [String]) {
    |                                                    `- error: cannot find type 'URLRequest' in scope
120 |         let configuration = client.session.configuration
121 |         guard configuration.httpShouldSetCookies,
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/cURLHelper.swift:142:49: error: cannot find type 'URLRequest' in scope
140 |     ///   - client: where the request is running in.
141 |     ///   - components: components array.
142 |     private static func addHeaders(for request: URLRequest, whenIn client: HTTPClient, into components: inout [String]) {
    |                                                 `- error: cannot find type 'URLRequest' in scope
143 |         let configuration = client.session.configuration
144 |         var headers = HTTPHeaders()
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/cURLHelper.swift:166:46: error: cannot find type 'URLRequest' in scope
164 |     ///   - client: where the request is running in.
165 |     ///   - components: components array.
166 |     private static func addBody(for request: URLRequest, whenIn client: HTTPClient, into components: inout [String]) {
    |                                              `- error: cannot find type 'URLRequest' in scope
167 |         if let httpBodyData = request.httpBody {
168 |             let httpBody = String(decoding: httpBodyData, as: UTF8.self)
/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPRequest/HTTPRequest.swift:451:76: error: cannot find type 'URLRequest' in scope
449 |     /// - Parameter client: client instance.
450 |     /// - Returns: `URLRequest`
451 |     internal func urlRequest(inClient client: HTTPClient?) async throws -> URLRequest {
    |                                                                            `- error: cannot find type 'URLRequest' in scope
452 |         guard let client = client,
453 |               let fullURL = urlComponents.fullURLInClient(client) else {
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/cURLHelper.swift:52:67: error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'originalRequest'
 50 |     /// - Returns: String
 51 |     public func cURLDescription() -> String {
 52 |         cURLHelper.cURLDescription(request: request?.sessionTask?.originalRequest, client: request?.client)
    |                                                                   `- error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'originalRequest'
 53 |     }
 54 |
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/cURLHelper.swift:93:54: error: value of type 'URLSession' (aka 'AnyObject') has no member 'configuration'
 91 |     ///   - components: components array.
 92 |     private static func addCredentials(for request: URLRequest, whenIn client: HTTPClient, into components: inout [String]) {
 93 |         guard let credentialStorage = client.session.configuration.urlCredentialStorage,
    |                                                      `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'configuration'
 94 |               let url = request.url,
 95 |               let host = url.host else {
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/cURLHelper.swift:103:72: error: cannot find 'NSURLAuthenticationMethodHTTPBasic' in scope
101 |                                                  protocol: url.scheme,
102 |                                                  realm: host,
103 |                                                  authenticationMethod: NSURLAuthenticationMethodHTTPBasic)
    |                                                                        `- error: cannot find 'NSURLAuthenticationMethodHTTPBasic' in scope
104 |
105 |         if let credentials = credentialStorage.credentials(for: protectionSpace)?.values {
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/cURLHelper.swift:99:31: error: 'URLProtectionSpace' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 97 |               }
 98 |
 99 |         let protectionSpace = URLProtectionSpace(host: host,
    |                               `- error: 'URLProtectionSpace' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
100 |                                                  port: url.port ?? 0,
101 |                                                  protocol: url.scheme,
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/cURLHelper.swift:120:44: error: value of type 'URLSession' (aka 'AnyObject') has no member 'configuration'
118 |     ///   - components: components array.
119 |     private static func addSetCookies(for request: URLRequest, whenIn client: HTTPClient, into components: inout [String]) {
120 |         let configuration = client.session.configuration
    |                                            `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'configuration'
121 |         guard configuration.httpShouldSetCookies,
122 |               let url = request.url else {
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/cURLHelper.swift:143:44: error: value of type 'URLSession' (aka 'AnyObject') has no member 'configuration'
141 |     ///   - components: components array.
142 |     private static func addHeaders(for request: URLRequest, whenIn client: HTTPClient, into components: inout [String]) {
143 |         let configuration = client.session.configuration
    |                                            `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'configuration'
144 |         var headers = HTTPHeaders()
145 |
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/Stub Matchers/HTTPStubMatcher.swift:43:27: error: cannot find type 'URLRequest' in scope
41 |     ///   - request: request instance received.
42 |     ///   - source: source of data.
43 |     func matches(request: URLRequest, for source: HTTPMatcherSource) -> Bool
   |                           `- error: cannot find type 'URLRequest' in scope
44 |
45 | }
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/HTTPStubIgnoreRule.swift:83:41: error: cannot find type 'URLRequest' in scope
81 |     // MARK: - Internal Functions
82 |
83 |     internal func matches(_ urlRequest: URLRequest) -> Bool {
   |                                         `- error: cannot find type 'URLRequest' in scope
84 |         for matcher in matchers {
85 |             if matcher.matches(request: urlRequest, for: self) == false {
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/Stub Matchers/Built-In Matchers/HTTPStubBodyMatcher.swift:41:34: error: cannot find type 'URLRequest' in scope
39 |     // MARK: - Conformance
40 |
41 |     public func matches(request: URLRequest, for source: HTTPMatcherSource) -> Bool {
   |                                  `- error: cannot find type 'URLRequest' in scope
42 |         guard let data = request.body else {
43 |             return false
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/Stub Matchers/Built-In Matchers/HTTPStubCustomMatcher.swift:22:33: error: cannot find type 'URLRequest' in scope
20 |
21 | public struct HTTPStubCustomMatcher: HTTPStubMatcher {
22 |     public typealias Handler = (URLRequest, HTTPMatcherSource) -> Bool
   |                                 `- error: cannot find type 'URLRequest' in scope
23 |
24 |     // MARK: - Private Properties
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/Stub Matchers/Built-In Matchers/HTTPStubCustomMatcher.swift:33:29: error: @escaping attribute only applies to function types
31 |     ///
32 |     /// - Parameter callback: callback to call.
33 |     public init(_ callback: @escaping Handler) {
   |                             `- error: @escaping attribute only applies to function types
34 |         self.callback = callback
35 |     }
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/Stub Matchers/Built-In Matchers/HTTPStubCustomMatcher.swift:39:34: error: cannot find type 'URLRequest' in scope
37 |     // MARK: - Protocol
38 |
39 |     public func matches(request: URLRequest, for source: HTTPMatcherSource) -> Bool {
   |                                  `- error: cannot find type 'URLRequest' in scope
40 |         callback(request, source)
41 |     }
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/Stub Matchers/Built-In Matchers/HTTPStubJSONMatcher.swift:56:34: error: cannot find type 'URLRequest' in scope
54 |     // MARK: - Conformance
55 |
56 |     public func matches(request: URLRequest, for source: HTTPMatcherSource) -> Bool {
   |                                  `- error: cannot find type 'URLRequest' in scope
57 |         guard let data = request.body,
58 |               let decodedObject = try? self.decoder.decode(T.self, from: data) else {
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/Stub Matchers/Built-In Matchers/HTTPStubRegExMatcher.swift:50:34: error: cannot find type 'URLRequest' in scope
48 |     // MARK: - Conformances
49 |
50 |     public func matches(request: URLRequest, for source: HTTPMatcherSource) -> Bool {
   |                                  `- error: cannot find type 'URLRequest' in scope
51 |         switch location {
52 |         case .url:
[77/80] Compiling RealHTTP HTTPStubBodyMatcher.swift
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Metrics/Renders/HTTPMetrics+Console.swift:194:11: error: cannot find type 'URLSessionTaskMetrics' in scope
192 | // MARK: - URLSessionTaskMetrics.ResourceFetchType Extension
193 |
194 | extension URLSessionTaskMetrics.ResourceFetchType {
    |           `- error: cannot find type 'URLSessionTaskMetrics' in scope
195 |
196 |     var name: String {
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Metrics/Renders/HTTPMetrics+Console.swift:69:43: error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'taskIdentifier'
 67 |         var buffer: [String] = []
 68 |
 69 |         let taskIdentifier = (stats.task?.taskIdentifier != nil ? "\(stats.task!.taskIdentifier)" : "-")
    |                                           `- error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'taskIdentifier'
 70 |         buffer.append("Task ID: \(taskIdentifier) lifetime: \(stats.elapsedInterval.milliseconds) redirects: \(stats.countRedirects)")
 71 |
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Metrics/Renders/HTTPMetrics+Console.swift:69:82: error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'taskIdentifier'
 67 |         var buffer: [String] = []
 68 |
 69 |         let taskIdentifier = (stats.task?.taskIdentifier != nil ? "\(stats.task!.taskIdentifier)" : "-")
    |                                                                                  `- error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'taskIdentifier'
 70 |         buffer.append("Task ID: \(taskIdentifier) lifetime: \(stats.elapsedInterval.milliseconds) redirects: \(stats.countRedirects)")
 71 |
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Metrics/HTTPMetrics.swift:97:40: error: cannot find type 'URLSessionTaskTransactionMetrics' in scope
 95 |
 96 |         /// Underlying transaction metrics.
 97 |         public let transactionMetrics: URLSessionTaskTransactionMetrics
    |                                        `- error: cannot find type 'URLSessionTaskTransactionMetrics' in scope
 98 |
 99 |         /// The transaction request.
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/cURLHelper.swift:63:54: error: cannot find type 'URLRequest' in scope
 61 | public struct cURLHelper {
 62 |
 63 |     fileprivate static func cURLDescription(request: URLRequest?, client: HTTPClient?) -> String {
    |                                                      `- error: cannot find type 'URLRequest' in scope
 64 |         guard let client = client,
 65 |               let request = request,
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/cURLHelper.swift:92:53: error: cannot find type 'URLRequest' in scope
 90 |     ///   - client: where the request is running in.
 91 |     ///   - components: components array.
 92 |     private static func addCredentials(for request: URLRequest, whenIn client: HTTPClient, into components: inout [String]) {
    |                                                     `- error: cannot find type 'URLRequest' in scope
 93 |         guard let credentialStorage = client.session.configuration.urlCredentialStorage,
 94 |               let url = request.url,
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/cURLHelper.swift:119:52: error: cannot find type 'URLRequest' in scope
117 |     ///   - client: where the request is running in.
118 |     ///   - components: components array.
119 |     private static func addSetCookies(for request: URLRequest, whenIn client: HTTPClient, into components: inout [String]) {
    |                                                    `- error: cannot find type 'URLRequest' in scope
120 |         let configuration = client.session.configuration
121 |         guard configuration.httpShouldSetCookies,
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/cURLHelper.swift:142:49: error: cannot find type 'URLRequest' in scope
140 |     ///   - client: where the request is running in.
141 |     ///   - components: components array.
142 |     private static func addHeaders(for request: URLRequest, whenIn client: HTTPClient, into components: inout [String]) {
    |                                                 `- error: cannot find type 'URLRequest' in scope
143 |         let configuration = client.session.configuration
144 |         var headers = HTTPHeaders()
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/cURLHelper.swift:166:46: error: cannot find type 'URLRequest' in scope
164 |     ///   - client: where the request is running in.
165 |     ///   - components: components array.
166 |     private static func addBody(for request: URLRequest, whenIn client: HTTPClient, into components: inout [String]) {
    |                                              `- error: cannot find type 'URLRequest' in scope
167 |         if let httpBodyData = request.httpBody {
168 |             let httpBody = String(decoding: httpBodyData, as: UTF8.self)
/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPRequest/HTTPRequest.swift:451:76: error: cannot find type 'URLRequest' in scope
449 |     /// - Parameter client: client instance.
450 |     /// - Returns: `URLRequest`
451 |     internal func urlRequest(inClient client: HTTPClient?) async throws -> URLRequest {
    |                                                                            `- error: cannot find type 'URLRequest' in scope
452 |         guard let client = client,
453 |               let fullURL = urlComponents.fullURLInClient(client) else {
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/cURLHelper.swift:52:67: error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'originalRequest'
 50 |     /// - Returns: String
 51 |     public func cURLDescription() -> String {
 52 |         cURLHelper.cURLDescription(request: request?.sessionTask?.originalRequest, client: request?.client)
    |                                                                   `- error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'originalRequest'
 53 |     }
 54 |
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/cURLHelper.swift:93:54: error: value of type 'URLSession' (aka 'AnyObject') has no member 'configuration'
 91 |     ///   - components: components array.
 92 |     private static func addCredentials(for request: URLRequest, whenIn client: HTTPClient, into components: inout [String]) {
 93 |         guard let credentialStorage = client.session.configuration.urlCredentialStorage,
    |                                                      `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'configuration'
 94 |               let url = request.url,
 95 |               let host = url.host else {
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/cURLHelper.swift:103:72: error: cannot find 'NSURLAuthenticationMethodHTTPBasic' in scope
101 |                                                  protocol: url.scheme,
102 |                                                  realm: host,
103 |                                                  authenticationMethod: NSURLAuthenticationMethodHTTPBasic)
    |                                                                        `- error: cannot find 'NSURLAuthenticationMethodHTTPBasic' in scope
104 |
105 |         if let credentials = credentialStorage.credentials(for: protectionSpace)?.values {
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/cURLHelper.swift:99:31: error: 'URLProtectionSpace' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 97 |               }
 98 |
 99 |         let protectionSpace = URLProtectionSpace(host: host,
    |                               `- error: 'URLProtectionSpace' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
100 |                                                  port: url.port ?? 0,
101 |                                                  protocol: url.scheme,
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/cURLHelper.swift:120:44: error: value of type 'URLSession' (aka 'AnyObject') has no member 'configuration'
118 |     ///   - components: components array.
119 |     private static func addSetCookies(for request: URLRequest, whenIn client: HTTPClient, into components: inout [String]) {
120 |         let configuration = client.session.configuration
    |                                            `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'configuration'
121 |         guard configuration.httpShouldSetCookies,
122 |               let url = request.url else {
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/cURLHelper.swift:143:44: error: value of type 'URLSession' (aka 'AnyObject') has no member 'configuration'
141 |     ///   - components: components array.
142 |     private static func addHeaders(for request: URLRequest, whenIn client: HTTPClient, into components: inout [String]) {
143 |         let configuration = client.session.configuration
    |                                            `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'configuration'
144 |         var headers = HTTPHeaders()
145 |
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/Stub Matchers/HTTPStubMatcher.swift:43:27: error: cannot find type 'URLRequest' in scope
41 |     ///   - request: request instance received.
42 |     ///   - source: source of data.
43 |     func matches(request: URLRequest, for source: HTTPMatcherSource) -> Bool
   |                           `- error: cannot find type 'URLRequest' in scope
44 |
45 | }
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/HTTPStubIgnoreRule.swift:83:41: error: cannot find type 'URLRequest' in scope
81 |     // MARK: - Internal Functions
82 |
83 |     internal func matches(_ urlRequest: URLRequest) -> Bool {
   |                                         `- error: cannot find type 'URLRequest' in scope
84 |         for matcher in matchers {
85 |             if matcher.matches(request: urlRequest, for: self) == false {
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/Stub Matchers/Built-In Matchers/HTTPStubBodyMatcher.swift:41:34: error: cannot find type 'URLRequest' in scope
39 |     // MARK: - Conformance
40 |
41 |     public func matches(request: URLRequest, for source: HTTPMatcherSource) -> Bool {
   |                                  `- error: cannot find type 'URLRequest' in scope
42 |         guard let data = request.body else {
43 |             return false
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/Stub Matchers/Built-In Matchers/HTTPStubCustomMatcher.swift:22:33: error: cannot find type 'URLRequest' in scope
20 |
21 | public struct HTTPStubCustomMatcher: HTTPStubMatcher {
22 |     public typealias Handler = (URLRequest, HTTPMatcherSource) -> Bool
   |                                 `- error: cannot find type 'URLRequest' in scope
23 |
24 |     // MARK: - Private Properties
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/Stub Matchers/Built-In Matchers/HTTPStubCustomMatcher.swift:33:29: error: @escaping attribute only applies to function types
31 |     ///
32 |     /// - Parameter callback: callback to call.
33 |     public init(_ callback: @escaping Handler) {
   |                             `- error: @escaping attribute only applies to function types
34 |         self.callback = callback
35 |     }
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/Stub Matchers/Built-In Matchers/HTTPStubCustomMatcher.swift:39:34: error: cannot find type 'URLRequest' in scope
37 |     // MARK: - Protocol
38 |
39 |     public func matches(request: URLRequest, for source: HTTPMatcherSource) -> Bool {
   |                                  `- error: cannot find type 'URLRequest' in scope
40 |         callback(request, source)
41 |     }
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/Stub Matchers/Built-In Matchers/HTTPStubJSONMatcher.swift:56:34: error: cannot find type 'URLRequest' in scope
54 |     // MARK: - Conformance
55 |
56 |     public func matches(request: URLRequest, for source: HTTPMatcherSource) -> Bool {
   |                                  `- error: cannot find type 'URLRequest' in scope
57 |         guard let data = request.body,
58 |               let decodedObject = try? self.decoder.decode(T.self, from: data) else {
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/Stub Matchers/Built-In Matchers/HTTPStubRegExMatcher.swift:50:34: error: cannot find type 'URLRequest' in scope
48 |     // MARK: - Conformances
49 |
50 |     public func matches(request: URLRequest, for source: HTTPMatcherSource) -> Bool {
   |                                  `- error: cannot find type 'URLRequest' in scope
51 |         switch location {
52 |         case .url:
[78/80] Compiling RealHTTP HTTPStubCustomMatcher.swift
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Metrics/Renders/HTTPMetrics+Console.swift:194:11: error: cannot find type 'URLSessionTaskMetrics' in scope
192 | // MARK: - URLSessionTaskMetrics.ResourceFetchType Extension
193 |
194 | extension URLSessionTaskMetrics.ResourceFetchType {
    |           `- error: cannot find type 'URLSessionTaskMetrics' in scope
195 |
196 |     var name: String {
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Metrics/Renders/HTTPMetrics+Console.swift:69:43: error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'taskIdentifier'
 67 |         var buffer: [String] = []
 68 |
 69 |         let taskIdentifier = (stats.task?.taskIdentifier != nil ? "\(stats.task!.taskIdentifier)" : "-")
    |                                           `- error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'taskIdentifier'
 70 |         buffer.append("Task ID: \(taskIdentifier) lifetime: \(stats.elapsedInterval.milliseconds) redirects: \(stats.countRedirects)")
 71 |
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Metrics/Renders/HTTPMetrics+Console.swift:69:82: error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'taskIdentifier'
 67 |         var buffer: [String] = []
 68 |
 69 |         let taskIdentifier = (stats.task?.taskIdentifier != nil ? "\(stats.task!.taskIdentifier)" : "-")
    |                                                                                  `- error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'taskIdentifier'
 70 |         buffer.append("Task ID: \(taskIdentifier) lifetime: \(stats.elapsedInterval.milliseconds) redirects: \(stats.countRedirects)")
 71 |
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Metrics/HTTPMetrics.swift:97:40: error: cannot find type 'URLSessionTaskTransactionMetrics' in scope
 95 |
 96 |         /// Underlying transaction metrics.
 97 |         public let transactionMetrics: URLSessionTaskTransactionMetrics
    |                                        `- error: cannot find type 'URLSessionTaskTransactionMetrics' in scope
 98 |
 99 |         /// The transaction request.
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/cURLHelper.swift:63:54: error: cannot find type 'URLRequest' in scope
 61 | public struct cURLHelper {
 62 |
 63 |     fileprivate static func cURLDescription(request: URLRequest?, client: HTTPClient?) -> String {
    |                                                      `- error: cannot find type 'URLRequest' in scope
 64 |         guard let client = client,
 65 |               let request = request,
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/cURLHelper.swift:92:53: error: cannot find type 'URLRequest' in scope
 90 |     ///   - client: where the request is running in.
 91 |     ///   - components: components array.
 92 |     private static func addCredentials(for request: URLRequest, whenIn client: HTTPClient, into components: inout [String]) {
    |                                                     `- error: cannot find type 'URLRequest' in scope
 93 |         guard let credentialStorage = client.session.configuration.urlCredentialStorage,
 94 |               let url = request.url,
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/cURLHelper.swift:119:52: error: cannot find type 'URLRequest' in scope
117 |     ///   - client: where the request is running in.
118 |     ///   - components: components array.
119 |     private static func addSetCookies(for request: URLRequest, whenIn client: HTTPClient, into components: inout [String]) {
    |                                                    `- error: cannot find type 'URLRequest' in scope
120 |         let configuration = client.session.configuration
121 |         guard configuration.httpShouldSetCookies,
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/cURLHelper.swift:142:49: error: cannot find type 'URLRequest' in scope
140 |     ///   - client: where the request is running in.
141 |     ///   - components: components array.
142 |     private static func addHeaders(for request: URLRequest, whenIn client: HTTPClient, into components: inout [String]) {
    |                                                 `- error: cannot find type 'URLRequest' in scope
143 |         let configuration = client.session.configuration
144 |         var headers = HTTPHeaders()
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/cURLHelper.swift:166:46: error: cannot find type 'URLRequest' in scope
164 |     ///   - client: where the request is running in.
165 |     ///   - components: components array.
166 |     private static func addBody(for request: URLRequest, whenIn client: HTTPClient, into components: inout [String]) {
    |                                              `- error: cannot find type 'URLRequest' in scope
167 |         if let httpBodyData = request.httpBody {
168 |             let httpBody = String(decoding: httpBodyData, as: UTF8.self)
/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPRequest/HTTPRequest.swift:451:76: error: cannot find type 'URLRequest' in scope
449 |     /// - Parameter client: client instance.
450 |     /// - Returns: `URLRequest`
451 |     internal func urlRequest(inClient client: HTTPClient?) async throws -> URLRequest {
    |                                                                            `- error: cannot find type 'URLRequest' in scope
452 |         guard let client = client,
453 |               let fullURL = urlComponents.fullURLInClient(client) else {
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/cURLHelper.swift:52:67: error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'originalRequest'
 50 |     /// - Returns: String
 51 |     public func cURLDescription() -> String {
 52 |         cURLHelper.cURLDescription(request: request?.sessionTask?.originalRequest, client: request?.client)
    |                                                                   `- error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'originalRequest'
 53 |     }
 54 |
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/cURLHelper.swift:93:54: error: value of type 'URLSession' (aka 'AnyObject') has no member 'configuration'
 91 |     ///   - components: components array.
 92 |     private static func addCredentials(for request: URLRequest, whenIn client: HTTPClient, into components: inout [String]) {
 93 |         guard let credentialStorage = client.session.configuration.urlCredentialStorage,
    |                                                      `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'configuration'
 94 |               let url = request.url,
 95 |               let host = url.host else {
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/cURLHelper.swift:103:72: error: cannot find 'NSURLAuthenticationMethodHTTPBasic' in scope
101 |                                                  protocol: url.scheme,
102 |                                                  realm: host,
103 |                                                  authenticationMethod: NSURLAuthenticationMethodHTTPBasic)
    |                                                                        `- error: cannot find 'NSURLAuthenticationMethodHTTPBasic' in scope
104 |
105 |         if let credentials = credentialStorage.credentials(for: protectionSpace)?.values {
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/cURLHelper.swift:99:31: error: 'URLProtectionSpace' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 97 |               }
 98 |
 99 |         let protectionSpace = URLProtectionSpace(host: host,
    |                               `- error: 'URLProtectionSpace' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
100 |                                                  port: url.port ?? 0,
101 |                                                  protocol: url.scheme,
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/cURLHelper.swift:120:44: error: value of type 'URLSession' (aka 'AnyObject') has no member 'configuration'
118 |     ///   - components: components array.
119 |     private static func addSetCookies(for request: URLRequest, whenIn client: HTTPClient, into components: inout [String]) {
120 |         let configuration = client.session.configuration
    |                                            `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'configuration'
121 |         guard configuration.httpShouldSetCookies,
122 |               let url = request.url else {
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/cURLHelper.swift:143:44: error: value of type 'URLSession' (aka 'AnyObject') has no member 'configuration'
141 |     ///   - components: components array.
142 |     private static func addHeaders(for request: URLRequest, whenIn client: HTTPClient, into components: inout [String]) {
143 |         let configuration = client.session.configuration
    |                                            `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'configuration'
144 |         var headers = HTTPHeaders()
145 |
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/Stub Matchers/HTTPStubMatcher.swift:43:27: error: cannot find type 'URLRequest' in scope
41 |     ///   - request: request instance received.
42 |     ///   - source: source of data.
43 |     func matches(request: URLRequest, for source: HTTPMatcherSource) -> Bool
   |                           `- error: cannot find type 'URLRequest' in scope
44 |
45 | }
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/HTTPStubIgnoreRule.swift:83:41: error: cannot find type 'URLRequest' in scope
81 |     // MARK: - Internal Functions
82 |
83 |     internal func matches(_ urlRequest: URLRequest) -> Bool {
   |                                         `- error: cannot find type 'URLRequest' in scope
84 |         for matcher in matchers {
85 |             if matcher.matches(request: urlRequest, for: self) == false {
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/Stub Matchers/Built-In Matchers/HTTPStubBodyMatcher.swift:41:34: error: cannot find type 'URLRequest' in scope
39 |     // MARK: - Conformance
40 |
41 |     public func matches(request: URLRequest, for source: HTTPMatcherSource) -> Bool {
   |                                  `- error: cannot find type 'URLRequest' in scope
42 |         guard let data = request.body else {
43 |             return false
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/Stub Matchers/Built-In Matchers/HTTPStubCustomMatcher.swift:22:33: error: cannot find type 'URLRequest' in scope
20 |
21 | public struct HTTPStubCustomMatcher: HTTPStubMatcher {
22 |     public typealias Handler = (URLRequest, HTTPMatcherSource) -> Bool
   |                                 `- error: cannot find type 'URLRequest' in scope
23 |
24 |     // MARK: - Private Properties
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/Stub Matchers/Built-In Matchers/HTTPStubCustomMatcher.swift:33:29: error: @escaping attribute only applies to function types
31 |     ///
32 |     /// - Parameter callback: callback to call.
33 |     public init(_ callback: @escaping Handler) {
   |                             `- error: @escaping attribute only applies to function types
34 |         self.callback = callback
35 |     }
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/Stub Matchers/Built-In Matchers/HTTPStubCustomMatcher.swift:39:34: error: cannot find type 'URLRequest' in scope
37 |     // MARK: - Protocol
38 |
39 |     public func matches(request: URLRequest, for source: HTTPMatcherSource) -> Bool {
   |                                  `- error: cannot find type 'URLRequest' in scope
40 |         callback(request, source)
41 |     }
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/Stub Matchers/Built-In Matchers/HTTPStubJSONMatcher.swift:56:34: error: cannot find type 'URLRequest' in scope
54 |     // MARK: - Conformance
55 |
56 |     public func matches(request: URLRequest, for source: HTTPMatcherSource) -> Bool {
   |                                  `- error: cannot find type 'URLRequest' in scope
57 |         guard let data = request.body,
58 |               let decodedObject = try? self.decoder.decode(T.self, from: data) else {
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/Stub Matchers/Built-In Matchers/HTTPStubRegExMatcher.swift:50:34: error: cannot find type 'URLRequest' in scope
48 |     // MARK: - Conformances
49 |
50 |     public func matches(request: URLRequest, for source: HTTPMatcherSource) -> Bool {
   |                                  `- error: cannot find type 'URLRequest' in scope
51 |         switch location {
52 |         case .url:
[79/80] Compiling RealHTTP HTTPStubJSONMatcher.swift
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Metrics/Renders/HTTPMetrics+Console.swift:194:11: error: cannot find type 'URLSessionTaskMetrics' in scope
192 | // MARK: - URLSessionTaskMetrics.ResourceFetchType Extension
193 |
194 | extension URLSessionTaskMetrics.ResourceFetchType {
    |           `- error: cannot find type 'URLSessionTaskMetrics' in scope
195 |
196 |     var name: String {
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Metrics/Renders/HTTPMetrics+Console.swift:69:43: error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'taskIdentifier'
 67 |         var buffer: [String] = []
 68 |
 69 |         let taskIdentifier = (stats.task?.taskIdentifier != nil ? "\(stats.task!.taskIdentifier)" : "-")
    |                                           `- error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'taskIdentifier'
 70 |         buffer.append("Task ID: \(taskIdentifier) lifetime: \(stats.elapsedInterval.milliseconds) redirects: \(stats.countRedirects)")
 71 |
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Metrics/Renders/HTTPMetrics+Console.swift:69:82: error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'taskIdentifier'
 67 |         var buffer: [String] = []
 68 |
 69 |         let taskIdentifier = (stats.task?.taskIdentifier != nil ? "\(stats.task!.taskIdentifier)" : "-")
    |                                                                                  `- error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'taskIdentifier'
 70 |         buffer.append("Task ID: \(taskIdentifier) lifetime: \(stats.elapsedInterval.milliseconds) redirects: \(stats.countRedirects)")
 71 |
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Metrics/HTTPMetrics.swift:97:40: error: cannot find type 'URLSessionTaskTransactionMetrics' in scope
 95 |
 96 |         /// Underlying transaction metrics.
 97 |         public let transactionMetrics: URLSessionTaskTransactionMetrics
    |                                        `- error: cannot find type 'URLSessionTaskTransactionMetrics' in scope
 98 |
 99 |         /// The transaction request.
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/cURLHelper.swift:63:54: error: cannot find type 'URLRequest' in scope
 61 | public struct cURLHelper {
 62 |
 63 |     fileprivate static func cURLDescription(request: URLRequest?, client: HTTPClient?) -> String {
    |                                                      `- error: cannot find type 'URLRequest' in scope
 64 |         guard let client = client,
 65 |               let request = request,
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/cURLHelper.swift:92:53: error: cannot find type 'URLRequest' in scope
 90 |     ///   - client: where the request is running in.
 91 |     ///   - components: components array.
 92 |     private static func addCredentials(for request: URLRequest, whenIn client: HTTPClient, into components: inout [String]) {
    |                                                     `- error: cannot find type 'URLRequest' in scope
 93 |         guard let credentialStorage = client.session.configuration.urlCredentialStorage,
 94 |               let url = request.url,
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/cURLHelper.swift:119:52: error: cannot find type 'URLRequest' in scope
117 |     ///   - client: where the request is running in.
118 |     ///   - components: components array.
119 |     private static func addSetCookies(for request: URLRequest, whenIn client: HTTPClient, into components: inout [String]) {
    |                                                    `- error: cannot find type 'URLRequest' in scope
120 |         let configuration = client.session.configuration
121 |         guard configuration.httpShouldSetCookies,
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/cURLHelper.swift:142:49: error: cannot find type 'URLRequest' in scope
140 |     ///   - client: where the request is running in.
141 |     ///   - components: components array.
142 |     private static func addHeaders(for request: URLRequest, whenIn client: HTTPClient, into components: inout [String]) {
    |                                                 `- error: cannot find type 'URLRequest' in scope
143 |         let configuration = client.session.configuration
144 |         var headers = HTTPHeaders()
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/cURLHelper.swift:166:46: error: cannot find type 'URLRequest' in scope
164 |     ///   - client: where the request is running in.
165 |     ///   - components: components array.
166 |     private static func addBody(for request: URLRequest, whenIn client: HTTPClient, into components: inout [String]) {
    |                                              `- error: cannot find type 'URLRequest' in scope
167 |         if let httpBodyData = request.httpBody {
168 |             let httpBody = String(decoding: httpBodyData, as: UTF8.self)
/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPRequest/HTTPRequest.swift:451:76: error: cannot find type 'URLRequest' in scope
449 |     /// - Parameter client: client instance.
450 |     /// - Returns: `URLRequest`
451 |     internal func urlRequest(inClient client: HTTPClient?) async throws -> URLRequest {
    |                                                                            `- error: cannot find type 'URLRequest' in scope
452 |         guard let client = client,
453 |               let fullURL = urlComponents.fullURLInClient(client) else {
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/cURLHelper.swift:52:67: error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'originalRequest'
 50 |     /// - Returns: String
 51 |     public func cURLDescription() -> String {
 52 |         cURLHelper.cURLDescription(request: request?.sessionTask?.originalRequest, client: request?.client)
    |                                                                   `- error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'originalRequest'
 53 |     }
 54 |
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/cURLHelper.swift:93:54: error: value of type 'URLSession' (aka 'AnyObject') has no member 'configuration'
 91 |     ///   - components: components array.
 92 |     private static func addCredentials(for request: URLRequest, whenIn client: HTTPClient, into components: inout [String]) {
 93 |         guard let credentialStorage = client.session.configuration.urlCredentialStorage,
    |                                                      `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'configuration'
 94 |               let url = request.url,
 95 |               let host = url.host else {
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/cURLHelper.swift:103:72: error: cannot find 'NSURLAuthenticationMethodHTTPBasic' in scope
101 |                                                  protocol: url.scheme,
102 |                                                  realm: host,
103 |                                                  authenticationMethod: NSURLAuthenticationMethodHTTPBasic)
    |                                                                        `- error: cannot find 'NSURLAuthenticationMethodHTTPBasic' in scope
104 |
105 |         if let credentials = credentialStorage.credentials(for: protectionSpace)?.values {
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/cURLHelper.swift:99:31: error: 'URLProtectionSpace' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 97 |               }
 98 |
 99 |         let protectionSpace = URLProtectionSpace(host: host,
    |                               `- error: 'URLProtectionSpace' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
100 |                                                  port: url.port ?? 0,
101 |                                                  protocol: url.scheme,
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/cURLHelper.swift:120:44: error: value of type 'URLSession' (aka 'AnyObject') has no member 'configuration'
118 |     ///   - components: components array.
119 |     private static func addSetCookies(for request: URLRequest, whenIn client: HTTPClient, into components: inout [String]) {
120 |         let configuration = client.session.configuration
    |                                            `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'configuration'
121 |         guard configuration.httpShouldSetCookies,
122 |               let url = request.url else {
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/cURLHelper.swift:143:44: error: value of type 'URLSession' (aka 'AnyObject') has no member 'configuration'
141 |     ///   - components: components array.
142 |     private static func addHeaders(for request: URLRequest, whenIn client: HTTPClient, into components: inout [String]) {
143 |         let configuration = client.session.configuration
    |                                            `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'configuration'
144 |         var headers = HTTPHeaders()
145 |
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/Stub Matchers/HTTPStubMatcher.swift:43:27: error: cannot find type 'URLRequest' in scope
41 |     ///   - request: request instance received.
42 |     ///   - source: source of data.
43 |     func matches(request: URLRequest, for source: HTTPMatcherSource) -> Bool
   |                           `- error: cannot find type 'URLRequest' in scope
44 |
45 | }
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/HTTPStubIgnoreRule.swift:83:41: error: cannot find type 'URLRequest' in scope
81 |     // MARK: - Internal Functions
82 |
83 |     internal func matches(_ urlRequest: URLRequest) -> Bool {
   |                                         `- error: cannot find type 'URLRequest' in scope
84 |         for matcher in matchers {
85 |             if matcher.matches(request: urlRequest, for: self) == false {
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/Stub Matchers/Built-In Matchers/HTTPStubBodyMatcher.swift:41:34: error: cannot find type 'URLRequest' in scope
39 |     // MARK: - Conformance
40 |
41 |     public func matches(request: URLRequest, for source: HTTPMatcherSource) -> Bool {
   |                                  `- error: cannot find type 'URLRequest' in scope
42 |         guard let data = request.body else {
43 |             return false
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/Stub Matchers/Built-In Matchers/HTTPStubCustomMatcher.swift:22:33: error: cannot find type 'URLRequest' in scope
20 |
21 | public struct HTTPStubCustomMatcher: HTTPStubMatcher {
22 |     public typealias Handler = (URLRequest, HTTPMatcherSource) -> Bool
   |                                 `- error: cannot find type 'URLRequest' in scope
23 |
24 |     // MARK: - Private Properties
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/Stub Matchers/Built-In Matchers/HTTPStubCustomMatcher.swift:33:29: error: @escaping attribute only applies to function types
31 |     ///
32 |     /// - Parameter callback: callback to call.
33 |     public init(_ callback: @escaping Handler) {
   |                             `- error: @escaping attribute only applies to function types
34 |         self.callback = callback
35 |     }
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/Stub Matchers/Built-In Matchers/HTTPStubCustomMatcher.swift:39:34: error: cannot find type 'URLRequest' in scope
37 |     // MARK: - Protocol
38 |
39 |     public func matches(request: URLRequest, for source: HTTPMatcherSource) -> Bool {
   |                                  `- error: cannot find type 'URLRequest' in scope
40 |         callback(request, source)
41 |     }
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/Stub Matchers/Built-In Matchers/HTTPStubJSONMatcher.swift:56:34: error: cannot find type 'URLRequest' in scope
54 |     // MARK: - Conformance
55 |
56 |     public func matches(request: URLRequest, for source: HTTPMatcherSource) -> Bool {
   |                                  `- error: cannot find type 'URLRequest' in scope
57 |         guard let data = request.body,
58 |               let decodedObject = try? self.decoder.decode(T.self, from: data) else {
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/Stub Matchers/Built-In Matchers/HTTPStubRegExMatcher.swift:50:34: error: cannot find type 'URLRequest' in scope
48 |     // MARK: - Conformances
49 |
50 |     public func matches(request: URLRequest, for source: HTTPMatcherSource) -> Bool {
   |                                  `- error: cannot find type 'URLRequest' in scope
51 |         switch location {
52 |         case .url:
[80/80] Compiling RealHTTP HTTPStubRegExMatcher.swift
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Metrics/Renders/HTTPMetrics+Console.swift:194:11: error: cannot find type 'URLSessionTaskMetrics' in scope
192 | // MARK: - URLSessionTaskMetrics.ResourceFetchType Extension
193 |
194 | extension URLSessionTaskMetrics.ResourceFetchType {
    |           `- error: cannot find type 'URLSessionTaskMetrics' in scope
195 |
196 |     var name: String {
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Metrics/Renders/HTTPMetrics+Console.swift:69:43: error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'taskIdentifier'
 67 |         var buffer: [String] = []
 68 |
 69 |         let taskIdentifier = (stats.task?.taskIdentifier != nil ? "\(stats.task!.taskIdentifier)" : "-")
    |                                           `- error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'taskIdentifier'
 70 |         buffer.append("Task ID: \(taskIdentifier) lifetime: \(stats.elapsedInterval.milliseconds) redirects: \(stats.countRedirects)")
 71 |
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Metrics/Renders/HTTPMetrics+Console.swift:69:82: error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'taskIdentifier'
 67 |         var buffer: [String] = []
 68 |
 69 |         let taskIdentifier = (stats.task?.taskIdentifier != nil ? "\(stats.task!.taskIdentifier)" : "-")
    |                                                                                  `- error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'taskIdentifier'
 70 |         buffer.append("Task ID: \(taskIdentifier) lifetime: \(stats.elapsedInterval.milliseconds) redirects: \(stats.countRedirects)")
 71 |
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Metrics/HTTPMetrics.swift:97:40: error: cannot find type 'URLSessionTaskTransactionMetrics' in scope
 95 |
 96 |         /// Underlying transaction metrics.
 97 |         public let transactionMetrics: URLSessionTaskTransactionMetrics
    |                                        `- error: cannot find type 'URLSessionTaskTransactionMetrics' in scope
 98 |
 99 |         /// The transaction request.
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/cURLHelper.swift:63:54: error: cannot find type 'URLRequest' in scope
 61 | public struct cURLHelper {
 62 |
 63 |     fileprivate static func cURLDescription(request: URLRequest?, client: HTTPClient?) -> String {
    |                                                      `- error: cannot find type 'URLRequest' in scope
 64 |         guard let client = client,
 65 |               let request = request,
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/cURLHelper.swift:92:53: error: cannot find type 'URLRequest' in scope
 90 |     ///   - client: where the request is running in.
 91 |     ///   - components: components array.
 92 |     private static func addCredentials(for request: URLRequest, whenIn client: HTTPClient, into components: inout [String]) {
    |                                                     `- error: cannot find type 'URLRequest' in scope
 93 |         guard let credentialStorage = client.session.configuration.urlCredentialStorage,
 94 |               let url = request.url,
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/cURLHelper.swift:119:52: error: cannot find type 'URLRequest' in scope
117 |     ///   - client: where the request is running in.
118 |     ///   - components: components array.
119 |     private static func addSetCookies(for request: URLRequest, whenIn client: HTTPClient, into components: inout [String]) {
    |                                                    `- error: cannot find type 'URLRequest' in scope
120 |         let configuration = client.session.configuration
121 |         guard configuration.httpShouldSetCookies,
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/cURLHelper.swift:142:49: error: cannot find type 'URLRequest' in scope
140 |     ///   - client: where the request is running in.
141 |     ///   - components: components array.
142 |     private static func addHeaders(for request: URLRequest, whenIn client: HTTPClient, into components: inout [String]) {
    |                                                 `- error: cannot find type 'URLRequest' in scope
143 |         let configuration = client.session.configuration
144 |         var headers = HTTPHeaders()
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/cURLHelper.swift:166:46: error: cannot find type 'URLRequest' in scope
164 |     ///   - client: where the request is running in.
165 |     ///   - components: components array.
166 |     private static func addBody(for request: URLRequest, whenIn client: HTTPClient, into components: inout [String]) {
    |                                              `- error: cannot find type 'URLRequest' in scope
167 |         if let httpBodyData = request.httpBody {
168 |             let httpBody = String(decoding: httpBodyData, as: UTF8.self)
/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPRequest/HTTPRequest.swift:451:76: error: cannot find type 'URLRequest' in scope
449 |     /// - Parameter client: client instance.
450 |     /// - Returns: `URLRequest`
451 |     internal func urlRequest(inClient client: HTTPClient?) async throws -> URLRequest {
    |                                                                            `- error: cannot find type 'URLRequest' in scope
452 |         guard let client = client,
453 |               let fullURL = urlComponents.fullURLInClient(client) else {
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/cURLHelper.swift:52:67: error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'originalRequest'
 50 |     /// - Returns: String
 51 |     public func cURLDescription() -> String {
 52 |         cURLHelper.cURLDescription(request: request?.sessionTask?.originalRequest, client: request?.client)
    |                                                                   `- error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'originalRequest'
 53 |     }
 54 |
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/cURLHelper.swift:93:54: error: value of type 'URLSession' (aka 'AnyObject') has no member 'configuration'
 91 |     ///   - components: components array.
 92 |     private static func addCredentials(for request: URLRequest, whenIn client: HTTPClient, into components: inout [String]) {
 93 |         guard let credentialStorage = client.session.configuration.urlCredentialStorage,
    |                                                      `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'configuration'
 94 |               let url = request.url,
 95 |               let host = url.host else {
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/cURLHelper.swift:103:72: error: cannot find 'NSURLAuthenticationMethodHTTPBasic' in scope
101 |                                                  protocol: url.scheme,
102 |                                                  realm: host,
103 |                                                  authenticationMethod: NSURLAuthenticationMethodHTTPBasic)
    |                                                                        `- error: cannot find 'NSURLAuthenticationMethodHTTPBasic' in scope
104 |
105 |         if let credentials = credentialStorage.credentials(for: protectionSpace)?.values {
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/cURLHelper.swift:99:31: error: 'URLProtectionSpace' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 97 |               }
 98 |
 99 |         let protectionSpace = URLProtectionSpace(host: host,
    |                               `- error: 'URLProtectionSpace' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
100 |                                                  port: url.port ?? 0,
101 |                                                  protocol: url.scheme,
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/cURLHelper.swift:120:44: error: value of type 'URLSession' (aka 'AnyObject') has no member 'configuration'
118 |     ///   - components: components array.
119 |     private static func addSetCookies(for request: URLRequest, whenIn client: HTTPClient, into components: inout [String]) {
120 |         let configuration = client.session.configuration
    |                                            `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'configuration'
121 |         guard configuration.httpShouldSetCookies,
122 |               let url = request.url else {
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/cURLHelper.swift:143:44: error: value of type 'URLSession' (aka 'AnyObject') has no member 'configuration'
141 |     ///   - components: components array.
142 |     private static func addHeaders(for request: URLRequest, whenIn client: HTTPClient, into components: inout [String]) {
143 |         let configuration = client.session.configuration
    |                                            `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'configuration'
144 |         var headers = HTTPHeaders()
145 |
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/Stub Matchers/HTTPStubMatcher.swift:43:27: error: cannot find type 'URLRequest' in scope
41 |     ///   - request: request instance received.
42 |     ///   - source: source of data.
43 |     func matches(request: URLRequest, for source: HTTPMatcherSource) -> Bool
   |                           `- error: cannot find type 'URLRequest' in scope
44 |
45 | }
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/HTTPStubIgnoreRule.swift:83:41: error: cannot find type 'URLRequest' in scope
81 |     // MARK: - Internal Functions
82 |
83 |     internal func matches(_ urlRequest: URLRequest) -> Bool {
   |                                         `- error: cannot find type 'URLRequest' in scope
84 |         for matcher in matchers {
85 |             if matcher.matches(request: urlRequest, for: self) == false {
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/Stub Matchers/Built-In Matchers/HTTPStubBodyMatcher.swift:41:34: error: cannot find type 'URLRequest' in scope
39 |     // MARK: - Conformance
40 |
41 |     public func matches(request: URLRequest, for source: HTTPMatcherSource) -> Bool {
   |                                  `- error: cannot find type 'URLRequest' in scope
42 |         guard let data = request.body else {
43 |             return false
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/Stub Matchers/Built-In Matchers/HTTPStubCustomMatcher.swift:22:33: error: cannot find type 'URLRequest' in scope
20 |
21 | public struct HTTPStubCustomMatcher: HTTPStubMatcher {
22 |     public typealias Handler = (URLRequest, HTTPMatcherSource) -> Bool
   |                                 `- error: cannot find type 'URLRequest' in scope
23 |
24 |     // MARK: - Private Properties
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/Stub Matchers/Built-In Matchers/HTTPStubCustomMatcher.swift:33:29: error: @escaping attribute only applies to function types
31 |     ///
32 |     /// - Parameter callback: callback to call.
33 |     public init(_ callback: @escaping Handler) {
   |                             `- error: @escaping attribute only applies to function types
34 |         self.callback = callback
35 |     }
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/Stub Matchers/Built-In Matchers/HTTPStubCustomMatcher.swift:39:34: error: cannot find type 'URLRequest' in scope
37 |     // MARK: - Protocol
38 |
39 |     public func matches(request: URLRequest, for source: HTTPMatcherSource) -> Bool {
   |                                  `- error: cannot find type 'URLRequest' in scope
40 |         callback(request, source)
41 |     }
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/Stub Matchers/Built-In Matchers/HTTPStubJSONMatcher.swift:56:34: error: cannot find type 'URLRequest' in scope
54 |     // MARK: - Conformance
55 |
56 |     public func matches(request: URLRequest, for source: HTTPMatcherSource) -> Bool {
   |                                  `- error: cannot find type 'URLRequest' in scope
57 |         guard let data = request.body,
58 |               let decodedObject = try? self.decoder.decode(T.self, from: data) else {
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/Stub Matchers/Built-In Matchers/HTTPStubRegExMatcher.swift:50:34: error: cannot find type 'URLRequest' in scope
48 |     // MARK: - Conformances
49 |
50 |     public func matches(request: URLRequest, for source: HTTPMatcherSource) -> Bool {
   |                                  `- error: cannot find type 'URLRequest' in scope
51 |         switch location {
52 |         case .url:
BUILD FAILURE 6.1 wasm