Build Information
Failed to build NetworkSpyKit, reference main (f358ab), with Swift 6.3 for Wasm on 17 Apr 2026 09:57:40 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4606859-2":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/swiftpackageindex/spi-images:wasm-6.3-latest swift build --swift-sdk swift-6.3-RELEASE_wasm 2>&1Build Log
========================================
RunAll
========================================
Builder version: 4.70.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/angu-software/NetworkSpyKit.git
Reference: main
Initialized empty Git repository in /host/spi-builder-workspace/.git/
hint: Using 'master' as the name for the initial branch. This default branch name
hint: is subject to change. To configure the initial branch name to use in all
hint: of your new repositories, which will suppress this warning, call:
hint:
hint: git config --global init.defaultBranch <name>
hint:
hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and
hint: 'development'. The just-created branch can be renamed via this command:
hint:
hint: git branch -m <name>
From https://github.com/angu-software/NetworkSpyKit
* branch main -> FETCH_HEAD
* [new branch] main -> origin/main
HEAD is now at f358ab6 chore: Fix typo in test method name
Cloned https://github.com/angu-software/NetworkSpyKit.git
Revision (git rev-parse @):
f358ab6af2275ce958067c813b6b4bc3c8019c9d
SUCCESS checkout https://github.com/angu-software/NetworkSpyKit.git at main
========================================
Build
========================================
Selected platform: wasm
Swift version: 6.3
Building package at path: $PWD
https://github.com/angu-software/NetworkSpyKit.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-2":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/swiftpackageindex/spi-images:wasm-6.3-latest swift build --swift-sdk swift-6.3-RELEASE_wasm 2>&1
wasm-6.3-latest: Pulling from swiftpackageindex/spi-images
Digest: sha256:d69f4e7582c319245442d62a08b2d7c7fd5a0c0c69f5d2ef11d1530cd8d3329b
Status: Image is up to date for registry.gitlab.com/swiftpackageindex/spi-images:wasm-6.3-latest
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-24593BA9C3E375BF.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[3/28] 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/SpyRegistry/SypRegistry.swift:22:25: error: cannot find 'DispatchQueue' in scope
20 | static let shared = SpyRegistry()
21 |
22 | private let queue = DispatchQueue(label: "com.angu-software.NetworkSpyKit.SpyRegistry")
| `- error: cannot find 'DispatchQueue' in scope
23 | private var registry: [String: WeakSpy] = [:]
24 |
/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' 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' 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' only applies to function types
79 |
80 | init(sessionConfiguration: URLSessionConfiguration,
81 | responseProvider: @escaping ResponseProvider = defaultResponse,
| `- error: '@escaping' 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 '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 '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/RequestRecorder.swift:12:25: error: cannot find 'DispatchQueue' in scope
10 | final class RequestRecorder: @unchecked Sendable {
11 |
12 | private let queue = DispatchQueue(label: "com.angu-software.NetworkSpyKit.RequestRecorder")
| `- error: cannot find 'DispatchQueue' in scope
13 | private var requests: [Request] = []
14 |
/host/spi-builder-workspace/Sources/NetworkSpyKit/SafeValueStore.swift:25:24: error: cannot find type 'DispatchQueue' in scope
23 | }
24 |
25 | private let queue: DispatchQueue = DispatchQueue(label: "com.angu-software.SafeValueStore.queue")
| `- error: cannot find type 'DispatchQueue' in scope
26 |
27 | private var _value: Value
/host/spi-builder-workspace/Sources/NetworkSpyKit/SafeValueStore.swift:25:40: error: cannot find 'DispatchQueue' in scope
23 | }
24 |
25 | private let queue: DispatchQueue = DispatchQueue(label: "com.angu-software.SafeValueStore.queue")
| `- error: cannot find 'DispatchQueue' in scope
26 |
27 | private var _value: Value
/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 | }
[4/31] 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 | }
/host/spi-builder-workspace/Sources/NetworkSpyKit/SpyRegistry/SypRegistry.swift:22:25: error: cannot find 'DispatchQueue' in scope
20 | static let shared = SpyRegistry()
21 |
22 | private let queue = DispatchQueue(label: "com.angu-software.NetworkSpyKit.SpyRegistry")
| `- error: cannot find 'DispatchQueue' in scope
23 | private var registry: [String: WeakSpy] = [:]
24 |
/host/spi-builder-workspace/Sources/NetworkSpyKit/SpyRegistry/SypRegistry.swift:26:29: error: cannot infer contextual base in reference to member 'barrier'
24 |
25 | func register(_ spy: NetworkSpy) {
26 | queue.async(flags: .barrier) {
| `- error: cannot infer contextual base in reference to member 'barrier'
27 | self.registry[spy.id] = WeakSpy(spy)
28 | }
/host/spi-builder-workspace/Sources/NetworkSpyKit/SpyRegistry/SypRegistry.swift:32:29: error: cannot infer contextual base in reference to member 'barrier'
30 |
31 | func unregister(byId spyId: String) {
32 | queue.async(flags: .barrier) {
| `- error: cannot infer contextual base in reference to member 'barrier'
33 | self.registry[spyId] = nil
34 | }
[5/31] 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 | }
/host/spi-builder-workspace/Sources/NetworkSpyKit/SpyRegistry/SypRegistry.swift:22:25: error: cannot find 'DispatchQueue' in scope
20 | static let shared = SpyRegistry()
21 |
22 | private let queue = DispatchQueue(label: "com.angu-software.NetworkSpyKit.SpyRegistry")
| `- error: cannot find 'DispatchQueue' in scope
23 | private var registry: [String: WeakSpy] = [:]
24 |
/host/spi-builder-workspace/Sources/NetworkSpyKit/SpyRegistry/SypRegistry.swift:26:29: error: cannot infer contextual base in reference to member 'barrier'
24 |
25 | func register(_ spy: NetworkSpy) {
26 | queue.async(flags: .barrier) {
| `- error: cannot infer contextual base in reference to member 'barrier'
27 | self.registry[spy.id] = WeakSpy(spy)
28 | }
/host/spi-builder-workspace/Sources/NetworkSpyKit/SpyRegistry/SypRegistry.swift:32:29: error: cannot infer contextual base in reference to member 'barrier'
30 |
31 | func unregister(byId spyId: String) {
32 | queue.async(flags: .barrier) {
| `- error: cannot infer contextual base in reference to member 'barrier'
33 | self.registry[spyId] = nil
34 | }
[6/31] 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 | }
/host/spi-builder-workspace/Sources/NetworkSpyKit/SpyRegistry/SypRegistry.swift:22:25: error: cannot find 'DispatchQueue' in scope
20 | static let shared = SpyRegistry()
21 |
22 | private let queue = DispatchQueue(label: "com.angu-software.NetworkSpyKit.SpyRegistry")
| `- error: cannot find 'DispatchQueue' in scope
23 | private var registry: [String: WeakSpy] = [:]
24 |
/host/spi-builder-workspace/Sources/NetworkSpyKit/SpyRegistry/SypRegistry.swift:26:29: error: cannot infer contextual base in reference to member 'barrier'
24 |
25 | func register(_ spy: NetworkSpy) {
26 | queue.async(flags: .barrier) {
| `- error: cannot infer contextual base in reference to member 'barrier'
27 | self.registry[spy.id] = WeakSpy(spy)
28 | }
/host/spi-builder-workspace/Sources/NetworkSpyKit/SpyRegistry/SypRegistry.swift:32:29: error: cannot infer contextual base in reference to member 'barrier'
30 |
31 | func unregister(byId spyId: String) {
32 | queue.async(flags: .barrier) {
| `- error: cannot infer contextual base in reference to member 'barrier'
33 | self.registry[spyId] = nil
34 | }
[7/31] 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]?
[8/31] 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]?
[9/31] 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]?
[10/31] 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]?
[11/31] 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 {
/host/spi-builder-workspace/Sources/NetworkSpyKit/SafeValueStore.swift:25:24: error: cannot find type 'DispatchQueue' in scope
23 | }
24 |
25 | private let queue: DispatchQueue = DispatchQueue(label: "com.angu-software.SafeValueStore.queue")
| `- error: cannot find type 'DispatchQueue' in scope
26 |
27 | private var _value: Value
/host/spi-builder-workspace/Sources/NetworkSpyKit/SafeValueStore.swift:25:40: error: cannot find 'DispatchQueue' in scope
23 | }
24 |
25 | private let queue: DispatchQueue = DispatchQueue(label: "com.angu-software.SafeValueStore.queue")
| `- error: cannot find 'DispatchQueue' in scope
26 |
27 | private var _value: Value
/host/spi-builder-workspace/Sources/NetworkSpyKit/SafeValueStore.swift:19:33: error: cannot infer contextual base in reference to member 'barrier'
17 | }
18 | set {
19 | queue.async(flags: .barrier) {
| `- error: cannot infer contextual base in reference to member 'barrier'
20 | self._value = newValue
21 | }
[12/31] 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 {
/host/spi-builder-workspace/Sources/NetworkSpyKit/SafeValueStore.swift:25:24: error: cannot find type 'DispatchQueue' in scope
23 | }
24 |
25 | private let queue: DispatchQueue = DispatchQueue(label: "com.angu-software.SafeValueStore.queue")
| `- error: cannot find type 'DispatchQueue' in scope
26 |
27 | private var _value: Value
/host/spi-builder-workspace/Sources/NetworkSpyKit/SafeValueStore.swift:25:40: error: cannot find 'DispatchQueue' in scope
23 | }
24 |
25 | private let queue: DispatchQueue = DispatchQueue(label: "com.angu-software.SafeValueStore.queue")
| `- error: cannot find 'DispatchQueue' in scope
26 |
27 | private var _value: Value
/host/spi-builder-workspace/Sources/NetworkSpyKit/SafeValueStore.swift:19:33: error: cannot infer contextual base in reference to member 'barrier'
17 | }
18 | set {
19 | queue.async(flags: .barrier) {
| `- error: cannot infer contextual base in reference to member 'barrier'
20 | self._value = newValue
21 | }
[13/31] 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 {
/host/spi-builder-workspace/Sources/NetworkSpyKit/SafeValueStore.swift:25:24: error: cannot find type 'DispatchQueue' in scope
23 | }
24 |
25 | private let queue: DispatchQueue = DispatchQueue(label: "com.angu-software.SafeValueStore.queue")
| `- error: cannot find type 'DispatchQueue' in scope
26 |
27 | private var _value: Value
/host/spi-builder-workspace/Sources/NetworkSpyKit/SafeValueStore.swift:25:40: error: cannot find 'DispatchQueue' in scope
23 | }
24 |
25 | private let queue: DispatchQueue = DispatchQueue(label: "com.angu-software.SafeValueStore.queue")
| `- error: cannot find 'DispatchQueue' in scope
26 |
27 | private var _value: Value
/host/spi-builder-workspace/Sources/NetworkSpyKit/SafeValueStore.swift:19:33: error: cannot infer contextual base in reference to member 'barrier'
17 | }
18 | set {
19 | queue.async(flags: .barrier) {
| `- error: cannot infer contextual base in reference to member 'barrier'
20 | self._value = newValue
21 | }
[14/31] Compiling NetworkSpyKit MessageStringParts.swift
/host/spi-builder-workspace/Sources/NetworkSpyKit/SpyRegistry/SypRegistry.swift:22:25: error: cannot find 'DispatchQueue' in scope
20 | static let shared = SpyRegistry()
21 |
22 | private let queue = DispatchQueue(label: "com.angu-software.NetworkSpyKit.SpyRegistry")
| `- error: cannot find 'DispatchQueue' in scope
23 | private var registry: [String: WeakSpy] = [:]
24 |
/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.
[15/31] Compiling NetworkSpyKit StartLineParser.swift
/host/spi-builder-workspace/Sources/NetworkSpyKit/SpyRegistry/SypRegistry.swift:22:25: error: cannot find 'DispatchQueue' in scope
20 | static let shared = SpyRegistry()
21 |
22 | private let queue = DispatchQueue(label: "com.angu-software.NetworkSpyKit.SpyRegistry")
| `- error: cannot find 'DispatchQueue' in scope
23 | private var registry: [String: WeakSpy] = [:]
24 |
/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.
[16/31] Compiling NetworkSpyKit InterceptorURLProtocol.swift
/host/spi-builder-workspace/Sources/NetworkSpyKit/SpyRegistry/SypRegistry.swift:22:25: error: cannot find 'DispatchQueue' in scope
20 | static let shared = SpyRegistry()
21 |
22 | private let queue = DispatchQueue(label: "com.angu-software.NetworkSpyKit.SpyRegistry")
| `- error: cannot find 'DispatchQueue' in scope
23 | private var registry: [String: WeakSpy] = [:]
24 |
/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.
[17/31] Compiling NetworkSpyKit NetworkSpy+HTTPURLResponse.swift
/host/spi-builder-workspace/Sources/NetworkSpyKit/SpyRegistry/SypRegistry.swift:22:25: error: cannot find 'DispatchQueue' in scope
20 | static let shared = SpyRegistry()
21 |
22 | private let queue = DispatchQueue(label: "com.angu-software.NetworkSpyKit.SpyRegistry")
| `- error: cannot find 'DispatchQueue' in scope
23 | private var registry: [String: WeakSpy] = [:]
24 |
/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.
[18/31] 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' 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' 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' only applies to function types
79 |
80 | init(sessionConfiguration: URLSessionConfiguration,
81 | responseProvider: @escaping ResponseProvider = defaultResponse,
| `- error: '@escaping' 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 '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 '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/RequestRecorder.swift:12:25: error: cannot find 'DispatchQueue' in scope
10 | final class RequestRecorder: @unchecked Sendable {
11 |
12 | private let queue = DispatchQueue(label: "com.angu-software.NetworkSpyKit.RequestRecorder")
| `- error: cannot find 'DispatchQueue' in scope
13 | private var requests: [Request] = []
14 |
/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.
[19/31] 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' 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' 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' only applies to function types
79 |
80 | init(sessionConfiguration: URLSessionConfiguration,
81 | responseProvider: @escaping ResponseProvider = defaultResponse,
| `- error: '@escaping' 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 '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 '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/RequestRecorder.swift:12:25: error: cannot find 'DispatchQueue' in scope
10 | final class RequestRecorder: @unchecked Sendable {
11 |
12 | private let queue = DispatchQueue(label: "com.angu-software.NetworkSpyKit.RequestRecorder")
| `- error: cannot find 'DispatchQueue' in scope
13 | private var requests: [Request] = []
14 |
/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.
[20/31] 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' 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' 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' only applies to function types
79 |
80 | init(sessionConfiguration: URLSessionConfiguration,
81 | responseProvider: @escaping ResponseProvider = defaultResponse,
| `- error: '@escaping' 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 '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 '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/RequestRecorder.swift:12:25: error: cannot find 'DispatchQueue' in scope
10 | final class RequestRecorder: @unchecked Sendable {
11 |
12 | private let queue = DispatchQueue(label: "com.angu-software.NetworkSpyKit.RequestRecorder")
| `- error: cannot find 'DispatchQueue' in scope
13 | private var requests: [Request] = []
14 |
/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.
[21/31] 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' 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' 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' only applies to function types
79 |
80 | init(sessionConfiguration: URLSessionConfiguration,
81 | responseProvider: @escaping ResponseProvider = defaultResponse,
| `- error: '@escaping' 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 '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 '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/RequestRecorder.swift:12:25: error: cannot find 'DispatchQueue' in scope
10 | final class RequestRecorder: @unchecked Sendable {
11 |
12 | private let queue = DispatchQueue(label: "com.angu-software.NetworkSpyKit.RequestRecorder")
| `- error: cannot find 'DispatchQueue' in scope
13 | private var requests: [Request] = []
14 |
/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.
[22/31] Compiling NetworkSpyKit StubbedResponse+4xx.swift
[23/31] Compiling NetworkSpyKit StubbedResponse+5xx.swift
[24/31] Compiling NetworkSpyKit Response+TeaPot.swift
[25/31] Compiling NetworkSpyKit RequestRecorder.swift
/host/spi-builder-workspace/Sources/NetworkSpyKit/RequestRecorder.swift:12:25: error: cannot find 'DispatchQueue' in scope
10 | final class RequestRecorder: @unchecked Sendable {
11 |
12 | private let queue = DispatchQueue(label: "com.angu-software.NetworkSpyKit.RequestRecorder")
| `- error: cannot find 'DispatchQueue' in scope
13 | private var requests: [Request] = []
14 |
/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/RequestRecorder.swift:22:29: error: cannot infer contextual base in reference to member 'barrier'
20 |
21 | func record(_ request: Request) {
22 | queue.async(flags: .barrier) {
| `- error: cannot infer contextual base in reference to member 'barrier'
23 | self.requests.append(request)
24 | }
[26/31] Compiling NetworkSpyKit StubResponse+JSON.swift
/host/spi-builder-workspace/Sources/NetworkSpyKit/RequestRecorder.swift:12:25: error: cannot find 'DispatchQueue' in scope
10 | final class RequestRecorder: @unchecked Sendable {
11 |
12 | private let queue = DispatchQueue(label: "com.angu-software.NetworkSpyKit.RequestRecorder")
| `- error: cannot find 'DispatchQueue' in scope
13 | private var requests: [Request] = []
14 |
/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/RequestRecorder.swift:22:29: error: cannot infer contextual base in reference to member 'barrier'
20 |
21 | func record(_ request: Request) {
22 | queue.async(flags: .barrier) {
| `- error: cannot infer contextual base in reference to member 'barrier'
23 | self.requests.append(request)
24 | }
[27/31] Compiling NetworkSpyKit StubbedResponse+2xx.swift
/host/spi-builder-workspace/Sources/NetworkSpyKit/RequestRecorder.swift:12:25: error: cannot find 'DispatchQueue' in scope
10 | final class RequestRecorder: @unchecked Sendable {
11 |
12 | private let queue = DispatchQueue(label: "com.angu-software.NetworkSpyKit.RequestRecorder")
| `- error: cannot find 'DispatchQueue' in scope
13 | private var requests: [Request] = []
14 |
/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/RequestRecorder.swift:22:29: error: cannot infer contextual base in reference to member 'barrier'
20 |
21 | func record(_ request: Request) {
22 | queue.async(flags: .barrier) {
| `- error: cannot infer contextual base in reference to member 'barrier'
23 | self.requests.append(request)
24 | }
[28/31] 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,
[29/31] 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,
[30/31] 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,
[31/31] 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,
BUILD FAILURE 6.3 wasm