The Swift Package Index logo.Swift Package Index

Build Information

Failed to build HTTPMock with Swift 5.9 for Linux.

Build Command

docker run --rm -v "checkouts-4606859-1":/host -w "/host/spi-builder-workspace" registry.gitlab.com/finestructure/spi-images:basic-5.9-latest swift build 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.19.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/nearfri/HTTPMock.git
Reference: 0.9.3
Cloned https://github.com/nearfri/HTTPMock.git into spi-builder-workspace
SUCCESS checkout https://github.com/nearfri/HTTPMock.git at 0.9.3
========================================
Build
========================================
Selected platform:         linux
Swift version:             5.9
Building package at path:  spi-builder-workspace
Running build ...
docker run --rm -v "checkouts-4606859-1":/host -w "/host/spi-builder-workspace" registry.gitlab.com/finestructure/spi-images:basic-5.9-latest swift build 2>&1
Building for debugging...
error: emit-module command failed with exit code 1 (use -v to see invocation)
[1/13] 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 more context
    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 more context
    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
                 ^
[2/14] 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 })
                                                            ^
[3/14] 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 more context
    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 more context
    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
                ^
                             : URLSessionConfiguration.Protocol
/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/14] 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: unable to infer type of a closure parameter '_' in the current context
        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,
               ^~~~~~~~~~~~~~~
[5/14] Compiling HTTPMock HTTPResponseAsset.swift
[6/14] Compiling HTTPMock HTTPResponseAssetBuilder.swift
[7/14] Compiling HTTPMock HTTPMediaType.swift
[8/14] Compiling HTTPMock HTTPMethod.swift
[9/14] 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 }))
                                 ^~~~~~
[10/14] 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 }))
                                 ^~~~~~
[11/14] 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?
                       ^~~~~~~~~~~~~~~~~~~~~
[12/14] 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?
                       ^~~~~~~~~~~~~~~~~~~~~
[13/14] 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
                          ^~~~~~~~~~
[14/14] 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: fatalError
BUILD FAILURE 5.9 linux

Build Machine: Linux 1