The Swift Package Index logo.Swift Package Index

Build Information

Failed to build HTTPMock, reference 0.9.3 (526655), with Swift 6.3 for Linux on 12 Apr 2026 13:51:34 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4609320-1":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/swiftpackageindex/spi-images:basic-6.3-latest swift build --triple x86_64-unknown-linux-gnu 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.70.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/nearfri/HTTPMock.git
Reference: 0.9.3
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
 * tag               0.9.3      -> FETCH_HEAD
HEAD is now at 5266558 Fix HTTPRequestPredicate.containsQueryItems() bug
Cloned https://github.com/nearfri/HTTPMock.git
Revision (git rev-parse @):
52665587fcd5c483f7b3aa38464b28a6bf08364c
SUCCESS checkout https://github.com/nearfri/HTTPMock.git at 0.9.3
========================================
Build
========================================
Selected platform:         linux
Swift version:             6.3
Building package at path:  $PWD
https://github.com/nearfri/HTTPMock.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-1":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/swiftpackageindex/spi-images:basic-6.3-latest swift build --triple x86_64-unknown-linux-gnu 2>&1
basic-6.3-latest: Pulling from swiftpackageindex/spi-images
Digest: sha256:5a7d791d2ead8a924b1292cb31bf3288eabcfe8880e0b005b00b45b71a5bc36a
Status: Image is up to date for registry.gitlab.com/swiftpackageindex/spi-images:basic-6.3-latest
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.
 30 |     }
 31 |
 32 |     static func registerStub(in configuration: URLSessionConfiguration) {
    |                                                `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 33 |         let classes = configuration.protocolClasses ?? []
 34 |         if !classes.contains(where: { $0 == URLProtocolStub.self }) {
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionConfiguration = AnyObject
  |                  `- note: 'URLSessionConfiguration' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolService.swift:39:52: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 37 |     }
 38 |
 39 |     static func unregisterStub(from configuration: URLSessionConfiguration) {
    |                                                    `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 40 |         guard var classes = configuration.protocolClasses else { return }
 41 |         classes.removeAll(where: { $0 == URLProtocolStub.self })
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionConfiguration = AnyObject
  |                  `- note: 'URLSessionConfiguration' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolService.swift:64:37: error: '#selector' can only be used with the Objective-C runtime
 62 |
 63 |     private static let defaultMethodItem: MethodItem = {
 64 |         return MethodItem(selector: #selector(getter: URLSessionConfiguration.default))
    |                                     `- error: '#selector' can only be used with the Objective-C runtime
 65 |     }()
 66 |
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolService.swift:64:37: error: '#selector' can only be used with the Objective-C runtime
 62 |
 63 |     private static let defaultMethodItem: MethodItem = {
 64 |         return MethodItem(selector: #selector(getter: URLSessionConfiguration.default))
    |                                     `- error: '#selector' can only be used with the Objective-C runtime
 65 |     }()
 66 |
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolService.swift:63:56: error: failed to produce diagnostic for expression; please submit a bug report (https://swift.org/contributing/#reporting-bugs)
 61 |     }
 62 |
 63 |     private static let defaultMethodItem: MethodItem = {
    |                                                        `- error: failed to produce diagnostic for expression; please submit a bug report (https://swift.org/contributing/#reporting-bugs)
 64 |         return MethodItem(selector: #selector(getter: URLSessionConfiguration.default))
 65 |     }()
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolService.swift:68:37: error: '#selector' can only be used with the Objective-C runtime
 66 |
 67 |     private static let ephemeralMethodItem: MethodItem = {
 68 |         return MethodItem(selector: #selector(getter: URLSessionConfiguration.ephemeral))
    |                                     `- error: '#selector' can only be used with the Objective-C runtime
 69 |     }()
 70 |
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolService.swift:68:37: error: '#selector' can only be used with the Objective-C runtime
 66 |
 67 |     private static let ephemeralMethodItem: MethodItem = {
 68 |         return MethodItem(selector: #selector(getter: URLSessionConfiguration.ephemeral))
    |                                     `- error: '#selector' can only be used with the Objective-C runtime
 69 |     }()
 70 |
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolService.swift:67:58: error: failed to produce diagnostic for expression; please submit a bug report (https://swift.org/contributing/#reporting-bugs)
 65 |     }()
 66 |
 67 |     private static let ephemeralMethodItem: MethodItem = {
    |                                                          `- error: failed to produce diagnostic for expression; please submit a bug report (https://swift.org/contributing/#reporting-bugs)
 68 |         return MethodItem(selector: #selector(getter: URLSessionConfiguration.ephemeral))
 69 |     }()
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolService.swift:71:6: error: Objective-C interoperability is disabled
 69 |     }()
 70 |
 71 |     @objc(defaultSessionConfiguration)
    |      `- error: Objective-C interoperability is disabled
 72 |     private class var `default`: URLSessionConfiguration {
 73 |         return defaultMethodItem.makeStubRegisteredConfiguration()
/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.
 70 |
 71 |     @objc(defaultSessionConfiguration)
 72 |     private class var `default`: URLSessionConfiguration {
    |                                  `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 73 |         return defaultMethodItem.makeStubRegisteredConfiguration()
 74 |     }
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionConfiguration = AnyObject
  |                  `- note: 'URLSessionConfiguration' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolService.swift:76:6: error: Objective-C interoperability is disabled
 74 |     }
 75 |
 76 |     @objc(ephemeralSessionConfiguration)
    |      `- error: Objective-C interoperability is disabled
 77 |     private class var ephemeral: URLSessionConfiguration {
 78 |         return ephemeralMethodItem.makeStubRegisteredConfiguration()
/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.
 75 |
 76 |     @objc(ephemeralSessionConfiguration)
 77 |     private class var ephemeral: URLSessionConfiguration {
    |                                  `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 78 |         return ephemeralMethodItem.makeStubRegisteredConfiguration()
 79 |     }
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionConfiguration = AnyObject
  |                  `- note: 'URLSessionConfiguration' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolService.swift:100:24: error: cannot find type 'Selector' in scope
 98 |         }
 99 |
100 |         init(selector: Selector) {
    |                        `- error: cannot find type 'Selector' in scope
101 |             let originalClass = URLSessionConfiguration.self
102 |             let swizzlerClass = URLSessionConfigurationSwizzler.self
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolService.swift:85:24: error: cannot find type 'Selector' in scope
 83 |     private class MethodItem: NSObject {
 84 |         private typealias CreationFunction = @convention(c)
 85 |             (AnyClass, Selector) -> URLSessionConfiguration
    |                        `- error: cannot find type 'Selector' in scope
 86 |
 87 |         private let selector: Selector
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolService.swift:87:31: error: cannot find type 'Selector' in scope
 85 |             (AnyClass, Selector) -> URLSessionConfiguration
 86 |
 87 |         private let selector: Selector
    |                               `- error: cannot find type 'Selector' in scope
 88 |         private let originalMethod: Method
 89 |         private let originalImplementation: IMP
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolService.swift:88:37: error: cannot find type 'Method' in scope
 86 |
 87 |         private let selector: Selector
 88 |         private let originalMethod: Method
    |                                     `- error: cannot find type 'Method' in scope
 89 |         private let originalImplementation: IMP
 90 |         private let swizzlerImplementation: IMP
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolService.swift:89:45: error: cannot find type 'IMP' in scope
 87 |         private let selector: Selector
 88 |         private let originalMethod: Method
 89 |         private let originalImplementation: IMP
    |                                             `- error: cannot find type 'IMP' in scope
 90 |         private let swizzlerImplementation: IMP
 91 |
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolService.swift:90:45: error: cannot find type 'IMP' in scope
 88 |         private let originalMethod: Method
 89 |         private let originalImplementation: IMP
 90 |         private let swizzlerImplementation: IMP
    |                                             `- error: cannot find type 'IMP' in scope
 91 |
 92 |         var isSwizzled: Bool = false {
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolService.swift:96:17: error: cannot find 'method_setImplementation' in scope
 94 |                 if isSwizzled == oldValue { return }
 95 |                 let implementation = isSwizzled ? swizzlerImplementation : originalImplementation
 96 |                 method_setImplementation(originalMethod, implementation)
    |                 `- error: cannot find 'method_setImplementation' in scope
 97 |             }
 98 |         }
/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.
114 |         }
115 |
116 |         func makeStubRegisteredConfiguration() -> URLSessionConfiguration {
    |                                                   `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
117 |             let result = makeOriginalConfiguration()
118 |             URLProtocolService.registerStub(in: result)
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionConfiguration = AnyObject
  |                  `- note: 'URLSessionConfiguration' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolService.swift:122:53: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
120 |         }
121 |
122 |         private func makeOriginalConfiguration() -> URLSessionConfiguration {
    |                                                     `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
123 |             return originalFunction(URLSessionConfiguration.self, selector)
124 |         }
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionConfiguration = AnyObject
  |                  `- note: 'URLSessionConfiguration' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolService.swift:7:21: error: type 'URLProtocol' (aka 'AnyObject') has no member 'registerClass'
  5 | public extension URLProtocolService {
  6 |     static func registerStubInSharedSession() {
  7 |         URLProtocol.registerClass(URLProtocolStub.self)
    |                     `- error: type 'URLProtocol' (aka 'AnyObject') has no member 'registerClass'
  8 |     }
  9 |
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolService.swift:11:21: error: type 'URLProtocol' (aka 'AnyObject') has no member 'unregisterClass'
  9 |
 10 |     static func unregisterStubFromSharedSession() {
 11 |         URLProtocol.unregisterClass(URLProtocolStub.self)
    |                     `- error: type 'URLProtocol' (aka 'AnyObject') has no member 'unregisterClass'
 12 |     }
 13 |
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolService.swift:33:37: error: value of type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'protocolClasses'
 31 |
 32 |     static func registerStub(in configuration: URLSessionConfiguration) {
 33 |         let classes = configuration.protocolClasses ?? []
    |                                     `- error: value of type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'protocolClasses'
 34 |         if !classes.contains(where: { $0 == URLProtocolStub.self }) {
 35 |             configuration.protocolClasses = [URLProtocolStub.self] + classes
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolService.swift:35:27: error: value of type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'protocolClasses'
 33 |         let classes = configuration.protocolClasses ?? []
 34 |         if !classes.contains(where: { $0 == URLProtocolStub.self }) {
 35 |             configuration.protocolClasses = [URLProtocolStub.self] + classes
    |                           `- error: value of type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'protocolClasses'
 36 |         }
 37 |     }
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolService.swift:40:43: error: value of type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'protocolClasses'
 38 |
 39 |     static func unregisterStub(from configuration: URLSessionConfiguration) {
 40 |         guard var classes = configuration.protocolClasses else { return }
    |                                           `- error: value of type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'protocolClasses'
 41 |         classes.removeAll(where: { $0 == URLProtocolStub.self })
 42 |         configuration.protocolClasses = classes
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolService.swift:42:23: error: value of type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'protocolClasses'
 40 |         guard var classes = configuration.protocolClasses else { return }
 41 |         classes.removeAll(where: { $0 == URLProtocolStub.self })
 42 |         configuration.protocolClasses = classes
    |                       `- error: value of type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'protocolClasses'
 43 |     }
 44 | }
/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
 99 |
100 |         init(selector: Selector) {
101 |             let originalClass = URLSessionConfiguration.self
    |                 |- warning: constant 'originalClass' inferred to have type '(any URLSessionConfiguration).Type' (aka '(any AnyObject).Type'), which may be unexpected
    |                 `- note: add an explicit type annotation to silence this warning
102 |             let swizzlerClass = URLSessionConfigurationSwizzler.self
103 |
/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.
 99 |
100 |         init(selector: Selector) {
101 |             let originalClass = URLSessionConfiguration.self
    |                                 `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
102 |             let swizzlerClass = URLSessionConfigurationSwizzler.self
103 |
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionConfiguration = AnyObject
  |                  `- note: 'URLSessionConfiguration' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolService.swift:104:40: error: cannot find 'class_getClassMethod' in scope
102 |             let swizzlerClass = URLSessionConfigurationSwizzler.self
103 |
104 |             guard let originalMethod = class_getClassMethod(originalClass, selector),
    |                                        `- error: cannot find 'class_getClassMethod' in scope
105 |                 let swizzlerMethod = class_getClassMethod(swizzlerClass, selector)
106 |                 else { fatalError("Failed to get class method \(selector)") }
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolService.swift:105:38: error: cannot find 'class_getClassMethod' in scope
103 |
104 |             guard let originalMethod = class_getClassMethod(originalClass, selector),
105 |                 let swizzlerMethod = class_getClassMethod(swizzlerClass, selector)
    |                                      `- error: cannot find 'class_getClassMethod' in scope
106 |                 else { fatalError("Failed to get class method \(selector)") }
107 |
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolService.swift:110:43: error: cannot find 'method_getImplementation' in scope
108 |             self.selector = selector
109 |             self.originalMethod = originalMethod
110 |             self.originalImplementation = method_getImplementation(originalMethod)
    |                                           `- error: cannot find 'method_getImplementation' in scope
111 |             self.swizzlerImplementation = method_getImplementation(swizzlerMethod)
112 |
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolService.swift:111:43: error: cannot find 'method_getImplementation' in scope
109 |             self.originalMethod = originalMethod
110 |             self.originalImplementation = method_getImplementation(originalMethod)
111 |             self.swizzlerImplementation = method_getImplementation(swizzlerMethod)
    |                                           `- error: cannot find 'method_getImplementation' in scope
112 |
113 |             super.init()
[4/16] Compiling HTTPMock HTTPRequestPredicate.swift
/host/spi-builder-workspace/Sources/HTTPMock/HTTPRequestPredicate.swift:5:27: error: cannot find type 'URLRequest' in scope
  3 | public struct HTTPRequestPredicate: CustomStringConvertible {
  4 |     public let description: String
  5 |     public let evaluate: (URLRequest) -> Bool
    |                           `- error: cannot find type 'URLRequest' in scope
  6 | }
  7 |
/host/spi-builder-workspace/Sources/HTTPMock/HTTPResponse.swift:12:23: error: cannot find 'CFHTTPMessageCreateEmpty' in scope
10 |
11 |     public init(data: Data) throws {
12 |         let message = CFHTTPMessageCreateEmpty(nil, false).takeRetainedValue()
   |                       `- error: cannot find 'CFHTTPMessageCreateEmpty' in scope
13 |
14 |         try data.withUnsafeBytes({ (bytes: UnsafeRawBufferPointer) in
/host/spi-builder-workspace/Sources/HTTPMock/HTTPResponse.swift:12:48: error: 'nil' requires a contextual type
10 |
11 |     public init(data: Data) throws {
12 |         let message = CFHTTPMessageCreateEmpty(nil, false).takeRetainedValue()
   |                                                `- error: 'nil' requires a contextual type
13 |
14 |         try data.withUnsafeBytes({ (bytes: UnsafeRawBufferPointer) in
/host/spi-builder-workspace/Sources/HTTPMock/HTTPResponse.swift:16:17: error: cannot find 'CFHTTPMessageAppendBytes' in scope
14 |         try data.withUnsafeBytes({ (bytes: UnsafeRawBufferPointer) in
15 |             guard let ptr = bytes.baseAddress?.assumingMemoryBound(to: UInt8.self),
16 |                 CFHTTPMessageAppendBytes(message, ptr, data.count)
   |                 `- error: cannot find 'CFHTTPMessageAppendBytes' in scope
17 |                 else { throw Error.invalidResponseData }
18 |         })
/host/spi-builder-workspace/Sources/HTTPMock/HTTPResponse.swift:20:15: error: cannot find 'CFHTTPMessageIsHeaderComplete' in scope
18 |         })
19 |
20 |         guard CFHTTPMessageIsHeaderComplete(message) else {
   |               `- error: cannot find 'CFHTTPMessageIsHeaderComplete' in scope
21 |             throw Error.headerIsNotCompleted
22 |         }
/host/spi-builder-workspace/Sources/HTTPMock/HTTPResponse.swift:24:34: error: cannot find 'CFHTTPMessageCopyAllHeaderFields' in scope
22 |         }
23 |
24 |         guard let headerFields = CFHTTPMessageCopyAllHeaderFields(message)?.takeRetainedValue()
   |                                  `- error: cannot find 'CFHTTPMessageCopyAllHeaderFields' in scope
25 |             else { throw Error.copyHeaderFieldsFailed }
26 |         let statusCode = CFHTTPMessageGetResponseStatusCode(message)
/host/spi-builder-workspace/Sources/HTTPMock/HTTPResponse.swift:26:26: error: cannot find 'CFHTTPMessageGetResponseStatusCode' in scope
24 |         guard let headerFields = CFHTTPMessageCopyAllHeaderFields(message)?.takeRetainedValue()
25 |             else { throw Error.copyHeaderFieldsFailed }
26 |         let statusCode = CFHTTPMessageGetResponseStatusCode(message)
   |                          `- error: cannot find 'CFHTTPMessageGetResponseStatusCode' in scope
27 |         let bodyData = CFHTTPMessageCopyBody(message)?.takeRetainedValue() as Data?
28 |
/host/spi-builder-workspace/Sources/HTTPMock/HTTPResponse.swift:27:24: error: cannot find 'CFHTTPMessageCopyBody' in scope
25 |             else { throw Error.copyHeaderFieldsFailed }
26 |         let statusCode = CFHTTPMessageGetResponseStatusCode(message)
27 |         let bodyData = CFHTTPMessageCopyBody(message)?.takeRetainedValue() as Data?
   |                        `- error: cannot find 'CFHTTPMessageCopyBody' in scope
28 |
29 |         self.statusCode = statusCode
[5/16] Compiling HTTPMock HTTPResponse.swift
/host/spi-builder-workspace/Sources/HTTPMock/HTTPRequestPredicate.swift:5:27: error: cannot find type 'URLRequest' in scope
  3 | public struct HTTPRequestPredicate: CustomStringConvertible {
  4 |     public let description: String
  5 |     public let evaluate: (URLRequest) -> Bool
    |                           `- error: cannot find type 'URLRequest' in scope
  6 | }
  7 |
/host/spi-builder-workspace/Sources/HTTPMock/HTTPResponse.swift:12:23: error: cannot find 'CFHTTPMessageCreateEmpty' in scope
10 |
11 |     public init(data: Data) throws {
12 |         let message = CFHTTPMessageCreateEmpty(nil, false).takeRetainedValue()
   |                       `- error: cannot find 'CFHTTPMessageCreateEmpty' in scope
13 |
14 |         try data.withUnsafeBytes({ (bytes: UnsafeRawBufferPointer) in
/host/spi-builder-workspace/Sources/HTTPMock/HTTPResponse.swift:12:48: error: 'nil' requires a contextual type
10 |
11 |     public init(data: Data) throws {
12 |         let message = CFHTTPMessageCreateEmpty(nil, false).takeRetainedValue()
   |                                                `- error: 'nil' requires a contextual type
13 |
14 |         try data.withUnsafeBytes({ (bytes: UnsafeRawBufferPointer) in
/host/spi-builder-workspace/Sources/HTTPMock/HTTPResponse.swift:16:17: error: cannot find 'CFHTTPMessageAppendBytes' in scope
14 |         try data.withUnsafeBytes({ (bytes: UnsafeRawBufferPointer) in
15 |             guard let ptr = bytes.baseAddress?.assumingMemoryBound(to: UInt8.self),
16 |                 CFHTTPMessageAppendBytes(message, ptr, data.count)
   |                 `- error: cannot find 'CFHTTPMessageAppendBytes' in scope
17 |                 else { throw Error.invalidResponseData }
18 |         })
/host/spi-builder-workspace/Sources/HTTPMock/HTTPResponse.swift:20:15: error: cannot find 'CFHTTPMessageIsHeaderComplete' in scope
18 |         })
19 |
20 |         guard CFHTTPMessageIsHeaderComplete(message) else {
   |               `- error: cannot find 'CFHTTPMessageIsHeaderComplete' in scope
21 |             throw Error.headerIsNotCompleted
22 |         }
/host/spi-builder-workspace/Sources/HTTPMock/HTTPResponse.swift:24:34: error: cannot find 'CFHTTPMessageCopyAllHeaderFields' in scope
22 |         }
23 |
24 |         guard let headerFields = CFHTTPMessageCopyAllHeaderFields(message)?.takeRetainedValue()
   |                                  `- error: cannot find 'CFHTTPMessageCopyAllHeaderFields' in scope
25 |             else { throw Error.copyHeaderFieldsFailed }
26 |         let statusCode = CFHTTPMessageGetResponseStatusCode(message)
/host/spi-builder-workspace/Sources/HTTPMock/HTTPResponse.swift:26:26: error: cannot find 'CFHTTPMessageGetResponseStatusCode' in scope
24 |         guard let headerFields = CFHTTPMessageCopyAllHeaderFields(message)?.takeRetainedValue()
25 |             else { throw Error.copyHeaderFieldsFailed }
26 |         let statusCode = CFHTTPMessageGetResponseStatusCode(message)
   |                          `- error: cannot find 'CFHTTPMessageGetResponseStatusCode' in scope
27 |         let bodyData = CFHTTPMessageCopyBody(message)?.takeRetainedValue() as Data?
28 |
/host/spi-builder-workspace/Sources/HTTPMock/HTTPResponse.swift:27:24: error: cannot find 'CFHTTPMessageCopyBody' in scope
25 |             else { throw Error.copyHeaderFieldsFailed }
26 |         let statusCode = CFHTTPMessageGetResponseStatusCode(message)
27 |         let bodyData = CFHTTPMessageCopyBody(message)?.takeRetainedValue() as Data?
   |                        `- error: cannot find 'CFHTTPMessageCopyBody' in scope
28 |
29 |         self.statusCode = statusCode
[6/16] Compiling HTTPMock StubRegistry.swift
/host/spi-builder-workspace/Sources/HTTPMock/StubRegistry.swift:5:49: error: cannot find type 'URLRequest' in scope
 3 | @discardableResult
 4 | public func stub(when predicate: HTTPRequestPredicate,
 5 |                  then assetProvider: @escaping (URLRequest) -> HTTPResponseAsset) -> StubEntry {
   |                                                 `- error: cannot find type 'URLRequest' in scope
 6 |     return StubRegistry.shared.registerEntry(for: predicate, assetProvider: assetProvider)
 7 | }
/host/spi-builder-workspace/Sources/HTTPMock/StubRegistry.swift:34:35: error: cannot find type 'URLRequest' in scope
32 |     public func registerEntry(
33 |         for predicate: HTTPRequestPredicate,
34 |         assetProvider: @escaping (URLRequest) -> HTTPResponseAsset
   |                                   `- error: cannot find type 'URLRequest' in scope
35 |     ) -> StubEntry {
36 |         let entry = StubEntry(predicate: predicate, assetProvider: assetProvider)
/host/spi-builder-workspace/Sources/HTTPMock/StubRegistry.swift:53:36: error: cannot find type 'URLRequest' in scope
51 |     }
52 |
53 |     public func entry(for request: URLRequest) -> StubEntry? {
   |                                    `- error: cannot find type 'URLRequest' in scope
54 |         return syncQueue.sync(execute: {
55 |             return entries.last(where: { $0.responds(to: request) })
/host/spi-builder-workspace/Sources/HTTPMock/StubRegistry.swift:6:45: error: incorrect argument label in call (have 'for:assetProvider:', expected 'for:assetBuilder:')
 4 | public func stub(when predicate: HTTPRequestPredicate,
 5 |                  then assetProvider: @escaping (URLRequest) -> HTTPResponseAsset) -> StubEntry {
 6 |     return StubRegistry.shared.registerEntry(for: predicate, assetProvider: assetProvider)
   |                                             `- error: incorrect argument label in call (have 'for:assetProvider:', expected 'for:assetBuilder:')
 7 | }
 8 |
/host/spi-builder-workspace/Sources/HTTPMock/StubEntry.swift:9:43: error: cannot find type 'URLRequest' in scope
 7 |
 8 |     public init(predicate: HTTPRequestPredicate,
 9 |                 assetProvider: @escaping (URLRequest) -> HTTPResponseAsset) {
   |                                           `- error: cannot find type 'URLRequest' in scope
10 |         self.predicate = predicate
11 |         self.assetProvider = assetProvider
/host/spi-builder-workspace/Sources/HTTPMock/StubEntry.swift:14:38: error: cannot find type 'URLRequest' in scope
12 |     }
13 |
14 |     public func responds(to request: URLRequest) -> Bool {
   |                                      `- error: cannot find type 'URLRequest' in scope
15 |         return predicate.evaluate(request)
16 |     }
/host/spi-builder-workspace/Sources/HTTPMock/StubRegistry.swift:64:29: error: incorrect argument label in call (have 'for:assetProvider:', expected 'for:assetBuilder:')
62 |     func registerEntry(for predicate: HTTPRequestPredicate,
63 |                        assetBuilder: HTTPResponseAssetBuilder) -> StubEntry {
64 |         return registerEntry(for: predicate, assetProvider: { _ in assetBuilder.asset })
   |                             `- error: incorrect argument label in call (have 'for:assetProvider:', expected 'for:assetBuilder:')
65 |     }
66 | }
/host/spi-builder-workspace/Sources/HTTPMock/StubRegistry.swift:64:61: error: closure passed to parameter of type 'HTTPResponseAssetBuilder' that does not accept a closure
60 | public extension StubRegistry {
61 |     @discardableResult
62 |     func registerEntry(for predicate: HTTPRequestPredicate,
   |          `- note: 'registerEntry(for:assetBuilder:)' declared here
63 |                        assetBuilder: HTTPResponseAssetBuilder) -> StubEntry {
64 |         return registerEntry(for: predicate, assetProvider: { _ in assetBuilder.asset })
   |                                                             `- error: closure passed to parameter of type 'HTTPResponseAssetBuilder' that does not accept a closure
65 |     }
66 | }
[7/16] Compiling HTTPMock InputStreamGenerator.swift
/host/spi-builder-workspace/Sources/HTTPMock/StubEntry.swift:6:33: error: cannot find type 'URLRequest' in scope
 4 |     public let id: String = UUID().uuidString
 5 |     public let predicate: HTTPRequestPredicate
 6 |     private let assetProvider: (URLRequest) -> HTTPResponseAsset
   |                                 `- error: cannot find type 'URLRequest' in scope
 7 |
 8 |     public init(predicate: HTTPRequestPredicate,
/host/spi-builder-workspace/Sources/HTTPMock/StubEntry.swift:9:43: error: cannot find type 'URLRequest' in scope
 7 |
 8 |     public init(predicate: HTTPRequestPredicate,
 9 |                 assetProvider: @escaping (URLRequest) -> HTTPResponseAsset) {
   |                                           `- error: cannot find type 'URLRequest' in scope
10 |         self.predicate = predicate
11 |         self.assetProvider = assetProvider
/host/spi-builder-workspace/Sources/HTTPMock/StubEntry.swift:14:38: error: cannot find type 'URLRequest' in scope
12 |     }
13 |
14 |     public func responds(to request: URLRequest) -> Bool {
   |                                      `- error: cannot find type 'URLRequest' in scope
15 |         return predicate.evaluate(request)
16 |     }
/host/spi-builder-workspace/Sources/HTTPMock/StubEntry.swift:18:44: error: cannot find type 'URLRequest' in scope
16 |     }
17 |
18 |     public func responseAsset(for request: URLRequest) -> HTTPResponseAsset {
   |                                            `- error: cannot find type 'URLRequest' in scope
19 |         var result = assetProvider(request)
20 |         if result.bodyStreamGenerator != nil && result.headerFields[HTTPHeaderName.eTag] == nil {
/host/spi-builder-workspace/Sources/HTTPMock/HTTPRequestPredicate.swift:5:27: error: cannot find type 'URLRequest' in scope
  3 | public struct HTTPRequestPredicate: CustomStringConvertible {
  4 |     public let description: String
  5 |     public let evaluate: (URLRequest) -> Bool
    |                           `- error: cannot find type 'URLRequest' in scope
  6 | }
  7 |
[8/16] Compiling HTTPMock StubEntry.swift
/host/spi-builder-workspace/Sources/HTTPMock/StubEntry.swift:6:33: error: cannot find type 'URLRequest' in scope
 4 |     public let id: String = UUID().uuidString
 5 |     public let predicate: HTTPRequestPredicate
 6 |     private let assetProvider: (URLRequest) -> HTTPResponseAsset
   |                                 `- error: cannot find type 'URLRequest' in scope
 7 |
 8 |     public init(predicate: HTTPRequestPredicate,
/host/spi-builder-workspace/Sources/HTTPMock/StubEntry.swift:9:43: error: cannot find type 'URLRequest' in scope
 7 |
 8 |     public init(predicate: HTTPRequestPredicate,
 9 |                 assetProvider: @escaping (URLRequest) -> HTTPResponseAsset) {
   |                                           `- error: cannot find type 'URLRequest' in scope
10 |         self.predicate = predicate
11 |         self.assetProvider = assetProvider
/host/spi-builder-workspace/Sources/HTTPMock/StubEntry.swift:14:38: error: cannot find type 'URLRequest' in scope
12 |     }
13 |
14 |     public func responds(to request: URLRequest) -> Bool {
   |                                      `- error: cannot find type 'URLRequest' in scope
15 |         return predicate.evaluate(request)
16 |     }
/host/spi-builder-workspace/Sources/HTTPMock/StubEntry.swift:18:44: error: cannot find type 'URLRequest' in scope
16 |     }
17 |
18 |     public func responseAsset(for request: URLRequest) -> HTTPResponseAsset {
   |                                            `- error: cannot find type 'URLRequest' in scope
19 |         var result = assetProvider(request)
20 |         if result.bodyStreamGenerator != nil && result.headerFields[HTTPHeaderName.eTag] == nil {
/host/spi-builder-workspace/Sources/HTTPMock/HTTPRequestPredicate.swift:5:27: error: cannot find type 'URLRequest' in scope
  3 | public struct HTTPRequestPredicate: CustomStringConvertible {
  4 |     public let description: String
  5 |     public let evaluate: (URLRequest) -> Bool
    |                           `- error: cannot find type 'URLRequest' in scope
  6 | }
  7 |
[9/16] Compiling HTTPMock HTTPResponseAsset.swift
[10/16] Compiling HTTPMock HTTPResponseAssetBuilder.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[11/16] Emitting module HTTPMock
/host/spi-builder-workspace/Sources/HTTPMock/HTTPRequestPredicate.swift:5:27: error: cannot find type 'URLRequest' in scope
  3 | public struct HTTPRequestPredicate: CustomStringConvertible {
  4 |     public let description: String
  5 |     public let evaluate: (URLRequest) -> Bool
    |                           `- error: cannot find type 'URLRequest' in scope
  6 | }
  7 |
/host/spi-builder-workspace/Sources/HTTPMock/StubEntry.swift:6:33: error: cannot find type 'URLRequest' in scope
 4 |     public let id: String = UUID().uuidString
 5 |     public let predicate: HTTPRequestPredicate
 6 |     private let assetProvider: (URLRequest) -> HTTPResponseAsset
   |                                 `- error: cannot find type 'URLRequest' in scope
 7 |
 8 |     public init(predicate: HTTPRequestPredicate,
/host/spi-builder-workspace/Sources/HTTPMock/StubEntry.swift:9:43: error: cannot find type 'URLRequest' in scope
 7 |
 8 |     public init(predicate: HTTPRequestPredicate,
 9 |                 assetProvider: @escaping (URLRequest) -> HTTPResponseAsset) {
   |                                           `- error: cannot find type 'URLRequest' in scope
10 |         self.predicate = predicate
11 |         self.assetProvider = assetProvider
/host/spi-builder-workspace/Sources/HTTPMock/StubEntry.swift:14:38: error: cannot find type 'URLRequest' in scope
12 |     }
13 |
14 |     public func responds(to request: URLRequest) -> Bool {
   |                                      `- error: cannot find type 'URLRequest' in scope
15 |         return predicate.evaluate(request)
16 |     }
/host/spi-builder-workspace/Sources/HTTPMock/StubEntry.swift:18:44: error: cannot find type 'URLRequest' in scope
16 |     }
17 |
18 |     public func responseAsset(for request: URLRequest) -> HTTPResponseAsset {
   |                                            `- error: cannot find type 'URLRequest' in scope
19 |         var result = assetProvider(request)
20 |         if result.bodyStreamGenerator != nil && result.headerFields[HTTPHeaderName.eTag] == nil {
/host/spi-builder-workspace/Sources/HTTPMock/StubRegistry.swift:5:49: error: cannot find type 'URLRequest' in scope
 3 | @discardableResult
 4 | public func stub(when predicate: HTTPRequestPredicate,
 5 |                  then assetProvider: @escaping (URLRequest) -> HTTPResponseAsset) -> StubEntry {
   |                                                 `- error: cannot find type 'URLRequest' in scope
 6 |     return StubRegistry.shared.registerEntry(for: predicate, assetProvider: assetProvider)
 7 | }
/host/spi-builder-workspace/Sources/HTTPMock/StubRegistry.swift:34:35: error: cannot find type 'URLRequest' in scope
32 |     public func registerEntry(
33 |         for predicate: HTTPRequestPredicate,
34 |         assetProvider: @escaping (URLRequest) -> HTTPResponseAsset
   |                                   `- error: cannot find type 'URLRequest' in scope
35 |     ) -> StubEntry {
36 |         let entry = StubEntry(predicate: predicate, assetProvider: assetProvider)
/host/spi-builder-workspace/Sources/HTTPMock/StubRegistry.swift:53:36: error: cannot find type 'URLRequest' in scope
51 |     }
52 |
53 |     public func entry(for request: URLRequest) -> StubEntry? {
   |                                    `- error: cannot find type 'URLRequest' in scope
54 |         return syncQueue.sync(execute: {
55 |             return entries.last(where: { $0.responds(to: request) })
/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.
 30 |     }
 31 |
 32 |     static func registerStub(in configuration: URLSessionConfiguration) {
    |                                                `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 33 |         let classes = configuration.protocolClasses ?? []
 34 |         if !classes.contains(where: { $0 == URLProtocolStub.self }) {
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionConfiguration = AnyObject
  |                  `- note: 'URLSessionConfiguration' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolService.swift:39:52: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 37 |     }
 38 |
 39 |     static func unregisterStub(from configuration: URLSessionConfiguration) {
    |                                                    `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 40 |         guard var classes = configuration.protocolClasses else { return }
 41 |         classes.removeAll(where: { $0 == URLProtocolStub.self })
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionConfiguration = AnyObject
  |                  `- note: 'URLSessionConfiguration' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolService.swift:64:37: error: '#selector' can only be used with the Objective-C runtime
 62 |
 63 |     private static let defaultMethodItem: MethodItem = {
 64 |         return MethodItem(selector: #selector(getter: URLSessionConfiguration.default))
    |                                     `- error: '#selector' can only be used with the Objective-C runtime
 65 |     }()
 66 |
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolService.swift:64:37: error: '#selector' can only be used with the Objective-C runtime
 62 |
 63 |     private static let defaultMethodItem: MethodItem = {
 64 |         return MethodItem(selector: #selector(getter: URLSessionConfiguration.default))
    |                                     `- error: '#selector' can only be used with the Objective-C runtime
 65 |     }()
 66 |
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolService.swift:63:56: error: failed to produce diagnostic for expression; please submit a bug report (https://swift.org/contributing/#reporting-bugs)
 61 |     }
 62 |
 63 |     private static let defaultMethodItem: MethodItem = {
    |                                                        `- error: failed to produce diagnostic for expression; please submit a bug report (https://swift.org/contributing/#reporting-bugs)
 64 |         return MethodItem(selector: #selector(getter: URLSessionConfiguration.default))
 65 |     }()
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolService.swift:68:37: error: '#selector' can only be used with the Objective-C runtime
 66 |
 67 |     private static let ephemeralMethodItem: MethodItem = {
 68 |         return MethodItem(selector: #selector(getter: URLSessionConfiguration.ephemeral))
    |                                     `- error: '#selector' can only be used with the Objective-C runtime
 69 |     }()
 70 |
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolService.swift:68:37: error: '#selector' can only be used with the Objective-C runtime
 66 |
 67 |     private static let ephemeralMethodItem: MethodItem = {
 68 |         return MethodItem(selector: #selector(getter: URLSessionConfiguration.ephemeral))
    |                                     `- error: '#selector' can only be used with the Objective-C runtime
 69 |     }()
 70 |
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolService.swift:67:58: error: failed to produce diagnostic for expression; please submit a bug report (https://swift.org/contributing/#reporting-bugs)
 65 |     }()
 66 |
 67 |     private static let ephemeralMethodItem: MethodItem = {
    |                                                          `- error: failed to produce diagnostic for expression; please submit a bug report (https://swift.org/contributing/#reporting-bugs)
 68 |         return MethodItem(selector: #selector(getter: URLSessionConfiguration.ephemeral))
 69 |     }()
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolService.swift:71:6: error: Objective-C interoperability is disabled
 69 |     }()
 70 |
 71 |     @objc(defaultSessionConfiguration)
    |      `- error: Objective-C interoperability is disabled
 72 |     private class var `default`: URLSessionConfiguration {
 73 |         return defaultMethodItem.makeStubRegisteredConfiguration()
/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.
 70 |
 71 |     @objc(defaultSessionConfiguration)
 72 |     private class var `default`: URLSessionConfiguration {
    |                                  `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 73 |         return defaultMethodItem.makeStubRegisteredConfiguration()
 74 |     }
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionConfiguration = AnyObject
  |                  `- note: 'URLSessionConfiguration' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolService.swift:76:6: error: Objective-C interoperability is disabled
 74 |     }
 75 |
 76 |     @objc(ephemeralSessionConfiguration)
    |      `- error: Objective-C interoperability is disabled
 77 |     private class var ephemeral: URLSessionConfiguration {
 78 |         return ephemeralMethodItem.makeStubRegisteredConfiguration()
/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.
 75 |
 76 |     @objc(ephemeralSessionConfiguration)
 77 |     private class var ephemeral: URLSessionConfiguration {
    |                                  `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 78 |         return ephemeralMethodItem.makeStubRegisteredConfiguration()
 79 |     }
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionConfiguration = AnyObject
  |                  `- note: 'URLSessionConfiguration' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolService.swift:100:24: error: cannot find type 'Selector' in scope
 98 |         }
 99 |
100 |         init(selector: Selector) {
    |                        `- error: cannot find type 'Selector' in scope
101 |             let originalClass = URLSessionConfiguration.self
102 |             let swizzlerClass = URLSessionConfigurationSwizzler.self
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolService.swift:85:24: error: cannot find type 'Selector' in scope
 83 |     private class MethodItem: NSObject {
 84 |         private typealias CreationFunction = @convention(c)
 85 |             (AnyClass, Selector) -> URLSessionConfiguration
    |                        `- error: cannot find type 'Selector' in scope
 86 |
 87 |         private let selector: Selector
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolService.swift:87:31: error: cannot find type 'Selector' in scope
 85 |             (AnyClass, Selector) -> URLSessionConfiguration
 86 |
 87 |         private let selector: Selector
    |                               `- error: cannot find type 'Selector' in scope
 88 |         private let originalMethod: Method
 89 |         private let originalImplementation: IMP
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolService.swift:88:37: error: cannot find type 'Method' in scope
 86 |
 87 |         private let selector: Selector
 88 |         private let originalMethod: Method
    |                                     `- error: cannot find type 'Method' in scope
 89 |         private let originalImplementation: IMP
 90 |         private let swizzlerImplementation: IMP
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolService.swift:89:45: error: cannot find type 'IMP' in scope
 87 |         private let selector: Selector
 88 |         private let originalMethod: Method
 89 |         private let originalImplementation: IMP
    |                                             `- error: cannot find type 'IMP' in scope
 90 |         private let swizzlerImplementation: IMP
 91 |
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolService.swift:90:45: error: cannot find type 'IMP' in scope
 88 |         private let originalMethod: Method
 89 |         private let originalImplementation: IMP
 90 |         private let swizzlerImplementation: IMP
    |                                             `- error: cannot find type 'IMP' in scope
 91 |
 92 |         var isSwizzled: Bool = false {
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolService.swift:96:17: error: cannot find 'method_setImplementation' in scope
 94 |                 if isSwizzled == oldValue { return }
 95 |                 let implementation = isSwizzled ? swizzlerImplementation : originalImplementation
 96 |                 method_setImplementation(originalMethod, implementation)
    |                 `- error: cannot find 'method_setImplementation' in scope
 97 |             }
 98 |         }
/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.
114 |         }
115 |
116 |         func makeStubRegisteredConfiguration() -> URLSessionConfiguration {
    |                                                   `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
117 |             let result = makeOriginalConfiguration()
118 |             URLProtocolService.registerStub(in: result)
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionConfiguration = AnyObject
  |                  `- note: 'URLSessionConfiguration' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolService.swift:122:53: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
120 |         }
121 |
122 |         private func makeOriginalConfiguration() -> URLSessionConfiguration {
    |                                                     `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
123 |             return originalFunction(URLSessionConfiguration.self, selector)
124 |         }
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionConfiguration = AnyObject
  |                  `- note: 'URLSessionConfiguration' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolStub.swift:7:35: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
  5 |     private let schedules: Schedules = Schedules()
  6 |     private var streamReader: StreamReader?
  7 |     private weak var sessionTask: URLSessionTask?
    |                                   `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
  8 |     private var taskStateKVO: NSKeyValueObservation?
  9 |
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionTask = AnyObject
  |                  `- note: 'URLSessionTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolStub.swift:8:31: error: cannot find type 'NSKeyValueObservation' in scope
  6 |     private var streamReader: StreamReader?
  7 |     private weak var sessionTask: URLSessionTask?
  8 |     private var taskStateKVO: NSKeyValueObservation?
    |                               `- error: cannot find type 'NSKeyValueObservation' in scope
  9 |
 10 |     public override class func canInit(with request: URLRequest) -> Bool {
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolStub.swift:10:54: error: cannot find type 'URLRequest' in scope
  8 |     private var taskStateKVO: NSKeyValueObservation?
  9 |
 10 |     public override class func canInit(with request: URLRequest) -> Bool {
    |                                                      `- error: cannot find type 'URLRequest' in scope
 11 |         return StubRegistry.shared.entry(for: request) != nil
 12 |     }
/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.
 12 |     }
 13 |
 14 |     public override class func canInit(with task: URLSessionTask) -> Bool {
    |                                                   `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 15 |         return task.currentRequest.map({ canInit(with: $0) }) ?? false
 16 |     }
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionTask = AnyObject
  |                  `- note: 'URLSessionTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolStub.swift:14:32: error: method does not override any method from its superclass
 12 |     }
 13 |
 14 |     public override class func canInit(with task: URLSessionTask) -> Bool {
    |                                `- error: method does not override any method from its superclass
 15 |         return task.currentRequest.map({ canInit(with: $0) }) ?? false
 16 |     }
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolStub.swift:18:77: error: cannot find type 'URLRequest' in scope
 16 |     }
 17 |
 18 |     public override class func canonicalRequest(for request: URLRequest) -> URLRequest {
    |                                                                             `- error: cannot find type 'URLRequest' in scope
 19 |         return request
 20 |     }
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolStub.swift:18:62: error: cannot find type 'URLRequest' in scope
 16 |     }
 17 |
 18 |     public override class func canonicalRequest(for request: URLRequest) -> URLRequest {
    |                                                              `- error: cannot find type 'URLRequest' in scope
 19 |         return request
 20 |     }
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolStub.swift:22:35: error: cannot find type 'URLRequest' in scope
 20 |     }
 21 |
 22 |     public override init(request: URLRequest,
    |                                   `- error: cannot find type 'URLRequest' in scope
 23 |                          cachedResponse: CachedURLResponse?,
 24 |                          client: URLProtocolClient?) {
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolStub.swift:24:34: error: cannot find type 'URLProtocolClient' in scope
 22 |     public override init(request: URLRequest,
 23 |                          cachedResponse: CachedURLResponse?,
 24 |                          client: URLProtocolClient?) {
    |                                  `- error: cannot find type 'URLProtocolClient' in scope
 25 |         guard let stubEntry = StubRegistry.shared.entry(for: request) else {
 26 |             preconditionFailure("StubEntry has been unregistered after `canInit(with:)`.")
/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.
 21 |
 22 |     public override init(request: URLRequest,
 23 |                          cachedResponse: CachedURLResponse?,
    |                                          `- error: 'CachedURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 24 |                          client: URLProtocolClient?) {
 25 |         guard let stubEntry = StubRegistry.shared.entry(for: request) else {
Foundation.CachedURLResponse:2:18: note: 'CachedURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias CachedURLResponse = AnyObject
  |                  `- note: 'CachedURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolStub.swift:34:37: error: cannot find type 'URLProtocolClient' in scope
 32 |     public convenience init(task: URLSessionTask,
 33 |                             cachedResponse: CachedURLResponse?,
 34 |                             client: URLProtocolClient?) {
    |                                     `- error: cannot find type 'URLProtocolClient' in scope
 35 |         guard let request = task.currentRequest else { preconditionFailure() }
 36 |         self.init(request: request, cachedResponse: cachedResponse, client: client)
/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.
 30 |     }
 31 |
 32 |     public convenience init(task: URLSessionTask,
    |                                   `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 33 |                             cachedResponse: CachedURLResponse?,
 34 |                             client: URLProtocolClient?) {
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionTask = AnyObject
  |                  `- note: 'URLSessionTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolStub.swift:33:45: error: 'CachedURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 31 |
 32 |     public convenience init(task: URLSessionTask,
 33 |                             cachedResponse: CachedURLResponse?,
    |                                             `- error: 'CachedURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 34 |                             client: URLProtocolClient?) {
 35 |         guard let request = task.currentRequest else { preconditionFailure() }
Foundation.CachedURLResponse:2:18: note: 'CachedURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias CachedURLResponse = AnyObject
  |                  `- note: 'CachedURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolStub.swift:40:26: error: method does not override any method from its superclass
 38 |     }
 39 |
 40 |     public override func startLoading() {
    |                          `- error: method does not override any method from its superclass
 41 |         let responseAsset = stubEntry.responseAsset(for: request)
 42 |         do {
/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.
110 |     }
111 |
112 |     private func taskDidChangeState(_ task: URLSessionTask) {
    |                                             `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
113 |         switch task.state {
114 |         case .suspended:
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionTask = AnyObject
  |                  `- note: 'URLSessionTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolStub.swift:123:26: error: method does not override any method from its superclass
121 |     }
122 |
123 |     public override func stopLoading() {
    |                          `- error: method does not override any method from its superclass
124 |         schedules.cancelAll()
125 |         streamReader = nil
/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.
  1 | import Foundation
  2 |
  3 | public class URLProtocolStub: URLProtocol {
    |                               `- error: 'URLProtocol' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
  4 |     private let stubEntry: StubEntry
  5 |     private let schedules: Schedules = Schedules()
Foundation.URLProtocol:2:18: note: 'URLProtocol' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLProtocol = AnyObject
  |                  `- note: 'URLProtocol' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolStub.swift:193:19: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
191 |
192 | private struct ResponseSource {
193 |     let response: URLResponse
    |                   `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
194 |     let bodyStream: InputStream
195 |     let contentRange: ClosedRange<Int>?
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolStub.swift:198:26: error: cannot find type 'URLRequest' in scope
196 |     private let originalResponseAsset: HTTPResponseAsset
197 |     private let currentResponseAsset: HTTPResponseAsset
198 |     private let request: URLRequest
    |                          `- error: cannot find type 'URLRequest' in scope
199 |     private let url: URL
200 |
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolStub.swift:201:19: error: cannot find type 'URLRequest' in scope
199 |     private let url: URL
200 |
201 |     init(request: URLRequest, responseAsset: HTTPResponseAsset) throws {
    |                   `- error: cannot find type 'URLRequest' in scope
202 |         let builder = try ResponseSourceBuilder(request: request, responseAsset: responseAsset)
203 |         self.originalResponseAsset = responseAsset
/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.
210 |     }
211 |
212 |     var httpCookies: [HTTPCookie]? {
    |                       `- error: 'HTTPCookie' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
213 |         guard request.httpShouldHandleCookies else { return nil }
214 |         let headerFields = currentResponseAsset.headerFields
Foundation.HTTPCookie:2:18: note: 'HTTPCookie' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPCookie = AnyObject
  |                  `- note: 'HTTPCookie' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolStub.swift:218:26: error: cannot find type 'URLRequest' in scope
216 |     }
217 |
218 |     var redirectRequest: URLRequest? {
    |                          `- error: cannot find type 'URLRequest' in scope
219 |         guard let redirectURL = currentResponseAsset.redirectURL else { return nil }
220 |         var result = request
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolStub.swift:239:26: error: cannot find type 'URLRequest' in scope
237 |
238 | private class ResponseSourceBuilder {
239 |     private let request: URLRequest
    |                          `- error: cannot find type 'URLRequest' in scope
240 |     private let originalResponseAsset: HTTPResponseAsset
241 |     private(set) var currentResponseAsset: HTTPResponseAsset
/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.
241 |     private(set) var currentResponseAsset: HTTPResponseAsset
242 |     private(set) var url: URL!
243 |     private(set) var response: HTTPURLResponse!
    |                                `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
244 |     private(set) var bodyStream: InputStream!
245 |     private var bodyStreamLength: Int = 0
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
  |                  `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolStub.swift:248:19: error: cannot find type 'URLRequest' in scope
246 |     private(set) var contentRange: ClosedRange<Int>?
247 |
248 |     init(request: URLRequest, responseAsset: HTTPResponseAsset) throws {
    |                   `- error: cannot find type 'URLRequest' in scope
249 |         self.request = request
250 |         self.originalResponseAsset = responseAsset
/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.
356 |     }
357 |
358 |     private func makeResponse() -> HTTPURLResponse? {
    |                                    `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
359 |         return HTTPURLResponse(url: url,
360 |                                statusCode: currentResponseAsset.statusCode,
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
  |                  `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolStub.swift:318:15: warning: type '_' is not optional, value can never be nil; this is an error in the Swift 6 language mode
316 |         case let (requestETag?, responseETag?) where requestETag == responseETag:
317 |             fallthrough
318 |         case (nil, _):
    |               `- warning: type '_' is not optional, value can never be nil; this is an error in the Swift 6 language mode
319 |             let rangeStr = "bytes \(range.lowerBound)-\(range.upperBound)/\(bodyStreamLength)"
320 |             contentRange = range
[12/16] Compiling HTTPMock HTTPMediaType.swift
[13/16] Compiling HTTPMock HTTPMethod.swift
[14/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; this will be an error in a future Swift language mode
 92 | public extension HTTPHeaderFields {
 93 |     init(_ dictionary: [String: String]) {
 94 |         self.init(dictionary.map({ $0 }))
    |                                  `- warning: tuple conversion from '(key: String, value: String)' to '(name: String, value: String)' mismatches labels; this will be an error in a future Swift language mode
 95 |     }
 96 |
[15/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; this will be an error in a future Swift language mode
 92 | public extension HTTPHeaderFields {
 93 |     init(_ dictionary: [String: String]) {
 94 |         self.init(dictionary.map({ $0 }))
    |                                  `- warning: tuple conversion from '(key: String, value: String)' to '(name: String, value: String)' mismatches labels; this will be an error in a future Swift language mode
 95 |     }
 96 |
[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.
  5 |     private let schedules: Schedules = Schedules()
  6 |     private var streamReader: StreamReader?
  7 |     private weak var sessionTask: URLSessionTask?
    |                                   `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
  8 |     private var taskStateKVO: NSKeyValueObservation?
  9 |
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionTask = AnyObject
  |                  `- note: 'URLSessionTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolStub.swift:8:31: error: cannot find type 'NSKeyValueObservation' in scope
  6 |     private var streamReader: StreamReader?
  7 |     private weak var sessionTask: URLSessionTask?
  8 |     private var taskStateKVO: NSKeyValueObservation?
    |                               `- error: cannot find type 'NSKeyValueObservation' in scope
  9 |
 10 |     public override class func canInit(with request: URLRequest) -> Bool {
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolStub.swift:10:54: error: cannot find type 'URLRequest' in scope
  8 |     private var taskStateKVO: NSKeyValueObservation?
  9 |
 10 |     public override class func canInit(with request: URLRequest) -> Bool {
    |                                                      `- error: cannot find type 'URLRequest' in scope
 11 |         return StubRegistry.shared.entry(for: request) != nil
 12 |     }
/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.
 12 |     }
 13 |
 14 |     public override class func canInit(with task: URLSessionTask) -> Bool {
    |                                                   `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 15 |         return task.currentRequest.map({ canInit(with: $0) }) ?? false
 16 |     }
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionTask = AnyObject
  |                  `- note: 'URLSessionTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolStub.swift:14:32: error: method does not override any method from its superclass
 12 |     }
 13 |
 14 |     public override class func canInit(with task: URLSessionTask) -> Bool {
    |                                `- error: method does not override any method from its superclass
 15 |         return task.currentRequest.map({ canInit(with: $0) }) ?? false
 16 |     }
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolStub.swift:18:77: error: cannot find type 'URLRequest' in scope
 16 |     }
 17 |
 18 |     public override class func canonicalRequest(for request: URLRequest) -> URLRequest {
    |                                                                             `- error: cannot find type 'URLRequest' in scope
 19 |         return request
 20 |     }
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolStub.swift:18:62: error: cannot find type 'URLRequest' in scope
 16 |     }
 17 |
 18 |     public override class func canonicalRequest(for request: URLRequest) -> URLRequest {
    |                                                              `- error: cannot find type 'URLRequest' in scope
 19 |         return request
 20 |     }
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolStub.swift:22:35: error: cannot find type 'URLRequest' in scope
 20 |     }
 21 |
 22 |     public override init(request: URLRequest,
    |                                   `- error: cannot find type 'URLRequest' in scope
 23 |                          cachedResponse: CachedURLResponse?,
 24 |                          client: URLProtocolClient?) {
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolStub.swift:24:34: error: cannot find type 'URLProtocolClient' in scope
 22 |     public override init(request: URLRequest,
 23 |                          cachedResponse: CachedURLResponse?,
 24 |                          client: URLProtocolClient?) {
    |                                  `- error: cannot find type 'URLProtocolClient' in scope
 25 |         guard let stubEntry = StubRegistry.shared.entry(for: request) else {
 26 |             preconditionFailure("StubEntry has been unregistered after `canInit(with:)`.")
/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.
 21 |
 22 |     public override init(request: URLRequest,
 23 |                          cachedResponse: CachedURLResponse?,
    |                                          `- error: 'CachedURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 24 |                          client: URLProtocolClient?) {
 25 |         guard let stubEntry = StubRegistry.shared.entry(for: request) else {
Foundation.CachedURLResponse:2:18: note: 'CachedURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias CachedURLResponse = AnyObject
  |                  `- note: 'CachedURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolStub.swift:34:37: error: cannot find type 'URLProtocolClient' in scope
 32 |     public convenience init(task: URLSessionTask,
 33 |                             cachedResponse: CachedURLResponse?,
 34 |                             client: URLProtocolClient?) {
    |                                     `- error: cannot find type 'URLProtocolClient' in scope
 35 |         guard let request = task.currentRequest else { preconditionFailure() }
 36 |         self.init(request: request, cachedResponse: cachedResponse, client: client)
/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.
 30 |     }
 31 |
 32 |     public convenience init(task: URLSessionTask,
    |                                   `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 33 |                             cachedResponse: CachedURLResponse?,
 34 |                             client: URLProtocolClient?) {
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionTask = AnyObject
  |                  `- note: 'URLSessionTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolStub.swift:33:45: error: 'CachedURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 31 |
 32 |     public convenience init(task: URLSessionTask,
 33 |                             cachedResponse: CachedURLResponse?,
    |                                             `- error: 'CachedURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 34 |                             client: URLProtocolClient?) {
 35 |         guard let request = task.currentRequest else { preconditionFailure() }
Foundation.CachedURLResponse:2:18: note: 'CachedURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias CachedURLResponse = AnyObject
  |                  `- note: 'CachedURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolStub.swift:40:26: error: method does not override any method from its superclass
 38 |     }
 39 |
 40 |     public override func startLoading() {
    |                          `- error: method does not override any method from its superclass
 41 |         let responseAsset = stubEntry.responseAsset(for: request)
 42 |         do {
/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.
110 |     }
111 |
112 |     private func taskDidChangeState(_ task: URLSessionTask) {
    |                                             `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
113 |         switch task.state {
114 |         case .suspended:
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionTask = AnyObject
  |                  `- note: 'URLSessionTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolStub.swift:123:26: error: method does not override any method from its superclass
121 |     }
122 |
123 |     public override func stopLoading() {
    |                          `- error: method does not override any method from its superclass
124 |         schedules.cancelAll()
125 |         streamReader = nil
/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.
  1 | import Foundation
  2 |
  3 | public class URLProtocolStub: URLProtocol {
    |                               `- error: 'URLProtocol' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
  4 |     private let stubEntry: StubEntry
  5 |     private let schedules: Schedules = Schedules()
Foundation.URLProtocol:2:18: note: 'URLProtocol' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLProtocol = AnyObject
  |                  `- note: 'URLProtocol' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolStub.swift:193:19: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
191 |
192 | private struct ResponseSource {
193 |     let response: URLResponse
    |                   `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
194 |     let bodyStream: InputStream
195 |     let contentRange: ClosedRange<Int>?
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolStub.swift:198:26: error: cannot find type 'URLRequest' in scope
196 |     private let originalResponseAsset: HTTPResponseAsset
197 |     private let currentResponseAsset: HTTPResponseAsset
198 |     private let request: URLRequest
    |                          `- error: cannot find type 'URLRequest' in scope
199 |     private let url: URL
200 |
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolStub.swift:201:19: error: cannot find type 'URLRequest' in scope
199 |     private let url: URL
200 |
201 |     init(request: URLRequest, responseAsset: HTTPResponseAsset) throws {
    |                   `- error: cannot find type 'URLRequest' in scope
202 |         let builder = try ResponseSourceBuilder(request: request, responseAsset: responseAsset)
203 |         self.originalResponseAsset = responseAsset
/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.
210 |     }
211 |
212 |     var httpCookies: [HTTPCookie]? {
    |                       `- error: 'HTTPCookie' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
213 |         guard request.httpShouldHandleCookies else { return nil }
214 |         let headerFields = currentResponseAsset.headerFields
Foundation.HTTPCookie:2:18: note: 'HTTPCookie' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPCookie = AnyObject
  |                  `- note: 'HTTPCookie' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolStub.swift:218:26: error: cannot find type 'URLRequest' in scope
216 |     }
217 |
218 |     var redirectRequest: URLRequest? {
    |                          `- error: cannot find type 'URLRequest' in scope
219 |         guard let redirectURL = currentResponseAsset.redirectURL else { return nil }
220 |         var result = request
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolStub.swift:239:26: error: cannot find type 'URLRequest' in scope
237 |
238 | private class ResponseSourceBuilder {
239 |     private let request: URLRequest
    |                          `- error: cannot find type 'URLRequest' in scope
240 |     private let originalResponseAsset: HTTPResponseAsset
241 |     private(set) var currentResponseAsset: HTTPResponseAsset
/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.
241 |     private(set) var currentResponseAsset: HTTPResponseAsset
242 |     private(set) var url: URL!
243 |     private(set) var response: HTTPURLResponse!
    |                                `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
244 |     private(set) var bodyStream: InputStream!
245 |     private var bodyStreamLength: Int = 0
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
  |                  `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolStub.swift:248:19: error: cannot find type 'URLRequest' in scope
246 |     private(set) var contentRange: ClosedRange<Int>?
247 |
248 |     init(request: URLRequest, responseAsset: HTTPResponseAsset) throws {
    |                   `- error: cannot find type 'URLRequest' in scope
249 |         self.request = request
250 |         self.originalResponseAsset = responseAsset
/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.
356 |     }
357 |
358 |     private func makeResponse() -> HTTPURLResponse? {
    |                                    `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
359 |         return HTTPURLResponse(url: url,
360 |                                statusCode: currentResponseAsset.statusCode,
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
  |                  `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/HTTPMock/StubRegistry.swift:53:36: error: cannot find type 'URLRequest' in scope
51 |     }
52 |
53 |     public func entry(for request: URLRequest) -> StubEntry? {
   |                                    `- error: cannot find type 'URLRequest' in scope
54 |         return syncQueue.sync(execute: {
55 |             return entries.last(where: { $0.responds(to: request) })
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolStub.swift:15:21: error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'currentRequest'
 13 |
 14 |     public override class func canInit(with task: URLSessionTask) -> Bool {
 15 |         return task.currentRequest.map({ canInit(with: $0) }) ?? false
    |                     `- error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'currentRequest'
 16 |     }
 17 |
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolStub.swift:29:9: error: 'super' cannot be used in class 'URLProtocolStub' because it has no superclass
 27 |         }
 28 |         self.stubEntry = stubEntry
 29 |         super.init(request: request, cachedResponse: nil, client: client)
    |         `- error: 'super' cannot be used in class 'URLProtocolStub' because it has no superclass
 30 |     }
 31 |
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolStub.swift:29:54: error: 'nil' requires a contextual type
 27 |         }
 28 |         self.stubEntry = stubEntry
 29 |         super.init(request: request, cachedResponse: nil, client: client)
    |                                                      `- error: 'nil' requires a contextual type
 30 |     }
 31 |
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolStub.swift:35:34: error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'currentRequest'
 33 |                             cachedResponse: CachedURLResponse?,
 34 |                             client: URLProtocolClient?) {
 35 |         guard let request = task.currentRequest else { preconditionFailure() }
    |                                  `- error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'currentRequest'
 36 |         self.init(request: request, cachedResponse: cachedResponse, client: client)
 37 |         self.sessionTask = task
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolStub.swift:41:58: error: cannot find 'request' in scope
 39 |
 40 |     public override func startLoading() {
 41 |         let responseAsset = stubEntry.responseAsset(for: request)
    |                                                          `- error: cannot find 'request' in scope
 42 |         do {
 43 |             if let error = responseAsset.error {
/host/spi-builder-workspace/Sources/HTTPMock/StubEntry.swift:18:44: error: cannot find type 'URLRequest' in scope
16 |     }
17 |
18 |     public func responseAsset(for request: URLRequest) -> HTTPResponseAsset {
   |                                            `- error: cannot find type 'URLRequest' in scope
19 |         var result = assetProvider(request)
20 |         if result.bodyStreamGenerator != nil && result.headerFields[HTTPHeaderName.eTag] == nil {
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolStub.swift:46:62: error: cannot find 'request' in scope
 44 |                 throw error
 45 |             }
 46 |             let responseSource = try ResponseSource(request: request, responseAsset: responseAsset)
    |                                                              `- error: cannot find 'request' in scope
 47 |             scheduleToResume(with: responseSource)
 48 |         } catch {
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolStub.swift:48:11: warning: 'catch' block is unreachable because no errors are thrown in 'do' block
 46 |             let responseSource = try ResponseSource(request: request, responseAsset: responseAsset)
 47 |             scheduleToResume(with: responseSource)
 48 |         } catch {
    |           `- warning: 'catch' block is unreachable because no errors are thrown in 'do' block
 49 |             scheduleToReportError(error, afterDelay: responseAsset.responseDelay)
 50 |         }
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolStub.swift:63:18: error: value of type 'URLProtocolStub' has no member 'client'
 61 |         schedules.errorReport = Schedule(delay: delay, work: { [weak self] in
 62 |             guard let self = self else { return }
 63 |             self.client?.urlProtocol(self, didFailWithError: error)
    |                  `- error: value of type 'URLProtocolStub' has no member 'client'
 64 |         })
 65 |     }
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolStub.swift:70:63: error: cannot find 'request' in scope
 68 |         func setCookiesIfNeeded() {
 69 |             guard let cookies = responseSource.httpCookies else { return }
 70 |             HTTPCookieStorage.shared.setCookies(cookies, for: request.url,
    |                                                               `- error: cannot find 'request' in scope
 71 |                                                 mainDocumentURL: request.mainDocumentURL)
 72 |         }
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolStub.swift:71:66: error: cannot find 'request' in scope
 69 |             guard let cookies = responseSource.httpCookies else { return }
 70 |             HTTPCookieStorage.shared.setCookies(cookies, for: request.url,
 71 |                                                 mainDocumentURL: request.mainDocumentURL)
    |                                                                  `- error: cannot find 'request' in scope
 72 |         }
 73 |
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolStub.swift:70:31: error: type 'HTTPCookieStorage' (aka 'AnyObject') has no member 'shared'
 68 |         func setCookiesIfNeeded() {
 69 |             guard let cookies = responseSource.httpCookies else { return }
 70 |             HTTPCookieStorage.shared.setCookies(cookies, for: request.url,
    |                               `- error: type 'HTTPCookieStorage' (aka 'AnyObject') has no member 'shared'
 71 |                                                 mainDocumentURL: request.mainDocumentURL)
 72 |         }
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolStub.swift:76:13: error: cannot find 'client' in scope
 74 |         func redirectIfNeeded() {
 75 |             guard let redirectRequest = responseSource.redirectRequest else { return }
 76 |             client?.urlProtocol(self, wasRedirectedTo: redirectRequest,
    |             `- error: cannot find 'client' in scope
 77 |                                 redirectResponse: responseSource.response)
 78 |         }
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolStub.swift:81:13: error: cannot find 'client' in scope
 79 |
 80 |         func sendResponse() {
 81 |             client?.urlProtocol(self, didReceive: responseSource.response,
    |             `- error: cannot find 'client' in scope
 82 |                                 cacheStoragePolicy: .notAllowed)
 83 |         }
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolStub.swift:82:54: error: cannot infer contextual base in reference to member 'notAllowed'
 80 |         func sendResponse() {
 81 |             client?.urlProtocol(self, didReceive: responseSource.response,
 82 |                                 cacheStoragePolicy: .notAllowed)
    |                                                      `- error: cannot infer contextual base in reference to member 'notAllowed'
 83 |         }
 84 |
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolStub.swift:107:37: error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'observe'
105 |
106 |     private func startObservingTaskState() {
107 |         taskStateKVO = sessionTask?.observe(\.state, options: .initial) { [weak self] (task, _) in
    |                                     `- error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'observe'
108 |             self?.taskDidChangeState(task)
109 |         }
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolStub.swift:107:45: error: cannot infer key path type from context; consider explicitly specifying a root type
105 |
106 |     private func startObservingTaskState() {
107 |         taskStateKVO = sessionTask?.observe(\.state, options: .initial) { [weak self] (task, _) in
    |                                             `- error: cannot infer key path type from context; consider explicitly specifying a root type
108 |             self?.taskDidChangeState(task)
109 |         }
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolStub.swift:107:64: error: cannot infer contextual base in reference to member 'initial'
105 |
106 |     private func startObservingTaskState() {
107 |         taskStateKVO = sessionTask?.observe(\.state, options: .initial) { [weak self] (task, _) in
    |                                                                `- error: cannot infer contextual base in reference to member 'initial'
108 |             self?.taskDidChangeState(task)
109 |         }
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolStub.swift:107:94: error: cannot infer type of closure parameter '_' without a type annotation
105 |
106 |     private func startObservingTaskState() {
107 |         taskStateKVO = sessionTask?.observe(\.state, options: .initial) { [weak self] (task, _) in
    |                                                                                              `- error: cannot infer type of closure parameter '_' without a type annotation
108 |             self?.taskDidChangeState(task)
109 |         }
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolStub.swift:113:21: error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'state'
111 |
112 |     private func taskDidChangeState(_ task: URLSessionTask) {
113 |         switch task.state {
    |                     `- error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'state'
114 |         case .suspended:
115 |             streamReader?.suspend()
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolStub.swift:132:9: error: cannot find 'client' in scope
130 | extension URLProtocolStub: StreamReaderDelegate {
131 |     fileprivate func streamReader(_ streamReader: StreamReader, didRead data: Data) {
132 |         client?.urlProtocol(self, didLoad: data)
    |         `- error: cannot find 'client' in scope
133 |     }
134 |
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolStub.swift:137:9: error: cannot find 'client' in scope
135 |     fileprivate func streamReaderDidFinish(_ streamReader: StreamReader) {
136 |         self.streamReader = nil
137 |         client?.urlProtocolDidFinishLoading(self)
    |         `- error: cannot find 'client' in scope
138 |     }
139 |
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolStub.swift:142:9: error: cannot find 'client' in scope
140 |     fileprivate func streamReader(_ streamReader: StreamReader, didFailWithError error: Error) {
141 |         self.streamReader = nil
142 |         client?.urlProtocol(self, didFailWithError: error)
    |         `- error: cannot find 'client' in scope
143 |     }
144 | }
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolStub.swift:215:27: error: type 'HTTPCookie' (aka 'AnyObject') has no member 'cookies'
213 |         guard request.httpShouldHandleCookies else { return nil }
214 |         let headerFields = currentResponseAsset.headerFields
215 |         return HTTPCookie.cookies(withResponseHeaderFields: headerFields.dictionary, for: url)
    |                           `- error: type 'HTTPCookie' (aka 'AnyObject') has no member 'cookies'
216 |     }
217 |
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolStub.swift:318:15: warning: type '_' is not optional, value can never be nil; this is an error in the Swift 6 language mode
316 |         case let (requestETag?, responseETag?) where requestETag == responseETag:
317 |             fallthrough
318 |         case (nil, _):
    |               `- warning: type '_' is not optional, value can never be nil; this is an error in the Swift 6 language mode
319 |             let rangeStr = "bytes \(range.lowerBound)-\(range.upperBound)/\(bodyStreamLength)"
320 |             contentRange = range
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolStub.swift:332:23: warning: 'scanString(_:into:)' is deprecated: renamed to 'scanString(_:)' [#DeprecatedDeclaration]
330 |         // https://developer.mozilla.org/docs/Web/HTTP/Headers/Range
331 |         let scanner = Scanner(string: string)
332 |         guard scanner.scanString("bytes=", into: nil) else { return nil }
    |                       |- warning: 'scanString(_:into:)' is deprecated: renamed to 'scanString(_:)' [#DeprecatedDeclaration]
    |                       `- note: use 'scanString(_:)' instead
333 |
334 |         func scanNumber() -> Int? {
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolStub.swift:341:23: warning: 'scanString(_:into:)' is deprecated: renamed to 'scanString(_:)' [#DeprecatedDeclaration]
339 |
340 |         let lower = scanNumber()
341 |         guard scanner.scanString("-", into: nil) else { return nil }
    |                       |- warning: 'scanString(_:into:)' is deprecated: renamed to 'scanString(_:)' [#DeprecatedDeclaration]
    |                       `- note: use 'scanString(_:)' instead
342 |         let upper = scanNumber()
343 |         guard scanner.isAtEnd 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
357 |
358 |     private func makeResponse() -> HTTPURLResponse? {
359 |         return HTTPURLResponse(url: url,
    |                `- error: 'HTTPURLResponse' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
360 |                                statusCode: currentResponseAsset.statusCode,
361 |                                httpVersion: "HTTP/1.1",
[#DeprecatedDeclaration]: <https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration>
BUILD FAILURE 6.3 linux