The Swift Package Index logo.Swift Package Index

Track the adoption of Swift 6 strict concurrency checks for data race safety. How many packages are Ready for Swift 6?

Build Information

Failed to build RealHTTP, reference main (8f1ea5), with Swift 6.0 for Linux on 15 Jan 2025 15:42:17 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4606859-0":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.0-latest swift build --triple x86_64-unknown-linux-gnu 2>&1

Build Log

217 |                 redirect.allHTTPHeaderFields = HTTPCookie.requestHeaderFields(with: cookiesInRedirect)
    |                                                           `- error: type 'HTTPCookie' (aka 'AnyObject') has no member 'requestHeaderFields'
218 |             }
219 |             client?.urlProtocol(self, wasRedirectedTo: redirect, redirectResponse: response!)
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:219:13: error: cannot find 'client' in scope
217 |                 redirect.allHTTPHeaderFields = HTTPCookie.requestHeaderFields(with: cookiesInRedirect)
218 |             }
219 |             client?.urlProtocol(self, wasRedirectedTo: redirect, redirectResponse: response!)
    |             `- error: cannot find 'client' in scope
220 |         }
221 |
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:223:9: error: cannot find 'client' in scope
221 |
222 |         // Send response
223 |         client?.urlProtocol(self, didReceive: response!, cacheStoragePolicy: .notAllowed)
    |         `- error: cannot find 'client' in scope
224 |         if let data = stubResponse.body?.data {
225 |             client?.urlProtocol(self, didLoad: data)
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:223:79: error: cannot infer contextual base in reference to member 'notAllowed'
221 |
222 |         // Send response
223 |         client?.urlProtocol(self, didReceive: response!, cacheStoragePolicy: .notAllowed)
    |                                                                               `- error: cannot infer contextual base in reference to member 'notAllowed'
