The Swift Package Index logo.Swift Package Index

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

Build Information

Failed to build HTTPMock with Swift 5.10 for Linux.

Build Command

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

Build Log

========================================
RunAll
========================================
Builder version: 4.29.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/nearfri/HTTPMock.git
Reference: main
Initialized empty Git repository in /host/spi-builder-workspace/.git/
hint: Using 'master' as the name for the initial branch. This default branch name
hint: is subject to change. To configure the initial branch name to use in all
hint: of your new repositories, which will suppress this warning, call:
hint:
hint: 	git config --global init.defaultBranch <name>
hint:
hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and
hint: 'development'. The just-created branch can be renamed via this command:
hint:
hint: 	git branch -m <name>
From https://github.com/nearfri/HTTPMock
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at bd647f6 Update swift.yml
Cloned https://github.com/nearfri/HTTPMock.git
Revision (git rev-parse @):
bd647f6769557200390380d6ae946afe57d06e3c
SUCCESS checkout https://github.com/nearfri/HTTPMock.git at main
========================================
Build
========================================
Selected platform:         linux
Swift version:             5.10
Building package at path:  $workDir
https://github.com/nearfri/HTTPMock.git
Running build ...
bash -c docker run --rm -v "checkouts-4609320-0":/host -w "$workDir" registry.gitlab.com/finestructure/spi-images:basic-5.10-latest swift build 2>&1
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-24593BA9C3E375BF.txt
[3/15] Compiling HTTPMock URLProtocolService.swift
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolService.swift:32:48: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    static func registerStub(in configuration: URLSessionConfiguration) {
                                               ^~~~~~~~~~~~~~~~~~~~~~~
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' has been explicitly marked unavailable here
public typealias URLSessionConfiguration = AnyObject
                 ^
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolService.swift:39:52: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    static func unregisterStub(from configuration: URLSessionConfiguration) {
                                                   ^~~~~~~~~~~~~~~~~~~~~~~
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' has been explicitly marked unavailable here
public typealias URLSessionConfiguration = AnyObject
                 ^
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolService.swift:64:37: error: '#selector' can only be used with the Objective-C runtime
        return MethodItem(selector: #selector(getter: URLSessionConfiguration.default))
                                    ^
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolService.swift:64:37: error: '#selector' can only be used with the Objective-C runtime
        return MethodItem(selector: #selector(getter: URLSessionConfiguration.default))
                                    ^
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolService.swift:63:56: error: type of expression is ambiguous without a type annotation
    private static let defaultMethodItem: MethodItem = {
                                                       ^
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolService.swift:68:37: error: '#selector' can only be used with the Objective-C runtime
        return MethodItem(selector: #selector(getter: URLSessionConfiguration.ephemeral))
                                    ^
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolService.swift:68:37: error: '#selector' can only be used with the Objective-C runtime
        return MethodItem(selector: #selector(getter: URLSessionConfiguration.ephemeral))
                                    ^
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolService.swift:67:58: error: type of expression is ambiguous without a type annotation
    private static let ephemeralMethodItem: MethodItem = {
                                                         ^
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolService.swift:71:6: error: Objective-C interoperability is disabled
    @objc(defaultSessionConfiguration)
    ~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolService.swift:72:34: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    private class var `default`: URLSessionConfiguration {
                                 ^~~~~~~~~~~~~~~~~~~~~~~
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' has been explicitly marked unavailable here
public typealias URLSessionConfiguration = AnyObject
                 ^
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolService.swift:76:6: error: Objective-C interoperability is disabled
    @objc(ephemeralSessionConfiguration)
    ~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolService.swift:77:34: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    private class var ephemeral: URLSessionConfiguration {
                                 ^~~~~~~~~~~~~~~~~~~~~~~
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' has been explicitly marked unavailable here
public typealias URLSessionConfiguration = AnyObject
                 ^
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolService.swift:100:24: error: cannot find type 'Selector' in scope
        init(selector: Selector) {
                       ^~~~~~~~
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolService.swift:85:24: error: cannot find type 'Selector' in scope
            (AnyClass, Selector) -> URLSessionConfiguration
                       ^~~~~~~~
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolService.swift:87:31: error: cannot find type 'Selector' in scope
        private let selector: Selector
                              ^~~~~~~~
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolService.swift:88:37: error: cannot find type 'Method' in scope
        private let originalMethod: Method
                                    ^~~~~~
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolService.swift:89:45: error: cannot find type 'IMP' in scope
        private let originalImplementation: IMP
                                            ^~~
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolService.swift:90:45: error: cannot find type 'IMP' in scope
        private let swizzlerImplementation: IMP
                                            ^~~
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolService.swift:96:17: error: cannot find 'method_setImplementation' in scope
                method_setImplementation(originalMethod, implementation)
                ^~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolService.swift:116:51: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
        func makeStubRegisteredConfiguration() -> URLSessionConfiguration {
                                                  ^~~~~~~~~~~~~~~~~~~~~~~
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' has been explicitly marked unavailable here
public typealias URLSessionConfiguration = AnyObject
                 ^
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolService.swift:122:53: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
        private func makeOriginalConfiguration() -> URLSessionConfiguration {
                                                    ^~~~~~~~~~~~~~~~~~~~~~~
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' has been explicitly marked unavailable here
public typealias URLSessionConfiguration = AnyObject
                 ^
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolService.swift:7:21: error: type 'URLProtocol' (aka 'AnyObject') has no member 'registerClass'
        URLProtocol.registerClass(URLProtocolStub.self)
        ~~~~~~~~~~~ ^~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolService.swift:11:21: error: type 'URLProtocol' (aka 'AnyObject') has no member 'unregisterClass'
        URLProtocol.unregisterClass(URLProtocolStub.self)
        ~~~~~~~~~~~ ^~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolService.swift:33:37: error: value of type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'protocolClasses'
        let classes = configuration.protocolClasses ?? []
                      ~~~~~~~~~~~~~ ^~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolService.swift:35:27: error: value of type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'protocolClasses'
            configuration.protocolClasses = [URLProtocolStub.self] + classes
            ~~~~~~~~~~~~~ ^~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolService.swift:40:43: error: value of type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'protocolClasses'
        guard var classes = configuration.protocolClasses else { return }
                            ~~~~~~~~~~~~~ ^~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolService.swift:42:23: error: value of type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'protocolClasses'
        configuration.protocolClasses = classes
        ~~~~~~~~~~~~~ ^~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolService.swift:101:17: warning: constant 'originalClass' inferred to have type '(any URLSessionConfiguration).Type' (aka '(any AnyObject).Type'), which may be unexpected
            let originalClass = URLSessionConfiguration.self
                ^
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolService.swift:101:17: note: add an explicit type annotation to silence this warning
            let originalClass = URLSessionConfiguration.self
                ^
                             : (any URLSessionConfiguration).Type
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolService.swift:101:33: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
            let originalClass = URLSessionConfiguration.self
                                ^~~~~~~~~~~~~~~~~~~~~~~
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' has been explicitly marked unavailable here
public typealias URLSessionConfiguration = AnyObject
                 ^
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolService.swift:104:40: error: cannot find 'class_getClassMethod' in scope
            guard let originalMethod = class_getClassMethod(originalClass, selector),
                                       ^~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolService.swift:105:38: error: cannot find 'class_getClassMethod' in scope
                let swizzlerMethod = class_getClassMethod(swizzlerClass, selector)
                                     ^~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolService.swift:110:43: error: cannot find 'method_getImplementation' in scope
            self.originalImplementation = method_getImplementation(originalMethod)
                                          ^~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolService.swift:111:43: error: cannot find 'method_getImplementation' in scope
            self.swizzlerImplementation = method_getImplementation(swizzlerMethod)
                                          ^~~~~~~~~~~~~~~~~~~~~~~~
[4/16] Compiling HTTPMock HTTPResponseAsset.swift
[5/16] Compiling HTTPMock HTTPResponseAssetBuilder.swift
[6/16] Compiling HTTPMock StubRegistry.swift
/host/spi-builder-workspace/Sources/HTTPMock/StubRegistry.swift:5:49: error: cannot find type 'URLRequest' in scope
                 then assetProvider: @escaping (URLRequest) -> HTTPResponseAsset) -> StubEntry {
                                                ^~~~~~~~~~
/host/spi-builder-workspace/Sources/HTTPMock/StubRegistry.swift:34:35: error: cannot find type 'URLRequest' in scope
        assetProvider: @escaping (URLRequest) -> HTTPResponseAsset
                                  ^~~~~~~~~~
/host/spi-builder-workspace/Sources/HTTPMock/StubRegistry.swift:53:36: error: cannot find type 'URLRequest' in scope
    public func entry(for request: URLRequest) -> StubEntry? {
                                   ^~~~~~~~~~
/host/spi-builder-workspace/Sources/HTTPMock/StubRegistry.swift:6:45: error: incorrect argument label in call (have 'for:assetProvider:', expected 'for:assetBuilder:')
    return StubRegistry.shared.registerEntry(for: predicate, assetProvider: assetProvider)
                                            ^                ~~~~~~~~~~~~~
                                                             assetBuilder
/host/spi-builder-workspace/Sources/HTTPMock/StubEntry.swift:9:43: error: cannot find type 'URLRequest' in scope
                assetProvider: @escaping (URLRequest) -> HTTPResponseAsset) {
                                          ^~~~~~~~~~
/host/spi-builder-workspace/Sources/HTTPMock/StubEntry.swift:14:38: error: cannot find type 'URLRequest' in scope
    public func responds(to request: URLRequest) -> Bool {
                                     ^~~~~~~~~~
/host/spi-builder-workspace/Sources/HTTPMock/StubRegistry.swift:64:29: error: incorrect argument label in call (have 'for:assetProvider:', expected 'for:assetBuilder:')
        return registerEntry(for: predicate, assetProvider: { _ in assetBuilder.asset })
                            ^                ~~~~~~~~~~~~~
                                             assetBuilder
/host/spi-builder-workspace/Sources/HTTPMock/StubRegistry.swift:64:61: error: cannot convert value of type '(_) -> HTTPResponseAsset' to expected argument type 'HTTPResponseAssetBuilder'
        return registerEntry(for: predicate, assetProvider: { _ in assetBuilder.asset })
                                                            ^
[7/16] Compiling HTTPMock InputStreamGenerator.swift
/host/spi-builder-workspace/Sources/HTTPMock/StubEntry.swift:6:33: error: cannot find type 'URLRequest' in scope
    private let assetProvider: (URLRequest) -> HTTPResponseAsset
                                ^~~~~~~~~~
/host/spi-builder-workspace/Sources/HTTPMock/StubEntry.swift:9:43: error: cannot find type 'URLRequest' in scope
                assetProvider: @escaping (URLRequest) -> HTTPResponseAsset) {
                                          ^~~~~~~~~~
/host/spi-builder-workspace/Sources/HTTPMock/StubEntry.swift:14:38: error: cannot find type 'URLRequest' in scope
    public func responds(to request: URLRequest) -> Bool {
                                     ^~~~~~~~~~
/host/spi-builder-workspace/Sources/HTTPMock/StubEntry.swift:18:44: error: cannot find type 'URLRequest' in scope
    public func responseAsset(for request: URLRequest) -> HTTPResponseAsset {
                                           ^~~~~~~~~~
/host/spi-builder-workspace/Sources/HTTPMock/HTTPRequestPredicate.swift:5:27: error: cannot find type 'URLRequest' in scope
    public let evaluate: (URLRequest) -> Bool
                          ^~~~~~~~~~
[8/16] Compiling HTTPMock StubEntry.swift
/host/spi-builder-workspace/Sources/HTTPMock/StubEntry.swift:6:33: error: cannot find type 'URLRequest' in scope
    private let assetProvider: (URLRequest) -> HTTPResponseAsset
                                ^~~~~~~~~~
/host/spi-builder-workspace/Sources/HTTPMock/StubEntry.swift:9:43: error: cannot find type 'URLRequest' in scope
                assetProvider: @escaping (URLRequest) -> HTTPResponseAsset) {
                                          ^~~~~~~~~~
/host/spi-builder-workspace/Sources/HTTPMock/StubEntry.swift:14:38: error: cannot find type 'URLRequest' in scope
    public func responds(to request: URLRequest) -> Bool {
                                     ^~~~~~~~~~
/host/spi-builder-workspace/Sources/HTTPMock/StubEntry.swift:18:44: error: cannot find type 'URLRequest' in scope
    public func responseAsset(for request: URLRequest) -> HTTPResponseAsset {
                                           ^~~~~~~~~~
/host/spi-builder-workspace/Sources/HTTPMock/HTTPRequestPredicate.swift:5:27: error: cannot find type 'URLRequest' in scope
    public let evaluate: (URLRequest) -> Bool
                          ^~~~~~~~~~
[9/16] Compiling HTTPMock HTTPRequestPredicate.swift
/host/spi-builder-workspace/Sources/HTTPMock/HTTPRequestPredicate.swift:5:27: error: cannot find type 'URLRequest' in scope
    public let evaluate: (URLRequest) -> Bool
                          ^~~~~~~~~~
/host/spi-builder-workspace/Sources/HTTPMock/HTTPResponse.swift:12:23: error: cannot find 'CFHTTPMessageCreateEmpty' in scope
        let message = CFHTTPMessageCreateEmpty(nil, false).takeRetainedValue()
                      ^~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/HTTPMock/HTTPResponse.swift:12:48: error: 'nil' requires a contextual type
        let message = CFHTTPMessageCreateEmpty(nil, false).takeRetainedValue()
                                               ^
/host/spi-builder-workspace/Sources/HTTPMock/HTTPResponse.swift:16:17: error: cannot find 'CFHTTPMessageAppendBytes' in scope
                CFHTTPMessageAppendBytes(message, ptr, data.count)
                ^~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/HTTPMock/HTTPResponse.swift:20:15: error: cannot find 'CFHTTPMessageIsHeaderComplete' in scope
        guard CFHTTPMessageIsHeaderComplete(message) else {
              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/HTTPMock/HTTPResponse.swift:24:34: error: cannot find 'CFHTTPMessageCopyAllHeaderFields' in scope
        guard let headerFields = CFHTTPMessageCopyAllHeaderFields(message)?.takeRetainedValue()
                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/HTTPMock/HTTPResponse.swift:26:26: error: cannot find 'CFHTTPMessageGetResponseStatusCode' in scope
        let statusCode = CFHTTPMessageGetResponseStatusCode(message)
                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/HTTPMock/HTTPResponse.swift:27:24: error: cannot find 'CFHTTPMessageCopyBody' in scope
        let bodyData = CFHTTPMessageCopyBody(message)?.takeRetainedValue() as Data?
                       ^~~~~~~~~~~~~~~~~~~~~
[10/16] Compiling HTTPMock HTTPResponse.swift
/host/spi-builder-workspace/Sources/HTTPMock/HTTPRequestPredicate.swift:5:27: error: cannot find type 'URLRequest' in scope
    public let evaluate: (URLRequest) -> Bool
                          ^~~~~~~~~~
/host/spi-builder-workspace/Sources/HTTPMock/HTTPResponse.swift:12:23: error: cannot find 'CFHTTPMessageCreateEmpty' in scope
        let message = CFHTTPMessageCreateEmpty(nil, false).takeRetainedValue()
                      ^~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/HTTPMock/HTTPResponse.swift:12:48: error: 'nil' requires a contextual type
        let message = CFHTTPMessageCreateEmpty(nil, false).takeRetainedValue()
                                               ^
/host/spi-builder-workspace/Sources/HTTPMock/HTTPResponse.swift:16:17: error: cannot find 'CFHTTPMessageAppendBytes' in scope
                CFHTTPMessageAppendBytes(message, ptr, data.count)
                ^~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/HTTPMock/HTTPResponse.swift:20:15: error: cannot find 'CFHTTPMessageIsHeaderComplete' in scope
        guard CFHTTPMessageIsHeaderComplete(message) else {
              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/HTTPMock/HTTPResponse.swift:24:34: error: cannot find 'CFHTTPMessageCopyAllHeaderFields' in scope
        guard let headerFields = CFHTTPMessageCopyAllHeaderFields(message)?.takeRetainedValue()
                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/HTTPMock/HTTPResponse.swift:26:26: error: cannot find 'CFHTTPMessageGetResponseStatusCode' in scope
        let statusCode = CFHTTPMessageGetResponseStatusCode(message)
                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/HTTPMock/HTTPResponse.swift:27:24: error: cannot find 'CFHTTPMessageCopyBody' in scope
        let bodyData = CFHTTPMessageCopyBody(message)?.takeRetainedValue() as Data?
                       ^~~~~~~~~~~~~~~~~~~~~
error: emit-module command failed with exit code 1 (use -v to see invocation)
[11/16] Compiling HTTPMock HTTPHeaderFields.swift
/host/spi-builder-workspace/Sources/HTTPMock/HTTPHeaderFields.swift:94:34: warning: tuple conversion from '(key: String, value: String)' to '(name: String, value: String)' mismatches labels
        self.init(dictionary.map({ $0 }))
                                 ^~~~~~
[12/16] Compiling HTTPMock HTTPHeaderName.swift
/host/spi-builder-workspace/Sources/HTTPMock/HTTPHeaderFields.swift:94:34: warning: tuple conversion from '(key: String, value: String)' to '(name: String, value: String)' mismatches labels
        self.init(dictionary.map({ $0 }))
                                 ^~~~~~
[13/16] Compiling HTTPMock HTTPMediaType.swift
[14/16] Compiling HTTPMock HTTPMethod.swift
[15/16] Emitting module HTTPMock
/host/spi-builder-workspace/Sources/HTTPMock/HTTPRequestPredicate.swift:5:27: error: cannot find type 'URLRequest' in scope
    public let evaluate: (URLRequest) -> Bool
                          ^~~~~~~~~~
/host/spi-builder-workspace/Sources/HTTPMock/StubEntry.swift:6:33: error: cannot find type 'URLRequest' in scope
    private let assetProvider: (URLRequest) -> HTTPResponseAsset
                                ^~~~~~~~~~
/host/spi-builder-workspace/Sources/HTTPMock/StubEntry.swift:9:43: error: cannot find type 'URLRequest' in scope
                assetProvider: @escaping (URLRequest) -> HTTPResponseAsset) {
                                          ^~~~~~~~~~
/host/spi-builder-workspace/Sources/HTTPMock/StubEntry.swift:14:38: error: cannot find type 'URLRequest' in scope
    public func responds(to request: URLRequest) -> Bool {
                                     ^~~~~~~~~~
/host/spi-builder-workspace/Sources/HTTPMock/StubEntry.swift:18:44: error: cannot find type 'URLRequest' in scope
    public func responseAsset(for request: URLRequest) -> HTTPResponseAsset {
                                           ^~~~~~~~~~
/host/spi-builder-workspace/Sources/HTTPMock/StubRegistry.swift:5:49: error: cannot find type 'URLRequest' in scope
                 then assetProvider: @escaping (URLRequest) -> HTTPResponseAsset) -> StubEntry {
                                                ^~~~~~~~~~
/host/spi-builder-workspace/Sources/HTTPMock/StubRegistry.swift:34:35: error: cannot find type 'URLRequest' in scope
        assetProvider: @escaping (URLRequest) -> HTTPResponseAsset
                                  ^~~~~~~~~~
/host/spi-builder-workspace/Sources/HTTPMock/StubRegistry.swift:53:36: error: cannot find type 'URLRequest' in scope
    public func entry(for request: URLRequest) -> StubEntry? {
                                   ^~~~~~~~~~
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolService.swift:32:48: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    static func registerStub(in configuration: URLSessionConfiguration) {
                                               ^~~~~~~~~~~~~~~~~~~~~~~
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' has been explicitly marked unavailable here
public typealias URLSessionConfiguration = AnyObject
                 ^
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolService.swift:39:52: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    static func unregisterStub(from configuration: URLSessionConfiguration) {
                                                   ^~~~~~~~~~~~~~~~~~~~~~~
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' has been explicitly marked unavailable here
public typealias URLSessionConfiguration = AnyObject
                 ^
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolService.swift:64:37: error: '#selector' can only be used with the Objective-C runtime
        return MethodItem(selector: #selector(getter: URLSessionConfiguration.default))
                                    ^
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolService.swift:64:37: error: '#selector' can only be used with the Objective-C runtime
        return MethodItem(selector: #selector(getter: URLSessionConfiguration.default))
                                    ^
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolService.swift:63:56: error: type of expression is ambiguous without a type annotation
    private static let defaultMethodItem: MethodItem = {
                                                       ^
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolService.swift:68:37: error: '#selector' can only be used with the Objective-C runtime
        return MethodItem(selector: #selector(getter: URLSessionConfiguration.ephemeral))
                                    ^
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolService.swift:68:37: error: '#selector' can only be used with the Objective-C runtime
        return MethodItem(selector: #selector(getter: URLSessionConfiguration.ephemeral))
                                    ^
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolService.swift:67:58: error: type of expression is ambiguous without a type annotation
    private static let ephemeralMethodItem: MethodItem = {
                                                         ^
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolService.swift:71:6: error: Objective-C interoperability is disabled
    @objc(defaultSessionConfiguration)
    ~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolService.swift:72:34: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    private class var `default`: URLSessionConfiguration {
                                 ^~~~~~~~~~~~~~~~~~~~~~~
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' has been explicitly marked unavailable here
public typealias URLSessionConfiguration = AnyObject
                 ^
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolService.swift:76:6: error: Objective-C interoperability is disabled
    @objc(ephemeralSessionConfiguration)
    ~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolService.swift:77:34: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    private class var ephemeral: URLSessionConfiguration {
                                 ^~~~~~~~~~~~~~~~~~~~~~~
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' has been explicitly marked unavailable here
public typealias URLSessionConfiguration = AnyObject
                 ^
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolService.swift:100:24: error: cannot find type 'Selector' in scope
        init(selector: Selector) {
                       ^~~~~~~~
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolService.swift:85:24: error: cannot find type 'Selector' in scope
            (AnyClass, Selector) -> URLSessionConfiguration
                       ^~~~~~~~
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolService.swift:87:31: error: cannot find type 'Selector' in scope
        private let selector: Selector
                              ^~~~~~~~
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolService.swift:88:37: error: cannot find type 'Method' in scope
        private let originalMethod: Method
                                    ^~~~~~
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolService.swift:89:45: error: cannot find type 'IMP' in scope
        private let originalImplementation: IMP
                                            ^~~
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolService.swift:90:45: error: cannot find type 'IMP' in scope
        private let swizzlerImplementation: IMP
                                            ^~~
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolService.swift:96:17: error: cannot find 'method_setImplementation' in scope
                method_setImplementation(originalMethod, implementation)
                ^~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolService.swift:116:51: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
        func makeStubRegisteredConfiguration() -> URLSessionConfiguration {
                                                  ^~~~~~~~~~~~~~~~~~~~~~~
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' has been explicitly marked unavailable here
public typealias URLSessionConfiguration = AnyObject
                 ^
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolService.swift:122:53: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
        private func makeOriginalConfiguration() -> URLSessionConfiguration {
                                                    ^~~~~~~~~~~~~~~~~~~~~~~
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' has been explicitly marked unavailable here
public typealias URLSessionConfiguration = AnyObject
                 ^
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolStub.swift:7:35: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    private 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/HTTPMock/URLProtocolStub.swift:8:31: error: cannot find type 'NSKeyValueObservation' in scope
    private var taskStateKVO: NSKeyValueObservation?
                              ^~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolStub.swift:10:54: error: cannot find type 'URLRequest' in scope
    public override class func canInit(with request: URLRequest) -> Bool {
                                                     ^~~~~~~~~~
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolStub.swift:10: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/HTTPMock/URLProtocolStub.swift:14:51: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    public override class func canInit(with task: URLSessionTask) -> Bool {
                                                  ^~~~~~~~~~~~~~
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
public typealias URLSessionTask = AnyObject
                 ^
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolStub.swift:14:32: error: method does not override any method from its superclass
    public override class func canInit(with task: URLSessionTask) -> Bool {
           ~~~~~~~~            ^
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolStub.swift:18:77: error: cannot find type 'URLRequest' in scope
    public override class func canonicalRequest(for request: URLRequest) -> URLRequest {
                                                                            ^~~~~~~~~~
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolStub.swift:18:62: error: cannot find type 'URLRequest' in scope
    public override class func canonicalRequest(for request: URLRequest) -> URLRequest {
                                                             ^~~~~~~~~~
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolStub.swift:18: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/HTTPMock/URLProtocolStub.swift:22:35: error: cannot find type 'URLRequest' in scope
    public override init(request: URLRequest,
                                  ^~~~~~~~~~
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolStub.swift:24:34: error: cannot find type 'URLProtocolClient' in scope
                         client: URLProtocolClient?) {
                                 ^~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolStub.swift:22:21: error: initializer does not override a designated initializer from its superclass
    public override init(request: URLRequest,
           ~~~~~~~~ ^
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolStub.swift:23:42: error: 'CachedURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
                         cachedResponse: CachedURLResponse?,
                                         ^~~~~~~~~~~~~~~~~
Foundation.CachedURLResponse:2:18: note: 'CachedURLResponse' has been explicitly marked unavailable here
public typealias CachedURLResponse = AnyObject
                 ^
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolStub.swift:34:37: error: cannot find type 'URLProtocolClient' in scope
                            client: URLProtocolClient?) {
                                    ^~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolStub.swift:32:35: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    public convenience init(task: URLSessionTask,
                                  ^~~~~~~~~~~~~~
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
public typealias URLSessionTask = AnyObject
                 ^
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolStub.swift:33:45: error: 'CachedURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
                            cachedResponse: CachedURLResponse?,
                                            ^~~~~~~~~~~~~~~~~
Foundation.CachedURLResponse:2:18: note: 'CachedURLResponse' has been explicitly marked unavailable here
public typealias CachedURLResponse = AnyObject
                 ^
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolStub.swift:40:26: error: method does not override any method from its superclass
    public override func startLoading() {
           ~~~~~~~~      ^
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolStub.swift:112:45: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    private func taskDidChangeState(_ task: URLSessionTask) {
                                            ^~~~~~~~~~~~~~
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
public typealias URLSessionTask = AnyObject
                 ^
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolStub.swift:123:26: error: method does not override any method from its superclass
    public override func stopLoading() {
           ~~~~~~~~      ^
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolStub.swift:3:14: error: only protocols can inherit from 'AnyObject'
public class URLProtocolStub: URLProtocol {
             ^
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolStub.swift:3:31: error: 'URLProtocol' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
public class URLProtocolStub: URLProtocol {
                              ^~~~~~~~~~~
Foundation.URLProtocol:2:18: note: 'URLProtocol' has been explicitly marked unavailable here
public typealias URLProtocol = AnyObject
                 ^
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolStub.swift:193:19: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    let response: URLResponse
                  ^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
                 ^
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolStub.swift:198:26: error: cannot find type 'URLRequest' in scope
    private let request: URLRequest
                         ^~~~~~~~~~
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolStub.swift:201:19: error: cannot find type 'URLRequest' in scope
    init(request: URLRequest, responseAsset: HTTPResponseAsset) throws {
                  ^~~~~~~~~~
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolStub.swift:212:23: error: 'HTTPCookie' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    var httpCookies: [HTTPCookie]? {
                      ^~~~~~~~~~
Foundation.HTTPCookie:2:18: note: 'HTTPCookie' has been explicitly marked unavailable here
public typealias HTTPCookie = AnyObject
                 ^
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolStub.swift:218:26: error: cannot find type 'URLRequest' in scope
    var redirectRequest: URLRequest? {
                         ^~~~~~~~~~
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolStub.swift:239:26: error: cannot find type 'URLRequest' in scope
    private let request: URLRequest
                         ^~~~~~~~~~
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolStub.swift:243:32: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    private(set) var response: HTTPURLResponse!
                               ^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
                 ^
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolStub.swift:248:19: error: cannot find type 'URLRequest' in scope
    init(request: URLRequest, responseAsset: HTTPResponseAsset) throws {
                  ^~~~~~~~~~
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolStub.swift:358:36: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    private func makeResponse() -> HTTPURLResponse? {
                                   ^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
                 ^
[16/16] Compiling HTTPMock URLProtocolStub.swift
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolStub.swift:7:35: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    private 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/HTTPMock/URLProtocolStub.swift:8:31: error: cannot find type 'NSKeyValueObservation' in scope
    private var taskStateKVO: NSKeyValueObservation?
                              ^~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolStub.swift:10:54: error: cannot find type 'URLRequest' in scope
    public override class func canInit(with request: URLRequest) -> Bool {
                                                     ^~~~~~~~~~
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolStub.swift:10: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/HTTPMock/URLProtocolStub.swift:14:51: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    public override class func canInit(with task: URLSessionTask) -> Bool {
                                                  ^~~~~~~~~~~~~~
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
public typealias URLSessionTask = AnyObject
                 ^
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolStub.swift:14:32: error: method does not override any method from its superclass
    public override class func canInit(with task: URLSessionTask) -> Bool {
           ~~~~~~~~            ^
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolStub.swift:18:77: error: cannot find type 'URLRequest' in scope
    public override class func canonicalRequest(for request: URLRequest) -> URLRequest {
                                                                            ^~~~~~~~~~
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolStub.swift:18:62: error: cannot find type 'URLRequest' in scope
    public override class func canonicalRequest(for request: URLRequest) -> URLRequest {
                                                             ^~~~~~~~~~
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolStub.swift:18: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/HTTPMock/URLProtocolStub.swift:22:35: error: cannot find type 'URLRequest' in scope
    public override init(request: URLRequest,
                                  ^~~~~~~~~~
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolStub.swift:24:34: error: cannot find type 'URLProtocolClient' in scope
                         client: URLProtocolClient?) {
                                 ^~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolStub.swift:22:21: error: initializer does not override a designated initializer from its superclass
    public override init(request: URLRequest,
           ~~~~~~~~ ^
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolStub.swift:23:42: error: 'CachedURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
                         cachedResponse: CachedURLResponse?,
                                         ^~~~~~~~~~~~~~~~~
Foundation.CachedURLResponse:2:18: note: 'CachedURLResponse' has been explicitly marked unavailable here
public typealias CachedURLResponse = AnyObject
                 ^
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolStub.swift:34:37: error: cannot find type 'URLProtocolClient' in scope
                            client: URLProtocolClient?) {
                                    ^~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolStub.swift:32:35: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    public convenience init(task: URLSessionTask,
                                  ^~~~~~~~~~~~~~
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
public typealias URLSessionTask = AnyObject
                 ^
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolStub.swift:33:45: error: 'CachedURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
                            cachedResponse: CachedURLResponse?,
                                            ^~~~~~~~~~~~~~~~~
Foundation.CachedURLResponse:2:18: note: 'CachedURLResponse' has been explicitly marked unavailable here
public typealias CachedURLResponse = AnyObject
                 ^
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolStub.swift:40:26: error: method does not override any method from its superclass
    public override func startLoading() {
           ~~~~~~~~      ^
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolStub.swift:112:45: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    private func taskDidChangeState(_ task: URLSessionTask) {
                                            ^~~~~~~~~~~~~~
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
public typealias URLSessionTask = AnyObject
                 ^
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolStub.swift:123:26: error: method does not override any method from its superclass
    public override func stopLoading() {
           ~~~~~~~~      ^
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolStub.swift:3:14: error: only protocols can inherit from 'AnyObject'
public class URLProtocolStub: URLProtocol {
             ^
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolStub.swift:3:31: error: 'URLProtocol' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
public class URLProtocolStub: URLProtocol {
                              ^~~~~~~~~~~
Foundation.URLProtocol:2:18: note: 'URLProtocol' has been explicitly marked unavailable here
public typealias URLProtocol = AnyObject
                 ^
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolStub.swift:193:19: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    let response: URLResponse
                  ^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
                 ^
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolStub.swift:198:26: error: cannot find type 'URLRequest' in scope
    private let request: URLRequest
                         ^~~~~~~~~~
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolStub.swift:201:19: error: cannot find type 'URLRequest' in scope
    init(request: URLRequest, responseAsset: HTTPResponseAsset) throws {
                  ^~~~~~~~~~
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolStub.swift:212:23: error: 'HTTPCookie' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    var httpCookies: [HTTPCookie]? {
                      ^~~~~~~~~~
Foundation.HTTPCookie:2:18: note: 'HTTPCookie' has been explicitly marked unavailable here
public typealias HTTPCookie = AnyObject
                 ^
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolStub.swift:218:26: error: cannot find type 'URLRequest' in scope
    var redirectRequest: URLRequest? {
                         ^~~~~~~~~~
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolStub.swift:239:26: error: cannot find type 'URLRequest' in scope
    private let request: URLRequest
                         ^~~~~~~~~~
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolStub.swift:243:32: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    private(set) var response: HTTPURLResponse!
                               ^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
                 ^
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolStub.swift:248:19: error: cannot find type 'URLRequest' in scope
    init(request: URLRequest, responseAsset: HTTPResponseAsset) throws {
                  ^~~~~~~~~~
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolStub.swift:358:36: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    private func makeResponse() -> HTTPURLResponse? {
                                   ^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
                 ^
/host/spi-builder-workspace/Sources/HTTPMock/StubRegistry.swift:53:36: error: cannot find type 'URLRequest' in scope
    public func entry(for request: URLRequest) -> StubEntry? {
                                   ^~~~~~~~~~
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolStub.swift:15:21: error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'currentRequest'
        return task.currentRequest.map({ canInit(with: $0) }) ?? false
               ~~~~ ^~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolStub.swift:29:9: error: 'super' members cannot be referenced in a root class
        super.init(request: request, cachedResponse: nil, client: client)
        ^
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolStub.swift:35:34: error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'currentRequest'
        guard let request = task.currentRequest else { preconditionFailure() }
                            ~~~~ ^~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolStub.swift:41:58: error: cannot find 'request' in scope
        let responseAsset = stubEntry.responseAsset(for: request)
                                                         ^~~~~~~
/host/spi-builder-workspace/Sources/HTTPMock/StubEntry.swift:18:44: error: cannot find type 'URLRequest' in scope
    public func responseAsset(for request: URLRequest) -> HTTPResponseAsset {
                                           ^~~~~~~~~~
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolStub.swift:46:62: error: cannot find 'request' in scope
            let responseSource = try ResponseSource(request: request, responseAsset: responseAsset)
                                                             ^~~~~~~
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolStub.swift:48:11: warning: 'catch' block is unreachable because no errors are thrown in 'do' block
        } catch {
          ^
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolStub.swift:63:18: error: value of type 'URLProtocolStub' has no member 'client'
            self.client?.urlProtocol(self, didFailWithError: error)
            ~~~~ ^~~~~~
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolStub.swift:70:63: error: cannot find 'request' in scope
            HTTPCookieStorage.shared.setCookies(cookies, for: request.url,
                                                              ^~~~~~~
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolStub.swift:71:66: error: cannot find 'request' in scope
                                                mainDocumentURL: request.mainDocumentURL)
                                                                 ^~~~~~~
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolStub.swift:70:31: error: type 'HTTPCookieStorage' (aka 'AnyObject') has no member 'shared'
            HTTPCookieStorage.shared.setCookies(cookies, for: request.url,
            ~~~~~~~~~~~~~~~~~ ^~~~~~
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolStub.swift:76:13: error: cannot find 'client' in scope
            client?.urlProtocol(self, wasRedirectedTo: redirectRequest,
            ^~~~~~
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolStub.swift:81:13: error: cannot find 'client' in scope
            client?.urlProtocol(self, didReceive: responseSource.response,
            ^~~~~~
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolStub.swift:82:54: error: cannot infer contextual base in reference to member 'notAllowed'
                                cacheStoragePolicy: .notAllowed)
                                                    ~^~~~~~~~~~
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolStub.swift:107:37: error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'observe'
        taskStateKVO = sessionTask?.observe(\.state, options: .initial) { [weak self] (task, _) in
                       ~~~~~~~~~~~~ ^~~~~~~
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolStub.swift:107:45: error: cannot infer key path type from context; consider explicitly specifying a root type
        taskStateKVO = sessionTask?.observe(\.state, options: .initial) { [weak self] (task, _) in
                                            ^
                                             <#Root#>
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolStub.swift:107:64: error: cannot infer contextual base in reference to member 'initial'
        taskStateKVO = sessionTask?.observe(\.state, options: .initial) { [weak self] (task, _) in
                                                              ~^~~~~~~
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolStub.swift:107:94: error: cannot infer type of closure parameter '_' without a type annotation
        taskStateKVO = sessionTask?.observe(\.state, options: .initial) { [weak self] (task, _) in
                                                                                             ^
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolStub.swift:113:21: error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'state'
        switch task.state {
               ~~~~ ^~~~~
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolStub.swift:126:24: error: 'nil' requires a contextual type
        taskStateKVO = nil
                       ^
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolStub.swift:132:9: error: cannot find 'client' in scope
        client?.urlProtocol(self, didLoad: data)
        ^~~~~~
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolStub.swift:137:9: error: cannot find 'client' in scope
        client?.urlProtocolDidFinishLoading(self)
        ^~~~~~
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolStub.swift:142:9: error: cannot find 'client' in scope
        client?.urlProtocol(self, didFailWithError: error)
        ^~~~~~
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolStub.swift:215:27: error: type 'HTTPCookie' (aka 'AnyObject') has no member 'cookies'
        return HTTPCookie.cookies(withResponseHeaderFields: headerFields.dictionary, for: url)
               ~~~~~~~~~~ ^~~~~~~
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolStub.swift:332:23: warning: 'scanString(_:into:)' is deprecated: renamed to 'scanString(_:)'
        guard scanner.scanString("bytes=", into: nil) else { return nil }
                      ^
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolStub.swift:332:23: note: use 'scanString(_:)' instead
        guard scanner.scanString("bytes=", into: nil) else { return nil }
                      ^
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolStub.swift:341:23: warning: 'scanString(_:into:)' is deprecated: renamed to 'scanString(_:)'
        guard scanner.scanString("-", into: nil) else { return nil }
                      ^
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolStub.swift:341:23: note: use 'scanString(_:)' instead
        guard scanner.scanString("-", into: nil) else { return nil }
                      ^
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolStub.swift:359:16: error: 'HTTPURLResponse' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
        return HTTPURLResponse(url: url,
               ^~~~~~~~~~~~~~~
error: fatalError
[0/1] Planning build
Building for debugging...
[0/1] Write swift-version-24593BA9C3E375BF.txt
[2/9] Compiling HTTPMock StubEntry.swift
/host/spi-builder-workspace/Sources/HTTPMock/StubEntry.swift:6:33: error: cannot find type 'URLRequest' in scope
    private let assetProvider: (URLRequest) -> HTTPResponseAsset
                                ^~~~~~~~~~
/host/spi-builder-workspace/Sources/HTTPMock/StubEntry.swift:9:43: error: cannot find type 'URLRequest' in scope
                assetProvider: @escaping (URLRequest) -> HTTPResponseAsset) {
                                          ^~~~~~~~~~
/host/spi-builder-workspace/Sources/HTTPMock/StubEntry.swift:14:38: error: cannot find type 'URLRequest' in scope
    public func responds(to request: URLRequest) -> Bool {
                                     ^~~~~~~~~~
/host/spi-builder-workspace/Sources/HTTPMock/StubEntry.swift:18:44: error: cannot find type 'URLRequest' in scope
    public func responseAsset(for request: URLRequest) -> HTTPResponseAsset {
                                           ^~~~~~~~~~
/host/spi-builder-workspace/Sources/HTTPMock/HTTPRequestPredicate.swift:5:27: error: cannot find type 'URLRequest' in scope
    public let evaluate: (URLRequest) -> Bool
                          ^~~~~~~~~~
error: emit-module command failed with exit code 1 (use -v to see invocation)
[3/9] Compiling HTTPMock InputStreamGenerator.swift
[4/9] Emitting module HTTPMock
/host/spi-builder-workspace/Sources/HTTPMock/HTTPRequestPredicate.swift:5:27: error: cannot find type 'URLRequest' in scope
    public let evaluate: (URLRequest) -> Bool
                          ^~~~~~~~~~
/host/spi-builder-workspace/Sources/HTTPMock/StubEntry.swift:6:33: error: cannot find type 'URLRequest' in scope
    private let assetProvider: (URLRequest) -> HTTPResponseAsset
                                ^~~~~~~~~~
/host/spi-builder-workspace/Sources/HTTPMock/StubEntry.swift:9:43: error: cannot find type 'URLRequest' in scope
                assetProvider: @escaping (URLRequest) -> HTTPResponseAsset) {
                                          ^~~~~~~~~~
/host/spi-builder-workspace/Sources/HTTPMock/StubEntry.swift:14:38: error: cannot find type 'URLRequest' in scope
    public func responds(to request: URLRequest) -> Bool {
                                     ^~~~~~~~~~
/host/spi-builder-workspace/Sources/HTTPMock/StubEntry.swift:18:44: error: cannot find type 'URLRequest' in scope
    public func responseAsset(for request: URLRequest) -> HTTPResponseAsset {
                                           ^~~~~~~~~~
/host/spi-builder-workspace/Sources/HTTPMock/StubRegistry.swift:5:49: error: cannot find type 'URLRequest' in scope
                 then assetProvider: @escaping (URLRequest) -> HTTPResponseAsset) -> StubEntry {
                                                ^~~~~~~~~~
/host/spi-builder-workspace/Sources/HTTPMock/StubRegistry.swift:34:35: error: cannot find type 'URLRequest' in scope
        assetProvider: @escaping (URLRequest) -> HTTPResponseAsset
                                  ^~~~~~~~~~
/host/spi-builder-workspace/Sources/HTTPMock/StubRegistry.swift:53:36: error: cannot find type 'URLRequest' in scope
    public func entry(for request: URLRequest) -> StubEntry? {
                                   ^~~~~~~~~~
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolService.swift:32:48: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    static func registerStub(in configuration: URLSessionConfiguration) {
                                               ^~~~~~~~~~~~~~~~~~~~~~~
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' has been explicitly marked unavailable here
public typealias URLSessionConfiguration = AnyObject
                 ^
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolService.swift:39:52: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    static func unregisterStub(from configuration: URLSessionConfiguration) {
                                                   ^~~~~~~~~~~~~~~~~~~~~~~
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' has been explicitly marked unavailable here
public typealias URLSessionConfiguration = AnyObject
                 ^
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolService.swift:64:37: error: '#selector' can only be used with the Objective-C runtime
        return MethodItem(selector: #selector(getter: URLSessionConfiguration.default))
                                    ^
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolService.swift:64:37: error: '#selector' can only be used with the Objective-C runtime
        return MethodItem(selector: #selector(getter: URLSessionConfiguration.default))
                                    ^
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolService.swift:63:56: error: type of expression is ambiguous without a type annotation
    private static let defaultMethodItem: MethodItem = {
                                                       ^
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolService.swift:68:37: error: '#selector' can only be used with the Objective-C runtime
        return MethodItem(selector: #selector(getter: URLSessionConfiguration.ephemeral))
                                    ^
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolService.swift:68:37: error: '#selector' can only be used with the Objective-C runtime
        return MethodItem(selector: #selector(getter: URLSessionConfiguration.ephemeral))
                                    ^
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolService.swift:67:58: error: type of expression is ambiguous without a type annotation
    private static let ephemeralMethodItem: MethodItem = {
                                                         ^
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolService.swift:71:6: error: Objective-C interoperability is disabled
    @objc(defaultSessionConfiguration)
    ~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolService.swift:72:34: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    private class var `default`: URLSessionConfiguration {
                                 ^~~~~~~~~~~~~~~~~~~~~~~
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' has been explicitly marked unavailable here
public typealias URLSessionConfiguration = AnyObject
                 ^
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolService.swift:76:6: error: Objective-C interoperability is disabled
    @objc(ephemeralSessionConfiguration)
    ~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolService.swift:77:34: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    private class var ephemeral: URLSessionConfiguration {
                                 ^~~~~~~~~~~~~~~~~~~~~~~
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' has been explicitly marked unavailable here
public typealias URLSessionConfiguration = AnyObject
                 ^
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolService.swift:100:24: error: cannot find type 'Selector' in scope
        init(selector: Selector) {
                       ^~~~~~~~
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolService.swift:85:24: error: cannot find type 'Selector' in scope
            (AnyClass, Selector) -> URLSessionConfiguration
                       ^~~~~~~~
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolService.swift:87:31: error: cannot find type 'Selector' in scope
        private let selector: Selector
                              ^~~~~~~~
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolService.swift:88:37: error: cannot find type 'Method' in scope
        private let originalMethod: Method
                                    ^~~~~~
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolService.swift:89:45: error: cannot find type 'IMP' in scope
        private let originalImplementation: IMP
                                            ^~~
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolService.swift:90:45: error: cannot find type 'IMP' in scope
        private let swizzlerImplementation: IMP
                                            ^~~
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolService.swift:96:17: error: cannot find 'method_setImplementation' in scope
                method_setImplementation(originalMethod, implementation)
                ^~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolService.swift:116:51: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
        func makeStubRegisteredConfiguration() -> URLSessionConfiguration {
                                                  ^~~~~~~~~~~~~~~~~~~~~~~
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' has been explicitly marked unavailable here
public typealias URLSessionConfiguration = AnyObject
                 ^
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolService.swift:122:53: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
        private func makeOriginalConfiguration() -> URLSessionConfiguration {
                                                    ^~~~~~~~~~~~~~~~~~~~~~~
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' has been explicitly marked unavailable here
public typealias URLSessionConfiguration = AnyObject
                 ^
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolStub.swift:7:35: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    private 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/HTTPMock/URLProtocolStub.swift:8:31: error: cannot find type 'NSKeyValueObservation' in scope
    private var taskStateKVO: NSKeyValueObservation?
                              ^~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolStub.swift:10:54: error: cannot find type 'URLRequest' in scope
    public override class func canInit(with request: URLRequest) -> Bool {
                                                     ^~~~~~~~~~
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolStub.swift:10: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/HTTPMock/URLProtocolStub.swift:14:51: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    public override class func canInit(with task: URLSessionTask) -> Bool {
                                                  ^~~~~~~~~~~~~~
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
public typealias URLSessionTask = AnyObject
                 ^
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolStub.swift:14:32: error: method does not override any method from its superclass
    public override class func canInit(with task: URLSessionTask) -> Bool {
           ~~~~~~~~            ^
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolStub.swift:18:77: error: cannot find type 'URLRequest' in scope
    public override class func canonicalRequest(for request: URLRequest) -> URLRequest {
                                                                            ^~~~~~~~~~
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolStub.swift:18:62: error: cannot find type 'URLRequest' in scope
    public override class func canonicalRequest(for request: URLRequest) -> URLRequest {
                                                             ^~~~~~~~~~
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolStub.swift:18: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/HTTPMock/URLProtocolStub.swift:22:35: error: cannot find type 'URLRequest' in scope
    public override init(request: URLRequest,
                                  ^~~~~~~~~~
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolStub.swift:24:34: error: cannot find type 'URLProtocolClient' in scope
                         client: URLProtocolClient?) {
                                 ^~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolStub.swift:22:21: error: initializer does not override a designated initializer from its superclass
    public override init(request: URLRequest,
           ~~~~~~~~ ^
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolStub.swift:23:42: error: 'CachedURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
                         cachedResponse: CachedURLResponse?,
                                         ^~~~~~~~~~~~~~~~~
Foundation.CachedURLResponse:2:18: note: 'CachedURLResponse' has been explicitly marked unavailable here
public typealias CachedURLResponse = AnyObject
                 ^
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolStub.swift:34:37: error: cannot find type 'URLProtocolClient' in scope
                            client: URLProtocolClient?) {
                                    ^~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolStub.swift:32:35: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    public convenience init(task: URLSessionTask,
                                  ^~~~~~~~~~~~~~
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
public typealias URLSessionTask = AnyObject
                 ^
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolStub.swift:33:45: error: 'CachedURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
                            cachedResponse: CachedURLResponse?,
                                            ^~~~~~~~~~~~~~~~~
Foundation.CachedURLResponse:2:18: note: 'CachedURLResponse' has been explicitly marked unavailable here
public typealias CachedURLResponse = AnyObject
                 ^
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolStub.swift:40:26: error: method does not override any method from its superclass
    public override func startLoading() {
           ~~~~~~~~      ^
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolStub.swift:112:45: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    private func taskDidChangeState(_ task: URLSessionTask) {
                                            ^~~~~~~~~~~~~~
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
public typealias URLSessionTask = AnyObject
                 ^
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolStub.swift:123:26: error: method does not override any method from its superclass
    public override func stopLoading() {
           ~~~~~~~~      ^
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolStub.swift:3:14: error: only protocols can inherit from 'AnyObject'
public class URLProtocolStub: URLProtocol {
             ^
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolStub.swift:3:31: error: 'URLProtocol' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
public class URLProtocolStub: URLProtocol {
                              ^~~~~~~~~~~
Foundation.URLProtocol:2:18: note: 'URLProtocol' has been explicitly marked unavailable here
public typealias URLProtocol = AnyObject
                 ^
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolStub.swift:193:19: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    let response: URLResponse
                  ^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
                 ^
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolStub.swift:198:26: error: cannot find type 'URLRequest' in scope
    private let request: URLRequest
                         ^~~~~~~~~~
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolStub.swift:201:19: error: cannot find type 'URLRequest' in scope
    init(request: URLRequest, responseAsset: HTTPResponseAsset) throws {
                  ^~~~~~~~~~
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolStub.swift:212:23: error: 'HTTPCookie' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    var httpCookies: [HTTPCookie]? {
                      ^~~~~~~~~~
Foundation.HTTPCookie:2:18: note: 'HTTPCookie' has been explicitly marked unavailable here
public typealias HTTPCookie = AnyObject
                 ^
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolStub.swift:218:26: error: cannot find type 'URLRequest' in scope
    var redirectRequest: URLRequest? {
                         ^~~~~~~~~~
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolStub.swift:239:26: error: cannot find type 'URLRequest' in scope
    private let request: URLRequest
                         ^~~~~~~~~~
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolStub.swift:243:32: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    private(set) var response: HTTPURLResponse!
                               ^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
                 ^
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolStub.swift:248:19: error: cannot find type 'URLRequest' in scope
    init(request: URLRequest, responseAsset: HTTPResponseAsset) throws {
                  ^~~~~~~~~~
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolStub.swift:358:36: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    private func makeResponse() -> HTTPURLResponse? {
                                   ^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
                 ^
[5/9] Compiling HTTPMock HTTPRequestPredicate.swift
/host/spi-builder-workspace/Sources/HTTPMock/HTTPRequestPredicate.swift:5:27: error: cannot find type 'URLRequest' in scope
    public let evaluate: (URLRequest) -> Bool
                          ^~~~~~~~~~
[6/9] Compiling HTTPMock HTTPResponse.swift
/host/spi-builder-workspace/Sources/HTTPMock/HTTPResponse.swift:12:23: error: cannot find 'CFHTTPMessageCreateEmpty' in scope
        let message = CFHTTPMessageCreateEmpty(nil, false).takeRetainedValue()
                      ^~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/HTTPMock/HTTPResponse.swift:12:48: error: 'nil' requires a contextual type
        let message = CFHTTPMessageCreateEmpty(nil, false).takeRetainedValue()
                                               ^
/host/spi-builder-workspace/Sources/HTTPMock/HTTPResponse.swift:16:17: error: cannot find 'CFHTTPMessageAppendBytes' in scope
                CFHTTPMessageAppendBytes(message, ptr, data.count)
                ^~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/HTTPMock/HTTPResponse.swift:20:15: error: cannot find 'CFHTTPMessageIsHeaderComplete' in scope
        guard CFHTTPMessageIsHeaderComplete(message) else {
              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/HTTPMock/HTTPResponse.swift:24:34: error: cannot find 'CFHTTPMessageCopyAllHeaderFields' in scope
        guard let headerFields = CFHTTPMessageCopyAllHeaderFields(message)?.takeRetainedValue()
                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/HTTPMock/HTTPResponse.swift:26:26: error: cannot find 'CFHTTPMessageGetResponseStatusCode' in scope
        let statusCode = CFHTTPMessageGetResponseStatusCode(message)
                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/HTTPMock/HTTPResponse.swift:27:24: error: cannot find 'CFHTTPMessageCopyBody' in scope
        let bodyData = CFHTTPMessageCopyBody(message)?.takeRetainedValue() as Data?
                       ^~~~~~~~~~~~~~~~~~~~~
[7/11] Compiling HTTPMock StubRegistry.swift
/host/spi-builder-workspace/Sources/HTTPMock/StubRegistry.swift:5:49: error: cannot find type 'URLRequest' in scope
                 then assetProvider: @escaping (URLRequest) -> HTTPResponseAsset) -> StubEntry {
                                                ^~~~~~~~~~
/host/spi-builder-workspace/Sources/HTTPMock/StubRegistry.swift:34:35: error: cannot find type 'URLRequest' in scope
        assetProvider: @escaping (URLRequest) -> HTTPResponseAsset
                                  ^~~~~~~~~~
/host/spi-builder-workspace/Sources/HTTPMock/StubRegistry.swift:53:36: error: cannot find type 'URLRequest' in scope
    public func entry(for request: URLRequest) -> StubEntry? {
                                   ^~~~~~~~~~
/host/spi-builder-workspace/Sources/HTTPMock/StubRegistry.swift:6:45: error: incorrect argument label in call (have 'for:assetProvider:', expected 'for:assetBuilder:')
    return StubRegistry.shared.registerEntry(for: predicate, assetProvider: assetProvider)
                                            ^                ~~~~~~~~~~~~~
                                                             assetBuilder
/host/spi-builder-workspace/Sources/HTTPMock/StubEntry.swift:9:43: error: cannot find type 'URLRequest' in scope
                assetProvider: @escaping (URLRequest) -> HTTPResponseAsset) {
                                          ^~~~~~~~~~
/host/spi-builder-workspace/Sources/HTTPMock/StubEntry.swift:14:38: error: cannot find type 'URLRequest' in scope
    public func responds(to request: URLRequest) -> Bool {
                                     ^~~~~~~~~~
/host/spi-builder-workspace/Sources/HTTPMock/StubRegistry.swift:64:29: error: incorrect argument label in call (have 'for:assetProvider:', expected 'for:assetBuilder:')
        return registerEntry(for: predicate, assetProvider: { _ in assetBuilder.asset })
                            ^                ~~~~~~~~~~~~~
                                             assetBuilder
/host/spi-builder-workspace/Sources/HTTPMock/StubRegistry.swift:64:61: error: cannot convert value of type '(_) -> HTTPResponseAsset' to expected argument type 'HTTPResponseAssetBuilder'
        return registerEntry(for: predicate, assetProvider: { _ in assetBuilder.asset })
                                                            ^
[8/11] Compiling HTTPMock URLProtocolStub.swift
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolStub.swift:7:35: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    private 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/HTTPMock/URLProtocolStub.swift:8:31: error: cannot find type 'NSKeyValueObservation' in scope
    private var taskStateKVO: NSKeyValueObservation?
                              ^~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolStub.swift:10:54: error: cannot find type 'URLRequest' in scope
    public override class func canInit(with request: URLRequest) -> Bool {
                                                     ^~~~~~~~~~
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolStub.swift:10: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/HTTPMock/URLProtocolStub.swift:14:51: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    public override class func canInit(with task: URLSessionTask) -> Bool {
                                                  ^~~~~~~~~~~~~~
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
public typealias URLSessionTask = AnyObject
                 ^
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolStub.swift:14:32: error: method does not override any method from its superclass
    public override class func canInit(with task: URLSessionTask) -> Bool {
           ~~~~~~~~            ^
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolStub.swift:18:77: error: cannot find type 'URLRequest' in scope
    public override class func canonicalRequest(for request: URLRequest) -> URLRequest {
                                                                            ^~~~~~~~~~
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolStub.swift:18:62: error: cannot find type 'URLRequest' in scope
    public override class func canonicalRequest(for request: URLRequest) -> URLRequest {
                                                             ^~~~~~~~~~
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolStub.swift:18: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/HTTPMock/URLProtocolStub.swift:22:35: error: cannot find type 'URLRequest' in scope
    public override init(request: URLRequest,
                                  ^~~~~~~~~~
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolStub.swift:24:34: error: cannot find type 'URLProtocolClient' in scope
                         client: URLProtocolClient?) {
                                 ^~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolStub.swift:22:21: error: initializer does not override a designated initializer from its superclass
    public override init(request: URLRequest,
           ~~~~~~~~ ^
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolStub.swift:23:42: error: 'CachedURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
                         cachedResponse: CachedURLResponse?,
                                         ^~~~~~~~~~~~~~~~~
Foundation.CachedURLResponse:2:18: note: 'CachedURLResponse' has been explicitly marked unavailable here
public typealias CachedURLResponse = AnyObject
                 ^
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolStub.swift:34:37: error: cannot find type 'URLProtocolClient' in scope
                            client: URLProtocolClient?) {
                                    ^~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolStub.swift:32:35: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    public convenience init(task: URLSessionTask,
                                  ^~~~~~~~~~~~~~
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
public typealias URLSessionTask = AnyObject
                 ^
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolStub.swift:33:45: error: 'CachedURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
                            cachedResponse: CachedURLResponse?,
                                            ^~~~~~~~~~~~~~~~~
Foundation.CachedURLResponse:2:18: note: 'CachedURLResponse' has been explicitly marked unavailable here
public typealias CachedURLResponse = AnyObject
                 ^
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolStub.swift:40:26: error: method does not override any method from its superclass
    public override func startLoading() {
           ~~~~~~~~      ^
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolStub.swift:112:45: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    private func taskDidChangeState(_ task: URLSessionTask) {
                                            ^~~~~~~~~~~~~~
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
public typealias URLSessionTask = AnyObject
                 ^
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolStub.swift:123:26: error: method does not override any method from its superclass
    public override func stopLoading() {
           ~~~~~~~~      ^
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolStub.swift:3:14: error: only protocols can inherit from 'AnyObject'
public class URLProtocolStub: URLProtocol {
             ^
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolStub.swift:3:31: error: 'URLProtocol' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
public class URLProtocolStub: URLProtocol {
                              ^~~~~~~~~~~
Foundation.URLProtocol:2:18: note: 'URLProtocol' has been explicitly marked unavailable here
public typealias URLProtocol = AnyObject
                 ^
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolStub.swift:193:19: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    let response: URLResponse
                  ^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
                 ^
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolStub.swift:198:26: error: cannot find type 'URLRequest' in scope
    private let request: URLRequest
                         ^~~~~~~~~~
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolStub.swift:201:19: error: cannot find type 'URLRequest' in scope
    init(request: URLRequest, responseAsset: HTTPResponseAsset) throws {
                  ^~~~~~~~~~
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolStub.swift:212:23: error: 'HTTPCookie' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    var httpCookies: [HTTPCookie]? {
                      ^~~~~~~~~~
Foundation.HTTPCookie:2:18: note: 'HTTPCookie' has been explicitly marked unavailable here
public typealias HTTPCookie = AnyObject
                 ^
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolStub.swift:218:26: error: cannot find type 'URLRequest' in scope
    var redirectRequest: URLRequest? {
                         ^~~~~~~~~~
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolStub.swift:239:26: error: cannot find type 'URLRequest' in scope
    private let request: URLRequest
                         ^~~~~~~~~~
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolStub.swift:243:32: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    private(set) var response: HTTPURLResponse!
                               ^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
                 ^
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolStub.swift:248:19: error: cannot find type 'URLRequest' in scope
    init(request: URLRequest, responseAsset: HTTPResponseAsset) throws {
                  ^~~~~~~~~~
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolStub.swift:358:36: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    private func makeResponse() -> HTTPURLResponse? {
                                   ^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
                 ^
/host/spi-builder-workspace/Sources/HTTPMock/StubRegistry.swift:53:36: error: cannot find type 'URLRequest' in scope
    public func entry(for request: URLRequest) -> StubEntry? {
                                   ^~~~~~~~~~
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolStub.swift:15:21: error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'currentRequest'
        return task.currentRequest.map({ canInit(with: $0) }) ?? false
               ~~~~ ^~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolStub.swift:29:9: error: 'super' members cannot be referenced in a root class
        super.init(request: request, cachedResponse: nil, client: client)
        ^
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolStub.swift:35:34: error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'currentRequest'
        guard let request = task.currentRequest else { preconditionFailure() }
                            ~~~~ ^~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolStub.swift:41:58: error: cannot find 'request' in scope
        let responseAsset = stubEntry.responseAsset(for: request)
                                                         ^~~~~~~
/host/spi-builder-workspace/Sources/HTTPMock/StubEntry.swift:18:44: error: cannot find type 'URLRequest' in scope
    public func responseAsset(for request: URLRequest) -> HTTPResponseAsset {
                                           ^~~~~~~~~~
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolStub.swift:46:62: error: cannot find 'request' in scope
            let responseSource = try ResponseSource(request: request, responseAsset: responseAsset)
                                                             ^~~~~~~
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolStub.swift:48:11: warning: 'catch' block is unreachable because no errors are thrown in 'do' block
        } catch {
          ^
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolStub.swift:63:18: error: value of type 'URLProtocolStub' has no member 'client'
            self.client?.urlProtocol(self, didFailWithError: error)
            ~~~~ ^~~~~~
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolStub.swift:70:63: error: cannot find 'request' in scope
            HTTPCookieStorage.shared.setCookies(cookies, for: request.url,
                                                              ^~~~~~~
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolStub.swift:71:66: error: cannot find 'request' in scope
                                                mainDocumentURL: request.mainDocumentURL)
                                                                 ^~~~~~~
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolStub.swift:70:31: error: type 'HTTPCookieStorage' (aka 'AnyObject') has no member 'shared'
            HTTPCookieStorage.shared.setCookies(cookies, for: request.url,
            ~~~~~~~~~~~~~~~~~ ^~~~~~
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolStub.swift:76:13: error: cannot find 'client' in scope
            client?.urlProtocol(self, wasRedirectedTo: redirectRequest,
            ^~~~~~
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolStub.swift:81:13: error: cannot find 'client' in scope
            client?.urlProtocol(self, didReceive: responseSource.response,
            ^~~~~~
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolStub.swift:82:54: error: cannot infer contextual base in reference to member 'notAllowed'
                                cacheStoragePolicy: .notAllowed)
                                                    ~^~~~~~~~~~
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolStub.swift:107:37: error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'observe'
        taskStateKVO = sessionTask?.observe(\.state, options: .initial) { [weak self] (task, _) in
                       ~~~~~~~~~~~~ ^~~~~~~
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolStub.swift:107:45: error: cannot infer key path type from context; consider explicitly specifying a root type
        taskStateKVO = sessionTask?.observe(\.state, options: .initial) { [weak self] (task, _) in
                                            ^
                                             <#Root#>
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolStub.swift:107:64: error: cannot infer contextual base in reference to member 'initial'
        taskStateKVO = sessionTask?.observe(\.state, options: .initial) { [weak self] (task, _) in
                                                              ~^~~~~~~
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolStub.swift:107:94: error: cannot infer type of closure parameter '_' without a type annotation
        taskStateKVO = sessionTask?.observe(\.state, options: .initial) { [weak self] (task, _) in
                                                                                             ^
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolStub.swift:113:21: error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'state'
        switch task.state {
               ~~~~ ^~~~~
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolStub.swift:126:24: error: 'nil' requires a contextual type
        taskStateKVO = nil
                       ^
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolStub.swift:132:9: error: cannot find 'client' in scope
        client?.urlProtocol(self, didLoad: data)
        ^~~~~~
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolStub.swift:137:9: error: cannot find 'client' in scope
        client?.urlProtocolDidFinishLoading(self)
        ^~~~~~
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolStub.swift:142:9: error: cannot find 'client' in scope
        client?.urlProtocol(self, didFailWithError: error)
        ^~~~~~
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolStub.swift:215:27: error: type 'HTTPCookie' (aka 'AnyObject') has no member 'cookies'
        return HTTPCookie.cookies(withResponseHeaderFields: headerFields.dictionary, for: url)
               ~~~~~~~~~~ ^~~~~~~
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolStub.swift:332:23: warning: 'scanString(_:into:)' is deprecated: renamed to 'scanString(_:)'
        guard scanner.scanString("bytes=", into: nil) else { return nil }
                      ^
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolStub.swift:332:23: note: use 'scanString(_:)' instead
        guard scanner.scanString("bytes=", into: nil) else { return nil }
                      ^
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolStub.swift:341:23: warning: 'scanString(_:into:)' is deprecated: renamed to 'scanString(_:)'
        guard scanner.scanString("-", into: nil) else { return nil }
                      ^
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolStub.swift:341:23: note: use 'scanString(_:)' instead
        guard scanner.scanString("-", into: nil) else { return nil }
                      ^
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolStub.swift:359:16: error: 'HTTPURLResponse' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
        return HTTPURLResponse(url: url,
               ^~~~~~~~~~~~~~~
[9/11] Compiling HTTPMock URLProtocolService.swift
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolService.swift:32:48: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    static func registerStub(in configuration: URLSessionConfiguration) {
                                               ^~~~~~~~~~~~~~~~~~~~~~~
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' has been explicitly marked unavailable here
public typealias URLSessionConfiguration = AnyObject
                 ^
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolService.swift:39:52: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    static func unregisterStub(from configuration: URLSessionConfiguration) {
                                                   ^~~~~~~~~~~~~~~~~~~~~~~
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' has been explicitly marked unavailable here
public typealias URLSessionConfiguration = AnyObject
                 ^
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolService.swift:64:37: error: '#selector' can only be used with the Objective-C runtime
        return MethodItem(selector: #selector(getter: URLSessionConfiguration.default))
                                    ^
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolService.swift:64:37: error: '#selector' can only be used with the Objective-C runtime
        return MethodItem(selector: #selector(getter: URLSessionConfiguration.default))
                                    ^
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolService.swift:63:56: error: type of expression is ambiguous without a type annotation
    private static let defaultMethodItem: MethodItem = {
                                                       ^
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolService.swift:68:37: error: '#selector' can only be used with the Objective-C runtime
        return MethodItem(selector: #selector(getter: URLSessionConfiguration.ephemeral))
                                    ^
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolService.swift:68:37: error: '#selector' can only be used with the Objective-C runtime
        return MethodItem(selector: #selector(getter: URLSessionConfiguration.ephemeral))
                                    ^
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolService.swift:67:58: error: type of expression is ambiguous without a type annotation
    private static let ephemeralMethodItem: MethodItem = {
                                                         ^
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolService.swift:71:6: error: Objective-C interoperability is disabled
    @objc(defaultSessionConfiguration)
    ~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolService.swift:72:34: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    private class var `default`: URLSessionConfiguration {
                                 ^~~~~~~~~~~~~~~~~~~~~~~
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' has been explicitly marked unavailable here
public typealias URLSessionConfiguration = AnyObject
                 ^
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolService.swift:76:6: error: Objective-C interoperability is disabled
    @objc(ephemeralSessionConfiguration)
    ~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolService.swift:77:34: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    private class var ephemeral: URLSessionConfiguration {
                                 ^~~~~~~~~~~~~~~~~~~~~~~
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' has been explicitly marked unavailable here
public typealias URLSessionConfiguration = AnyObject
                 ^
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolService.swift:100:24: error: cannot find type 'Selector' in scope
        init(selector: Selector) {
                       ^~~~~~~~
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolService.swift:85:24: error: cannot find type 'Selector' in scope
            (AnyClass, Selector) -> URLSessionConfiguration
                       ^~~~~~~~
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolService.swift:87:31: error: cannot find type 'Selector' in scope
        private let selector: Selector
                              ^~~~~~~~
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolService.swift:88:37: error: cannot find type 'Method' in scope
        private let originalMethod: Method
                                    ^~~~~~
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolService.swift:89:45: error: cannot find type 'IMP' in scope
        private let originalImplementation: IMP
                                            ^~~
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolService.swift:90:45: error: cannot find type 'IMP' in scope
        private let swizzlerImplementation: IMP
                                            ^~~
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolService.swift:96:17: error: cannot find 'method_setImplementation' in scope
                method_setImplementation(originalMethod, implementation)
                ^~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolService.swift:116:51: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
        func makeStubRegisteredConfiguration() -> URLSessionConfiguration {
                                                  ^~~~~~~~~~~~~~~~~~~~~~~
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' has been explicitly marked unavailable here
public typealias URLSessionConfiguration = AnyObject
                 ^
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolService.swift:122:53: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
        private func makeOriginalConfiguration() -> URLSessionConfiguration {
                                                    ^~~~~~~~~~~~~~~~~~~~~~~
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' has been explicitly marked unavailable here
public typealias URLSessionConfiguration = AnyObject
                 ^
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolService.swift:7:21: error: type 'URLProtocol' (aka 'AnyObject') has no member 'registerClass'
        URLProtocol.registerClass(URLProtocolStub.self)
        ~~~~~~~~~~~ ^~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolService.swift:11:21: error: type 'URLProtocol' (aka 'AnyObject') has no member 'unregisterClass'
        URLProtocol.unregisterClass(URLProtocolStub.self)
        ~~~~~~~~~~~ ^~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolService.swift:33:37: error: value of type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'protocolClasses'
        let classes = configuration.protocolClasses ?? []
                      ~~~~~~~~~~~~~ ^~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolService.swift:35:27: error: value of type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'protocolClasses'
            configuration.protocolClasses = [URLProtocolStub.self] + classes
            ~~~~~~~~~~~~~ ^~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolService.swift:40:43: error: value of type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'protocolClasses'
        guard var classes = configuration.protocolClasses else { return }
                            ~~~~~~~~~~~~~ ^~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolService.swift:42:23: error: value of type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'protocolClasses'
        configuration.protocolClasses = classes
        ~~~~~~~~~~~~~ ^~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolService.swift:101:17: warning: constant 'originalClass' inferred to have type '(any URLSessionConfiguration).Type' (aka '(any AnyObject).Type'), which may be unexpected
            let originalClass = URLSessionConfiguration.self
                ^
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolService.swift:101:17: note: add an explicit type annotation to silence this warning
            let originalClass = URLSessionConfiguration.self
                ^
                             : (any URLSessionConfiguration).Type
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolService.swift:101:33: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
            let originalClass = URLSessionConfiguration.self
                                ^~~~~~~~~~~~~~~~~~~~~~~
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' has been explicitly marked unavailable here
public typealias URLSessionConfiguration = AnyObject
                 ^
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolService.swift:104:40: error: cannot find 'class_getClassMethod' in scope
            guard let originalMethod = class_getClassMethod(originalClass, selector),
                                       ^~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolService.swift:105:38: error: cannot find 'class_getClassMethod' in scope
                let swizzlerMethod = class_getClassMethod(swizzlerClass, selector)
                                     ^~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolService.swift:110:43: error: cannot find 'method_getImplementation' in scope
            self.originalImplementation = method_getImplementation(originalMethod)
                                          ^~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolService.swift:111:43: error: cannot find 'method_getImplementation' in scope
            self.swizzlerImplementation = method_getImplementation(swizzlerMethod)
                                          ^~~~~~~~~~~~~~~~~~~~~~~~
[10/11] Compiling HTTPMock HTTPResponseAssetBuilder.swift
[11/11] Compiling HTTPMock HTTPResponseAsset.swift
error: fatalError
BUILD FAILURE 5.10 linux