The Swift Package Index logo.Swift Package Index

Build Information

Failed to build RealHTTP with Swift 5.10 for Linux.

Build Command

bash -c docker run --rm -v "checkouts-4606859-1":/host -w "$workDir" registry.gitlab.com/finestructure/spi-images:basic-5.10-latest swift build 2>&1

Build Log

    public var cookieStorage: HTTPCookieStorage? {
                              ^~~~~~~~~~~~~~~~~
Foundation.HTTPCookieStorage:2:18: note: 'HTTPCookieStorage' has been explicitly marked unavailable here
public typealias HTTPCookieStorage = AnyObject
                 ^
/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.
                configuration: URLSessionConfiguration = .default) {
                               ^~~~~~~~~~~~~~~~~~~~~~~
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' has been explicitly marked unavailable here
public typealias URLSessionConfiguration = AnyObject
                 ^
/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.
    public func cookies(forURL url: URL) -> [HTTPCookie] {
                                             ^~~~~~~~~~
Foundation.HTTPCookie:2:18: note: 'HTTPCookie' has been explicitly marked unavailable here
public typealias HTTPCookie = AnyObject
                 ^
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPDataLoader/HTTPDataLoader.swift:39:31: error: cannot find type 'URLRequest' in scope
    internal var cachePolicy: URLRequest.CachePolicy = .useProtocolCachePolicy
                              ^~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPClient/HTTPClient.swift:67:17: error: value of type 'URLSession' (aka 'AnyObject') has no member 'configuration'
        session.configuration.httpCookieStorage
        ~~~~~~~ ^~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPClient/HTTPClient.swift:133:17: error: value of type 'URLSession' (aka 'AnyObject') has no member 'configuration'
        session.configuration.httpCookieStorage?.cookies(for: url) ?? []
        ~~~~~~~ ^~~~~~~~~~~~~
/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.
    typealias ExecutedRequest = (request: HTTPRequest, task: URLSessionTask)
                                                             ^~~~~~~~~~~~~~
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
public typealias URLSessionTask = AnyObject
                 ^
/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.
                authChallenge: URLAuthenticationChallenge)
                               ^~~~~~~~~~~~~~~~~~~~~~~~~~
Foundation.URLAuthenticationChallenge:2:18: note: 'URLAuthenticationChallenge' has been explicitly marked unavailable here
public typealias URLAuthenticationChallenge = AnyObject
                 ^
/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPRequest/HTTPRequest.swift:23:48: error: cannot find type 'URLRequest' in scope
    public typealias RequestModifier = ((inout URLRequest) throws -> Void)
                                               ^~~~~~~~~~
/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.
    public internal(set) weak var sessionTask: URLSessionTask?
                                               ^~~~~~~~~~~~~~
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
public typealias URLSessionTask = AnyObject
                 ^
/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPRequest/HTTPRequest.swift:123:29: error: cannot find type 'URLRequest' in scope
    public var cachePolicy: URLRequest.CachePolicy?
                            ^~~~~~~~~~
/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.
    public func setCookiesInHeaders(_ cookies: [HTTPCookie]) {
                                                ^~~~~~~~~~
Foundation.HTTPCookie:2:18: note: 'HTTPCookie' has been explicitly marked unavailable here
public typealias HTTPCookie = AnyObject
                 ^
/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.
    internal func urlSessionTask(inClient client: HTTPClient) async throws -> URLSessionTask {
                                                                              ^~~~~~~~~~~~~~
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
public typealias URLSessionTask = AnyObject
                 ^
/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPRequest/HTTPRequest.swift:451:76: error: cannot find type 'URLRequest' in scope
    internal func urlRequest(inClient client: HTTPClient?) async throws -> URLRequest {
                                                                           ^~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPRequest/HTTPRequest.swift:502:28: error: cannot find type 'URLRequest' in scope
        case followCustom((URLRequest) -> URLRequest?)
                           ^~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPRequest/HTTPRequest.swift:502:43: error: cannot find type 'URLRequest' in scope
        case followCustom((URLRequest) -> URLRequest?)
                                          ^~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPRequest/HTTPRequest.swift:270:30: warning: conditional downcast from 'URLSessionTask?' (aka 'Optional<AnyObject>') to 'URLSessionDownloadTask' (aka 'AnyObject') does nothing
                (sessionTask as? URLSessionDownloadTask)?.cancel(byProducingResumeData: dataProducer)
                 ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~

/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPRequest/HTTPRequest.swift:270:59: error: value of type 'URLSessionDownloadTask' (aka 'AnyObject') has no member 'cancel'
                (sessionTask as? URLSessionDownloadTask)?.cancel(byProducingResumeData: dataProducer)
                ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPRequest/HTTPRequest.swift:272:30: error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'cancel'
                sessionTask?.cancel()
                ~~~~~~~~~~~~ ^~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPRequest/HTTPRequest.swift:275:26: error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'cancel'
            sessionTask?.cancel()
            ~~~~~~~~~~~~ ^~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPRequest/HTTPRequest.swift:294:39: error: type 'HTTPCookie' (aka 'AnyObject') has no member 'requestHeaderFields'
        let headerFields = HTTPCookie.requestHeaderFields(with: cookies).map { item in
                           ~~~~~~~~~~ ^~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPRequest/HTTPRequest.swift:425:19: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
        var task: URLSessionTask!
                  ^~~~~~~~~~~~~~
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
public typealias URLSessionTask = AnyObject
                 ^
/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPRequest/HTTPRequest.swift:428:35: error: value of type 'URLSession' (aka 'AnyObject') has no member 'uploadTask'
            task = client.session.uploadTask(withStreamedRequest: urlRequest)
                   ~~~~~~~~~~~~~~ ^~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPRequest/HTTPRequest.swift:432:39: error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
                task = client.session.dataTask(with: urlRequest)
                       ~~~~~~~~~~~~~~ ^~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPRequest/HTTPRequest.swift:435:43: error: value of type 'URLSession' (aka 'AnyObject') has no member 'downloadTask'
                    task = client.session.downloadTask(withResumeData: partialData)
                           ~~~~~~~~~~~~~~ ^~~~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPRequest/HTTPRequest.swift:437:43: error: value of type 'URLSession' (aka 'AnyObject') has no member 'downloadTask'
                    task = client.session.downloadTask(with: urlRequest)
                           ~~~~~~~~~~~~~~ ^~~~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPRequest/HTTPRequest.swift:443:14: error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'priority'
        task.priority = httpPriority.urlTaskPriority
        ~~~~ ^~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPRequest/HTTPRequest.swift:466:30: error: cannot find 'URLRequest' in scope
        var urlRequest = try URLRequest(url: fullURL,
                             ^~~~~~~~~~
/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.
    open var urlResponse: URLResponse?
                          ^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
                 ^
/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.
    public var httpResponse: HTTPURLResponse? {
                             ^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
                 ^
/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPResponse/HTTPResponse.swift:47:38: error: cannot find type 'URLRequest' in scope
    open var urlRequests: (original: URLRequest?, current: URLRequest?) = (nil, nil)
                                     ^~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPResponse/HTTPResponse.swift:47:60: error: cannot find type 'URLRequest' in scope
    open var urlRequests: (original: URLRequest?, current: URLRequest?) = (nil, nil)
                                                           ^~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPResponse/HTTPResponse.swift:38:21: warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
        urlResponse as? HTTPURLResponse
        ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~

/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPResponse/HTTPResponse.swift:38:25: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
        urlResponse as? HTTPURLResponse
                        ^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
                 ^
/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPResponse/HTTPResponse.swift:87:23: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'headers'
        httpResponse?.headers ?? HTTPHeaders()
        ~~~~~~~~~~~~~ ^~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPDataLoader/HTTPDataLoader+Response.swift:58:33: error: cannot find type 'URLRequest' in scope
    var urlRequests: (original: URLRequest?, current: URLRequest?) = (nil, nil)
                                ^~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPDataLoader/HTTPDataLoader+Response.swift:58:55: error: cannot find type 'URLRequest' in scope
    var urlRequests: (original: URLRequest?, current: URLRequest?) = (nil, nil)
                                                      ^~~~~~~~~~
[70/79] Compiling RealHTTP JSONSerializable.swift
/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPClient/HTTPClient.swift:118:59: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
                configuration: URLSessionConfiguration = .default) {
                                                         ~^~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPClient/HTTPClientDelegate.swift:63:58: error: cannot find type 'URLRequest' in scope
                response: HTTPResponse, with newRequest: URLRequest)
                                                         ^~~~~~~~~~
/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.
    public var session: URLSession {
                        ^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
                 ^
/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPClient/HTTPClient.swift:47:29: error: cannot find type 'URLRequest' in scope
    public var cachePolicy: URLRequest.CachePolicy {
                            ^~~~~~~~~~
/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
extension HTTPURLResponse {
^         ~~~~~~~~~~~~~~~
/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
extension URLSessionConfiguration {
^         ~~~~~~~~~~~~~~~~~~~~~~~
/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.
    public var cookieStorage: HTTPCookieStorage? {
                              ^~~~~~~~~~~~~~~~~
Foundation.HTTPCookieStorage:2:18: note: 'HTTPCookieStorage' has been explicitly marked unavailable here
public typealias HTTPCookieStorage = AnyObject
                 ^
/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.
                configuration: URLSessionConfiguration = .default) {
                               ^~~~~~~~~~~~~~~~~~~~~~~
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' has been explicitly marked unavailable here
public typealias URLSessionConfiguration = AnyObject
                 ^
/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.
    public func cookies(forURL url: URL) -> [HTTPCookie] {
                                             ^~~~~~~~~~
Foundation.HTTPCookie:2:18: note: 'HTTPCookie' has been explicitly marked unavailable here
public typealias HTTPCookie = AnyObject
                 ^
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPDataLoader/HTTPDataLoader.swift:39:31: error: cannot find type 'URLRequest' in scope
    internal var cachePolicy: URLRequest.CachePolicy = .useProtocolCachePolicy
                              ^~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPClient/HTTPClient.swift:67:17: error: value of type 'URLSession' (aka 'AnyObject') has no member 'configuration'
        session.configuration.httpCookieStorage
        ~~~~~~~ ^~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPClient/HTTPClient.swift:133:17: error: value of type 'URLSession' (aka 'AnyObject') has no member 'configuration'
        session.configuration.httpCookieStorage?.cookies(for: url) ?? []
        ~~~~~~~ ^~~~~~~~~~~~~
/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.
    typealias ExecutedRequest = (request: HTTPRequest, task: URLSessionTask)
                                                             ^~~~~~~~~~~~~~
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
public typealias URLSessionTask = AnyObject
                 ^
/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.
                authChallenge: URLAuthenticationChallenge)
                               ^~~~~~~~~~~~~~~~~~~~~~~~~~
Foundation.URLAuthenticationChallenge:2:18: note: 'URLAuthenticationChallenge' has been explicitly marked unavailable here
public typealias URLAuthenticationChallenge = AnyObject
                 ^
/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPRequest/HTTPRequest.swift:23:48: error: cannot find type 'URLRequest' in scope
    public typealias RequestModifier = ((inout URLRequest) throws -> Void)
                                               ^~~~~~~~~~
/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.
    public internal(set) weak var sessionTask: URLSessionTask?
                                               ^~~~~~~~~~~~~~
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
public typealias URLSessionTask = AnyObject
                 ^
/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPRequest/HTTPRequest.swift:123:29: error: cannot find type 'URLRequest' in scope
    public var cachePolicy: URLRequest.CachePolicy?
                            ^~~~~~~~~~
/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.
    public func setCookiesInHeaders(_ cookies: [HTTPCookie]) {
                                                ^~~~~~~~~~
Foundation.HTTPCookie:2:18: note: 'HTTPCookie' has been explicitly marked unavailable here
public typealias HTTPCookie = AnyObject
                 ^
/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.
    internal func urlSessionTask(inClient client: HTTPClient) async throws -> URLSessionTask {
                                                                              ^~~~~~~~~~~~~~
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
public typealias URLSessionTask = AnyObject
                 ^
/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPRequest/HTTPRequest.swift:451:76: error: cannot find type 'URLRequest' in scope
    internal func urlRequest(inClient client: HTTPClient?) async throws -> URLRequest {
                                                                           ^~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPRequest/HTTPRequest.swift:502:28: error: cannot find type 'URLRequest' in scope
        case followCustom((URLRequest) -> URLRequest?)
                           ^~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPRequest/HTTPRequest.swift:502:43: error: cannot find type 'URLRequest' in scope
        case followCustom((URLRequest) -> URLRequest?)
                                          ^~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPRequest/HTTPRequest.swift:270:30: warning: conditional downcast from 'URLSessionTask?' (aka 'Optional<AnyObject>') to 'URLSessionDownloadTask' (aka 'AnyObject') does nothing
                (sessionTask as? URLSessionDownloadTask)?.cancel(byProducingResumeData: dataProducer)
                 ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~

/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPRequest/HTTPRequest.swift:270:59: error: value of type 'URLSessionDownloadTask' (aka 'AnyObject') has no member 'cancel'
                (sessionTask as? URLSessionDownloadTask)?.cancel(byProducingResumeData: dataProducer)
                ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPRequest/HTTPRequest.swift:272:30: error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'cancel'
                sessionTask?.cancel()
                ~~~~~~~~~~~~ ^~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPRequest/HTTPRequest.swift:275:26: error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'cancel'
            sessionTask?.cancel()
            ~~~~~~~~~~~~ ^~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPRequest/HTTPRequest.swift:294:39: error: type 'HTTPCookie' (aka 'AnyObject') has no member 'requestHeaderFields'
        let headerFields = HTTPCookie.requestHeaderFields(with: cookies).map { item in
                           ~~~~~~~~~~ ^~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPRequest/HTTPRequest.swift:425:19: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
        var task: URLSessionTask!
                  ^~~~~~~~~~~~~~
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
public typealias URLSessionTask = AnyObject
                 ^
/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPRequest/HTTPRequest.swift:428:35: error: value of type 'URLSession' (aka 'AnyObject') has no member 'uploadTask'
            task = client.session.uploadTask(withStreamedRequest: urlRequest)
                   ~~~~~~~~~~~~~~ ^~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPRequest/HTTPRequest.swift:432:39: error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
                task = client.session.dataTask(with: urlRequest)
                       ~~~~~~~~~~~~~~ ^~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPRequest/HTTPRequest.swift:435:43: error: value of type 'URLSession' (aka 'AnyObject') has no member 'downloadTask'
                    task = client.session.downloadTask(withResumeData: partialData)
                           ~~~~~~~~~~~~~~ ^~~~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPRequest/HTTPRequest.swift:437:43: error: value of type 'URLSession' (aka 'AnyObject') has no member 'downloadTask'
                    task = client.session.downloadTask(with: urlRequest)
                           ~~~~~~~~~~~~~~ ^~~~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPRequest/HTTPRequest.swift:443:14: error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'priority'
        task.priority = httpPriority.urlTaskPriority
        ~~~~ ^~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPRequest/HTTPRequest.swift:466:30: error: cannot find 'URLRequest' in scope
        var urlRequest = try URLRequest(url: fullURL,
                             ^~~~~~~~~~
/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.
    open var urlResponse: URLResponse?
                          ^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
                 ^
/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.
    public var httpResponse: HTTPURLResponse? {
                             ^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
                 ^
/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPResponse/HTTPResponse.swift:47:38: error: cannot find type 'URLRequest' in scope
    open var urlRequests: (original: URLRequest?, current: URLRequest?) = (nil, nil)
                                     ^~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPResponse/HTTPResponse.swift:47:60: error: cannot find type 'URLRequest' in scope
    open var urlRequests: (original: URLRequest?, current: URLRequest?) = (nil, nil)
                                                           ^~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPResponse/HTTPResponse.swift:38:21: warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
        urlResponse as? HTTPURLResponse
        ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~

/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPResponse/HTTPResponse.swift:38:25: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
        urlResponse as? HTTPURLResponse
                        ^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
                 ^
/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPResponse/HTTPResponse.swift:87:23: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'headers'
        httpResponse?.headers ?? HTTPHeaders()
        ~~~~~~~~~~~~~ ^~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPDataLoader/HTTPDataLoader+Response.swift:58:33: error: cannot find type 'URLRequest' in scope
    var urlRequests: (original: URLRequest?, current: URLRequest?) = (nil, nil)
                                ^~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPDataLoader/HTTPDataLoader+Response.swift:58:55: error: cannot find type 'URLRequest' in scope
    var urlRequests: (original: URLRequest?, current: URLRequest?) = (nil, nil)
                                                      ^~~~~~~~~~
[71/79] Compiling RealHTTP Foundation+Stubber.swift
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/HTTPStubber.swift:189:53: error: cannot find type 'URLRequest' in scope
    internal func suitableStubForRequest(_ request: URLRequest) -> HTTPStubRequest? {
                                                    ^~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/HTTPStubber.swift:199:41: error: cannot find type 'URLRequest' in scope
    public func shouldHandle(_ request: URLRequest) -> Bool {
                                        ^~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/Stub Request/HTTPStubRequest.swift:50:37: error: cannot find type 'URLRequest' in scope
    public func match(_ urlRequest: URLRequest) -> Bool {
                                    ^~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/Stub Matchers/Built-In Matchers/HTTPStubCustomMatcher.swift:22:33: error: cannot find type 'URLRequest' in scope
    public typealias Handler = (URLRequest, HTTPMatcherSource) -> Bool
                                ^~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/HTTPStubber.swift:191:16: error: cannot convert value of type 'HTTPStubRequest' to closure result type 'Bool'
            $0.match(request)
            ~~~^~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/HTTPStubIgnoreRule.swift:83:41: error: cannot find type 'URLRequest' in scope
    internal func matches(_ urlRequest: URLRequest) -> Bool {
                                        ^~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/HTTPStubberErrors.swift:22:28: error: cannot find type 'URLRequest' in scope
    case matchStubNotFound(URLRequest)
                           ^~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:29:25: error: property does not override any property from its superclass
    public override var task: URLSessionTask? {
           ~~~~~~~~     ^
/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.
    public override var task: URLSessionTask? {
                              ^~~~~~~~~~~~~~
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
public typealias URLSessionTask = AnyObject
                 ^
/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.
    private var urlSessionTask: URLSessionTask?
                                ^~~~~~~~~~~~~~
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
public typealias URLSessionTask = AnyObject
                 ^
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:44:54: error: cannot find type 'URLRequest' in scope
    public override class func canInit(with request: URLRequest) -> Bool {
                                                     ^~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:44:32: error: method does not override any method from its superclass
    public override class func canInit(with request: URLRequest) -> Bool {
           ~~~~~~~~            ^
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:54:77: error: cannot find type 'URLRequest' in scope
    public override class func canonicalRequest(for request: URLRequest) -> URLRequest {
                                                                            ^~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:54:62: error: cannot find type 'URLRequest' in scope
    public override class func canonicalRequest(for request: URLRequest) -> URLRequest {
                                                             ^~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:54:32: error: method does not override any method from its superclass
    public override class func canonicalRequest(for request: URLRequest) -> URLRequest {
           ~~~~~~~~            ^
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:58:69: error: cannot find type 'URLRequest' in scope
    public override class func requestIsCacheEquivalent(_ requestA: URLRequest, to requestB: URLRequest) -> Bool {
                                                                    ^~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:58:94: error: cannot find type 'URLRequest' in scope
    public override class func requestIsCacheEquivalent(_ requestA: URLRequest, to requestB: URLRequest) -> Bool {
                                                                                             ^~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:58:32: error: method does not override any method from its superclass
    public override class func requestIsCacheEquivalent(_ requestA: URLRequest, to requestB: URLRequest) -> Bool {
           ~~~~~~~~            ^
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:63:35: error: cannot find type 'URLRequest' in scope
    public override init(request: URLRequest, cachedResponse: CachedURLResponse?, client: URLProtocolClient?) {
                                  ^~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:63:91: error: cannot find type 'URLProtocolClient' in scope
    public override init(request: URLRequest, cachedResponse: CachedURLResponse?, client: URLProtocolClient?) {
                                                                                          ^~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:63:21: error: initializer does not override a designated initializer from its superclass
    public override init(request: URLRequest, cachedResponse: CachedURLResponse?, client: URLProtocolClient?) {
           ~~~~~~~~ ^
/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.
    public override init(request: URLRequest, cachedResponse: CachedURLResponse?, client: URLProtocolClient?) {
                                                              ^~~~~~~~~~~~~~~~~
Foundation.CachedURLResponse:2:18: note: 'CachedURLResponse' has been explicitly marked unavailable here
public typealias CachedURLResponse = AnyObject
                 ^
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:67:83: error: cannot find type 'URLProtocolClient' in scope
    public init(task: URLSessionTask, cachedResponse: CachedURLResponse?, client: URLProtocolClient?) {
                                                                                  ^~~~~~~~~~~~~~~~~
/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.
    public init(task: URLSessionTask, cachedResponse: CachedURLResponse?, client: URLProtocolClient?) {
                      ^~~~~~~~~~~~~~
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
public typealias URLSessionTask = AnyObject
                 ^
/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.
    public init(task: URLSessionTask, cachedResponse: CachedURLResponse?, client: URLProtocolClient?) {
                                                      ^~~~~~~~~~~~~~~~~
Foundation.CachedURLResponse:2:18: note: 'CachedURLResponse' has been explicitly marked unavailable here
public typealias CachedURLResponse = AnyObject
                 ^
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:72:26: error: method does not override any method from its superclass
    public override func startLoading() {
           ~~~~~~~~      ^
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:135:26: error: method does not override any method from its superclass
    public override func stopLoading() {
           ~~~~~~~~      ^
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:142:49: error: cannot find type 'URLRequest' in scope
                            forRequest request: URLRequest, forStub stub: HTTPStubResponse,
                                                ^~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:190:43: error: cannot find type 'URLRequest' in scope
    private func finishRequest(_ request: URLRequest, withStub stubResponse: HTTPStubResponse, cookies: HTTPCookieStorage) {
                                          ^~~~~~~~~~
/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.
    private func finishRequest(_ request: URLRequest, withStub stubResponse: HTTPStubResponse, cookies: HTTPCookieStorage) {
                                                                                                        ^~~~~~~~~~~~~~~~~
Foundation.HTTPCookieStorage:2:18: note: 'HTTPCookieStorage' has been explicitly marked unavailable here
public typealias HTTPCookieStorage = AnyObject
                 ^
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:21:14: error: only protocols can inherit from 'AnyObject'
public class HTTPStubURLProtocol: URLProtocol {
             ^
/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.
public class HTTPStubURLProtocol: URLProtocol {
                                  ^~~~~~~~~~~
Foundation.URLProtocol:2:18: note: 'URLProtocol' has been explicitly marked unavailable here
public typealias URLProtocol = AnyObject
                 ^
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:64:9: error: 'super' members cannot be referenced in a root class
        super.init(request: request, cachedResponse: cachedResponse, client: client)
        ^
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:68:9: error: 'super' members cannot be referenced in a root class
        super.init(request: task.currentRequest!, cachedResponse: cachedResponse, client: client)
        ^
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:73:28: error: value of type 'HTTPStubURLProtocol' has no member 'request'
        var request = self.request
                      ~~~~ ^~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:76:47: error: type 'HTTPCookieStorage' (aka 'AnyObject') has no member 'shared'
        var cookieStorage = HTTPCookieStorage.shared
                            ~~~~~~~~~~~~~~~~~ ^~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:77:32: error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'value'
        if let session = task?.value(forKey: "session") as? URLSession,
                         ~~~~~ ^~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:87:59: error: type 'HTTPCookie' (aka 'AnyObject') has no member 'requestHeaderFields'
            request.allHTTPHeaderFields!.merge(HTTPCookie.requestHeaderFields(with: cookies)) { (current, _) in
                                               ~~~~~~~~~~ ^~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:99:13: error: cannot find 'client' in scope
            client?.urlProtocol(self, didFailWithError: HTTPStubberErrors.matchStubNotFound(request))
            ^~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:119:22: error: value of type 'HTTPStubURLProtocol' has no member 'client'
                self.client?.urlProtocol(self, didLoad: Data())
                ~~~~ ^~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:176:26: error: value of type 'HTTPStubURLProtocol' has no member 'client'
                    self.client?.urlProtocol(self, didLoad: data)
                    ~~~~ ^~~~~~
/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
extension HTTPURLResponse {
^         ~~~~~~~~~~~~~~~
/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
extension URLSessionConfiguration {
^         ~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:193:39: error: type 'HTTPCookie' (aka 'AnyObject') has no member 'cookies'
        let cookiesToSet = HTTPCookie.cookies(withResponseHeaderFields: headers, for: url)
                           ~~~~~~~~~~ ^~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:194:17: error: value of type 'HTTPCookieStorage' (aka 'AnyObject') has no member 'setCookies'
        cookies.setCookies(cookiesToSet, for: request.url!, mainDocumentURL: url)
        ~~~~~~~ ^~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:197:13: error: cannot find 'client' in scope
            client?.urlProtocol(self, didFailWithError: failureError)
            ^~~~~~
/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
        let response = HTTPURLResponse(url: url,
                       ^~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:204:53: error: 'nil' requires a contextual type
                                       httpVersion: nil,
                                                    ^
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:215:28: error: cannot find 'URLRequest' in scope
            var redirect = URLRequest(url: location)
                           ^~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:216:48: error: value of type 'HTTPCookieStorage' (aka 'AnyObject') has no member 'cookies'
            if let cookiesInRedirect = cookies.cookies(for: url) {
                                       ~~~~~~~ ^~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:217:59: error: type 'HTTPCookie' (aka 'AnyObject') has no member 'requestHeaderFields'
                redirect.allHTTPHeaderFields = HTTPCookie.requestHeaderFields(with: cookiesInRedirect)
                                               ~~~~~~~~~~ ^~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:219:13: error: cannot find 'client' in scope
            client?.urlProtocol(self, wasRedirectedTo: redirect, redirectResponse: response!)
            ^~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:223:9: error: cannot find 'client' in scope
        client?.urlProtocol(self, didReceive: response!, cacheStoragePolicy: .notAllowed)
        ^~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:223:79: error: cannot infer contextual base in reference to member 'notAllowed'
        client?.urlProtocol(self, didReceive: response!, cacheStoragePolicy: .notAllowed)
                                                                             ~^~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:225:13: error: cannot find 'client' in scope
            client?.urlProtocol(self, didLoad: data)
            ^~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:227:9: error: cannot find 'client' in scope
        client?.urlProtocolDidFinishLoading(self)
        ^~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/URLHook.swift:25:21: error: type 'URLProtocol' (aka 'AnyObject') has no member 'registerClass'
        URLProtocol.registerClass(HTTPStubURLProtocol.self)
        ~~~~~~~~~~~ ^~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/URLHook.swift:29:21: error: type 'URLProtocol' (aka 'AnyObject') has no member 'unregisterClass'
        URLProtocol.unregisterClass(HTTPStubURLProtocol.self)
        ~~~~~~~~~~~ ^~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/URLSessionHook.swift:41:40: error: cannot find type 'Selector' in scope
    private func originalSelector() -> Selector {
                                       ^~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/URLSessionHook.swift:45:6: error: Objective-C interoperability is disabled
    @objc private func protocolClasses() -> [AnyClass] {
    ~^~~~~

/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/URLSessionHook.swift:26:28: error: cannot find 'class_getInstanceMethod' in scope
        guard let method = class_getInstanceMethod(originalClass(), originalSelector()),
                           ^~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/URLSessionHook.swift:27:26: error: cannot find 'class_getInstanceMethod' in scope
              let stub = class_getInstanceMethod(URLSessionHook.self, #selector(protocolClasses)) else {
                         ^~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/URLSessionHook.swift:27:71: error: '#selector' can only be used with the Objective-C runtime
              let stub = class_getInstanceMethod(URLSessionHook.self, #selector(protocolClasses)) else {
                                                                      ^
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/URLSessionHook.swift:30:9: error: cannot find 'method_exchangeImplementations' in scope
        method_exchangeImplementations(method, stub)
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[72/79] Compiling RealHTTP HTTPStub+Extension.swift
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/HTTPStubber.swift:189:53: error: cannot find type 'URLRequest' in scope
    internal func suitableStubForRequest(_ request: URLRequest) -> HTTPStubRequest? {
                                                    ^~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/HTTPStubber.swift:199:41: error: cannot find type 'URLRequest' in scope
    public func shouldHandle(_ request: URLRequest) -> Bool {
                                        ^~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/Stub Request/HTTPStubRequest.swift:50:37: error: cannot find type 'URLRequest' in scope
    public func match(_ urlRequest: URLRequest) -> Bool {
                                    ^~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/Stub Matchers/Built-In Matchers/HTTPStubCustomMatcher.swift:22:33: error: cannot find type 'URLRequest' in scope
    public typealias Handler = (URLRequest, HTTPMatcherSource) -> Bool
                                ^~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/HTTPStubber.swift:191:16: error: cannot convert value of type 'HTTPStubRequest' to closure result type 'Bool'
            $0.match(request)
            ~~~^~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/HTTPStubIgnoreRule.swift:83:41: error: cannot find type 'URLRequest' in scope
    internal func matches(_ urlRequest: URLRequest) -> Bool {
                                        ^~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/HTTPStubberErrors.swift:22:28: error: cannot find type 'URLRequest' in scope
    case matchStubNotFound(URLRequest)
                           ^~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:29:25: error: property does not override any property from its superclass
    public override var task: URLSessionTask? {
           ~~~~~~~~     ^
/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.
    public override var task: URLSessionTask? {
                              ^~~~~~~~~~~~~~
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
public typealias URLSessionTask = AnyObject
                 ^
/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.
    private var urlSessionTask: URLSessionTask?
                                ^~~~~~~~~~~~~~
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
public typealias URLSessionTask = AnyObject
                 ^
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:44:54: error: cannot find type 'URLRequest' in scope
    public override class func canInit(with request: URLRequest) -> Bool {
                                                     ^~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:44:32: error: method does not override any method from its superclass
    public override class func canInit(with request: URLRequest) -> Bool {
           ~~~~~~~~            ^
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:54:77: error: cannot find type 'URLRequest' in scope
    public override class func canonicalRequest(for request: URLRequest) -> URLRequest {
                                                                            ^~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:54:62: error: cannot find type 'URLRequest' in scope
    public override class func canonicalRequest(for request: URLRequest) -> URLRequest {
                                                             ^~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:54:32: error: method does not override any method from its superclass
    public override class func canonicalRequest(for request: URLRequest) -> URLRequest {
           ~~~~~~~~            ^
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:58:69: error: cannot find type 'URLRequest' in scope
    public override class func requestIsCacheEquivalent(_ requestA: URLRequest, to requestB: URLRequest) -> Bool {
                                                                    ^~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:58:94: error: cannot find type 'URLRequest' in scope
    public override class func requestIsCacheEquivalent(_ requestA: URLRequest, to requestB: URLRequest) -> Bool {
                                                                                             ^~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:58:32: error: method does not override any method from its superclass
    public override class func requestIsCacheEquivalent(_ requestA: URLRequest, to requestB: URLRequest) -> Bool {
           ~~~~~~~~            ^
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:63:35: error: cannot find type 'URLRequest' in scope
    public override init(request: URLRequest, cachedResponse: CachedURLResponse?, client: URLProtocolClient?) {
                                  ^~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:63:91: error: cannot find type 'URLProtocolClient' in scope
    public override init(request: URLRequest, cachedResponse: CachedURLResponse?, client: URLProtocolClient?) {
                                                                                          ^~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:63:21: error: initializer does not override a designated initializer from its superclass
    public override init(request: URLRequest, cachedResponse: CachedURLResponse?, client: URLProtocolClient?) {
           ~~~~~~~~ ^
/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.
    public override init(request: URLRequest, cachedResponse: CachedURLResponse?, client: URLProtocolClient?) {
                                                              ^~~~~~~~~~~~~~~~~
Foundation.CachedURLResponse:2:18: note: 'CachedURLResponse' has been explicitly marked unavailable here
public typealias CachedURLResponse = AnyObject
                 ^
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:67:83: error: cannot find type 'URLProtocolClient' in scope
    public init(task: URLSessionTask, cachedResponse: CachedURLResponse?, client: URLProtocolClient?) {
                                                                                  ^~~~~~~~~~~~~~~~~
/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.
    public init(task: URLSessionTask, cachedResponse: CachedURLResponse?, client: URLProtocolClient?) {
                      ^~~~~~~~~~~~~~
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
public typealias URLSessionTask = AnyObject
                 ^
/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.
    public init(task: URLSessionTask, cachedResponse: CachedURLResponse?, client: URLProtocolClient?) {
                                                      ^~~~~~~~~~~~~~~~~
Foundation.CachedURLResponse:2:18: note: 'CachedURLResponse' has been explicitly marked unavailable here
public typealias CachedURLResponse = AnyObject
                 ^
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:72:26: error: method does not override any method from its superclass
    public override func startLoading() {
           ~~~~~~~~      ^
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:135:26: error: method does not override any method from its superclass
    public override func stopLoading() {
           ~~~~~~~~      ^
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:142:49: error: cannot find type 'URLRequest' in scope
                            forRequest request: URLRequest, forStub stub: HTTPStubResponse,
                                                ^~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:190:43: error: cannot find type 'URLRequest' in scope
    private func finishRequest(_ request: URLRequest, withStub stubResponse: HTTPStubResponse, cookies: HTTPCookieStorage) {
                                          ^~~~~~~~~~
/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.
    private func finishRequest(_ request: URLRequest, withStub stubResponse: HTTPStubResponse, cookies: HTTPCookieStorage) {
                                                                                                        ^~~~~~~~~~~~~~~~~
Foundation.HTTPCookieStorage:2:18: note: 'HTTPCookieStorage' has been explicitly marked unavailable here
public typealias HTTPCookieStorage = AnyObject
                 ^
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:21:14: error: only protocols can inherit from 'AnyObject'
public class HTTPStubURLProtocol: URLProtocol {
             ^
/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.
public class HTTPStubURLProtocol: URLProtocol {
                                  ^~~~~~~~~~~
Foundation.URLProtocol:2:18: note: 'URLProtocol' has been explicitly marked unavailable here
public typealias URLProtocol = AnyObject
                 ^
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:64:9: error: 'super' members cannot be referenced in a root class
        super.init(request: request, cachedResponse: cachedResponse, client: client)
        ^
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:68:9: error: 'super' members cannot be referenced in a root class
        super.init(request: task.currentRequest!, cachedResponse: cachedResponse, client: client)
        ^
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:73:28: error: value of type 'HTTPStubURLProtocol' has no member 'request'
        var request = self.request
                      ~~~~ ^~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:76:47: error: type 'HTTPCookieStorage' (aka 'AnyObject') has no member 'shared'
        var cookieStorage = HTTPCookieStorage.shared
                            ~~~~~~~~~~~~~~~~~ ^~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:77:32: error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'value'
        if let session = task?.value(forKey: "session") as? URLSession,
                         ~~~~~ ^~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:87:59: error: type 'HTTPCookie' (aka 'AnyObject') has no member 'requestHeaderFields'
            request.allHTTPHeaderFields!.merge(HTTPCookie.requestHeaderFields(with: cookies)) { (current, _) in
                                               ~~~~~~~~~~ ^~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:99:13: error: cannot find 'client' in scope
            client?.urlProtocol(self, didFailWithError: HTTPStubberErrors.matchStubNotFound(request))
            ^~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:119:22: error: value of type 'HTTPStubURLProtocol' has no member 'client'
                self.client?.urlProtocol(self, didLoad: Data())
                ~~~~ ^~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:176:26: error: value of type 'HTTPStubURLProtocol' has no member 'client'
                    self.client?.urlProtocol(self, didLoad: data)
                    ~~~~ ^~~~~~
/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
extension HTTPURLResponse {
^         ~~~~~~~~~~~~~~~
/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
extension URLSessionConfiguration {
^         ~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:193:39: error: type 'HTTPCookie' (aka 'AnyObject') has no member 'cookies'
        let cookiesToSet = HTTPCookie.cookies(withResponseHeaderFields: headers, for: url)
                           ~~~~~~~~~~ ^~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:194:17: error: value of type 'HTTPCookieStorage' (aka 'AnyObject') has no member 'setCookies'
        cookies.setCookies(cookiesToSet, for: request.url!, mainDocumentURL: url)
        ~~~~~~~ ^~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:197:13: error: cannot find 'client' in scope
            client?.urlProtocol(self, didFailWithError: failureError)
            ^~~~~~
/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
        let response = HTTPURLResponse(url: url,
                       ^~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:204:53: error: 'nil' requires a contextual type
                                       httpVersion: nil,
                                                    ^
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:215:28: error: cannot find 'URLRequest' in scope
            var redirect = URLRequest(url: location)
                           ^~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:216:48: error: value of type 'HTTPCookieStorage' (aka 'AnyObject') has no member 'cookies'
            if let cookiesInRedirect = cookies.cookies(for: url) {
                                       ~~~~~~~ ^~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:217:59: error: type 'HTTPCookie' (aka 'AnyObject') has no member 'requestHeaderFields'
                redirect.allHTTPHeaderFields = HTTPCookie.requestHeaderFields(with: cookiesInRedirect)
                                               ~~~~~~~~~~ ^~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:219:13: error: cannot find 'client' in scope
            client?.urlProtocol(self, wasRedirectedTo: redirect, redirectResponse: response!)
            ^~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:223:9: error: cannot find 'client' in scope
        client?.urlProtocol(self, didReceive: response!, cacheStoragePolicy: .notAllowed)
        ^~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:223:79: error: cannot infer contextual base in reference to member 'notAllowed'
        client?.urlProtocol(self, didReceive: response!, cacheStoragePolicy: .notAllowed)
                                                                             ~^~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:225:13: error: cannot find 'client' in scope
            client?.urlProtocol(self, didLoad: data)
            ^~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:227:9: error: cannot find 'client' in scope
        client?.urlProtocolDidFinishLoading(self)
        ^~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/URLHook.swift:25:21: error: type 'URLProtocol' (aka 'AnyObject') has no member 'registerClass'
        URLProtocol.registerClass(HTTPStubURLProtocol.self)
        ~~~~~~~~~~~ ^~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/URLHook.swift:29:21: error: type 'URLProtocol' (aka 'AnyObject') has no member 'unregisterClass'
        URLProtocol.unregisterClass(HTTPStubURLProtocol.self)
        ~~~~~~~~~~~ ^~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/URLSessionHook.swift:41:40: error: cannot find type 'Selector' in scope
    private func originalSelector() -> Selector {
                                       ^~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/URLSessionHook.swift:45:6: error: Objective-C interoperability is disabled
    @objc private func protocolClasses() -> [AnyClass] {
    ~^~~~~

/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/URLSessionHook.swift:26:28: error: cannot find 'class_getInstanceMethod' in scope
        guard let method = class_getInstanceMethod(originalClass(), originalSelector()),
                           ^~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/URLSessionHook.swift:27:26: error: cannot find 'class_getInstanceMethod' in scope
              let stub = class_getInstanceMethod(URLSessionHook.self, #selector(protocolClasses)) else {
                         ^~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/URLSessionHook.swift:27:71: error: '#selector' can only be used with the Objective-C runtime
              let stub = class_getInstanceMethod(URLSessionHook.self, #selector(protocolClasses)) else {
                                                                      ^
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/URLSessionHook.swift:30:9: error: cannot find 'method_exchangeImplementations' in scope
        method_exchangeImplementations(method, stub)
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[73/79] Compiling RealHTTP HTTPStubDataConvertible.swift
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/HTTPStubber.swift:189:53: error: cannot find type 'URLRequest' in scope
    internal func suitableStubForRequest(_ request: URLRequest) -> HTTPStubRequest? {
                                                    ^~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/HTTPStubber.swift:199:41: error: cannot find type 'URLRequest' in scope
    public func shouldHandle(_ request: URLRequest) -> Bool {
                                        ^~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/Stub Request/HTTPStubRequest.swift:50:37: error: cannot find type 'URLRequest' in scope
    public func match(_ urlRequest: URLRequest) -> Bool {
                                    ^~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/Stub Matchers/Built-In Matchers/HTTPStubCustomMatcher.swift:22:33: error: cannot find type 'URLRequest' in scope
    public typealias Handler = (URLRequest, HTTPMatcherSource) -> Bool
                                ^~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/HTTPStubber.swift:191:16: error: cannot convert value of type 'HTTPStubRequest' to closure result type 'Bool'
            $0.match(request)
            ~~~^~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/HTTPStubIgnoreRule.swift:83:41: error: cannot find type 'URLRequest' in scope
    internal func matches(_ urlRequest: URLRequest) -> Bool {
                                        ^~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/HTTPStubberErrors.swift:22:28: error: cannot find type 'URLRequest' in scope
    case matchStubNotFound(URLRequest)
                           ^~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:29:25: error: property does not override any property from its superclass
    public override var task: URLSessionTask? {
           ~~~~~~~~     ^
/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.
    public override var task: URLSessionTask? {
                              ^~~~~~~~~~~~~~
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
public typealias URLSessionTask = AnyObject
                 ^
/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.
    private var urlSessionTask: URLSessionTask?
                                ^~~~~~~~~~~~~~
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
public typealias URLSessionTask = AnyObject
                 ^
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:44:54: error: cannot find type 'URLRequest' in scope
    public override class func canInit(with request: URLRequest) -> Bool {
                                                     ^~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:44:32: error: method does not override any method from its superclass
    public override class func canInit(with request: URLRequest) -> Bool {
           ~~~~~~~~            ^
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:54:77: error: cannot find type 'URLRequest' in scope
    public override class func canonicalRequest(for request: URLRequest) -> URLRequest {
                                                                            ^~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:54:62: error: cannot find type 'URLRequest' in scope
    public override class func canonicalRequest(for request: URLRequest) -> URLRequest {
                                                             ^~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:54:32: error: method does not override any method from its superclass
    public override class func canonicalRequest(for request: URLRequest) -> URLRequest {
           ~~~~~~~~            ^
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:58:69: error: cannot find type 'URLRequest' in scope
    public override class func requestIsCacheEquivalent(_ requestA: URLRequest, to requestB: URLRequest) -> Bool {
                                                                    ^~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:58:94: error: cannot find type 'URLRequest' in scope
    public override class func requestIsCacheEquivalent(_ requestA: URLRequest, to requestB: URLRequest) -> Bool {
                                                                                             ^~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:58:32: error: method does not override any method from its superclass
    public override class func requestIsCacheEquivalent(_ requestA: URLRequest, to requestB: URLRequest) -> Bool {
           ~~~~~~~~            ^
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:63:35: error: cannot find type 'URLRequest' in scope
    public override init(request: URLRequest, cachedResponse: CachedURLResponse?, client: URLProtocolClient?) {
                                  ^~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:63:91: error: cannot find type 'URLProtocolClient' in scope
    public override init(request: URLRequest, cachedResponse: CachedURLResponse?, client: URLProtocolClient?) {
                                                                                          ^~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:63:21: error: initializer does not override a designated initializer from its superclass
    public override init(request: URLRequest, cachedResponse: CachedURLResponse?, client: URLProtocolClient?) {
           ~~~~~~~~ ^
/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.
    public override init(request: URLRequest, cachedResponse: CachedURLResponse?, client: URLProtocolClient?) {
                                                              ^~~~~~~~~~~~~~~~~
Foundation.CachedURLResponse:2:18: note: 'CachedURLResponse' has been explicitly marked unavailable here
public typealias CachedURLResponse = AnyObject
                 ^
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:67:83: error: cannot find type 'URLProtocolClient' in scope
    public init(task: URLSessionTask, cachedResponse: CachedURLResponse?, client: URLProtocolClient?) {
                                                                                  ^~~~~~~~~~~~~~~~~
/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.
    public init(task: URLSessionTask, cachedResponse: CachedURLResponse?, client: URLProtocolClient?) {
                      ^~~~~~~~~~~~~~
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
public typealias URLSessionTask = AnyObject
                 ^
/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.
    public init(task: URLSessionTask, cachedResponse: CachedURLResponse?, client: URLProtocolClient?) {
                                                      ^~~~~~~~~~~~~~~~~
Foundation.CachedURLResponse:2:18: note: 'CachedURLResponse' has been explicitly marked unavailable here
public typealias CachedURLResponse = AnyObject
                 ^
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:72:26: error: method does not override any method from its superclass
    public override func startLoading() {
           ~~~~~~~~      ^
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:135:26: error: method does not override any method from its superclass
    public override func stopLoading() {
           ~~~~~~~~      ^
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:142:49: error: cannot find type 'URLRequest' in scope
                            forRequest request: URLRequest, forStub stub: HTTPStubResponse,
                                                ^~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:190:43: error: cannot find type 'URLRequest' in scope
    private func finishRequest(_ request: URLRequest, withStub stubResponse: HTTPStubResponse, cookies: HTTPCookieStorage) {
                                          ^~~~~~~~~~
/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.
    private func finishRequest(_ request: URLRequest, withStub stubResponse: HTTPStubResponse, cookies: HTTPCookieStorage) {
                                                                                                        ^~~~~~~~~~~~~~~~~
Foundation.HTTPCookieStorage:2:18: note: 'HTTPCookieStorage' has been explicitly marked unavailable here
public typealias HTTPCookieStorage = AnyObject
                 ^
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:21:14: error: only protocols can inherit from 'AnyObject'
public class HTTPStubURLProtocol: URLProtocol {
             ^
/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.
public class HTTPStubURLProtocol: URLProtocol {
                                  ^~~~~~~~~~~
Foundation.URLProtocol:2:18: note: 'URLProtocol' has been explicitly marked unavailable here
public typealias URLProtocol = AnyObject
                 ^
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:64:9: error: 'super' members cannot be referenced in a root class
        super.init(request: request, cachedResponse: cachedResponse, client: client)
        ^
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:68:9: error: 'super' members cannot be referenced in a root class
        super.init(request: task.currentRequest!, cachedResponse: cachedResponse, client: client)
        ^
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:73:28: error: value of type 'HTTPStubURLProtocol' has no member 'request'
        var request = self.request
                      ~~~~ ^~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:76:47: error: type 'HTTPCookieStorage' (aka 'AnyObject') has no member 'shared'
        var cookieStorage = HTTPCookieStorage.shared
                            ~~~~~~~~~~~~~~~~~ ^~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:77:32: error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'value'
        if let session = task?.value(forKey: "session") as? URLSession,
                         ~~~~~ ^~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:87:59: error: type 'HTTPCookie' (aka 'AnyObject') has no member 'requestHeaderFields'
            request.allHTTPHeaderFields!.merge(HTTPCookie.requestHeaderFields(with: cookies)) { (current, _) in
                                               ~~~~~~~~~~ ^~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:99:13: error: cannot find 'client' in scope
            client?.urlProtocol(self, didFailWithError: HTTPStubberErrors.matchStubNotFound(request))
            ^~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:119:22: error: value of type 'HTTPStubURLProtocol' has no member 'client'
                self.client?.urlProtocol(self, didLoad: Data())
                ~~~~ ^~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:176:26: error: value of type 'HTTPStubURLProtocol' has no member 'client'
                    self.client?.urlProtocol(self, didLoad: data)
                    ~~~~ ^~~~~~
/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
extension HTTPURLResponse {
^         ~~~~~~~~~~~~~~~
/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
extension URLSessionConfiguration {
^         ~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:193:39: error: type 'HTTPCookie' (aka 'AnyObject') has no member 'cookies'
        let cookiesToSet = HTTPCookie.cookies(withResponseHeaderFields: headers, for: url)
                           ~~~~~~~~~~ ^~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:194:17: error: value of type 'HTTPCookieStorage' (aka 'AnyObject') has no member 'setCookies'
        cookies.setCookies(cookiesToSet, for: request.url!, mainDocumentURL: url)
        ~~~~~~~ ^~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:197:13: error: cannot find 'client' in scope
            client?.urlProtocol(self, didFailWithError: failureError)
            ^~~~~~
/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
        let response = HTTPURLResponse(url: url,
                       ^~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:204:53: error: 'nil' requires a contextual type
                                       httpVersion: nil,
                                                    ^
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:215:28: error: cannot find 'URLRequest' in scope
            var redirect = URLRequest(url: location)
                           ^~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:216:48: error: value of type 'HTTPCookieStorage' (aka 'AnyObject') has no member 'cookies'
            if let cookiesInRedirect = cookies.cookies(for: url) {
                                       ~~~~~~~ ^~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:217:59: error: type 'HTTPCookie' (aka 'AnyObject') has no member 'requestHeaderFields'
                redirect.allHTTPHeaderFields = HTTPCookie.requestHeaderFields(with: cookiesInRedirect)
                                               ~~~~~~~~~~ ^~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:219:13: error: cannot find 'client' in scope
            client?.urlProtocol(self, wasRedirectedTo: redirect, redirectResponse: response!)
            ^~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:223:9: error: cannot find 'client' in scope
        client?.urlProtocol(self, didReceive: response!, cacheStoragePolicy: .notAllowed)
        ^~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:223:79: error: cannot infer contextual base in reference to member 'notAllowed'
        client?.urlProtocol(self, didReceive: response!, cacheStoragePolicy: .notAllowed)
                                                                             ~^~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:225:13: error: cannot find 'client' in scope
            client?.urlProtocol(self, didLoad: data)
            ^~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:227:9: error: cannot find 'client' in scope
        client?.urlProtocolDidFinishLoading(self)
        ^~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/URLHook.swift:25:21: error: type 'URLProtocol' (aka 'AnyObject') has no member 'registerClass'
        URLProtocol.registerClass(HTTPStubURLProtocol.self)
        ~~~~~~~~~~~ ^~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/URLHook.swift:29:21: error: type 'URLProtocol' (aka 'AnyObject') has no member 'unregisterClass'
        URLProtocol.unregisterClass(HTTPStubURLProtocol.self)
        ~~~~~~~~~~~ ^~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/URLSessionHook.swift:41:40: error: cannot find type 'Selector' in scope
    private func originalSelector() -> Selector {
                                       ^~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/URLSessionHook.swift:45:6: error: Objective-C interoperability is disabled
    @objc private func protocolClasses() -> [AnyClass] {
    ~^~~~~

/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/URLSessionHook.swift:26:28: error: cannot find 'class_getInstanceMethod' in scope
        guard let method = class_getInstanceMethod(originalClass(), originalSelector()),
                           ^~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/URLSessionHook.swift:27:26: error: cannot find 'class_getInstanceMethod' in scope
              let stub = class_getInstanceMethod(URLSessionHook.self, #selector(protocolClasses)) else {
                         ^~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/URLSessionHook.swift:27:71: error: '#selector' can only be used with the Objective-C runtime
              let stub = class_getInstanceMethod(URLSessionHook.self, #selector(protocolClasses)) else {
                                                                      ^
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/URLSessionHook.swift:30:9: error: cannot find 'method_exchangeImplementations' in scope
        method_exchangeImplementations(method, stub)
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[74/79] Compiling RealHTTP HTTPStubber.swift
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/HTTPStubber.swift:189:53: error: cannot find type 'URLRequest' in scope
    internal func suitableStubForRequest(_ request: URLRequest) -> HTTPStubRequest? {
                                                    ^~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/HTTPStubber.swift:199:41: error: cannot find type 'URLRequest' in scope
    public func shouldHandle(_ request: URLRequest) -> Bool {
                                        ^~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/Stub Request/HTTPStubRequest.swift:50:37: error: cannot find type 'URLRequest' in scope
    public func match(_ urlRequest: URLRequest) -> Bool {
                                    ^~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/Stub Matchers/Built-In Matchers/HTTPStubCustomMatcher.swift:22:33: error: cannot find type 'URLRequest' in scope
    public typealias Handler = (URLRequest, HTTPMatcherSource) -> Bool
                                ^~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/HTTPStubber.swift:191:16: error: cannot convert value of type 'HTTPStubRequest' to closure result type 'Bool'
            $0.match(request)
            ~~~^~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/HTTPStubIgnoreRule.swift:83:41: error: cannot find type 'URLRequest' in scope
    internal func matches(_ urlRequest: URLRequest) -> Bool {
                                        ^~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/HTTPStubberErrors.swift:22:28: error: cannot find type 'URLRequest' in scope
    case matchStubNotFound(URLRequest)
                           ^~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:29:25: error: property does not override any property from its superclass
    public override var task: URLSessionTask? {
           ~~~~~~~~     ^
/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.
    public override var task: URLSessionTask? {
                              ^~~~~~~~~~~~~~
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
public typealias URLSessionTask = AnyObject
                 ^
/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.
    private var urlSessionTask: URLSessionTask?
                                ^~~~~~~~~~~~~~
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
public typealias URLSessionTask = AnyObject
                 ^
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:44:54: error: cannot find type 'URLRequest' in scope
    public override class func canInit(with request: URLRequest) -> Bool {
                                                     ^~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:44:32: error: method does not override any method from its superclass
    public override class func canInit(with request: URLRequest) -> Bool {
           ~~~~~~~~            ^
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:54:77: error: cannot find type 'URLRequest' in scope
    public override class func canonicalRequest(for request: URLRequest) -> URLRequest {
                                                                            ^~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:54:62: error: cannot find type 'URLRequest' in scope
    public override class func canonicalRequest(for request: URLRequest) -> URLRequest {
                                                             ^~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:54:32: error: method does not override any method from its superclass
    public override class func canonicalRequest(for request: URLRequest) -> URLRequest {
           ~~~~~~~~            ^
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:58:69: error: cannot find type 'URLRequest' in scope
    public override class func requestIsCacheEquivalent(_ requestA: URLRequest, to requestB: URLRequest) -> Bool {
                                                                    ^~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:58:94: error: cannot find type 'URLRequest' in scope
    public override class func requestIsCacheEquivalent(_ requestA: URLRequest, to requestB: URLRequest) -> Bool {
                                                                                             ^~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:58:32: error: method does not override any method from its superclass
    public override class func requestIsCacheEquivalent(_ requestA: URLRequest, to requestB: URLRequest) -> Bool {
           ~~~~~~~~            ^
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:63:35: error: cannot find type 'URLRequest' in scope
    public override init(request: URLRequest, cachedResponse: CachedURLResponse?, client: URLProtocolClient?) {
                                  ^~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:63:91: error: cannot find type 'URLProtocolClient' in scope
    public override init(request: URLRequest, cachedResponse: CachedURLResponse?, client: URLProtocolClient?) {
                                                                                          ^~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:63:21: error: initializer does not override a designated initializer from its superclass
    public override init(request: URLRequest, cachedResponse: CachedURLResponse?, client: URLProtocolClient?) {
           ~~~~~~~~ ^
/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.
    public override init(request: URLRequest, cachedResponse: CachedURLResponse?, client: URLProtocolClient?) {
                                                              ^~~~~~~~~~~~~~~~~
Foundation.CachedURLResponse:2:18: note: 'CachedURLResponse' has been explicitly marked unavailable here
public typealias CachedURLResponse = AnyObject
                 ^
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:67:83: error: cannot find type 'URLProtocolClient' in scope
    public init(task: URLSessionTask, cachedResponse: CachedURLResponse?, client: URLProtocolClient?) {
                                                                                  ^~~~~~~~~~~~~~~~~
/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.
    public init(task: URLSessionTask, cachedResponse: CachedURLResponse?, client: URLProtocolClient?) {
                      ^~~~~~~~~~~~~~
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
public typealias URLSessionTask = AnyObject
                 ^
/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.
    public init(task: URLSessionTask, cachedResponse: CachedURLResponse?, client: URLProtocolClient?) {
                                                      ^~~~~~~~~~~~~~~~~
Foundation.CachedURLResponse:2:18: note: 'CachedURLResponse' has been explicitly marked unavailable here
public typealias CachedURLResponse = AnyObject
                 ^
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:72:26: error: method does not override any method from its superclass
    public override func startLoading() {
           ~~~~~~~~      ^
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:135:26: error: method does not override any method from its superclass
    public override func stopLoading() {
           ~~~~~~~~      ^
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:142:49: error: cannot find type 'URLRequest' in scope
                            forRequest request: URLRequest, forStub stub: HTTPStubResponse,
                                                ^~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:190:43: error: cannot find type 'URLRequest' in scope
    private func finishRequest(_ request: URLRequest, withStub stubResponse: HTTPStubResponse, cookies: HTTPCookieStorage) {
                                          ^~~~~~~~~~
/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.
    private func finishRequest(_ request: URLRequest, withStub stubResponse: HTTPStubResponse, cookies: HTTPCookieStorage) {
                                                                                                        ^~~~~~~~~~~~~~~~~
Foundation.HTTPCookieStorage:2:18: note: 'HTTPCookieStorage' has been explicitly marked unavailable here
public typealias HTTPCookieStorage = AnyObject
                 ^
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:21:14: error: only protocols can inherit from 'AnyObject'
public class HTTPStubURLProtocol: URLProtocol {
             ^
/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.
public class HTTPStubURLProtocol: URLProtocol {
                                  ^~~~~~~~~~~
Foundation.URLProtocol:2:18: note: 'URLProtocol' has been explicitly marked unavailable here
public typealias URLProtocol = AnyObject
                 ^
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:64:9: error: 'super' members cannot be referenced in a root class
        super.init(request: request, cachedResponse: cachedResponse, client: client)
        ^
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:68:9: error: 'super' members cannot be referenced in a root class
        super.init(request: task.currentRequest!, cachedResponse: cachedResponse, client: client)
        ^
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:73:28: error: value of type 'HTTPStubURLProtocol' has no member 'request'
        var request = self.request
                      ~~~~ ^~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:76:47: error: type 'HTTPCookieStorage' (aka 'AnyObject') has no member 'shared'
        var cookieStorage = HTTPCookieStorage.shared
                            ~~~~~~~~~~~~~~~~~ ^~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:77:32: error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'value'
        if let session = task?.value(forKey: "session") as? URLSession,
                         ~~~~~ ^~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:87:59: error: type 'HTTPCookie' (aka 'AnyObject') has no member 'requestHeaderFields'
            request.allHTTPHeaderFields!.merge(HTTPCookie.requestHeaderFields(with: cookies)) { (current, _) in
                                               ~~~~~~~~~~ ^~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:99:13: error: cannot find 'client' in scope
            client?.urlProtocol(self, didFailWithError: HTTPStubberErrors.matchStubNotFound(request))
            ^~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:119:22: error: value of type 'HTTPStubURLProtocol' has no member 'client'
                self.client?.urlProtocol(self, didLoad: Data())
                ~~~~ ^~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:176:26: error: value of type 'HTTPStubURLProtocol' has no member 'client'
                    self.client?.urlProtocol(self, didLoad: data)
                    ~~~~ ^~~~~~
/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
extension HTTPURLResponse {
^         ~~~~~~~~~~~~~~~
/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
extension URLSessionConfiguration {
^         ~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:193:39: error: type 'HTTPCookie' (aka 'AnyObject') has no member 'cookies'
        let cookiesToSet = HTTPCookie.cookies(withResponseHeaderFields: headers, for: url)
                           ~~~~~~~~~~ ^~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:194:17: error: value of type 'HTTPCookieStorage' (aka 'AnyObject') has no member 'setCookies'
        cookies.setCookies(cookiesToSet, for: request.url!, mainDocumentURL: url)
        ~~~~~~~ ^~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:197:13: error: cannot find 'client' in scope
            client?.urlProtocol(self, didFailWithError: failureError)
            ^~~~~~
/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
        let response = HTTPURLResponse(url: url,
                       ^~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:204:53: error: 'nil' requires a contextual type
                                       httpVersion: nil,
                                                    ^
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:215:28: error: cannot find 'URLRequest' in scope
            var redirect = URLRequest(url: location)
                           ^~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:216:48: error: value of type 'HTTPCookieStorage' (aka 'AnyObject') has no member 'cookies'
            if let cookiesInRedirect = cookies.cookies(for: url) {
                                       ~~~~~~~ ^~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:217:59: error: type 'HTTPCookie' (aka 'AnyObject') has no member 'requestHeaderFields'
                redirect.allHTTPHeaderFields = HTTPCookie.requestHeaderFields(with: cookiesInRedirect)
                                               ~~~~~~~~~~ ^~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:219:13: error: cannot find 'client' in scope
            client?.urlProtocol(self, wasRedirectedTo: redirect, redirectResponse: response!)
            ^~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:223:9: error: cannot find 'client' in scope
        client?.urlProtocol(self, didReceive: response!, cacheStoragePolicy: .notAllowed)
        ^~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:223:79: error: cannot infer contextual base in reference to member 'notAllowed'
        client?.urlProtocol(self, didReceive: response!, cacheStoragePolicy: .notAllowed)
                                                                             ~^~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:225:13: error: cannot find 'client' in scope
            client?.urlProtocol(self, didLoad: data)
            ^~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:227:9: error: cannot find 'client' in scope
        client?.urlProtocolDidFinishLoading(self)
        ^~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/URLHook.swift:25:21: error: type 'URLProtocol' (aka 'AnyObject') has no member 'registerClass'
        URLProtocol.registerClass(HTTPStubURLProtocol.self)
        ~~~~~~~~~~~ ^~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/URLHook.swift:29:21: error: type 'URLProtocol' (aka 'AnyObject') has no member 'unregisterClass'
        URLProtocol.unregisterClass(HTTPStubURLProtocol.self)
        ~~~~~~~~~~~ ^~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/URLSessionHook.swift:41:40: error: cannot find type 'Selector' in scope
    private func originalSelector() -> Selector {
                                       ^~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/URLSessionHook.swift:45:6: error: Objective-C interoperability is disabled
    @objc private func protocolClasses() -> [AnyClass] {
    ~^~~~~

/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/URLSessionHook.swift:26:28: error: cannot find 'class_getInstanceMethod' in scope
        guard let method = class_getInstanceMethod(originalClass(), originalSelector()),
                           ^~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/URLSessionHook.swift:27:26: error: cannot find 'class_getInstanceMethod' in scope
              let stub = class_getInstanceMethod(URLSessionHook.self, #selector(protocolClasses)) else {
                         ^~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/URLSessionHook.swift:27:71: error: '#selector' can only be used with the Objective-C runtime
              let stub = class_getInstanceMethod(URLSessionHook.self, #selector(protocolClasses)) else {
                                                                      ^
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/URLSessionHook.swift:30:9: error: cannot find 'method_exchangeImplementations' in scope
        method_exchangeImplementations(method, stub)
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[75/79] Compiling RealHTTP HTTPStubberErrors.swift
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/HTTPStubber.swift:189:53: error: cannot find type 'URLRequest' in scope
    internal func suitableStubForRequest(_ request: URLRequest) -> HTTPStubRequest? {
                                                    ^~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/HTTPStubber.swift:199:41: error: cannot find type 'URLRequest' in scope
    public func shouldHandle(_ request: URLRequest) -> Bool {
                                        ^~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/Stub Request/HTTPStubRequest.swift:50:37: error: cannot find type 'URLRequest' in scope
    public func match(_ urlRequest: URLRequest) -> Bool {
                                    ^~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/Stub Matchers/Built-In Matchers/HTTPStubCustomMatcher.swift:22:33: error: cannot find type 'URLRequest' in scope
    public typealias Handler = (URLRequest, HTTPMatcherSource) -> Bool
                                ^~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/HTTPStubber.swift:191:16: error: cannot convert value of type 'HTTPStubRequest' to closure result type 'Bool'
            $0.match(request)
            ~~~^~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/HTTPStubIgnoreRule.swift:83:41: error: cannot find type 'URLRequest' in scope
    internal func matches(_ urlRequest: URLRequest) -> Bool {
                                        ^~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/HTTPStubberErrors.swift:22:28: error: cannot find type 'URLRequest' in scope
    case matchStubNotFound(URLRequest)
                           ^~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:29:25: error: property does not override any property from its superclass
    public override var task: URLSessionTask? {
           ~~~~~~~~     ^
/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.
    public override var task: URLSessionTask? {
                              ^~~~~~~~~~~~~~
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
public typealias URLSessionTask = AnyObject
                 ^
/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.
    private var urlSessionTask: URLSessionTask?
                                ^~~~~~~~~~~~~~
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
public typealias URLSessionTask = AnyObject
                 ^
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:44:54: error: cannot find type 'URLRequest' in scope
    public override class func canInit(with request: URLRequest) -> Bool {
                                                     ^~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:44:32: error: method does not override any method from its superclass
    public override class func canInit(with request: URLRequest) -> Bool {
           ~~~~~~~~            ^
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:54:77: error: cannot find type 'URLRequest' in scope
    public override class func canonicalRequest(for request: URLRequest) -> URLRequest {
                                                                            ^~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:54:62: error: cannot find type 'URLRequest' in scope
    public override class func canonicalRequest(for request: URLRequest) -> URLRequest {
                                                             ^~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:54:32: error: method does not override any method from its superclass
    public override class func canonicalRequest(for request: URLRequest) -> URLRequest {
           ~~~~~~~~            ^
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:58:69: error: cannot find type 'URLRequest' in scope
    public override class func requestIsCacheEquivalent(_ requestA: URLRequest, to requestB: URLRequest) -> Bool {
                                                                    ^~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:58:94: error: cannot find type 'URLRequest' in scope
    public override class func requestIsCacheEquivalent(_ requestA: URLRequest, to requestB: URLRequest) -> Bool {
                                                                                             ^~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:58:32: error: method does not override any method from its superclass
    public override class func requestIsCacheEquivalent(_ requestA: URLRequest, to requestB: URLRequest) -> Bool {
           ~~~~~~~~            ^
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:63:35: error: cannot find type 'URLRequest' in scope
    public override init(request: URLRequest, cachedResponse: CachedURLResponse?, client: URLProtocolClient?) {
                                  ^~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:63:91: error: cannot find type 'URLProtocolClient' in scope
    public override init(request: URLRequest, cachedResponse: CachedURLResponse?, client: URLProtocolClient?) {
                                                                                          ^~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:63:21: error: initializer does not override a designated initializer from its superclass
    public override init(request: URLRequest, cachedResponse: CachedURLResponse?, client: URLProtocolClient?) {
           ~~~~~~~~ ^
/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.
    public override init(request: URLRequest, cachedResponse: CachedURLResponse?, client: URLProtocolClient?) {
                                                              ^~~~~~~~~~~~~~~~~
Foundation.CachedURLResponse:2:18: note: 'CachedURLResponse' has been explicitly marked unavailable here
public typealias CachedURLResponse = AnyObject
                 ^
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:67:83: error: cannot find type 'URLProtocolClient' in scope
    public init(task: URLSessionTask, cachedResponse: CachedURLResponse?, client: URLProtocolClient?) {
                                                                                  ^~~~~~~~~~~~~~~~~
/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.
    public init(task: URLSessionTask, cachedResponse: CachedURLResponse?, client: URLProtocolClient?) {
                      ^~~~~~~~~~~~~~
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
public typealias URLSessionTask = AnyObject
                 ^
/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.
    public init(task: URLSessionTask, cachedResponse: CachedURLResponse?, client: URLProtocolClient?) {
                                                      ^~~~~~~~~~~~~~~~~
Foundation.CachedURLResponse:2:18: note: 'CachedURLResponse' has been explicitly marked unavailable here
public typealias CachedURLResponse = AnyObject
                 ^
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:72:26: error: method does not override any method from its superclass
    public override func startLoading() {
           ~~~~~~~~      ^
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:135:26: error: method does not override any method from its superclass
    public override func stopLoading() {
           ~~~~~~~~      ^
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:142:49: error: cannot find type 'URLRequest' in scope
                            forRequest request: URLRequest, forStub stub: HTTPStubResponse,
                                                ^~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:190:43: error: cannot find type 'URLRequest' in scope
    private func finishRequest(_ request: URLRequest, withStub stubResponse: HTTPStubResponse, cookies: HTTPCookieStorage) {
                                          ^~~~~~~~~~
/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.
    private func finishRequest(_ request: URLRequest, withStub stubResponse: HTTPStubResponse, cookies: HTTPCookieStorage) {
                                                                                                        ^~~~~~~~~~~~~~~~~
Foundation.HTTPCookieStorage:2:18: note: 'HTTPCookieStorage' has been explicitly marked unavailable here
public typealias HTTPCookieStorage = AnyObject
                 ^
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:21:14: error: only protocols can inherit from 'AnyObject'
public class HTTPStubURLProtocol: URLProtocol {
             ^
/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.
public class HTTPStubURLProtocol: URLProtocol {
                                  ^~~~~~~~~~~
Foundation.URLProtocol:2:18: note: 'URLProtocol' has been explicitly marked unavailable here
public typealias URLProtocol = AnyObject
                 ^
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:64:9: error: 'super' members cannot be referenced in a root class
        super.init(request: request, cachedResponse: cachedResponse, client: client)
        ^
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:68:9: error: 'super' members cannot be referenced in a root class
        super.init(request: task.currentRequest!, cachedResponse: cachedResponse, client: client)
        ^
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:73:28: error: value of type 'HTTPStubURLProtocol' has no member 'request'
        var request = self.request
                      ~~~~ ^~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:76:47: error: type 'HTTPCookieStorage' (aka 'AnyObject') has no member 'shared'
        var cookieStorage = HTTPCookieStorage.shared
                            ~~~~~~~~~~~~~~~~~ ^~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:77:32: error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'value'
        if let session = task?.value(forKey: "session") as? URLSession,
                         ~~~~~ ^~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:87:59: error: type 'HTTPCookie' (aka 'AnyObject') has no member 'requestHeaderFields'
            request.allHTTPHeaderFields!.merge(HTTPCookie.requestHeaderFields(with: cookies)) { (current, _) in
                                               ~~~~~~~~~~ ^~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:99:13: error: cannot find 'client' in scope
            client?.urlProtocol(self, didFailWithError: HTTPStubberErrors.matchStubNotFound(request))
            ^~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:119:22: error: value of type 'HTTPStubURLProtocol' has no member 'client'
                self.client?.urlProtocol(self, didLoad: Data())
                ~~~~ ^~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:176:26: error: value of type 'HTTPStubURLProtocol' has no member 'client'
                    self.client?.urlProtocol(self, didLoad: data)
                    ~~~~ ^~~~~~
/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
extension HTTPURLResponse {
^         ~~~~~~~~~~~~~~~
/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
extension URLSessionConfiguration {
^         ~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:193:39: error: type 'HTTPCookie' (aka 'AnyObject') has no member 'cookies'
        let cookiesToSet = HTTPCookie.cookies(withResponseHeaderFields: headers, for: url)
                           ~~~~~~~~~~ ^~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:194:17: error: value of type 'HTTPCookieStorage' (aka 'AnyObject') has no member 'setCookies'
        cookies.setCookies(cookiesToSet, for: request.url!, mainDocumentURL: url)
        ~~~~~~~ ^~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:197:13: error: cannot find 'client' in scope
            client?.urlProtocol(self, didFailWithError: failureError)
            ^~~~~~
/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
        let response = HTTPURLResponse(url: url,
                       ^~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:204:53: error: 'nil' requires a contextual type
                                       httpVersion: nil,
                                                    ^
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:215:28: error: cannot find 'URLRequest' in scope
            var redirect = URLRequest(url: location)
                           ^~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:216:48: error: value of type 'HTTPCookieStorage' (aka 'AnyObject') has no member 'cookies'
            if let cookiesInRedirect = cookies.cookies(for: url) {
                                       ~~~~~~~ ^~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:217:59: error: type 'HTTPCookie' (aka 'AnyObject') has no member 'requestHeaderFields'
                redirect.allHTTPHeaderFields = HTTPCookie.requestHeaderFields(with: cookiesInRedirect)
                                               ~~~~~~~~~~ ^~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:219:13: error: cannot find 'client' in scope
            client?.urlProtocol(self, wasRedirectedTo: redirect, redirectResponse: response!)
            ^~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:223:9: error: cannot find 'client' in scope
        client?.urlProtocol(self, didReceive: response!, cacheStoragePolicy: .notAllowed)
        ^~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:223:79: error: cannot infer contextual base in reference to member 'notAllowed'
        client?.urlProtocol(self, didReceive: response!, cacheStoragePolicy: .notAllowed)
                                                                             ~^~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:225:13: error: cannot find 'client' in scope
            client?.urlProtocol(self, didLoad: data)
            ^~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:227:9: error: cannot find 'client' in scope
        client?.urlProtocolDidFinishLoading(self)
        ^~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/URLHook.swift:25:21: error: type 'URLProtocol' (aka 'AnyObject') has no member 'registerClass'
        URLProtocol.registerClass(HTTPStubURLProtocol.self)
        ~~~~~~~~~~~ ^~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/URLHook.swift:29:21: error: type 'URLProtocol' (aka 'AnyObject') has no member 'unregisterClass'
        URLProtocol.unregisterClass(HTTPStubURLProtocol.self)
        ~~~~~~~~~~~ ^~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/URLSessionHook.swift:41:40: error: cannot find type 'Selector' in scope
    private func originalSelector() -> Selector {
                                       ^~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/URLSessionHook.swift:45:6: error: Objective-C interoperability is disabled
    @objc private func protocolClasses() -> [AnyClass] {
    ~^~~~~

/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/URLSessionHook.swift:26:28: error: cannot find 'class_getInstanceMethod' in scope
        guard let method = class_getInstanceMethod(originalClass(), originalSelector()),
                           ^~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/URLSessionHook.swift:27:26: error: cannot find 'class_getInstanceMethod' in scope
              let stub = class_getInstanceMethod(URLSessionHook.self, #selector(protocolClasses)) else {
                         ^~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/URLSessionHook.swift:27:71: error: '#selector' can only be used with the Objective-C runtime
              let stub = class_getInstanceMethod(URLSessionHook.self, #selector(protocolClasses)) else {
                                                                      ^
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/URLSessionHook.swift:30:9: error: cannot find 'method_exchangeImplementations' in scope
        method_exchangeImplementations(method, stub)
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[76/79] Compiling RealHTTP HTTPStubHookProtocol.swift
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/HTTPStubber.swift:189:53: error: cannot find type 'URLRequest' in scope
    internal func suitableStubForRequest(_ request: URLRequest) -> HTTPStubRequest? {
                                                    ^~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/HTTPStubber.swift:199:41: error: cannot find type 'URLRequest' in scope
    public func shouldHandle(_ request: URLRequest) -> Bool {
                                        ^~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/Stub Request/HTTPStubRequest.swift:50:37: error: cannot find type 'URLRequest' in scope
    public func match(_ urlRequest: URLRequest) -> Bool {
                                    ^~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/Stub Matchers/Built-In Matchers/HTTPStubCustomMatcher.swift:22:33: error: cannot find type 'URLRequest' in scope
    public typealias Handler = (URLRequest, HTTPMatcherSource) -> Bool
                                ^~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/HTTPStubber.swift:191:16: error: cannot convert value of type 'HTTPStubRequest' to closure result type 'Bool'
            $0.match(request)
            ~~~^~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/HTTPStubIgnoreRule.swift:83:41: error: cannot find type 'URLRequest' in scope
    internal func matches(_ urlRequest: URLRequest) -> Bool {
                                        ^~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/HTTPStubberErrors.swift:22:28: error: cannot find type 'URLRequest' in scope
    case matchStubNotFound(URLRequest)
                           ^~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:29:25: error: property does not override any property from its superclass
    public override var task: URLSessionTask? {
           ~~~~~~~~     ^
/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.
    public override var task: URLSessionTask? {
                              ^~~~~~~~~~~~~~
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
public typealias URLSessionTask = AnyObject
                 ^
/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.
    private var urlSessionTask: URLSessionTask?
                                ^~~~~~~~~~~~~~
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
public typealias URLSessionTask = AnyObject
                 ^
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:44:54: error: cannot find type 'URLRequest' in scope
    public override class func canInit(with request: URLRequest) -> Bool {
                                                     ^~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:44:32: error: method does not override any method from its superclass
    public override class func canInit(with request: URLRequest) -> Bool {
           ~~~~~~~~            ^
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:54:77: error: cannot find type 'URLRequest' in scope
    public override class func canonicalRequest(for request: URLRequest) -> URLRequest {
                                                                            ^~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:54:62: error: cannot find type 'URLRequest' in scope
    public override class func canonicalRequest(for request: URLRequest) -> URLRequest {
                                                             ^~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:54:32: error: method does not override any method from its superclass
    public override class func canonicalRequest(for request: URLRequest) -> URLRequest {
           ~~~~~~~~            ^
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:58:69: error: cannot find type 'URLRequest' in scope
    public override class func requestIsCacheEquivalent(_ requestA: URLRequest, to requestB: URLRequest) -> Bool {
                                                                    ^~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:58:94: error: cannot find type 'URLRequest' in scope
    public override class func requestIsCacheEquivalent(_ requestA: URLRequest, to requestB: URLRequest) -> Bool {
                                                                                             ^~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:58:32: error: method does not override any method from its superclass
    public override class func requestIsCacheEquivalent(_ requestA: URLRequest, to requestB: URLRequest) -> Bool {
           ~~~~~~~~            ^
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:63:35: error: cannot find type 'URLRequest' in scope
    public override init(request: URLRequest, cachedResponse: CachedURLResponse?, client: URLProtocolClient?) {
                                  ^~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:63:91: error: cannot find type 'URLProtocolClient' in scope
    public override init(request: URLRequest, cachedResponse: CachedURLResponse?, client: URLProtocolClient?) {
                                                                                          ^~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:63:21: error: initializer does not override a designated initializer from its superclass
    public override init(request: URLRequest, cachedResponse: CachedURLResponse?, client: URLProtocolClient?) {
           ~~~~~~~~ ^
/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.
    public override init(request: URLRequest, cachedResponse: CachedURLResponse?, client: URLProtocolClient?) {
                                                              ^~~~~~~~~~~~~~~~~
Foundation.CachedURLResponse:2:18: note: 'CachedURLResponse' has been explicitly marked unavailable here
public typealias CachedURLResponse = AnyObject
                 ^
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:67:83: error: cannot find type 'URLProtocolClient' in scope
    public init(task: URLSessionTask, cachedResponse: CachedURLResponse?, client: URLProtocolClient?) {
                                                                                  ^~~~~~~~~~~~~~~~~
/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.
    public init(task: URLSessionTask, cachedResponse: CachedURLResponse?, client: URLProtocolClient?) {
                      ^~~~~~~~~~~~~~
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
public typealias URLSessionTask = AnyObject
                 ^
/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.
    public init(task: URLSessionTask, cachedResponse: CachedURLResponse?, client: URLProtocolClient?) {
                                                      ^~~~~~~~~~~~~~~~~
Foundation.CachedURLResponse:2:18: note: 'CachedURLResponse' has been explicitly marked unavailable here
public typealias CachedURLResponse = AnyObject
                 ^
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:72:26: error: method does not override any method from its superclass
    public override func startLoading() {
           ~~~~~~~~      ^
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:135:26: error: method does not override any method from its superclass
    public override func stopLoading() {
           ~~~~~~~~      ^
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:142:49: error: cannot find type 'URLRequest' in scope
                            forRequest request: URLRequest, forStub stub: HTTPStubResponse,
                                                ^~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:190:43: error: cannot find type 'URLRequest' in scope
    private func finishRequest(_ request: URLRequest, withStub stubResponse: HTTPStubResponse, cookies: HTTPCookieStorage) {
                                          ^~~~~~~~~~
/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.
    private func finishRequest(_ request: URLRequest, withStub stubResponse: HTTPStubResponse, cookies: HTTPCookieStorage) {
                                                                                                        ^~~~~~~~~~~~~~~~~
Foundation.HTTPCookieStorage:2:18: note: 'HTTPCookieStorage' has been explicitly marked unavailable here
public typealias HTTPCookieStorage = AnyObject
                 ^
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:21:14: error: only protocols can inherit from 'AnyObject'
public class HTTPStubURLProtocol: URLProtocol {
             ^
/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.
public class HTTPStubURLProtocol: URLProtocol {
                                  ^~~~~~~~~~~
Foundation.URLProtocol:2:18: note: 'URLProtocol' has been explicitly marked unavailable here
public typealias URLProtocol = AnyObject
                 ^
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:64:9: error: 'super' members cannot be referenced in a root class
        super.init(request: request, cachedResponse: cachedResponse, client: client)
        ^
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:68:9: error: 'super' members cannot be referenced in a root class
        super.init(request: task.currentRequest!, cachedResponse: cachedResponse, client: client)
        ^
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:73:28: error: value of type 'HTTPStubURLProtocol' has no member 'request'
        var request = self.request
                      ~~~~ ^~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:76:47: error: type 'HTTPCookieStorage' (aka 'AnyObject') has no member 'shared'
        var cookieStorage = HTTPCookieStorage.shared
                            ~~~~~~~~~~~~~~~~~ ^~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:77:32: error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'value'
        if let session = task?.value(forKey: "session") as? URLSession,
                         ~~~~~ ^~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:87:59: error: type 'HTTPCookie' (aka 'AnyObject') has no member 'requestHeaderFields'
            request.allHTTPHeaderFields!.merge(HTTPCookie.requestHeaderFields(with: cookies)) { (current, _) in
                                               ~~~~~~~~~~ ^~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:99:13: error: cannot find 'client' in scope
            client?.urlProtocol(self, didFailWithError: HTTPStubberErrors.matchStubNotFound(request))
            ^~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:119:22: error: value of type 'HTTPStubURLProtocol' has no member 'client'
                self.client?.urlProtocol(self, didLoad: Data())
                ~~~~ ^~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:176:26: error: value of type 'HTTPStubURLProtocol' has no member 'client'
                    self.client?.urlProtocol(self, didLoad: data)
                    ~~~~ ^~~~~~
/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
extension HTTPURLResponse {
^         ~~~~~~~~~~~~~~~
/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
extension URLSessionConfiguration {
^         ~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:193:39: error: type 'HTTPCookie' (aka 'AnyObject') has no member 'cookies'
        let cookiesToSet = HTTPCookie.cookies(withResponseHeaderFields: headers, for: url)
                           ~~~~~~~~~~ ^~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:194:17: error: value of type 'HTTPCookieStorage' (aka 'AnyObject') has no member 'setCookies'
        cookies.setCookies(cookiesToSet, for: request.url!, mainDocumentURL: url)
        ~~~~~~~ ^~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:197:13: error: cannot find 'client' in scope
            client?.urlProtocol(self, didFailWithError: failureError)
            ^~~~~~
/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
        let response = HTTPURLResponse(url: url,
                       ^~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:204:53: error: 'nil' requires a contextual type
                                       httpVersion: nil,
                                                    ^
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:215:28: error: cannot find 'URLRequest' in scope
            var redirect = URLRequest(url: location)
                           ^~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:216:48: error: value of type 'HTTPCookieStorage' (aka 'AnyObject') has no member 'cookies'
            if let cookiesInRedirect = cookies.cookies(for: url) {
                                       ~~~~~~~ ^~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:217:59: error: type 'HTTPCookie' (aka 'AnyObject') has no member 'requestHeaderFields'
                redirect.allHTTPHeaderFields = HTTPCookie.requestHeaderFields(with: cookiesInRedirect)
                                               ~~~~~~~~~~ ^~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:219:13: error: cannot find 'client' in scope
            client?.urlProtocol(self, wasRedirectedTo: redirect, redirectResponse: response!)
            ^~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:223:9: error: cannot find 'client' in scope
        client?.urlProtocol(self, didReceive: response!, cacheStoragePolicy: .notAllowed)
        ^~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:223:79: error: cannot infer contextual base in reference to member 'notAllowed'
        client?.urlProtocol(self, didReceive: response!, cacheStoragePolicy: .notAllowed)
                                                                             ~^~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:225:13: error: cannot find 'client' in scope
            client?.urlProtocol(self, didLoad: data)
            ^~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:227:9: error: cannot find 'client' in scope
        client?.urlProtocolDidFinishLoading(self)
        ^~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/URLHook.swift:25:21: error: type 'URLProtocol' (aka 'AnyObject') has no member 'registerClass'
        URLProtocol.registerClass(HTTPStubURLProtocol.self)
        ~~~~~~~~~~~ ^~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/URLHook.swift:29:21: error: type 'URLProtocol' (aka 'AnyObject') has no member 'unregisterClass'
        URLProtocol.unregisterClass(HTTPStubURLProtocol.self)
        ~~~~~~~~~~~ ^~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/URLSessionHook.swift:41:40: error: cannot find type 'Selector' in scope
    private func originalSelector() -> Selector {
                                       ^~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/URLSessionHook.swift:45:6: error: Objective-C interoperability is disabled
    @objc private func protocolClasses() -> [AnyClass] {
    ~^~~~~

/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/URLSessionHook.swift:26:28: error: cannot find 'class_getInstanceMethod' in scope
        guard let method = class_getInstanceMethod(originalClass(), originalSelector()),
                           ^~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/URLSessionHook.swift:27:26: error: cannot find 'class_getInstanceMethod' in scope
              let stub = class_getInstanceMethod(URLSessionHook.self, #selector(protocolClasses)) else {
                         ^~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/URLSessionHook.swift:27:71: error: '#selector' can only be used with the Objective-C runtime
              let stub = class_getInstanceMethod(URLSessionHook.self, #selector(protocolClasses)) else {
                                                                      ^
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/URLSessionHook.swift:30:9: error: cannot find 'method_exchangeImplementations' in scope
        method_exchangeImplementations(method, stub)
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[77/79] Compiling RealHTTP HTTPStubURLProtocol.swift
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/HTTPStubber.swift:189:53: error: cannot find type 'URLRequest' in scope
    internal func suitableStubForRequest(_ request: URLRequest) -> HTTPStubRequest? {
                                                    ^~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/HTTPStubber.swift:199:41: error: cannot find type 'URLRequest' in scope
    public func shouldHandle(_ request: URLRequest) -> Bool {
                                        ^~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/Stub Request/HTTPStubRequest.swift:50:37: error: cannot find type 'URLRequest' in scope
    public func match(_ urlRequest: URLRequest) -> Bool {
                                    ^~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/Stub Matchers/Built-In Matchers/HTTPStubCustomMatcher.swift:22:33: error: cannot find type 'URLRequest' in scope
    public typealias Handler = (URLRequest, HTTPMatcherSource) -> Bool
                                ^~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/HTTPStubber.swift:191:16: error: cannot convert value of type 'HTTPStubRequest' to closure result type 'Bool'
            $0.match(request)
            ~~~^~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/HTTPStubIgnoreRule.swift:83:41: error: cannot find type 'URLRequest' in scope
    internal func matches(_ urlRequest: URLRequest) -> Bool {
                                        ^~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/HTTPStubberErrors.swift:22:28: error: cannot find type 'URLRequest' in scope
    case matchStubNotFound(URLRequest)
                           ^~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:29:25: error: property does not override any property from its superclass
    public override var task: URLSessionTask? {
           ~~~~~~~~     ^
/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.
    public override var task: URLSessionTask? {
                              ^~~~~~~~~~~~~~
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
public typealias URLSessionTask = AnyObject
                 ^
/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.
    private var urlSessionTask: URLSessionTask?
                                ^~~~~~~~~~~~~~
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
public typealias URLSessionTask = AnyObject
                 ^
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:44:54: error: cannot find type 'URLRequest' in scope
    public override class func canInit(with request: URLRequest) -> Bool {
                                                     ^~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:44:32: error: method does not override any method from its superclass
    public override class func canInit(with request: URLRequest) -> Bool {
           ~~~~~~~~            ^
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:54:77: error: cannot find type 'URLRequest' in scope
    public override class func canonicalRequest(for request: URLRequest) -> URLRequest {
                                                                            ^~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:54:62: error: cannot find type 'URLRequest' in scope
    public override class func canonicalRequest(for request: URLRequest) -> URLRequest {
                                                             ^~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:54:32: error: method does not override any method from its superclass
    public override class func canonicalRequest(for request: URLRequest) -> URLRequest {
           ~~~~~~~~            ^
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:58:69: error: cannot find type 'URLRequest' in scope
    public override class func requestIsCacheEquivalent(_ requestA: URLRequest, to requestB: URLRequest) -> Bool {
                                                                    ^~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:58:94: error: cannot find type 'URLRequest' in scope
    public override class func requestIsCacheEquivalent(_ requestA: URLRequest, to requestB: URLRequest) -> Bool {
                                                                                             ^~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:58:32: error: method does not override any method from its superclass
    public override class func requestIsCacheEquivalent(_ requestA: URLRequest, to requestB: URLRequest) -> Bool {
           ~~~~~~~~            ^
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:63:35: error: cannot find type 'URLRequest' in scope
    public override init(request: URLRequest, cachedResponse: CachedURLResponse?, client: URLProtocolClient?) {
                                  ^~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:63:91: error: cannot find type 'URLProtocolClient' in scope
    public override init(request: URLRequest, cachedResponse: CachedURLResponse?, client: URLProtocolClient?) {
                                                                                          ^~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:63:21: error: initializer does not override a designated initializer from its superclass
    public override init(request: URLRequest, cachedResponse: CachedURLResponse?, client: URLProtocolClient?) {
           ~~~~~~~~ ^
/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.
    public override init(request: URLRequest, cachedResponse: CachedURLResponse?, client: URLProtocolClient?) {
                                                              ^~~~~~~~~~~~~~~~~
Foundation.CachedURLResponse:2:18: note: 'CachedURLResponse' has been explicitly marked unavailable here
public typealias CachedURLResponse = AnyObject
                 ^
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:67:83: error: cannot find type 'URLProtocolClient' in scope
    public init(task: URLSessionTask, cachedResponse: CachedURLResponse?, client: URLProtocolClient?) {
                                                                                  ^~~~~~~~~~~~~~~~~
/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.
    public init(task: URLSessionTask, cachedResponse: CachedURLResponse?, client: URLProtocolClient?) {
                      ^~~~~~~~~~~~~~
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
public typealias URLSessionTask = AnyObject
                 ^
/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.
    public init(task: URLSessionTask, cachedResponse: CachedURLResponse?, client: URLProtocolClient?) {
                                                      ^~~~~~~~~~~~~~~~~
Foundation.CachedURLResponse:2:18: note: 'CachedURLResponse' has been explicitly marked unavailable here
public typealias CachedURLResponse = AnyObject
                 ^
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:72:26: error: method does not override any method from its superclass
    public override func startLoading() {
           ~~~~~~~~      ^
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:135:26: error: method does not override any method from its superclass
    public override func stopLoading() {
           ~~~~~~~~      ^
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:142:49: error: cannot find type 'URLRequest' in scope
                            forRequest request: URLRequest, forStub stub: HTTPStubResponse,
                                                ^~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:190:43: error: cannot find type 'URLRequest' in scope
    private func finishRequest(_ request: URLRequest, withStub stubResponse: HTTPStubResponse, cookies: HTTPCookieStorage) {
                                          ^~~~~~~~~~
/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.
    private func finishRequest(_ request: URLRequest, withStub stubResponse: HTTPStubResponse, cookies: HTTPCookieStorage) {
                                                                                                        ^~~~~~~~~~~~~~~~~
Foundation.HTTPCookieStorage:2:18: note: 'HTTPCookieStorage' has been explicitly marked unavailable here
public typealias HTTPCookieStorage = AnyObject
                 ^
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:21:14: error: only protocols can inherit from 'AnyObject'
public class HTTPStubURLProtocol: URLProtocol {
             ^
/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.
public class HTTPStubURLProtocol: URLProtocol {
                                  ^~~~~~~~~~~
Foundation.URLProtocol:2:18: note: 'URLProtocol' has been explicitly marked unavailable here
public typealias URLProtocol = AnyObject
                 ^
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:64:9: error: 'super' members cannot be referenced in a root class
        super.init(request: request, cachedResponse: cachedResponse, client: client)
        ^
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:68:9: error: 'super' members cannot be referenced in a root class
        super.init(request: task.currentRequest!, cachedResponse: cachedResponse, client: client)
        ^
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:73:28: error: value of type 'HTTPStubURLProtocol' has no member 'request'
        var request = self.request
                      ~~~~ ^~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:76:47: error: type 'HTTPCookieStorage' (aka 'AnyObject') has no member 'shared'
        var cookieStorage = HTTPCookieStorage.shared
                            ~~~~~~~~~~~~~~~~~ ^~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:77:32: error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'value'
        if let session = task?.value(forKey: "session") as? URLSession,
                         ~~~~~ ^~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:87:59: error: type 'HTTPCookie' (aka 'AnyObject') has no member 'requestHeaderFields'
            request.allHTTPHeaderFields!.merge(HTTPCookie.requestHeaderFields(with: cookies)) { (current, _) in
                                               ~~~~~~~~~~ ^~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:99:13: error: cannot find 'client' in scope
            client?.urlProtocol(self, didFailWithError: HTTPStubberErrors.matchStubNotFound(request))
            ^~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:119:22: error: value of type 'HTTPStubURLProtocol' has no member 'client'
                self.client?.urlProtocol(self, didLoad: Data())
                ~~~~ ^~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:176:26: error: value of type 'HTTPStubURLProtocol' has no member 'client'
                    self.client?.urlProtocol(self, didLoad: data)
                    ~~~~ ^~~~~~
/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
extension HTTPURLResponse {
^         ~~~~~~~~~~~~~~~
/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
extension URLSessionConfiguration {
^         ~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:193:39: error: type 'HTTPCookie' (aka 'AnyObject') has no member 'cookies'
        let cookiesToSet = HTTPCookie.cookies(withResponseHeaderFields: headers, for: url)
                           ~~~~~~~~~~ ^~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:194:17: error: value of type 'HTTPCookieStorage' (aka 'AnyObject') has no member 'setCookies'
        cookies.setCookies(cookiesToSet, for: request.url!, mainDocumentURL: url)
        ~~~~~~~ ^~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:197:13: error: cannot find 'client' in scope
            client?.urlProtocol(self, didFailWithError: failureError)
            ^~~~~~
/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
        let response = HTTPURLResponse(url: url,
                       ^~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:204:53: error: 'nil' requires a contextual type
                                       httpVersion: nil,
                                                    ^
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:215:28: error: cannot find 'URLRequest' in scope
            var redirect = URLRequest(url: location)
                           ^~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:216:48: error: value of type 'HTTPCookieStorage' (aka 'AnyObject') has no member 'cookies'
            if let cookiesInRedirect = cookies.cookies(for: url) {
                                       ~~~~~~~ ^~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:217:59: error: type 'HTTPCookie' (aka 'AnyObject') has no member 'requestHeaderFields'
                redirect.allHTTPHeaderFields = HTTPCookie.requestHeaderFields(with: cookiesInRedirect)
                                               ~~~~~~~~~~ ^~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:219:13: error: cannot find 'client' in scope
            client?.urlProtocol(self, wasRedirectedTo: redirect, redirectResponse: response!)
            ^~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:223:9: error: cannot find 'client' in scope
        client?.urlProtocol(self, didReceive: response!, cacheStoragePolicy: .notAllowed)
        ^~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:223:79: error: cannot infer contextual base in reference to member 'notAllowed'
        client?.urlProtocol(self, didReceive: response!, cacheStoragePolicy: .notAllowed)
                                                                             ~^~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:225:13: error: cannot find 'client' in scope
            client?.urlProtocol(self, didLoad: data)
            ^~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:227:9: error: cannot find 'client' in scope
        client?.urlProtocolDidFinishLoading(self)
        ^~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/URLHook.swift:25:21: error: type 'URLProtocol' (aka 'AnyObject') has no member 'registerClass'
        URLProtocol.registerClass(HTTPStubURLProtocol.self)
        ~~~~~~~~~~~ ^~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/URLHook.swift:29:21: error: type 'URLProtocol' (aka 'AnyObject') has no member 'unregisterClass'
        URLProtocol.unregisterClass(HTTPStubURLProtocol.self)
        ~~~~~~~~~~~ ^~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/URLSessionHook.swift:41:40: error: cannot find type 'Selector' in scope
    private func originalSelector() -> Selector {
                                       ^~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/URLSessionHook.swift:45:6: error: Objective-C interoperability is disabled
    @objc private func protocolClasses() -> [AnyClass] {
    ~^~~~~

/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/URLSessionHook.swift:26:28: error: cannot find 'class_getInstanceMethod' in scope
        guard let method = class_getInstanceMethod(originalClass(), originalSelector()),
                           ^~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/URLSessionHook.swift:27:26: error: cannot find 'class_getInstanceMethod' in scope
              let stub = class_getInstanceMethod(URLSessionHook.self, #selector(protocolClasses)) else {
                         ^~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/URLSessionHook.swift:27:71: error: '#selector' can only be used with the Objective-C runtime
              let stub = class_getInstanceMethod(URLSessionHook.self, #selector(protocolClasses)) else {
                                                                      ^
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/URLSessionHook.swift:30:9: error: cannot find 'method_exchangeImplementations' in scope
        method_exchangeImplementations(method, stub)
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[78/79] Compiling RealHTTP URLHook.swift
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/HTTPStubber.swift:189:53: error: cannot find type 'URLRequest' in scope
    internal func suitableStubForRequest(_ request: URLRequest) -> HTTPStubRequest? {
                                                    ^~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/HTTPStubber.swift:199:41: error: cannot find type 'URLRequest' in scope
    public func shouldHandle(_ request: URLRequest) -> Bool {
                                        ^~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/Stub Request/HTTPStubRequest.swift:50:37: error: cannot find type 'URLRequest' in scope
    public func match(_ urlRequest: URLRequest) -> Bool {
                                    ^~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/Stub Matchers/Built-In Matchers/HTTPStubCustomMatcher.swift:22:33: error: cannot find type 'URLRequest' in scope
    public typealias Handler = (URLRequest, HTTPMatcherSource) -> Bool
                                ^~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/HTTPStubber.swift:191:16: error: cannot convert value of type 'HTTPStubRequest' to closure result type 'Bool'
            $0.match(request)
            ~~~^~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/HTTPStubIgnoreRule.swift:83:41: error: cannot find type 'URLRequest' in scope
    internal func matches(_ urlRequest: URLRequest) -> Bool {
                                        ^~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/HTTPStubberErrors.swift:22:28: error: cannot find type 'URLRequest' in scope
    case matchStubNotFound(URLRequest)
                           ^~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:29:25: error: property does not override any property from its superclass
    public override var task: URLSessionTask? {
           ~~~~~~~~     ^
/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.
    public override var task: URLSessionTask? {
                              ^~~~~~~~~~~~~~
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
public typealias URLSessionTask = AnyObject
                 ^
/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.
    private var urlSessionTask: URLSessionTask?
                                ^~~~~~~~~~~~~~
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
public typealias URLSessionTask = AnyObject
                 ^
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:44:54: error: cannot find type 'URLRequest' in scope
    public override class func canInit(with request: URLRequest) -> Bool {
                                                     ^~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:44:32: error: method does not override any method from its superclass
    public override class func canInit(with request: URLRequest) -> Bool {
           ~~~~~~~~            ^
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:54:77: error: cannot find type 'URLRequest' in scope
    public override class func canonicalRequest(for request: URLRequest) -> URLRequest {
                                                                            ^~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:54:62: error: cannot find type 'URLRequest' in scope
    public override class func canonicalRequest(for request: URLRequest) -> URLRequest {
                                                             ^~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:54:32: error: method does not override any method from its superclass
    public override class func canonicalRequest(for request: URLRequest) -> URLRequest {
           ~~~~~~~~            ^
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:58:69: error: cannot find type 'URLRequest' in scope
    public override class func requestIsCacheEquivalent(_ requestA: URLRequest, to requestB: URLRequest) -> Bool {
                                                                    ^~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:58:94: error: cannot find type 'URLRequest' in scope
    public override class func requestIsCacheEquivalent(_ requestA: URLRequest, to requestB: URLRequest) -> Bool {
                                                                                             ^~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:58:32: error: method does not override any method from its superclass
    public override class func requestIsCacheEquivalent(_ requestA: URLRequest, to requestB: URLRequest) -> Bool {
           ~~~~~~~~            ^
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:63:35: error: cannot find type 'URLRequest' in scope
    public override init(request: URLRequest, cachedResponse: CachedURLResponse?, client: URLProtocolClient?) {
                                  ^~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:63:91: error: cannot find type 'URLProtocolClient' in scope
    public override init(request: URLRequest, cachedResponse: CachedURLResponse?, client: URLProtocolClient?) {
                                                                                          ^~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:63:21: error: initializer does not override a designated initializer from its superclass
    public override init(request: URLRequest, cachedResponse: CachedURLResponse?, client: URLProtocolClient?) {
           ~~~~~~~~ ^
/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.
    public override init(request: URLRequest, cachedResponse: CachedURLResponse?, client: URLProtocolClient?) {
                                                              ^~~~~~~~~~~~~~~~~
Foundation.CachedURLResponse:2:18: note: 'CachedURLResponse' has been explicitly marked unavailable here
public typealias CachedURLResponse = AnyObject
                 ^
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:67:83: error: cannot find type 'URLProtocolClient' in scope
    public init(task: URLSessionTask, cachedResponse: CachedURLResponse?, client: URLProtocolClient?) {
                                                                                  ^~~~~~~~~~~~~~~~~
/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.
    public init(task: URLSessionTask, cachedResponse: CachedURLResponse?, client: URLProtocolClient?) {
                      ^~~~~~~~~~~~~~
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
public typealias URLSessionTask = AnyObject
                 ^
/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.
    public init(task: URLSessionTask, cachedResponse: CachedURLResponse?, client: URLProtocolClient?) {
                                                      ^~~~~~~~~~~~~~~~~
Foundation.CachedURLResponse:2:18: note: 'CachedURLResponse' has been explicitly marked unavailable here
public typealias CachedURLResponse = AnyObject
                 ^
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:72:26: error: method does not override any method from its superclass
    public override func startLoading() {
           ~~~~~~~~      ^
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:135:26: error: method does not override any method from its superclass
    public override func stopLoading() {
           ~~~~~~~~      ^
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:142:49: error: cannot find type 'URLRequest' in scope
                            forRequest request: URLRequest, forStub stub: HTTPStubResponse,
                                                ^~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:190:43: error: cannot find type 'URLRequest' in scope
    private func finishRequest(_ request: URLRequest, withStub stubResponse: HTTPStubResponse, cookies: HTTPCookieStorage) {
                                          ^~~~~~~~~~
/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.
    private func finishRequest(_ request: URLRequest, withStub stubResponse: HTTPStubResponse, cookies: HTTPCookieStorage) {
                                                                                                        ^~~~~~~~~~~~~~~~~
Foundation.HTTPCookieStorage:2:18: note: 'HTTPCookieStorage' has been explicitly marked unavailable here
public typealias HTTPCookieStorage = AnyObject
                 ^
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:21:14: error: only protocols can inherit from 'AnyObject'
public class HTTPStubURLProtocol: URLProtocol {
             ^
/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.
public class HTTPStubURLProtocol: URLProtocol {
                                  ^~~~~~~~~~~
Foundation.URLProtocol:2:18: note: 'URLProtocol' has been explicitly marked unavailable here
public typealias URLProtocol = AnyObject
                 ^
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:64:9: error: 'super' members cannot be referenced in a root class
        super.init(request: request, cachedResponse: cachedResponse, client: client)
        ^
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:68:9: error: 'super' members cannot be referenced in a root class
        super.init(request: task.currentRequest!, cachedResponse: cachedResponse, client: client)
        ^
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:73:28: error: value of type 'HTTPStubURLProtocol' has no member 'request'
        var request = self.request
                      ~~~~ ^~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:76:47: error: type 'HTTPCookieStorage' (aka 'AnyObject') has no member 'shared'
        var cookieStorage = HTTPCookieStorage.shared
                            ~~~~~~~~~~~~~~~~~ ^~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:77:32: error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'value'
        if let session = task?.value(forKey: "session") as? URLSession,
                         ~~~~~ ^~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:87:59: error: type 'HTTPCookie' (aka 'AnyObject') has no member 'requestHeaderFields'
            request.allHTTPHeaderFields!.merge(HTTPCookie.requestHeaderFields(with: cookies)) { (current, _) in
                                               ~~~~~~~~~~ ^~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:99:13: error: cannot find 'client' in scope
            client?.urlProtocol(self, didFailWithError: HTTPStubberErrors.matchStubNotFound(request))
            ^~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:119:22: error: value of type 'HTTPStubURLProtocol' has no member 'client'
                self.client?.urlProtocol(self, didLoad: Data())
                ~~~~ ^~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:176:26: error: value of type 'HTTPStubURLProtocol' has no member 'client'
                    self.client?.urlProtocol(self, didLoad: data)
                    ~~~~ ^~~~~~
/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
extension HTTPURLResponse {
^         ~~~~~~~~~~~~~~~
/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
extension URLSessionConfiguration {
^         ~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:193:39: error: type 'HTTPCookie' (aka 'AnyObject') has no member 'cookies'
        let cookiesToSet = HTTPCookie.cookies(withResponseHeaderFields: headers, for: url)
                           ~~~~~~~~~~ ^~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:194:17: error: value of type 'HTTPCookieStorage' (aka 'AnyObject') has no member 'setCookies'
        cookies.setCookies(cookiesToSet, for: request.url!, mainDocumentURL: url)
        ~~~~~~~ ^~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:197:13: error: cannot find 'client' in scope
            client?.urlProtocol(self, didFailWithError: failureError)
            ^~~~~~
/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
        let response = HTTPURLResponse(url: url,
                       ^~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:204:53: error: 'nil' requires a contextual type
                                       httpVersion: nil,
                                                    ^
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:215:28: error: cannot find 'URLRequest' in scope
            var redirect = URLRequest(url: location)
                           ^~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:216:48: error: value of type 'HTTPCookieStorage' (aka 'AnyObject') has no member 'cookies'
            if let cookiesInRedirect = cookies.cookies(for: url) {
                                       ~~~~~~~ ^~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:217:59: error: type 'HTTPCookie' (aka 'AnyObject') has no member 'requestHeaderFields'
                redirect.allHTTPHeaderFields = HTTPCookie.requestHeaderFields(with: cookiesInRedirect)
                                               ~~~~~~~~~~ ^~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:219:13: error: cannot find 'client' in scope
            client?.urlProtocol(self, wasRedirectedTo: redirect, redirectResponse: response!)
            ^~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:223:9: error: cannot find 'client' in scope
        client?.urlProtocol(self, didReceive: response!, cacheStoragePolicy: .notAllowed)
        ^~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:223:79: error: cannot infer contextual base in reference to member 'notAllowed'
        client?.urlProtocol(self, didReceive: response!, cacheStoragePolicy: .notAllowed)
                                                                             ~^~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:225:13: error: cannot find 'client' in scope
            client?.urlProtocol(self, didLoad: data)
            ^~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:227:9: error: cannot find 'client' in scope
        client?.urlProtocolDidFinishLoading(self)
        ^~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/URLHook.swift:25:21: error: type 'URLProtocol' (aka 'AnyObject') has no member 'registerClass'
        URLProtocol.registerClass(HTTPStubURLProtocol.self)
        ~~~~~~~~~~~ ^~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/URLHook.swift:29:21: error: type 'URLProtocol' (aka 'AnyObject') has no member 'unregisterClass'
        URLProtocol.unregisterClass(HTTPStubURLProtocol.self)
        ~~~~~~~~~~~ ^~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/URLSessionHook.swift:41:40: error: cannot find type 'Selector' in scope
    private func originalSelector() -> Selector {
                                       ^~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/URLSessionHook.swift:45:6: error: Objective-C interoperability is disabled
    @objc private func protocolClasses() -> [AnyClass] {
    ~^~~~~

/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/URLSessionHook.swift:26:28: error: cannot find 'class_getInstanceMethod' in scope
        guard let method = class_getInstanceMethod(originalClass(), originalSelector()),
                           ^~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/URLSessionHook.swift:27:26: error: cannot find 'class_getInstanceMethod' in scope
              let stub = class_getInstanceMethod(URLSessionHook.self, #selector(protocolClasses)) else {
                         ^~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/URLSessionHook.swift:27:71: error: '#selector' can only be used with the Objective-C runtime
              let stub = class_getInstanceMethod(URLSessionHook.self, #selector(protocolClasses)) else {
                                                                      ^
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/URLSessionHook.swift:30:9: error: cannot find 'method_exchangeImplementations' in scope
        method_exchangeImplementations(method, stub)
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[79/79] Compiling RealHTTP URLSessionHook.swift
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/HTTPStubber.swift:189:53: error: cannot find type 'URLRequest' in scope
    internal func suitableStubForRequest(_ request: URLRequest) -> HTTPStubRequest? {
                                                    ^~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/HTTPStubber.swift:199:41: error: cannot find type 'URLRequest' in scope
    public func shouldHandle(_ request: URLRequest) -> Bool {
                                        ^~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/Stub Request/HTTPStubRequest.swift:50:37: error: cannot find type 'URLRequest' in scope
    public func match(_ urlRequest: URLRequest) -> Bool {
                                    ^~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/Stub Matchers/Built-In Matchers/HTTPStubCustomMatcher.swift:22:33: error: cannot find type 'URLRequest' in scope
    public typealias Handler = (URLRequest, HTTPMatcherSource) -> Bool
                                ^~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/HTTPStubber.swift:191:16: error: cannot convert value of type 'HTTPStubRequest' to closure result type 'Bool'
            $0.match(request)
            ~~~^~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/HTTPStubIgnoreRule.swift:83:41: error: cannot find type 'URLRequest' in scope
    internal func matches(_ urlRequest: URLRequest) -> Bool {
                                        ^~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/HTTPStubberErrors.swift:22:28: error: cannot find type 'URLRequest' in scope
    case matchStubNotFound(URLRequest)
                           ^~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:29:25: error: property does not override any property from its superclass
    public override var task: URLSessionTask? {
           ~~~~~~~~     ^
/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.
    public override var task: URLSessionTask? {
                              ^~~~~~~~~~~~~~
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
public typealias URLSessionTask = AnyObject
                 ^
/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.
    private var urlSessionTask: URLSessionTask?
                                ^~~~~~~~~~~~~~
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
public typealias URLSessionTask = AnyObject
                 ^
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:44:54: error: cannot find type 'URLRequest' in scope
    public override class func canInit(with request: URLRequest) -> Bool {
                                                     ^~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:44:32: error: method does not override any method from its superclass
    public override class func canInit(with request: URLRequest) -> Bool {
           ~~~~~~~~            ^
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:54:77: error: cannot find type 'URLRequest' in scope
    public override class func canonicalRequest(for request: URLRequest) -> URLRequest {
                                                                            ^~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:54:62: error: cannot find type 'URLRequest' in scope
    public override class func canonicalRequest(for request: URLRequest) -> URLRequest {
                                                             ^~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:54:32: error: method does not override any method from its superclass
    public override class func canonicalRequest(for request: URLRequest) -> URLRequest {
           ~~~~~~~~            ^
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:58:69: error: cannot find type 'URLRequest' in scope
    public override class func requestIsCacheEquivalent(_ requestA: URLRequest, to requestB: URLRequest) -> Bool {
                                                                    ^~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:58:94: error: cannot find type 'URLRequest' in scope
    public override class func requestIsCacheEquivalent(_ requestA: URLRequest, to requestB: URLRequest) -> Bool {
                                                                                             ^~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:58:32: error: method does not override any method from its superclass
    public override class func requestIsCacheEquivalent(_ requestA: URLRequest, to requestB: URLRequest) -> Bool {
           ~~~~~~~~            ^
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:63:35: error: cannot find type 'URLRequest' in scope
    public override init(request: URLRequest, cachedResponse: CachedURLResponse?, client: URLProtocolClient?) {
                                  ^~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:63:91: error: cannot find type 'URLProtocolClient' in scope
    public override init(request: URLRequest, cachedResponse: CachedURLResponse?, client: URLProtocolClient?) {
                                                                                          ^~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:63:21: error: initializer does not override a designated initializer from its superclass
    public override init(request: URLRequest, cachedResponse: CachedURLResponse?, client: URLProtocolClient?) {
           ~~~~~~~~ ^
/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.
    public override init(request: URLRequest, cachedResponse: CachedURLResponse?, client: URLProtocolClient?) {
                                                              ^~~~~~~~~~~~~~~~~
Foundation.CachedURLResponse:2:18: note: 'CachedURLResponse' has been explicitly marked unavailable here
public typealias CachedURLResponse = AnyObject
                 ^
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:67:83: error: cannot find type 'URLProtocolClient' in scope
    public init(task: URLSessionTask, cachedResponse: CachedURLResponse?, client: URLProtocolClient?) {
                                                                                  ^~~~~~~~~~~~~~~~~
/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.
    public init(task: URLSessionTask, cachedResponse: CachedURLResponse?, client: URLProtocolClient?) {
                      ^~~~~~~~~~~~~~
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
public typealias URLSessionTask = AnyObject
                 ^
/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.
    public init(task: URLSessionTask, cachedResponse: CachedURLResponse?, client: URLProtocolClient?) {
                                                      ^~~~~~~~~~~~~~~~~
Foundation.CachedURLResponse:2:18: note: 'CachedURLResponse' has been explicitly marked unavailable here
public typealias CachedURLResponse = AnyObject
                 ^
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:72:26: error: method does not override any method from its superclass
    public override func startLoading() {
           ~~~~~~~~      ^
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:135:26: error: method does not override any method from its superclass
    public override func stopLoading() {
           ~~~~~~~~      ^
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:142:49: error: cannot find type 'URLRequest' in scope
                            forRequest request: URLRequest, forStub stub: HTTPStubResponse,
                                                ^~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:190:43: error: cannot find type 'URLRequest' in scope
    private func finishRequest(_ request: URLRequest, withStub stubResponse: HTTPStubResponse, cookies: HTTPCookieStorage) {
                                          ^~~~~~~~~~
/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.
    private func finishRequest(_ request: URLRequest, withStub stubResponse: HTTPStubResponse, cookies: HTTPCookieStorage) {
                                                                                                        ^~~~~~~~~~~~~~~~~
Foundation.HTTPCookieStorage:2:18: note: 'HTTPCookieStorage' has been explicitly marked unavailable here
public typealias HTTPCookieStorage = AnyObject
                 ^
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:21:14: error: only protocols can inherit from 'AnyObject'
public class HTTPStubURLProtocol: URLProtocol {
             ^
/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.
public class HTTPStubURLProtocol: URLProtocol {
                                  ^~~~~~~~~~~
Foundation.URLProtocol:2:18: note: 'URLProtocol' has been explicitly marked unavailable here
public typealias URLProtocol = AnyObject
                 ^
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:64:9: error: 'super' members cannot be referenced in a root class
        super.init(request: request, cachedResponse: cachedResponse, client: client)
        ^
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:68:9: error: 'super' members cannot be referenced in a root class
        super.init(request: task.currentRequest!, cachedResponse: cachedResponse, client: client)
        ^
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:73:28: error: value of type 'HTTPStubURLProtocol' has no member 'request'
        var request = self.request
                      ~~~~ ^~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:76:47: error: type 'HTTPCookieStorage' (aka 'AnyObject') has no member 'shared'
        var cookieStorage = HTTPCookieStorage.shared
                            ~~~~~~~~~~~~~~~~~ ^~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:77:32: error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'value'
        if let session = task?.value(forKey: "session") as? URLSession,
                         ~~~~~ ^~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:87:59: error: type 'HTTPCookie' (aka 'AnyObject') has no member 'requestHeaderFields'
            request.allHTTPHeaderFields!.merge(HTTPCookie.requestHeaderFields(with: cookies)) { (current, _) in
                                               ~~~~~~~~~~ ^~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:99:13: error: cannot find 'client' in scope
            client?.urlProtocol(self, didFailWithError: HTTPStubberErrors.matchStubNotFound(request))
            ^~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:119:22: error: value of type 'HTTPStubURLProtocol' has no member 'client'
                self.client?.urlProtocol(self, didLoad: Data())
                ~~~~ ^~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:176:26: error: value of type 'HTTPStubURLProtocol' has no member 'client'
                    self.client?.urlProtocol(self, didLoad: data)
                    ~~~~ ^~~~~~
/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
extension HTTPURLResponse {
^         ~~~~~~~~~~~~~~~
/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
extension URLSessionConfiguration {
^         ~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:193:39: error: type 'HTTPCookie' (aka 'AnyObject') has no member 'cookies'
        let cookiesToSet = HTTPCookie.cookies(withResponseHeaderFields: headers, for: url)
                           ~~~~~~~~~~ ^~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:194:17: error: value of type 'HTTPCookieStorage' (aka 'AnyObject') has no member 'setCookies'
        cookies.setCookies(cookiesToSet, for: request.url!, mainDocumentURL: url)
        ~~~~~~~ ^~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:197:13: error: cannot find 'client' in scope
            client?.urlProtocol(self, didFailWithError: failureError)
            ^~~~~~
/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
        let response = HTTPURLResponse(url: url,
                       ^~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:204:53: error: 'nil' requires a contextual type
                                       httpVersion: nil,
                                                    ^
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:215:28: error: cannot find 'URLRequest' in scope
            var redirect = URLRequest(url: location)
                           ^~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:216:48: error: value of type 'HTTPCookieStorage' (aka 'AnyObject') has no member 'cookies'
            if let cookiesInRedirect = cookies.cookies(for: url) {
                                       ~~~~~~~ ^~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:217:59: error: type 'HTTPCookie' (aka 'AnyObject') has no member 'requestHeaderFields'
                redirect.allHTTPHeaderFields = HTTPCookie.requestHeaderFields(with: cookiesInRedirect)
                                               ~~~~~~~~~~ ^~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:219:13: error: cannot find 'client' in scope
            client?.urlProtocol(self, wasRedirectedTo: redirect, redirectResponse: response!)
            ^~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:223:9: error: cannot find 'client' in scope
        client?.urlProtocol(self, didReceive: response!, cacheStoragePolicy: .notAllowed)
        ^~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:223:79: error: cannot infer contextual base in reference to member 'notAllowed'
        client?.urlProtocol(self, didReceive: response!, cacheStoragePolicy: .notAllowed)
                                                                             ~^~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:225:13: error: cannot find 'client' in scope
            client?.urlProtocol(self, didLoad: data)
            ^~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:227:9: error: cannot find 'client' in scope
        client?.urlProtocolDidFinishLoading(self)
        ^~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/URLHook.swift:25:21: error: type 'URLProtocol' (aka 'AnyObject') has no member 'registerClass'
        URLProtocol.registerClass(HTTPStubURLProtocol.self)
        ~~~~~~~~~~~ ^~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/URLHook.swift:29:21: error: type 'URLProtocol' (aka 'AnyObject') has no member 'unregisterClass'
        URLProtocol.unregisterClass(HTTPStubURLProtocol.self)
        ~~~~~~~~~~~ ^~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/URLSessionHook.swift:41:40: error: cannot find type 'Selector' in scope
    private func originalSelector() -> Selector {
                                       ^~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/URLSessionHook.swift:45:6: error: Objective-C interoperability is disabled
    @objc private func protocolClasses() -> [AnyClass] {
    ~^~~~~

/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/URLSessionHook.swift:26:28: error: cannot find 'class_getInstanceMethod' in scope
        guard let method = class_getInstanceMethod(originalClass(), originalSelector()),
                           ^~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/URLSessionHook.swift:27:26: error: cannot find 'class_getInstanceMethod' in scope
              let stub = class_getInstanceMethod(URLSessionHook.self, #selector(protocolClasses)) else {
                         ^~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/URLSessionHook.swift:27:71: error: '#selector' can only be used with the Objective-C runtime
              let stub = class_getInstanceMethod(URLSessionHook.self, #selector(protocolClasses)) else {
                                                                      ^
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/URLSessionHook.swift:30:9: error: cannot find 'method_exchangeImplementations' in scope
        method_exchangeImplementations(method, stub)
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
error: fatalError
BUILD FAILURE 5.10 linux

Build Machine: Linux 1