224 |         if let data = stubResponse.body?.data {
225 |             client?.urlProtocol(self, didLoad: data)
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:225:13: error: cannot find 'client' in scope
223 |         client?.urlProtocol(self, didReceive: response!, cacheStoragePolicy: .notAllowed)
224 |         if let data = stubResponse.body?.data {
225 |             client?.urlProtocol(self, didLoad: data)
    |             `- error: cannot find 'client' in scope
226 |         }
227 |         client?.urlProtocolDidFinishLoading(self)
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:227:9: error: cannot find 'client' in scope
225 |             client?.urlProtocol(self, didLoad: data)
226 |         }
227 |         client?.urlProtocolDidFinishLoading(self)
    |         `- error: cannot find 'client' in scope
228 |     }
229 |
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/URLHook.swift:25:21: error: type 'URLProtocol' (aka 'AnyObject') has no member 'registerClass'
23 |
24 |     func load() {
25 |         URLProtocol.registerClass(HTTPStubURLProtocol.self)
   |                     `- error: type 'URLProtocol' (aka 'AnyObject') has no member 'registerClass'
26 |     }
27 |
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/URLHook.swift:29:21: error: type 'URLProtocol' (aka 'AnyObject') has no member 'unregisterClass'
27 |
28 |     func unload() {
29 |         URLProtocol.unregisterClass(HTTPStubURLProtocol.self)
   |                     `- error: type 'URLProtocol' (aka 'AnyObject') has no member 'unregisterClass'
30 |     }
31 |
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/URLSessionHook.swift:41:40: error: cannot find type 'Selector' in scope
39 |     }
40 |
41 |     private func originalSelector() -> Selector {
   |                                        `- error: cannot find type 'Selector' in scope
42 |         #selector(getter: URLSessionConfiguration.protocolClasses)
43 |     }
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/URLSessionHook.swift:45:6: error: Objective-C interoperability is disabled
43 |     }
44 |
45 |     @objc private func protocolClasses() -> [AnyClass] {
   |      `- error: Objective-C interoperability is disabled
46 |         [HTTPStubURLProtocol.self]
47 |     }
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/URLSessionHook.swift:26:28: error: cannot find 'class_getInstanceMethod' in scope
24 |
25 |     func load() {
26 |         guard let method = class_getInstanceMethod(originalClass(), originalSelector()),
   |                            `- error: cannot find 'class_getInstanceMethod' in scope
27 |               let stub = class_getInstanceMethod(URLSessionHook.self, #selector(protocolClasses)) else {
28 |             fatalError("Could not load URLSessionHook")
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/URLSessionHook.swift:27:26: error: cannot find 'class_getInstanceMethod' in scope
25 |     func load() {
26 |         guard let method = class_getInstanceMethod(originalClass(), originalSelector()),
27 |               let stub = class_getInstanceMethod(URLSessionHook.self, #selector(protocolClasses)) else {
   |                          `- error: cannot find 'class_getInstanceMethod' in scope
28 |             fatalError("Could not load URLSessionHook")
29 |         }
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/URLSessionHook.swift:27:71: error: '#selector' can only be used with the Objective-C runtime
25 |     func load() {
26 |         guard let method = class_getInstanceMethod(originalClass(), originalSelector()),
27 |               let stub = class_getInstanceMethod(URLSessionHook.self, #selector(protocolClasses)) else {
   |                                                                       `- error: '#selector' can only be used with the Objective-C runtime
28 |             fatalError("Could not load URLSessionHook")
29 |         }
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/URLSessionHook.swift:30:9: error: cannot find 'method_exchangeImplementations' in scope
28 |             fatalError("Could not load URLSessionHook")
29 |         }
30 |         method_exchangeImplementations(method, stub)
   |         `- error: cannot find 'method_exchangeImplementations' in scope
31 |     }
32 |
[78/80] Compiling RealHTTP URLHook.swift
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/HTTPStubber.swift:189:53: error: cannot find type 'URLRequest' in scope
187 |     /// - Parameter request: url request to check.
188 |     /// - Returns: HTTPSubRequest?
189 |     internal func suitableStubForRequest(_ request: URLRequest) -> HTTPStubRequest? {
    |                                                     `- error: cannot find type 'URLRequest' in scope
190 |         stubbedRequests.first {
191 |             $0.match(request)
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/HTTPStubber.swift:199:41: error: cannot find type 'URLRequest' in scope
197 |     /// - Parameter request: request to check.
198 |     /// - Returns: Bool
199 |     public func shouldHandle(_ request: URLRequest) -> Bool {
    |                                         `- error: cannot find type 'URLRequest' in scope
200 |         switch unhandledMode {
201 |         case .optin:
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/Stub Request/HTTPStubRequest.swift:50:37: error: cannot find type 'URLRequest' in scope
48 |     /// - Parameter urlRequest: url request.
49 |     /// - Returns: Bool
50 |     public func match(_ urlRequest: URLRequest) -> Bool {
   |                                     `- error: cannot find type 'URLRequest' in scope
51 |         for matcher in matchers {
52 |             if matcher.matches(request: urlRequest, for: self) == 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 Request/HTTPStubRequest+Matchers.swift:36:42: error: @escaping attribute only applies to function types
34 |     /// - Parameter matcherFunction: matcher function.
35 |     /// - Returns: Self
36 |     public func match(_ matcherFunction: @escaping HTTPStubCustomMatcher.Handler) -> Self {
   |                                          `- error: @escaping attribute only applies to function types
37 |         let matcher = HTTPStubCustomMatcher(matcherFunction)
38 |         return match(matcher)
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/HTTPStubber.swift:191:16: error: cannot convert value of type 'HTTPStubRequest' to closure result type 'Bool'
189 |     internal func suitableStubForRequest(_ request: URLRequest) -> HTTPStubRequest? {
190 |         stubbedRequests.first {
191 |             $0.match(request)
    |                `- error: cannot convert value of type 'HTTPStubRequest' to closure result type 'Bool'
192 |         }
193 |     }
/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/HTTPStubberErrors.swift:22:28: error: cannot find type 'URLRequest' in scope
20 |
21 | public enum HTTPStubberErrors: Error {
22 |     case matchStubNotFound(URLRequest)
   |                            `- error: cannot find type 'URLRequest' in scope
23 | }
24 |
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:29:25: error: property does not override any property from its superclass
 27 |     private var responseWorkItem: DispatchWorkItem?
 28 |
 29 |     public override var task: URLSessionTask? {
    |                         `- error: property does not override any property from its superclass
 30 |       urlSessionTask
 31 |     }
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:29:31: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 27 |     private var responseWorkItem: DispatchWorkItem?
 28 |
 29 |     public override var task: URLSessionTask? {
    |                               `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 30 |       urlSessionTask
 31 |     }
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/Stubber/Hooks/HTTPStubURLProtocol.swift:33:33: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 31 |     }
 32 |
 33 |     private var urlSessionTask: URLSessionTask?
    |                                 `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 34 |
 35 |     // MARK: - Overrides
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/Stubber/Hooks/HTTPStubURLProtocol.swift:44:54: error: cannot find type 'URLRequest' in scope
 42 |     /// - Parameter request: request to validate.
 43 |     /// - Returns: Bool
 44 |     public override class func canInit(with request: URLRequest) -> Bool {
    |                                                      `- error: cannot find type 'URLRequest' in scope
 45 |         guard let scheme = request.url?.scheme,
 46 |               Self.supportedSchemes.contains(scheme) else {
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:44:32: error: method does not override any method from its superclass
 42 |     /// - Parameter request: request to validate.
 43 |     /// - Returns: Bool
 44 |     public override class func canInit(with request: URLRequest) -> Bool {
    |                                `- error: method does not override any method from its superclass
 45 |         guard let scheme = request.url?.scheme,
 46 |               Self.supportedSchemes.contains(scheme) else {
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:54:77: error: cannot find type 'URLRequest' in scope
 52 |     }
 53 |
 54 |     public override class func canonicalRequest(for request: URLRequest) -> URLRequest {
    |                                                                             `- error: cannot find type 'URLRequest' in scope
 55 |         request
 56 |     }
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:54:62: error: cannot find type 'URLRequest' in scope
 52 |     }
 53 |
 54 |     public override class func canonicalRequest(for request: URLRequest) -> URLRequest {
    |                                                              `- error: cannot find type 'URLRequest' in scope
 55 |         request
 56 |     }
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:54:32: error: method does not override any method from its superclass
 52 |     }
 53 |
 54 |     public override class func canonicalRequest(for request: URLRequest) -> URLRequest {
    |                                `- error: method does not override any method from its superclass
 55 |         request
 56 |     }
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:58:69: error: cannot find type 'URLRequest' in scope
 56 |     }
 57 |
 58 |     public override class func requestIsCacheEquivalent(_ requestA: URLRequest, to requestB: URLRequest) -> Bool {
    |                                                                     `- error: cannot find type 'URLRequest' in scope
 59 |         false
 60 |     }
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:58:94: error: cannot find type 'URLRequest' in scope
 56 |     }
 57 |
 58 |     public override class func requestIsCacheEquivalent(_ requestA: URLRequest, to requestB: URLRequest) -> Bool {
    |                                                                                              `- error: cannot find type 'URLRequest' in scope
 59 |         false
 60 |     }
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:58:32: error: method does not override any method from its superclass
 56 |     }
 57 |
 58 |     public override class func requestIsCacheEquivalent(_ requestA: URLRequest, to requestB: URLRequest) -> Bool {
    |                                `- error: method does not override any method from its superclass
 59 |         false
 60 |     }
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:63:35: error: cannot find type 'URLRequest' in scope
 61 |
 62 |     // Occasionally called by iOS, even though init(task:...) is implemented. Will cause a crash if not present.
 63 |     public override init(request: URLRequest, cachedResponse: CachedURLResponse?, client: URLProtocolClient?) {
    |                                   `- error: cannot find type 'URLRequest' in scope
 64 |         super.init(request: request, cachedResponse: cachedResponse, client: client)
 65 |     }
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:63:91: error: cannot find type 'URLProtocolClient' in scope
 61 |
 62 |     // Occasionally called by iOS, even though init(task:...) is implemented. Will cause a crash if not present.
 63 |     public override init(request: URLRequest, cachedResponse: CachedURLResponse?, client: URLProtocolClient?) {
    |                                                                                           `- error: cannot find type 'URLProtocolClient' in scope
 64 |         super.init(request: request, cachedResponse: cachedResponse, client: client)
 65 |     }
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:63:21: error: initializer does not override a designated initializer from its superclass
 61 |
 62 |     // Occasionally called by iOS, even though init(task:...) is implemented. Will cause a crash if not present.
 63 |     public override init(request: URLRequest, cachedResponse: CachedURLResponse?, client: URLProtocolClient?) {
    |                     `- error: initializer does not override a designated initializer from its superclass
 64 |         super.init(request: request, cachedResponse: cachedResponse, client: client)
 65 |     }
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:63:63: error: 'CachedURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 61 |
 62 |     // Occasionally called by iOS, even though init(task:...) is implemented. Will cause a crash if not present.
 63 |     public override init(request: URLRequest, cachedResponse: CachedURLResponse?, client: URLProtocolClient?) {
    |                                                               `- error: 'CachedURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 64 |         super.init(request: request, cachedResponse: cachedResponse, client: client)
 65 |     }
Foundation.CachedURLResponse:2:18: note: 'CachedURLResponse' 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 CachedURLResponse = AnyObject
  |                  `- note: 'CachedURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:67:83: error: cannot find type 'URLProtocolClient' in scope
 65 |     }
 66 |
 67 |     public init(task: URLSessionTask, cachedResponse: CachedURLResponse?, client: URLProtocolClient?) {
    |                                                                                   `- error: cannot find type 'URLProtocolClient' in scope
 68 |         super.init(request: task.currentRequest!, cachedResponse: cachedResponse, client: client)
 69 |         self.urlSessionTask = task
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:67:23: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 65 |     }
 66 |
 67 |     public init(task: URLSessionTask, cachedResponse: CachedURLResponse?, client: URLProtocolClient?) {
    |                       `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 68 |         super.init(request: task.currentRequest!, cachedResponse: cachedResponse, client: client)
 69 |         self.urlSessionTask = task
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/Stubber/Hooks/HTTPStubURLProtocol.swift:67:55: error: 'CachedURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 65 |     }
 66 |
 67 |     public init(task: URLSessionTask, cachedResponse: CachedURLResponse?, client: URLProtocolClient?) {
    |                                                       `- error: 'CachedURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 68 |         super.init(request: task.currentRequest!, cachedResponse: cachedResponse, client: client)
 69 |         self.urlSessionTask = task
Foundation.CachedURLResponse:2:18: note: 'CachedURLResponse' 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 CachedURLResponse = AnyObject
  |                  `- note: 'CachedURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:72:26: error: method does not override any method from its superclass
 70 |     }
 71 |
 72 |     public override func startLoading() {
    |                          `- error: method does not override any method from its superclass
 73 |         var request = self.request
 74 |
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:135:26: error: method does not override any method from its superclass
133 |     }
134 |
135 |     public override func stopLoading() {
    |                          `- error: method does not override any method from its superclass
136 |         responseWorkItem?.cancel()
137 |     }
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:142:49: error: cannot find type 'URLRequest' in scope
140 |
141 |     private func streamData(_ inputStream: InputStream,
142 |                             forRequest request: URLRequest, forStub stub: HTTPStubResponse,
    |                                                 `- error: cannot find type 'URLRequest' in scope
143 |                             speed: HTTPConnectionSpeed,
144 |                             completion: @escaping ((Error?) -> Void)) {
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:190:43: error: cannot find type 'URLRequest' in scope
188 |     }
189 |
190 |     private func finishRequest(_ request: URLRequest, withStub stubResponse: HTTPStubResponse, cookies: HTTPCookieStorage) {
    |                                           `- error: cannot find type 'URLRequest' in scope
191 |         let url = request.url!
192 |         let headers = stubResponse.headers.asDictionary
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:190:105: error: 'HTTPCookieStorage' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
188 |     }
189 |
190 |     private func finishRequest(_ request: URLRequest, withStub stubResponse: HTTPStubResponse, cookies: HTTPCookieStorage) {
    |                                                                                                         `- error: 'HTTPCookieStorage' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
191 |         let url = request.url!
192 |         let headers = stubResponse.headers.asDictionary
Foundation.HTTPCookieStorage:2:18: note: 'HTTPCookieStorage' 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 HTTPCookieStorage = AnyObject
  |                  `- note: 'HTTPCookieStorage' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:21:35: error: 'URLProtocol' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 19 | import Foundation
 20 |
 21 | public class HTTPStubURLProtocol: URLProtocol {
    |                                   `- error: 'URLProtocol' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 22 |
 23 |     /// This class support only certain common type of schemes.
Foundation.URLProtocol:2:18: note: 'URLProtocol' 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 URLProtocol = AnyObject
  |                  `- note: 'URLProtocol' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:64:9: error: 'super' members cannot be referenced in a root class
 62 |     // Occasionally called by iOS, even though init(task:...) is implemented. Will cause a crash if not present.
 63 |     public override init(request: URLRequest, cachedResponse: CachedURLResponse?, client: URLProtocolClient?) {
 64 |         super.init(request: request, cachedResponse: cachedResponse, client: client)
    |         `- error: 'super' members cannot be referenced in a root class
 65 |     }
 66 |
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:68:9: error: 'super' members cannot be referenced in a root class
 66 |
 67 |     public init(task: URLSessionTask, cachedResponse: CachedURLResponse?, client: URLProtocolClient?) {
 68 |         super.init(request: task.currentRequest!, cachedResponse: cachedResponse, client: client)
    |         `- error: 'super' members cannot be referenced in a root class
 69 |         self.urlSessionTask = task
 70 |     }
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:73:28: error: value of type 'HTTPStubURLProtocol' has no member 'request'
 71 |
 72 |     public override func startLoading() {
 73 |         var request = self.request
    |                            `- error: value of type 'HTTPStubURLProtocol' has no member 'request'
 74 |
 75 |         // Get the cookie storage that applies to this request.
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:76:47: error: type 'HTTPCookieStorage' (aka 'AnyObject') has no member 'shared'
 74 |
 75 |         // Get the cookie storage that applies to this request.
 76 |         var cookieStorage = HTTPCookieStorage.shared
    |                                               `- error: type 'HTTPCookieStorage' (aka 'AnyObject') has no member 'shared'
 77 |         if let session = task?.value(forKey: "session") as? URLSession,
 78 |            let configurationCookieStorage = session.configuration.httpCookieStorage {
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:77:32: error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'value'
 75 |         // Get the cookie storage that applies to this request.
 76 |         var cookieStorage = HTTPCookieStorage.shared
 77 |         if let session = task?.value(forKey: "session") as? URLSession,
    |                                `- error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'value'
 78 |            let configurationCookieStorage = session.configuration.httpCookieStorage {
 79 |             cookieStorage = configurationCookieStorage
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:87:59: error: type 'HTTPCookie' (aka 'AnyObject') has no member 'requestHeaderFields'
 85 |                 request.allHTTPHeaderFields = [String: String]()
 86 |             }
 87 |             request.allHTTPHeaderFields!.merge(HTTPCookie.requestHeaderFields(with: cookies)) { (current, _) in
    |                                                           `- error: type 'HTTPCookie' (aka 'AnyObject') has no member 'requestHeaderFields'
 88 |                 current
 89 |             }
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:99:13: error: cannot find 'client' in scope
 97 |                request.url != nil else {
 98 |             // If not found we throw an error
 99 |             client?.urlProtocol(self, didFailWithError: HTTPStubberErrors.matchStubNotFound(request))
    |             `- error: cannot find 'client' in scope
100 |             return
101 |         }
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:119:22: error: value of type 'HTTPStubURLProtocol' has no member 'client'
117 |
118 |             guard data.count > 0, inputStream.hasBytesAvailable else {
119 |                 self.client?.urlProtocol(self, didLoad: Data())
    |                      `- error: value of type 'HTTPStubURLProtocol' has no member 'client'
120 |                 inputStream.close()
121 |                 return
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:176:26: error: value of type 'HTTPStubURLProtocol' has no member 'client'
174 |                 // adjust slotTime proportionally to the bytes remaining
175 |                 DispatchQueue.global(qos: .default).asyncAfter(deadline: .now() + timingInfo.slotTime) {
176 |                     self.client?.urlProtocol(self, didLoad: data)
    |                          `- error: value of type 'HTTPStubURLProtocol' has no member 'client'
177 |                     self.streamData(inputStream, forRequest: request, forStub: stub, speed: speed, completion: completion)
178 |                 }
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:193:39: error: type 'HTTPCookie' (aka 'AnyObject') has no member 'cookies'
191 |         let url = request.url!
192 |         let headers = stubResponse.headers.asDictionary
193 |         let cookiesToSet = HTTPCookie.cookies(withResponseHeaderFields: headers, for: url)
    |                                       `- error: type 'HTTPCookie' (aka 'AnyObject') has no member 'cookies'
194 |         cookies.setCookies(cookiesToSet, for: request.url!, mainDocumentURL: url)
195 |
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:194:17: error: value of type 'HTTPCookieStorage' (aka 'AnyObject') has no member 'setCookies'
192 |         let headers = stubResponse.headers.asDictionary
193 |         let cookiesToSet = HTTPCookie.cookies(withResponseHeaderFields: headers, for: url)
194 |         cookies.setCookies(cookiesToSet, for: request.url!, mainDocumentURL: url)
    |                 `- error: value of type 'HTTPCookieStorage' (aka 'AnyObject') has no member 'setCookies'
195 |
196 |         if let failureError = stubResponse.failError { // request should fail with given error
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:197:13: error: cannot find 'client' in scope
195 |
196 |         if let failureError = stubResponse.failError { // request should fail with given error
197 |             client?.urlProtocol(self, didFailWithError: failureError)
    |             `- error: cannot find 'client' in scope
198 |             return
199 |         }
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:202:24: error: 'HTTPURLResponse' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
200 |
201 |         let statusCode = stubResponse.statusCode
202 |         let response = HTTPURLResponse(url: url,
    |                        `- error: 'HTTPURLResponse' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
203 |                                        statusCode: statusCode.rawValue,
204 |                                        httpVersion: nil,
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:204:53: error: 'nil' requires a contextual type
202 |         let response = HTTPURLResponse(url: url,
203 |                                        statusCode: statusCode.rawValue,
204 |                                        httpVersion: nil,
    |                                                     `- error: 'nil' requires a contextual type
205 |                                        headerFields: headers)
206 |
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:215:28: error: cannot find 'URLRequest' in scope
213 |             // Includes redirection call to client.
214 |             // A redirect to the client must contain `Location:<URL>` inside the body.
215 |             var redirect = URLRequest(url: location)
    |                            `- error: cannot find 'URLRequest' in scope
216 |             if let cookiesInRedirect = cookies.cookies(for: url) {
217 |                 redirect.allHTTPHeaderFields = HTTPCookie.requestHeaderFields(with: cookiesInRedirect)
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:216:48: error: value of type 'HTTPCookieStorage' (aka 'AnyObject') has no member 'cookies'
214 |             // A redirect to the client must contain `Location:<URL>` inside the body.
215 |             var redirect = URLRequest(url: location)
216 |             if let cookiesInRedirect = cookies.cookies(for: url) {
    |                                                `- error: value of type 'HTTPCookieStorage' (aka 'AnyObject') has no member 'cookies'
217 |                 redirect.allHTTPHeaderFields = HTTPCookie.requestHeaderFields(with: cookiesInRedirect)
218 |             }
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:217:59: error: type 'HTTPCookie' (aka 'AnyObject') has no member 'requestHeaderFields'
215 |             var redirect = URLRequest(url: location)
216 |             if let cookiesInRedirect = cookies.cookies(for: url) {
217 |                 redirect.allHTTPHeaderFields = HTTPCookie.requestHeaderFields(with: cookiesInRedirect)
    |                                                           `- error: type 'HTTPCookie' (aka 'AnyObject') has no member 'requestHeaderFields'
218 |             }
219 |             client?.urlProtocol(self, wasRedirectedTo: redirect, redirectResponse: response!)
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:219:13: error: cannot find 'client' in scope
217 |                 redirect.allHTTPHeaderFields = HTTPCookie.requestHeaderFields(with: cookiesInRedirect)
218 |             }
219 |             client?.urlProtocol(self, wasRedirectedTo: redirect, redirectResponse: response!)
    |             `- error: cannot find 'client' in scope
220 |         }
221 |
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:223:9: error: cannot find 'client' in scope
221 |
222 |         // Send response
223 |         client?.urlProtocol(self, didReceive: response!, cacheStoragePolicy: .notAllowed)
    |         `- error: cannot find 'client' in scope
224 |         if let data = stubResponse.body?.data {
225 |             client?.urlProtocol(self, didLoad: data)
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:223:79: error: cannot infer contextual base in reference to member 'notAllowed'
221 |
222 |         // Send response
223 |         client?.urlProtocol(self, didReceive: response!, cacheStoragePolicy: .notAllowed)
    |                                                                               `- error: cannot infer contextual base in reference to member 'notAllowed'
224 |         if let data = stubResponse.body?.data {
225 |             client?.urlProtocol(self, didLoad: data)
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:225:13: error: cannot find 'client' in scope
223 |         client?.urlProtocol(self, didReceive: response!, cacheStoragePolicy: .notAllowed)
224 |         if let data = stubResponse.body?.data {
225 |             client?.urlProtocol(self, didLoad: data)
    |             `- error: cannot find 'client' in scope
226 |         }
227 |         client?.urlProtocolDidFinishLoading(self)
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:227:9: error: cannot find 'client' in scope
225 |             client?.urlProtocol(self, didLoad: data)
226 |         }
227 |         client?.urlProtocolDidFinishLoading(self)
    |         `- error: cannot find 'client' in scope
228 |     }
229 |
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/URLHook.swift:25:21: error: type 'URLProtocol' (aka 'AnyObject') has no member 'registerClass'
23 |
24 |     func load() {
25 |         URLProtocol.registerClass(HTTPStubURLProtocol.self)
   |                     `- error: type 'URLProtocol' (aka 'AnyObject') has no member 'registerClass'
26 |     }
27 |
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/URLHook.swift:29:21: error: type 'URLProtocol' (aka 'AnyObject') has no member 'unregisterClass'
27 |
28 |     func unload() {
29 |         URLProtocol.unregisterClass(HTTPStubURLProtocol.self)
   |                     `- error: type 'URLProtocol' (aka 'AnyObject') has no member 'unregisterClass'
30 |     }
31 |
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/URLSessionHook.swift:41:40: error: cannot find type 'Selector' in scope
39 |     }
40 |
41 |     private func originalSelector() -> Selector {
   |                                        `- error: cannot find type 'Selector' in scope
42 |         #selector(getter: URLSessionConfiguration.protocolClasses)
43 |     }
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/URLSessionHook.swift:45:6: error: Objective-C interoperability is disabled
43 |     }
44 |
45 |     @objc private func protocolClasses() -> [AnyClass] {
   |      `- error: Objective-C interoperability is disabled
46 |         [HTTPStubURLProtocol.self]
47 |     }
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/URLSessionHook.swift:26:28: error: cannot find 'class_getInstanceMethod' in scope
24 |
25 |     func load() {
26 |         guard let method = class_getInstanceMethod(originalClass(), originalSelector()),
   |                            `- error: cannot find 'class_getInstanceMethod' in scope
27 |               let stub = class_getInstanceMethod(URLSessionHook.self, #selector(protocolClasses)) else {
28 |             fatalError("Could not load URLSessionHook")
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/URLSessionHook.swift:27:26: error: cannot find 'class_getInstanceMethod' in scope
25 |     func load() {
26 |         guard let method = class_getInstanceMethod(originalClass(), originalSelector()),
27 |               let stub = class_getInstanceMethod(URLSessionHook.self, #selector(protocolClasses)) else {
   |                          `- error: cannot find 'class_getInstanceMethod' in scope
28 |             fatalError("Could not load URLSessionHook")
29 |         }
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/URLSessionHook.swift:27:71: error: '#selector' can only be used with the Objective-C runtime
25 |     func load() {
26 |         guard let method = class_getInstanceMethod(originalClass(), originalSelector()),
27 |               let stub = class_getInstanceMethod(URLSessionHook.self, #selector(protocolClasses)) else {
   |                                                                       `- error: '#selector' can only be used with the Objective-C runtime
28 |             fatalError("Could not load URLSessionHook")
29 |         }
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/URLSessionHook.swift:30:9: error: cannot find 'method_exchangeImplementations' in scope
28 |             fatalError("Could not load URLSessionHook")
29 |         }
30 |         method_exchangeImplementations(method, stub)
   |         `- error: cannot find 'method_exchangeImplementations' in scope
31 |     }
32 |
[79/80] Compiling RealHTTP URLSessionHook.swift
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/HTTPStubber.swift:189:53: error: cannot find type 'URLRequest' in scope
187 |     /// - Parameter request: url request to check.
188 |     /// - Returns: HTTPSubRequest?
189 |     internal func suitableStubForRequest(_ request: URLRequest) -> HTTPStubRequest? {
    |                                                     `- error: cannot find type 'URLRequest' in scope
190 |         stubbedRequests.first {
191 |             $0.match(request)
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/HTTPStubber.swift:199:41: error: cannot find type 'URLRequest' in scope
197 |     /// - Parameter request: request to check.
198 |     /// - Returns: Bool
199 |     public func shouldHandle(_ request: URLRequest) -> Bool {
    |                                         `- error: cannot find type 'URLRequest' in scope
200 |         switch unhandledMode {
201 |         case .optin:
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/Stub Request/HTTPStubRequest.swift:50:37: error: cannot find type 'URLRequest' in scope
48 |     /// - Parameter urlRequest: url request.
49 |     /// - Returns: Bool
50 |     public func match(_ urlRequest: URLRequest) -> Bool {
   |                                     `- error: cannot find type 'URLRequest' in scope
51 |         for matcher in matchers {
52 |             if matcher.matches(request: urlRequest, for: self) == 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 Request/HTTPStubRequest+Matchers.swift:36:42: error: @escaping attribute only applies to function types
34 |     /// - Parameter matcherFunction: matcher function.
35 |     /// - Returns: Self
36 |     public func match(_ matcherFunction: @escaping HTTPStubCustomMatcher.Handler) -> Self {
   |                                          `- error: @escaping attribute only applies to function types
37 |         let matcher = HTTPStubCustomMatcher(matcherFunction)
38 |         return match(matcher)
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/HTTPStubber.swift:191:16: error: cannot convert value of type 'HTTPStubRequest' to closure result type 'Bool'
189 |     internal func suitableStubForRequest(_ request: URLRequest) -> HTTPStubRequest? {
190 |         stubbedRequests.first {
191 |             $0.match(request)
    |                `- error: cannot convert value of type 'HTTPStubRequest' to closure result type 'Bool'
192 |         }
193 |     }
/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/HTTPStubberErrors.swift:22:28: error: cannot find type 'URLRequest' in scope
20 |
21 | public enum HTTPStubberErrors: Error {
22 |     case matchStubNotFound(URLRequest)
   |                            `- error: cannot find type 'URLRequest' in scope
23 | }
24 |
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:29:25: error: property does not override any property from its superclass
 27 |     private var responseWorkItem: DispatchWorkItem?
 28 |
 29 |     public override var task: URLSessionTask? {
    |                         `- error: property does not override any property from its superclass
 30 |       urlSessionTask
 31 |     }
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:29:31: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 27 |     private var responseWorkItem: DispatchWorkItem?
 28 |
 29 |     public override var task: URLSessionTask? {
    |                               `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 30 |       urlSessionTask
 31 |     }
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/Stubber/Hooks/HTTPStubURLProtocol.swift:33:33: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 31 |     }
 32 |
 33 |     private var urlSessionTask: URLSessionTask?
    |                                 `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 34 |
 35 |     // MARK: - Overrides
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/Stubber/Hooks/HTTPStubURLProtocol.swift:44:54: error: cannot find type 'URLRequest' in scope
 42 |     /// - Parameter request: request to validate.
 43 |     /// - Returns: Bool
 44 |     public override class func canInit(with request: URLRequest) -> Bool {
    |                                                      `- error: cannot find type 'URLRequest' in scope
 45 |         guard let scheme = request.url?.scheme,
 46 |               Self.supportedSchemes.contains(scheme) else {
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:44:32: error: method does not override any method from its superclass
 42 |     /// - Parameter request: request to validate.
 43 |     /// - Returns: Bool
 44 |     public override class func canInit(with request: URLRequest) -> Bool {
    |                                `- error: method does not override any method from its superclass
 45 |         guard let scheme = request.url?.scheme,
 46 |               Self.supportedSchemes.contains(scheme) else {
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:54:77: error: cannot find type 'URLRequest' in scope
 52 |     }
 53 |
 54 |     public override class func canonicalRequest(for request: URLRequest) -> URLRequest {
    |                                                                             `- error: cannot find type 'URLRequest' in scope
 55 |         request
 56 |     }
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:54:62: error: cannot find type 'URLRequest' in scope
 52 |     }
 53 |
 54 |     public override class func canonicalRequest(for request: URLRequest) -> URLRequest {
    |                                                              `- error: cannot find type 'URLRequest' in scope
 55 |         request
 56 |     }
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:54:32: error: method does not override any method from its superclass
 52 |     }
 53 |
 54 |     public override class func canonicalRequest(for request: URLRequest) -> URLRequest {
    |                                `- error: method does not override any method from its superclass
 55 |         request
 56 |     }
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:58:69: error: cannot find type 'URLRequest' in scope
 56 |     }
 57 |
 58 |     public override class func requestIsCacheEquivalent(_ requestA: URLRequest, to requestB: URLRequest) -> Bool {
    |                                                                     `- error: cannot find type 'URLRequest' in scope
 59 |         false
 60 |     }
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:58:94: error: cannot find type 'URLRequest' in scope
 56 |     }
 57 |
 58 |     public override class func requestIsCacheEquivalent(_ requestA: URLRequest, to requestB: URLRequest) -> Bool {
    |                                                                                              `- error: cannot find type 'URLRequest' in scope
 59 |         false
 60 |     }
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:58:32: error: method does not override any method from its superclass
 56 |     }
 57 |
 58 |     public override class func requestIsCacheEquivalent(_ requestA: URLRequest, to requestB: URLRequest) -> Bool {
    |                                `- error: method does not override any method from its superclass
 59 |         false
 60 |     }
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:63:35: error: cannot find type 'URLRequest' in scope
 61 |
 62 |     // Occasionally called by iOS, even though init(task:...) is implemented. Will cause a crash if not present.
 63 |     public override init(request: URLRequest, cachedResponse: CachedURLResponse?, client: URLProtocolClient?) {
    |                                   `- error: cannot find type 'URLRequest' in scope
 64 |         super.init(request: request, cachedResponse: cachedResponse, client: client)
 65 |     }
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:63:91: error: cannot find type 'URLProtocolClient' in scope
 61 |
 62 |     // Occasionally called by iOS, even though init(task:...) is implemented. Will cause a crash if not present.
 63 |     public override init(request: URLRequest, cachedResponse: CachedURLResponse?, client: URLProtocolClient?) {
    |                                                                                           `- error: cannot find type 'URLProtocolClient' in scope
 64 |         super.init(request: request, cachedResponse: cachedResponse, client: client)
 65 |     }
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:63:21: error: initializer does not override a designated initializer from its superclass
 61 |
 62 |     // Occasionally called by iOS, even though init(task:...) is implemented. Will cause a crash if not present.
 63 |     public override init(request: URLRequest, cachedResponse: CachedURLResponse?, client: URLProtocolClient?) {
    |                     `- error: initializer does not override a designated initializer from its superclass
 64 |         super.init(request: request, cachedResponse: cachedResponse, client: client)
 65 |     }
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:63:63: error: 'CachedURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 61 |
 62 |     // Occasionally called by iOS, even though init(task:...) is implemented. Will cause a crash if not present.
 63 |     public override init(request: URLRequest, cachedResponse: CachedURLResponse?, client: URLProtocolClient?) {
    |                                                               `- error: 'CachedURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 64 |         super.init(request: request, cachedResponse: cachedResponse, client: client)
 65 |     }
Foundation.CachedURLResponse:2:18: note: 'CachedURLResponse' 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 CachedURLResponse = AnyObject
  |                  `- note: 'CachedURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:67:83: error: cannot find type 'URLProtocolClient' in scope
 65 |     }
 66 |
 67 |     public init(task: URLSessionTask, cachedResponse: CachedURLResponse?, client: URLProtocolClient?) {
    |                                                                                   `- error: cannot find type 'URLProtocolClient' in scope
 68 |         super.init(request: task.currentRequest!, cachedResponse: cachedResponse, client: client)
 69 |         self.urlSessionTask = task
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:67:23: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 65 |     }
 66 |
 67 |     public init(task: URLSessionTask, cachedResponse: CachedURLResponse?, client: URLProtocolClient?) {
    |                       `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 68 |         super.init(request: task.currentRequest!, cachedResponse: cachedResponse, client: client)
 69 |         self.urlSessionTask = task
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/Stubber/Hooks/HTTPStubURLProtocol.swift:67:55: error: 'CachedURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 65 |     }
 66 |
 67 |     public init(task: URLSessionTask, cachedResponse: CachedURLResponse?, client: URLProtocolClient?) {
    |                                                       `- error: 'CachedURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 68 |         super.init(request: task.currentRequest!, cachedResponse: cachedResponse, client: client)
 69 |         self.urlSessionTask = task
Foundation.CachedURLResponse:2:18: note: 'CachedURLResponse' 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 CachedURLResponse = AnyObject
  |                  `- note: 'CachedURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:72:26: error: method does not override any method from its superclass
 70 |     }
 71 |
 72 |     public override func startLoading() {
    |                          `- error: method does not override any method from its superclass
 73 |         var request = self.request
 74 |
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:135:26: error: method does not override any method from its superclass
133 |     }
134 |
135 |     public override func stopLoading() {
    |                          `- error: method does not override any method from its superclass
136 |         responseWorkItem?.cancel()
137 |     }
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:142:49: error: cannot find type 'URLRequest' in scope
140 |
141 |     private func streamData(_ inputStream: InputStream,
142 |                             forRequest request: URLRequest, forStub stub: HTTPStubResponse,
    |                                                 `- error: cannot find type 'URLRequest' in scope
143 |                             speed: HTTPConnectionSpeed,
144 |                             completion: @escaping ((Error?) -> Void)) {
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:190:43: error: cannot find type 'URLRequest' in scope
188 |     }
189 |
190 |     private func finishRequest(_ request: URLRequest, withStub stubResponse: HTTPStubResponse, cookies: HTTPCookieStorage) {
    |                                           `- error: cannot find type 'URLRequest' in scope
191 |         let url = request.url!
192 |         let headers = stubResponse.headers.asDictionary
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:190:105: error: 'HTTPCookieStorage' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
188 |     }
189 |
190 |     private func finishRequest(_ request: URLRequest, withStub stubResponse: HTTPStubResponse, cookies: HTTPCookieStorage) {
    |                                                                                                         `- error: 'HTTPCookieStorage' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
191 |         let url = request.url!
192 |         let headers = stubResponse.headers.asDictionary
Foundation.HTTPCookieStorage:2:18: note: 'HTTPCookieStorage' 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 HTTPCookieStorage = AnyObject
  |                  `- note: 'HTTPCookieStorage' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:21:35: error: 'URLProtocol' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 19 | import Foundation
 20 |
 21 | public class HTTPStubURLProtocol: URLProtocol {
    |                                   `- error: 'URLProtocol' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 22 |
 23 |     /// This class support only certain common type of schemes.
Foundation.URLProtocol:2:18: note: 'URLProtocol' 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 URLProtocol = AnyObject
  |                  `- note: 'URLProtocol' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:64:9: error: 'super' members cannot be referenced in a root class
 62 |     // Occasionally called by iOS, even though init(task:...) is implemented. Will cause a crash if not present.
 63 |     public override init(request: URLRequest, cachedResponse: CachedURLResponse?, client: URLProtocolClient?) {
 64 |         super.init(request: request, cachedResponse: cachedResponse, client: client)
    |         `- error: 'super' members cannot be referenced in a root class
 65 |     }
 66 |
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:68:9: error: 'super' members cannot be referenced in a root class
 66 |
 67 |     public init(task: URLSessionTask, cachedResponse: CachedURLResponse?, client: URLProtocolClient?) {
 68 |         super.init(request: task.currentRequest!, cachedResponse: cachedResponse, client: client)
    |         `- error: 'super' members cannot be referenced in a root class
 69 |         self.urlSessionTask = task
 70 |     }
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:73:28: error: value of type 'HTTPStubURLProtocol' has no member 'request'
 71 |
 72 |     public override func startLoading() {
 73 |         var request = self.request
    |                            `- error: value of type 'HTTPStubURLProtocol' has no member 'request'
 74 |
 75 |         // Get the cookie storage that applies to this request.
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:76:47: error: type 'HTTPCookieStorage' (aka 'AnyObject') has no member 'shared'
 74 |
 75 |         // Get the cookie storage that applies to this request.
 76 |         var cookieStorage = HTTPCookieStorage.shared
    |                                               `- error: type 'HTTPCookieStorage' (aka 'AnyObject') has no member 'shared'
 77 |         if let session = task?.value(forKey: "session") as? URLSession,
 78 |            let configurationCookieStorage = session.configuration.httpCookieStorage {
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:77:32: error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'value'
 75 |         // Get the cookie storage that applies to this request.
 76 |         var cookieStorage = HTTPCookieStorage.shared
 77 |         if let session = task?.value(forKey: "session") as? URLSession,
    |                                `- error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'value'
 78 |            let configurationCookieStorage = session.configuration.httpCookieStorage {
 79 |             cookieStorage = configurationCookieStorage
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:87:59: error: type 'HTTPCookie' (aka 'AnyObject') has no member 'requestHeaderFields'
 85 |                 request.allHTTPHeaderFields = [String: String]()
 86 |             }
 87 |             request.allHTTPHeaderFields!.merge(HTTPCookie.requestHeaderFields(with: cookies)) { (current, _) in
    |                                                           `- error: type 'HTTPCookie' (aka 'AnyObject') has no member 'requestHeaderFields'
 88 |                 current
 89 |             }
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:99:13: error: cannot find 'client' in scope
 97 |                request.url != nil else {
 98 |             // If not found we throw an error
 99 |             client?.urlProtocol(self, didFailWithError: HTTPStubberErrors.matchStubNotFound(request))
    |             `- error: cannot find 'client' in scope
100 |             return
101 |         }
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:119:22: error: value of type 'HTTPStubURLProtocol' has no member 'client'
117 |
118 |             guard data.count > 0, inputStream.hasBytesAvailable else {
119 |                 self.client?.urlProtocol(self, didLoad: Data())
    |                      `- error: value of type 'HTTPStubURLProtocol' has no member 'client'
120 |                 inputStream.close()
121 |                 return
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:176:26: error: value of type 'HTTPStubURLProtocol' has no member 'client'
174 |                 // adjust slotTime proportionally to the bytes remaining
175 |                 DispatchQueue.global(qos: .default).asyncAfter(deadline: .now() + timingInfo.slotTime) {
176 |                     self.client?.urlProtocol(self, didLoad: data)
    |                          `- error: value of type 'HTTPStubURLProtocol' has no member 'client'
177 |                     self.streamData(inputStream, forRequest: request, forStub: stub, speed: speed, completion: completion)
178 |                 }
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:193:39: error: type 'HTTPCookie' (aka 'AnyObject') has no member 'cookies'
191 |         let url = request.url!
192 |         let headers = stubResponse.headers.asDictionary
193 |         let cookiesToSet = HTTPCookie.cookies(withResponseHeaderFields: headers, for: url)
    |                                       `- error: type 'HTTPCookie' (aka 'AnyObject') has no member 'cookies'
194 |         cookies.setCookies(cookiesToSet, for: request.url!, mainDocumentURL: url)
195 |
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:194:17: error: value of type 'HTTPCookieStorage' (aka 'AnyObject') has no member 'setCookies'
192 |         let headers = stubResponse.headers.asDictionary
193 |         let cookiesToSet = HTTPCookie.cookies(withResponseHeaderFields: headers, for: url)
194 |         cookies.setCookies(cookiesToSet, for: request.url!, mainDocumentURL: url)
    |                 `- error: value of type 'HTTPCookieStorage' (aka 'AnyObject') has no member 'setCookies'
195 |
196 |         if let failureError = stubResponse.failError { // request should fail with given error
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:197:13: error: cannot find 'client' in scope
195 |
196 |         if let failureError = stubResponse.failError { // request should fail with given error
197 |             client?.urlProtocol(self, didFailWithError: failureError)
    |             `- error: cannot find 'client' in scope
198 |             return
199 |         }
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:202:24: error: 'HTTPURLResponse' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
200 |
201 |         let statusCode = stubResponse.statusCode
202 |         let response = HTTPURLResponse(url: url,
    |                        `- error: 'HTTPURLResponse' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
203 |                                        statusCode: statusCode.rawValue,
204 |                                        httpVersion: nil,
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:204:53: error: 'nil' requires a contextual type
202 |         let response = HTTPURLResponse(url: url,
203 |                                        statusCode: statusCode.rawValue,
204 |                                        httpVersion: nil,
    |                                                     `- error: 'nil' requires a contextual type
205 |                                        headerFields: headers)
206 |
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:215:28: error: cannot find 'URLRequest' in scope
213 |             // Includes redirection call to client.
214 |             // A redirect to the client must contain `Location:<URL>` inside the body.
215 |             var redirect = URLRequest(url: location)
    |                            `- error: cannot find 'URLRequest' in scope
216 |             if let cookiesInRedirect = cookies.cookies(for: url) {
217 |                 redirect.allHTTPHeaderFields = HTTPCookie.requestHeaderFields(with: cookiesInRedirect)
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:216:48: error: value of type 'HTTPCookieStorage' (aka 'AnyObject') has no member 'cookies'
214 |             // A redirect to the client must contain `Location:<URL>` inside the body.
215 |             var redirect = URLRequest(url: location)
216 |             if let cookiesInRedirect = cookies.cookies(for: url) {
    |                                                `- error: value of type 'HTTPCookieStorage' (aka 'AnyObject') has no member 'cookies'
217 |                 redirect.allHTTPHeaderFields = HTTPCookie.requestHeaderFields(with: cookiesInRedirect)
218 |             }
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:217:59: error: type 'HTTPCookie' (aka 'AnyObject') has no member 'requestHeaderFields'
215 |             var redirect = URLRequest(url: location)
216 |             if let cookiesInRedirect = cookies.cookies(for: url) {
217 |                 redirect.allHTTPHeaderFields = HTTPCookie.requestHeaderFields(with: cookiesInRedirect)
    |                                                           `- error: type 'HTTPCookie' (aka 'AnyObject') has no member 'requestHeaderFields'
218 |             }
219 |             client?.urlProtocol(self, wasRedirectedTo: redirect, redirectResponse: response!)
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:219:13: error: cannot find 'client' in scope
217 |                 redirect.allHTTPHeaderFields = HTTPCookie.requestHeaderFields(with: cookiesInRedirect)
218 |             }
219 |             client?.urlProtocol(self, wasRedirectedTo: redirect, redirectResponse: response!)
    |             `- error: cannot find 'client' in scope
220 |         }
221 |
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:223:9: error: cannot find 'client' in scope
221 |
222 |         // Send response
223 |         client?.urlProtocol(self, didReceive: response!, cacheStoragePolicy: .notAllowed)
    |         `- error: cannot find 'client' in scope
224 |         if let data = stubResponse.body?.data {
225 |             client?.urlProtocol(self, didLoad: data)
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:223:79: error: cannot infer contextual base in reference to member 'notAllowed'
221 |
222 |         // Send response
223 |         client?.urlProtocol(self, didReceive: response!, cacheStoragePolicy: .notAllowed)
    |                                                                               `- error: cannot infer contextual base in reference to member 'notAllowed'
224 |         if let data = stubResponse.body?.data {
225 |             client?.urlProtocol(self, didLoad: data)
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:225:13: error: cannot find 'client' in scope
223 |         client?.urlProtocol(self, didReceive: response!, cacheStoragePolicy: .notAllowed)
224 |         if let data = stubResponse.body?.data {
225 |             client?.urlProtocol(self, didLoad: data)
    |             `- error: cannot find 'client' in scope
226 |         }
227 |         client?.urlProtocolDidFinishLoading(self)
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:227:9: error: cannot find 'client' in scope
225 |             client?.urlProtocol(self, didLoad: data)
226 |         }
227 |         client?.urlProtocolDidFinishLoading(self)
    |         `- error: cannot find 'client' in scope
228 |     }
229 |
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/URLHook.swift:25:21: error: type 'URLProtocol' (aka 'AnyObject') has no member 'registerClass'
23 |
24 |     func load() {
25 |         URLProtocol.registerClass(HTTPStubURLProtocol.self)
   |                     `- error: type 'URLProtocol' (aka 'AnyObject') has no member 'registerClass'
26 |     }
27 |
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/URLHook.swift:29:21: error: type 'URLProtocol' (aka 'AnyObject') has no member 'unregisterClass'
27 |
28 |     func unload() {
29 |         URLProtocol.unregisterClass(HTTPStubURLProtocol.self)
   |                     `- error: type 'URLProtocol' (aka 'AnyObject') has no member 'unregisterClass'
30 |     }
31 |
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/URLSessionHook.swift:41:40: error: cannot find type 'Selector' in scope
39 |     }
40 |
41 |     private func originalSelector() -> Selector {
   |                                        `- error: cannot find type 'Selector' in scope
42 |         #selector(getter: URLSessionConfiguration.protocolClasses)
43 |     }
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/URLSessionHook.swift:45:6: error: Objective-C interoperability is disabled
43 |     }
44 |
45 |     @objc private func protocolClasses() -> [AnyClass] {
   |      `- error: Objective-C interoperability is disabled
46 |         [HTTPStubURLProtocol.self]
47 |     }
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/URLSessionHook.swift:26:28: error: cannot find 'class_getInstanceMethod' in scope
24 |
25 |     func load() {
26 |         guard let method = class_getInstanceMethod(originalClass(), originalSelector()),
   |                            `- error: cannot find 'class_getInstanceMethod' in scope
27 |               let stub = class_getInstanceMethod(URLSessionHook.self, #selector(protocolClasses)) else {
28 |             fatalError("Could not load URLSessionHook")
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/URLSessionHook.swift:27:26: error: cannot find 'class_getInstanceMethod' in scope
25 |     func load() {
26 |         guard let method = class_getInstanceMethod(originalClass(), originalSelector()),
27 |               let stub = class_getInstanceMethod(URLSessionHook.self, #selector(protocolClasses)) else {
   |                          `- error: cannot find 'class_getInstanceMethod' in scope
28 |             fatalError("Could not load URLSessionHook")
29 |         }
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/URLSessionHook.swift:27:71: error: '#selector' can only be used with the Objective-C runtime
25 |     func load() {
26 |         guard let method = class_getInstanceMethod(originalClass(), originalSelector()),
27 |               let stub = class_getInstanceMethod(URLSessionHook.self, #selector(protocolClasses)) else {
   |                                                                       `- error: '#selector' can only be used with the Objective-C runtime
28 |             fatalError("Could not load URLSessionHook")
29 |         }
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/URLSessionHook.swift:30:9: error: cannot find 'method_exchangeImplementations' in scope
28 |             fatalError("Could not load URLSessionHook")
29 |         }
30 |         method_exchangeImplementations(method, stub)
   |         `- error: cannot find 'method_exchangeImplementations' in scope
31 |     }
32 |
error: emit-module command failed with exit code 1 (use -v to see invocation)
[80/80] Emitting module RealHTTP
/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPClient/HTTPClient.swift:118:59: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
116 |     public init(baseURL: URL?,
117 |                 maxConcurrentOperations: Int? = nil,
118 |                 configuration: URLSessionConfiguration = .default) {
    |                                                           `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
119 |
120 |         self.baseURL = baseURL
/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/HTTPClient/HTTPClient.swift:41:25: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 39 |
 40 |     /// URLSessionConfigurastion used to perform request in this client.
 41 |     public var session: URLSession {
    |                         `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 42 |         loader.session
 43 |     }
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/HTTPClient/HTTPClient.swift:47:29: error: cannot find type 'URLRequest' in scope
 45 |     /// The cache policy for the request. Defaults to `.useProtocolCachePolicy`.
 46 |     /// Requests may override this behaviour.
 47 |     public var cachePolicy: URLRequest.CachePolicy {
    |                             `- error: cannot find type 'URLRequest' in scope
 48 |         get { loader.cachePolicy }
 49 |         set { loader.cachePolicy = newValue }
/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPClient/HTTPClient.swift:66:31: error: 'HTTPCookieStorage' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 64 |
 65 |     /// Cookies storage.
 66 |     public var cookieStorage: HTTPCookieStorage? {
    |                               `- error: 'HTTPCookieStorage' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 67 |         session.configuration.httpCookieStorage
 68 |     }
Foundation.HTTPCookieStorage:2:18: note: 'HTTPCookieStorage' 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 HTTPCookieStorage = AnyObject
  |                  `- note: 'HTTPCookieStorage' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPClient/HTTPClient.swift:118:32: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
116 |     public init(baseURL: URL?,
117 |                 maxConcurrentOperations: Int? = nil,
118 |                 configuration: URLSessionConfiguration = .default) {
    |                                `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
119 |
120 |         self.baseURL = baseURL
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' 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 URLSessionConfiguration = AnyObject
  |                  `- note: 'URLSessionConfiguration' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPClient/HTTPClient.swift:132:46: error: 'HTTPCookie' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
130 |     /// - Parameter url: URL.
131 |     /// - Returns: `[HTTCookie]`
132 |     public func cookies(forURL url: URL) -> [HTTPCookie] {
    |                                              `- error: 'HTTPCookie' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
133 |         session.configuration.httpCookieStorage?.cookies(for: url) ?? []
134 |     }
Foundation.HTTPCookie:2:18: note: 'HTTPCookie' 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 HTTPCookie = AnyObject
  |                  `- note: 'HTTPCookie' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPClient/HTTPClientDelegate.swift:23:62: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
21 | /// Identify a list of events you can monitor during the lifecycle of the client instance.
22 | public protocol HTTPClientDelegate: AnyObject {
23 |     typealias ExecutedRequest = (request: HTTPRequest, task: URLSessionTask)
   |                                                              `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
24 |
25 |     /// A new request is enqueued into the client's pool.
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/HTTPClient/HTTPClientDelegate.swift:73:32: error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
71 |     ///   - authChallenge: challenge received.
72 |     func client(_ client: HTTPClient, didReceiveAuthChallangeFor request: ExecutedRequest,
73 |                 authChallenge: URLAuthenticationChallenge)
   |                                `- error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
74 |
75 |     /// Client executed the request and collected relative metrics stats.
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/HTTPRequest/HTTPRequest.swift:23:48: error: cannot find type 'URLRequest' in scope
 21 | public class HTTPRequest: CustomStringConvertible {
 22 |     public typealias RequestTask = Task<HTTPResponse, Error>
 23 |     public typealias RequestModifier = ((inout URLRequest) throws -> Void)
    |                                                `- error: cannot find type 'URLRequest' in scope
 24 |     internal static let DefaultTimeout = TimeInterval(10)
 25 |
/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPRequest/HTTPRequest.swift:34:48: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 32 |
 33 |     /// Session task currently in execution.
 34 |     public internal(set) weak var sessionTask: URLSessionTask?
    |                                                `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 35 |
 36 |     /// Client in which the task is running.
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/HTTPRequest/HTTPRequest.swift:123:29: error: cannot find type 'URLRequest' in scope
121 |     /// NOTE:
122 |     /// When not specified the HTTPClient's value where the request is executed is used.
123 |     public var cachePolicy: URLRequest.CachePolicy?
    |                             `- error: cannot find type 'URLRequest' in scope
124 |
125 |     /// The HTTP Protocol version to use for request.
/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPRequest/HTTPRequest.swift:293:49: error: 'HTTPCookie' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
291 |     /// 2. Each new get call to cookies produce new instances of `HTTPCookie` even with the same values
292 |     ///    (this because value is parsed on the fly from `headers` properties).
293 |     public func setCookiesInHeaders(_ cookies: [HTTPCookie]) {
    |                                                 `- error: 'HTTPCookie' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
294 |         let headerFields = HTTPCookie.requestHeaderFields(with: cookies).map { item in
295 |             HTTPHeaders.Element(name: item.key, value: item.value)
Foundation.HTTPCookie:2:18: note: 'HTTPCookie' 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 HTTPCookie = AnyObject
  |                  `- note: 'HTTPCookie' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPRequest/HTTPRequest.swift:417:79: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
415 |     /// - Parameter client: client where the query should be executed.
416 |     /// - Returns: `URLSessionTask`
417 |     internal func urlSessionTask(inClient client: HTTPClient) async throws -> URLSessionTask {
    |                                                                               `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
418 |         // Generate the `URLRequest` instance.
419 |         var urlRequest = try await urlRequest(inClient: client)
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/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/HTTPRequest/HTTPRequest.swift:502:28: error: cannot find type 'URLRequest' in scope
500 |         case follow
501 |         case followWithOriginalSettings
502 |         case followCustom((URLRequest) -> URLRequest?)
    |                            `- error: cannot find type 'URLRequest' in scope
503 |         case refuse
504 |     }
/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPRequest/HTTPRequest.swift:502:43: error: cannot find type 'URLRequest' in scope
500 |         case follow
501 |         case followWithOriginalSettings
502 |         case followCustom((URLRequest) -> URLRequest?)
    |                                           `- error: cannot find type 'URLRequest' in scope
503 |         case refuse
504 |     }
/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPResponse/HTTPResponse.swift:34:27: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 32 |
 33 |     /// `URLResponse` object received from server.
 34 |     open var urlResponse: URLResponse?
    |                           `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 35 |
 36 |     /// Casted `HTTPURLResponse` object received from server.
Foundation.URLResponse:2:18: note: 'URLResponse' 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 URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPResponse/HTTPResponse.swift:37:30: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 35 |
 36 |     /// Casted `HTTPURLResponse` object received from server.
 37 |     public var httpResponse: HTTPURLResponse? {
    |                              `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 38 |         urlResponse as? HTTPURLResponse
 39 |     }
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/HTTPResponse/HTTPResponse.swift:47:38: error: cannot find type 'URLRequest' in scope
 45 |     ///             except when the server has responded to the initial request with a
 46 |     ///             redirect to a different URL.
 47 |     open var urlRequests: (original: URLRequest?, current: URLRequest?) = (nil, nil)
    |                                      `- error: cannot find type 'URLRequest' in scope
 48 |
 49 |     /// Raw data received from server.
/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPResponse/HTTPResponse.swift:47:60: error: cannot find type 'URLRequest' in scope
 45 |     ///             except when the server has responded to the initial request with a
 46 |     ///             redirect to a different URL.
 47 |     open var urlRequests: (original: URLRequest?, current: URLRequest?) = (nil, nil)
    |                                                            `- error: cannot find type 'URLRequest' in scope
 48 |
 49 |     /// Raw data received from server.
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPDataLoader/HTTPDataLoader+Response.swift:35:29: error: cannot find type 'URLSessionTaskMetrics' in scope
33 |
34 |     /// `URLSessionTaskMetrics` received data.
35 |     var sessionTaskMetrics: URLSessionTaskMetrics?
   |                             `- error: cannot find type 'URLSessionTaskMetrics' in scope
36 |
37 |     /// Parsed HTTP Metrics from `sessionTaskMetrics`.
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPDataLoader/HTTPDataLoader+Response.swift:44:22: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
42 |
43 |     /// response received from fetch.
44 |     var urlResponse: URLResponse?
   |                      `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
45 |
46 |     /// Completion callback called by the data loader in order to incapsulate the async/await logic.
Foundation.URLResponse:2:18: note: 'URLResponse' 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 URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/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:25:32: error: cannot find type 'URLSessionDelegate' in scope
 23 | /// This because new `URLSession` methods are introduced and available only starting from iOS 15+.
 24 | internal class HTTPDataLoader: NSObject,
 25 |                                URLSessionDelegate, URLSessionDataDelegate,
    |                                `- error: cannot find type 'URLSessionDelegate' in scope
 26 |                                URLSessionDownloadDelegate,
 27 |                                URLSessionTaskDelegate, URLSessionStreamDelegate {
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPDataLoader/HTTPDataLoader.swift:25:52: error: cannot find type 'URLSessionDataDelegate' in scope
 23 | /// This because new `URLSession` methods are introduced and available only starting from iOS 15+.
 24 | internal class HTTPDataLoader: NSObject,
 25 |                                URLSessionDelegate, URLSessionDataDelegate,
    |                                                    `- error: cannot find type 'URLSessionDataDelegate' in scope
 26 |                                URLSessionDownloadDelegate,
 27 |                                URLSessionTaskDelegate, URLSessionStreamDelegate {
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPDataLoader/HTTPDataLoader.swift:26:32: error: cannot find type 'URLSessionDownloadDelegate' in scope
 24 | internal class HTTPDataLoader: NSObject,
 25 |                                URLSessionDelegate, URLSessionDataDelegate,
 26 |                                URLSessionDownloadDelegate,
    |                                `- error: cannot find type 'URLSessionDownloadDelegate' in scope
 27 |                                URLSessionTaskDelegate, URLSessionStreamDelegate {
 28 |
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPDataLoader/HTTPDataLoader.swift:27:32: error: cannot find type 'URLSessionTaskDelegate' in scope
 25 |                                URLSessionDelegate, URLSessionDataDelegate,
 26 |                                URLSessionDownloadDelegate,
 27 |                                URLSessionTaskDelegate, URLSessionStreamDelegate {
    |                                `- error: cannot find type 'URLSessionTaskDelegate' in scope
 28 |
 29 |     // MARK: - Internal Properties
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPDataLoader/HTTPDataLoader.swift:27:56: error: cannot find type 'URLSessionStreamDelegate' in scope
 25 |                                URLSessionDelegate, URLSessionDataDelegate,
 26 |                                URLSessionDownloadDelegate,
 27 |                                URLSessionTaskDelegate, URLSessionStreamDelegate {
    |                                                        `- error: cannot find type 'URLSessionStreamDelegate' in scope
 28 |
 29 |     // MARK: - Internal Properties
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPDataLoader/HTTPDataLoader.swift:32:27: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 30 |
 31 |     /// URLSession instance which manage calls.
 32 |     internal var session: URLSession!
    |                           `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 33 |
 34 |     /// Weak references to the parent HTTPClient instance.
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:39:31: error: cannot find type 'URLRequest' in scope
 37 |     /// The cache policy for the request. Defaults to `.useProtocolCachePolicy`.
 38 |     /// Requests may override this behaviour.
 39 |     internal var cachePolicy: URLRequest.CachePolicy = .useProtocolCachePolicy
    |                               `- error: cannot find type 'URLRequest' in scope
 40 |
 41 |     // MARK: - Private Properties
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPDataLoader/HTTPDataLoader.swift:56:34: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 54 |     ///   - configuration: configuration setting.
 55 |     ///   - maxConcurrentOperations: number of concurrent operations.
 56 |     required init(configuration: URLSessionConfiguration,
    |                                  `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 57 |                   maxConcurrentOperations: Int) {
 58 |         super.init()
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' 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 URLSessionConfiguration = AnyObject
  |                  `- note: 'URLSessionConfiguration' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPDataLoader/HTTPDataLoader.swift:151:78: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
149 |     /// - Returns: `HTTPResponse`
150 |     private func performRetryStrategy(_ strategy: HTTPRetryStrategy,
151 |                                       forRequest request: HTTPRequest, task: URLSessionTask,
    |                                                                              `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
152 |                                       withResponse response: HTTPResponse) async throws -> HTTPResponse {
153 |
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:217:54: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
215 |     ///   - completion: completion block to call at the end of the operation.
216 |     /// - Returns: `URLSessionTask`
217 |     private func fetch(_ request: HTTPRequest, task: URLSessionTask,
    |                                                      `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
218 |                        completion: @escaping HTTPDataLoaderResponse.Completion) -> URLSessionTask {
219 |         session.delegateQueue.addOperation { [weak self] in
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:218:84: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
216 |     /// - Returns: `URLSessionTask`
217 |     private func fetch(_ request: HTTPRequest, task: URLSessionTask,
218 |                        completion: @escaping HTTPDataLoaderResponse.Completion) -> URLSessionTask {
    |                                                                                    `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
219 |         session.delegateQueue.addOperation { [weak self] in
220 |             guard let self = self else { 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:263:69: error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
261 |                            task: URLSessionTask,
262 |                            didReceive challenge: URLAuthenticationChallenge,
263 |                            completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) {
    |                                                                     `- error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
264 |         evaluateAuthChallange(task, challenge: challenge, completionHandler: completionHandler)
265 |     }
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPDataLoader/HTTPDataLoader.swift:260:39: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
258 |     // MARK: - Security Support
259 |
260 |     public func urlSession(_ session: URLSession,
    |                                       `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
261 |                            task: URLSessionTask,
262 |                            didReceive challenge: URLAuthenticationChallenge,
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:261:34: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
259 |
260 |     public func urlSession(_ session: URLSession,
261 |                            task: URLSessionTask,
    |                                  `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
262 |                            didReceive challenge: URLAuthenticationChallenge,
263 |                            completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) {
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:262:50: error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
260 |     public func urlSession(_ session: URLSession,
261 |                            task: URLSessionTask,
262 |                            didReceive challenge: URLAuthenticationChallenge,
    |                                                  `- error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
263 |                            completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) {
264 |         evaluateAuthChallange(task, challenge: challenge, completionHandler: completionHandler)
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:269:39: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
267 |     // MARK: - Core Operations
268 |
269 |     public func urlSession(_ session: URLSession, didBecomeInvalidWithError error: Error?) {
    |                                       `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
270 |         didCompleteAllHandlersWithSessionError(error)
271 |     }
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:273:39: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
271 |     }
272 |
273 |     public func urlSession(_ session: URLSession, dataTask: URLSessionDataTask,
    |                                       `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
274 |                            didReceive data: Data) {
275 |         self.dataLoadersMap[dataTask.taskIdentifier]?.appendData(data)
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:273:61: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
271 |     }
272 |
273 |     public func urlSession(_ session: URLSession, dataTask: URLSessionDataTask,
    |                                                             `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
274 |                            didReceive data: Data) {
275 |         self.dataLoadersMap[dataTask.taskIdentifier]?.appendData(data)
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' 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 URLSessionDataTask = AnyObject
  |                  `- note: 'URLSessionDataTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPDataLoader/HTTPDataLoader.swift:281:41: error: cannot find type 'URLRequest' in scope
279 |                     task: URLSessionTask,
280 |                     willPerformHTTPRedirection response: HTTPURLResponse,
281 |                     newRequest request: URLRequest,
    |                                         `- error: cannot find type 'URLRequest' in scope
282 |                     completionHandler: @escaping (URLRequest?) -> Void) {
283 |         evaluateRedirect(task: task, response: response, request: request, completion: completionHandler)
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPDataLoader/HTTPDataLoader.swift:282:51: error: cannot find type 'URLRequest' in scope
280 |                     willPerformHTTPRedirection response: HTTPURLResponse,
281 |                     newRequest request: URLRequest,
282 |                     completionHandler: @escaping (URLRequest?) -> Void) {
    |                                                   `- error: cannot find type 'URLRequest' in scope
283 |         evaluateRedirect(task: task, response: response, request: request, completion: completionHandler)
284 |     }
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPDataLoader/HTTPDataLoader.swift:278:32: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
276 |     }
277 |
278 |     func urlSession(_ session: URLSession,
    |                                `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
279 |                     task: URLSessionTask,
280 |                     willPerformHTTPRedirection response: HTTPURLResponse,
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:279:27: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
277 |
278 |     func urlSession(_ session: URLSession,
279 |                     task: URLSessionTask,
    |                           `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
280 |                     willPerformHTTPRedirection response: HTTPURLResponse,
281 |                     newRequest request: URLRequest,
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:280:58: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
278 |     func urlSession(_ session: URLSession,
279 |                     task: URLSessionTask,
280 |                     willPerformHTTPRedirection response: HTTPURLResponse,
    |                                                          `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
281 |                     newRequest request: URLRequest,
282 |                     completionHandler: @escaping (URLRequest?) -> Void) {
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:286:39: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
284 |     }
285 |
286 |     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.
287 |                            didCompleteWithError error: Error?) {
288 |         let handler = dataLoadersMap[task.taskIdentifier]
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:286:57: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
284 |     }
285 |
286 |     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.
287 |                            didCompleteWithError error: Error?) {
288 |         let handler = dataLoadersMap[task.taskIdentifier]
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:293:50: error: cannot find type 'URLSessionTaskMetrics' in scope
291 |
292 |     func urlSession(_ session: URLSession, task: URLSessionTask,
293 |                     didFinishCollecting metrics: URLSessionTaskMetrics) {
    |                                                  `- error: cannot find type 'URLSessionTaskMetrics' in scope
294 |
295 |         // Metrics may fire after URLSession:task:didCompleteWithError: is called, delegate may be nil
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPDataLoader/HTTPDataLoader.swift:292:32: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
290 |     }
291 |
292 |     func urlSession(_ session: URLSession, task: URLSessionTask,
    |                                `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
293 |                     didFinishCollecting metrics: URLSessionTaskMetrics) {
294 |
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:292:50: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
290 |     }
291 |
292 |     func urlSession(_ session: URLSession, task: URLSessionTask,
    |                                                  `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
293 |                     didFinishCollecting metrics: URLSessionTaskMetrics) {
294 |
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:312:39: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
310 |     // MARK: - Upload Progress
311 |
312 |     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.
313 |                            didSendBodyData bytesSent: Int64,
314 |                            totalBytesSent: Int64, totalBytesExpectedToSend: Int64) {
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:312:57: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
310 |     // MARK: - Upload Progress
311 |
312 |     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.
313 |                            didSendBodyData bytesSent: Int64,
314 |                            totalBytesSent: Int64, totalBytesExpectedToSend: Int64) {
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:324:32: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
322 |     // MARK: - Download Progress
323 |
324 |     func urlSession(_ session: URLSession, downloadTask: URLSessionDownloadTask,
    |                                `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
325 |                     didFinishDownloadingTo location: URL) {
326 |         guard let handler = dataLoadersMap[downloadTask.taskIdentifier],
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:324:58: error: 'URLSessionDownloadTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
322 |     // MARK: - Download Progress
323 |
324 |     func urlSession(_ session: URLSession, downloadTask: URLSessionDownloadTask,
    |                                                          `- error: 'URLSessionDownloadTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
325 |                     didFinishDownloadingTo location: URL) {
326 |         guard let handler = dataLoadersMap[downloadTask.taskIdentifier],
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:337:50: error: 'URLSession' 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: 'URLSession' 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.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: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/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/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/CredentialSecurity.swift:24:49: error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
22 | /// authenticated session using the `URLSession`'s `URLAuthenticationChallenge`.
23 | public struct CredentialSecurity: HTTPSecurityService {
24 |     public typealias AuthenticationCallback = ((URLAuthenticationChallenge) -> URLCredential?)
   |                                                 `- error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
25 |
26 |     // MARK: - Public Properties
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/CredentialSecurity.swift:24:80: error: 'URLCredential' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
22 | /// authenticated session using the `URLSession`'s `URLAuthenticationChallenge`.
23 | public struct CredentialSecurity: HTTPSecurityService {
24 |     public typealias AuthenticationCallback = ((URLAuthenticationChallenge) -> URLCredential?)
   |                                                                                `- error: 'URLCredential' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
25 |
26 |     // MARK: - Public Properties
Foundation.URLCredential:2:18: note: 'URLCredential' 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 URLCredential = AnyObject
  |                  `- note: 'URLCredential' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPSecurity/Options/CredentialSecurity.swift:45:75: error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
43 |                                  forRequest request: HTTPRequest,
44 |                                  task: URLSessionTask,
45 |                                  completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) {
   |                                                                           `- error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
46 |         guard let cred = callback(challenge) else {
47 |             completionHandler(.rejectProtectionSpace, nil)
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPSecurity/Options/CredentialSecurity.swift:42:47: error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
40 |     // MARK: - Conformance
41 |
42 |     public func receiveChallenge(_ challenge: URLAuthenticationChallenge,
   |                                               `- error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
43 |                                  forRequest request: HTTPRequest,
44 |                                  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/CredentialSecurity.swift:44:40: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
42 |     public func receiveChallenge(_ challenge: URLAuthenticationChallenge,
43 |                                  forRequest request: HTTPRequest,
44 |                                  task: URLSessionTask,
   |                                        `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
45 |                                  completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) {
46 |         guard let cred = callback(challenge) 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/HTTPSecurity/Options/SelfSignedCertsSecurity.swift:32:75: error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
30 |                                  forRequest request: HTTPRequest,
31 |                                  task: URLSessionTask,
32 |                                  completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) {
   |                                                                           `- error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
33 |         guard let trust = challenge.protectionSpace.serverTrust else {
34 |             completionHandler(.useCredential, nil)
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPSecurity/Options/SelfSignedCertsSecurity.swift:29:47: error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
27 | public struct SelfSignedCertsSecurity: HTTPSecurityService {
28 |
29 |     public func receiveChallenge(_ challenge: URLAuthenticationChallenge,
   |                                               `- error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
30 |                                  forRequest request: HTTPRequest,
31 |                                  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/SelfSignedCertsSecurity.swift:31:40: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
29 |     public func receiveChallenge(_ challenge: URLAuthenticationChallenge,
30 |                                  forRequest request: HTTPRequest,
31 |                                  task: URLSessionTask,
   |                                        `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
32 |                                  completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) {
33 |         guard let trust = challenge.protectionSpace.serverTrust 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/Other Structures/Foundation+Extensions/Foundation+Extension.swift:238:1: warning: extension declares a conformance of imported type 'URL' to imported protocols 'ExpressibleByStringLiteral', 'ExpressibleByExtendedGraphemeClusterLiteral', 'ExpressibleByUnicodeScalarLiteral'; this will not behave correctly if the owners of 'FoundationEssentials' introduce this conformance in the future
236 | // MARK: - URL
237 |
238 | extension URL: ExpressibleByStringLiteral {
    | |- warning: extension declares a conformance of imported type 'URL' to imported protocols 'ExpressibleByStringLiteral', 'ExpressibleByExtendedGraphemeClusterLiteral', 'ExpressibleByUnicodeScalarLiteral'; this will not behave correctly if the owners of 'FoundationEssentials' introduce this conformance in the future
    | `- note: add '@retroactive' to silence this warning
239 |
240 |     public init(stringLiteral value: StaticString) {
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Foundation+Extensions/URLRequest+Extension.swift:21:11: error: cannot find type 'URLRequest' in scope
 19 | import Foundation
 20 |
 21 | extension URLRequest {
    |           `- error: cannot find type 'URLRequest' in scope
 22 |
 23 |     // MARK: - Additional Initialization
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/HTTPStatusCode.swift:228:52: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
226 |     ///
227 |     /// - Parameter urlResponse: url response instance
228 |     public static func fromResponse(_ URLResponse: URLResponse?) -> HTTPStatusCode {
    |                                                    `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
229 |         guard let statusCode = (URLResponse as? HTTPURLResponse)?.statusCode else {
230 |             return .none
Foundation.URLResponse:2:18: note: 'URLResponse' 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 URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/HTTPStatusCode.swift:284:1: error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended
282 | // MARK: HTTPURLResponse + Extension
283 |
284 | extension HTTPURLResponse {
    | `- error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended
285 |
286 |     /// Status of the response as `HTTPStatusCode` object
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Headers/HTTPHeaders.swift:301:1: error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended
299 | // MARK: HTTPHeaders (HTTPURLResponse Extension)
300 |
301 | extension HTTPURLResponse {
    | `- error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended
302 |
303 |     /// Returns `allHeaderFields` as `HTTPHeaders`.
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Headers/HTTPHeaders.swift:312:1: error: non-nominal type 'URLSessionConfiguration' (aka 'AnyObject') cannot be extended
310 | // MARK: HTTPHeaders (URLSessionConfiguration Extension)
311 |
312 | extension URLSessionConfiguration {
    | `- error: non-nominal type 'URLSessionConfiguration' (aka 'AnyObject') cannot be extended
313 |
314 |     /// `httpAdditionalHeaders` as `HTTPHeaders` object.
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Metrics/HTTPMetrics.swift:44:29: error: cannot find type 'URLSessionTaskMetrics' in scope
 42 |
 43 |     /// Task metrics.
 44 |     public let taskMetrics: URLSessionTaskMetrics?
    |                             `- error: cannot find type 'URLSessionTaskMetrics' in scope
 45 |
 46 |     /// Associated task.
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Metrics/HTTPMetrics.swift:47:40: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 45 |
 46 |     /// Associated task.
 47 |     public private(set) weak var task: URLSessionTask?
    |                                        `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 48 |
 49 |     /// Number of redirects made.
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/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/Other Structures/Metrics/HTTPMetrics.swift:57:59: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 55 |
 56 |     /// Initialize the object with the metrics gathered for a task.
 57 |     internal init?(metrics: URLSessionTaskMetrics?, task: URLSessionTask?) {
    |                                                           `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 58 |         self.taskMetrics = metrics
 59 |         self.task = task
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/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/Metrics/HTTPMetrics.swift:100:29: error: cannot find type 'URLRequest' in scope
 98 |
 99 |         /// The transaction request.
100 |         public var request: URLRequest {
    |                             `- error: cannot find type 'URLRequest' in scope
101 |             transactionMetrics.request
102 |         }
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Metrics/HTTPMetrics.swift:109:33: error: cannot find type 'URLSessionTaskTransactionMetrics' in scope
107 |         ///
108 |         /// - Parameter metrics: metrics instance
109 |         internal init?(metrics: URLSessionTaskTransactionMetrics?) {
    |                                 `- error: cannot find type 'URLSessionTaskTransactionMetrics' in scope
110 |             guard let metrics = metrics else {
111 |                 return nil
/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/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/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/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:
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/Stub Matchers/Built-In Matchers/HTTPStubURITemplateMatcher.swift:52:34: error: cannot find type 'URLRequest' in scope
50 |     // MARK: - Conformance
51 |
52 |     public func matches(request: URLRequest, for source: HTTPMatcherSource) -> Bool {
   |                                  `- error: cannot find type 'URLRequest' in scope
53 |         if let URLString = request.url?.absoluteString {
54 |             if template.extract(URLString) != nil {
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/Stub Matchers/Built-In Matchers/HTTPStubURLMatcher.swift:46:34: error: cannot find type 'URLRequest' in scope
44 |     // MARK: - Conformance
45 |
46 |     public func matches(request: URLRequest, for source: HTTPMatcherSource) -> Bool {
   |                                  `- error: cannot find type 'URLRequest' in scope
47 |         guard var targetURL = request.url else {
48 |             return false
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/Stub Request/HTTPDynamicStubResponse.swift:24:47: error: cannot find type 'URLRequest' in scope
22 | /// received from the matcher.
23 | public struct HTTPDynamicStubResponse: HTTPStubResponseProvider {
24 |     public typealias DataCallbackProvider = ((URLRequest, HTTPStubRequest) -> HTTPStubResponse)
   |                                               `- error: cannot find type 'URLRequest' in scope
25 |
26 |     // MARK: - Public Properties
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/Stub Request/HTTPDynamicStubResponse.swift:36:29: error: @escaping attribute only applies to function types
34 |     ///
35 |     /// - Parameter callback: callback provider.
36 |     public init(_ callback: @escaping DataCallbackProvider) {
   |                             `- error: @escaping attribute only applies to function types
37 |         self.callback = callback
38 |     }
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/Stub Request/HTTPDynamicStubResponse.swift:42:52: error: cannot find type 'URLRequest' in scope
40 |     // MARK: - Protocol Conformance
41 |
42 |     public func response(forURLRequest urlRequest: URLRequest, matchedStub stubRequest: HTTPStubRequest) -> HTTPStubResponse? {
   |                                                    `- error: cannot find type 'URLRequest' in scope
43 |         callback(urlRequest, stubRequest)
44 |     }
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/Stub Request/HTTPStubRequest.swift:74:45: error: cannot find type 'URLRequest' in scope
72 |     ///   - stubRequest: stub request matched.
73 |     /// - Returns: HTTPStubResponse
74 |     func response(forURLRequest urlRequest: URLRequest, matchedStub stubRequest: HTTPStubRequest) -> HTTPStubResponse?
   |                                             `- error: cannot find type 'URLRequest' in scope
75 |
76 | }
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/Stub Request/HTTPStubRequest.swift:50:37: error: cannot find type 'URLRequest' in scope
48 |     /// - Parameter urlRequest: url request.
49 |     /// - Returns: Bool
50 |     public func match(_ urlRequest: URLRequest) -> Bool {
   |                                     `- error: cannot find type 'URLRequest' in scope
51 |         for matcher in matchers {
52 |             if matcher.matches(request: urlRequest, for: self) == false {
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/Stub Request/HTTPStubRequest+Matchers.swift:36:42: error: @escaping attribute only applies to function types
34 |     /// - Parameter matcherFunction: matcher function.
35 |     /// - Returns: Self
36 |     public func match(_ matcherFunction: @escaping HTTPStubCustomMatcher.Handler) -> Self {
   |                                          `- error: @escaping attribute only applies to function types
37 |         let matcher = HTTPStubCustomMatcher(matcherFunction)
38 |         return match(matcher)
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/Stub Request/HTTPStubRequest+Stub.swift:31:73: error: @escaping attribute only applies to function types
 29 |     ///   - provider: data provider callback.
 30 |     /// - Returns: Self
 31 |     public func stub(for method: HTTPMethod, responseProvider provider: @escaping HTTPDynamicStubResponse.DataCallbackProvider) -> Self {
    |                                                                         `- error: @escaping attribute only applies to function types
 32 |         responses[method] = HTTPDynamicStubResponse(provider)
 33 |         return self
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/Stub Request/HTTPStubRequest.swift:82:52: error: cannot find type 'URLRequest' in scope
80 | extension HTTPStubResponse: HTTPStubResponseProvider {
81 |
82 |     public func response(forURLRequest urlRequest: URLRequest, matchedStub stubRequest: HTTPStubRequest) -> HTTPStubResponse? {
   |                                                    `- error: cannot find type 'URLRequest' in scope
83 |         // it returns the object itself.
84 |         self
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/Stub Response/HTTPEchoResponse.swift:24:53: error: cannot find type 'URLRequest' in scope
22 | public class HTTPEchoResponse: HTTPStubResponse {
23 |
24 |     public override func adaptForRequest(_ request: URLRequest) -> HTTPStubResponse {
   |                                                     `- error: cannot find type 'URLRequest' in scope
25 |         let response = HTTPStubResponse()
26 |         response.body = request.body
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/Stub Response/HTTPEchoResponse.swift:24:26: error: method does not override any method from its superclass
22 | public class HTTPEchoResponse: HTTPStubResponse {
23 |
24 |     public override func adaptForRequest(_ request: URLRequest) -> HTTPStubResponse {
   |                          `- error: method does not override any method from its superclass
25 |         let response = HTTPStubResponse()
26 |         response.body = request.body
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/Stub Response/HTTPStubResponse.swift:47:36: error: 'StoragePolicy' is not a member type of type 'Foundation.URLCache' (aka 'AnyObject')
 45 |     /// Allow response caching. Usually you dont want to have a cached response
 46 |     /// so the default behaviour is set to `notAllowed`.
 47 |     open var cachePolicy: URLCache.StoragePolicy = .notAllowed
    |                                    `- error: 'StoragePolicy' is not a member type of type 'Foundation.URLCache' (aka 'AnyObject')
 48 |
 49 |     /// You can define a delay to return the reponse.
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/Stub Response/HTTPStubResponse.swift:69:42: error: cannot find type 'URLRequest' in scope
 67 |     /// - Parameter request: request.
 68 |     /// - Returns: `HTTPStubResponse`
 69 |     open func adaptForRequest(_ request: URLRequest) -> HTTPStubResponse {
    |                                          `- error: cannot find type 'URLRequest' in scope
 70 |         self
 71 |     }
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/HTTPStubber.swift:189:53: error: cannot find type 'URLRequest' in scope
187 |     /// - Parameter request: url request to check.
188 |     /// - Returns: HTTPSubRequest?
189 |     internal func suitableStubForRequest(_ request: URLRequest) -> HTTPStubRequest? {
    |                                                     `- error: cannot find type 'URLRequest' in scope
190 |         stubbedRequests.first {
191 |             $0.match(request)
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/HTTPStubber.swift:199:41: error: cannot find type 'URLRequest' in scope
197 |     /// - Parameter request: request to check.
198 |     /// - Returns: Bool
199 |     public func shouldHandle(_ request: URLRequest) -> Bool {
    |                                         `- error: cannot find type 'URLRequest' in scope
200 |         switch unhandledMode {
201 |         case .optin:
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/HTTPStubberErrors.swift:22:28: error: cannot find type 'URLRequest' in scope
20 |
21 | public enum HTTPStubberErrors: Error {
22 |     case matchStubNotFound(URLRequest)
   |                            `- error: cannot find type 'URLRequest' in scope
23 | }
24 |
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:29:25: error: property does not override any property from its superclass
 27 |     private var responseWorkItem: DispatchWorkItem?
 28 |
 29 |     public override var task: URLSessionTask? {
    |                         `- error: property does not override any property from its superclass
 30 |       urlSessionTask
 31 |     }
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:29:31: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 27 |     private var responseWorkItem: DispatchWorkItem?
 28 |
 29 |     public override var task: URLSessionTask? {
    |                               `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 30 |       urlSessionTask
 31 |     }
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/Stubber/Hooks/HTTPStubURLProtocol.swift:33:33: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 31 |     }
 32 |
 33 |     private var urlSessionTask: URLSessionTask?
    |                                 `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 34 |
 35 |     // MARK: - Overrides
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/Stubber/Hooks/HTTPStubURLProtocol.swift:44:54: error: cannot find type 'URLRequest' in scope
 42 |     /// - Parameter request: request to validate.
 43 |     /// - Returns: Bool
 44 |     public override class func canInit(with request: URLRequest) -> Bool {
    |                                                      `- error: cannot find type 'URLRequest' in scope
 45 |         guard let scheme = request.url?.scheme,
 46 |               Self.supportedSchemes.contains(scheme) else {
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:44:32: error: method does not override any method from its superclass
 42 |     /// - Parameter request: request to validate.
 43 |     /// - Returns: Bool
 44 |     public override class func canInit(with request: URLRequest) -> Bool {
    |                                `- error: method does not override any method from its superclass
 45 |         guard let scheme = request.url?.scheme,
 46 |               Self.supportedSchemes.contains(scheme) else {
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:54:77: error: cannot find type 'URLRequest' in scope
 52 |     }
 53 |
 54 |     public override class func canonicalRequest(for request: URLRequest) -> URLRequest {
    |                                                                             `- error: cannot find type 'URLRequest' in scope
 55 |         request
 56 |     }
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:54:62: error: cannot find type 'URLRequest' in scope
 52 |     }
 53 |
 54 |     public override class func canonicalRequest(for request: URLRequest) -> URLRequest {
    |                                                              `- error: cannot find type 'URLRequest' in scope
 55 |         request
 56 |     }
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:54:32: error: method does not override any method from its superclass
 52 |     }
 53 |
 54 |     public override class func canonicalRequest(for request: URLRequest) -> URLRequest {
    |                                `- error: method does not override any method from its superclass
 55 |         request
 56 |     }
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:58:69: error: cannot find type 'URLRequest' in scope
 56 |     }
 57 |
 58 |     public override class func requestIsCacheEquivalent(_ requestA: URLRequest, to requestB: URLRequest) -> Bool {
    |                                                                     `- error: cannot find type 'URLRequest' in scope
 59 |         false
 60 |     }
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:58:94: error: cannot find type 'URLRequest' in scope
 56 |     }
 57 |
 58 |     public override class func requestIsCacheEquivalent(_ requestA: URLRequest, to requestB: URLRequest) -> Bool {
    |                                                                                              `- error: cannot find type 'URLRequest' in scope
 59 |         false
 60 |     }
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:58:32: error: method does not override any method from its superclass
 56 |     }
 57 |
 58 |     public override class func requestIsCacheEquivalent(_ requestA: URLRequest, to requestB: URLRequest) -> Bool {
    |                                `- error: method does not override any method from its superclass
 59 |         false
 60 |     }
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:63:35: error: cannot find type 'URLRequest' in scope
 61 |
 62 |     // Occasionally called by iOS, even though init(task:...) is implemented. Will cause a crash if not present.
 63 |     public override init(request: URLRequest, cachedResponse: CachedURLResponse?, client: URLProtocolClient?) {
    |                                   `- error: cannot find type 'URLRequest' in scope
 64 |         super.init(request: request, cachedResponse: cachedResponse, client: client)
 65 |     }
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:63:91: error: cannot find type 'URLProtocolClient' in scope
 61 |
 62 |     // Occasionally called by iOS, even though init(task:...) is implemented. Will cause a crash if not present.
 63 |     public override init(request: URLRequest, cachedResponse: CachedURLResponse?, client: URLProtocolClient?) {
    |                                                                                           `- error: cannot find type 'URLProtocolClient' in scope
 64 |         super.init(request: request, cachedResponse: cachedResponse, client: client)
 65 |     }
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:63:21: error: initializer does not override a designated initializer from its superclass
 61 |
 62 |     // Occasionally called by iOS, even though init(task:...) is implemented. Will cause a crash if not present.
 63 |     public override init(request: URLRequest, cachedResponse: CachedURLResponse?, client: URLProtocolClient?) {
    |                     `- error: initializer does not override a designated initializer from its superclass
 64 |         super.init(request: request, cachedResponse: cachedResponse, client: client)
 65 |     }
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:63:63: error: 'CachedURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 61 |
 62 |     // Occasionally called by iOS, even though init(task:...) is implemented. Will cause a crash if not present.
 63 |     public override init(request: URLRequest, cachedResponse: CachedURLResponse?, client: URLProtocolClient?) {
    |                                                               `- error: 'CachedURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 64 |         super.init(request: request, cachedResponse: cachedResponse, client: client)
 65 |     }
Foundation.CachedURLResponse:2:18: note: 'CachedURLResponse' 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 CachedURLResponse = AnyObject
  |                  `- note: 'CachedURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:67:83: error: cannot find type 'URLProtocolClient' in scope
 65 |     }
 66 |
 67 |     public init(task: URLSessionTask, cachedResponse: CachedURLResponse?, client: URLProtocolClient?) {
    |                                                                                   `- error: cannot find type 'URLProtocolClient' in scope
 68 |         super.init(request: task.currentRequest!, cachedResponse: cachedResponse, client: client)
 69 |         self.urlSessionTask = task
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:67:23: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 65 |     }
 66 |
 67 |     public init(task: URLSessionTask, cachedResponse: CachedURLResponse?, client: URLProtocolClient?) {
    |                       `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 68 |         super.init(request: task.currentRequest!, cachedResponse: cachedResponse, client: client)
 69 |         self.urlSessionTask = task
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/Stubber/Hooks/HTTPStubURLProtocol.swift:67:55: error: 'CachedURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 65 |     }
 66 |
 67 |     public init(task: URLSessionTask, cachedResponse: CachedURLResponse?, client: URLProtocolClient?) {
    |                                                       `- error: 'CachedURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 68 |         super.init(request: task.currentRequest!, cachedResponse: cachedResponse, client: client)
 69 |         self.urlSessionTask = task
Foundation.CachedURLResponse:2:18: note: 'CachedURLResponse' 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 CachedURLResponse = AnyObject
  |                  `- note: 'CachedURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:72:26: error: method does not override any method from its superclass
 70 |     }
 71 |
 72 |     public override func startLoading() {
    |                          `- error: method does not override any method from its superclass
 73 |         var request = self.request
 74 |
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:135:26: error: method does not override any method from its superclass
133 |     }
134 |
135 |     public override func stopLoading() {
    |                          `- error: method does not override any method from its superclass
136 |         responseWorkItem?.cancel()
137 |     }
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:142:49: error: cannot find type 'URLRequest' in scope
140 |
141 |     private func streamData(_ inputStream: InputStream,
142 |                             forRequest request: URLRequest, forStub stub: HTTPStubResponse,
    |                                                 `- error: cannot find type 'URLRequest' in scope
143 |                             speed: HTTPConnectionSpeed,
144 |                             completion: @escaping ((Error?) -> Void)) {
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:190:43: error: cannot find type 'URLRequest' in scope
188 |     }
189 |
190 |     private func finishRequest(_ request: URLRequest, withStub stubResponse: HTTPStubResponse, cookies: HTTPCookieStorage) {
    |                                           `- error: cannot find type 'URLRequest' in scope
191 |         let url = request.url!
192 |         let headers = stubResponse.headers.asDictionary
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:190:105: error: 'HTTPCookieStorage' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
188 |     }
189 |
190 |     private func finishRequest(_ request: URLRequest, withStub stubResponse: HTTPStubResponse, cookies: HTTPCookieStorage) {
    |                                                                                                         `- error: 'HTTPCookieStorage' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
191 |         let url = request.url!
192 |         let headers = stubResponse.headers.asDictionary
Foundation.HTTPCookieStorage:2:18: note: 'HTTPCookieStorage' 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 HTTPCookieStorage = AnyObject
  |                  `- note: 'HTTPCookieStorage' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:21:35: error: 'URLProtocol' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 19 | import Foundation
 20 |
 21 | public class HTTPStubURLProtocol: URLProtocol {
    |                                   `- error: 'URLProtocol' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 22 |
 23 |     /// This class support only certain common type of schemes.
Foundation.URLProtocol:2:18: note: 'URLProtocol' 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 URLProtocol = AnyObject
  |                  `- note: 'URLProtocol' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/URLSessionHook.swift:41:40: error: cannot find type 'Selector' in scope
39 |     }
40 |
41 |     private func originalSelector() -> Selector {
   |                                        `- error: cannot find type 'Selector' in scope
42 |         #selector(getter: URLSessionConfiguration.protocolClasses)
43 |     }
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/URLSessionHook.swift:45:6: error: Objective-C interoperability is disabled
43 |     }
44 |
45 |     @objc private func protocolClasses() -> [AnyClass] {
   |      `- error: Objective-C interoperability is disabled
46 |         [HTTPStubURLProtocol.self]
47 |     }
BUILD FAILURE 6.0 linux