Build Information
Failed to build MicroClient, reference main (442ca1), with Swift 6.2 for Wasm on 16 Aug 2026 22:23:44 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-54344847-0":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/saguaro1/spi-images:wasm-6.2-latest swift build --swift-sdk swift-6.2-RELEASE_wasm 2>&1Build Log
========================================
RunAll
========================================
Builder version: 5.0.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/otaviocc/MicroClient.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/otaviocc/MicroClient
* branch main -> FETCH_HEAD
* [new branch] main -> origin/main
HEAD is now at 442ca16 Add Linux support and CI (#31)
Cloned https://github.com/otaviocc/MicroClient.git
Revision (git rev-parse @):
442ca168e6320499a5f27607a2c59b6e4f75ff20
SUCCESS checkout https://github.com/otaviocc/MicroClient.git at main
========================================
Build
========================================
Selected platform: wasm
Swift version: 6.2
Building package at path: $PWD
https://github.com/otaviocc/MicroClient.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-54344847-0":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/saguaro1/spi-images:wasm-6.2-latest swift build --swift-sdk swift-6.2-RELEASE_wasm 2>&1
wasm-6.2-latest: Pulling from saguaro1/spi-images
Digest: sha256:70428a4f4110aef5b17a27427e965f31cf3855e8cf1dfdc416ed61c780337965
Status: Image is up to date for registry.gitlab.com/saguaro1/spi-images:wasm-6.2-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/32] Emitting module MicroClient
/host/spi-builder-workspace/Sources/MicroClient/Extensions/URLRequest.swift:28:11: error: cannot find type 'URLRequest' in scope
26 | #endif
27 |
28 | extension URLRequest {
| `- error: cannot find type 'URLRequest' in scope
29 |
30 | static func makeURLRequest(
/host/spi-builder-workspace/Sources/MicroClient/Extensions/URLResponse.swift:28:8: error: non-nominal type 'URLResponse' (aka 'AnyObject') cannot be extended [#NominalTypes]
26 | #endif
27 |
28 | public extension URLResponse {
| `- error: non-nominal type 'URLResponse' (aka 'AnyObject') cannot be extended [#NominalTypes]
29 |
30 | /// Returns the HTTP Header value for "Location". Default: `nil`.
/host/spi-builder-workspace/Sources/MicroClient/Extensions/URLSessionProtocol.swift:37:22: error: cannot find type 'URLRequest' in scope
35 | /// - Returns: A tuple containing the response data and URLResponse.
36 | func data(
37 | for request: URLRequest,
| `- error: cannot find type 'URLRequest' in scope
38 | delegate: URLSessionTaskDelegate?
39 | ) async throws -> (Data, URLResponse)
/host/spi-builder-workspace/Sources/MicroClient/Extensions/URLSessionProtocol.swift:38:19: error: cannot find type 'URLSessionTaskDelegate' in scope
36 | func data(
37 | for request: URLRequest,
38 | delegate: URLSessionTaskDelegate?
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
39 | ) async throws -> (Data, URLResponse)
40 | }
/host/spi-builder-workspace/Sources/MicroClient/Extensions/URLSessionProtocol.swift:39:30: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
37 | for request: URLRequest,
38 | delegate: URLSessionTaskDelegate?
39 | ) async throws -> (Data, URLResponse)
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
40 | }
41 |
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/MicroClient/Extensions/URLSessionProtocol.swift:44:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
42 | // MARK: - URLSession conformance
43 |
44 | extension URLSession: URLSessionProtocol {}
| `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
45 |
/host/spi-builder-workspace/Sources/MicroClient/Interceptors/APIKeyInterceptor.swift:55:66: error: cannot find type 'URLRequest' in scope
53 | // MARK: - Public
54 |
55 | public func intercept(_ request: URLRequest) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
56 | var newRequest = request
57 | newRequest.setValue(apiKey, forHTTPHeaderField: headerName)
/host/spi-builder-workspace/Sources/MicroClient/Interceptors/APIKeyInterceptor.swift:55:38: error: cannot find type 'URLRequest' in scope
53 | // MARK: - Public
54 |
55 | public func intercept(_ request: URLRequest) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
56 | var newRequest = request
57 | newRequest.setValue(apiKey, forHTTPHeaderField: headerName)
/host/spi-builder-workspace/Sources/MicroClient/NetworkRequestInterceptor.swift:39:59: error: cannot find type 'URLRequest' in scope
37 | /// - Returns: A potentially modified `URLRequest`.
38 | /// - Throws: An error if the interception process fails. Throwing an error will cancel the entire request.
39 | func intercept(_ request: URLRequest) async throws -> URLRequest
| `- error: cannot find type 'URLRequest' in scope
40 | }
41 |
/host/spi-builder-workspace/Sources/MicroClient/NetworkRequestInterceptor.swift:39:31: error: cannot find type 'URLRequest' in scope
37 | /// - Returns: A potentially modified `URLRequest`.
38 | /// - Throws: An error if the interception process fails. Throwing an error will cancel the entire request.
39 | func intercept(_ request: URLRequest) async throws -> URLRequest
| `- error: cannot find type 'URLRequest' in scope
40 | }
41 |
/host/spi-builder-workspace/Sources/MicroClient/Interceptors/AcceptHeaderInterceptor.swift:51:66: error: cannot find type 'URLRequest' in scope
49 | // MARK: - Public
50 |
51 | public func intercept(_ request: URLRequest) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
52 | var newRequest = request
53 | newRequest.setValue(acceptType, forHTTPHeaderField: "Accept")
/host/spi-builder-workspace/Sources/MicroClient/Interceptors/AcceptHeaderInterceptor.swift:51:38: error: cannot find type 'URLRequest' in scope
49 | // MARK: - Public
50 |
51 | public func intercept(_ request: URLRequest) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
52 | var newRequest = request
53 | newRequest.setValue(acceptType, forHTTPHeaderField: "Accept")
/host/spi-builder-workspace/Sources/MicroClient/Interceptors/BasicAuthInterceptor.swift:72:66: error: cannot find type 'URLRequest' in scope
70 | // MARK: - Public
71 |
72 | public func intercept(_ request: URLRequest) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
73 | var newRequest = request
74 |
/host/spi-builder-workspace/Sources/MicroClient/Interceptors/BasicAuthInterceptor.swift:72:38: error: cannot find type 'URLRequest' in scope
70 | // MARK: - Public
71 |
72 | public func intercept(_ request: URLRequest) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
73 | var newRequest = request
74 |
/host/spi-builder-workspace/Sources/MicroClient/Interceptors/BearerAuthorizationInterceptor.swift:52:66: error: cannot find type 'URLRequest' in scope
50 | // MARK: - Public
51 |
52 | public func intercept(_ request: URLRequest) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
53 | var newRequest = request
54 |
/host/spi-builder-workspace/Sources/MicroClient/Interceptors/BearerAuthorizationInterceptor.swift:52:38: error: cannot find type 'URLRequest' in scope
50 | // MARK: - Public
51 |
52 | public func intercept(_ request: URLRequest) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
53 | var newRequest = request
54 |
/host/spi-builder-workspace/Sources/MicroClient/Interceptors/CacheControlInterceptor.swift:67:66: error: cannot find type 'URLRequest' in scope
65 | // MARK: - Public
66 |
67 | public func intercept(_ request: URLRequest) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
68 | var newRequest = request
69 | newRequest.setValue(policy.headerValue, forHTTPHeaderField: "Cache-Control")
/host/spi-builder-workspace/Sources/MicroClient/Interceptors/CacheControlInterceptor.swift:67:38: error: cannot find type 'URLRequest' in scope
65 | // MARK: - Public
66 |
67 | public func intercept(_ request: URLRequest) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
68 | var newRequest = request
69 | newRequest.setValue(policy.headerValue, forHTTPHeaderField: "Cache-Control")
/host/spi-builder-workspace/Sources/MicroClient/Interceptors/ContentTypeInterceptor.swift:51:66: error: cannot find type 'URLRequest' in scope
49 | // MARK: - Public
50 |
51 | public func intercept(_ request: URLRequest) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
52 | var newRequest = request
53 |
/host/spi-builder-workspace/Sources/MicroClient/Interceptors/ContentTypeInterceptor.swift:51:38: error: cannot find type 'URLRequest' in scope
49 | // MARK: - Public
50 |
51 | public func intercept(_ request: URLRequest) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
52 | var newRequest = request
53 |
/host/spi-builder-workspace/Sources/MicroClient/Interceptors/RequestIDInterceptor.swift:51:66: error: cannot find type 'URLRequest' in scope
49 | // MARK: - Public
50 |
51 | public func intercept(_ request: URLRequest) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
52 | var newRequest = request
53 | let requestID = UUID().uuidString
/host/spi-builder-workspace/Sources/MicroClient/Interceptors/RequestIDInterceptor.swift:51:38: error: cannot find type 'URLRequest' in scope
49 | // MARK: - Public
50 |
51 | public func intercept(_ request: URLRequest) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
52 | var newRequest = request
53 | let requestID = UUID().uuidString
/host/spi-builder-workspace/Sources/MicroClient/Interceptors/TimeoutInterceptor.swift:50:66: error: cannot find type 'URLRequest' in scope
48 | // MARK: - Public
49 |
50 | public func intercept(_ request: URLRequest) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
51 | var newRequest = request
52 | newRequest.timeoutInterval = timeout
/host/spi-builder-workspace/Sources/MicroClient/Interceptors/TimeoutInterceptor.swift:50:38: error: cannot find type 'URLRequest' in scope
48 | // MARK: - Public
49 |
50 | public func intercept(_ request: URLRequest) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
51 | var newRequest = request
52 | newRequest.timeoutInterval = timeout
/host/spi-builder-workspace/Sources/MicroClient/Interceptors/UserAgentInterceptor.swift:58:66: error: cannot find type 'URLRequest' in scope
56 | // MARK: - Public
57 |
58 | public func intercept(_ request: URLRequest) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
59 | var newRequest = request
60 | newRequest.setValue(userAgent, forHTTPHeaderField: "User-Agent")
/host/spi-builder-workspace/Sources/MicroClient/Interceptors/UserAgentInterceptor.swift:58:38: error: cannot find type 'URLRequest' in scope
56 | // MARK: - Public
57 |
58 | public func intercept(_ request: URLRequest) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
59 | var newRequest = request
60 | newRequest.setValue(userAgent, forHTTPHeaderField: "User-Agent")
/host/spi-builder-workspace/Sources/MicroClient/NetworkClientError.swift:42:60: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
40 | /// - `response`: The metadata associated with the HTTP response.
41 | /// - `data`: The raw response body, which may contain more specific error details from the server.
42 | case unacceptableStatusCode(statusCode: Int, response: URLResponse, data: Data?)
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
43 |
44 | /// The response body could not be decoded into the expected `Decodable` type.
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/MicroClient/NetworkClientError.swift:42:10: warning: associated value 'unacceptableStatusCode(statusCode:response:data:)' of 'Sendable'-conforming enum 'NetworkClientError' contains non-Sendable type 'URLResponse' (aka 'AnyObject')
40 | /// - `response`: The metadata associated with the HTTP response.
41 | /// - `data`: The raw response body, which may contain more specific error details from the server.
42 | case unacceptableStatusCode(statusCode: Int, response: URLResponse, data: Data?)
| `- warning: associated value 'unacceptableStatusCode(statusCode:response:data:)' of 'Sendable'-conforming enum 'NetworkClientError' contains non-Sendable type 'URLResponse' (aka 'AnyObject')
43 |
44 | /// The response body could not be decoded into the expected `Decodable` type.
/host/spi-builder-workspace/Sources/MicroClient/NetworkResponse.swift:38:26: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
36 |
37 | /// The network response.
38 | public let response: URLResponse
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
39 |
40 | // MARK: - Life cycle
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/MicroClient/NetworkResponse.swift:44:19: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
42 | public init(
43 | value: ResponseModel,
44 | response: URLResponse
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
45 | ) {
46 | self.value = value
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/MicroClient/NetworkResponse.swift:38:16: error: stored property 'response' of 'Sendable'-conforming generic struct 'NetworkResponse' has non-Sendable type 'URLResponse' (aka 'AnyObject')
36 |
37 | /// The network response.
38 | public let response: URLResponse
| `- error: stored property 'response' of 'Sendable'-conforming generic struct 'NetworkResponse' has non-Sendable type 'URLResponse' (aka 'AnyObject')
39 |
40 | // MARK: - Life cycle
[#NominalTypes]: <https://docs.swift.org/compiler/documentation/diagnostics/nominal-types>
[4/36] Compiling MicroClient TimeoutInterceptor.swift
/host/spi-builder-workspace/Sources/MicroClient/Interceptors/TimeoutInterceptor.swift:50:66: error: cannot find type 'URLRequest' in scope
48 | // MARK: - Public
49 |
50 | public func intercept(_ request: URLRequest) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
51 | var newRequest = request
52 | newRequest.timeoutInterval = timeout
/host/spi-builder-workspace/Sources/MicroClient/Interceptors/TimeoutInterceptor.swift:50:38: error: cannot find type 'URLRequest' in scope
48 | // MARK: - Public
49 |
50 | public func intercept(_ request: URLRequest) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
51 | var newRequest = request
52 | newRequest.timeoutInterval = timeout
/host/spi-builder-workspace/Sources/MicroClient/NetworkRequestInterceptor.swift:39:59: error: cannot find type 'URLRequest' in scope
37 | /// - Returns: A potentially modified `URLRequest`.
38 | /// - Throws: An error if the interception process fails. Throwing an error will cancel the entire request.
39 | func intercept(_ request: URLRequest) async throws -> URLRequest
| `- error: cannot find type 'URLRequest' in scope
40 | }
41 |
/host/spi-builder-workspace/Sources/MicroClient/NetworkRequestInterceptor.swift:39:31: error: cannot find type 'URLRequest' in scope
37 | /// - Returns: A potentially modified `URLRequest`.
38 | /// - Throws: An error if the interception process fails. Throwing an error will cancel the entire request.
39 | func intercept(_ request: URLRequest) async throws -> URLRequest
| `- error: cannot find type 'URLRequest' in scope
40 | }
41 |
/host/spi-builder-workspace/Sources/MicroClient/Interceptors/UserAgentInterceptor.swift:58:66: error: cannot find type 'URLRequest' in scope
56 | // MARK: - Public
57 |
58 | public func intercept(_ request: URLRequest) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
59 | var newRequest = request
60 | newRequest.setValue(userAgent, forHTTPHeaderField: "User-Agent")
/host/spi-builder-workspace/Sources/MicroClient/Interceptors/UserAgentInterceptor.swift:58:38: error: cannot find type 'URLRequest' in scope
56 | // MARK: - Public
57 |
58 | public func intercept(_ request: URLRequest) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
59 | var newRequest = request
60 | newRequest.setValue(userAgent, forHTTPHeaderField: "User-Agent")
/host/spi-builder-workspace/Sources/MicroClient/NetworkClient.swift:88:25: error: cannot find type 'URLRequest' in scope
86 | }
87 |
88 | var urlRequest: URLRequest
| `- error: cannot find type 'URLRequest' in scope
89 | do {
90 | urlRequest = try URLRequest.makeURLRequest(
/host/spi-builder-workspace/Sources/MicroClient/NetworkClient.swift:90:30: error: cannot find 'URLRequest' in scope
88 | var urlRequest: URLRequest
89 | do {
90 | urlRequest = try URLRequest.makeURLRequest(
| `- error: cannot find 'URLRequest' in scope
91 | configuration: configuration,
92 | networkRequest: networkRequest
/host/spi-builder-workspace/Sources/MicroClient/NetworkClient.swift:117:23: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
115 |
116 | let data: Data
117 | let response: URLResponse
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
118 |
119 | do {
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/MicroClient/Extensions/URLSessionProtocol.swift:37:22: error: cannot find type 'URLRequest' in scope
35 | /// - Returns: A tuple containing the response data and URLResponse.
36 | func data(
37 | for request: URLRequest,
| `- error: cannot find type 'URLRequest' in scope
38 | delegate: URLSessionTaskDelegate?
39 | ) async throws -> (Data, URLResponse)
/host/spi-builder-workspace/Sources/MicroClient/Extensions/URLSessionProtocol.swift:38:19: error: cannot find type 'URLSessionTaskDelegate' in scope
36 | func data(
37 | for request: URLRequest,
38 | delegate: URLSessionTaskDelegate?
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
39 | ) async throws -> (Data, URLResponse)
40 | }
/host/spi-builder-workspace/Sources/MicroClient/NetworkClient.swift:122:27: error: 'nil' requires a contextual type
120 | (data, response) = try await configuration.session.data(
121 | for: urlRequest,
122 | delegate: nil
| `- error: 'nil' requires a contextual type
123 | )
124 | } catch let error as CancellationError {
/host/spi-builder-workspace/Sources/MicroClient/NetworkClient.swift:131:40: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
129 | }
130 |
131 | if let httpResponse = response as? HTTPURLResponse {
| `- warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
132 | log(
133 | .info,
/host/spi-builder-workspace/Sources/MicroClient/NetworkClient.swift:131:44: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
129 | }
130 |
131 | if let httpResponse = response as? HTTPURLResponse {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
132 | log(
133 | .info,
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/MicroClient/NetworkClient.swift:134:43: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
132 | log(
133 | .info,
134 | "Response: \(httpResponse.statusCode) \(urlRequest.httpMethod ?? "") \(urlRequest.url?.absoluteString ?? "")"
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
135 | )
136 | log(.debug, "Response headers: \(httpResponse.allHeaderFields)")
/host/spi-builder-workspace/Sources/MicroClient/NetworkClient.swift:136:59: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
134 | "Response: \(httpResponse.statusCode) \(urlRequest.httpMethod ?? "") \(urlRequest.url?.absoluteString ?? "")"
135 | )
136 | log(.debug, "Response headers: \(httpResponse.allHeaderFields)")
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
137 |
138 | guard (200...299).contains(httpResponse.statusCode) else {
/host/spi-builder-workspace/Sources/MicroClient/NetworkClient.swift:138:53: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
136 | log(.debug, "Response headers: \(httpResponse.allHeaderFields)")
137 |
138 | guard (200...299).contains(httpResponse.statusCode) else {
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
139 | log(.error, "Unacceptable status code: \(httpResponse.statusCode)")
140 | throw NetworkClientError.unacceptableStatusCode(
/host/spi-builder-workspace/Sources/MicroClient/NetworkClient.swift:139:71: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
137 |
138 | guard (200...299).contains(httpResponse.statusCode) else {
139 | log(.error, "Unacceptable status code: \(httpResponse.statusCode)")
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
140 | throw NetworkClientError.unacceptableStatusCode(
141 | statusCode: httpResponse.statusCode,
/host/spi-builder-workspace/Sources/MicroClient/NetworkClient.swift:141:46: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
139 | log(.error, "Unacceptable status code: \(httpResponse.statusCode)")
140 | throw NetworkClientError.unacceptableStatusCode(
141 | statusCode: httpResponse.statusCode,
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
142 | response: httpResponse,
143 | data: data
[5/36] Compiling MicroClient UserAgentInterceptor.swift
/host/spi-builder-workspace/Sources/MicroClient/Interceptors/TimeoutInterceptor.swift:50:66: error: cannot find type 'URLRequest' in scope
48 | // MARK: - Public
49 |
50 | public func intercept(_ request: URLRequest) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
51 | var newRequest = request
52 | newRequest.timeoutInterval = timeout
/host/spi-builder-workspace/Sources/MicroClient/Interceptors/TimeoutInterceptor.swift:50:38: error: cannot find type 'URLRequest' in scope
48 | // MARK: - Public
49 |
50 | public func intercept(_ request: URLRequest) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
51 | var newRequest = request
52 | newRequest.timeoutInterval = timeout
/host/spi-builder-workspace/Sources/MicroClient/NetworkRequestInterceptor.swift:39:59: error: cannot find type 'URLRequest' in scope
37 | /// - Returns: A potentially modified `URLRequest`.
38 | /// - Throws: An error if the interception process fails. Throwing an error will cancel the entire request.
39 | func intercept(_ request: URLRequest) async throws -> URLRequest
| `- error: cannot find type 'URLRequest' in scope
40 | }
41 |
/host/spi-builder-workspace/Sources/MicroClient/NetworkRequestInterceptor.swift:39:31: error: cannot find type 'URLRequest' in scope
37 | /// - Returns: A potentially modified `URLRequest`.
38 | /// - Throws: An error if the interception process fails. Throwing an error will cancel the entire request.
39 | func intercept(_ request: URLRequest) async throws -> URLRequest
| `- error: cannot find type 'URLRequest' in scope
40 | }
41 |
/host/spi-builder-workspace/Sources/MicroClient/Interceptors/UserAgentInterceptor.swift:58:66: error: cannot find type 'URLRequest' in scope
56 | // MARK: - Public
57 |
58 | public func intercept(_ request: URLRequest) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
59 | var newRequest = request
60 | newRequest.setValue(userAgent, forHTTPHeaderField: "User-Agent")
/host/spi-builder-workspace/Sources/MicroClient/Interceptors/UserAgentInterceptor.swift:58:38: error: cannot find type 'URLRequest' in scope
56 | // MARK: - Public
57 |
58 | public func intercept(_ request: URLRequest) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
59 | var newRequest = request
60 | newRequest.setValue(userAgent, forHTTPHeaderField: "User-Agent")
/host/spi-builder-workspace/Sources/MicroClient/NetworkClient.swift:88:25: error: cannot find type 'URLRequest' in scope
86 | }
87 |
88 | var urlRequest: URLRequest
| `- error: cannot find type 'URLRequest' in scope
89 | do {
90 | urlRequest = try URLRequest.makeURLRequest(
/host/spi-builder-workspace/Sources/MicroClient/NetworkClient.swift:90:30: error: cannot find 'URLRequest' in scope
88 | var urlRequest: URLRequest
89 | do {
90 | urlRequest = try URLRequest.makeURLRequest(
| `- error: cannot find 'URLRequest' in scope
91 | configuration: configuration,
92 | networkRequest: networkRequest
/host/spi-builder-workspace/Sources/MicroClient/NetworkClient.swift:117:23: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
115 |
116 | let data: Data
117 | let response: URLResponse
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
118 |
119 | do {
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/MicroClient/Extensions/URLSessionProtocol.swift:37:22: error: cannot find type 'URLRequest' in scope
35 | /// - Returns: A tuple containing the response data and URLResponse.
36 | func data(
37 | for request: URLRequest,
| `- error: cannot find type 'URLRequest' in scope
38 | delegate: URLSessionTaskDelegate?
39 | ) async throws -> (Data, URLResponse)
/host/spi-builder-workspace/Sources/MicroClient/Extensions/URLSessionProtocol.swift:38:19: error: cannot find type 'URLSessionTaskDelegate' in scope
36 | func data(
37 | for request: URLRequest,
38 | delegate: URLSessionTaskDelegate?
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
39 | ) async throws -> (Data, URLResponse)
40 | }
/host/spi-builder-workspace/Sources/MicroClient/NetworkClient.swift:122:27: error: 'nil' requires a contextual type
120 | (data, response) = try await configuration.session.data(
121 | for: urlRequest,
122 | delegate: nil
| `- error: 'nil' requires a contextual type
123 | )
124 | } catch let error as CancellationError {
/host/spi-builder-workspace/Sources/MicroClient/NetworkClient.swift:131:40: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
129 | }
130 |
131 | if let httpResponse = response as? HTTPURLResponse {
| `- warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
132 | log(
133 | .info,
/host/spi-builder-workspace/Sources/MicroClient/NetworkClient.swift:131:44: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
129 | }
130 |
131 | if let httpResponse = response as? HTTPURLResponse {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
132 | log(
133 | .info,
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/MicroClient/NetworkClient.swift:134:43: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
132 | log(
133 | .info,
134 | "Response: \(httpResponse.statusCode) \(urlRequest.httpMethod ?? "") \(urlRequest.url?.absoluteString ?? "")"
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
135 | )
136 | log(.debug, "Response headers: \(httpResponse.allHeaderFields)")
/host/spi-builder-workspace/Sources/MicroClient/NetworkClient.swift:136:59: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
134 | "Response: \(httpResponse.statusCode) \(urlRequest.httpMethod ?? "") \(urlRequest.url?.absoluteString ?? "")"
135 | )
136 | log(.debug, "Response headers: \(httpResponse.allHeaderFields)")
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
137 |
138 | guard (200...299).contains(httpResponse.statusCode) else {
/host/spi-builder-workspace/Sources/MicroClient/NetworkClient.swift:138:53: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
136 | log(.debug, "Response headers: \(httpResponse.allHeaderFields)")
137 |
138 | guard (200...299).contains(httpResponse.statusCode) else {
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
139 | log(.error, "Unacceptable status code: \(httpResponse.statusCode)")
140 | throw NetworkClientError.unacceptableStatusCode(
/host/spi-builder-workspace/Sources/MicroClient/NetworkClient.swift:139:71: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
137 |
138 | guard (200...299).contains(httpResponse.statusCode) else {
139 | log(.error, "Unacceptable status code: \(httpResponse.statusCode)")
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
140 | throw NetworkClientError.unacceptableStatusCode(
141 | statusCode: httpResponse.statusCode,
/host/spi-builder-workspace/Sources/MicroClient/NetworkClient.swift:141:46: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
139 | log(.error, "Unacceptable status code: \(httpResponse.statusCode)")
140 | throw NetworkClientError.unacceptableStatusCode(
141 | statusCode: httpResponse.statusCode,
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
142 | response: httpResponse,
143 | data: data
[6/36] Compiling MicroClient StdoutLogger.swift
/host/spi-builder-workspace/Sources/MicroClient/Interceptors/TimeoutInterceptor.swift:50:66: error: cannot find type 'URLRequest' in scope
48 | // MARK: - Public
49 |
50 | public func intercept(_ request: URLRequest) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
51 | var newRequest = request
52 | newRequest.timeoutInterval = timeout
/host/spi-builder-workspace/Sources/MicroClient/Interceptors/TimeoutInterceptor.swift:50:38: error: cannot find type 'URLRequest' in scope
48 | // MARK: - Public
49 |
50 | public func intercept(_ request: URLRequest) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
51 | var newRequest = request
52 | newRequest.timeoutInterval = timeout
/host/spi-builder-workspace/Sources/MicroClient/NetworkRequestInterceptor.swift:39:59: error: cannot find type 'URLRequest' in scope
37 | /// - Returns: A potentially modified `URLRequest`.
38 | /// - Throws: An error if the interception process fails. Throwing an error will cancel the entire request.
39 | func intercept(_ request: URLRequest) async throws -> URLRequest
| `- error: cannot find type 'URLRequest' in scope
40 | }
41 |
/host/spi-builder-workspace/Sources/MicroClient/NetworkRequestInterceptor.swift:39:31: error: cannot find type 'URLRequest' in scope
37 | /// - Returns: A potentially modified `URLRequest`.
38 | /// - Throws: An error if the interception process fails. Throwing an error will cancel the entire request.
39 | func intercept(_ request: URLRequest) async throws -> URLRequest
| `- error: cannot find type 'URLRequest' in scope
40 | }
41 |
/host/spi-builder-workspace/Sources/MicroClient/Interceptors/UserAgentInterceptor.swift:58:66: error: cannot find type 'URLRequest' in scope
56 | // MARK: - Public
57 |
58 | public func intercept(_ request: URLRequest) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
59 | var newRequest = request
60 | newRequest.setValue(userAgent, forHTTPHeaderField: "User-Agent")
/host/spi-builder-workspace/Sources/MicroClient/Interceptors/UserAgentInterceptor.swift:58:38: error: cannot find type 'URLRequest' in scope
56 | // MARK: - Public
57 |
58 | public func intercept(_ request: URLRequest) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
59 | var newRequest = request
60 | newRequest.setValue(userAgent, forHTTPHeaderField: "User-Agent")
/host/spi-builder-workspace/Sources/MicroClient/NetworkClient.swift:88:25: error: cannot find type 'URLRequest' in scope
86 | }
87 |
88 | var urlRequest: URLRequest
| `- error: cannot find type 'URLRequest' in scope
89 | do {
90 | urlRequest = try URLRequest.makeURLRequest(
/host/spi-builder-workspace/Sources/MicroClient/NetworkClient.swift:90:30: error: cannot find 'URLRequest' in scope
88 | var urlRequest: URLRequest
89 | do {
90 | urlRequest = try URLRequest.makeURLRequest(
| `- error: cannot find 'URLRequest' in scope
91 | configuration: configuration,
92 | networkRequest: networkRequest
/host/spi-builder-workspace/Sources/MicroClient/NetworkClient.swift:117:23: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
115 |
116 | let data: Data
117 | let response: URLResponse
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
118 |
119 | do {
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/MicroClient/Extensions/URLSessionProtocol.swift:37:22: error: cannot find type 'URLRequest' in scope
35 | /// - Returns: A tuple containing the response data and URLResponse.
36 | func data(
37 | for request: URLRequest,
| `- error: cannot find type 'URLRequest' in scope
38 | delegate: URLSessionTaskDelegate?
39 | ) async throws -> (Data, URLResponse)
/host/spi-builder-workspace/Sources/MicroClient/Extensions/URLSessionProtocol.swift:38:19: error: cannot find type 'URLSessionTaskDelegate' in scope
36 | func data(
37 | for request: URLRequest,
38 | delegate: URLSessionTaskDelegate?
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
39 | ) async throws -> (Data, URLResponse)
40 | }
/host/spi-builder-workspace/Sources/MicroClient/NetworkClient.swift:122:27: error: 'nil' requires a contextual type
120 | (data, response) = try await configuration.session.data(
121 | for: urlRequest,
122 | delegate: nil
| `- error: 'nil' requires a contextual type
123 | )
124 | } catch let error as CancellationError {
/host/spi-builder-workspace/Sources/MicroClient/NetworkClient.swift:131:40: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
129 | }
130 |
131 | if let httpResponse = response as? HTTPURLResponse {
| `- warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
132 | log(
133 | .info,
/host/spi-builder-workspace/Sources/MicroClient/NetworkClient.swift:131:44: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
129 | }
130 |
131 | if let httpResponse = response as? HTTPURLResponse {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
132 | log(
133 | .info,
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/MicroClient/NetworkClient.swift:134:43: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
132 | log(
133 | .info,
134 | "Response: \(httpResponse.statusCode) \(urlRequest.httpMethod ?? "") \(urlRequest.url?.absoluteString ?? "")"
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
135 | )
136 | log(.debug, "Response headers: \(httpResponse.allHeaderFields)")
/host/spi-builder-workspace/Sources/MicroClient/NetworkClient.swift:136:59: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
134 | "Response: \(httpResponse.statusCode) \(urlRequest.httpMethod ?? "") \(urlRequest.url?.absoluteString ?? "")"
135 | )
136 | log(.debug, "Response headers: \(httpResponse.allHeaderFields)")
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
137 |
138 | guard (200...299).contains(httpResponse.statusCode) else {
/host/spi-builder-workspace/Sources/MicroClient/NetworkClient.swift:138:53: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
136 | log(.debug, "Response headers: \(httpResponse.allHeaderFields)")
137 |
138 | guard (200...299).contains(httpResponse.statusCode) else {
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
139 | log(.error, "Unacceptable status code: \(httpResponse.statusCode)")
140 | throw NetworkClientError.unacceptableStatusCode(
/host/spi-builder-workspace/Sources/MicroClient/NetworkClient.swift:139:71: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
137 |
138 | guard (200...299).contains(httpResponse.statusCode) else {
139 | log(.error, "Unacceptable status code: \(httpResponse.statusCode)")
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
140 | throw NetworkClientError.unacceptableStatusCode(
141 | statusCode: httpResponse.statusCode,
/host/spi-builder-workspace/Sources/MicroClient/NetworkClient.swift:141:46: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
139 | log(.error, "Unacceptable status code: \(httpResponse.statusCode)")
140 | throw NetworkClientError.unacceptableStatusCode(
141 | statusCode: httpResponse.statusCode,
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
142 | response: httpResponse,
143 | data: data
[7/36] Compiling MicroClient NetworkClient.swift
/host/spi-builder-workspace/Sources/MicroClient/Interceptors/TimeoutInterceptor.swift:50:66: error: cannot find type 'URLRequest' in scope
48 | // MARK: - Public
49 |
50 | public func intercept(_ request: URLRequest) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
51 | var newRequest = request
52 | newRequest.timeoutInterval = timeout
/host/spi-builder-workspace/Sources/MicroClient/Interceptors/TimeoutInterceptor.swift:50:38: error: cannot find type 'URLRequest' in scope
48 | // MARK: - Public
49 |
50 | public func intercept(_ request: URLRequest) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
51 | var newRequest = request
52 | newRequest.timeoutInterval = timeout
/host/spi-builder-workspace/Sources/MicroClient/NetworkRequestInterceptor.swift:39:59: error: cannot find type 'URLRequest' in scope
37 | /// - Returns: A potentially modified `URLRequest`.
38 | /// - Throws: An error if the interception process fails. Throwing an error will cancel the entire request.
39 | func intercept(_ request: URLRequest) async throws -> URLRequest
| `- error: cannot find type 'URLRequest' in scope
40 | }
41 |
/host/spi-builder-workspace/Sources/MicroClient/NetworkRequestInterceptor.swift:39:31: error: cannot find type 'URLRequest' in scope
37 | /// - Returns: A potentially modified `URLRequest`.
38 | /// - Throws: An error if the interception process fails. Throwing an error will cancel the entire request.
39 | func intercept(_ request: URLRequest) async throws -> URLRequest
| `- error: cannot find type 'URLRequest' in scope
40 | }
41 |
/host/spi-builder-workspace/Sources/MicroClient/Interceptors/UserAgentInterceptor.swift:58:66: error: cannot find type 'URLRequest' in scope
56 | // MARK: - Public
57 |
58 | public func intercept(_ request: URLRequest) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
59 | var newRequest = request
60 | newRequest.setValue(userAgent, forHTTPHeaderField: "User-Agent")
/host/spi-builder-workspace/Sources/MicroClient/Interceptors/UserAgentInterceptor.swift:58:38: error: cannot find type 'URLRequest' in scope
56 | // MARK: - Public
57 |
58 | public func intercept(_ request: URLRequest) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
59 | var newRequest = request
60 | newRequest.setValue(userAgent, forHTTPHeaderField: "User-Agent")
/host/spi-builder-workspace/Sources/MicroClient/NetworkClient.swift:88:25: error: cannot find type 'URLRequest' in scope
86 | }
87 |
88 | var urlRequest: URLRequest
| `- error: cannot find type 'URLRequest' in scope
89 | do {
90 | urlRequest = try URLRequest.makeURLRequest(
/host/spi-builder-workspace/Sources/MicroClient/NetworkClient.swift:90:30: error: cannot find 'URLRequest' in scope
88 | var urlRequest: URLRequest
89 | do {
90 | urlRequest = try URLRequest.makeURLRequest(
| `- error: cannot find 'URLRequest' in scope
91 | configuration: configuration,
92 | networkRequest: networkRequest
/host/spi-builder-workspace/Sources/MicroClient/NetworkClient.swift:117:23: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
115 |
116 | let data: Data
117 | let response: URLResponse
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
118 |
119 | do {
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/MicroClient/Extensions/URLSessionProtocol.swift:37:22: error: cannot find type 'URLRequest' in scope
35 | /// - Returns: A tuple containing the response data and URLResponse.
36 | func data(
37 | for request: URLRequest,
| `- error: cannot find type 'URLRequest' in scope
38 | delegate: URLSessionTaskDelegate?
39 | ) async throws -> (Data, URLResponse)
/host/spi-builder-workspace/Sources/MicroClient/Extensions/URLSessionProtocol.swift:38:19: error: cannot find type 'URLSessionTaskDelegate' in scope
36 | func data(
37 | for request: URLRequest,
38 | delegate: URLSessionTaskDelegate?
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
39 | ) async throws -> (Data, URLResponse)
40 | }
/host/spi-builder-workspace/Sources/MicroClient/NetworkClient.swift:122:27: error: 'nil' requires a contextual type
120 | (data, response) = try await configuration.session.data(
121 | for: urlRequest,
122 | delegate: nil
| `- error: 'nil' requires a contextual type
123 | )
124 | } catch let error as CancellationError {
/host/spi-builder-workspace/Sources/MicroClient/NetworkClient.swift:131:40: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
129 | }
130 |
131 | if let httpResponse = response as? HTTPURLResponse {
| `- warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
132 | log(
133 | .info,
/host/spi-builder-workspace/Sources/MicroClient/NetworkClient.swift:131:44: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
129 | }
130 |
131 | if let httpResponse = response as? HTTPURLResponse {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
132 | log(
133 | .info,
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/MicroClient/NetworkClient.swift:134:43: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
132 | log(
133 | .info,
134 | "Response: \(httpResponse.statusCode) \(urlRequest.httpMethod ?? "") \(urlRequest.url?.absoluteString ?? "")"
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
135 | )
136 | log(.debug, "Response headers: \(httpResponse.allHeaderFields)")
/host/spi-builder-workspace/Sources/MicroClient/NetworkClient.swift:136:59: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
134 | "Response: \(httpResponse.statusCode) \(urlRequest.httpMethod ?? "") \(urlRequest.url?.absoluteString ?? "")"
135 | )
136 | log(.debug, "Response headers: \(httpResponse.allHeaderFields)")
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
137 |
138 | guard (200...299).contains(httpResponse.statusCode) else {
/host/spi-builder-workspace/Sources/MicroClient/NetworkClient.swift:138:53: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
136 | log(.debug, "Response headers: \(httpResponse.allHeaderFields)")
137 |
138 | guard (200...299).contains(httpResponse.statusCode) else {
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
139 | log(.error, "Unacceptable status code: \(httpResponse.statusCode)")
140 | throw NetworkClientError.unacceptableStatusCode(
/host/spi-builder-workspace/Sources/MicroClient/NetworkClient.swift:139:71: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
137 |
138 | guard (200...299).contains(httpResponse.statusCode) else {
139 | log(.error, "Unacceptable status code: \(httpResponse.statusCode)")
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
140 | throw NetworkClientError.unacceptableStatusCode(
141 | statusCode: httpResponse.statusCode,
/host/spi-builder-workspace/Sources/MicroClient/NetworkClient.swift:141:46: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
139 | log(.error, "Unacceptable status code: \(httpResponse.statusCode)")
140 | throw NetworkClientError.unacceptableStatusCode(
141 | statusCode: httpResponse.statusCode,
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
142 | response: httpResponse,
143 | data: data
[8/36] Compiling MicroClient URLComponents.swift
/host/spi-builder-workspace/Sources/MicroClient/Extensions/URLRequest.swift:28:11: error: cannot find type 'URLRequest' in scope
26 | #endif
27 |
28 | extension URLRequest {
| `- error: cannot find type 'URLRequest' in scope
29 |
30 | static func makeURLRequest(
/host/spi-builder-workspace/Sources/MicroClient/Extensions/URLResponse.swift:28:8: error: non-nominal type 'URLResponse' (aka 'AnyObject') cannot be extended [#NominalTypes]
26 | #endif
27 |
28 | public extension URLResponse {
| `- error: non-nominal type 'URLResponse' (aka 'AnyObject') cannot be extended [#NominalTypes]
29 |
30 | /// Returns the HTTP Header value for "Location". Default: `nil`.
/host/spi-builder-workspace/Sources/MicroClient/Extensions/URLSessionProtocol.swift:37:22: error: cannot find type 'URLRequest' in scope
35 | /// - Returns: A tuple containing the response data and URLResponse.
36 | func data(
37 | for request: URLRequest,
| `- error: cannot find type 'URLRequest' in scope
38 | delegate: URLSessionTaskDelegate?
39 | ) async throws -> (Data, URLResponse)
/host/spi-builder-workspace/Sources/MicroClient/Extensions/URLSessionProtocol.swift:38:19: error: cannot find type 'URLSessionTaskDelegate' in scope
36 | func data(
37 | for request: URLRequest,
38 | delegate: URLSessionTaskDelegate?
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
39 | ) async throws -> (Data, URLResponse)
40 | }
/host/spi-builder-workspace/Sources/MicroClient/Extensions/URLSessionProtocol.swift:39:30: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
37 | for request: URLRequest,
38 | delegate: URLSessionTaskDelegate?
39 | ) async throws -> (Data, URLResponse)
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
40 | }
41 |
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/MicroClient/Extensions/URLSessionProtocol.swift:44:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
42 | // MARK: - URLSession conformance
43 |
44 | extension URLSession: URLSessionProtocol {}
| `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
45 |
/host/spi-builder-workspace/Sources/MicroClient/Extensions/URLRequest.swift:33:17: error: cannot find type 'URLRequest' in scope
31 | configuration: NetworkConfiguration,
32 | networkRequest: NetworkRequest<some Any, some Any>
33 | ) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
34 | let url = try URL.makeURL(
35 | configuration: configuration,
[#NominalTypes]: <https://docs.swift.org/compiler/documentation/diagnostics/nominal-types>
[9/36] Compiling MicroClient URLRequest.swift
/host/spi-builder-workspace/Sources/MicroClient/Extensions/URLRequest.swift:28:11: error: cannot find type 'URLRequest' in scope
26 | #endif
27 |
28 | extension URLRequest {
| `- error: cannot find type 'URLRequest' in scope
29 |
30 | static func makeURLRequest(
/host/spi-builder-workspace/Sources/MicroClient/Extensions/URLResponse.swift:28:8: error: non-nominal type 'URLResponse' (aka 'AnyObject') cannot be extended [#NominalTypes]
26 | #endif
27 |
28 | public extension URLResponse {
| `- error: non-nominal type 'URLResponse' (aka 'AnyObject') cannot be extended [#NominalTypes]
29 |
30 | /// Returns the HTTP Header value for "Location". Default: `nil`.
/host/spi-builder-workspace/Sources/MicroClient/Extensions/URLSessionProtocol.swift:37:22: error: cannot find type 'URLRequest' in scope
35 | /// - Returns: A tuple containing the response data and URLResponse.
36 | func data(
37 | for request: URLRequest,
| `- error: cannot find type 'URLRequest' in scope
38 | delegate: URLSessionTaskDelegate?
39 | ) async throws -> (Data, URLResponse)
/host/spi-builder-workspace/Sources/MicroClient/Extensions/URLSessionProtocol.swift:38:19: error: cannot find type 'URLSessionTaskDelegate' in scope
36 | func data(
37 | for request: URLRequest,
38 | delegate: URLSessionTaskDelegate?
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
39 | ) async throws -> (Data, URLResponse)
40 | }
/host/spi-builder-workspace/Sources/MicroClient/Extensions/URLSessionProtocol.swift:39:30: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
37 | for request: URLRequest,
38 | delegate: URLSessionTaskDelegate?
39 | ) async throws -> (Data, URLResponse)
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
40 | }
41 |
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/MicroClient/Extensions/URLSessionProtocol.swift:44:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
42 | // MARK: - URLSession conformance
43 |
44 | extension URLSession: URLSessionProtocol {}
| `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
45 |
/host/spi-builder-workspace/Sources/MicroClient/Extensions/URLRequest.swift:33:17: error: cannot find type 'URLRequest' in scope
31 | configuration: NetworkConfiguration,
32 | networkRequest: NetworkRequest<some Any, some Any>
33 | ) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
34 | let url = try URL.makeURL(
35 | configuration: configuration,
[#NominalTypes]: <https://docs.swift.org/compiler/documentation/diagnostics/nominal-types>
[10/36] Compiling MicroClient URLResponse.swift
/host/spi-builder-workspace/Sources/MicroClient/Extensions/URLRequest.swift:28:11: error: cannot find type 'URLRequest' in scope
26 | #endif
27 |
28 | extension URLRequest {
| `- error: cannot find type 'URLRequest' in scope
29 |
30 | static func makeURLRequest(
/host/spi-builder-workspace/Sources/MicroClient/Extensions/URLResponse.swift:28:8: error: non-nominal type 'URLResponse' (aka 'AnyObject') cannot be extended [#NominalTypes]
26 | #endif
27 |
28 | public extension URLResponse {
| `- error: non-nominal type 'URLResponse' (aka 'AnyObject') cannot be extended [#NominalTypes]
29 |
30 | /// Returns the HTTP Header value for "Location". Default: `nil`.
/host/spi-builder-workspace/Sources/MicroClient/Extensions/URLSessionProtocol.swift:37:22: error: cannot find type 'URLRequest' in scope
35 | /// - Returns: A tuple containing the response data and URLResponse.
36 | func data(
37 | for request: URLRequest,
| `- error: cannot find type 'URLRequest' in scope
38 | delegate: URLSessionTaskDelegate?
39 | ) async throws -> (Data, URLResponse)
/host/spi-builder-workspace/Sources/MicroClient/Extensions/URLSessionProtocol.swift:38:19: error: cannot find type 'URLSessionTaskDelegate' in scope
36 | func data(
37 | for request: URLRequest,
38 | delegate: URLSessionTaskDelegate?
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
39 | ) async throws -> (Data, URLResponse)
40 | }
/host/spi-builder-workspace/Sources/MicroClient/Extensions/URLSessionProtocol.swift:39:30: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
37 | for request: URLRequest,
38 | delegate: URLSessionTaskDelegate?
39 | ) async throws -> (Data, URLResponse)
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
40 | }
41 |
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/MicroClient/Extensions/URLSessionProtocol.swift:44:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
42 | // MARK: - URLSession conformance
43 |
44 | extension URLSession: URLSessionProtocol {}
| `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
45 |
/host/spi-builder-workspace/Sources/MicroClient/Extensions/URLRequest.swift:33:17: error: cannot find type 'URLRequest' in scope
31 | configuration: NetworkConfiguration,
32 | networkRequest: NetworkRequest<some Any, some Any>
33 | ) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
34 | let url = try URL.makeURL(
35 | configuration: configuration,
[#NominalTypes]: <https://docs.swift.org/compiler/documentation/diagnostics/nominal-types>
[11/36] Compiling MicroClient URLSessionProtocol.swift
/host/spi-builder-workspace/Sources/MicroClient/Extensions/URLRequest.swift:28:11: error: cannot find type 'URLRequest' in scope
26 | #endif
27 |
28 | extension URLRequest {
| `- error: cannot find type 'URLRequest' in scope
29 |
30 | static func makeURLRequest(
/host/spi-builder-workspace/Sources/MicroClient/Extensions/URLResponse.swift:28:8: error: non-nominal type 'URLResponse' (aka 'AnyObject') cannot be extended [#NominalTypes]
26 | #endif
27 |
28 | public extension URLResponse {
| `- error: non-nominal type 'URLResponse' (aka 'AnyObject') cannot be extended [#NominalTypes]
29 |
30 | /// Returns the HTTP Header value for "Location". Default: `nil`.
/host/spi-builder-workspace/Sources/MicroClient/Extensions/URLSessionProtocol.swift:37:22: error: cannot find type 'URLRequest' in scope
35 | /// - Returns: A tuple containing the response data and URLResponse.
36 | func data(
37 | for request: URLRequest,
| `- error: cannot find type 'URLRequest' in scope
38 | delegate: URLSessionTaskDelegate?
39 | ) async throws -> (Data, URLResponse)
/host/spi-builder-workspace/Sources/MicroClient/Extensions/URLSessionProtocol.swift:38:19: error: cannot find type 'URLSessionTaskDelegate' in scope
36 | func data(
37 | for request: URLRequest,
38 | delegate: URLSessionTaskDelegate?
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
39 | ) async throws -> (Data, URLResponse)
40 | }
/host/spi-builder-workspace/Sources/MicroClient/Extensions/URLSessionProtocol.swift:39:30: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
37 | for request: URLRequest,
38 | delegate: URLSessionTaskDelegate?
39 | ) async throws -> (Data, URLResponse)
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
40 | }
41 |
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/MicroClient/Extensions/URLSessionProtocol.swift:44:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
42 | // MARK: - URLSession conformance
43 |
44 | extension URLSession: URLSessionProtocol {}
| `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
45 |
/host/spi-builder-workspace/Sources/MicroClient/Extensions/URLRequest.swift:33:17: error: cannot find type 'URLRequest' in scope
31 | configuration: NetworkConfiguration,
32 | networkRequest: NetworkRequest<some Any, some Any>
33 | ) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
34 | let url = try URL.makeURL(
35 | configuration: configuration,
[#NominalTypes]: <https://docs.swift.org/compiler/documentation/diagnostics/nominal-types>
[12/36] Compiling MicroClient Unwrap.swift
/host/spi-builder-workspace/Sources/MicroClient/Extensions/URLRequest.swift:28:11: error: cannot find type 'URLRequest' in scope
26 | #endif
27 |
28 | extension URLRequest {
| `- error: cannot find type 'URLRequest' in scope
29 |
30 | static func makeURLRequest(
/host/spi-builder-workspace/Sources/MicroClient/Extensions/URLResponse.swift:28:8: error: non-nominal type 'URLResponse' (aka 'AnyObject') cannot be extended [#NominalTypes]
26 | #endif
27 |
28 | public extension URLResponse {
| `- error: non-nominal type 'URLResponse' (aka 'AnyObject') cannot be extended [#NominalTypes]
29 |
30 | /// Returns the HTTP Header value for "Location". Default: `nil`.
/host/spi-builder-workspace/Sources/MicroClient/Extensions/URLSessionProtocol.swift:37:22: error: cannot find type 'URLRequest' in scope
35 | /// - Returns: A tuple containing the response data and URLResponse.
36 | func data(
37 | for request: URLRequest,
| `- error: cannot find type 'URLRequest' in scope
38 | delegate: URLSessionTaskDelegate?
39 | ) async throws -> (Data, URLResponse)
/host/spi-builder-workspace/Sources/MicroClient/Extensions/URLSessionProtocol.swift:38:19: error: cannot find type 'URLSessionTaskDelegate' in scope
36 | func data(
37 | for request: URLRequest,
38 | delegate: URLSessionTaskDelegate?
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
39 | ) async throws -> (Data, URLResponse)
40 | }
/host/spi-builder-workspace/Sources/MicroClient/Extensions/URLSessionProtocol.swift:39:30: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
37 | for request: URLRequest,
38 | delegate: URLSessionTaskDelegate?
39 | ) async throws -> (Data, URLResponse)
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
40 | }
41 |
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/MicroClient/Extensions/URLSessionProtocol.swift:44:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
42 | // MARK: - URLSession conformance
43 |
44 | extension URLSession: URLSessionProtocol {}
| `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
45 |
/host/spi-builder-workspace/Sources/MicroClient/Extensions/URLRequest.swift:33:17: error: cannot find type 'URLRequest' in scope
31 | configuration: NetworkConfiguration,
32 | networkRequest: NetworkRequest<some Any, some Any>
33 | ) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
34 | let url = try URL.makeURL(
35 | configuration: configuration,
[#NominalTypes]: <https://docs.swift.org/compiler/documentation/diagnostics/nominal-types>
[13/36] Compiling MicroClient VoidRequest.swift
[14/36] Compiling MicroClient VoidResponse.swift
[15/36] Compiling MicroClient RetryStrategy.swift
[16/36] Compiling MicroClient URLFormItem.swift
[17/36] Compiling MicroClient HTTPMethod.swift
/host/spi-builder-workspace/Sources/MicroClient/Interceptors/APIKeyInterceptor.swift:55:66: error: cannot find type 'URLRequest' in scope
53 | // MARK: - Public
54 |
55 | public func intercept(_ request: URLRequest) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
56 | var newRequest = request
57 | newRequest.setValue(apiKey, forHTTPHeaderField: headerName)
/host/spi-builder-workspace/Sources/MicroClient/Interceptors/APIKeyInterceptor.swift:55:38: error: cannot find type 'URLRequest' in scope
53 | // MARK: - Public
54 |
55 | public func intercept(_ request: URLRequest) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
56 | var newRequest = request
57 | newRequest.setValue(apiKey, forHTTPHeaderField: headerName)
/host/spi-builder-workspace/Sources/MicroClient/NetworkRequestInterceptor.swift:39:59: error: cannot find type 'URLRequest' in scope
37 | /// - Returns: A potentially modified `URLRequest`.
38 | /// - Throws: An error if the interception process fails. Throwing an error will cancel the entire request.
39 | func intercept(_ request: URLRequest) async throws -> URLRequest
| `- error: cannot find type 'URLRequest' in scope
40 | }
41 |
/host/spi-builder-workspace/Sources/MicroClient/NetworkRequestInterceptor.swift:39:31: error: cannot find type 'URLRequest' in scope
37 | /// - Returns: A potentially modified `URLRequest`.
38 | /// - Throws: An error if the interception process fails. Throwing an error will cancel the entire request.
39 | func intercept(_ request: URLRequest) async throws -> URLRequest
| `- error: cannot find type 'URLRequest' in scope
40 | }
41 |
/host/spi-builder-workspace/Sources/MicroClient/Interceptors/AcceptHeaderInterceptor.swift:51:66: error: cannot find type 'URLRequest' in scope
49 | // MARK: - Public
50 |
51 | public func intercept(_ request: URLRequest) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
52 | var newRequest = request
53 | newRequest.setValue(acceptType, forHTTPHeaderField: "Accept")
/host/spi-builder-workspace/Sources/MicroClient/Interceptors/AcceptHeaderInterceptor.swift:51:38: error: cannot find type 'URLRequest' in scope
49 | // MARK: - Public
50 |
51 | public func intercept(_ request: URLRequest) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
52 | var newRequest = request
53 | newRequest.setValue(acceptType, forHTTPHeaderField: "Accept")
/host/spi-builder-workspace/Sources/MicroClient/Interceptors/BasicAuthInterceptor.swift:72:66: error: cannot find type 'URLRequest' in scope
70 | // MARK: - Public
71 |
72 | public func intercept(_ request: URLRequest) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
73 | var newRequest = request
74 |
/host/spi-builder-workspace/Sources/MicroClient/Interceptors/BasicAuthInterceptor.swift:72:38: error: cannot find type 'URLRequest' in scope
70 | // MARK: - Public
71 |
72 | public func intercept(_ request: URLRequest) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
73 | var newRequest = request
74 |
[18/36] Compiling MicroClient APIKeyInterceptor.swift
/host/spi-builder-workspace/Sources/MicroClient/Interceptors/APIKeyInterceptor.swift:55:66: error: cannot find type 'URLRequest' in scope
53 | // MARK: - Public
54 |
55 | public func intercept(_ request: URLRequest) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
56 | var newRequest = request
57 | newRequest.setValue(apiKey, forHTTPHeaderField: headerName)
/host/spi-builder-workspace/Sources/MicroClient/Interceptors/APIKeyInterceptor.swift:55:38: error: cannot find type 'URLRequest' in scope
53 | // MARK: - Public
54 |
55 | public func intercept(_ request: URLRequest) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
56 | var newRequest = request
57 | newRequest.setValue(apiKey, forHTTPHeaderField: headerName)
/host/spi-builder-workspace/Sources/MicroClient/NetworkRequestInterceptor.swift:39:59: error: cannot find type 'URLRequest' in scope
37 | /// - Returns: A potentially modified `URLRequest`.
38 | /// - Throws: An error if the interception process fails. Throwing an error will cancel the entire request.
39 | func intercept(_ request: URLRequest) async throws -> URLRequest
| `- error: cannot find type 'URLRequest' in scope
40 | }
41 |
/host/spi-builder-workspace/Sources/MicroClient/NetworkRequestInterceptor.swift:39:31: error: cannot find type 'URLRequest' in scope
37 | /// - Returns: A potentially modified `URLRequest`.
38 | /// - Throws: An error if the interception process fails. Throwing an error will cancel the entire request.
39 | func intercept(_ request: URLRequest) async throws -> URLRequest
| `- error: cannot find type 'URLRequest' in scope
40 | }
41 |
/host/spi-builder-workspace/Sources/MicroClient/Interceptors/AcceptHeaderInterceptor.swift:51:66: error: cannot find type 'URLRequest' in scope
49 | // MARK: - Public
50 |
51 | public func intercept(_ request: URLRequest) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
52 | var newRequest = request
53 | newRequest.setValue(acceptType, forHTTPHeaderField: "Accept")
/host/spi-builder-workspace/Sources/MicroClient/Interceptors/AcceptHeaderInterceptor.swift:51:38: error: cannot find type 'URLRequest' in scope
49 | // MARK: - Public
50 |
51 | public func intercept(_ request: URLRequest) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
52 | var newRequest = request
53 | newRequest.setValue(acceptType, forHTTPHeaderField: "Accept")
/host/spi-builder-workspace/Sources/MicroClient/Interceptors/BasicAuthInterceptor.swift:72:66: error: cannot find type 'URLRequest' in scope
70 | // MARK: - Public
71 |
72 | public func intercept(_ request: URLRequest) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
73 | var newRequest = request
74 |
/host/spi-builder-workspace/Sources/MicroClient/Interceptors/BasicAuthInterceptor.swift:72:38: error: cannot find type 'URLRequest' in scope
70 | // MARK: - Public
71 |
72 | public func intercept(_ request: URLRequest) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
73 | var newRequest = request
74 |
[19/36] Compiling MicroClient AcceptHeaderInterceptor.swift
/host/spi-builder-workspace/Sources/MicroClient/Interceptors/APIKeyInterceptor.swift:55:66: error: cannot find type 'URLRequest' in scope
53 | // MARK: - Public
54 |
55 | public func intercept(_ request: URLRequest) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
56 | var newRequest = request
57 | newRequest.setValue(apiKey, forHTTPHeaderField: headerName)
/host/spi-builder-workspace/Sources/MicroClient/Interceptors/APIKeyInterceptor.swift:55:38: error: cannot find type 'URLRequest' in scope
53 | // MARK: - Public
54 |
55 | public func intercept(_ request: URLRequest) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
56 | var newRequest = request
57 | newRequest.setValue(apiKey, forHTTPHeaderField: headerName)
/host/spi-builder-workspace/Sources/MicroClient/NetworkRequestInterceptor.swift:39:59: error: cannot find type 'URLRequest' in scope
37 | /// - Returns: A potentially modified `URLRequest`.
38 | /// - Throws: An error if the interception process fails. Throwing an error will cancel the entire request.
39 | func intercept(_ request: URLRequest) async throws -> URLRequest
| `- error: cannot find type 'URLRequest' in scope
40 | }
41 |
/host/spi-builder-workspace/Sources/MicroClient/NetworkRequestInterceptor.swift:39:31: error: cannot find type 'URLRequest' in scope
37 | /// - Returns: A potentially modified `URLRequest`.
38 | /// - Throws: An error if the interception process fails. Throwing an error will cancel the entire request.
39 | func intercept(_ request: URLRequest) async throws -> URLRequest
| `- error: cannot find type 'URLRequest' in scope
40 | }
41 |
/host/spi-builder-workspace/Sources/MicroClient/Interceptors/AcceptHeaderInterceptor.swift:51:66: error: cannot find type 'URLRequest' in scope
49 | // MARK: - Public
50 |
51 | public func intercept(_ request: URLRequest) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
52 | var newRequest = request
53 | newRequest.setValue(acceptType, forHTTPHeaderField: "Accept")
/host/spi-builder-workspace/Sources/MicroClient/Interceptors/AcceptHeaderInterceptor.swift:51:38: error: cannot find type 'URLRequest' in scope
49 | // MARK: - Public
50 |
51 | public func intercept(_ request: URLRequest) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
52 | var newRequest = request
53 | newRequest.setValue(acceptType, forHTTPHeaderField: "Accept")
/host/spi-builder-workspace/Sources/MicroClient/Interceptors/BasicAuthInterceptor.swift:72:66: error: cannot find type 'URLRequest' in scope
70 | // MARK: - Public
71 |
72 | public func intercept(_ request: URLRequest) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
73 | var newRequest = request
74 |
/host/spi-builder-workspace/Sources/MicroClient/Interceptors/BasicAuthInterceptor.swift:72:38: error: cannot find type 'URLRequest' in scope
70 | // MARK: - Public
71 |
72 | public func intercept(_ request: URLRequest) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
73 | var newRequest = request
74 |
[20/36] Compiling MicroClient BasicAuthInterceptor.swift
/host/spi-builder-workspace/Sources/MicroClient/Interceptors/APIKeyInterceptor.swift:55:66: error: cannot find type 'URLRequest' in scope
53 | // MARK: - Public
54 |
55 | public func intercept(_ request: URLRequest) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
56 | var newRequest = request
57 | newRequest.setValue(apiKey, forHTTPHeaderField: headerName)
/host/spi-builder-workspace/Sources/MicroClient/Interceptors/APIKeyInterceptor.swift:55:38: error: cannot find type 'URLRequest' in scope
53 | // MARK: - Public
54 |
55 | public func intercept(_ request: URLRequest) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
56 | var newRequest = request
57 | newRequest.setValue(apiKey, forHTTPHeaderField: headerName)
/host/spi-builder-workspace/Sources/MicroClient/NetworkRequestInterceptor.swift:39:59: error: cannot find type 'URLRequest' in scope
37 | /// - Returns: A potentially modified `URLRequest`.
38 | /// - Throws: An error if the interception process fails. Throwing an error will cancel the entire request.
39 | func intercept(_ request: URLRequest) async throws -> URLRequest
| `- error: cannot find type 'URLRequest' in scope
40 | }
41 |
/host/spi-builder-workspace/Sources/MicroClient/NetworkRequestInterceptor.swift:39:31: error: cannot find type 'URLRequest' in scope
37 | /// - Returns: A potentially modified `URLRequest`.
38 | /// - Throws: An error if the interception process fails. Throwing an error will cancel the entire request.
39 | func intercept(_ request: URLRequest) async throws -> URLRequest
| `- error: cannot find type 'URLRequest' in scope
40 | }
41 |
/host/spi-builder-workspace/Sources/MicroClient/Interceptors/AcceptHeaderInterceptor.swift:51:66: error: cannot find type 'URLRequest' in scope
49 | // MARK: - Public
50 |
51 | public func intercept(_ request: URLRequest) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
52 | var newRequest = request
53 | newRequest.setValue(acceptType, forHTTPHeaderField: "Accept")
/host/spi-builder-workspace/Sources/MicroClient/Interceptors/AcceptHeaderInterceptor.swift:51:38: error: cannot find type 'URLRequest' in scope
49 | // MARK: - Public
50 |
51 | public func intercept(_ request: URLRequest) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
52 | var newRequest = request
53 | newRequest.setValue(acceptType, forHTTPHeaderField: "Accept")
/host/spi-builder-workspace/Sources/MicroClient/Interceptors/BasicAuthInterceptor.swift:72:66: error: cannot find type 'URLRequest' in scope
70 | // MARK: - Public
71 |
72 | public func intercept(_ request: URLRequest) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
73 | var newRequest = request
74 |
/host/spi-builder-workspace/Sources/MicroClient/Interceptors/BasicAuthInterceptor.swift:72:38: error: cannot find type 'URLRequest' in scope
70 | // MARK: - Public
71 |
72 | public func intercept(_ request: URLRequest) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
73 | var newRequest = request
74 |
[21/36] Compiling MicroClient BearerAuthorizationInterceptor.swift
/host/spi-builder-workspace/Sources/MicroClient/Interceptors/BearerAuthorizationInterceptor.swift:52:66: error: cannot find type 'URLRequest' in scope
50 | // MARK: - Public
51 |
52 | public func intercept(_ request: URLRequest) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
53 | var newRequest = request
54 |
/host/spi-builder-workspace/Sources/MicroClient/Interceptors/BearerAuthorizationInterceptor.swift:52:38: error: cannot find type 'URLRequest' in scope
50 | // MARK: - Public
51 |
52 | public func intercept(_ request: URLRequest) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
53 | var newRequest = request
54 |
/host/spi-builder-workspace/Sources/MicroClient/NetworkRequestInterceptor.swift:39:59: error: cannot find type 'URLRequest' in scope
37 | /// - Returns: A potentially modified `URLRequest`.
38 | /// - Throws: An error if the interception process fails. Throwing an error will cancel the entire request.
39 | func intercept(_ request: URLRequest) async throws -> URLRequest
| `- error: cannot find type 'URLRequest' in scope
40 | }
41 |
/host/spi-builder-workspace/Sources/MicroClient/NetworkRequestInterceptor.swift:39:31: error: cannot find type 'URLRequest' in scope
37 | /// - Returns: A potentially modified `URLRequest`.
38 | /// - Throws: An error if the interception process fails. Throwing an error will cancel the entire request.
39 | func intercept(_ request: URLRequest) async throws -> URLRequest
| `- error: cannot find type 'URLRequest' in scope
40 | }
41 |
/host/spi-builder-workspace/Sources/MicroClient/Interceptors/CacheControlInterceptor.swift:67:66: error: cannot find type 'URLRequest' in scope
65 | // MARK: - Public
66 |
67 | public func intercept(_ request: URLRequest) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
68 | var newRequest = request
69 | newRequest.setValue(policy.headerValue, forHTTPHeaderField: "Cache-Control")
/host/spi-builder-workspace/Sources/MicroClient/Interceptors/CacheControlInterceptor.swift:67:38: error: cannot find type 'URLRequest' in scope
65 | // MARK: - Public
66 |
67 | public func intercept(_ request: URLRequest) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
68 | var newRequest = request
69 | newRequest.setValue(policy.headerValue, forHTTPHeaderField: "Cache-Control")
/host/spi-builder-workspace/Sources/MicroClient/Interceptors/ContentTypeInterceptor.swift:51:66: error: cannot find type 'URLRequest' in scope
49 | // MARK: - Public
50 |
51 | public func intercept(_ request: URLRequest) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
52 | var newRequest = request
53 |
/host/spi-builder-workspace/Sources/MicroClient/Interceptors/ContentTypeInterceptor.swift:51:38: error: cannot find type 'URLRequest' in scope
49 | // MARK: - Public
50 |
51 | public func intercept(_ request: URLRequest) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
52 | var newRequest = request
53 |
/host/spi-builder-workspace/Sources/MicroClient/Interceptors/MetricsCollectionInterceptor.swift:94:46: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
92 | _ data: Data
93 | ) async throws -> NetworkResponse<ResponseModel> {
94 | let httpResponse = response.response as? HTTPURLResponse
| `- warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
95 |
96 | let metrics = ResponseMetrics(
/host/spi-builder-workspace/Sources/MicroClient/Interceptors/MetricsCollectionInterceptor.swift:94:50: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
92 | _ data: Data
93 | ) async throws -> NetworkResponse<ResponseModel> {
94 | let httpResponse = response.response as? HTTPURLResponse
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
95 |
96 | let metrics = ResponseMetrics(
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/MicroClient/Interceptors/MetricsCollectionInterceptor.swift:97:39: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
95 |
96 | let metrics = ResponseMetrics(
97 | statusCode: httpResponse?.statusCode,
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
98 | responseSize: data.count,
99 | url: httpResponse?.url,
/host/spi-builder-workspace/Sources/MicroClient/Interceptors/MetricsCollectionInterceptor.swift:99:32: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'url'
97 | statusCode: httpResponse?.statusCode,
98 | responseSize: data.count,
99 | url: httpResponse?.url,
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'url'
100 | httpMethod: httpResponse?.value(forHTTPHeaderField: "X-HTTP-Method")
101 | )
/host/spi-builder-workspace/Sources/MicroClient/Interceptors/MetricsCollectionInterceptor.swift:100:39: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
98 | responseSize: data.count,
99 | url: httpResponse?.url,
100 | httpMethod: httpResponse?.value(forHTTPHeaderField: "X-HTTP-Method")
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
101 | )
102 |
[22/36] Compiling MicroClient CacheControlInterceptor.swift
/host/spi-builder-workspace/Sources/MicroClient/Interceptors/BearerAuthorizationInterceptor.swift:52:66: error: cannot find type 'URLRequest' in scope
50 | // MARK: - Public
51 |
52 | public func intercept(_ request: URLRequest) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
53 | var newRequest = request
54 |
/host/spi-builder-workspace/Sources/MicroClient/Interceptors/BearerAuthorizationInterceptor.swift:52:38: error: cannot find type 'URLRequest' in scope
50 | // MARK: - Public
51 |
52 | public func intercept(_ request: URLRequest) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
53 | var newRequest = request
54 |
/host/spi-builder-workspace/Sources/MicroClient/NetworkRequestInterceptor.swift:39:59: error: cannot find type 'URLRequest' in scope
37 | /// - Returns: A potentially modified `URLRequest`.
38 | /// - Throws: An error if the interception process fails. Throwing an error will cancel the entire request.
39 | func intercept(_ request: URLRequest) async throws -> URLRequest
| `- error: cannot find type 'URLRequest' in scope
40 | }
41 |
/host/spi-builder-workspace/Sources/MicroClient/NetworkRequestInterceptor.swift:39:31: error: cannot find type 'URLRequest' in scope
37 | /// - Returns: A potentially modified `URLRequest`.
38 | /// - Throws: An error if the interception process fails. Throwing an error will cancel the entire request.
39 | func intercept(_ request: URLRequest) async throws -> URLRequest
| `- error: cannot find type 'URLRequest' in scope
40 | }
41 |
/host/spi-builder-workspace/Sources/MicroClient/Interceptors/CacheControlInterceptor.swift:67:66: error: cannot find type 'URLRequest' in scope
65 | // MARK: - Public
66 |
67 | public func intercept(_ request: URLRequest) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
68 | var newRequest = request
69 | newRequest.setValue(policy.headerValue, forHTTPHeaderField: "Cache-Control")
/host/spi-builder-workspace/Sources/MicroClient/Interceptors/CacheControlInterceptor.swift:67:38: error: cannot find type 'URLRequest' in scope
65 | // MARK: - Public
66 |
67 | public func intercept(_ request: URLRequest) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
68 | var newRequest = request
69 | newRequest.setValue(policy.headerValue, forHTTPHeaderField: "Cache-Control")
/host/spi-builder-workspace/Sources/MicroClient/Interceptors/ContentTypeInterceptor.swift:51:66: error: cannot find type 'URLRequest' in scope
49 | // MARK: - Public
50 |
51 | public func intercept(_ request: URLRequest) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
52 | var newRequest = request
53 |
/host/spi-builder-workspace/Sources/MicroClient/Interceptors/ContentTypeInterceptor.swift:51:38: error: cannot find type 'URLRequest' in scope
49 | // MARK: - Public
50 |
51 | public func intercept(_ request: URLRequest) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
52 | var newRequest = request
53 |
/host/spi-builder-workspace/Sources/MicroClient/Interceptors/MetricsCollectionInterceptor.swift:94:46: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
92 | _ data: Data
93 | ) async throws -> NetworkResponse<ResponseModel> {
94 | let httpResponse = response.response as? HTTPURLResponse
| `- warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
95 |
96 | let metrics = ResponseMetrics(
/host/spi-builder-workspace/Sources/MicroClient/Interceptors/MetricsCollectionInterceptor.swift:94:50: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
92 | _ data: Data
93 | ) async throws -> NetworkResponse<ResponseModel> {
94 | let httpResponse = response.response as? HTTPURLResponse
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
95 |
96 | let metrics = ResponseMetrics(
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/MicroClient/Interceptors/MetricsCollectionInterceptor.swift:97:39: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
95 |
96 | let metrics = ResponseMetrics(
97 | statusCode: httpResponse?.statusCode,
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
98 | responseSize: data.count,
99 | url: httpResponse?.url,
/host/spi-builder-workspace/Sources/MicroClient/Interceptors/MetricsCollectionInterceptor.swift:99:32: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'url'
97 | statusCode: httpResponse?.statusCode,
98 | responseSize: data.count,
99 | url: httpResponse?.url,
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'url'
100 | httpMethod: httpResponse?.value(forHTTPHeaderField: "X-HTTP-Method")
101 | )
/host/spi-builder-workspace/Sources/MicroClient/Interceptors/MetricsCollectionInterceptor.swift:100:39: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
98 | responseSize: data.count,
99 | url: httpResponse?.url,
100 | httpMethod: httpResponse?.value(forHTTPHeaderField: "X-HTTP-Method")
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
101 | )
102 |
[23/36] Compiling MicroClient ContentTypeInterceptor.swift
/host/spi-builder-workspace/Sources/MicroClient/Interceptors/BearerAuthorizationInterceptor.swift:52:66: error: cannot find type 'URLRequest' in scope
50 | // MARK: - Public
51 |
52 | public func intercept(_ request: URLRequest) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
53 | var newRequest = request
54 |
/host/spi-builder-workspace/Sources/MicroClient/Interceptors/BearerAuthorizationInterceptor.swift:52:38: error: cannot find type 'URLRequest' in scope
50 | // MARK: - Public
51 |
52 | public func intercept(_ request: URLRequest) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
53 | var newRequest = request
54 |
/host/spi-builder-workspace/Sources/MicroClient/NetworkRequestInterceptor.swift:39:59: error: cannot find type 'URLRequest' in scope
37 | /// - Returns: A potentially modified `URLRequest`.
38 | /// - Throws: An error if the interception process fails. Throwing an error will cancel the entire request.
39 | func intercept(_ request: URLRequest) async throws -> URLRequest
| `- error: cannot find type 'URLRequest' in scope
40 | }
41 |
/host/spi-builder-workspace/Sources/MicroClient/NetworkRequestInterceptor.swift:39:31: error: cannot find type 'URLRequest' in scope
37 | /// - Returns: A potentially modified `URLRequest`.
38 | /// - Throws: An error if the interception process fails. Throwing an error will cancel the entire request.
39 | func intercept(_ request: URLRequest) async throws -> URLRequest
| `- error: cannot find type 'URLRequest' in scope
40 | }
41 |
/host/spi-builder-workspace/Sources/MicroClient/Interceptors/CacheControlInterceptor.swift:67:66: error: cannot find type 'URLRequest' in scope
65 | // MARK: - Public
66 |
67 | public func intercept(_ request: URLRequest) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
68 | var newRequest = request
69 | newRequest.setValue(policy.headerValue, forHTTPHeaderField: "Cache-Control")
/host/spi-builder-workspace/Sources/MicroClient/Interceptors/CacheControlInterceptor.swift:67:38: error: cannot find type 'URLRequest' in scope
65 | // MARK: - Public
66 |
67 | public func intercept(_ request: URLRequest) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
68 | var newRequest = request
69 | newRequest.setValue(policy.headerValue, forHTTPHeaderField: "Cache-Control")
/host/spi-builder-workspace/Sources/MicroClient/Interceptors/ContentTypeInterceptor.swift:51:66: error: cannot find type 'URLRequest' in scope
49 | // MARK: - Public
50 |
51 | public func intercept(_ request: URLRequest) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
52 | var newRequest = request
53 |
/host/spi-builder-workspace/Sources/MicroClient/Interceptors/ContentTypeInterceptor.swift:51:38: error: cannot find type 'URLRequest' in scope
49 | // MARK: - Public
50 |
51 | public func intercept(_ request: URLRequest) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
52 | var newRequest = request
53 |
/host/spi-builder-workspace/Sources/MicroClient/Interceptors/MetricsCollectionInterceptor.swift:94:46: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
92 | _ data: Data
93 | ) async throws -> NetworkResponse<ResponseModel> {
94 | let httpResponse = response.response as? HTTPURLResponse
| `- warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
95 |
96 | let metrics = ResponseMetrics(
/host/spi-builder-workspace/Sources/MicroClient/Interceptors/MetricsCollectionInterceptor.swift:94:50: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
92 | _ data: Data
93 | ) async throws -> NetworkResponse<ResponseModel> {
94 | let httpResponse = response.response as? HTTPURLResponse
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
95 |
96 | let metrics = ResponseMetrics(
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/MicroClient/Interceptors/MetricsCollectionInterceptor.swift:97:39: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
95 |
96 | let metrics = ResponseMetrics(
97 | statusCode: httpResponse?.statusCode,
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
98 | responseSize: data.count,
99 | url: httpResponse?.url,
/host/spi-builder-workspace/Sources/MicroClient/Interceptors/MetricsCollectionInterceptor.swift:99:32: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'url'
97 | statusCode: httpResponse?.statusCode,
98 | responseSize: data.count,
99 | url: httpResponse?.url,
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'url'
100 | httpMethod: httpResponse?.value(forHTTPHeaderField: "X-HTTP-Method")
101 | )
/host/spi-builder-workspace/Sources/MicroClient/Interceptors/MetricsCollectionInterceptor.swift:100:39: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
98 | responseSize: data.count,
99 | url: httpResponse?.url,
100 | httpMethod: httpResponse?.value(forHTTPHeaderField: "X-HTTP-Method")
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
101 | )
102 |
[24/36] Compiling MicroClient MetricsCollectionInterceptor.swift
/host/spi-builder-workspace/Sources/MicroClient/Interceptors/BearerAuthorizationInterceptor.swift:52:66: error: cannot find type 'URLRequest' in scope
50 | // MARK: - Public
51 |
52 | public func intercept(_ request: URLRequest) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
53 | var newRequest = request
54 |
/host/spi-builder-workspace/Sources/MicroClient/Interceptors/BearerAuthorizationInterceptor.swift:52:38: error: cannot find type 'URLRequest' in scope
50 | // MARK: - Public
51 |
52 | public func intercept(_ request: URLRequest) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
53 | var newRequest = request
54 |
/host/spi-builder-workspace/Sources/MicroClient/NetworkRequestInterceptor.swift:39:59: error: cannot find type 'URLRequest' in scope
37 | /// - Returns: A potentially modified `URLRequest`.
38 | /// - Throws: An error if the interception process fails. Throwing an error will cancel the entire request.
39 | func intercept(_ request: URLRequest) async throws -> URLRequest
| `- error: cannot find type 'URLRequest' in scope
40 | }
41 |
/host/spi-builder-workspace/Sources/MicroClient/NetworkRequestInterceptor.swift:39:31: error: cannot find type 'URLRequest' in scope
37 | /// - Returns: A potentially modified `URLRequest`.
38 | /// - Throws: An error if the interception process fails. Throwing an error will cancel the entire request.
39 | func intercept(_ request: URLRequest) async throws -> URLRequest
| `- error: cannot find type 'URLRequest' in scope
40 | }
41 |
/host/spi-builder-workspace/Sources/MicroClient/Interceptors/CacheControlInterceptor.swift:67:66: error: cannot find type 'URLRequest' in scope
65 | // MARK: - Public
66 |
67 | public func intercept(_ request: URLRequest) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
68 | var newRequest = request
69 | newRequest.setValue(policy.headerValue, forHTTPHeaderField: "Cache-Control")
/host/spi-builder-workspace/Sources/MicroClient/Interceptors/CacheControlInterceptor.swift:67:38: error: cannot find type 'URLRequest' in scope
65 | // MARK: - Public
66 |
67 | public func intercept(_ request: URLRequest) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
68 | var newRequest = request
69 | newRequest.setValue(policy.headerValue, forHTTPHeaderField: "Cache-Control")
/host/spi-builder-workspace/Sources/MicroClient/Interceptors/ContentTypeInterceptor.swift:51:66: error: cannot find type 'URLRequest' in scope
49 | // MARK: - Public
50 |
51 | public func intercept(_ request: URLRequest) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
52 | var newRequest = request
53 |
/host/spi-builder-workspace/Sources/MicroClient/Interceptors/ContentTypeInterceptor.swift:51:38: error: cannot find type 'URLRequest' in scope
49 | // MARK: - Public
50 |
51 | public func intercept(_ request: URLRequest) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
52 | var newRequest = request
53 |
/host/spi-builder-workspace/Sources/MicroClient/Interceptors/MetricsCollectionInterceptor.swift:94:46: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
92 | _ data: Data
93 | ) async throws -> NetworkResponse<ResponseModel> {
94 | let httpResponse = response.response as? HTTPURLResponse
| `- warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
95 |
96 | let metrics = ResponseMetrics(
/host/spi-builder-workspace/Sources/MicroClient/Interceptors/MetricsCollectionInterceptor.swift:94:50: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
92 | _ data: Data
93 | ) async throws -> NetworkResponse<ResponseModel> {
94 | let httpResponse = response.response as? HTTPURLResponse
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
95 |
96 | let metrics = ResponseMetrics(
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/MicroClient/Interceptors/MetricsCollectionInterceptor.swift:97:39: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
95 |
96 | let metrics = ResponseMetrics(
97 | statusCode: httpResponse?.statusCode,
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
98 | responseSize: data.count,
99 | url: httpResponse?.url,
/host/spi-builder-workspace/Sources/MicroClient/Interceptors/MetricsCollectionInterceptor.swift:99:32: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'url'
97 | statusCode: httpResponse?.statusCode,
98 | responseSize: data.count,
99 | url: httpResponse?.url,
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'url'
100 | httpMethod: httpResponse?.value(forHTTPHeaderField: "X-HTTP-Method")
101 | )
/host/spi-builder-workspace/Sources/MicroClient/Interceptors/MetricsCollectionInterceptor.swift:100:39: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
98 | responseSize: data.count,
99 | url: httpResponse?.url,
100 | httpMethod: httpResponse?.value(forHTTPHeaderField: "X-HTTP-Method")
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
101 | )
102 |
[25/36] Compiling MicroClient RequestIDInterceptor.swift
/host/spi-builder-workspace/Sources/MicroClient/Interceptors/RequestIDInterceptor.swift:51:66: error: cannot find type 'URLRequest' in scope
49 | // MARK: - Public
50 |
51 | public func intercept(_ request: URLRequest) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
52 | var newRequest = request
53 | let requestID = UUID().uuidString
/host/spi-builder-workspace/Sources/MicroClient/Interceptors/RequestIDInterceptor.swift:51:38: error: cannot find type 'URLRequest' in scope
49 | // MARK: - Public
50 |
51 | public func intercept(_ request: URLRequest) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
52 | var newRequest = request
53 | let requestID = UUID().uuidString
/host/spi-builder-workspace/Sources/MicroClient/NetworkRequestInterceptor.swift:39:59: error: cannot find type 'URLRequest' in scope
37 | /// - Returns: A potentially modified `URLRequest`.
38 | /// - Throws: An error if the interception process fails. Throwing an error will cancel the entire request.
39 | func intercept(_ request: URLRequest) async throws -> URLRequest
| `- error: cannot find type 'URLRequest' in scope
40 | }
41 |
/host/spi-builder-workspace/Sources/MicroClient/NetworkRequestInterceptor.swift:39:31: error: cannot find type 'URLRequest' in scope
37 | /// - Returns: A potentially modified `URLRequest`.
38 | /// - Throws: An error if the interception process fails. Throwing an error will cancel the entire request.
39 | func intercept(_ request: URLRequest) async throws -> URLRequest
| `- error: cannot find type 'URLRequest' in scope
40 | }
41 |
/host/spi-builder-workspace/Sources/MicroClient/Interceptors/ResponseLoggingInterceptor.swift:55:49: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
53 | _ data: Data
54 | ) async throws -> NetworkResponse<ResponseModel> {
55 | if let httpResponse = response.response as? HTTPURLResponse {
| `- warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
56 | logger.log(
57 | level: logLevel,
/host/spi-builder-workspace/Sources/MicroClient/Interceptors/ResponseLoggingInterceptor.swift:55:53: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
53 | _ data: Data
54 | ) async throws -> NetworkResponse<ResponseModel> {
55 | if let httpResponse = response.response as? HTTPURLResponse {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
56 | logger.log(
57 | level: logLevel,
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/MicroClient/Interceptors/ResponseLoggingInterceptor.swift:58:73: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
56 | logger.log(
57 | level: logLevel,
58 | message: "Response interceptor - Status: \(httpResponse.statusCode)"
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
59 | )
60 | logger.log(
/host/spi-builder-workspace/Sources/MicroClient/Interceptors/ResponseLoggingInterceptor.swift:62:74: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
60 | logger.log(
61 | level: logLevel,
62 | message: "Response interceptor - Headers: \(httpResponse.allHeaderFields)"
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
63 | )
64 | }
/host/spi-builder-workspace/Sources/MicroClient/Interceptors/RetryAfterInterceptor.swift:71:52: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
69 | _ data: Data
70 | ) async throws -> NetworkResponse<ResponseModel> {
71 | guard let httpResponse = response.response as? HTTPURLResponse else {
| `- warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
72 | return response
73 | }
/host/spi-builder-workspace/Sources/MicroClient/Interceptors/RetryAfterInterceptor.swift:71:56: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
69 | _ data: Data
70 | ) async throws -> NetworkResponse<ResponseModel> {
71 | guard let httpResponse = response.response as? HTTPURLResponse else {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
72 | return response
73 | }
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/MicroClient/Interceptors/RetryAfterInterceptor.swift:76:28: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
74 |
75 | // Check for rate limit or service unavailable status codes
76 | guard httpResponse.statusCode == 429 || httpResponse.statusCode == 503 else {
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
77 | return response
78 | }
/host/spi-builder-workspace/Sources/MicroClient/Interceptors/RetryAfterInterceptor.swift:76:62: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
74 |
75 | // Check for rate limit or service unavailable status codes
76 | guard httpResponse.statusCode == 429 || httpResponse.statusCode == 503 else {
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
77 | return response
78 | }
/host/spi-builder-workspace/Sources/MicroClient/Interceptors/RetryAfterInterceptor.swift:81:50: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
79 |
80 | // Parse Retry-After header
81 | guard let retryAfterValue = httpResponse.value(forHTTPHeaderField: Self.retryAfterHeader) else {
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
82 | return response
83 | }
/host/spi-builder-workspace/Sources/MicroClient/Interceptors/RetryAfterInterceptor.swift:89:42: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
87 | throw RetryAfterError(
88 | retryAfterSeconds: seconds,
89 | statusCode: httpResponse.statusCode
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
90 | )
91 | }
/host/spi-builder-workspace/Sources/MicroClient/Interceptors/RetryAfterInterceptor.swift:102:42: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
100 | throw RetryAfterError(
101 | retryAfterDate: date,
102 | statusCode: httpResponse.statusCode
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
103 | )
104 | }
/host/spi-builder-workspace/Sources/MicroClient/Interceptors/StatusCodeValidationInterceptor.swift:69:52: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
67 | _ data: Data
68 | ) async throws -> NetworkResponse<ResponseModel> {
69 | guard let httpResponse = response.response as? HTTPURLResponse else {
| `- warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
70 | return response
71 | }
/host/spi-builder-workspace/Sources/MicroClient/Interceptors/StatusCodeValidationInterceptor.swift:69:56: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
67 | _ data: Data
68 | ) async throws -> NetworkResponse<ResponseModel> {
69 | guard let httpResponse = response.response as? HTTPURLResponse else {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
70 | return response
71 | }
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/MicroClient/Interceptors/StatusCodeValidationInterceptor.swift:73:59: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
71 | }
72 |
73 | guard acceptableStatusCodes.contains(httpResponse.statusCode) else {
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
74 | throw NetworkClientError.unacceptableStatusCode(
75 | statusCode: httpResponse.statusCode,
/host/spi-builder-workspace/Sources/MicroClient/Interceptors/StatusCodeValidationInterceptor.swift:75:42: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
73 | guard acceptableStatusCodes.contains(httpResponse.statusCode) else {
74 | throw NetworkClientError.unacceptableStatusCode(
75 | statusCode: httpResponse.statusCode,
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
76 | response: httpResponse,
77 | data: data
[26/36] Compiling MicroClient ResponseLoggingInterceptor.swift
/host/spi-builder-workspace/Sources/MicroClient/Interceptors/RequestIDInterceptor.swift:51:66: error: cannot find type 'URLRequest' in scope
49 | // MARK: - Public
50 |
51 | public func intercept(_ request: URLRequest) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
52 | var newRequest = request
53 | let requestID = UUID().uuidString
/host/spi-builder-workspace/Sources/MicroClient/Interceptors/RequestIDInterceptor.swift:51:38: error: cannot find type 'URLRequest' in scope
49 | // MARK: - Public
50 |
51 | public func intercept(_ request: URLRequest) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
52 | var newRequest = request
53 | let requestID = UUID().uuidString
/host/spi-builder-workspace/Sources/MicroClient/NetworkRequestInterceptor.swift:39:59: error: cannot find type 'URLRequest' in scope
37 | /// - Returns: A potentially modified `URLRequest`.
38 | /// - Throws: An error if the interception process fails. Throwing an error will cancel the entire request.
39 | func intercept(_ request: URLRequest) async throws -> URLRequest
| `- error: cannot find type 'URLRequest' in scope
40 | }
41 |
/host/spi-builder-workspace/Sources/MicroClient/NetworkRequestInterceptor.swift:39:31: error: cannot find type 'URLRequest' in scope
37 | /// - Returns: A potentially modified `URLRequest`.
38 | /// - Throws: An error if the interception process fails. Throwing an error will cancel the entire request.
39 | func intercept(_ request: URLRequest) async throws -> URLRequest
| `- error: cannot find type 'URLRequest' in scope
40 | }
41 |
/host/spi-builder-workspace/Sources/MicroClient/Interceptors/ResponseLoggingInterceptor.swift:55:49: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
53 | _ data: Data
54 | ) async throws -> NetworkResponse<ResponseModel> {
55 | if let httpResponse = response.response as? HTTPURLResponse {
| `- warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
56 | logger.log(
57 | level: logLevel,
/host/spi-builder-workspace/Sources/MicroClient/Interceptors/ResponseLoggingInterceptor.swift:55:53: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
53 | _ data: Data
54 | ) async throws -> NetworkResponse<ResponseModel> {
55 | if let httpResponse = response.response as? HTTPURLResponse {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
56 | logger.log(
57 | level: logLevel,
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/MicroClient/Interceptors/ResponseLoggingInterceptor.swift:58:73: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
56 | logger.log(
57 | level: logLevel,
58 | message: "Response interceptor - Status: \(httpResponse.statusCode)"
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
59 | )
60 | logger.log(
/host/spi-builder-workspace/Sources/MicroClient/Interceptors/ResponseLoggingInterceptor.swift:62:74: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
60 | logger.log(
61 | level: logLevel,
62 | message: "Response interceptor - Headers: \(httpResponse.allHeaderFields)"
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
63 | )
64 | }
/host/spi-builder-workspace/Sources/MicroClient/Interceptors/RetryAfterInterceptor.swift:71:52: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
69 | _ data: Data
70 | ) async throws -> NetworkResponse<ResponseModel> {
71 | guard let httpResponse = response.response as? HTTPURLResponse else {
| `- warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
72 | return response
73 | }
/host/spi-builder-workspace/Sources/MicroClient/Interceptors/RetryAfterInterceptor.swift:71:56: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
69 | _ data: Data
70 | ) async throws -> NetworkResponse<ResponseModel> {
71 | guard let httpResponse = response.response as? HTTPURLResponse else {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
72 | return response
73 | }
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/MicroClient/Interceptors/RetryAfterInterceptor.swift:76:28: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
74 |
75 | // Check for rate limit or service unavailable status codes
76 | guard httpResponse.statusCode == 429 || httpResponse.statusCode == 503 else {
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
77 | return response
78 | }
/host/spi-builder-workspace/Sources/MicroClient/Interceptors/RetryAfterInterceptor.swift:76:62: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
74 |
75 | // Check for rate limit or service unavailable status codes
76 | guard httpResponse.statusCode == 429 || httpResponse.statusCode == 503 else {
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
77 | return response
78 | }
/host/spi-builder-workspace/Sources/MicroClient/Interceptors/RetryAfterInterceptor.swift:81:50: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
79 |
80 | // Parse Retry-After header
81 | guard let retryAfterValue = httpResponse.value(forHTTPHeaderField: Self.retryAfterHeader) else {
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
82 | return response
83 | }
/host/spi-builder-workspace/Sources/MicroClient/Interceptors/RetryAfterInterceptor.swift:89:42: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
87 | throw RetryAfterError(
88 | retryAfterSeconds: seconds,
89 | statusCode: httpResponse.statusCode
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
90 | )
91 | }
/host/spi-builder-workspace/Sources/MicroClient/Interceptors/RetryAfterInterceptor.swift:102:42: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
100 | throw RetryAfterError(
101 | retryAfterDate: date,
102 | statusCode: httpResponse.statusCode
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
103 | )
104 | }
/host/spi-builder-workspace/Sources/MicroClient/Interceptors/StatusCodeValidationInterceptor.swift:69:52: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
67 | _ data: Data
68 | ) async throws -> NetworkResponse<ResponseModel> {
69 | guard let httpResponse = response.response as? HTTPURLResponse else {
| `- warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
70 | return response
71 | }
/host/spi-builder-workspace/Sources/MicroClient/Interceptors/StatusCodeValidationInterceptor.swift:69:56: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
67 | _ data: Data
68 | ) async throws -> NetworkResponse<ResponseModel> {
69 | guard let httpResponse = response.response as? HTTPURLResponse else {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
70 | return response
71 | }
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/MicroClient/Interceptors/StatusCodeValidationInterceptor.swift:73:59: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
71 | }
72 |
73 | guard acceptableStatusCodes.contains(httpResponse.statusCode) else {
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
74 | throw NetworkClientError.unacceptableStatusCode(
75 | statusCode: httpResponse.statusCode,
/host/spi-builder-workspace/Sources/MicroClient/Interceptors/StatusCodeValidationInterceptor.swift:75:42: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
73 | guard acceptableStatusCodes.contains(httpResponse.statusCode) else {
74 | throw NetworkClientError.unacceptableStatusCode(
75 | statusCode: httpResponse.statusCode,
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
76 | response: httpResponse,
77 | data: data
[27/36] Compiling MicroClient RetryAfterInterceptor.swift
/host/spi-builder-workspace/Sources/MicroClient/Interceptors/RequestIDInterceptor.swift:51:66: error: cannot find type 'URLRequest' in scope
49 | // MARK: - Public
50 |
51 | public func intercept(_ request: URLRequest) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
52 | var newRequest = request
53 | let requestID = UUID().uuidString
/host/spi-builder-workspace/Sources/MicroClient/Interceptors/RequestIDInterceptor.swift:51:38: error: cannot find type 'URLRequest' in scope
49 | // MARK: - Public
50 |
51 | public func intercept(_ request: URLRequest) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
52 | var newRequest = request
53 | let requestID = UUID().uuidString
/host/spi-builder-workspace/Sources/MicroClient/NetworkRequestInterceptor.swift:39:59: error: cannot find type 'URLRequest' in scope
37 | /// - Returns: A potentially modified `URLRequest`.
38 | /// - Throws: An error if the interception process fails. Throwing an error will cancel the entire request.
39 | func intercept(_ request: URLRequest) async throws -> URLRequest
| `- error: cannot find type 'URLRequest' in scope
40 | }
41 |
/host/spi-builder-workspace/Sources/MicroClient/NetworkRequestInterceptor.swift:39:31: error: cannot find type 'URLRequest' in scope
37 | /// - Returns: A potentially modified `URLRequest`.
38 | /// - Throws: An error if the interception process fails. Throwing an error will cancel the entire request.
39 | func intercept(_ request: URLRequest) async throws -> URLRequest
| `- error: cannot find type 'URLRequest' in scope
40 | }
41 |
/host/spi-builder-workspace/Sources/MicroClient/Interceptors/ResponseLoggingInterceptor.swift:55:49: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
53 | _ data: Data
54 | ) async throws -> NetworkResponse<ResponseModel> {
55 | if let httpResponse = response.response as? HTTPURLResponse {
| `- warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
56 | logger.log(
57 | level: logLevel,
/host/spi-builder-workspace/Sources/MicroClient/Interceptors/ResponseLoggingInterceptor.swift:55:53: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
53 | _ data: Data
54 | ) async throws -> NetworkResponse<ResponseModel> {
55 | if let httpResponse = response.response as? HTTPURLResponse {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
56 | logger.log(
57 | level: logLevel,
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/MicroClient/Interceptors/ResponseLoggingInterceptor.swift:58:73: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
56 | logger.log(
57 | level: logLevel,
58 | message: "Response interceptor - Status: \(httpResponse.statusCode)"
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
59 | )
60 | logger.log(
/host/spi-builder-workspace/Sources/MicroClient/Interceptors/ResponseLoggingInterceptor.swift:62:74: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
60 | logger.log(
61 | level: logLevel,
62 | message: "Response interceptor - Headers: \(httpResponse.allHeaderFields)"
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
63 | )
64 | }
/host/spi-builder-workspace/Sources/MicroClient/Interceptors/RetryAfterInterceptor.swift:71:52: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
69 | _ data: Data
70 | ) async throws -> NetworkResponse<ResponseModel> {
71 | guard let httpResponse = response.response as? HTTPURLResponse else {
| `- warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
72 | return response
73 | }
/host/spi-builder-workspace/Sources/MicroClient/Interceptors/RetryAfterInterceptor.swift:71:56: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
69 | _ data: Data
70 | ) async throws -> NetworkResponse<ResponseModel> {
71 | guard let httpResponse = response.response as? HTTPURLResponse else {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
72 | return response
73 | }
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/MicroClient/Interceptors/RetryAfterInterceptor.swift:76:28: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
74 |
75 | // Check for rate limit or service unavailable status codes
76 | guard httpResponse.statusCode == 429 || httpResponse.statusCode == 503 else {
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
77 | return response
78 | }
/host/spi-builder-workspace/Sources/MicroClient/Interceptors/RetryAfterInterceptor.swift:76:62: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
74 |
75 | // Check for rate limit or service unavailable status codes
76 | guard httpResponse.statusCode == 429 || httpResponse.statusCode == 503 else {
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
77 | return response
78 | }
/host/spi-builder-workspace/Sources/MicroClient/Interceptors/RetryAfterInterceptor.swift:81:50: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
79 |
80 | // Parse Retry-After header
81 | guard let retryAfterValue = httpResponse.value(forHTTPHeaderField: Self.retryAfterHeader) else {
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
82 | return response
83 | }
/host/spi-builder-workspace/Sources/MicroClient/Interceptors/RetryAfterInterceptor.swift:89:42: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
87 | throw RetryAfterError(
88 | retryAfterSeconds: seconds,
89 | statusCode: httpResponse.statusCode
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
90 | )
91 | }
/host/spi-builder-workspace/Sources/MicroClient/Interceptors/RetryAfterInterceptor.swift:102:42: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
100 | throw RetryAfterError(
101 | retryAfterDate: date,
102 | statusCode: httpResponse.statusCode
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
103 | )
104 | }
/host/spi-builder-workspace/Sources/MicroClient/Interceptors/StatusCodeValidationInterceptor.swift:69:52: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
67 | _ data: Data
68 | ) async throws -> NetworkResponse<ResponseModel> {
69 | guard let httpResponse = response.response as? HTTPURLResponse else {
| `- warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
70 | return response
71 | }
/host/spi-builder-workspace/Sources/MicroClient/Interceptors/StatusCodeValidationInterceptor.swift:69:56: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
67 | _ data: Data
68 | ) async throws -> NetworkResponse<ResponseModel> {
69 | guard let httpResponse = response.response as? HTTPURLResponse else {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
70 | return response
71 | }
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/MicroClient/Interceptors/StatusCodeValidationInterceptor.swift:73:59: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
71 | }
72 |
73 | guard acceptableStatusCodes.contains(httpResponse.statusCode) else {
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
74 | throw NetworkClientError.unacceptableStatusCode(
75 | statusCode: httpResponse.statusCode,
/host/spi-builder-workspace/Sources/MicroClient/Interceptors/StatusCodeValidationInterceptor.swift:75:42: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
73 | guard acceptableStatusCodes.contains(httpResponse.statusCode) else {
74 | throw NetworkClientError.unacceptableStatusCode(
75 | statusCode: httpResponse.statusCode,
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
76 | response: httpResponse,
77 | data: data
[28/36] Compiling MicroClient StatusCodeValidationInterceptor.swift
/host/spi-builder-workspace/Sources/MicroClient/Interceptors/RequestIDInterceptor.swift:51:66: error: cannot find type 'URLRequest' in scope
49 | // MARK: - Public
50 |
51 | public func intercept(_ request: URLRequest) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
52 | var newRequest = request
53 | let requestID = UUID().uuidString
/host/spi-builder-workspace/Sources/MicroClient/Interceptors/RequestIDInterceptor.swift:51:38: error: cannot find type 'URLRequest' in scope
49 | // MARK: - Public
50 |
51 | public func intercept(_ request: URLRequest) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
52 | var newRequest = request
53 | let requestID = UUID().uuidString
/host/spi-builder-workspace/Sources/MicroClient/NetworkRequestInterceptor.swift:39:59: error: cannot find type 'URLRequest' in scope
37 | /// - Returns: A potentially modified `URLRequest`.
38 | /// - Throws: An error if the interception process fails. Throwing an error will cancel the entire request.
39 | func intercept(_ request: URLRequest) async throws -> URLRequest
| `- error: cannot find type 'URLRequest' in scope
40 | }
41 |
/host/spi-builder-workspace/Sources/MicroClient/NetworkRequestInterceptor.swift:39:31: error: cannot find type 'URLRequest' in scope
37 | /// - Returns: A potentially modified `URLRequest`.
38 | /// - Throws: An error if the interception process fails. Throwing an error will cancel the entire request.
39 | func intercept(_ request: URLRequest) async throws -> URLRequest
| `- error: cannot find type 'URLRequest' in scope
40 | }
41 |
/host/spi-builder-workspace/Sources/MicroClient/Interceptors/ResponseLoggingInterceptor.swift:55:49: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
53 | _ data: Data
54 | ) async throws -> NetworkResponse<ResponseModel> {
55 | if let httpResponse = response.response as? HTTPURLResponse {
| `- warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
56 | logger.log(
57 | level: logLevel,
/host/spi-builder-workspace/Sources/MicroClient/Interceptors/ResponseLoggingInterceptor.swift:55:53: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
53 | _ data: Data
54 | ) async throws -> NetworkResponse<ResponseModel> {
55 | if let httpResponse = response.response as? HTTPURLResponse {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
56 | logger.log(
57 | level: logLevel,
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/MicroClient/Interceptors/ResponseLoggingInterceptor.swift:58:73: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
56 | logger.log(
57 | level: logLevel,
58 | message: "Response interceptor - Status: \(httpResponse.statusCode)"
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
59 | )
60 | logger.log(
/host/spi-builder-workspace/Sources/MicroClient/Interceptors/ResponseLoggingInterceptor.swift:62:74: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
60 | logger.log(
61 | level: logLevel,
62 | message: "Response interceptor - Headers: \(httpResponse.allHeaderFields)"
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
63 | )
64 | }
/host/spi-builder-workspace/Sources/MicroClient/Interceptors/RetryAfterInterceptor.swift:71:52: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
69 | _ data: Data
70 | ) async throws -> NetworkResponse<ResponseModel> {
71 | guard let httpResponse = response.response as? HTTPURLResponse else {
| `- warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
72 | return response
73 | }
/host/spi-builder-workspace/Sources/MicroClient/Interceptors/RetryAfterInterceptor.swift:71:56: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
69 | _ data: Data
70 | ) async throws -> NetworkResponse<ResponseModel> {
71 | guard let httpResponse = response.response as? HTTPURLResponse else {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
72 | return response
73 | }
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/MicroClient/Interceptors/RetryAfterInterceptor.swift:76:28: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
74 |
75 | // Check for rate limit or service unavailable status codes
76 | guard httpResponse.statusCode == 429 || httpResponse.statusCode == 503 else {
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
77 | return response
78 | }
/host/spi-builder-workspace/Sources/MicroClient/Interceptors/RetryAfterInterceptor.swift:76:62: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
74 |
75 | // Check for rate limit or service unavailable status codes
76 | guard httpResponse.statusCode == 429 || httpResponse.statusCode == 503 else {
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
77 | return response
78 | }
/host/spi-builder-workspace/Sources/MicroClient/Interceptors/RetryAfterInterceptor.swift:81:50: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
79 |
80 | // Parse Retry-After header
81 | guard let retryAfterValue = httpResponse.value(forHTTPHeaderField: Self.retryAfterHeader) else {
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
82 | return response
83 | }
/host/spi-builder-workspace/Sources/MicroClient/Interceptors/RetryAfterInterceptor.swift:89:42: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
87 | throw RetryAfterError(
88 | retryAfterSeconds: seconds,
89 | statusCode: httpResponse.statusCode
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
90 | )
91 | }
/host/spi-builder-workspace/Sources/MicroClient/Interceptors/RetryAfterInterceptor.swift:102:42: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
100 | throw RetryAfterError(
101 | retryAfterDate: date,
102 | statusCode: httpResponse.statusCode
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
103 | )
104 | }
/host/spi-builder-workspace/Sources/MicroClient/Interceptors/StatusCodeValidationInterceptor.swift:69:52: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
67 | _ data: Data
68 | ) async throws -> NetworkResponse<ResponseModel> {
69 | guard let httpResponse = response.response as? HTTPURLResponse else {
| `- warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
70 | return response
71 | }
/host/spi-builder-workspace/Sources/MicroClient/Interceptors/StatusCodeValidationInterceptor.swift:69:56: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
67 | _ data: Data
68 | ) async throws -> NetworkResponse<ResponseModel> {
69 | guard let httpResponse = response.response as? HTTPURLResponse else {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
70 | return response
71 | }
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/MicroClient/Interceptors/StatusCodeValidationInterceptor.swift:73:59: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
71 | }
72 |
73 | guard acceptableStatusCodes.contains(httpResponse.statusCode) else {
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
74 | throw NetworkClientError.unacceptableStatusCode(
75 | statusCode: httpResponse.statusCode,
/host/spi-builder-workspace/Sources/MicroClient/Interceptors/StatusCodeValidationInterceptor.swift:75:42: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
73 | guard acceptableStatusCodes.contains(httpResponse.statusCode) else {
74 | throw NetworkClientError.unacceptableStatusCode(
75 | statusCode: httpResponse.statusCode,
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
76 | response: httpResponse,
77 | data: data
[29/36] Compiling MicroClient NetworkClientError.swift
/host/spi-builder-workspace/Sources/MicroClient/NetworkClientError.swift:42:60: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
40 | /// - `response`: The metadata associated with the HTTP response.
41 | /// - `data`: The raw response body, which may contain more specific error details from the server.
42 | case unacceptableStatusCode(statusCode: Int, response: URLResponse, data: Data?)
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
43 |
44 | /// The response body could not be decoded into the expected `Decodable` type.
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/MicroClient/NetworkClientError.swift:42:10: warning: associated value 'unacceptableStatusCode(statusCode:response:data:)' of 'Sendable'-conforming enum 'NetworkClientError' contains non-Sendable type 'URLResponse' (aka 'AnyObject')
40 | /// - `response`: The metadata associated with the HTTP response.
41 | /// - `data`: The raw response body, which may contain more specific error details from the server.
42 | case unacceptableStatusCode(statusCode: Int, response: URLResponse, data: Data?)
| `- warning: associated value 'unacceptableStatusCode(statusCode:response:data:)' of 'Sendable'-conforming enum 'NetworkClientError' contains non-Sendable type 'URLResponse' (aka 'AnyObject')
43 |
44 | /// The response body could not be decoded into the expected `Decodable` type.
/host/spi-builder-workspace/Sources/MicroClient/Extensions/URLSessionProtocol.swift:37:22: error: cannot find type 'URLRequest' in scope
35 | /// - Returns: A tuple containing the response data and URLResponse.
36 | func data(
37 | for request: URLRequest,
| `- error: cannot find type 'URLRequest' in scope
38 | delegate: URLSessionTaskDelegate?
39 | ) async throws -> (Data, URLResponse)
/host/spi-builder-workspace/Sources/MicroClient/Extensions/URLSessionProtocol.swift:38:19: error: cannot find type 'URLSessionTaskDelegate' in scope
36 | func data(
37 | for request: URLRequest,
38 | delegate: URLSessionTaskDelegate?
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
39 | ) async throws -> (Data, URLResponse)
40 | }
/host/spi-builder-workspace/Sources/MicroClient/NetworkRequestInterceptor.swift:39:59: error: cannot find type 'URLRequest' in scope
37 | /// - Returns: A potentially modified `URLRequest`.
38 | /// - Throws: An error if the interception process fails. Throwing an error will cancel the entire request.
39 | func intercept(_ request: URLRequest) async throws -> URLRequest
| `- error: cannot find type 'URLRequest' in scope
40 | }
41 |
/host/spi-builder-workspace/Sources/MicroClient/NetworkRequestInterceptor.swift:39:31: error: cannot find type 'URLRequest' in scope
37 | /// - Returns: A potentially modified `URLRequest`.
38 | /// - Throws: An error if the interception process fails. Throwing an error will cancel the entire request.
39 | func intercept(_ request: URLRequest) async throws -> URLRequest
| `- error: cannot find type 'URLRequest' in scope
40 | }
41 |
[30/36] Compiling MicroClient NetworkConfiguration.swift
/host/spi-builder-workspace/Sources/MicroClient/NetworkClientError.swift:42:60: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
40 | /// - `response`: The metadata associated with the HTTP response.
41 | /// - `data`: The raw response body, which may contain more specific error details from the server.
42 | case unacceptableStatusCode(statusCode: Int, response: URLResponse, data: Data?)
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
43 |
44 | /// The response body could not be decoded into the expected `Decodable` type.
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/MicroClient/NetworkClientError.swift:42:10: warning: associated value 'unacceptableStatusCode(statusCode:response:data:)' of 'Sendable'-conforming enum 'NetworkClientError' contains non-Sendable type 'URLResponse' (aka 'AnyObject')
40 | /// - `response`: The metadata associated with the HTTP response.
41 | /// - `data`: The raw response body, which may contain more specific error details from the server.
42 | case unacceptableStatusCode(statusCode: Int, response: URLResponse, data: Data?)
| `- warning: associated value 'unacceptableStatusCode(statusCode:response:data:)' of 'Sendable'-conforming enum 'NetworkClientError' contains non-Sendable type 'URLResponse' (aka 'AnyObject')
43 |
44 | /// The response body could not be decoded into the expected `Decodable` type.
/host/spi-builder-workspace/Sources/MicroClient/Extensions/URLSessionProtocol.swift:37:22: error: cannot find type 'URLRequest' in scope
35 | /// - Returns: A tuple containing the response data and URLResponse.
36 | func data(
37 | for request: URLRequest,
| `- error: cannot find type 'URLRequest' in scope
38 | delegate: URLSessionTaskDelegate?
39 | ) async throws -> (Data, URLResponse)
/host/spi-builder-workspace/Sources/MicroClient/Extensions/URLSessionProtocol.swift:38:19: error: cannot find type 'URLSessionTaskDelegate' in scope
36 | func data(
37 | for request: URLRequest,
38 | delegate: URLSessionTaskDelegate?
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
39 | ) async throws -> (Data, URLResponse)
40 | }
/host/spi-builder-workspace/Sources/MicroClient/NetworkRequestInterceptor.swift:39:59: error: cannot find type 'URLRequest' in scope
37 | /// - Returns: A potentially modified `URLRequest`.
38 | /// - Throws: An error if the interception process fails. Throwing an error will cancel the entire request.
39 | func intercept(_ request: URLRequest) async throws -> URLRequest
| `- error: cannot find type 'URLRequest' in scope
40 | }
41 |
/host/spi-builder-workspace/Sources/MicroClient/NetworkRequestInterceptor.swift:39:31: error: cannot find type 'URLRequest' in scope
37 | /// - Returns: A potentially modified `URLRequest`.
38 | /// - Throws: An error if the interception process fails. Throwing an error will cancel the entire request.
39 | func intercept(_ request: URLRequest) async throws -> URLRequest
| `- error: cannot find type 'URLRequest' in scope
40 | }
41 |
[31/36] Compiling MicroClient NetworkLogLevel.swift
/host/spi-builder-workspace/Sources/MicroClient/NetworkClientError.swift:42:60: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
40 | /// - `response`: The metadata associated with the HTTP response.
41 | /// - `data`: The raw response body, which may contain more specific error details from the server.
42 | case unacceptableStatusCode(statusCode: Int, response: URLResponse, data: Data?)
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
43 |
44 | /// The response body could not be decoded into the expected `Decodable` type.
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/MicroClient/NetworkClientError.swift:42:10: warning: associated value 'unacceptableStatusCode(statusCode:response:data:)' of 'Sendable'-conforming enum 'NetworkClientError' contains non-Sendable type 'URLResponse' (aka 'AnyObject')
40 | /// - `response`: The metadata associated with the HTTP response.
41 | /// - `data`: The raw response body, which may contain more specific error details from the server.
42 | case unacceptableStatusCode(statusCode: Int, response: URLResponse, data: Data?)
| `- warning: associated value 'unacceptableStatusCode(statusCode:response:data:)' of 'Sendable'-conforming enum 'NetworkClientError' contains non-Sendable type 'URLResponse' (aka 'AnyObject')
43 |
44 | /// The response body could not be decoded into the expected `Decodable` type.
/host/spi-builder-workspace/Sources/MicroClient/Extensions/URLSessionProtocol.swift:37:22: error: cannot find type 'URLRequest' in scope
35 | /// - Returns: A tuple containing the response data and URLResponse.
36 | func data(
37 | for request: URLRequest,
| `- error: cannot find type 'URLRequest' in scope
38 | delegate: URLSessionTaskDelegate?
39 | ) async throws -> (Data, URLResponse)
/host/spi-builder-workspace/Sources/MicroClient/Extensions/URLSessionProtocol.swift:38:19: error: cannot find type 'URLSessionTaskDelegate' in scope
36 | func data(
37 | for request: URLRequest,
38 | delegate: URLSessionTaskDelegate?
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
39 | ) async throws -> (Data, URLResponse)
40 | }
/host/spi-builder-workspace/Sources/MicroClient/NetworkRequestInterceptor.swift:39:59: error: cannot find type 'URLRequest' in scope
37 | /// - Returns: A potentially modified `URLRequest`.
38 | /// - Throws: An error if the interception process fails. Throwing an error will cancel the entire request.
39 | func intercept(_ request: URLRequest) async throws -> URLRequest
| `- error: cannot find type 'URLRequest' in scope
40 | }
41 |
/host/spi-builder-workspace/Sources/MicroClient/NetworkRequestInterceptor.swift:39:31: error: cannot find type 'URLRequest' in scope
37 | /// - Returns: A potentially modified `URLRequest`.
38 | /// - Throws: An error if the interception process fails. Throwing an error will cancel the entire request.
39 | func intercept(_ request: URLRequest) async throws -> URLRequest
| `- error: cannot find type 'URLRequest' in scope
40 | }
41 |
[32/36] Compiling MicroClient NetworkLogger.swift
/host/spi-builder-workspace/Sources/MicroClient/NetworkClientError.swift:42:60: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
40 | /// - `response`: The metadata associated with the HTTP response.
41 | /// - `data`: The raw response body, which may contain more specific error details from the server.
42 | case unacceptableStatusCode(statusCode: Int, response: URLResponse, data: Data?)
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
43 |
44 | /// The response body could not be decoded into the expected `Decodable` type.
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/MicroClient/NetworkClientError.swift:42:10: warning: associated value 'unacceptableStatusCode(statusCode:response:data:)' of 'Sendable'-conforming enum 'NetworkClientError' contains non-Sendable type 'URLResponse' (aka 'AnyObject')
40 | /// - `response`: The metadata associated with the HTTP response.
41 | /// - `data`: The raw response body, which may contain more specific error details from the server.
42 | case unacceptableStatusCode(statusCode: Int, response: URLResponse, data: Data?)
| `- warning: associated value 'unacceptableStatusCode(statusCode:response:data:)' of 'Sendable'-conforming enum 'NetworkClientError' contains non-Sendable type 'URLResponse' (aka 'AnyObject')
43 |
44 | /// The response body could not be decoded into the expected `Decodable` type.
/host/spi-builder-workspace/Sources/MicroClient/Extensions/URLSessionProtocol.swift:37:22: error: cannot find type 'URLRequest' in scope
35 | /// - Returns: A tuple containing the response data and URLResponse.
36 | func data(
37 | for request: URLRequest,
| `- error: cannot find type 'URLRequest' in scope
38 | delegate: URLSessionTaskDelegate?
39 | ) async throws -> (Data, URLResponse)
/host/spi-builder-workspace/Sources/MicroClient/Extensions/URLSessionProtocol.swift:38:19: error: cannot find type 'URLSessionTaskDelegate' in scope
36 | func data(
37 | for request: URLRequest,
38 | delegate: URLSessionTaskDelegate?
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
39 | ) async throws -> (Data, URLResponse)
40 | }
/host/spi-builder-workspace/Sources/MicroClient/NetworkRequestInterceptor.swift:39:59: error: cannot find type 'URLRequest' in scope
37 | /// - Returns: A potentially modified `URLRequest`.
38 | /// - Throws: An error if the interception process fails. Throwing an error will cancel the entire request.
39 | func intercept(_ request: URLRequest) async throws -> URLRequest
| `- error: cannot find type 'URLRequest' in scope
40 | }
41 |
/host/spi-builder-workspace/Sources/MicroClient/NetworkRequestInterceptor.swift:39:31: error: cannot find type 'URLRequest' in scope
37 | /// - Returns: A potentially modified `URLRequest`.
38 | /// - Throws: An error if the interception process fails. Throwing an error will cancel the entire request.
39 | func intercept(_ request: URLRequest) async throws -> URLRequest
| `- error: cannot find type 'URLRequest' in scope
40 | }
41 |
[33/36] Compiling MicroClient NetworkRequest.swift
/host/spi-builder-workspace/Sources/MicroClient/NetworkRequestInterceptor.swift:39:59: error: cannot find type 'URLRequest' in scope
37 | /// - Returns: A potentially modified `URLRequest`.
38 | /// - Throws: An error if the interception process fails. Throwing an error will cancel the entire request.
39 | func intercept(_ request: URLRequest) async throws -> URLRequest
| `- error: cannot find type 'URLRequest' in scope
40 | }
41 |
/host/spi-builder-workspace/Sources/MicroClient/NetworkRequestInterceptor.swift:39:31: error: cannot find type 'URLRequest' in scope
37 | /// - Returns: A potentially modified `URLRequest`.
38 | /// - Throws: An error if the interception process fails. Throwing an error will cancel the entire request.
39 | func intercept(_ request: URLRequest) async throws -> URLRequest
| `- error: cannot find type 'URLRequest' in scope
40 | }
41 |
/host/spi-builder-workspace/Sources/MicroClient/NetworkResponse.swift:38:26: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
36 |
37 | /// The network response.
38 | public let response: URLResponse
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
39 |
40 | // MARK: - Life cycle
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/MicroClient/NetworkResponse.swift:44:19: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
42 | public init(
43 | value: ResponseModel,
44 | response: URLResponse
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
45 | ) {
46 | self.value = value
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/MicroClient/NetworkResponse.swift:38:16: error: stored property 'response' of 'Sendable'-conforming generic struct 'NetworkResponse' has non-Sendable type 'URLResponse' (aka 'AnyObject')
36 |
37 | /// The network response.
38 | public let response: URLResponse
| `- error: stored property 'response' of 'Sendable'-conforming generic struct 'NetworkResponse' has non-Sendable type 'URLResponse' (aka 'AnyObject')
39 |
40 | // MARK: - Life cycle
[34/36] Compiling MicroClient NetworkRequestInterceptor.swift
/host/spi-builder-workspace/Sources/MicroClient/NetworkRequestInterceptor.swift:39:59: error: cannot find type 'URLRequest' in scope
37 | /// - Returns: A potentially modified `URLRequest`.
38 | /// - Throws: An error if the interception process fails. Throwing an error will cancel the entire request.
39 | func intercept(_ request: URLRequest) async throws -> URLRequest
| `- error: cannot find type 'URLRequest' in scope
40 | }
41 |
/host/spi-builder-workspace/Sources/MicroClient/NetworkRequestInterceptor.swift:39:31: error: cannot find type 'URLRequest' in scope
37 | /// - Returns: A potentially modified `URLRequest`.
38 | /// - Throws: An error if the interception process fails. Throwing an error will cancel the entire request.
39 | func intercept(_ request: URLRequest) async throws -> URLRequest
| `- error: cannot find type 'URLRequest' in scope
40 | }
41 |
/host/spi-builder-workspace/Sources/MicroClient/NetworkResponse.swift:38:26: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
36 |
37 | /// The network response.
38 | public let response: URLResponse
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
39 |
40 | // MARK: - Life cycle
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/MicroClient/NetworkResponse.swift:44:19: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
42 | public init(
43 | value: ResponseModel,
44 | response: URLResponse
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
45 | ) {
46 | self.value = value
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/MicroClient/NetworkResponse.swift:38:16: error: stored property 'response' of 'Sendable'-conforming generic struct 'NetworkResponse' has non-Sendable type 'URLResponse' (aka 'AnyObject')
36 |
37 | /// The network response.
38 | public let response: URLResponse
| `- error: stored property 'response' of 'Sendable'-conforming generic struct 'NetworkResponse' has non-Sendable type 'URLResponse' (aka 'AnyObject')
39 |
40 | // MARK: - Life cycle
[35/36] Compiling MicroClient NetworkResponse.swift
/host/spi-builder-workspace/Sources/MicroClient/NetworkRequestInterceptor.swift:39:59: error: cannot find type 'URLRequest' in scope
37 | /// - Returns: A potentially modified `URLRequest`.
38 | /// - Throws: An error if the interception process fails. Throwing an error will cancel the entire request.
39 | func intercept(_ request: URLRequest) async throws -> URLRequest
| `- error: cannot find type 'URLRequest' in scope
40 | }
41 |
/host/spi-builder-workspace/Sources/MicroClient/NetworkRequestInterceptor.swift:39:31: error: cannot find type 'URLRequest' in scope
37 | /// - Returns: A potentially modified `URLRequest`.
38 | /// - Throws: An error if the interception process fails. Throwing an error will cancel the entire request.
39 | func intercept(_ request: URLRequest) async throws -> URLRequest
| `- error: cannot find type 'URLRequest' in scope
40 | }
41 |
/host/spi-builder-workspace/Sources/MicroClient/NetworkResponse.swift:38:26: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
36 |
37 | /// The network response.
38 | public let response: URLResponse
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
39 |
40 | // MARK: - Life cycle
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/MicroClient/NetworkResponse.swift:44:19: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
42 | public init(
43 | value: ResponseModel,
44 | response: URLResponse
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
45 | ) {
46 | self.value = value
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/MicroClient/NetworkResponse.swift:38:16: error: stored property 'response' of 'Sendable'-conforming generic struct 'NetworkResponse' has non-Sendable type 'URLResponse' (aka 'AnyObject')
36 |
37 | /// The network response.
38 | public let response: URLResponse
| `- error: stored property 'response' of 'Sendable'-conforming generic struct 'NetworkResponse' has non-Sendable type 'URLResponse' (aka 'AnyObject')
39 |
40 | // MARK: - Life cycle
[36/36] Compiling MicroClient NetworkResponseInterceptor.swift
/host/spi-builder-workspace/Sources/MicroClient/NetworkRequestInterceptor.swift:39:59: error: cannot find type 'URLRequest' in scope
37 | /// - Returns: A potentially modified `URLRequest`.
38 | /// - Throws: An error if the interception process fails. Throwing an error will cancel the entire request.
39 | func intercept(_ request: URLRequest) async throws -> URLRequest
| `- error: cannot find type 'URLRequest' in scope
40 | }
41 |
/host/spi-builder-workspace/Sources/MicroClient/NetworkRequestInterceptor.swift:39:31: error: cannot find type 'URLRequest' in scope
37 | /// - Returns: A potentially modified `URLRequest`.
38 | /// - Throws: An error if the interception process fails. Throwing an error will cancel the entire request.
39 | func intercept(_ request: URLRequest) async throws -> URLRequest
| `- error: cannot find type 'URLRequest' in scope
40 | }
41 |
/host/spi-builder-workspace/Sources/MicroClient/NetworkResponse.swift:38:26: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
36 |
37 | /// The network response.
38 | public let response: URLResponse
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
39 |
40 | // MARK: - Life cycle
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/MicroClient/NetworkResponse.swift:44:19: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
42 | public init(
43 | value: ResponseModel,
44 | response: URLResponse
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
45 | ) {
46 | self.value = value
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/MicroClient/NetworkResponse.swift:38:16: error: stored property 'response' of 'Sendable'-conforming generic struct 'NetworkResponse' has non-Sendable type 'URLResponse' (aka 'AnyObject')
36 |
37 | /// The network response.
38 | public let response: URLResponse
| `- error: stored property 'response' of 'Sendable'-conforming generic struct 'NetworkResponse' has non-Sendable type 'URLResponse' (aka 'AnyObject')
39 |
40 | // MARK: - Life cycle
BUILD FAILURE 6.2 wasm