The Swift Package Index logo.Swift Package Index

Build Information

Failed to build NetworkSpyKit, reference main (f358ab), with Swift 6.1 for Android on 5 Nov 2025 19:17:55 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4606859-0":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/finestructure/spi-images:android-6.1-latest swift build --swift-sdk aarch64-unknown-linux-android24 2>&1

Build Log

   |                                                                      `- error: cannot find type 'URLRequest' in scope
70 |         return request
71 |     }
/host/spi-builder-workspace/Sources/NetworkSpyKit/InterceptorURLProtocol.swift:69:55: error: cannot find type 'URLRequest' in scope
67 |     }
68 |
69 |     override class func canonicalRequest(for request: URLRequest) -> URLRequest {
   |                                                       `- error: cannot find type 'URLRequest' in scope
70 |         return request
71 |     }
/host/spi-builder-workspace/Sources/NetworkSpyKit/InterceptorURLProtocol.swift:73:19: error: method does not override any method from its superclass
71 |     }
72 |
73 |     override func startLoading() {
   |                   `- error: method does not override any method from its superclass
74 |         do {
75 |             respond(with: try response(for: request))
/host/spi-builder-workspace/Sources/NetworkSpyKit/InterceptorURLProtocol.swift:83:19: error: method does not override any method from its superclass
81 |     }
82 |
83 |     override func stopLoading() {
   |                   `- error: method does not override any method from its superclass
84 |         // No-op
85 |     }
/host/spi-builder-workspace/Sources/NetworkSpyKit/InterceptorURLProtocol.swift:10:37: error: 'URLProtocol' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 8 | import Foundation
 9 |
10 | final class InterceptorURLProtocol: URLProtocol {
   |                                     `- error: 'URLProtocol' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
11 |
12 |     enum Error: Swift.Error {
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/NetworkSpyKit/InterceptorURLProtocol.swift:89:11: error: cannot find type 'URLRequest' in scope
87 |
88 |
89 | extension URLRequest {
   |           `- error: cannot find type 'URLRequest' in scope
90 |
91 |     fileprivate func removedSpyIDHeader() -> Self {
/host/spi-builder-workspace/Sources/NetworkSpyKit/SpyRegistry/SpyRegistry+URLRequest.swift:12:27: error: cannot find type 'URLRequest' in scope
10 | extension SpyRegistry {
11 |
12 |     func spy(for request: URLRequest) -> NetworkSpy? {
   |                           `- error: cannot find type 'URLRequest' in scope
13 |         guard let spyId = spyId(for: request) else {
14 |             return nil
/host/spi-builder-workspace/Sources/NetworkSpyKit/InterceptorURLProtocol.swift:29:40: error: incorrect argument label in call (have 'for:', expected 'byId:')
27 |
28 |     private func spy(for request: URLRequest) throws -> NetworkSpy {
29 |         guard let spy = spyRegistry.spy(for: request) else {
   |                                        `- error: incorrect argument label in call (have 'for:', expected 'byId:')
30 |             throw Error.spyNotFoundForRequest
31 |         }
/host/spi-builder-workspace/Sources/NetworkSpyKit/InterceptorURLProtocol.swift:45:9: error: cannot find 'client' in scope
43 |
44 |     private func respond(with responseData: Data) {
45 |         client?.urlProtocol(self,
   |         `- error: cannot find 'client' in scope
46 |                             didLoad: responseData)
47 |     }
/host/spi-builder-workspace/Sources/NetworkSpyKit/InterceptorURLProtocol.swift:50:9: error: cannot find 'client' in scope
48 |
49 |     private func respond(with response: HTTPURLResponse) {
50 |         client?.urlProtocol(self,
   |         `- error: cannot find 'client' in scope
51 |                             didReceive: response,
52 |                             cacheStoragePolicy: .notAllowed)
/host/spi-builder-workspace/Sources/NetworkSpyKit/InterceptorURLProtocol.swift:52:50: error: cannot infer contextual base in reference to member 'notAllowed'
50 |         client?.urlProtocol(self,
51 |                             didReceive: response,
52 |                             cacheStoragePolicy: .notAllowed)
   |                                                  `- error: cannot infer contextual base in reference to member 'notAllowed'
53 |     }
54 |
/host/spi-builder-workspace/Sources/NetworkSpyKit/InterceptorURLProtocol.swift:56:9: error: cannot find 'client' in scope
54 |
55 |     private func respond(with error: any Swift.Error) {
56 |         client?.urlProtocol(self, didFailWithError: error)
   |         `- error: cannot find 'client' in scope
57 |     }
58 |
/host/spi-builder-workspace/Sources/NetworkSpyKit/InterceptorURLProtocol.swift:60:9: error: cannot find 'client' in scope
58 |
59 |     private func finishLoading() {
60 |         client?.urlProtocolDidFinishLoading(self)
   |         `- error: cannot find 'client' in scope
61 |     }
62 |
/host/spi-builder-workspace/Sources/NetworkSpyKit/InterceptorURLProtocol.swift:75:45: error: cannot find 'request' in scope
73 |     override func startLoading() {
74 |         do {
75 |             respond(with: try response(for: request))
   |                                             `- error: cannot find 'request' in scope
76 |         } catch {
77 |             respond(with: error)
/host/spi-builder-workspace/Sources/NetworkSpyKit/NetworkSpy/NetworkSpy+HTTPURLResponse.swift:14:35: error: cannot find type 'URLRequest' in scope
12 |     typealias Error = InterceptorURLProtocol.Error
13 |
14 |     func response(for urlRequest: URLRequest) throws -> (response: HTTPURLResponse, data: Data?) {
   |                                   `- error: cannot find type 'URLRequest' in scope
15 |         guard urlRequest.url != nil else {
16 |             throw Error.invalidRequestURLMissing
/host/spi-builder-workspace/Sources/NetworkSpyKit/NetworkSpy/NetworkSpy+HTTPURLResponse.swift:14:68: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
12 |     typealias Error = InterceptorURLProtocol.Error
13 |
14 |     func response(for urlRequest: URLRequest) throws -> (response: HTTPURLResponse, data: Data?) {
   |                                                                    `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
15 |         guard urlRequest.url != nil else {
16 |             throw Error.invalidRequestURLMissing
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/NetworkSpyKit/NetworkSpy/NetworkSpy+HTTPURLResponse.swift:26:93: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
24 |     }
25 |
26 |     private func makeHTTPURLResponse(requestURL: URL?, stubbedResponse: StubbedResponse) -> HTTPURLResponse {
   |                                                                                             `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
27 |         guard let requestURL,
28 |               let httpResponse = HTTPURLResponse(url: requestURL,
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/NetworkSpyKit/Request/Request.swift:10:28: error: cannot find type 'URLRequest' in scope
 8 | import Foundation
 9 |
10 | public typealias Request = URLRequest
   |                            `- error: cannot find type 'URLRequest' in scope
11 |
12 | extension URLRequest {
/host/spi-builder-workspace/Sources/NetworkSpyKit/NetworkSpy/NetworkSpy+HTTPURLResponse.swift:28:34: error: 'HTTPURLResponse' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
26 |     private func makeHTTPURLResponse(requestURL: URL?, stubbedResponse: StubbedResponse) -> HTTPURLResponse {
27 |         guard let requestURL,
28 |               let httpResponse = HTTPURLResponse(url: requestURL,
   |                                  `- error: 'HTTPURLResponse' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
29 |                                                  statusCode: stubbedResponse.statusCode,
30 |                                                  httpVersion: nil,
/host/spi-builder-workspace/Sources/NetworkSpyKit/NetworkSpy/NetworkSpy+HTTPURLResponse.swift:30:63: error: 'nil' requires a contextual type
28 |               let httpResponse = HTTPURLResponse(url: requestURL,
29 |                                                  statusCode: stubbedResponse.statusCode,
30 |                                                  httpVersion: nil,
   |                                                               `- error: 'nil' requires a contextual type
31 |                                                  headerFields: stubbedResponse.headers) else {
32 |             // We expect HTTPURLResponse.init to actually never fail.
[25/31] Compiling NetworkSpyKit NetworkSpy.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
/host/spi-builder-workspace/Sources/NetworkSpyKit/Request/Request.swift:10:28: error: cannot find type 'URLRequest' in scope
 8 | import Foundation
 9 |
10 | public typealias Request = URLRequest
   |                            `- error: cannot find type 'URLRequest' in scope
11 |
12 | extension URLRequest {
/host/spi-builder-workspace/Sources/NetworkSpyKit/NetworkSpy/NetworkSpy.swift:34:38: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 32 |     /// augmented with the required interceptor and identification headers.
 33 |     /// Use this to construct a `URLSession` that is intercepted by the spy.
 34 |     public let sessionConfiguration: URLSessionConfiguration
    |                                      `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 35 |
 36 |     /// The currently assigned response provider.
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/NetworkSpyKit/NetworkSpy/NetworkSpy.swift:74:47: error: @escaping attribute only applies to function types
 72 |     ///   - responseProvider: A closure that returns a stubbed response for intercepted requests. Defaults to `.teaPot`.
 73 |     public convenience init(sessionConfiguration: URLSessionConfiguration,
 74 |                             responseProvider: @escaping ResponseProvider = defaultResponse) {
    |                                               `- error: @escaping attribute only applies to function types
 75 |         self.init(sessionConfiguration: sessionConfiguration,
 76 |                   responseProvider: responseProvider,
/host/spi-builder-workspace/Sources/NetworkSpyKit/NetworkSpy/NetworkSpy.swift:73:51: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 71 |     ///   - sessionConfiguration: A template configuration. It will be copied and modified.
 72 |     ///   - responseProvider: A closure that returns a stubbed response for intercepted requests. Defaults to `.teaPot`.
 73 |     public convenience init(sessionConfiguration: URLSessionConfiguration,
    |                                                   `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 74 |                             responseProvider: @escaping ResponseProvider = defaultResponse) {
 75 |         self.init(sessionConfiguration: sessionConfiguration,
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/NetworkSpyKit/NetworkSpy/NetworkSpy.swift:81:28: error: @escaping attribute only applies to function types
 79 |
 80 |     init(sessionConfiguration: URLSessionConfiguration,
 81 |          responseProvider: @escaping ResponseProvider = defaultResponse,
    |                            `- error: @escaping attribute only applies to function types
 82 |          spyRegistry: SpyRegistry) {
 83 |         self.sessionConfiguration = Self.copyConfiguration(sessionConfiguration)
/host/spi-builder-workspace/Sources/NetworkSpyKit/NetworkSpy/NetworkSpy.swift:80:32: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 78 |     }
 79 |
 80 |     init(sessionConfiguration: URLSessionConfiguration,
    |                                `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 81 |          responseProvider: @escaping ResponseProvider = defaultResponse,
 82 |          spyRegistry: SpyRegistry) {
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/NetworkSpyKit/NetworkSpy/NetworkSpy.swift:95:28: error: cannot find type 'URLRequest' in scope
 93 |     }
 94 |
 95 |     func record(_ request: URLRequest) {
    |                            `- error: cannot find type 'URLRequest' in scope
 96 |         requestRecorder.record(request)
 97 |     }
/host/spi-builder-workspace/Sources/NetworkSpyKit/NetworkSpy/NetworkSpy.swift:99:60: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 97 |     }
 98 |
 99 |     private static func copyConfiguration(_ configuration: URLSessionConfiguration) -> URLSessionConfiguration {
    |                                                            `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
100 |         return configuration.copy() as! URLSessionConfiguration
101 |     }
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/NetworkSpyKit/NetworkSpy/NetworkSpy.swift:99:88: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 97 |     }
 98 |
 99 |     private static func copyConfiguration(_ configuration: URLSessionConfiguration) -> URLSessionConfiguration {
    |                                                                                        `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
100 |         return configuration.copy() as! URLSessionConfiguration
101 |     }
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/NetworkSpyKit/NetworkSpy/NetworkSpy.swift:34:16: error: stored property 'sessionConfiguration' of 'Sendable'-conforming class 'NetworkSpy' has non-sendable type 'URLSessionConfiguration' (aka 'AnyObject')
 32 |     /// augmented with the required interceptor and identification headers.
 33 |     /// Use this to construct a `URLSession` that is intercepted by the spy.
 34 |     public let sessionConfiguration: URLSessionConfiguration
    |                `- error: stored property 'sessionConfiguration' of 'Sendable'-conforming class 'NetworkSpy' has non-sendable type 'URLSessionConfiguration' (aka 'AnyObject')
 35 |
 36 |     /// The currently assigned response provider.
/host/spi-builder-workspace/Sources/NetworkSpyKit/NetworkSpy/NetworkSpy.swift:77:33: error: cannot infer contextual base in reference to member 'shared'
 75 |         self.init(sessionConfiguration: sessionConfiguration,
 76 |                   responseProvider: responseProvider,
 77 |                   spyRegistry: .shared)
    |                                 `- error: cannot infer contextual base in reference to member 'shared'
 78 |     }
 79 |
/host/spi-builder-workspace/Sources/NetworkSpyKit/NetworkSpy/NetworkSpy.swift:100:30: error: value of type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'copy'
 98 |
 99 |     private static func copyConfiguration(_ configuration: URLSessionConfiguration) -> URLSessionConfiguration {
100 |         return configuration.copy() as! URLSessionConfiguration
    |                              `- error: value of type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'copy'
101 |     }
102 |
/host/spi-builder-workspace/Sources/NetworkSpyKit/NetworkSpy/NetworkSpy.swift:118:51: error: value of type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'httpAdditionalHeaders'
116 |
117 |     private func bindConfigurationToSpy() {
118 |         var sessionHeaders = sessionConfiguration.httpAdditionalHeaders ?? [:]
    |                                                   `- error: value of type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'httpAdditionalHeaders'
119 |         sessionHeaders[Self.headerKey] = id
120 |         sessionConfiguration.httpAdditionalHeaders = sessionHeaders
/host/spi-builder-workspace/Sources/NetworkSpyKit/NetworkSpy/NetworkSpy.swift:120:30: error: value of type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'httpAdditionalHeaders'
118 |         var sessionHeaders = sessionConfiguration.httpAdditionalHeaders ?? [:]
119 |         sessionHeaders[Self.headerKey] = id
120 |         sessionConfiguration.httpAdditionalHeaders = sessionHeaders
    |                              `- error: value of type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'httpAdditionalHeaders'
121 |     }
122 |
/host/spi-builder-workspace/Sources/NetworkSpyKit/NetworkSpy/NetworkSpy.swift:124:30: error: value of type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'protocolClasses'
122 |
123 |     private func installInterceptorOnConfiguration() {
124 |         sessionConfiguration.protocolClasses = [InterceptorURLProtocol.self]
    |                              `- error: value of type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'protocolClasses'
125 |     }
126 | }
/host/spi-builder-workspace/Sources/NetworkSpyKit/Request/Request.swift:12:11: error: cannot find type 'URLRequest' in scope
10 | public typealias Request = URLRequest
11 |
12 | extension URLRequest {
   |           `- error: cannot find type 'URLRequest' in scope
13 |
14 |     /// Creates a new URLRequest with common HTTP configuration options.
/host/spi-builder-workspace/Sources/NetworkSpyKit/Request/URLRequest+ResolveHTTPBodyStream.swift:10:11: error: cannot find type 'URLRequest' in scope
 8 | import Foundation
 9 |
10 | extension URLRequest {
   |           `- error: cannot find type 'URLRequest' in scope
11 |
12 |     /// Returns the resolved HTTP body data of the request.
[26/31] Compiling NetworkSpyKit NetworkSpyKit.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
/host/spi-builder-workspace/Sources/NetworkSpyKit/Request/Request.swift:10:28: error: cannot find type 'URLRequest' in scope
 8 | import Foundation
 9 |
10 | public typealias Request = URLRequest
   |                            `- error: cannot find type 'URLRequest' in scope
11 |
12 | extension URLRequest {
/host/spi-builder-workspace/Sources/NetworkSpyKit/NetworkSpy/NetworkSpy.swift:34:38: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 32 |     /// augmented with the required interceptor and identification headers.
 33 |     /// Use this to construct a `URLSession` that is intercepted by the spy.
 34 |     public let sessionConfiguration: URLSessionConfiguration
    |                                      `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 35 |
 36 |     /// The currently assigned response provider.
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/NetworkSpyKit/NetworkSpy/NetworkSpy.swift:74:47: error: @escaping attribute only applies to function types
 72 |     ///   - responseProvider: A closure that returns a stubbed response for intercepted requests. Defaults to `.teaPot`.
 73 |     public convenience init(sessionConfiguration: URLSessionConfiguration,
 74 |                             responseProvider: @escaping ResponseProvider = defaultResponse) {
    |                                               `- error: @escaping attribute only applies to function types
 75 |         self.init(sessionConfiguration: sessionConfiguration,
 76 |                   responseProvider: responseProvider,
/host/spi-builder-workspace/Sources/NetworkSpyKit/NetworkSpy/NetworkSpy.swift:73:51: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 71 |     ///   - sessionConfiguration: A template configuration. It will be copied and modified.
 72 |     ///   - responseProvider: A closure that returns a stubbed response for intercepted requests. Defaults to `.teaPot`.
 73 |     public convenience init(sessionConfiguration: URLSessionConfiguration,
    |                                                   `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 74 |                             responseProvider: @escaping ResponseProvider = defaultResponse) {
 75 |         self.init(sessionConfiguration: sessionConfiguration,
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/NetworkSpyKit/NetworkSpy/NetworkSpy.swift:81:28: error: @escaping attribute only applies to function types
 79 |
 80 |     init(sessionConfiguration: URLSessionConfiguration,
 81 |          responseProvider: @escaping ResponseProvider = defaultResponse,
    |                            `- error: @escaping attribute only applies to function types
 82 |          spyRegistry: SpyRegistry) {
 83 |         self.sessionConfiguration = Self.copyConfiguration(sessionConfiguration)
/host/spi-builder-workspace/Sources/NetworkSpyKit/NetworkSpy/NetworkSpy.swift:80:32: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 78 |     }
 79 |
 80 |     init(sessionConfiguration: URLSessionConfiguration,
    |                                `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 81 |          responseProvider: @escaping ResponseProvider = defaultResponse,
 82 |          spyRegistry: SpyRegistry) {
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/NetworkSpyKit/NetworkSpy/NetworkSpy.swift:95:28: error: cannot find type 'URLRequest' in scope
 93 |     }
 94 |
 95 |     func record(_ request: URLRequest) {
    |                            `- error: cannot find type 'URLRequest' in scope
 96 |         requestRecorder.record(request)
 97 |     }
/host/spi-builder-workspace/Sources/NetworkSpyKit/NetworkSpy/NetworkSpy.swift:99:60: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 97 |     }
 98 |
 99 |     private static func copyConfiguration(_ configuration: URLSessionConfiguration) -> URLSessionConfiguration {
    |                                                            `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
100 |         return configuration.copy() as! URLSessionConfiguration
101 |     }
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/NetworkSpyKit/NetworkSpy/NetworkSpy.swift:99:88: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 97 |     }
 98 |
 99 |     private static func copyConfiguration(_ configuration: URLSessionConfiguration) -> URLSessionConfiguration {
    |                                                                                        `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
100 |         return configuration.copy() as! URLSessionConfiguration
101 |     }
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/NetworkSpyKit/NetworkSpy/NetworkSpy.swift:34:16: error: stored property 'sessionConfiguration' of 'Sendable'-conforming class 'NetworkSpy' has non-sendable type 'URLSessionConfiguration' (aka 'AnyObject')
 32 |     /// augmented with the required interceptor and identification headers.
 33 |     /// Use this to construct a `URLSession` that is intercepted by the spy.
 34 |     public let sessionConfiguration: URLSessionConfiguration
    |                `- error: stored property 'sessionConfiguration' of 'Sendable'-conforming class 'NetworkSpy' has non-sendable type 'URLSessionConfiguration' (aka 'AnyObject')
 35 |
 36 |     /// The currently assigned response provider.
/host/spi-builder-workspace/Sources/NetworkSpyKit/NetworkSpy/NetworkSpy.swift:77:33: error: cannot infer contextual base in reference to member 'shared'
 75 |         self.init(sessionConfiguration: sessionConfiguration,
 76 |                   responseProvider: responseProvider,
 77 |                   spyRegistry: .shared)
    |                                 `- error: cannot infer contextual base in reference to member 'shared'
 78 |     }
 79 |
/host/spi-builder-workspace/Sources/NetworkSpyKit/NetworkSpy/NetworkSpy.swift:100:30: error: value of type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'copy'
 98 |
 99 |     private static func copyConfiguration(_ configuration: URLSessionConfiguration) -> URLSessionConfiguration {
100 |         return configuration.copy() as! URLSessionConfiguration
    |                              `- error: value of type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'copy'
101 |     }
102 |
/host/spi-builder-workspace/Sources/NetworkSpyKit/NetworkSpy/NetworkSpy.swift:118:51: error: value of type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'httpAdditionalHeaders'
116 |
117 |     private func bindConfigurationToSpy() {
118 |         var sessionHeaders = sessionConfiguration.httpAdditionalHeaders ?? [:]
    |                                                   `- error: value of type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'httpAdditionalHeaders'
119 |         sessionHeaders[Self.headerKey] = id
120 |         sessionConfiguration.httpAdditionalHeaders = sessionHeaders
/host/spi-builder-workspace/Sources/NetworkSpyKit/NetworkSpy/NetworkSpy.swift:120:30: error: value of type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'httpAdditionalHeaders'
118 |         var sessionHeaders = sessionConfiguration.httpAdditionalHeaders ?? [:]
119 |         sessionHeaders[Self.headerKey] = id
120 |         sessionConfiguration.httpAdditionalHeaders = sessionHeaders
    |                              `- error: value of type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'httpAdditionalHeaders'
121 |     }
122 |
/host/spi-builder-workspace/Sources/NetworkSpyKit/NetworkSpy/NetworkSpy.swift:124:30: error: value of type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'protocolClasses'
122 |
123 |     private func installInterceptorOnConfiguration() {
124 |         sessionConfiguration.protocolClasses = [InterceptorURLProtocol.self]
    |                              `- error: value of type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'protocolClasses'
125 |     }
126 | }
/host/spi-builder-workspace/Sources/NetworkSpyKit/Request/Request.swift:12:11: error: cannot find type 'URLRequest' in scope
10 | public typealias Request = URLRequest
11 |
12 | extension URLRequest {
   |           `- error: cannot find type 'URLRequest' in scope
13 |
14 |     /// Creates a new URLRequest with common HTTP configuration options.
/host/spi-builder-workspace/Sources/NetworkSpyKit/Request/URLRequest+ResolveHTTPBodyStream.swift:10:11: error: cannot find type 'URLRequest' in scope
 8 | import Foundation
 9 |
10 | extension URLRequest {
   |           `- error: cannot find type 'URLRequest' in scope
11 |
12 |     /// Returns the resolved HTTP body data of the request.
[27/31] Compiling NetworkSpyKit Request.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
/host/spi-builder-workspace/Sources/NetworkSpyKit/Request/Request.swift:10:28: error: cannot find type 'URLRequest' in scope
 8 | import Foundation
 9 |
10 | public typealias Request = URLRequest
   |                            `- error: cannot find type 'URLRequest' in scope
11 |
12 | extension URLRequest {
/host/spi-builder-workspace/Sources/NetworkSpyKit/NetworkSpy/NetworkSpy.swift:34:38: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 32 |     /// augmented with the required interceptor and identification headers.
 33 |     /// Use this to construct a `URLSession` that is intercepted by the spy.
 34 |     public let sessionConfiguration: URLSessionConfiguration
    |                                      `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 35 |
 36 |     /// The currently assigned response provider.
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/NetworkSpyKit/NetworkSpy/NetworkSpy.swift:74:47: error: @escaping attribute only applies to function types
 72 |     ///   - responseProvider: A closure that returns a stubbed response for intercepted requests. Defaults to `.teaPot`.
 73 |     public convenience init(sessionConfiguration: URLSessionConfiguration,
 74 |                             responseProvider: @escaping ResponseProvider = defaultResponse) {
    |                                               `- error: @escaping attribute only applies to function types
 75 |         self.init(sessionConfiguration: sessionConfiguration,
 76 |                   responseProvider: responseProvider,
/host/spi-builder-workspace/Sources/NetworkSpyKit/NetworkSpy/NetworkSpy.swift:73:51: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 71 |     ///   - sessionConfiguration: A template configuration. It will be copied and modified.
 72 |     ///   - responseProvider: A closure that returns a stubbed response for intercepted requests. Defaults to `.teaPot`.
 73 |     public convenience init(sessionConfiguration: URLSessionConfiguration,
    |                                                   `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 74 |                             responseProvider: @escaping ResponseProvider = defaultResponse) {
 75 |         self.init(sessionConfiguration: sessionConfiguration,
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/NetworkSpyKit/NetworkSpy/NetworkSpy.swift:81:28: error: @escaping attribute only applies to function types
 79 |
 80 |     init(sessionConfiguration: URLSessionConfiguration,
 81 |          responseProvider: @escaping ResponseProvider = defaultResponse,
    |                            `- error: @escaping attribute only applies to function types
 82 |          spyRegistry: SpyRegistry) {
 83 |         self.sessionConfiguration = Self.copyConfiguration(sessionConfiguration)
/host/spi-builder-workspace/Sources/NetworkSpyKit/NetworkSpy/NetworkSpy.swift:80:32: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 78 |     }
 79 |
 80 |     init(sessionConfiguration: URLSessionConfiguration,
    |                                `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 81 |          responseProvider: @escaping ResponseProvider = defaultResponse,
 82 |          spyRegistry: SpyRegistry) {
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/NetworkSpyKit/NetworkSpy/NetworkSpy.swift:95:28: error: cannot find type 'URLRequest' in scope
 93 |     }
 94 |
 95 |     func record(_ request: URLRequest) {
    |                            `- error: cannot find type 'URLRequest' in scope
 96 |         requestRecorder.record(request)
 97 |     }
/host/spi-builder-workspace/Sources/NetworkSpyKit/NetworkSpy/NetworkSpy.swift:99:60: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 97 |     }
 98 |
 99 |     private static func copyConfiguration(_ configuration: URLSessionConfiguration) -> URLSessionConfiguration {
    |                                                            `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
100 |         return configuration.copy() as! URLSessionConfiguration
101 |     }
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/NetworkSpyKit/NetworkSpy/NetworkSpy.swift:99:88: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 97 |     }
 98 |
 99 |     private static func copyConfiguration(_ configuration: URLSessionConfiguration) -> URLSessionConfiguration {
    |                                                                                        `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
100 |         return configuration.copy() as! URLSessionConfiguration
101 |     }
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/NetworkSpyKit/NetworkSpy/NetworkSpy.swift:34:16: error: stored property 'sessionConfiguration' of 'Sendable'-conforming class 'NetworkSpy' has non-sendable type 'URLSessionConfiguration' (aka 'AnyObject')
 32 |     /// augmented with the required interceptor and identification headers.
 33 |     /// Use this to construct a `URLSession` that is intercepted by the spy.
 34 |     public let sessionConfiguration: URLSessionConfiguration
    |                `- error: stored property 'sessionConfiguration' of 'Sendable'-conforming class 'NetworkSpy' has non-sendable type 'URLSessionConfiguration' (aka 'AnyObject')
 35 |
 36 |     /// The currently assigned response provider.
/host/spi-builder-workspace/Sources/NetworkSpyKit/NetworkSpy/NetworkSpy.swift:77:33: error: cannot infer contextual base in reference to member 'shared'
 75 |         self.init(sessionConfiguration: sessionConfiguration,
 76 |                   responseProvider: responseProvider,
 77 |                   spyRegistry: .shared)
    |                                 `- error: cannot infer contextual base in reference to member 'shared'
 78 |     }
 79 |
/host/spi-builder-workspace/Sources/NetworkSpyKit/NetworkSpy/NetworkSpy.swift:100:30: error: value of type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'copy'
 98 |
 99 |     private static func copyConfiguration(_ configuration: URLSessionConfiguration) -> URLSessionConfiguration {
100 |         return configuration.copy() as! URLSessionConfiguration
    |                              `- error: value of type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'copy'
101 |     }
102 |
/host/spi-builder-workspace/Sources/NetworkSpyKit/NetworkSpy/NetworkSpy.swift:118:51: error: value of type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'httpAdditionalHeaders'
116 |
117 |     private func bindConfigurationToSpy() {
118 |         var sessionHeaders = sessionConfiguration.httpAdditionalHeaders ?? [:]
    |                                                   `- error: value of type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'httpAdditionalHeaders'
119 |         sessionHeaders[Self.headerKey] = id
120 |         sessionConfiguration.httpAdditionalHeaders = sessionHeaders
/host/spi-builder-workspace/Sources/NetworkSpyKit/NetworkSpy/NetworkSpy.swift:120:30: error: value of type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'httpAdditionalHeaders'
118 |         var sessionHeaders = sessionConfiguration.httpAdditionalHeaders ?? [:]
119 |         sessionHeaders[Self.headerKey] = id
120 |         sessionConfiguration.httpAdditionalHeaders = sessionHeaders
    |                              `- error: value of type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'httpAdditionalHeaders'
121 |     }
122 |
/host/spi-builder-workspace/Sources/NetworkSpyKit/NetworkSpy/NetworkSpy.swift:124:30: error: value of type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'protocolClasses'
122 |
123 |     private func installInterceptorOnConfiguration() {
124 |         sessionConfiguration.protocolClasses = [InterceptorURLProtocol.self]
    |                              `- error: value of type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'protocolClasses'
125 |     }
126 | }
/host/spi-builder-workspace/Sources/NetworkSpyKit/Request/Request.swift:12:11: error: cannot find type 'URLRequest' in scope
10 | public typealias Request = URLRequest
11 |
12 | extension URLRequest {
   |           `- error: cannot find type 'URLRequest' in scope
13 |
14 |     /// Creates a new URLRequest with common HTTP configuration options.
/host/spi-builder-workspace/Sources/NetworkSpyKit/Request/URLRequest+ResolveHTTPBodyStream.swift:10:11: error: cannot find type 'URLRequest' in scope
 8 | import Foundation
 9 |
10 | extension URLRequest {
   |           `- error: cannot find type 'URLRequest' in scope
11 |
12 |     /// Returns the resolved HTTP body data of the request.
[28/31] Compiling NetworkSpyKit URLRequest+ResolveHTTPBodyStream.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
/host/spi-builder-workspace/Sources/NetworkSpyKit/Request/Request.swift:10:28: error: cannot find type 'URLRequest' in scope
 8 | import Foundation
 9 |
10 | public typealias Request = URLRequest
   |                            `- error: cannot find type 'URLRequest' in scope
11 |
12 | extension URLRequest {
/host/spi-builder-workspace/Sources/NetworkSpyKit/NetworkSpy/NetworkSpy.swift:34:38: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 32 |     /// augmented with the required interceptor and identification headers.
 33 |     /// Use this to construct a `URLSession` that is intercepted by the spy.
 34 |     public let sessionConfiguration: URLSessionConfiguration
    |                                      `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 35 |
 36 |     /// The currently assigned response provider.
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/NetworkSpyKit/NetworkSpy/NetworkSpy.swift:74:47: error: @escaping attribute only applies to function types
 72 |     ///   - responseProvider: A closure that returns a stubbed response for intercepted requests. Defaults to `.teaPot`.
 73 |     public convenience init(sessionConfiguration: URLSessionConfiguration,
 74 |                             responseProvider: @escaping ResponseProvider = defaultResponse) {
    |                                               `- error: @escaping attribute only applies to function types
 75 |         self.init(sessionConfiguration: sessionConfiguration,
 76 |                   responseProvider: responseProvider,
/host/spi-builder-workspace/Sources/NetworkSpyKit/NetworkSpy/NetworkSpy.swift:73:51: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 71 |     ///   - sessionConfiguration: A template configuration. It will be copied and modified.
 72 |     ///   - responseProvider: A closure that returns a stubbed response for intercepted requests. Defaults to `.teaPot`.
 73 |     public convenience init(sessionConfiguration: URLSessionConfiguration,
    |                                                   `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 74 |                             responseProvider: @escaping ResponseProvider = defaultResponse) {
 75 |         self.init(sessionConfiguration: sessionConfiguration,
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/NetworkSpyKit/NetworkSpy/NetworkSpy.swift:81:28: error: @escaping attribute only applies to function types
 79 |
 80 |     init(sessionConfiguration: URLSessionConfiguration,
 81 |          responseProvider: @escaping ResponseProvider = defaultResponse,
    |                            `- error: @escaping attribute only applies to function types
 82 |          spyRegistry: SpyRegistry) {
 83 |         self.sessionConfiguration = Self.copyConfiguration(sessionConfiguration)
/host/spi-builder-workspace/Sources/NetworkSpyKit/NetworkSpy/NetworkSpy.swift:80:32: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 78 |     }
 79 |
 80 |     init(sessionConfiguration: URLSessionConfiguration,
    |                                `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 81 |          responseProvider: @escaping ResponseProvider = defaultResponse,
 82 |          spyRegistry: SpyRegistry) {
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/NetworkSpyKit/NetworkSpy/NetworkSpy.swift:95:28: error: cannot find type 'URLRequest' in scope
 93 |     }
 94 |
 95 |     func record(_ request: URLRequest) {
    |                            `- error: cannot find type 'URLRequest' in scope
 96 |         requestRecorder.record(request)
 97 |     }
/host/spi-builder-workspace/Sources/NetworkSpyKit/NetworkSpy/NetworkSpy.swift:99:60: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 97 |     }
 98 |
 99 |     private static func copyConfiguration(_ configuration: URLSessionConfiguration) -> URLSessionConfiguration {
    |                                                            `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
100 |         return configuration.copy() as! URLSessionConfiguration
101 |     }
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/NetworkSpyKit/NetworkSpy/NetworkSpy.swift:99:88: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 97 |     }
 98 |
 99 |     private static func copyConfiguration(_ configuration: URLSessionConfiguration) -> URLSessionConfiguration {
    |                                                                                        `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
100 |         return configuration.copy() as! URLSessionConfiguration
101 |     }
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/NetworkSpyKit/NetworkSpy/NetworkSpy.swift:34:16: error: stored property 'sessionConfiguration' of 'Sendable'-conforming class 'NetworkSpy' has non-sendable type 'URLSessionConfiguration' (aka 'AnyObject')
 32 |     /// augmented with the required interceptor and identification headers.
 33 |     /// Use this to construct a `URLSession` that is intercepted by the spy.
 34 |     public let sessionConfiguration: URLSessionConfiguration
    |                `- error: stored property 'sessionConfiguration' of 'Sendable'-conforming class 'NetworkSpy' has non-sendable type 'URLSessionConfiguration' (aka 'AnyObject')
 35 |
 36 |     /// The currently assigned response provider.
/host/spi-builder-workspace/Sources/NetworkSpyKit/NetworkSpy/NetworkSpy.swift:77:33: error: cannot infer contextual base in reference to member 'shared'
 75 |         self.init(sessionConfiguration: sessionConfiguration,
 76 |                   responseProvider: responseProvider,
 77 |                   spyRegistry: .shared)
    |                                 `- error: cannot infer contextual base in reference to member 'shared'
 78 |     }
 79 |
/host/spi-builder-workspace/Sources/NetworkSpyKit/NetworkSpy/NetworkSpy.swift:100:30: error: value of type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'copy'
 98 |
 99 |     private static func copyConfiguration(_ configuration: URLSessionConfiguration) -> URLSessionConfiguration {
100 |         return configuration.copy() as! URLSessionConfiguration
    |                              `- error: value of type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'copy'
101 |     }
102 |
/host/spi-builder-workspace/Sources/NetworkSpyKit/NetworkSpy/NetworkSpy.swift:118:51: error: value of type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'httpAdditionalHeaders'
116 |
117 |     private func bindConfigurationToSpy() {
118 |         var sessionHeaders = sessionConfiguration.httpAdditionalHeaders ?? [:]
    |                                                   `- error: value of type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'httpAdditionalHeaders'
119 |         sessionHeaders[Self.headerKey] = id
120 |         sessionConfiguration.httpAdditionalHeaders = sessionHeaders
/host/spi-builder-workspace/Sources/NetworkSpyKit/NetworkSpy/NetworkSpy.swift:120:30: error: value of type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'httpAdditionalHeaders'
118 |         var sessionHeaders = sessionConfiguration.httpAdditionalHeaders ?? [:]
119 |         sessionHeaders[Self.headerKey] = id
120 |         sessionConfiguration.httpAdditionalHeaders = sessionHeaders
    |                              `- error: value of type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'httpAdditionalHeaders'
121 |     }
122 |
/host/spi-builder-workspace/Sources/NetworkSpyKit/NetworkSpy/NetworkSpy.swift:124:30: error: value of type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'protocolClasses'
122 |
123 |     private func installInterceptorOnConfiguration() {
124 |         sessionConfiguration.protocolClasses = [InterceptorURLProtocol.self]
    |                              `- error: value of type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'protocolClasses'
125 |     }
126 | }
/host/spi-builder-workspace/Sources/NetworkSpyKit/Request/Request.swift:12:11: error: cannot find type 'URLRequest' in scope
10 | public typealias Request = URLRequest
11 |
12 | extension URLRequest {
   |           `- error: cannot find type 'URLRequest' in scope
13 |
14 |     /// Creates a new URLRequest with common HTTP configuration options.
/host/spi-builder-workspace/Sources/NetworkSpyKit/Request/URLRequest+ResolveHTTPBodyStream.swift:10:11: error: cannot find type 'URLRequest' in scope
 8 | import Foundation
 9 |
10 | extension URLRequest {
   |           `- error: cannot find type 'URLRequest' in scope
11 |
12 |     /// Returns the resolved HTTP body data of the request.
[29/31] Compiling NetworkSpyKit StubbedResponse.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
/host/spi-builder-workspace/Sources/NetworkSpyKit/Request/Request.swift:10:28: error: cannot find type 'URLRequest' in scope
 8 | import Foundation
 9 |
10 | public typealias Request = URLRequest
   |                            `- error: cannot find type 'URLRequest' in scope
11 |
12 | extension URLRequest {
[30/31] Compiling NetworkSpyKit SafeResponseStore.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
/host/spi-builder-workspace/Sources/NetworkSpyKit/Request/Request.swift:10:28: error: cannot find type 'URLRequest' in scope
 8 | import Foundation
 9 |
10 | public typealias Request = URLRequest
   |                            `- error: cannot find type 'URLRequest' in scope
11 |
12 | extension URLRequest {
[31/31] Compiling NetworkSpyKit SafeValueStore.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
/host/spi-builder-workspace/Sources/NetworkSpyKit/Request/Request.swift:10:28: error: cannot find type 'URLRequest' in scope
 8 | import Foundation
 9 |
10 | public typealias Request = URLRequest
   |                            `- error: cannot find type 'URLRequest' in scope
11 |
12 | extension URLRequest {
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-0":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/finestructure/spi-images:android-6.1-latest swift build --swift-sdk aarch64-unknown-linux-android24 2>&1
android-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:496d77b037d0552dd779110e0d7093275ebb8376a63c7a364a5a4acca11a4ff5
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:android-6.1-latest
[0/1] Planning build
Building for debugging...
[0/1] Write swift-version-24593BA9C3E375BF.txt
[2/27] Compiling NetworkSpyKit StubbedResponse.swift
/host/spi-builder-workspace/Sources/NetworkSpyKit/Request/Request.swift:10:28: error: cannot find type 'URLRequest' in scope
 8 | import Foundation
 9 |
10 | public typealias Request = URLRequest
   |                            `- error: cannot find type 'URLRequest' in scope
11 |
12 | extension URLRequest {
[3/27] Compiling NetworkSpyKit SafeResponseStore.swift
/host/spi-builder-workspace/Sources/NetworkSpyKit/Request/Request.swift:10:28: error: cannot find type 'URLRequest' in scope
 8 | import Foundation
 9 |
10 | public typealias Request = URLRequest
   |                            `- error: cannot find type 'URLRequest' in scope
11 |
12 | extension URLRequest {
[4/27] Compiling NetworkSpyKit SafeValueStore.swift
/host/spi-builder-workspace/Sources/NetworkSpyKit/Request/Request.swift:10:28: error: cannot find type 'URLRequest' in scope
 8 | import Foundation
 9 |
10 | public typealias Request = URLRequest
   |                            `- error: cannot find type 'URLRequest' in scope
11 |
12 | extension URLRequest {
[5/27] Compiling NetworkSpyKit RequestRecorder.swift
/host/spi-builder-workspace/Sources/NetworkSpyKit/Request/Request.swift:10:28: error: cannot find type 'URLRequest' in scope
 8 | import Foundation
 9 |
10 | public typealias Request = URLRequest
   |                            `- error: cannot find type 'URLRequest' in scope
11 |
12 | extension URLRequest {
[6/27] Compiling NetworkSpyKit StubResponse+JSON.swift
/host/spi-builder-workspace/Sources/NetworkSpyKit/Request/Request.swift:10:28: error: cannot find type 'URLRequest' in scope
 8 | import Foundation
 9 |
10 | public typealias Request = URLRequest
   |                            `- error: cannot find type 'URLRequest' in scope
11 |
12 | extension URLRequest {
[7/27] Compiling NetworkSpyKit StubbedResponse+2xx.swift
/host/spi-builder-workspace/Sources/NetworkSpyKit/Request/Request.swift:10:28: error: cannot find type 'URLRequest' in scope
 8 | import Foundation
 9 |
10 | public typealias Request = URLRequest
   |                            `- error: cannot find type 'URLRequest' in scope
11 |
12 | extension URLRequest {
[8/30] Compiling NetworkSpyKit MessageStringParts.swift
/host/spi-builder-workspace/Sources/NetworkSpyKit/InterceptorURLProtocol.swift:19:40: error: cannot find type 'URLRequest' in scope
17 |     var spyRegistry: SpyRegistry = .shared
18 |
19 |     private func response(for request: URLRequest) throws -> (response: HTTPURLResponse, data: Data?) {
   |                                        `- error: cannot find type 'URLRequest' in scope
20 |         let spy = try spy(for: request)
21 |
/host/spi-builder-workspace/Sources/NetworkSpyKit/InterceptorURLProtocol.swift:19:73: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
17 |     var spyRegistry: SpyRegistry = .shared
18 |
19 |     private func response(for request: URLRequest) throws -> (response: HTTPURLResponse, data: Data?) {
   |                                                                         `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
20 |         let spy = try spy(for: request)
21 |
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/NetworkSpyKit/InterceptorURLProtocol.swift:28:35: error: cannot find type 'URLRequest' in scope
26 |     }
27 |
28 |     private func spy(for request: URLRequest) throws -> NetworkSpy {
   |                                   `- error: cannot find type 'URLRequest' in scope
29 |         guard let spy = spyRegistry.spy(for: request) else {
30 |             throw Error.spyNotFoundForRequest
/host/spi-builder-workspace/Sources/NetworkSpyKit/InterceptorURLProtocol.swift:36:52: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
34 |     }
35 |
36 |     private func respond(with response: (response: HTTPURLResponse, data: Data?)) {
   |                                                    `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
37 |         respond(with: response.response)
38 |
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/NetworkSpyKit/InterceptorURLProtocol.swift:49:41: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
47 |     }
48 |
49 |     private func respond(with response: HTTPURLResponse) {
   |                                         `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
50 |         client?.urlProtocol(self,
51 |                             didReceive: response,
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/NetworkSpyKit/InterceptorURLProtocol.swift:65:47: error: cannot find type 'URLRequest' in scope
63 |     // MARK: - URLProtocol
64 |
65 |     override class func canInit(with request: URLRequest) -> Bool {
   |                                               `- error: cannot find type 'URLRequest' in scope
66 |         true
67 |     }
/host/spi-builder-workspace/Sources/NetworkSpyKit/InterceptorURLProtocol.swift:69:70: error: cannot find type 'URLRequest' in scope
67 |     }
68 |
69 |     override class func canonicalRequest(for request: URLRequest) -> URLRequest {
   |                                                                      `- error: cannot find type 'URLRequest' in scope
70 |         return request
71 |     }
/host/spi-builder-workspace/Sources/NetworkSpyKit/InterceptorURLProtocol.swift:69:55: error: cannot find type 'URLRequest' in scope
67 |     }
68 |
69 |     override class func canonicalRequest(for request: URLRequest) -> URLRequest {
   |                                                       `- error: cannot find type 'URLRequest' in scope
70 |         return request
71 |     }
/host/spi-builder-workspace/Sources/NetworkSpyKit/InterceptorURLProtocol.swift:73:19: error: method does not override any method from its superclass
71 |     }
72 |
73 |     override func startLoading() {
   |                   `- error: method does not override any method from its superclass
74 |         do {
75 |             respond(with: try response(for: request))
/host/spi-builder-workspace/Sources/NetworkSpyKit/InterceptorURLProtocol.swift:83:19: error: method does not override any method from its superclass
81 |     }
82 |
83 |     override func stopLoading() {
   |                   `- error: method does not override any method from its superclass
84 |         // No-op
85 |     }
/host/spi-builder-workspace/Sources/NetworkSpyKit/InterceptorURLProtocol.swift:10:37: error: 'URLProtocol' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 8 | import Foundation
 9 |
10 | final class InterceptorURLProtocol: URLProtocol {
   |                                     `- error: 'URLProtocol' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
11 |
12 |     enum Error: Swift.Error {
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/NetworkSpyKit/InterceptorURLProtocol.swift:89:11: error: cannot find type 'URLRequest' in scope
87 |
88 |
89 | extension URLRequest {
   |           `- error: cannot find type 'URLRequest' in scope
90 |
91 |     fileprivate func removedSpyIDHeader() -> Self {
/host/spi-builder-workspace/Sources/NetworkSpyKit/SpyRegistry/SpyRegistry+URLRequest.swift:12:27: error: cannot find type 'URLRequest' in scope
10 | extension SpyRegistry {
11 |
12 |     func spy(for request: URLRequest) -> NetworkSpy? {
   |                           `- error: cannot find type 'URLRequest' in scope
13 |         guard let spyId = spyId(for: request) else {
14 |             return nil
/host/spi-builder-workspace/Sources/NetworkSpyKit/InterceptorURLProtocol.swift:29:40: error: incorrect argument label in call (have 'for:', expected 'byId:')
27 |
28 |     private func spy(for request: URLRequest) throws -> NetworkSpy {
29 |         guard let spy = spyRegistry.spy(for: request) else {
   |                                        `- error: incorrect argument label in call (have 'for:', expected 'byId:')
30 |             throw Error.spyNotFoundForRequest
31 |         }
/host/spi-builder-workspace/Sources/NetworkSpyKit/InterceptorURLProtocol.swift:45:9: error: cannot find 'client' in scope
43 |
44 |     private func respond(with responseData: Data) {
45 |         client?.urlProtocol(self,
   |         `- error: cannot find 'client' in scope
46 |                             didLoad: responseData)
47 |     }
/host/spi-builder-workspace/Sources/NetworkSpyKit/InterceptorURLProtocol.swift:50:9: error: cannot find 'client' in scope
48 |
49 |     private func respond(with response: HTTPURLResponse) {
50 |         client?.urlProtocol(self,
   |         `- error: cannot find 'client' in scope
51 |                             didReceive: response,
52 |                             cacheStoragePolicy: .notAllowed)
/host/spi-builder-workspace/Sources/NetworkSpyKit/InterceptorURLProtocol.swift:52:50: error: cannot infer contextual base in reference to member 'notAllowed'
50 |         client?.urlProtocol(self,
51 |                             didReceive: response,
52 |                             cacheStoragePolicy: .notAllowed)
   |                                                  `- error: cannot infer contextual base in reference to member 'notAllowed'
53 |     }
54 |
/host/spi-builder-workspace/Sources/NetworkSpyKit/InterceptorURLProtocol.swift:56:9: error: cannot find 'client' in scope
54 |
55 |     private func respond(with error: any Swift.Error) {
56 |         client?.urlProtocol(self, didFailWithError: error)
   |         `- error: cannot find 'client' in scope
57 |     }
58 |
/host/spi-builder-workspace/Sources/NetworkSpyKit/InterceptorURLProtocol.swift:60:9: error: cannot find 'client' in scope
58 |
59 |     private func finishLoading() {
60 |         client?.urlProtocolDidFinishLoading(self)
   |         `- error: cannot find 'client' in scope
61 |     }
62 |
/host/spi-builder-workspace/Sources/NetworkSpyKit/InterceptorURLProtocol.swift:75:45: error: cannot find 'request' in scope
73 |     override func startLoading() {
74 |         do {
75 |             respond(with: try response(for: request))
   |                                             `- error: cannot find 'request' in scope
76 |         } catch {
77 |             respond(with: error)
/host/spi-builder-workspace/Sources/NetworkSpyKit/NetworkSpy/NetworkSpy+HTTPURLResponse.swift:14:35: error: cannot find type 'URLRequest' in scope
12 |     typealias Error = InterceptorURLProtocol.Error
13 |
14 |     func response(for urlRequest: URLRequest) throws -> (response: HTTPURLResponse, data: Data?) {
   |                                   `- error: cannot find type 'URLRequest' in scope
15 |         guard urlRequest.url != nil else {
16 |             throw Error.invalidRequestURLMissing
/host/spi-builder-workspace/Sources/NetworkSpyKit/NetworkSpy/NetworkSpy+HTTPURLResponse.swift:14:68: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
12 |     typealias Error = InterceptorURLProtocol.Error
13 |
14 |     func response(for urlRequest: URLRequest) throws -> (response: HTTPURLResponse, data: Data?) {
   |                                                                    `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
15 |         guard urlRequest.url != nil else {
16 |             throw Error.invalidRequestURLMissing
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/NetworkSpyKit/NetworkSpy/NetworkSpy+HTTPURLResponse.swift:26:93: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
24 |     }
25 |
26 |     private func makeHTTPURLResponse(requestURL: URL?, stubbedResponse: StubbedResponse) -> HTTPURLResponse {
   |                                                                                             `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
27 |         guard let requestURL,
28 |               let httpResponse = HTTPURLResponse(url: requestURL,
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/NetworkSpyKit/Request/Request.swift:10:28: error: cannot find type 'URLRequest' in scope
 8 | import Foundation
 9 |
10 | public typealias Request = URLRequest
   |                            `- error: cannot find type 'URLRequest' in scope
11 |
12 | extension URLRequest {
/host/spi-builder-workspace/Sources/NetworkSpyKit/NetworkSpy/NetworkSpy+HTTPURLResponse.swift:28:34: error: 'HTTPURLResponse' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
26 |     private func makeHTTPURLResponse(requestURL: URL?, stubbedResponse: StubbedResponse) -> HTTPURLResponse {
27 |         guard let requestURL,
28 |               let httpResponse = HTTPURLResponse(url: requestURL,
   |                                  `- error: 'HTTPURLResponse' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
29 |                                                  statusCode: stubbedResponse.statusCode,
30 |                                                  httpVersion: nil,
/host/spi-builder-workspace/Sources/NetworkSpyKit/NetworkSpy/NetworkSpy+HTTPURLResponse.swift:30:63: error: 'nil' requires a contextual type
28 |               let httpResponse = HTTPURLResponse(url: requestURL,
29 |                                                  statusCode: stubbedResponse.statusCode,
30 |                                                  httpVersion: nil,
   |                                                               `- error: 'nil' requires a contextual type
31 |                                                  headerFields: stubbedResponse.headers) else {
32 |             // We expect HTTPURLResponse.init to actually never fail.
[9/30] Compiling NetworkSpyKit StartLineParser.swift
/host/spi-builder-workspace/Sources/NetworkSpyKit/InterceptorURLProtocol.swift:19:40: error: cannot find type 'URLRequest' in scope
17 |     var spyRegistry: SpyRegistry = .shared
18 |
19 |     private func response(for request: URLRequest) throws -> (response: HTTPURLResponse, data: Data?) {
   |                                        `- error: cannot find type 'URLRequest' in scope
20 |         let spy = try spy(for: request)
21 |
/host/spi-builder-workspace/Sources/NetworkSpyKit/InterceptorURLProtocol.swift:19:73: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
17 |     var spyRegistry: SpyRegistry = .shared
18 |
19 |     private func response(for request: URLRequest) throws -> (response: HTTPURLResponse, data: Data?) {
   |                                                                         `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
20 |         let spy = try spy(for: request)
21 |
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/NetworkSpyKit/InterceptorURLProtocol.swift:28:35: error: cannot find type 'URLRequest' in scope
26 |     }
27 |
28 |     private func spy(for request: URLRequest) throws -> NetworkSpy {
   |                                   `- error: cannot find type 'URLRequest' in scope
29 |         guard let spy = spyRegistry.spy(for: request) else {
30 |             throw Error.spyNotFoundForRequest
/host/spi-builder-workspace/Sources/NetworkSpyKit/InterceptorURLProtocol.swift:36:52: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
34 |     }
35 |
36 |     private func respond(with response: (response: HTTPURLResponse, data: Data?)) {
   |                                                    `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
37 |         respond(with: response.response)
38 |
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/NetworkSpyKit/InterceptorURLProtocol.swift:49:41: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
47 |     }
48 |
49 |     private func respond(with response: HTTPURLResponse) {
   |                                         `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
50 |         client?.urlProtocol(self,
51 |                             didReceive: response,
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/NetworkSpyKit/InterceptorURLProtocol.swift:65:47: error: cannot find type 'URLRequest' in scope
63 |     // MARK: - URLProtocol
64 |
65 |     override class func canInit(with request: URLRequest) -> Bool {
   |                                               `- error: cannot find type 'URLRequest' in scope
66 |         true
67 |     }
/host/spi-builder-workspace/Sources/NetworkSpyKit/InterceptorURLProtocol.swift:69:70: error: cannot find type 'URLRequest' in scope
67 |     }
68 |
69 |     override class func canonicalRequest(for request: URLRequest) -> URLRequest {
   |                                                                      `- error: cannot find type 'URLRequest' in scope
70 |         return request
71 |     }
/host/spi-builder-workspace/Sources/NetworkSpyKit/InterceptorURLProtocol.swift:69:55: error: cannot find type 'URLRequest' in scope
67 |     }
68 |
69 |     override class func canonicalRequest(for request: URLRequest) -> URLRequest {
   |                                                       `- error: cannot find type 'URLRequest' in scope
70 |         return request
71 |     }
/host/spi-builder-workspace/Sources/NetworkSpyKit/InterceptorURLProtocol.swift:73:19: error: method does not override any method from its superclass
71 |     }
72 |
73 |     override func startLoading() {
   |                   `- error: method does not override any method from its superclass
74 |         do {
75 |             respond(with: try response(for: request))
/host/spi-builder-workspace/Sources/NetworkSpyKit/InterceptorURLProtocol.swift:83:19: error: method does not override any method from its superclass
81 |     }
82 |
83 |     override func stopLoading() {
   |                   `- error: method does not override any method from its superclass
84 |         // No-op
85 |     }
/host/spi-builder-workspace/Sources/NetworkSpyKit/InterceptorURLProtocol.swift:10:37: error: 'URLProtocol' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 8 | import Foundation
 9 |
10 | final class InterceptorURLProtocol: URLProtocol {
   |                                     `- error: 'URLProtocol' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
11 |
12 |     enum Error: Swift.Error {
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/NetworkSpyKit/InterceptorURLProtocol.swift:89:11: error: cannot find type 'URLRequest' in scope
87 |
88 |
89 | extension URLRequest {
   |           `- error: cannot find type 'URLRequest' in scope
90 |
91 |     fileprivate func removedSpyIDHeader() -> Self {
/host/spi-builder-workspace/Sources/NetworkSpyKit/SpyRegistry/SpyRegistry+URLRequest.swift:12:27: error: cannot find type 'URLRequest' in scope
10 | extension SpyRegistry {
11 |
12 |     func spy(for request: URLRequest) -> NetworkSpy? {
   |                           `- error: cannot find type 'URLRequest' in scope
13 |         guard let spyId = spyId(for: request) else {
14 |             return nil
/host/spi-builder-workspace/Sources/NetworkSpyKit/InterceptorURLProtocol.swift:29:40: error: incorrect argument label in call (have 'for:', expected 'byId:')
27 |
28 |     private func spy(for request: URLRequest) throws -> NetworkSpy {
29 |         guard let spy = spyRegistry.spy(for: request) else {
   |                                        `- error: incorrect argument label in call (have 'for:', expected 'byId:')
30 |             throw Error.spyNotFoundForRequest
31 |         }
/host/spi-builder-workspace/Sources/NetworkSpyKit/InterceptorURLProtocol.swift:45:9: error: cannot find 'client' in scope
43 |
44 |     private func respond(with responseData: Data) {
45 |         client?.urlProtocol(self,
   |         `- error: cannot find 'client' in scope
46 |                             didLoad: responseData)
47 |     }
/host/spi-builder-workspace/Sources/NetworkSpyKit/InterceptorURLProtocol.swift:50:9: error: cannot find 'client' in scope
48 |
49 |     private func respond(with response: HTTPURLResponse) {
50 |         client?.urlProtocol(self,
   |         `- error: cannot find 'client' in scope
51 |                             didReceive: response,
52 |                             cacheStoragePolicy: .notAllowed)
/host/spi-builder-workspace/Sources/NetworkSpyKit/InterceptorURLProtocol.swift:52:50: error: cannot infer contextual base in reference to member 'notAllowed'
50 |         client?.urlProtocol(self,
51 |                             didReceive: response,
52 |                             cacheStoragePolicy: .notAllowed)
   |                                                  `- error: cannot infer contextual base in reference to member 'notAllowed'
53 |     }
54 |
/host/spi-builder-workspace/Sources/NetworkSpyKit/InterceptorURLProtocol.swift:56:9: error: cannot find 'client' in scope
54 |
55 |     private func respond(with error: any Swift.Error) {
56 |         client?.urlProtocol(self, didFailWithError: error)
   |         `- error: cannot find 'client' in scope
57 |     }
58 |
/host/spi-builder-workspace/Sources/NetworkSpyKit/InterceptorURLProtocol.swift:60:9: error: cannot find 'client' in scope
58 |
59 |     private func finishLoading() {
60 |         client?.urlProtocolDidFinishLoading(self)
   |         `- error: cannot find 'client' in scope
61 |     }
62 |
/host/spi-builder-workspace/Sources/NetworkSpyKit/InterceptorURLProtocol.swift:75:45: error: cannot find 'request' in scope
73 |     override func startLoading() {
74 |         do {
75 |             respond(with: try response(for: request))
   |                                             `- error: cannot find 'request' in scope
76 |         } catch {
77 |             respond(with: error)
/host/spi-builder-workspace/Sources/NetworkSpyKit/NetworkSpy/NetworkSpy+HTTPURLResponse.swift:14:35: error: cannot find type 'URLRequest' in scope
12 |     typealias Error = InterceptorURLProtocol.Error
13 |
14 |     func response(for urlRequest: URLRequest) throws -> (response: HTTPURLResponse, data: Data?) {
   |                                   `- error: cannot find type 'URLRequest' in scope
15 |         guard urlRequest.url != nil else {
16 |             throw Error.invalidRequestURLMissing
/host/spi-builder-workspace/Sources/NetworkSpyKit/NetworkSpy/NetworkSpy+HTTPURLResponse.swift:14:68: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
12 |     typealias Error = InterceptorURLProtocol.Error
13 |
14 |     func response(for urlRequest: URLRequest) throws -> (response: HTTPURLResponse, data: Data?) {
   |                                                                    `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
15 |         guard urlRequest.url != nil else {
16 |             throw Error.invalidRequestURLMissing
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/NetworkSpyKit/NetworkSpy/NetworkSpy+HTTPURLResponse.swift:26:93: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
24 |     }
25 |
26 |     private func makeHTTPURLResponse(requestURL: URL?, stubbedResponse: StubbedResponse) -> HTTPURLResponse {
   |                                                                                             `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
27 |         guard let requestURL,
28 |               let httpResponse = HTTPURLResponse(url: requestURL,
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/NetworkSpyKit/Request/Request.swift:10:28: error: cannot find type 'URLRequest' in scope
 8 | import Foundation
 9 |
10 | public typealias Request = URLRequest
   |                            `- error: cannot find type 'URLRequest' in scope
11 |
12 | extension URLRequest {
/host/spi-builder-workspace/Sources/NetworkSpyKit/NetworkSpy/NetworkSpy+HTTPURLResponse.swift:28:34: error: 'HTTPURLResponse' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
26 |     private func makeHTTPURLResponse(requestURL: URL?, stubbedResponse: StubbedResponse) -> HTTPURLResponse {
27 |         guard let requestURL,
28 |               let httpResponse = HTTPURLResponse(url: requestURL,
   |                                  `- error: 'HTTPURLResponse' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
29 |                                                  statusCode: stubbedResponse.statusCode,
30 |                                                  httpVersion: nil,
/host/spi-builder-workspace/Sources/NetworkSpyKit/NetworkSpy/NetworkSpy+HTTPURLResponse.swift:30:63: error: 'nil' requires a contextual type
28 |               let httpResponse = HTTPURLResponse(url: requestURL,
29 |                                                  statusCode: stubbedResponse.statusCode,
30 |                                                  httpVersion: nil,
   |                                                               `- error: 'nil' requires a contextual type
31 |                                                  headerFields: stubbedResponse.headers) else {
32 |             // We expect HTTPURLResponse.init to actually never fail.
[10/30] Compiling NetworkSpyKit InterceptorURLProtocol.swift
/host/spi-builder-workspace/Sources/NetworkSpyKit/InterceptorURLProtocol.swift:19:40: error: cannot find type 'URLRequest' in scope
17 |     var spyRegistry: SpyRegistry = .shared
18 |
19 |     private func response(for request: URLRequest) throws -> (response: HTTPURLResponse, data: Data?) {
   |                                        `- error: cannot find type 'URLRequest' in scope
20 |         let spy = try spy(for: request)
21 |
/host/spi-builder-workspace/Sources/NetworkSpyKit/InterceptorURLProtocol.swift:19:73: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
17 |     var spyRegistry: SpyRegistry = .shared
18 |
19 |     private func response(for request: URLRequest) throws -> (response: HTTPURLResponse, data: Data?) {
   |                                                                         `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
20 |         let spy = try spy(for: request)
21 |
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/NetworkSpyKit/InterceptorURLProtocol.swift:28:35: error: cannot find type 'URLRequest' in scope
26 |     }
27 |
28 |     private func spy(for request: URLRequest) throws -> NetworkSpy {
   |                                   `- error: cannot find type 'URLRequest' in scope
29 |         guard let spy = spyRegistry.spy(for: request) else {
30 |             throw Error.spyNotFoundForRequest
/host/spi-builder-workspace/Sources/NetworkSpyKit/InterceptorURLProtocol.swift:36:52: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
34 |     }
35 |
36 |     private func respond(with response: (response: HTTPURLResponse, data: Data?)) {
   |                                                    `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
37 |         respond(with: response.response)
38 |
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/NetworkSpyKit/InterceptorURLProtocol.swift:49:41: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
47 |     }
48 |
49 |     private func respond(with response: HTTPURLResponse) {
   |                                         `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
50 |         client?.urlProtocol(self,
51 |                             didReceive: response,
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/NetworkSpyKit/InterceptorURLProtocol.swift:65:47: error: cannot find type 'URLRequest' in scope
63 |     // MARK: - URLProtocol
64 |
65 |     override class func canInit(with request: URLRequest) -> Bool {
   |                                               `- error: cannot find type 'URLRequest' in scope
66 |         true
67 |     }
/host/spi-builder-workspace/Sources/NetworkSpyKit/InterceptorURLProtocol.swift:69:70: error: cannot find type 'URLRequest' in scope
67 |     }
68 |
69 |     override class func canonicalRequest(for request: URLRequest) -> URLRequest {
   |                                                                      `- error: cannot find type 'URLRequest' in scope
70 |         return request
71 |     }
/host/spi-builder-workspace/Sources/NetworkSpyKit/InterceptorURLProtocol.swift:69:55: error: cannot find type 'URLRequest' in scope
67 |     }
68 |
69 |     override class func canonicalRequest(for request: URLRequest) -> URLRequest {
   |                                                       `- error: cannot find type 'URLRequest' in scope
70 |         return request
71 |     }
/host/spi-builder-workspace/Sources/NetworkSpyKit/InterceptorURLProtocol.swift:73:19: error: method does not override any method from its superclass
71 |     }
72 |
73 |     override func startLoading() {
   |                   `- error: method does not override any method from its superclass
74 |         do {
75 |             respond(with: try response(for: request))
/host/spi-builder-workspace/Sources/NetworkSpyKit/InterceptorURLProtocol.swift:83:19: error: method does not override any method from its superclass
81 |     }
82 |
83 |     override func stopLoading() {
   |                   `- error: method does not override any method from its superclass
84 |         // No-op
85 |     }
/host/spi-builder-workspace/Sources/NetworkSpyKit/InterceptorURLProtocol.swift:10:37: error: 'URLProtocol' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 8 | import Foundation
 9 |
10 | final class InterceptorURLProtocol: URLProtocol {
   |                                     `- error: 'URLProtocol' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
11 |
12 |     enum Error: Swift.Error {
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/NetworkSpyKit/InterceptorURLProtocol.swift:89:11: error: cannot find type 'URLRequest' in scope
87 |
88 |
89 | extension URLRequest {
   |           `- error: cannot find type 'URLRequest' in scope
90 |
91 |     fileprivate func removedSpyIDHeader() -> Self {
/host/spi-builder-workspace/Sources/NetworkSpyKit/SpyRegistry/SpyRegistry+URLRequest.swift:12:27: error: cannot find type 'URLRequest' in scope
10 | extension SpyRegistry {
11 |
12 |     func spy(for request: URLRequest) -> NetworkSpy? {
   |                           `- error: cannot find type 'URLRequest' in scope
13 |         guard let spyId = spyId(for: request) else {
14 |             return nil
/host/spi-builder-workspace/Sources/NetworkSpyKit/InterceptorURLProtocol.swift:29:40: error: incorrect argument label in call (have 'for:', expected 'byId:')
27 |
28 |     private func spy(for request: URLRequest) throws -> NetworkSpy {
29 |         guard let spy = spyRegistry.spy(for: request) else {
   |                                        `- error: incorrect argument label in call (have 'for:', expected 'byId:')
30 |             throw Error.spyNotFoundForRequest
31 |         }
/host/spi-builder-workspace/Sources/NetworkSpyKit/InterceptorURLProtocol.swift:45:9: error: cannot find 'client' in scope
43 |
44 |     private func respond(with responseData: Data) {
45 |         client?.urlProtocol(self,
   |         `- error: cannot find 'client' in scope
46 |                             didLoad: responseData)
47 |     }
/host/spi-builder-workspace/Sources/NetworkSpyKit/InterceptorURLProtocol.swift:50:9: error: cannot find 'client' in scope
48 |
49 |     private func respond(with response: HTTPURLResponse) {
50 |         client?.urlProtocol(self,
   |         `- error: cannot find 'client' in scope
51 |                             didReceive: response,
52 |                             cacheStoragePolicy: .notAllowed)
/host/spi-builder-workspace/Sources/NetworkSpyKit/InterceptorURLProtocol.swift:52:50: error: cannot infer contextual base in reference to member 'notAllowed'
50 |         client?.urlProtocol(self,
51 |                             didReceive: response,
52 |                             cacheStoragePolicy: .notAllowed)
   |                                                  `- error: cannot infer contextual base in reference to member 'notAllowed'
53 |     }
54 |
/host/spi-builder-workspace/Sources/NetworkSpyKit/InterceptorURLProtocol.swift:56:9: error: cannot find 'client' in scope
54 |
55 |     private func respond(with error: any Swift.Error) {
56 |         client?.urlProtocol(self, didFailWithError: error)
   |         `- error: cannot find 'client' in scope
57 |     }
58 |
/host/spi-builder-workspace/Sources/NetworkSpyKit/InterceptorURLProtocol.swift:60:9: error: cannot find 'client' in scope
58 |
59 |     private func finishLoading() {
60 |         client?.urlProtocolDidFinishLoading(self)
   |         `- error: cannot find 'client' in scope
61 |     }
62 |
/host/spi-builder-workspace/Sources/NetworkSpyKit/InterceptorURLProtocol.swift:75:45: error: cannot find 'request' in scope
73 |     override func startLoading() {
74 |         do {
75 |             respond(with: try response(for: request))
   |                                             `- error: cannot find 'request' in scope
76 |         } catch {
77 |             respond(with: error)
/host/spi-builder-workspace/Sources/NetworkSpyKit/NetworkSpy/NetworkSpy+HTTPURLResponse.swift:14:35: error: cannot find type 'URLRequest' in scope
12 |     typealias Error = InterceptorURLProtocol.Error
13 |
14 |     func response(for urlRequest: URLRequest) throws -> (response: HTTPURLResponse, data: Data?) {
   |                                   `- error: cannot find type 'URLRequest' in scope
15 |         guard urlRequest.url != nil else {
16 |             throw Error.invalidRequestURLMissing
/host/spi-builder-workspace/Sources/NetworkSpyKit/NetworkSpy/NetworkSpy+HTTPURLResponse.swift:14:68: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
12 |     typealias Error = InterceptorURLProtocol.Error
13 |
14 |     func response(for urlRequest: URLRequest) throws -> (response: HTTPURLResponse, data: Data?) {
   |                                                                    `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
15 |         guard urlRequest.url != nil else {
16 |             throw Error.invalidRequestURLMissing
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/NetworkSpyKit/NetworkSpy/NetworkSpy+HTTPURLResponse.swift:26:93: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
24 |     }
25 |
26 |     private func makeHTTPURLResponse(requestURL: URL?, stubbedResponse: StubbedResponse) -> HTTPURLResponse {
   |                                                                                             `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
27 |         guard let requestURL,
28 |               let httpResponse = HTTPURLResponse(url: requestURL,
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/NetworkSpyKit/Request/Request.swift:10:28: error: cannot find type 'URLRequest' in scope
 8 | import Foundation
 9 |
10 | public typealias Request = URLRequest
   |                            `- error: cannot find type 'URLRequest' in scope
11 |
12 | extension URLRequest {
/host/spi-builder-workspace/Sources/NetworkSpyKit/NetworkSpy/NetworkSpy+HTTPURLResponse.swift:28:34: error: 'HTTPURLResponse' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
26 |     private func makeHTTPURLResponse(requestURL: URL?, stubbedResponse: StubbedResponse) -> HTTPURLResponse {
27 |         guard let requestURL,
28 |               let httpResponse = HTTPURLResponse(url: requestURL,
   |                                  `- error: 'HTTPURLResponse' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
29 |                                                  statusCode: stubbedResponse.statusCode,
30 |                                                  httpVersion: nil,
/host/spi-builder-workspace/Sources/NetworkSpyKit/NetworkSpy/NetworkSpy+HTTPURLResponse.swift:30:63: error: 'nil' requires a contextual type
28 |               let httpResponse = HTTPURLResponse(url: requestURL,
29 |                                                  statusCode: stubbedResponse.statusCode,
30 |                                                  httpVersion: nil,
   |                                                               `- error: 'nil' requires a contextual type
31 |                                                  headerFields: stubbedResponse.headers) else {
32 |             // We expect HTTPURLResponse.init to actually never fail.
[11/30] Compiling NetworkSpyKit NetworkSpy+HTTPURLResponse.swift
/host/spi-builder-workspace/Sources/NetworkSpyKit/InterceptorURLProtocol.swift:19:40: error: cannot find type 'URLRequest' in scope
17 |     var spyRegistry: SpyRegistry = .shared
18 |
19 |     private func response(for request: URLRequest) throws -> (response: HTTPURLResponse, data: Data?) {
   |                                        `- error: cannot find type 'URLRequest' in scope
20 |         let spy = try spy(for: request)
21 |
/host/spi-builder-workspace/Sources/NetworkSpyKit/InterceptorURLProtocol.swift:19:73: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
17 |     var spyRegistry: SpyRegistry = .shared
18 |
19 |     private func response(for request: URLRequest) throws -> (response: HTTPURLResponse, data: Data?) {
   |                                                                         `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
20 |         let spy = try spy(for: request)
21 |
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/NetworkSpyKit/InterceptorURLProtocol.swift:28:35: error: cannot find type 'URLRequest' in scope
26 |     }
27 |
28 |     private func spy(for request: URLRequest) throws -> NetworkSpy {
   |                                   `- error: cannot find type 'URLRequest' in scope
29 |         guard let spy = spyRegistry.spy(for: request) else {
30 |             throw Error.spyNotFoundForRequest
/host/spi-builder-workspace/Sources/NetworkSpyKit/InterceptorURLProtocol.swift:36:52: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
34 |     }
35 |
36 |     private func respond(with response: (response: HTTPURLResponse, data: Data?)) {
   |                                                    `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
37 |         respond(with: response.response)
38 |
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/NetworkSpyKit/InterceptorURLProtocol.swift:49:41: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
47 |     }
48 |
49 |     private func respond(with response: HTTPURLResponse) {
   |                                         `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
50 |         client?.urlProtocol(self,
51 |                             didReceive: response,
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/NetworkSpyKit/InterceptorURLProtocol.swift:65:47: error: cannot find type 'URLRequest' in scope
63 |     // MARK: - URLProtocol
64 |
65 |     override class func canInit(with request: URLRequest) -> Bool {
   |                                               `- error: cannot find type 'URLRequest' in scope
66 |         true
67 |     }
/host/spi-builder-workspace/Sources/NetworkSpyKit/InterceptorURLProtocol.swift:69:70: error: cannot find type 'URLRequest' in scope
67 |     }
68 |
69 |     override class func canonicalRequest(for request: URLRequest) -> URLRequest {
   |                                                                      `- error: cannot find type 'URLRequest' in scope
70 |         return request
71 |     }
/host/spi-builder-workspace/Sources/NetworkSpyKit/InterceptorURLProtocol.swift:69:55: error: cannot find type 'URLRequest' in scope
67 |     }
68 |
69 |     override class func canonicalRequest(for request: URLRequest) -> URLRequest {
   |                                                       `- error: cannot find type 'URLRequest' in scope
70 |         return request
71 |     }
/host/spi-builder-workspace/Sources/NetworkSpyKit/InterceptorURLProtocol.swift:73:19: error: method does not override any method from its superclass
71 |     }
72 |
73 |     override func startLoading() {
   |                   `- error: method does not override any method from its superclass
74 |         do {
75 |             respond(with: try response(for: request))
/host/spi-builder-workspace/Sources/NetworkSpyKit/InterceptorURLProtocol.swift:83:19: error: method does not override any method from its superclass
81 |     }
82 |
83 |     override func stopLoading() {
   |                   `- error: method does not override any method from its superclass
84 |         // No-op
85 |     }
/host/spi-builder-workspace/Sources/NetworkSpyKit/InterceptorURLProtocol.swift:10:37: error: 'URLProtocol' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 8 | import Foundation
 9 |
10 | final class InterceptorURLProtocol: URLProtocol {
   |                                     `- error: 'URLProtocol' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
11 |
12 |     enum Error: Swift.Error {
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/NetworkSpyKit/InterceptorURLProtocol.swift:89:11: error: cannot find type 'URLRequest' in scope
87 |
88 |
89 | extension URLRequest {
   |           `- error: cannot find type 'URLRequest' in scope
90 |
91 |     fileprivate func removedSpyIDHeader() -> Self {
/host/spi-builder-workspace/Sources/NetworkSpyKit/SpyRegistry/SpyRegistry+URLRequest.swift:12:27: error: cannot find type 'URLRequest' in scope
10 | extension SpyRegistry {
11 |
12 |     func spy(for request: URLRequest) -> NetworkSpy? {
   |                           `- error: cannot find type 'URLRequest' in scope
13 |         guard let spyId = spyId(for: request) else {
14 |             return nil
/host/spi-builder-workspace/Sources/NetworkSpyKit/InterceptorURLProtocol.swift:29:40: error: incorrect argument label in call (have 'for:', expected 'byId:')
27 |
28 |     private func spy(for request: URLRequest) throws -> NetworkSpy {
29 |         guard let spy = spyRegistry.spy(for: request) else {
   |                                        `- error: incorrect argument label in call (have 'for:', expected 'byId:')
30 |             throw Error.spyNotFoundForRequest
31 |         }
/host/spi-builder-workspace/Sources/NetworkSpyKit/InterceptorURLProtocol.swift:45:9: error: cannot find 'client' in scope
43 |
44 |     private func respond(with responseData: Data) {
45 |         client?.urlProtocol(self,
   |         `- error: cannot find 'client' in scope
46 |                             didLoad: responseData)
47 |     }
/host/spi-builder-workspace/Sources/NetworkSpyKit/InterceptorURLProtocol.swift:50:9: error: cannot find 'client' in scope
48 |
49 |     private func respond(with response: HTTPURLResponse) {
50 |         client?.urlProtocol(self,
   |         `- error: cannot find 'client' in scope
51 |                             didReceive: response,
52 |                             cacheStoragePolicy: .notAllowed)
/host/spi-builder-workspace/Sources/NetworkSpyKit/InterceptorURLProtocol.swift:52:50: error: cannot infer contextual base in reference to member 'notAllowed'
50 |         client?.urlProtocol(self,
51 |                             didReceive: response,
52 |                             cacheStoragePolicy: .notAllowed)
   |                                                  `- error: cannot infer contextual base in reference to member 'notAllowed'
53 |     }
54 |
/host/spi-builder-workspace/Sources/NetworkSpyKit/InterceptorURLProtocol.swift:56:9: error: cannot find 'client' in scope
54 |
55 |     private func respond(with error: any Swift.Error) {
56 |         client?.urlProtocol(self, didFailWithError: error)
   |         `- error: cannot find 'client' in scope
57 |     }
58 |
/host/spi-builder-workspace/Sources/NetworkSpyKit/InterceptorURLProtocol.swift:60:9: error: cannot find 'client' in scope
58 |
59 |     private func finishLoading() {
60 |         client?.urlProtocolDidFinishLoading(self)
   |         `- error: cannot find 'client' in scope
61 |     }
62 |
/host/spi-builder-workspace/Sources/NetworkSpyKit/InterceptorURLProtocol.swift:75:45: error: cannot find 'request' in scope
73 |     override func startLoading() {
74 |         do {
75 |             respond(with: try response(for: request))
   |                                             `- error: cannot find 'request' in scope
76 |         } catch {
77 |             respond(with: error)
/host/spi-builder-workspace/Sources/NetworkSpyKit/NetworkSpy/NetworkSpy+HTTPURLResponse.swift:14:35: error: cannot find type 'URLRequest' in scope
12 |     typealias Error = InterceptorURLProtocol.Error
13 |
14 |     func response(for urlRequest: URLRequest) throws -> (response: HTTPURLResponse, data: Data?) {
   |                                   `- error: cannot find type 'URLRequest' in scope
15 |         guard urlRequest.url != nil else {
16 |             throw Error.invalidRequestURLMissing
/host/spi-builder-workspace/Sources/NetworkSpyKit/NetworkSpy/NetworkSpy+HTTPURLResponse.swift:14:68: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
12 |     typealias Error = InterceptorURLProtocol.Error
13 |
14 |     func response(for urlRequest: URLRequest) throws -> (response: HTTPURLResponse, data: Data?) {
   |                                                                    `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
15 |         guard urlRequest.url != nil else {
16 |             throw Error.invalidRequestURLMissing
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/NetworkSpyKit/NetworkSpy/NetworkSpy+HTTPURLResponse.swift:26:93: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
24 |     }
25 |
26 |     private func makeHTTPURLResponse(requestURL: URL?, stubbedResponse: StubbedResponse) -> HTTPURLResponse {
   |                                                                                             `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
27 |         guard let requestURL,
28 |               let httpResponse = HTTPURLResponse(url: requestURL,
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/NetworkSpyKit/Request/Request.swift:10:28: error: cannot find type 'URLRequest' in scope
 8 | import Foundation
 9 |
10 | public typealias Request = URLRequest
   |                            `- error: cannot find type 'URLRequest' in scope
11 |
12 | extension URLRequest {
/host/spi-builder-workspace/Sources/NetworkSpyKit/NetworkSpy/NetworkSpy+HTTPURLResponse.swift:28:34: error: 'HTTPURLResponse' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
26 |     private func makeHTTPURLResponse(requestURL: URL?, stubbedResponse: StubbedResponse) -> HTTPURLResponse {
27 |         guard let requestURL,
28 |               let httpResponse = HTTPURLResponse(url: requestURL,
   |                                  `- error: 'HTTPURLResponse' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
29 |                                                  statusCode: stubbedResponse.statusCode,
30 |                                                  httpVersion: nil,
/host/spi-builder-workspace/Sources/NetworkSpyKit/NetworkSpy/NetworkSpy+HTTPURLResponse.swift:30:63: error: 'nil' requires a contextual type
28 |               let httpResponse = HTTPURLResponse(url: requestURL,
29 |                                                  statusCode: stubbedResponse.statusCode,
30 |                                                  httpVersion: nil,
   |                                                               `- error: 'nil' requires a contextual type
31 |                                                  headerFields: stubbedResponse.headers) else {
32 |             // We expect HTTPURLResponse.init to actually never fail.
error: emit-module command failed with exit code 1 (use -v to see invocation)
[12/30] Emitting module NetworkSpyKit
/host/spi-builder-workspace/Sources/NetworkSpyKit/HTTPMessageComponents/HTTPMessageComponents/HTTPMessageComponents+URLRequest.swift:13:23: error: cannot find type 'URLRequest' in scope
11 |
12 |     /// - Note: `URLRequest.httpMethod`, `URLRequest.url` as well as the assigned `URL.host` are required for *RFC 9112*
13 |     init?(urlRequest: URLRequest) {
   |                       `- error: cannot find type 'URLRequest' in scope
14 |         guard let method = urlRequest.httpMethod,
15 |               let url = urlRequest.url,
/host/spi-builder-workspace/Sources/NetworkSpyKit/HTTPMessageComponents/HTTPMessageFormatter/HTTPMessageFormatter+URLRequest.swift:12:34: error: cannot find type 'URLRequest' in scope
10 | extension HTTPMessageFormatter {
11 |
12 |     func string(from urlRequest: URLRequest) -> String {
   |                                  `- error: cannot find type 'URLRequest' in scope
13 |         guard let messageComponents = HTTPMessageComponents(urlRequest: urlRequest) else {
14 |             return ""
/host/spi-builder-workspace/Sources/NetworkSpyKit/InterceptorURLProtocol.swift:19:40: error: cannot find type 'URLRequest' in scope
17 |     var spyRegistry: SpyRegistry = .shared
18 |
19 |     private func response(for request: URLRequest) throws -> (response: HTTPURLResponse, data: Data?) {
   |                                        `- error: cannot find type 'URLRequest' in scope
20 |         let spy = try spy(for: request)
21 |
/host/spi-builder-workspace/Sources/NetworkSpyKit/InterceptorURLProtocol.swift:19:73: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
17 |     var spyRegistry: SpyRegistry = .shared
18 |
19 |     private func response(for request: URLRequest) throws -> (response: HTTPURLResponse, data: Data?) {
   |                                                                         `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
20 |         let spy = try spy(for: request)
21 |
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/NetworkSpyKit/InterceptorURLProtocol.swift:28:35: error: cannot find type 'URLRequest' in scope
26 |     }
27 |
28 |     private func spy(for request: URLRequest) throws -> NetworkSpy {
   |                                   `- error: cannot find type 'URLRequest' in scope
29 |         guard let spy = spyRegistry.spy(for: request) else {
30 |             throw Error.spyNotFoundForRequest
/host/spi-builder-workspace/Sources/NetworkSpyKit/InterceptorURLProtocol.swift:36:52: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
34 |     }
35 |
36 |     private func respond(with response: (response: HTTPURLResponse, data: Data?)) {
   |                                                    `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
37 |         respond(with: response.response)
38 |
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/NetworkSpyKit/InterceptorURLProtocol.swift:49:41: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
47 |     }
48 |
49 |     private func respond(with response: HTTPURLResponse) {
   |                                         `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
50 |         client?.urlProtocol(self,
51 |                             didReceive: response,
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/NetworkSpyKit/InterceptorURLProtocol.swift:65:47: error: cannot find type 'URLRequest' in scope
63 |     // MARK: - URLProtocol
64 |
65 |     override class func canInit(with request: URLRequest) -> Bool {
   |                                               `- error: cannot find type 'URLRequest' in scope
66 |         true
67 |     }
/host/spi-builder-workspace/Sources/NetworkSpyKit/InterceptorURLProtocol.swift:69:70: error: cannot find type 'URLRequest' in scope
67 |     }
68 |
69 |     override class func canonicalRequest(for request: URLRequest) -> URLRequest {
   |                                                                      `- error: cannot find type 'URLRequest' in scope
70 |         return request
71 |     }
/host/spi-builder-workspace/Sources/NetworkSpyKit/InterceptorURLProtocol.swift:69:55: error: cannot find type 'URLRequest' in scope
67 |     }
68 |
69 |     override class func canonicalRequest(for request: URLRequest) -> URLRequest {
   |                                                       `- error: cannot find type 'URLRequest' in scope
70 |         return request
71 |     }
/host/spi-builder-workspace/Sources/NetworkSpyKit/InterceptorURLProtocol.swift:73:19: error: method does not override any method from its superclass
71 |     }
72 |
73 |     override func startLoading() {
   |                   `- error: method does not override any method from its superclass
74 |         do {
75 |             respond(with: try response(for: request))
/host/spi-builder-workspace/Sources/NetworkSpyKit/InterceptorURLProtocol.swift:83:19: error: method does not override any method from its superclass
81 |     }
82 |
83 |     override func stopLoading() {
   |                   `- error: method does not override any method from its superclass
84 |         // No-op
85 |     }
/host/spi-builder-workspace/Sources/NetworkSpyKit/InterceptorURLProtocol.swift:10:37: error: 'URLProtocol' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 8 | import Foundation
 9 |
10 | final class InterceptorURLProtocol: URLProtocol {
   |                                     `- error: 'URLProtocol' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
11 |
12 |     enum Error: Swift.Error {
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/NetworkSpyKit/InterceptorURLProtocol.swift:89:11: error: cannot find type 'URLRequest' in scope
87 |
88 |
89 | extension URLRequest {
   |           `- error: cannot find type 'URLRequest' in scope
90 |
91 |     fileprivate func removedSpyIDHeader() -> Self {
/host/spi-builder-workspace/Sources/NetworkSpyKit/NetworkSpy/NetworkSpy+HTTPURLResponse.swift:14:35: error: cannot find type 'URLRequest' in scope
12 |     typealias Error = InterceptorURLProtocol.Error
13 |
14 |     func response(for urlRequest: URLRequest) throws -> (response: HTTPURLResponse, data: Data?) {
   |                                   `- error: cannot find type 'URLRequest' in scope
15 |         guard urlRequest.url != nil else {
16 |             throw Error.invalidRequestURLMissing
/host/spi-builder-workspace/Sources/NetworkSpyKit/NetworkSpy/NetworkSpy+HTTPURLResponse.swift:14:68: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
12 |     typealias Error = InterceptorURLProtocol.Error
13 |
14 |     func response(for urlRequest: URLRequest) throws -> (response: HTTPURLResponse, data: Data?) {
   |                                                                    `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
15 |         guard urlRequest.url != nil else {
16 |             throw Error.invalidRequestURLMissing
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/NetworkSpyKit/NetworkSpy/NetworkSpy+HTTPURLResponse.swift:26:93: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
24 |     }
25 |
26 |     private func makeHTTPURLResponse(requestURL: URL?, stubbedResponse: StubbedResponse) -> HTTPURLResponse {
   |                                                                                             `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
27 |         guard let requestURL,
28 |               let httpResponse = HTTPURLResponse(url: requestURL,
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/NetworkSpyKit/Request/Request.swift:10:28: error: cannot find type 'URLRequest' in scope
 8 | import Foundation
 9 |
10 | public typealias Request = URLRequest
   |                            `- error: cannot find type 'URLRequest' in scope
11 |
12 | extension URLRequest {
/host/spi-builder-workspace/Sources/NetworkSpyKit/NetworkSpy/NetworkSpy.swift:34:38: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 32 |     /// augmented with the required interceptor and identification headers.
 33 |     /// Use this to construct a `URLSession` that is intercepted by the spy.
 34 |     public let sessionConfiguration: URLSessionConfiguration
    |                                      `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 35 |
 36 |     /// The currently assigned response provider.
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/NetworkSpyKit/NetworkSpy/NetworkSpy.swift:74:47: error: @escaping attribute only applies to function types
 72 |     ///   - responseProvider: A closure that returns a stubbed response for intercepted requests. Defaults to `.teaPot`.
 73 |     public convenience init(sessionConfiguration: URLSessionConfiguration,
 74 |                             responseProvider: @escaping ResponseProvider = defaultResponse) {
    |                                               `- error: @escaping attribute only applies to function types
 75 |         self.init(sessionConfiguration: sessionConfiguration,
 76 |                   responseProvider: responseProvider,
/host/spi-builder-workspace/Sources/NetworkSpyKit/NetworkSpy/NetworkSpy.swift:73:51: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 71 |     ///   - sessionConfiguration: A template configuration. It will be copied and modified.
 72 |     ///   - responseProvider: A closure that returns a stubbed response for intercepted requests. Defaults to `.teaPot`.
 73 |     public convenience init(sessionConfiguration: URLSessionConfiguration,
    |                                                   `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 74 |                             responseProvider: @escaping ResponseProvider = defaultResponse) {
 75 |         self.init(sessionConfiguration: sessionConfiguration,
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/NetworkSpyKit/NetworkSpy/NetworkSpy.swift:81:28: error: @escaping attribute only applies to function types
 79 |
 80 |     init(sessionConfiguration: URLSessionConfiguration,
 81 |          responseProvider: @escaping ResponseProvider = defaultResponse,
    |                            `- error: @escaping attribute only applies to function types
 82 |          spyRegistry: SpyRegistry) {
 83 |         self.sessionConfiguration = Self.copyConfiguration(sessionConfiguration)
/host/spi-builder-workspace/Sources/NetworkSpyKit/NetworkSpy/NetworkSpy.swift:80:32: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 78 |     }
 79 |
 80 |     init(sessionConfiguration: URLSessionConfiguration,
    |                                `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 81 |          responseProvider: @escaping ResponseProvider = defaultResponse,
 82 |          spyRegistry: SpyRegistry) {
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/NetworkSpyKit/NetworkSpy/NetworkSpy.swift:95:28: error: cannot find type 'URLRequest' in scope
 93 |     }
 94 |
 95 |     func record(_ request: URLRequest) {
    |                            `- error: cannot find type 'URLRequest' in scope
 96 |         requestRecorder.record(request)
 97 |     }
/host/spi-builder-workspace/Sources/NetworkSpyKit/NetworkSpy/NetworkSpy.swift:99:60: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 97 |     }
 98 |
 99 |     private static func copyConfiguration(_ configuration: URLSessionConfiguration) -> URLSessionConfiguration {
    |                                                            `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
100 |         return configuration.copy() as! URLSessionConfiguration
101 |     }
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/NetworkSpyKit/NetworkSpy/NetworkSpy.swift:99:88: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 97 |     }
 98 |
 99 |     private static func copyConfiguration(_ configuration: URLSessionConfiguration) -> URLSessionConfiguration {
    |                                                                                        `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
100 |         return configuration.copy() as! URLSessionConfiguration
101 |     }
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/NetworkSpyKit/NetworkSpy/NetworkSpy.swift:34:16: error: stored property 'sessionConfiguration' of 'Sendable'-conforming class 'NetworkSpy' has non-sendable type 'URLSessionConfiguration' (aka 'AnyObject')
 32 |     /// augmented with the required interceptor and identification headers.
 33 |     /// Use this to construct a `URLSession` that is intercepted by the spy.
 34 |     public let sessionConfiguration: URLSessionConfiguration
    |                `- error: stored property 'sessionConfiguration' of 'Sendable'-conforming class 'NetworkSpy' has non-sendable type 'URLSessionConfiguration' (aka 'AnyObject')
 35 |
 36 |     /// The currently assigned response provider.
/host/spi-builder-workspace/Sources/NetworkSpyKit/Request/Request.swift:12:11: error: cannot find type 'URLRequest' in scope
10 | public typealias Request = URLRequest
11 |
12 | extension URLRequest {
   |           `- error: cannot find type 'URLRequest' in scope
13 |
14 |     /// Creates a new URLRequest with common HTTP configuration options.
/host/spi-builder-workspace/Sources/NetworkSpyKit/Request/URLRequest+ResolveHTTPBodyStream.swift:10:11: error: cannot find type 'URLRequest' in scope
 8 | import Foundation
 9 |
10 | extension URLRequest {
   |           `- error: cannot find type 'URLRequest' in scope
11 |
12 |     /// Returns the resolved HTTP body data of the request.
/host/spi-builder-workspace/Sources/NetworkSpyKit/SpyRegistry/SpyRegistry+URLRequest.swift:12:27: error: cannot find type 'URLRequest' in scope
10 | extension SpyRegistry {
11 |
12 |     func spy(for request: URLRequest) -> NetworkSpy? {
   |                           `- error: cannot find type 'URLRequest' in scope
13 |         guard let spyId = spyId(for: request) else {
14 |             return nil
/host/spi-builder-workspace/Sources/NetworkSpyKit/SpyRegistry/SpyRegistry+URLRequest.swift:20:37: error: cannot find type 'URLRequest' in scope
18 |     }
19 |
20 |     private func spyId(for request: URLRequest) -> String? {
   |                                     `- error: cannot find type 'URLRequest' in scope
21 |         return request.allHTTPHeaderFields?[NetworkSpy.headerKey]
22 |     }
[13/30] Compiling NetworkSpyKit Array+SafeElementAccess.swift
/host/spi-builder-workspace/Sources/NetworkSpyKit/HTTPMessageComponents/HTTPMessageComponents/HTTPMessageComponents+URLRequest.swift:13:23: error: cannot find type 'URLRequest' in scope
11 |
12 |     /// - Note: `URLRequest.httpMethod`, `URLRequest.url` as well as the assigned `URL.host` are required for *RFC 9112*
13 |     init?(urlRequest: URLRequest) {
   |                       `- error: cannot find type 'URLRequest' in scope
14 |         guard let method = urlRequest.httpMethod,
15 |               let url = urlRequest.url,
[14/30] Compiling NetworkSpyKit String+Lines.swift
/host/spi-builder-workspace/Sources/NetworkSpyKit/HTTPMessageComponents/HTTPMessageComponents/HTTPMessageComponents+URLRequest.swift:13:23: error: cannot find type 'URLRequest' in scope
11 |
12 |     /// - Note: `URLRequest.httpMethod`, `URLRequest.url` as well as the assigned `URL.host` are required for *RFC 9112*
13 |     init?(urlRequest: URLRequest) {
   |                       `- error: cannot find type 'URLRequest' in scope
14 |         guard let method = urlRequest.httpMethod,
15 |               let url = urlRequest.url,
[15/30] Compiling NetworkSpyKit HTTPMessageComponents-StartLine.swift
/host/spi-builder-workspace/Sources/NetworkSpyKit/HTTPMessageComponents/HTTPMessageComponents/HTTPMessageComponents+URLRequest.swift:13:23: error: cannot find type 'URLRequest' in scope
11 |
12 |     /// - Note: `URLRequest.httpMethod`, `URLRequest.url` as well as the assigned `URL.host` are required for *RFC 9112*
13 |     init?(urlRequest: URLRequest) {
   |                       `- error: cannot find type 'URLRequest' in scope
14 |         guard let method = urlRequest.httpMethod,
15 |               let url = urlRequest.url,
[16/30] Compiling NetworkSpyKit HTTPMessageComponents+URLRequest.swift
/host/spi-builder-workspace/Sources/NetworkSpyKit/HTTPMessageComponents/HTTPMessageComponents/HTTPMessageComponents+URLRequest.swift:13:23: error: cannot find type 'URLRequest' in scope
11 |
12 |     /// - Note: `URLRequest.httpMethod`, `URLRequest.url` as well as the assigned `URL.host` are required for *RFC 9112*
13 |     init?(urlRequest: URLRequest) {
   |                       `- error: cannot find type 'URLRequest' in scope
14 |         guard let method = urlRequest.httpMethod,
15 |               let url = urlRequest.url,
[17/30] Compiling NetworkSpyKit StubbedResponse+4xx.swift
[18/30] Compiling NetworkSpyKit StubbedResponse+5xx.swift
[19/30] Compiling NetworkSpyKit Response+TeaPot.swift
[20/30] Compiling NetworkSpyKit HTTPMessageComponents.swift
/host/spi-builder-workspace/Sources/NetworkSpyKit/HTTPMessageComponents/HTTPMessageFormatter/HTTPMessageFormatter+URLRequest.swift:12:34: error: cannot find type 'URLRequest' in scope
10 | extension HTTPMessageFormatter {
11 |
12 |     func string(from urlRequest: URLRequest) -> String {
   |                                  `- error: cannot find type 'URLRequest' in scope
13 |         guard let messageComponents = HTTPMessageComponents(urlRequest: urlRequest) else {
14 |             return ""
/host/spi-builder-workspace/Sources/NetworkSpyKit/HTTPMessageComponents/HTTPMessageComponents/HTTPMessageComponents+URLRequest.swift:13:23: error: cannot find type 'URLRequest' in scope
11 |
12 |     /// - Note: `URLRequest.httpMethod`, `URLRequest.url` as well as the assigned `URL.host` are required for *RFC 9112*
13 |     init?(urlRequest: URLRequest) {
   |                       `- error: cannot find type 'URLRequest' in scope
14 |         guard let method = urlRequest.httpMethod,
15 |               let url = urlRequest.url,
/host/spi-builder-workspace/Sources/NetworkSpyKit/HTTPMessageComponents/HTTPMessageFormatter/HTTPMessageFormatter+URLRequest.swift:13:73: error: extra argument 'urlRequest' in call
11 |
12 |     func string(from urlRequest: URLRequest) -> String {
13 |         guard let messageComponents = HTTPMessageComponents(urlRequest: urlRequest) else {
   |                                                                         `- error: extra argument 'urlRequest' in call
14 |             return ""
15 |         }
/host/spi-builder-workspace/Sources/NetworkSpyKit/HTTPMessageComponents/HTTPMessageFormatter/HTTPMessageFormatter+URLRequest.swift:13:61: error: missing argument for parameter 'startLine' in call
11 |
12 |     func string(from urlRequest: URLRequest) -> String {
13 |         guard let messageComponents = HTTPMessageComponents(urlRequest: urlRequest) else {
   |                                                             `- error: missing argument for parameter 'startLine' in call
14 |             return ""
15 |         }
/host/spi-builder-workspace/Sources/NetworkSpyKit/HTTPMessageComponents/HTTPMessageComponents/HTTPMessageComponents.swift:10:8: note: 'init(startLine:headerFields:body:)' declared here
 8 | import Foundation
 9 |
10 | struct HTTPMessageComponents: Equatable {
   |        `- note: 'init(startLine:headerFields:body:)' declared here
11 |     let startLine: StartLine
12 |     var headerFields: [String: String]?
[21/30] Compiling NetworkSpyKit HTTPMessageFormatter+URLRequest.swift
/host/spi-builder-workspace/Sources/NetworkSpyKit/HTTPMessageComponents/HTTPMessageFormatter/HTTPMessageFormatter+URLRequest.swift:12:34: error: cannot find type 'URLRequest' in scope
10 | extension HTTPMessageFormatter {
11 |
12 |     func string(from urlRequest: URLRequest) -> String {
   |                                  `- error: cannot find type 'URLRequest' in scope
13 |         guard let messageComponents = HTTPMessageComponents(urlRequest: urlRequest) else {
14 |             return ""
/host/spi-builder-workspace/Sources/NetworkSpyKit/HTTPMessageComponents/HTTPMessageComponents/HTTPMessageComponents+URLRequest.swift:13:23: error: cannot find type 'URLRequest' in scope
11 |
12 |     /// - Note: `URLRequest.httpMethod`, `URLRequest.url` as well as the assigned `URL.host` are required for *RFC 9112*
13 |     init?(urlRequest: URLRequest) {
   |                       `- error: cannot find type 'URLRequest' in scope
14 |         guard let method = urlRequest.httpMethod,
15 |               let url = urlRequest.url,
/host/spi-builder-workspace/Sources/NetworkSpyKit/HTTPMessageComponents/HTTPMessageFormatter/HTTPMessageFormatter+URLRequest.swift:13:73: error: extra argument 'urlRequest' in call
11 |
12 |     func string(from urlRequest: URLRequest) -> String {
13 |         guard let messageComponents = HTTPMessageComponents(urlRequest: urlRequest) else {
   |                                                                         `- error: extra argument 'urlRequest' in call
14 |             return ""
15 |         }
/host/spi-builder-workspace/Sources/NetworkSpyKit/HTTPMessageComponents/HTTPMessageFormatter/HTTPMessageFormatter+URLRequest.swift:13:61: error: missing argument for parameter 'startLine' in call
11 |
12 |     func string(from urlRequest: URLRequest) -> String {
13 |         guard let messageComponents = HTTPMessageComponents(urlRequest: urlRequest) else {
   |                                                             `- error: missing argument for parameter 'startLine' in call
14 |             return ""
15 |         }
/host/spi-builder-workspace/Sources/NetworkSpyKit/HTTPMessageComponents/HTTPMessageComponents/HTTPMessageComponents.swift:10:8: note: 'init(startLine:headerFields:body:)' declared here
 8 | import Foundation
 9 |
10 | struct HTTPMessageComponents: Equatable {
   |        `- note: 'init(startLine:headerFields:body:)' declared here
11 |     let startLine: StartLine
12 |     var headerFields: [String: String]?
[22/30] Compiling NetworkSpyKit HTTPMessageFormatter.swift
/host/spi-builder-workspace/Sources/NetworkSpyKit/HTTPMessageComponents/HTTPMessageFormatter/HTTPMessageFormatter+URLRequest.swift:12:34: error: cannot find type 'URLRequest' in scope
10 | extension HTTPMessageFormatter {
11 |
12 |     func string(from urlRequest: URLRequest) -> String {
   |                                  `- error: cannot find type 'URLRequest' in scope
13 |         guard let messageComponents = HTTPMessageComponents(urlRequest: urlRequest) else {
14 |             return ""
/host/spi-builder-workspace/Sources/NetworkSpyKit/HTTPMessageComponents/HTTPMessageComponents/HTTPMessageComponents+URLRequest.swift:13:23: error: cannot find type 'URLRequest' in scope
11 |
12 |     /// - Note: `URLRequest.httpMethod`, `URLRequest.url` as well as the assigned `URL.host` are required for *RFC 9112*
13 |     init?(urlRequest: URLRequest) {
   |                       `- error: cannot find type 'URLRequest' in scope
14 |         guard let method = urlRequest.httpMethod,
15 |               let url = urlRequest.url,
/host/spi-builder-workspace/Sources/NetworkSpyKit/HTTPMessageComponents/HTTPMessageFormatter/HTTPMessageFormatter+URLRequest.swift:13:73: error: extra argument 'urlRequest' in call
11 |
12 |     func string(from urlRequest: URLRequest) -> String {
13 |         guard let messageComponents = HTTPMessageComponents(urlRequest: urlRequest) else {
   |                                                                         `- error: extra argument 'urlRequest' in call
14 |             return ""
15 |         }
/host/spi-builder-workspace/Sources/NetworkSpyKit/HTTPMessageComponents/HTTPMessageFormatter/HTTPMessageFormatter+URLRequest.swift:13:61: error: missing argument for parameter 'startLine' in call
11 |
12 |     func string(from urlRequest: URLRequest) -> String {
13 |         guard let messageComponents = HTTPMessageComponents(urlRequest: urlRequest) else {
   |                                                             `- error: missing argument for parameter 'startLine' in call
14 |             return ""
15 |         }
/host/spi-builder-workspace/Sources/NetworkSpyKit/HTTPMessageComponents/HTTPMessageComponents/HTTPMessageComponents.swift:10:8: note: 'init(startLine:headerFields:body:)' declared here
 8 | import Foundation
 9 |
10 | struct HTTPMessageComponents: Equatable {
   |        `- note: 'init(startLine:headerFields:body:)' declared here
11 |     let startLine: StartLine
12 |     var headerFields: [String: String]?
[23/30] Compiling NetworkSpyKit HTTPMessageParser.swift
/host/spi-builder-workspace/Sources/NetworkSpyKit/HTTPMessageComponents/HTTPMessageFormatter/HTTPMessageFormatter+URLRequest.swift:12:34: error: cannot find type 'URLRequest' in scope
10 | extension HTTPMessageFormatter {
11 |
12 |     func string(from urlRequest: URLRequest) -> String {
   |                                  `- error: cannot find type 'URLRequest' in scope
13 |         guard let messageComponents = HTTPMessageComponents(urlRequest: urlRequest) else {
14 |             return ""
/host/spi-builder-workspace/Sources/NetworkSpyKit/HTTPMessageComponents/HTTPMessageComponents/HTTPMessageComponents+URLRequest.swift:13:23: error: cannot find type 'URLRequest' in scope
11 |
12 |     /// - Note: `URLRequest.httpMethod`, `URLRequest.url` as well as the assigned `URL.host` are required for *RFC 9112*
13 |     init?(urlRequest: URLRequest) {
   |                       `- error: cannot find type 'URLRequest' in scope
14 |         guard let method = urlRequest.httpMethod,
15 |               let url = urlRequest.url,
/host/spi-builder-workspace/Sources/NetworkSpyKit/HTTPMessageComponents/HTTPMessageFormatter/HTTPMessageFormatter+URLRequest.swift:13:73: error: extra argument 'urlRequest' in call
11 |
12 |     func string(from urlRequest: URLRequest) -> String {
13 |         guard let messageComponents = HTTPMessageComponents(urlRequest: urlRequest) else {
   |                                                                         `- error: extra argument 'urlRequest' in call
14 |             return ""
15 |         }
/host/spi-builder-workspace/Sources/NetworkSpyKit/HTTPMessageComponents/HTTPMessageFormatter/HTTPMessageFormatter+URLRequest.swift:13:61: error: missing argument for parameter 'startLine' in call
11 |
12 |     func string(from urlRequest: URLRequest) -> String {
13 |         guard let messageComponents = HTTPMessageComponents(urlRequest: urlRequest) else {
   |                                                             `- error: missing argument for parameter 'startLine' in call
14 |             return ""
15 |         }
/host/spi-builder-workspace/Sources/NetworkSpyKit/HTTPMessageComponents/HTTPMessageComponents/HTTPMessageComponents.swift:10:8: note: 'init(startLine:headerFields:body:)' declared here
 8 | import Foundation
 9 |
10 | struct HTTPMessageComponents: Equatable {
   |        `- note: 'init(startLine:headerFields:body:)' declared here
11 |     let startLine: StartLine
12 |     var headerFields: [String: String]?
[24/30] Compiling NetworkSpyKit NetworkSpy.swift
/host/spi-builder-workspace/Sources/NetworkSpyKit/Request/Request.swift:10:28: error: cannot find type 'URLRequest' in scope
 8 | import Foundation
 9 |
10 | public typealias Request = URLRequest
   |                            `- error: cannot find type 'URLRequest' in scope
11 |
12 | extension URLRequest {
/host/spi-builder-workspace/Sources/NetworkSpyKit/NetworkSpy/NetworkSpy.swift:34:38: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 32 |     /// augmented with the required interceptor and identification headers.
 33 |     /// Use this to construct a `URLSession` that is intercepted by the spy.
 34 |     public let sessionConfiguration: URLSessionConfiguration
    |                                      `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 35 |
 36 |     /// The currently assigned response provider.
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/NetworkSpyKit/NetworkSpy/NetworkSpy.swift:74:47: error: @escaping attribute only applies to function types
 72 |     ///   - responseProvider: A closure that returns a stubbed response for intercepted requests. Defaults to `.teaPot`.
 73 |     public convenience init(sessionConfiguration: URLSessionConfiguration,
 74 |                             responseProvider: @escaping ResponseProvider = defaultResponse) {
    |                                               `- error: @escaping attribute only applies to function types
 75 |         self.init(sessionConfiguration: sessionConfiguration,
 76 |                   responseProvider: responseProvider,
/host/spi-builder-workspace/Sources/NetworkSpyKit/NetworkSpy/NetworkSpy.swift:73:51: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 71 |     ///   - sessionConfiguration: A template configuration. It will be copied and modified.
 72 |     ///   - responseProvider: A closure that returns a stubbed response for intercepted requests. Defaults to `.teaPot`.
 73 |     public convenience init(sessionConfiguration: URLSessionConfiguration,
    |                                                   `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 74 |                             responseProvider: @escaping ResponseProvider = defaultResponse) {
 75 |         self.init(sessionConfiguration: sessionConfiguration,
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/NetworkSpyKit/NetworkSpy/NetworkSpy.swift:81:28: error: @escaping attribute only applies to function types
 79 |
 80 |     init(sessionConfiguration: URLSessionConfiguration,
 81 |          responseProvider: @escaping ResponseProvider = defaultResponse,
    |                            `- error: @escaping attribute only applies to function types
 82 |          spyRegistry: SpyRegistry) {
 83 |         self.sessionConfiguration = Self.copyConfiguration(sessionConfiguration)
/host/spi-builder-workspace/Sources/NetworkSpyKit/NetworkSpy/NetworkSpy.swift:80:32: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 78 |     }
 79 |
 80 |     init(sessionConfiguration: URLSessionConfiguration,
    |                                `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 81 |          responseProvider: @escaping ResponseProvider = defaultResponse,
 82 |          spyRegistry: SpyRegistry) {
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/NetworkSpyKit/NetworkSpy/NetworkSpy.swift:95:28: error: cannot find type 'URLRequest' in scope
 93 |     }
 94 |
 95 |     func record(_ request: URLRequest) {
    |                            `- error: cannot find type 'URLRequest' in scope
 96 |         requestRecorder.record(request)
 97 |     }
/host/spi-builder-workspace/Sources/NetworkSpyKit/NetworkSpy/NetworkSpy.swift:99:60: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 97 |     }
 98 |
 99 |     private static func copyConfiguration(_ configuration: URLSessionConfiguration) -> URLSessionConfiguration {
    |                                                            `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
100 |         return configuration.copy() as! URLSessionConfiguration
101 |     }
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/NetworkSpyKit/NetworkSpy/NetworkSpy.swift:99:88: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 97 |     }
 98 |
 99 |     private static func copyConfiguration(_ configuration: URLSessionConfiguration) -> URLSessionConfiguration {
    |                                                                                        `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
100 |         return configuration.copy() as! URLSessionConfiguration
101 |     }
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/NetworkSpyKit/NetworkSpy/NetworkSpy.swift:34:16: error: stored property 'sessionConfiguration' of 'Sendable'-conforming class 'NetworkSpy' has non-sendable type 'URLSessionConfiguration' (aka 'AnyObject')
 32 |     /// augmented with the required interceptor and identification headers.
 33 |     /// Use this to construct a `URLSession` that is intercepted by the spy.
 34 |     public let sessionConfiguration: URLSessionConfiguration
    |                `- error: stored property 'sessionConfiguration' of 'Sendable'-conforming class 'NetworkSpy' has non-sendable type 'URLSessionConfiguration' (aka 'AnyObject')
 35 |
 36 |     /// The currently assigned response provider.
/host/spi-builder-workspace/Sources/NetworkSpyKit/NetworkSpy/NetworkSpy.swift:77:33: error: cannot infer contextual base in reference to member 'shared'
 75 |         self.init(sessionConfiguration: sessionConfiguration,
 76 |                   responseProvider: responseProvider,
 77 |                   spyRegistry: .shared)
    |                                 `- error: cannot infer contextual base in reference to member 'shared'
 78 |     }
 79 |
/host/spi-builder-workspace/Sources/NetworkSpyKit/NetworkSpy/NetworkSpy.swift:100:30: error: value of type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'copy'
 98 |
 99 |     private static func copyConfiguration(_ configuration: URLSessionConfiguration) -> URLSessionConfiguration {
100 |         return configuration.copy() as! URLSessionConfiguration
    |                              `- error: value of type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'copy'
101 |     }
102 |
/host/spi-builder-workspace/Sources/NetworkSpyKit/NetworkSpy/NetworkSpy.swift:118:51: error: value of type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'httpAdditionalHeaders'
116 |
117 |     private func bindConfigurationToSpy() {
118 |         var sessionHeaders = sessionConfiguration.httpAdditionalHeaders ?? [:]
    |                                                   `- error: value of type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'httpAdditionalHeaders'
119 |         sessionHeaders[Self.headerKey] = id
120 |         sessionConfiguration.httpAdditionalHeaders = sessionHeaders
/host/spi-builder-workspace/Sources/NetworkSpyKit/NetworkSpy/NetworkSpy.swift:120:30: error: value of type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'httpAdditionalHeaders'
118 |         var sessionHeaders = sessionConfiguration.httpAdditionalHeaders ?? [:]
119 |         sessionHeaders[Self.headerKey] = id
120 |         sessionConfiguration.httpAdditionalHeaders = sessionHeaders
    |                              `- error: value of type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'httpAdditionalHeaders'
121 |     }
122 |
/host/spi-builder-workspace/Sources/NetworkSpyKit/NetworkSpy/NetworkSpy.swift:124:30: error: value of type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'protocolClasses'
122 |
123 |     private func installInterceptorOnConfiguration() {
124 |         sessionConfiguration.protocolClasses = [InterceptorURLProtocol.self]
    |                              `- error: value of type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'protocolClasses'
125 |     }
126 | }
/host/spi-builder-workspace/Sources/NetworkSpyKit/Request/Request.swift:12:11: error: cannot find type 'URLRequest' in scope
10 | public typealias Request = URLRequest
11 |
12 | extension URLRequest {
   |           `- error: cannot find type 'URLRequest' in scope
13 |
14 |     /// Creates a new URLRequest with common HTTP configuration options.
/host/spi-builder-workspace/Sources/NetworkSpyKit/Request/URLRequest+ResolveHTTPBodyStream.swift:10:11: error: cannot find type 'URLRequest' in scope
 8 | import Foundation
 9 |
10 | extension URLRequest {
   |           `- error: cannot find type 'URLRequest' in scope
11 |
12 |     /// Returns the resolved HTTP body data of the request.
[25/30] Compiling NetworkSpyKit NetworkSpyKit.swift
/host/spi-builder-workspace/Sources/NetworkSpyKit/Request/Request.swift:10:28: error: cannot find type 'URLRequest' in scope
 8 | import Foundation
 9 |
10 | public typealias Request = URLRequest
   |                            `- error: cannot find type 'URLRequest' in scope
11 |
12 | extension URLRequest {
/host/spi-builder-workspace/Sources/NetworkSpyKit/NetworkSpy/NetworkSpy.swift:34:38: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 32 |     /// augmented with the required interceptor and identification headers.
 33 |     /// Use this to construct a `URLSession` that is intercepted by the spy.
 34 |     public let sessionConfiguration: URLSessionConfiguration
    |                                      `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 35 |
 36 |     /// The currently assigned response provider.
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/NetworkSpyKit/NetworkSpy/NetworkSpy.swift:74:47: error: @escaping attribute only applies to function types
 72 |     ///   - responseProvider: A closure that returns a stubbed response for intercepted requests. Defaults to `.teaPot`.
 73 |     public convenience init(sessionConfiguration: URLSessionConfiguration,
 74 |                             responseProvider: @escaping ResponseProvider = defaultResponse) {
    |                                               `- error: @escaping attribute only applies to function types
 75 |         self.init(sessionConfiguration: sessionConfiguration,
 76 |                   responseProvider: responseProvider,
/host/spi-builder-workspace/Sources/NetworkSpyKit/NetworkSpy/NetworkSpy.swift:73:51: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 71 |     ///   - sessionConfiguration: A template configuration. It will be copied and modified.
 72 |     ///   - responseProvider: A closure that returns a stubbed response for intercepted requests. Defaults to `.teaPot`.
 73 |     public convenience init(sessionConfiguration: URLSessionConfiguration,
    |                                                   `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 74 |                             responseProvider: @escaping ResponseProvider = defaultResponse) {
 75 |         self.init(sessionConfiguration: sessionConfiguration,
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/NetworkSpyKit/NetworkSpy/NetworkSpy.swift:81:28: error: @escaping attribute only applies to function types
 79 |
 80 |     init(sessionConfiguration: URLSessionConfiguration,
 81 |          responseProvider: @escaping ResponseProvider = defaultResponse,
    |                            `- error: @escaping attribute only applies to function types
 82 |          spyRegistry: SpyRegistry) {
 83 |         self.sessionConfiguration = Self.copyConfiguration(sessionConfiguration)
/host/spi-builder-workspace/Sources/NetworkSpyKit/NetworkSpy/NetworkSpy.swift:80:32: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 78 |     }
 79 |
 80 |     init(sessionConfiguration: URLSessionConfiguration,
    |                                `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 81 |          responseProvider: @escaping ResponseProvider = defaultResponse,
 82 |          spyRegistry: SpyRegistry) {
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/NetworkSpyKit/NetworkSpy/NetworkSpy.swift:95:28: error: cannot find type 'URLRequest' in scope
 93 |     }
 94 |
 95 |     func record(_ request: URLRequest) {
    |                            `- error: cannot find type 'URLRequest' in scope
 96 |         requestRecorder.record(request)
 97 |     }
/host/spi-builder-workspace/Sources/NetworkSpyKit/NetworkSpy/NetworkSpy.swift:99:60: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 97 |     }
 98 |
 99 |     private static func copyConfiguration(_ configuration: URLSessionConfiguration) -> URLSessionConfiguration {
    |                                                            `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
100 |         return configuration.copy() as! URLSessionConfiguration
101 |     }
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/NetworkSpyKit/NetworkSpy/NetworkSpy.swift:99:88: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 97 |     }
 98 |
 99 |     private static func copyConfiguration(_ configuration: URLSessionConfiguration) -> URLSessionConfiguration {
    |                                                                                        `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
100 |         return configuration.copy() as! URLSessionConfiguration
101 |     }
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/NetworkSpyKit/NetworkSpy/NetworkSpy.swift:34:16: error: stored property 'sessionConfiguration' of 'Sendable'-conforming class 'NetworkSpy' has non-sendable type 'URLSessionConfiguration' (aka 'AnyObject')
 32 |     /// augmented with the required interceptor and identification headers.
 33 |     /// Use this to construct a `URLSession` that is intercepted by the spy.
 34 |     public let sessionConfiguration: URLSessionConfiguration
    |                `- error: stored property 'sessionConfiguration' of 'Sendable'-conforming class 'NetworkSpy' has non-sendable type 'URLSessionConfiguration' (aka 'AnyObject')
 35 |
 36 |     /// The currently assigned response provider.
/host/spi-builder-workspace/Sources/NetworkSpyKit/NetworkSpy/NetworkSpy.swift:77:33: error: cannot infer contextual base in reference to member 'shared'
 75 |         self.init(sessionConfiguration: sessionConfiguration,
 76 |                   responseProvider: responseProvider,
 77 |                   spyRegistry: .shared)
    |                                 `- error: cannot infer contextual base in reference to member 'shared'
 78 |     }
 79 |
/host/spi-builder-workspace/Sources/NetworkSpyKit/NetworkSpy/NetworkSpy.swift:100:30: error: value of type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'copy'
 98 |
 99 |     private static func copyConfiguration(_ configuration: URLSessionConfiguration) -> URLSessionConfiguration {
100 |         return configuration.copy() as! URLSessionConfiguration
    |                              `- error: value of type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'copy'
101 |     }
102 |
/host/spi-builder-workspace/Sources/NetworkSpyKit/NetworkSpy/NetworkSpy.swift:118:51: error: value of type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'httpAdditionalHeaders'
116 |
117 |     private func bindConfigurationToSpy() {
118 |         var sessionHeaders = sessionConfiguration.httpAdditionalHeaders ?? [:]
    |                                                   `- error: value of type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'httpAdditionalHeaders'
119 |         sessionHeaders[Self.headerKey] = id
120 |         sessionConfiguration.httpAdditionalHeaders = sessionHeaders
/host/spi-builder-workspace/Sources/NetworkSpyKit/NetworkSpy/NetworkSpy.swift:120:30: error: value of type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'httpAdditionalHeaders'
118 |         var sessionHeaders = sessionConfiguration.httpAdditionalHeaders ?? [:]
119 |         sessionHeaders[Self.headerKey] = id
120 |         sessionConfiguration.httpAdditionalHeaders = sessionHeaders
    |                              `- error: value of type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'httpAdditionalHeaders'
121 |     }
122 |
/host/spi-builder-workspace/Sources/NetworkSpyKit/NetworkSpy/NetworkSpy.swift:124:30: error: value of type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'protocolClasses'
122 |
123 |     private func installInterceptorOnConfiguration() {
124 |         sessionConfiguration.protocolClasses = [InterceptorURLProtocol.self]
    |                              `- error: value of type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'protocolClasses'
125 |     }
126 | }
/host/spi-builder-workspace/Sources/NetworkSpyKit/Request/Request.swift:12:11: error: cannot find type 'URLRequest' in scope
10 | public typealias Request = URLRequest
11 |
12 | extension URLRequest {
   |           `- error: cannot find type 'URLRequest' in scope
13 |
14 |     /// Creates a new URLRequest with common HTTP configuration options.
/host/spi-builder-workspace/Sources/NetworkSpyKit/Request/URLRequest+ResolveHTTPBodyStream.swift:10:11: error: cannot find type 'URLRequest' in scope
 8 | import Foundation
 9 |
10 | extension URLRequest {
   |           `- error: cannot find type 'URLRequest' in scope
11 |
12 |     /// Returns the resolved HTTP body data of the request.
[26/30] Compiling NetworkSpyKit Request.swift
/host/spi-builder-workspace/Sources/NetworkSpyKit/Request/Request.swift:10:28: error: cannot find type 'URLRequest' in scope
 8 | import Foundation
 9 |
10 | public typealias Request = URLRequest
   |                            `- error: cannot find type 'URLRequest' in scope
11 |
12 | extension URLRequest {
/host/spi-builder-workspace/Sources/NetworkSpyKit/NetworkSpy/NetworkSpy.swift:34:38: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 32 |     /// augmented with the required interceptor and identification headers.
 33 |     /// Use this to construct a `URLSession` that is intercepted by the spy.
 34 |     public let sessionConfiguration: URLSessionConfiguration
    |                                      `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 35 |
 36 |     /// The currently assigned response provider.
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/NetworkSpyKit/NetworkSpy/NetworkSpy.swift:74:47: error: @escaping attribute only applies to function types
 72 |     ///   - responseProvider: A closure that returns a stubbed response for intercepted requests. Defaults to `.teaPot`.
 73 |     public convenience init(sessionConfiguration: URLSessionConfiguration,
 74 |                             responseProvider: @escaping ResponseProvider = defaultResponse) {
    |                                               `- error: @escaping attribute only applies to function types
 75 |         self.init(sessionConfiguration: sessionConfiguration,
 76 |                   responseProvider: responseProvider,
/host/spi-builder-workspace/Sources/NetworkSpyKit/NetworkSpy/NetworkSpy.swift:73:51: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 71 |     ///   - sessionConfiguration: A template configuration. It will be copied and modified.
 72 |     ///   - responseProvider: A closure that returns a stubbed response for intercepted requests. Defaults to `.teaPot`.
 73 |     public convenience init(sessionConfiguration: URLSessionConfiguration,
    |                                                   `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 74 |                             responseProvider: @escaping ResponseProvider = defaultResponse) {
 75 |         self.init(sessionConfiguration: sessionConfiguration,
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/NetworkSpyKit/NetworkSpy/NetworkSpy.swift:81:28: error: @escaping attribute only applies to function types
 79 |
 80 |     init(sessionConfiguration: URLSessionConfiguration,
 81 |          responseProvider: @escaping ResponseProvider = defaultResponse,
    |                            `- error: @escaping attribute only applies to function types
 82 |          spyRegistry: SpyRegistry) {
 83 |         self.sessionConfiguration = Self.copyConfiguration(sessionConfiguration)
/host/spi-builder-workspace/Sources/NetworkSpyKit/NetworkSpy/NetworkSpy.swift:80:32: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 78 |     }
 79 |
 80 |     init(sessionConfiguration: URLSessionConfiguration,
    |                                `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 81 |          responseProvider: @escaping ResponseProvider = defaultResponse,
 82 |          spyRegistry: SpyRegistry) {
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/NetworkSpyKit/NetworkSpy/NetworkSpy.swift:95:28: error: cannot find type 'URLRequest' in scope
 93 |     }
 94 |
 95 |     func record(_ request: URLRequest) {
    |                            `- error: cannot find type 'URLRequest' in scope
 96 |         requestRecorder.record(request)
 97 |     }
/host/spi-builder-workspace/Sources/NetworkSpyKit/NetworkSpy/NetworkSpy.swift:99:60: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 97 |     }
 98 |
 99 |     private static func copyConfiguration(_ configuration: URLSessionConfiguration) -> URLSessionConfiguration {
    |                                                            `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
100 |         return configuration.copy() as! URLSessionConfiguration
101 |     }
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/NetworkSpyKit/NetworkSpy/NetworkSpy.swift:99:88: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 97 |     }
 98 |
 99 |     private static func copyConfiguration(_ configuration: URLSessionConfiguration) -> URLSessionConfiguration {
    |                                                                                        `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
100 |         return configuration.copy() as! URLSessionConfiguration
101 |     }
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/NetworkSpyKit/NetworkSpy/NetworkSpy.swift:34:16: error: stored property 'sessionConfiguration' of 'Sendable'-conforming class 'NetworkSpy' has non-sendable type 'URLSessionConfiguration' (aka 'AnyObject')
 32 |     /// augmented with the required interceptor and identification headers.
 33 |     /// Use this to construct a `URLSession` that is intercepted by the spy.
 34 |     public let sessionConfiguration: URLSessionConfiguration
    |                `- error: stored property 'sessionConfiguration' of 'Sendable'-conforming class 'NetworkSpy' has non-sendable type 'URLSessionConfiguration' (aka 'AnyObject')
 35 |
 36 |     /// The currently assigned response provider.
/host/spi-builder-workspace/Sources/NetworkSpyKit/NetworkSpy/NetworkSpy.swift:77:33: error: cannot infer contextual base in reference to member 'shared'
 75 |         self.init(sessionConfiguration: sessionConfiguration,
 76 |                   responseProvider: responseProvider,
 77 |                   spyRegistry: .shared)
    |                                 `- error: cannot infer contextual base in reference to member 'shared'
 78 |     }
 79 |
/host/spi-builder-workspace/Sources/NetworkSpyKit/NetworkSpy/NetworkSpy.swift:100:30: error: value of type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'copy'
 98 |
 99 |     private static func copyConfiguration(_ configuration: URLSessionConfiguration) -> URLSessionConfiguration {
100 |         return configuration.copy() as! URLSessionConfiguration
    |                              `- error: value of type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'copy'
101 |     }
102 |
/host/spi-builder-workspace/Sources/NetworkSpyKit/NetworkSpy/NetworkSpy.swift:118:51: error: value of type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'httpAdditionalHeaders'
116 |
117 |     private func bindConfigurationToSpy() {
118 |         var sessionHeaders = sessionConfiguration.httpAdditionalHeaders ?? [:]
    |                                                   `- error: value of type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'httpAdditionalHeaders'
119 |         sessionHeaders[Self.headerKey] = id
120 |         sessionConfiguration.httpAdditionalHeaders = sessionHeaders
/host/spi-builder-workspace/Sources/NetworkSpyKit/NetworkSpy/NetworkSpy.swift:120:30: error: value of type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'httpAdditionalHeaders'
118 |         var sessionHeaders = sessionConfiguration.httpAdditionalHeaders ?? [:]
119 |         sessionHeaders[Self.headerKey] = id
120 |         sessionConfiguration.httpAdditionalHeaders = sessionHeaders
    |                              `- error: value of type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'httpAdditionalHeaders'
121 |     }
122 |
/host/spi-builder-workspace/Sources/NetworkSpyKit/NetworkSpy/NetworkSpy.swift:124:30: error: value of type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'protocolClasses'
122 |
123 |     private func installInterceptorOnConfiguration() {
124 |         sessionConfiguration.protocolClasses = [InterceptorURLProtocol.self]
    |                              `- error: value of type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'protocolClasses'
125 |     }
126 | }
/host/spi-builder-workspace/Sources/NetworkSpyKit/Request/Request.swift:12:11: error: cannot find type 'URLRequest' in scope
10 | public typealias Request = URLRequest
11 |
12 | extension URLRequest {
   |           `- error: cannot find type 'URLRequest' in scope
13 |
14 |     /// Creates a new URLRequest with common HTTP configuration options.
/host/spi-builder-workspace/Sources/NetworkSpyKit/Request/URLRequest+ResolveHTTPBodyStream.swift:10:11: error: cannot find type 'URLRequest' in scope
 8 | import Foundation
 9 |
10 | extension URLRequest {
   |           `- error: cannot find type 'URLRequest' in scope
11 |
12 |     /// Returns the resolved HTTP body data of the request.
[27/30] Compiling NetworkSpyKit URLRequest+ResolveHTTPBodyStream.swift
/host/spi-builder-workspace/Sources/NetworkSpyKit/Request/Request.swift:10:28: error: cannot find type 'URLRequest' in scope
 8 | import Foundation
 9 |
10 | public typealias Request = URLRequest
   |                            `- error: cannot find type 'URLRequest' in scope
11 |
12 | extension URLRequest {
/host/spi-builder-workspace/Sources/NetworkSpyKit/NetworkSpy/NetworkSpy.swift:34:38: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 32 |     /// augmented with the required interceptor and identification headers.
 33 |     /// Use this to construct a `URLSession` that is intercepted by the spy.
 34 |     public let sessionConfiguration: URLSessionConfiguration
    |                                      `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 35 |
 36 |     /// The currently assigned response provider.
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/NetworkSpyKit/NetworkSpy/NetworkSpy.swift:74:47: error: @escaping attribute only applies to function types
 72 |     ///   - responseProvider: A closure that returns a stubbed response for intercepted requests. Defaults to `.teaPot`.
 73 |     public convenience init(sessionConfiguration: URLSessionConfiguration,
 74 |                             responseProvider: @escaping ResponseProvider = defaultResponse) {
    |                                               `- error: @escaping attribute only applies to function types
 75 |         self.init(sessionConfiguration: sessionConfiguration,
 76 |                   responseProvider: responseProvider,
/host/spi-builder-workspace/Sources/NetworkSpyKit/NetworkSpy/NetworkSpy.swift:73:51: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 71 |     ///   - sessionConfiguration: A template configuration. It will be copied and modified.
 72 |     ///   - responseProvider: A closure that returns a stubbed response for intercepted requests. Defaults to `.teaPot`.
 73 |     public convenience init(sessionConfiguration: URLSessionConfiguration,
    |                                                   `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 74 |                             responseProvider: @escaping ResponseProvider = defaultResponse) {
 75 |         self.init(sessionConfiguration: sessionConfiguration,
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/NetworkSpyKit/NetworkSpy/NetworkSpy.swift:81:28: error: @escaping attribute only applies to function types
 79 |
 80 |     init(sessionConfiguration: URLSessionConfiguration,
 81 |          responseProvider: @escaping ResponseProvider = defaultResponse,
    |                            `- error: @escaping attribute only applies to function types
 82 |          spyRegistry: SpyRegistry) {
 83 |         self.sessionConfiguration = Self.copyConfiguration(sessionConfiguration)
/host/spi-builder-workspace/Sources/NetworkSpyKit/NetworkSpy/NetworkSpy.swift:80:32: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 78 |     }
 79 |
 80 |     init(sessionConfiguration: URLSessionConfiguration,
    |                                `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 81 |          responseProvider: @escaping ResponseProvider = defaultResponse,
 82 |          spyRegistry: SpyRegistry) {
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/NetworkSpyKit/NetworkSpy/NetworkSpy.swift:95:28: error: cannot find type 'URLRequest' in scope
 93 |     }
 94 |
 95 |     func record(_ request: URLRequest) {
    |                            `- error: cannot find type 'URLRequest' in scope
 96 |         requestRecorder.record(request)
 97 |     }
/host/spi-builder-workspace/Sources/NetworkSpyKit/NetworkSpy/NetworkSpy.swift:99:60: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 97 |     }
 98 |
 99 |     private static func copyConfiguration(_ configuration: URLSessionConfiguration) -> URLSessionConfiguration {
    |                                                            `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
100 |         return configuration.copy() as! URLSessionConfiguration
101 |     }
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/NetworkSpyKit/NetworkSpy/NetworkSpy.swift:99:88: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 97 |     }
 98 |
 99 |     private static func copyConfiguration(_ configuration: URLSessionConfiguration) -> URLSessionConfiguration {
    |                                                                                        `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
100 |         return configuration.copy() as! URLSessionConfiguration
101 |     }
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/NetworkSpyKit/NetworkSpy/NetworkSpy.swift:34:16: error: stored property 'sessionConfiguration' of 'Sendable'-conforming class 'NetworkSpy' has non-sendable type 'URLSessionConfiguration' (aka 'AnyObject')
 32 |     /// augmented with the required interceptor and identification headers.
 33 |     /// Use this to construct a `URLSession` that is intercepted by the spy.
 34 |     public let sessionConfiguration: URLSessionConfiguration
    |                `- error: stored property 'sessionConfiguration' of 'Sendable'-conforming class 'NetworkSpy' has non-sendable type 'URLSessionConfiguration' (aka 'AnyObject')
 35 |
 36 |     /// The currently assigned response provider.
/host/spi-builder-workspace/Sources/NetworkSpyKit/NetworkSpy/NetworkSpy.swift:77:33: error: cannot infer contextual base in reference to member 'shared'
 75 |         self.init(sessionConfiguration: sessionConfiguration,
 76 |                   responseProvider: responseProvider,
 77 |                   spyRegistry: .shared)
    |                                 `- error: cannot infer contextual base in reference to member 'shared'
 78 |     }
 79 |
/host/spi-builder-workspace/Sources/NetworkSpyKit/NetworkSpy/NetworkSpy.swift:100:30: error: value of type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'copy'
 98 |
 99 |     private static func copyConfiguration(_ configuration: URLSessionConfiguration) -> URLSessionConfiguration {
100 |         return configuration.copy() as! URLSessionConfiguration
    |                              `- error: value of type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'copy'
101 |     }
102 |
/host/spi-builder-workspace/Sources/NetworkSpyKit/NetworkSpy/NetworkSpy.swift:118:51: error: value of type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'httpAdditionalHeaders'
116 |
117 |     private func bindConfigurationToSpy() {
118 |         var sessionHeaders = sessionConfiguration.httpAdditionalHeaders ?? [:]
    |                                                   `- error: value of type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'httpAdditionalHeaders'
119 |         sessionHeaders[Self.headerKey] = id
120 |         sessionConfiguration.httpAdditionalHeaders = sessionHeaders
/host/spi-builder-workspace/Sources/NetworkSpyKit/NetworkSpy/NetworkSpy.swift:120:30: error: value of type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'httpAdditionalHeaders'
118 |         var sessionHeaders = sessionConfiguration.httpAdditionalHeaders ?? [:]
119 |         sessionHeaders[Self.headerKey] = id
120 |         sessionConfiguration.httpAdditionalHeaders = sessionHeaders
    |                              `- error: value of type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'httpAdditionalHeaders'
121 |     }
122 |
/host/spi-builder-workspace/Sources/NetworkSpyKit/NetworkSpy/NetworkSpy.swift:124:30: error: value of type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'protocolClasses'
122 |
123 |     private func installInterceptorOnConfiguration() {
124 |         sessionConfiguration.protocolClasses = [InterceptorURLProtocol.self]
    |                              `- error: value of type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'protocolClasses'
125 |     }
126 | }
/host/spi-builder-workspace/Sources/NetworkSpyKit/Request/Request.swift:12:11: error: cannot find type 'URLRequest' in scope
10 | public typealias Request = URLRequest
11 |
12 | extension URLRequest {
   |           `- error: cannot find type 'URLRequest' in scope
13 |
14 |     /// Creates a new URLRequest with common HTTP configuration options.
/host/spi-builder-workspace/Sources/NetworkSpyKit/Request/URLRequest+ResolveHTTPBodyStream.swift:10:11: error: cannot find type 'URLRequest' in scope
 8 | import Foundation
 9 |
10 | extension URLRequest {
   |           `- error: cannot find type 'URLRequest' in scope
11 |
12 |     /// Returns the resolved HTTP body data of the request.
[28/30] Compiling NetworkSpyKit SpyRegistry+URLRequest.swift
/host/spi-builder-workspace/Sources/NetworkSpyKit/SpyRegistry/SpyRegistry+URLRequest.swift:12:27: error: cannot find type 'URLRequest' in scope
10 | extension SpyRegistry {
11 |
12 |     func spy(for request: URLRequest) -> NetworkSpy? {
   |                           `- error: cannot find type 'URLRequest' in scope
13 |         guard let spyId = spyId(for: request) else {
14 |             return nil
/host/spi-builder-workspace/Sources/NetworkSpyKit/SpyRegistry/SpyRegistry+URLRequest.swift:20:37: error: cannot find type 'URLRequest' in scope
18 |     }
19 |
20 |     private func spyId(for request: URLRequest) -> String? {
   |                                     `- error: cannot find type 'URLRequest' in scope
21 |         return request.allHTTPHeaderFields?[NetworkSpy.headerKey]
22 |     }
[29/30] Compiling NetworkSpyKit SypRegistry.swift
/host/spi-builder-workspace/Sources/NetworkSpyKit/SpyRegistry/SpyRegistry+URLRequest.swift:12:27: error: cannot find type 'URLRequest' in scope
10 | extension SpyRegistry {
11 |
12 |     func spy(for request: URLRequest) -> NetworkSpy? {
   |                           `- error: cannot find type 'URLRequest' in scope
13 |         guard let spyId = spyId(for: request) else {
14 |             return nil
/host/spi-builder-workspace/Sources/NetworkSpyKit/SpyRegistry/SpyRegistry+URLRequest.swift:20:37: error: cannot find type 'URLRequest' in scope
18 |     }
19 |
20 |     private func spyId(for request: URLRequest) -> String? {
   |                                     `- error: cannot find type 'URLRequest' in scope
21 |         return request.allHTTPHeaderFields?[NetworkSpy.headerKey]
22 |     }
[30/30] Compiling NetworkSpyKit StreamReader.swift
/host/spi-builder-workspace/Sources/NetworkSpyKit/SpyRegistry/SpyRegistry+URLRequest.swift:12:27: error: cannot find type 'URLRequest' in scope
10 | extension SpyRegistry {
11 |
12 |     func spy(for request: URLRequest) -> NetworkSpy? {
   |                           `- error: cannot find type 'URLRequest' in scope
13 |         guard let spyId = spyId(for: request) else {
14 |             return nil
/host/spi-builder-workspace/Sources/NetworkSpyKit/SpyRegistry/SpyRegistry+URLRequest.swift:20:37: error: cannot find type 'URLRequest' in scope
18 |     }
19 |
20 |     private func spyId(for request: URLRequest) -> String? {
   |                                     `- error: cannot find type 'URLRequest' in scope
21 |         return request.allHTTPHeaderFields?[NetworkSpy.headerKey]
22 |     }
BUILD FAILURE 6.1 android