Build Information
Failed to build MicroClient, reference 0.0.27 (794c20), with Swift 6.1 for Wasm on 23 Nov 2025 15:05:03 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4606859-1":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1Build Log
67 | _ data: Data
68 | ) async throws -> NetworkResponse<ResponseModel> {
69 | let httpResponse = response.response as? HTTPURLResponse
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
70 |
71 | 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:72:39: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
70 |
71 | let metrics = ResponseMetrics(
72 | statusCode: httpResponse?.statusCode,
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
73 | responseSize: data.count,
74 | url: httpResponse?.url,
/host/spi-builder-workspace/Sources/MicroClient/Interceptors/MetricsCollectionInterceptor.swift:74:32: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'url'
72 | statusCode: httpResponse?.statusCode,
73 | responseSize: data.count,
74 | url: httpResponse?.url,
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'url'
75 | httpMethod: httpResponse?.value(forHTTPHeaderField: "X-HTTP-Method")
76 | )
/host/spi-builder-workspace/Sources/MicroClient/Interceptors/MetricsCollectionInterceptor.swift:75:39: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
73 | responseSize: data.count,
74 | url: httpResponse?.url,
75 | httpMethod: httpResponse?.value(forHTTPHeaderField: "X-HTTP-Method")
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
76 | )
77 |
[36/36] Compiling MicroClient MetricsCollectionInterceptor.swift
/host/spi-builder-workspace/Sources/MicroClient/Interceptors/BearerAuthorizationInterceptor.swift:27:66: error: cannot find type 'URLRequest' in scope
25 | // MARK: - Public
26 |
27 | public func intercept(_ request: URLRequest) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
28 | var newRequest = request
29 |
/host/spi-builder-workspace/Sources/MicroClient/Interceptors/BearerAuthorizationInterceptor.swift:27:38: error: cannot find type 'URLRequest' in scope
25 | // MARK: - Public
26 |
27 | public func intercept(_ request: URLRequest) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
28 | var newRequest = request
29 |
/host/spi-builder-workspace/Sources/MicroClient/NetworkRequestInterceptor.swift:14:59: error: cannot find type 'URLRequest' in scope
12 | /// - Returns: A potentially modified `URLRequest`.
13 | /// - Throws: An error if the interception process fails. Throwing an error will cancel the entire request.
14 | func intercept(_ request: URLRequest) async throws -> URLRequest
| `- error: cannot find type 'URLRequest' in scope
15 | }
16 |
/host/spi-builder-workspace/Sources/MicroClient/NetworkRequestInterceptor.swift:14:31: error: cannot find type 'URLRequest' in scope
12 | /// - Returns: A potentially modified `URLRequest`.
13 | /// - Throws: An error if the interception process fails. Throwing an error will cancel the entire request.
14 | func intercept(_ request: URLRequest) async throws -> URLRequest
| `- error: cannot find type 'URLRequest' in scope
15 | }
16 |
/host/spi-builder-workspace/Sources/MicroClient/Interceptors/CacheControlInterceptor.swift:42:66: error: cannot find type 'URLRequest' in scope
40 | // MARK: - Public
41 |
42 | public func intercept(_ request: URLRequest) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
43 | var newRequest = request
44 | newRequest.setValue(policy.headerValue, forHTTPHeaderField: "Cache-Control")
/host/spi-builder-workspace/Sources/MicroClient/Interceptors/CacheControlInterceptor.swift:42:38: error: cannot find type 'URLRequest' in scope
40 | // MARK: - Public
41 |
42 | public func intercept(_ request: URLRequest) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
43 | var newRequest = request
44 | newRequest.setValue(policy.headerValue, forHTTPHeaderField: "Cache-Control")
/host/spi-builder-workspace/Sources/MicroClient/Interceptors/ContentTypeInterceptor.swift:26:66: error: cannot find type 'URLRequest' in scope
24 | // MARK: - Public
25 |
26 | public func intercept(_ request: URLRequest) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
27 | var newRequest = request
28 |
/host/spi-builder-workspace/Sources/MicroClient/Interceptors/ContentTypeInterceptor.swift:26:38: error: cannot find type 'URLRequest' in scope
24 | // MARK: - Public
25 |
26 | public func intercept(_ request: URLRequest) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
27 | var newRequest = request
28 |
/host/spi-builder-workspace/Sources/MicroClient/Interceptors/MetricsCollectionInterceptor.swift:69:46: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
67 | _ data: Data
68 | ) async throws -> NetworkResponse<ResponseModel> {
69 | let httpResponse = response.response as? HTTPURLResponse
| `- warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
70 |
71 | let metrics = ResponseMetrics(
/host/spi-builder-workspace/Sources/MicroClient/Interceptors/MetricsCollectionInterceptor.swift:69:50: 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 | let httpResponse = response.response as? HTTPURLResponse
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
70 |
71 | 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:72:39: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
70 |
71 | let metrics = ResponseMetrics(
72 | statusCode: httpResponse?.statusCode,
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
73 | responseSize: data.count,
74 | url: httpResponse?.url,
/host/spi-builder-workspace/Sources/MicroClient/Interceptors/MetricsCollectionInterceptor.swift:74:32: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'url'
72 | statusCode: httpResponse?.statusCode,
73 | responseSize: data.count,
74 | url: httpResponse?.url,
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'url'
75 | httpMethod: httpResponse?.value(forHTTPHeaderField: "X-HTTP-Method")
76 | )
/host/spi-builder-workspace/Sources/MicroClient/Interceptors/MetricsCollectionInterceptor.swift:75:39: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
73 | responseSize: data.count,
74 | url: httpResponse?.url,
75 | httpMethod: httpResponse?.value(forHTTPHeaderField: "X-HTTP-Method")
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
76 | )
77 |
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-1":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1
wasm-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:4dfe22dedd7a52399668938cbd466a34545eff77bced906005dc4032a6549d90
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest
[0/1] Planning build
Building for debugging...
[0/1] Write swift-version-24593BA9C3E375BF.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[2/31] Emitting module MicroClient
/host/spi-builder-workspace/Sources/MicroClient/Extensions/URLRequest.swift:3:11: error: cannot find type 'URLRequest' in scope
1 | import Foundation
2 |
3 | extension URLRequest {
| `- error: cannot find type 'URLRequest' in scope
4 |
5 | static func makeURLRequest(
/host/spi-builder-workspace/Sources/MicroClient/Extensions/URLResponse.swift:3:8: error: non-nominal type 'URLResponse' (aka 'AnyObject') cannot be extended
1 | import Foundation
2 |
3 | public extension URLResponse {
| `- error: non-nominal type 'URLResponse' (aka 'AnyObject') cannot be extended
4 |
5 | /// Returns the HTTP Header value for "Location". Default: `nil`.
/host/spi-builder-workspace/Sources/MicroClient/Extensions/URLSessionProtocol.swift:12:22: error: cannot find type 'URLRequest' in scope
10 | /// - Returns: A tuple containing the response data and URLResponse.
11 | func data(
12 | for request: URLRequest,
| `- error: cannot find type 'URLRequest' in scope
13 | delegate: URLSessionTaskDelegate?
14 | ) async throws -> (Data, URLResponse)
/host/spi-builder-workspace/Sources/MicroClient/Extensions/URLSessionProtocol.swift:13:19: error: cannot find type 'URLSessionTaskDelegate' in scope
11 | func data(
12 | for request: URLRequest,
13 | delegate: URLSessionTaskDelegate?
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
14 | ) async throws -> (Data, URLResponse)
15 | }
/host/spi-builder-workspace/Sources/MicroClient/Extensions/URLSessionProtocol.swift:14:30: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
12 | for request: URLRequest,
13 | delegate: URLSessionTaskDelegate?
14 | ) async throws -> (Data, URLResponse)
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
15 | }
16 |
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:19:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
17 | // MARK: - URLSession conformance
18 |
19 | extension URLSession: URLSessionProtocol {}
| `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
20 |
/host/spi-builder-workspace/Sources/MicroClient/Interceptors/APIKeyInterceptor.swift:30:66: error: cannot find type 'URLRequest' in scope
28 | // MARK: - Public
29 |
30 | public func intercept(_ request: URLRequest) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
31 | var newRequest = request
32 | newRequest.setValue(apiKey, forHTTPHeaderField: headerName)
/host/spi-builder-workspace/Sources/MicroClient/Interceptors/APIKeyInterceptor.swift:30:38: error: cannot find type 'URLRequest' in scope
28 | // MARK: - Public
29 |
30 | public func intercept(_ request: URLRequest) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
31 | var newRequest = request
32 | newRequest.setValue(apiKey, forHTTPHeaderField: headerName)
/host/spi-builder-workspace/Sources/MicroClient/NetworkRequestInterceptor.swift:14:59: error: cannot find type 'URLRequest' in scope
12 | /// - Returns: A potentially modified `URLRequest`.
13 | /// - Throws: An error if the interception process fails. Throwing an error will cancel the entire request.
14 | func intercept(_ request: URLRequest) async throws -> URLRequest
| `- error: cannot find type 'URLRequest' in scope
15 | }
16 |
/host/spi-builder-workspace/Sources/MicroClient/NetworkRequestInterceptor.swift:14:31: error: cannot find type 'URLRequest' in scope
12 | /// - Returns: A potentially modified `URLRequest`.
13 | /// - Throws: An error if the interception process fails. Throwing an error will cancel the entire request.
14 | func intercept(_ request: URLRequest) async throws -> URLRequest
| `- error: cannot find type 'URLRequest' in scope
15 | }
16 |
/host/spi-builder-workspace/Sources/MicroClient/Interceptors/AcceptHeaderInterceptor.swift:26:66: error: cannot find type 'URLRequest' in scope
24 | // MARK: - Public
25 |
26 | public func intercept(_ request: URLRequest) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
27 | var newRequest = request
28 | newRequest.setValue(acceptType, forHTTPHeaderField: "Accept")
/host/spi-builder-workspace/Sources/MicroClient/Interceptors/AcceptHeaderInterceptor.swift:26:38: error: cannot find type 'URLRequest' in scope
24 | // MARK: - Public
25 |
26 | public func intercept(_ request: URLRequest) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
27 | var newRequest = request
28 | newRequest.setValue(acceptType, forHTTPHeaderField: "Accept")
/host/spi-builder-workspace/Sources/MicroClient/Interceptors/BasicAuthInterceptor.swift:47:66: error: cannot find type 'URLRequest' in scope
45 | // MARK: - Public
46 |
47 | public func intercept(_ request: URLRequest) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
48 | var newRequest = request
49 |
/host/spi-builder-workspace/Sources/MicroClient/Interceptors/BasicAuthInterceptor.swift:47:38: error: cannot find type 'URLRequest' in scope
45 | // MARK: - Public
46 |
47 | public func intercept(_ request: URLRequest) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
48 | var newRequest = request
49 |
/host/spi-builder-workspace/Sources/MicroClient/Interceptors/BearerAuthorizationInterceptor.swift:27:66: error: cannot find type 'URLRequest' in scope
25 | // MARK: - Public
26 |
27 | public func intercept(_ request: URLRequest) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
28 | var newRequest = request
29 |
/host/spi-builder-workspace/Sources/MicroClient/Interceptors/BearerAuthorizationInterceptor.swift:27:38: error: cannot find type 'URLRequest' in scope
25 | // MARK: - Public
26 |
27 | public func intercept(_ request: URLRequest) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
28 | var newRequest = request
29 |
/host/spi-builder-workspace/Sources/MicroClient/Interceptors/CacheControlInterceptor.swift:42:66: error: cannot find type 'URLRequest' in scope
40 | // MARK: - Public
41 |
42 | public func intercept(_ request: URLRequest) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
43 | var newRequest = request
44 | newRequest.setValue(policy.headerValue, forHTTPHeaderField: "Cache-Control")
/host/spi-builder-workspace/Sources/MicroClient/Interceptors/CacheControlInterceptor.swift:42:38: error: cannot find type 'URLRequest' in scope
40 | // MARK: - Public
41 |
42 | public func intercept(_ request: URLRequest) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
43 | var newRequest = request
44 | newRequest.setValue(policy.headerValue, forHTTPHeaderField: "Cache-Control")
/host/spi-builder-workspace/Sources/MicroClient/Interceptors/ContentTypeInterceptor.swift:26:66: error: cannot find type 'URLRequest' in scope
24 | // MARK: - Public
25 |
26 | public func intercept(_ request: URLRequest) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
27 | var newRequest = request
28 |
/host/spi-builder-workspace/Sources/MicroClient/Interceptors/ContentTypeInterceptor.swift:26:38: error: cannot find type 'URLRequest' in scope
24 | // MARK: - Public
25 |
26 | public func intercept(_ request: URLRequest) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
27 | var newRequest = request
28 |
/host/spi-builder-workspace/Sources/MicroClient/Interceptors/RequestIDInterceptor.swift:26:66: error: cannot find type 'URLRequest' in scope
24 | // MARK: - Public
25 |
26 | public func intercept(_ request: URLRequest) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
27 | var newRequest = request
28 | let requestID = UUID().uuidString
/host/spi-builder-workspace/Sources/MicroClient/Interceptors/RequestIDInterceptor.swift:26:38: error: cannot find type 'URLRequest' in scope
24 | // MARK: - Public
25 |
26 | public func intercept(_ request: URLRequest) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
27 | var newRequest = request
28 | let requestID = UUID().uuidString
/host/spi-builder-workspace/Sources/MicroClient/Interceptors/TimeoutInterceptor.swift:25:66: error: cannot find type 'URLRequest' in scope
23 | // MARK: - Public
24 |
25 | public func intercept(_ request: URLRequest) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
26 | var newRequest = request
27 | newRequest.timeoutInterval = timeout
/host/spi-builder-workspace/Sources/MicroClient/Interceptors/TimeoutInterceptor.swift:25:38: error: cannot find type 'URLRequest' in scope
23 | // MARK: - Public
24 |
25 | public func intercept(_ request: URLRequest) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
26 | var newRequest = request
27 | newRequest.timeoutInterval = timeout
/host/spi-builder-workspace/Sources/MicroClient/Interceptors/UserAgentInterceptor.swift:33:66: error: cannot find type 'URLRequest' in scope
31 | // MARK: - Public
32 |
33 | public func intercept(_ request: URLRequest) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
34 | var newRequest = request
35 | newRequest.setValue(userAgent, forHTTPHeaderField: "User-Agent")
/host/spi-builder-workspace/Sources/MicroClient/Interceptors/UserAgentInterceptor.swift:33:38: error: cannot find type 'URLRequest' in scope
31 | // MARK: - Public
32 |
33 | public func intercept(_ request: URLRequest) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
34 | var newRequest = request
35 | newRequest.setValue(userAgent, forHTTPHeaderField: "User-Agent")
/host/spi-builder-workspace/Sources/MicroClient/NetworkClientError.swift:17:60: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
15 | /// - `response`: The metadata associated with the HTTP response.
16 | /// - `data`: The raw response body, which may contain more specific error details from the server.
17 | 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.
18 |
19 | /// 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:17:10: error: associated value 'unacceptableStatusCode(statusCode:response:data:)' of 'Sendable'-conforming enum 'NetworkClientError' has non-sendable type 'URLResponse' (aka 'AnyObject')
15 | /// - `response`: The metadata associated with the HTTP response.
16 | /// - `data`: The raw response body, which may contain more specific error details from the server.
17 | case unacceptableStatusCode(statusCode: Int, response: URLResponse, data: Data?)
| `- error: associated value 'unacceptableStatusCode(statusCode:response:data:)' of 'Sendable'-conforming enum 'NetworkClientError' has non-sendable type 'URLResponse' (aka 'AnyObject')
18 |
19 | /// The response body could not be decoded into the expected `Decodable` type.
/host/spi-builder-workspace/Sources/MicroClient/NetworkResponse.swift:13:26: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
11 |
12 | /// The network response.
13 | public let response: URLResponse
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
14 |
15 | // 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:19:19: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
17 | public init(
18 | value: ResponseModel,
19 | response: URLResponse
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
20 | ) {
21 | 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:13:16: error: stored property 'response' of 'Sendable'-conforming generic struct 'NetworkResponse' has non-sendable type 'URLResponse' (aka 'AnyObject')
11 |
12 | /// The network response.
13 | public let response: URLResponse
| `- error: stored property 'response' of 'Sendable'-conforming generic struct 'NetworkResponse' has non-sendable type 'URLResponse' (aka 'AnyObject')
14 |
15 | // MARK: - Life cycle
[3/35] Compiling MicroClient HTTPMethod.swift
/host/spi-builder-workspace/Sources/MicroClient/Interceptors/APIKeyInterceptor.swift:30:66: error: cannot find type 'URLRequest' in scope
28 | // MARK: - Public
29 |
30 | public func intercept(_ request: URLRequest) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
31 | var newRequest = request
32 | newRequest.setValue(apiKey, forHTTPHeaderField: headerName)
/host/spi-builder-workspace/Sources/MicroClient/Interceptors/APIKeyInterceptor.swift:30:38: error: cannot find type 'URLRequest' in scope
28 | // MARK: - Public
29 |
30 | public func intercept(_ request: URLRequest) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
31 | var newRequest = request
32 | newRequest.setValue(apiKey, forHTTPHeaderField: headerName)
/host/spi-builder-workspace/Sources/MicroClient/NetworkRequestInterceptor.swift:14:59: error: cannot find type 'URLRequest' in scope
12 | /// - Returns: A potentially modified `URLRequest`.
13 | /// - Throws: An error if the interception process fails. Throwing an error will cancel the entire request.
14 | func intercept(_ request: URLRequest) async throws -> URLRequest
| `- error: cannot find type 'URLRequest' in scope
15 | }
16 |
/host/spi-builder-workspace/Sources/MicroClient/NetworkRequestInterceptor.swift:14:31: error: cannot find type 'URLRequest' in scope
12 | /// - Returns: A potentially modified `URLRequest`.
13 | /// - Throws: An error if the interception process fails. Throwing an error will cancel the entire request.
14 | func intercept(_ request: URLRequest) async throws -> URLRequest
| `- error: cannot find type 'URLRequest' in scope
15 | }
16 |
/host/spi-builder-workspace/Sources/MicroClient/Interceptors/AcceptHeaderInterceptor.swift:26:66: error: cannot find type 'URLRequest' in scope
24 | // MARK: - Public
25 |
26 | public func intercept(_ request: URLRequest) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
27 | var newRequest = request
28 | newRequest.setValue(acceptType, forHTTPHeaderField: "Accept")
/host/spi-builder-workspace/Sources/MicroClient/Interceptors/AcceptHeaderInterceptor.swift:26:38: error: cannot find type 'URLRequest' in scope
24 | // MARK: - Public
25 |
26 | public func intercept(_ request: URLRequest) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
27 | var newRequest = request
28 | newRequest.setValue(acceptType, forHTTPHeaderField: "Accept")
/host/spi-builder-workspace/Sources/MicroClient/Interceptors/BasicAuthInterceptor.swift:47:66: error: cannot find type 'URLRequest' in scope
45 | // MARK: - Public
46 |
47 | public func intercept(_ request: URLRequest) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
48 | var newRequest = request
49 |
/host/spi-builder-workspace/Sources/MicroClient/Interceptors/BasicAuthInterceptor.swift:47:38: error: cannot find type 'URLRequest' in scope
45 | // MARK: - Public
46 |
47 | public func intercept(_ request: URLRequest) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
48 | var newRequest = request
49 |
[4/35] Compiling MicroClient APIKeyInterceptor.swift
/host/spi-builder-workspace/Sources/MicroClient/Interceptors/APIKeyInterceptor.swift:30:66: error: cannot find type 'URLRequest' in scope
28 | // MARK: - Public
29 |
30 | public func intercept(_ request: URLRequest) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
31 | var newRequest = request
32 | newRequest.setValue(apiKey, forHTTPHeaderField: headerName)
/host/spi-builder-workspace/Sources/MicroClient/Interceptors/APIKeyInterceptor.swift:30:38: error: cannot find type 'URLRequest' in scope
28 | // MARK: - Public
29 |
30 | public func intercept(_ request: URLRequest) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
31 | var newRequest = request
32 | newRequest.setValue(apiKey, forHTTPHeaderField: headerName)
/host/spi-builder-workspace/Sources/MicroClient/NetworkRequestInterceptor.swift:14:59: error: cannot find type 'URLRequest' in scope
12 | /// - Returns: A potentially modified `URLRequest`.
13 | /// - Throws: An error if the interception process fails. Throwing an error will cancel the entire request.
14 | func intercept(_ request: URLRequest) async throws -> URLRequest
| `- error: cannot find type 'URLRequest' in scope
15 | }
16 |
/host/spi-builder-workspace/Sources/MicroClient/NetworkRequestInterceptor.swift:14:31: error: cannot find type 'URLRequest' in scope
12 | /// - Returns: A potentially modified `URLRequest`.
13 | /// - Throws: An error if the interception process fails. Throwing an error will cancel the entire request.
14 | func intercept(_ request: URLRequest) async throws -> URLRequest
| `- error: cannot find type 'URLRequest' in scope
15 | }
16 |
/host/spi-builder-workspace/Sources/MicroClient/Interceptors/AcceptHeaderInterceptor.swift:26:66: error: cannot find type 'URLRequest' in scope
24 | // MARK: - Public
25 |
26 | public func intercept(_ request: URLRequest) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
27 | var newRequest = request
28 | newRequest.setValue(acceptType, forHTTPHeaderField: "Accept")
/host/spi-builder-workspace/Sources/MicroClient/Interceptors/AcceptHeaderInterceptor.swift:26:38: error: cannot find type 'URLRequest' in scope
24 | // MARK: - Public
25 |
26 | public func intercept(_ request: URLRequest) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
27 | var newRequest = request
28 | newRequest.setValue(acceptType, forHTTPHeaderField: "Accept")
/host/spi-builder-workspace/Sources/MicroClient/Interceptors/BasicAuthInterceptor.swift:47:66: error: cannot find type 'URLRequest' in scope
45 | // MARK: - Public
46 |
47 | public func intercept(_ request: URLRequest) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
48 | var newRequest = request
49 |
/host/spi-builder-workspace/Sources/MicroClient/Interceptors/BasicAuthInterceptor.swift:47:38: error: cannot find type 'URLRequest' in scope
45 | // MARK: - Public
46 |
47 | public func intercept(_ request: URLRequest) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
48 | var newRequest = request
49 |
[5/35] Compiling MicroClient AcceptHeaderInterceptor.swift
/host/spi-builder-workspace/Sources/MicroClient/Interceptors/APIKeyInterceptor.swift:30:66: error: cannot find type 'URLRequest' in scope
28 | // MARK: - Public
29 |
30 | public func intercept(_ request: URLRequest) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
31 | var newRequest = request
32 | newRequest.setValue(apiKey, forHTTPHeaderField: headerName)
/host/spi-builder-workspace/Sources/MicroClient/Interceptors/APIKeyInterceptor.swift:30:38: error: cannot find type 'URLRequest' in scope
28 | // MARK: - Public
29 |
30 | public func intercept(_ request: URLRequest) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
31 | var newRequest = request
32 | newRequest.setValue(apiKey, forHTTPHeaderField: headerName)
/host/spi-builder-workspace/Sources/MicroClient/NetworkRequestInterceptor.swift:14:59: error: cannot find type 'URLRequest' in scope
12 | /// - Returns: A potentially modified `URLRequest`.
13 | /// - Throws: An error if the interception process fails. Throwing an error will cancel the entire request.
14 | func intercept(_ request: URLRequest) async throws -> URLRequest
| `- error: cannot find type 'URLRequest' in scope
15 | }
16 |
/host/spi-builder-workspace/Sources/MicroClient/NetworkRequestInterceptor.swift:14:31: error: cannot find type 'URLRequest' in scope
12 | /// - Returns: A potentially modified `URLRequest`.
13 | /// - Throws: An error if the interception process fails. Throwing an error will cancel the entire request.
14 | func intercept(_ request: URLRequest) async throws -> URLRequest
| `- error: cannot find type 'URLRequest' in scope
15 | }
16 |
/host/spi-builder-workspace/Sources/MicroClient/Interceptors/AcceptHeaderInterceptor.swift:26:66: error: cannot find type 'URLRequest' in scope
24 | // MARK: - Public
25 |
26 | public func intercept(_ request: URLRequest) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
27 | var newRequest = request
28 | newRequest.setValue(acceptType, forHTTPHeaderField: "Accept")
/host/spi-builder-workspace/Sources/MicroClient/Interceptors/AcceptHeaderInterceptor.swift:26:38: error: cannot find type 'URLRequest' in scope
24 | // MARK: - Public
25 |
26 | public func intercept(_ request: URLRequest) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
27 | var newRequest = request
28 | newRequest.setValue(acceptType, forHTTPHeaderField: "Accept")
/host/spi-builder-workspace/Sources/MicroClient/Interceptors/BasicAuthInterceptor.swift:47:66: error: cannot find type 'URLRequest' in scope
45 | // MARK: - Public
46 |
47 | public func intercept(_ request: URLRequest) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
48 | var newRequest = request
49 |
/host/spi-builder-workspace/Sources/MicroClient/Interceptors/BasicAuthInterceptor.swift:47:38: error: cannot find type 'URLRequest' in scope
45 | // MARK: - Public
46 |
47 | public func intercept(_ request: URLRequest) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
48 | var newRequest = request
49 |
[6/35] Compiling MicroClient BasicAuthInterceptor.swift
/host/spi-builder-workspace/Sources/MicroClient/Interceptors/APIKeyInterceptor.swift:30:66: error: cannot find type 'URLRequest' in scope
28 | // MARK: - Public
29 |
30 | public func intercept(_ request: URLRequest) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
31 | var newRequest = request
32 | newRequest.setValue(apiKey, forHTTPHeaderField: headerName)
/host/spi-builder-workspace/Sources/MicroClient/Interceptors/APIKeyInterceptor.swift:30:38: error: cannot find type 'URLRequest' in scope
28 | // MARK: - Public
29 |
30 | public func intercept(_ request: URLRequest) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
31 | var newRequest = request
32 | newRequest.setValue(apiKey, forHTTPHeaderField: headerName)
/host/spi-builder-workspace/Sources/MicroClient/NetworkRequestInterceptor.swift:14:59: error: cannot find type 'URLRequest' in scope
12 | /// - Returns: A potentially modified `URLRequest`.
13 | /// - Throws: An error if the interception process fails. Throwing an error will cancel the entire request.
14 | func intercept(_ request: URLRequest) async throws -> URLRequest
| `- error: cannot find type 'URLRequest' in scope
15 | }
16 |
/host/spi-builder-workspace/Sources/MicroClient/NetworkRequestInterceptor.swift:14:31: error: cannot find type 'URLRequest' in scope
12 | /// - Returns: A potentially modified `URLRequest`.
13 | /// - Throws: An error if the interception process fails. Throwing an error will cancel the entire request.
14 | func intercept(_ request: URLRequest) async throws -> URLRequest
| `- error: cannot find type 'URLRequest' in scope
15 | }
16 |
/host/spi-builder-workspace/Sources/MicroClient/Interceptors/AcceptHeaderInterceptor.swift:26:66: error: cannot find type 'URLRequest' in scope
24 | // MARK: - Public
25 |
26 | public func intercept(_ request: URLRequest) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
27 | var newRequest = request
28 | newRequest.setValue(acceptType, forHTTPHeaderField: "Accept")
/host/spi-builder-workspace/Sources/MicroClient/Interceptors/AcceptHeaderInterceptor.swift:26:38: error: cannot find type 'URLRequest' in scope
24 | // MARK: - Public
25 |
26 | public func intercept(_ request: URLRequest) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
27 | var newRequest = request
28 | newRequest.setValue(acceptType, forHTTPHeaderField: "Accept")
/host/spi-builder-workspace/Sources/MicroClient/Interceptors/BasicAuthInterceptor.swift:47:66: error: cannot find type 'URLRequest' in scope
45 | // MARK: - Public
46 |
47 | public func intercept(_ request: URLRequest) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
48 | var newRequest = request
49 |
/host/spi-builder-workspace/Sources/MicroClient/Interceptors/BasicAuthInterceptor.swift:47:38: error: cannot find type 'URLRequest' in scope
45 | // MARK: - Public
46 |
47 | public func intercept(_ request: URLRequest) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
48 | var newRequest = request
49 |
[7/35] Compiling MicroClient NetworkClientError.swift
/host/spi-builder-workspace/Sources/MicroClient/NetworkClientError.swift:17:60: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
15 | /// - `response`: The metadata associated with the HTTP response.
16 | /// - `data`: The raw response body, which may contain more specific error details from the server.
17 | 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.
18 |
19 | /// 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:17:10: error: associated value 'unacceptableStatusCode(statusCode:response:data:)' of 'Sendable'-conforming enum 'NetworkClientError' has non-sendable type 'URLResponse' (aka 'AnyObject')
15 | /// - `response`: The metadata associated with the HTTP response.
16 | /// - `data`: The raw response body, which may contain more specific error details from the server.
17 | case unacceptableStatusCode(statusCode: Int, response: URLResponse, data: Data?)
| `- error: associated value 'unacceptableStatusCode(statusCode:response:data:)' of 'Sendable'-conforming enum 'NetworkClientError' has non-sendable type 'URLResponse' (aka 'AnyObject')
18 |
19 | /// The response body could not be decoded into the expected `Decodable` type.
/host/spi-builder-workspace/Sources/MicroClient/Extensions/URLSessionProtocol.swift:12:22: error: cannot find type 'URLRequest' in scope
10 | /// - Returns: A tuple containing the response data and URLResponse.
11 | func data(
12 | for request: URLRequest,
| `- error: cannot find type 'URLRequest' in scope
13 | delegate: URLSessionTaskDelegate?
14 | ) async throws -> (Data, URLResponse)
/host/spi-builder-workspace/Sources/MicroClient/Extensions/URLSessionProtocol.swift:13:19: error: cannot find type 'URLSessionTaskDelegate' in scope
11 | func data(
12 | for request: URLRequest,
13 | delegate: URLSessionTaskDelegate?
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
14 | ) async throws -> (Data, URLResponse)
15 | }
/host/spi-builder-workspace/Sources/MicroClient/NetworkRequestInterceptor.swift:14:59: error: cannot find type 'URLRequest' in scope
12 | /// - Returns: A potentially modified `URLRequest`.
13 | /// - Throws: An error if the interception process fails. Throwing an error will cancel the entire request.
14 | func intercept(_ request: URLRequest) async throws -> URLRequest
| `- error: cannot find type 'URLRequest' in scope
15 | }
16 |
/host/spi-builder-workspace/Sources/MicroClient/NetworkRequestInterceptor.swift:14:31: error: cannot find type 'URLRequest' in scope
12 | /// - Returns: A potentially modified `URLRequest`.
13 | /// - Throws: An error if the interception process fails. Throwing an error will cancel the entire request.
14 | func intercept(_ request: URLRequest) async throws -> URLRequest
| `- error: cannot find type 'URLRequest' in scope
15 | }
16 |
[8/35] Compiling MicroClient NetworkConfiguration.swift
/host/spi-builder-workspace/Sources/MicroClient/NetworkClientError.swift:17:60: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
15 | /// - `response`: The metadata associated with the HTTP response.
16 | /// - `data`: The raw response body, which may contain more specific error details from the server.
17 | 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.
18 |
19 | /// 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:17:10: error: associated value 'unacceptableStatusCode(statusCode:response:data:)' of 'Sendable'-conforming enum 'NetworkClientError' has non-sendable type 'URLResponse' (aka 'AnyObject')
15 | /// - `response`: The metadata associated with the HTTP response.
16 | /// - `data`: The raw response body, which may contain more specific error details from the server.
17 | case unacceptableStatusCode(statusCode: Int, response: URLResponse, data: Data?)
| `- error: associated value 'unacceptableStatusCode(statusCode:response:data:)' of 'Sendable'-conforming enum 'NetworkClientError' has non-sendable type 'URLResponse' (aka 'AnyObject')
18 |
19 | /// The response body could not be decoded into the expected `Decodable` type.
/host/spi-builder-workspace/Sources/MicroClient/Extensions/URLSessionProtocol.swift:12:22: error: cannot find type 'URLRequest' in scope
10 | /// - Returns: A tuple containing the response data and URLResponse.
11 | func data(
12 | for request: URLRequest,
| `- error: cannot find type 'URLRequest' in scope
13 | delegate: URLSessionTaskDelegate?
14 | ) async throws -> (Data, URLResponse)
/host/spi-builder-workspace/Sources/MicroClient/Extensions/URLSessionProtocol.swift:13:19: error: cannot find type 'URLSessionTaskDelegate' in scope
11 | func data(
12 | for request: URLRequest,
13 | delegate: URLSessionTaskDelegate?
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
14 | ) async throws -> (Data, URLResponse)
15 | }
/host/spi-builder-workspace/Sources/MicroClient/NetworkRequestInterceptor.swift:14:59: error: cannot find type 'URLRequest' in scope
12 | /// - Returns: A potentially modified `URLRequest`.
13 | /// - Throws: An error if the interception process fails. Throwing an error will cancel the entire request.
14 | func intercept(_ request: URLRequest) async throws -> URLRequest
| `- error: cannot find type 'URLRequest' in scope
15 | }
16 |
/host/spi-builder-workspace/Sources/MicroClient/NetworkRequestInterceptor.swift:14:31: error: cannot find type 'URLRequest' in scope
12 | /// - Returns: A potentially modified `URLRequest`.
13 | /// - Throws: An error if the interception process fails. Throwing an error will cancel the entire request.
14 | func intercept(_ request: URLRequest) async throws -> URLRequest
| `- error: cannot find type 'URLRequest' in scope
15 | }
16 |
[9/35] Compiling MicroClient NetworkLogLevel.swift
/host/spi-builder-workspace/Sources/MicroClient/NetworkClientError.swift:17:60: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
15 | /// - `response`: The metadata associated with the HTTP response.
16 | /// - `data`: The raw response body, which may contain more specific error details from the server.
17 | 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.
18 |
19 | /// 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:17:10: error: associated value 'unacceptableStatusCode(statusCode:response:data:)' of 'Sendable'-conforming enum 'NetworkClientError' has non-sendable type 'URLResponse' (aka 'AnyObject')
15 | /// - `response`: The metadata associated with the HTTP response.
16 | /// - `data`: The raw response body, which may contain more specific error details from the server.
17 | case unacceptableStatusCode(statusCode: Int, response: URLResponse, data: Data?)
| `- error: associated value 'unacceptableStatusCode(statusCode:response:data:)' of 'Sendable'-conforming enum 'NetworkClientError' has non-sendable type 'URLResponse' (aka 'AnyObject')
18 |
19 | /// The response body could not be decoded into the expected `Decodable` type.
/host/spi-builder-workspace/Sources/MicroClient/Extensions/URLSessionProtocol.swift:12:22: error: cannot find type 'URLRequest' in scope
10 | /// - Returns: A tuple containing the response data and URLResponse.
11 | func data(
12 | for request: URLRequest,
| `- error: cannot find type 'URLRequest' in scope
13 | delegate: URLSessionTaskDelegate?
14 | ) async throws -> (Data, URLResponse)
/host/spi-builder-workspace/Sources/MicroClient/Extensions/URLSessionProtocol.swift:13:19: error: cannot find type 'URLSessionTaskDelegate' in scope
11 | func data(
12 | for request: URLRequest,
13 | delegate: URLSessionTaskDelegate?
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
14 | ) async throws -> (Data, URLResponse)
15 | }
/host/spi-builder-workspace/Sources/MicroClient/NetworkRequestInterceptor.swift:14:59: error: cannot find type 'URLRequest' in scope
12 | /// - Returns: A potentially modified `URLRequest`.
13 | /// - Throws: An error if the interception process fails. Throwing an error will cancel the entire request.
14 | func intercept(_ request: URLRequest) async throws -> URLRequest
| `- error: cannot find type 'URLRequest' in scope
15 | }
16 |
/host/spi-builder-workspace/Sources/MicroClient/NetworkRequestInterceptor.swift:14:31: error: cannot find type 'URLRequest' in scope
12 | /// - Returns: A potentially modified `URLRequest`.
13 | /// - Throws: An error if the interception process fails. Throwing an error will cancel the entire request.
14 | func intercept(_ request: URLRequest) async throws -> URLRequest
| `- error: cannot find type 'URLRequest' in scope
15 | }
16 |
[10/35] Compiling MicroClient NetworkLogger.swift
/host/spi-builder-workspace/Sources/MicroClient/NetworkClientError.swift:17:60: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
15 | /// - `response`: The metadata associated with the HTTP response.
16 | /// - `data`: The raw response body, which may contain more specific error details from the server.
17 | 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.
18 |
19 | /// 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:17:10: error: associated value 'unacceptableStatusCode(statusCode:response:data:)' of 'Sendable'-conforming enum 'NetworkClientError' has non-sendable type 'URLResponse' (aka 'AnyObject')
15 | /// - `response`: The metadata associated with the HTTP response.
16 | /// - `data`: The raw response body, which may contain more specific error details from the server.
17 | case unacceptableStatusCode(statusCode: Int, response: URLResponse, data: Data?)
| `- error: associated value 'unacceptableStatusCode(statusCode:response:data:)' of 'Sendable'-conforming enum 'NetworkClientError' has non-sendable type 'URLResponse' (aka 'AnyObject')
18 |
19 | /// The response body could not be decoded into the expected `Decodable` type.
/host/spi-builder-workspace/Sources/MicroClient/Extensions/URLSessionProtocol.swift:12:22: error: cannot find type 'URLRequest' in scope
10 | /// - Returns: A tuple containing the response data and URLResponse.
11 | func data(
12 | for request: URLRequest,
| `- error: cannot find type 'URLRequest' in scope
13 | delegate: URLSessionTaskDelegate?
14 | ) async throws -> (Data, URLResponse)
/host/spi-builder-workspace/Sources/MicroClient/Extensions/URLSessionProtocol.swift:13:19: error: cannot find type 'URLSessionTaskDelegate' in scope
11 | func data(
12 | for request: URLRequest,
13 | delegate: URLSessionTaskDelegate?
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
14 | ) async throws -> (Data, URLResponse)
15 | }
/host/spi-builder-workspace/Sources/MicroClient/NetworkRequestInterceptor.swift:14:59: error: cannot find type 'URLRequest' in scope
12 | /// - Returns: A potentially modified `URLRequest`.
13 | /// - Throws: An error if the interception process fails. Throwing an error will cancel the entire request.
14 | func intercept(_ request: URLRequest) async throws -> URLRequest
| `- error: cannot find type 'URLRequest' in scope
15 | }
16 |
/host/spi-builder-workspace/Sources/MicroClient/NetworkRequestInterceptor.swift:14:31: error: cannot find type 'URLRequest' in scope
12 | /// - Returns: A potentially modified `URLRequest`.
13 | /// - Throws: An error if the interception process fails. Throwing an error will cancel the entire request.
14 | func intercept(_ request: URLRequest) async throws -> URLRequest
| `- error: cannot find type 'URLRequest' in scope
15 | }
16 |
[11/35] Compiling MicroClient URLComponents.swift
/host/spi-builder-workspace/Sources/MicroClient/Extensions/URLRequest.swift:3:11: error: cannot find type 'URLRequest' in scope
1 | import Foundation
2 |
3 | extension URLRequest {
| `- error: cannot find type 'URLRequest' in scope
4 |
5 | static func makeURLRequest(
/host/spi-builder-workspace/Sources/MicroClient/Extensions/URLResponse.swift:3:8: error: non-nominal type 'URLResponse' (aka 'AnyObject') cannot be extended
1 | import Foundation
2 |
3 | public extension URLResponse {
| `- error: non-nominal type 'URLResponse' (aka 'AnyObject') cannot be extended
4 |
5 | /// Returns the HTTP Header value for "Location". Default: `nil`.
/host/spi-builder-workspace/Sources/MicroClient/Extensions/URLSessionProtocol.swift:12:22: error: cannot find type 'URLRequest' in scope
10 | /// - Returns: A tuple containing the response data and URLResponse.
11 | func data(
12 | for request: URLRequest,
| `- error: cannot find type 'URLRequest' in scope
13 | delegate: URLSessionTaskDelegate?
14 | ) async throws -> (Data, URLResponse)
/host/spi-builder-workspace/Sources/MicroClient/Extensions/URLSessionProtocol.swift:13:19: error: cannot find type 'URLSessionTaskDelegate' in scope
11 | func data(
12 | for request: URLRequest,
13 | delegate: URLSessionTaskDelegate?
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
14 | ) async throws -> (Data, URLResponse)
15 | }
/host/spi-builder-workspace/Sources/MicroClient/Extensions/URLSessionProtocol.swift:14:30: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
12 | for request: URLRequest,
13 | delegate: URLSessionTaskDelegate?
14 | ) async throws -> (Data, URLResponse)
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
15 | }
16 |
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:19:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
17 | // MARK: - URLSession conformance
18 |
19 | extension URLSession: URLSessionProtocol {}
| `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
20 |
/host/spi-builder-workspace/Sources/MicroClient/Extensions/URLRequest.swift:8:17: error: cannot find type 'URLRequest' in scope
6 | configuration: NetworkConfiguration,
7 | networkRequest: NetworkRequest<some Any, some Any>
8 | ) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
9 | let url = try URL.makeURL(
10 | configuration: configuration,
[12/35] Compiling MicroClient URLRequest.swift
/host/spi-builder-workspace/Sources/MicroClient/Extensions/URLRequest.swift:3:11: error: cannot find type 'URLRequest' in scope
1 | import Foundation
2 |
3 | extension URLRequest {
| `- error: cannot find type 'URLRequest' in scope
4 |
5 | static func makeURLRequest(
/host/spi-builder-workspace/Sources/MicroClient/Extensions/URLResponse.swift:3:8: error: non-nominal type 'URLResponse' (aka 'AnyObject') cannot be extended
1 | import Foundation
2 |
3 | public extension URLResponse {
| `- error: non-nominal type 'URLResponse' (aka 'AnyObject') cannot be extended
4 |
5 | /// Returns the HTTP Header value for "Location". Default: `nil`.
/host/spi-builder-workspace/Sources/MicroClient/Extensions/URLSessionProtocol.swift:12:22: error: cannot find type 'URLRequest' in scope
10 | /// - Returns: A tuple containing the response data and URLResponse.
11 | func data(
12 | for request: URLRequest,
| `- error: cannot find type 'URLRequest' in scope
13 | delegate: URLSessionTaskDelegate?
14 | ) async throws -> (Data, URLResponse)
/host/spi-builder-workspace/Sources/MicroClient/Extensions/URLSessionProtocol.swift:13:19: error: cannot find type 'URLSessionTaskDelegate' in scope
11 | func data(
12 | for request: URLRequest,
13 | delegate: URLSessionTaskDelegate?
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
14 | ) async throws -> (Data, URLResponse)
15 | }
/host/spi-builder-workspace/Sources/MicroClient/Extensions/URLSessionProtocol.swift:14:30: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
12 | for request: URLRequest,
13 | delegate: URLSessionTaskDelegate?
14 | ) async throws -> (Data, URLResponse)
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
15 | }
16 |
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:19:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
17 | // MARK: - URLSession conformance
18 |
19 | extension URLSession: URLSessionProtocol {}
| `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
20 |
/host/spi-builder-workspace/Sources/MicroClient/Extensions/URLRequest.swift:8:17: error: cannot find type 'URLRequest' in scope
6 | configuration: NetworkConfiguration,
7 | networkRequest: NetworkRequest<some Any, some Any>
8 | ) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
9 | let url = try URL.makeURL(
10 | configuration: configuration,
[13/35] Compiling MicroClient URLResponse.swift
/host/spi-builder-workspace/Sources/MicroClient/Extensions/URLRequest.swift:3:11: error: cannot find type 'URLRequest' in scope
1 | import Foundation
2 |
3 | extension URLRequest {
| `- error: cannot find type 'URLRequest' in scope
4 |
5 | static func makeURLRequest(
/host/spi-builder-workspace/Sources/MicroClient/Extensions/URLResponse.swift:3:8: error: non-nominal type 'URLResponse' (aka 'AnyObject') cannot be extended
1 | import Foundation
2 |
3 | public extension URLResponse {
| `- error: non-nominal type 'URLResponse' (aka 'AnyObject') cannot be extended
4 |
5 | /// Returns the HTTP Header value for "Location". Default: `nil`.
/host/spi-builder-workspace/Sources/MicroClient/Extensions/URLSessionProtocol.swift:12:22: error: cannot find type 'URLRequest' in scope
10 | /// - Returns: A tuple containing the response data and URLResponse.
11 | func data(
12 | for request: URLRequest,
| `- error: cannot find type 'URLRequest' in scope
13 | delegate: URLSessionTaskDelegate?
14 | ) async throws -> (Data, URLResponse)
/host/spi-builder-workspace/Sources/MicroClient/Extensions/URLSessionProtocol.swift:13:19: error: cannot find type 'URLSessionTaskDelegate' in scope
11 | func data(
12 | for request: URLRequest,
13 | delegate: URLSessionTaskDelegate?
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
14 | ) async throws -> (Data, URLResponse)
15 | }
/host/spi-builder-workspace/Sources/MicroClient/Extensions/URLSessionProtocol.swift:14:30: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
12 | for request: URLRequest,
13 | delegate: URLSessionTaskDelegate?
14 | ) async throws -> (Data, URLResponse)
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
15 | }
16 |
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:19:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
17 | // MARK: - URLSession conformance
18 |
19 | extension URLSession: URLSessionProtocol {}
| `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
20 |
/host/spi-builder-workspace/Sources/MicroClient/Extensions/URLRequest.swift:8:17: error: cannot find type 'URLRequest' in scope
6 | configuration: NetworkConfiguration,
7 | networkRequest: NetworkRequest<some Any, some Any>
8 | ) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
9 | let url = try URL.makeURL(
10 | configuration: configuration,
[14/35] Compiling MicroClient URLSessionProtocol.swift
/host/spi-builder-workspace/Sources/MicroClient/Extensions/URLRequest.swift:3:11: error: cannot find type 'URLRequest' in scope
1 | import Foundation
2 |
3 | extension URLRequest {
| `- error: cannot find type 'URLRequest' in scope
4 |
5 | static func makeURLRequest(
/host/spi-builder-workspace/Sources/MicroClient/Extensions/URLResponse.swift:3:8: error: non-nominal type 'URLResponse' (aka 'AnyObject') cannot be extended
1 | import Foundation
2 |
3 | public extension URLResponse {
| `- error: non-nominal type 'URLResponse' (aka 'AnyObject') cannot be extended
4 |
5 | /// Returns the HTTP Header value for "Location". Default: `nil`.
/host/spi-builder-workspace/Sources/MicroClient/Extensions/URLSessionProtocol.swift:12:22: error: cannot find type 'URLRequest' in scope
10 | /// - Returns: A tuple containing the response data and URLResponse.
11 | func data(
12 | for request: URLRequest,
| `- error: cannot find type 'URLRequest' in scope
13 | delegate: URLSessionTaskDelegate?
14 | ) async throws -> (Data, URLResponse)
/host/spi-builder-workspace/Sources/MicroClient/Extensions/URLSessionProtocol.swift:13:19: error: cannot find type 'URLSessionTaskDelegate' in scope
11 | func data(
12 | for request: URLRequest,
13 | delegate: URLSessionTaskDelegate?
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
14 | ) async throws -> (Data, URLResponse)
15 | }
/host/spi-builder-workspace/Sources/MicroClient/Extensions/URLSessionProtocol.swift:14:30: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
12 | for request: URLRequest,
13 | delegate: URLSessionTaskDelegate?
14 | ) async throws -> (Data, URLResponse)
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
15 | }
16 |
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:19:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
17 | // MARK: - URLSession conformance
18 |
19 | extension URLSession: URLSessionProtocol {}
| `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
20 |
/host/spi-builder-workspace/Sources/MicroClient/Extensions/URLRequest.swift:8:17: error: cannot find type 'URLRequest' in scope
6 | configuration: NetworkConfiguration,
7 | networkRequest: NetworkRequest<some Any, some Any>
8 | ) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
9 | let url = try URL.makeURL(
10 | configuration: configuration,
[15/35] Compiling MicroClient Unwrap.swift
/host/spi-builder-workspace/Sources/MicroClient/Extensions/URLRequest.swift:3:11: error: cannot find type 'URLRequest' in scope
1 | import Foundation
2 |
3 | extension URLRequest {
| `- error: cannot find type 'URLRequest' in scope
4 |
5 | static func makeURLRequest(
/host/spi-builder-workspace/Sources/MicroClient/Extensions/URLResponse.swift:3:8: error: non-nominal type 'URLResponse' (aka 'AnyObject') cannot be extended
1 | import Foundation
2 |
3 | public extension URLResponse {
| `- error: non-nominal type 'URLResponse' (aka 'AnyObject') cannot be extended
4 |
5 | /// Returns the HTTP Header value for "Location". Default: `nil`.
/host/spi-builder-workspace/Sources/MicroClient/Extensions/URLSessionProtocol.swift:12:22: error: cannot find type 'URLRequest' in scope
10 | /// - Returns: A tuple containing the response data and URLResponse.
11 | func data(
12 | for request: URLRequest,
| `- error: cannot find type 'URLRequest' in scope
13 | delegate: URLSessionTaskDelegate?
14 | ) async throws -> (Data, URLResponse)
/host/spi-builder-workspace/Sources/MicroClient/Extensions/URLSessionProtocol.swift:13:19: error: cannot find type 'URLSessionTaskDelegate' in scope
11 | func data(
12 | for request: URLRequest,
13 | delegate: URLSessionTaskDelegate?
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
14 | ) async throws -> (Data, URLResponse)
15 | }
/host/spi-builder-workspace/Sources/MicroClient/Extensions/URLSessionProtocol.swift:14:30: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
12 | for request: URLRequest,
13 | delegate: URLSessionTaskDelegate?
14 | ) async throws -> (Data, URLResponse)
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
15 | }
16 |
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:19:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
17 | // MARK: - URLSession conformance
18 |
19 | extension URLSession: URLSessionProtocol {}
| `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
20 |
/host/spi-builder-workspace/Sources/MicroClient/Extensions/URLRequest.swift:8:17: error: cannot find type 'URLRequest' in scope
6 | configuration: NetworkConfiguration,
7 | networkRequest: NetworkRequest<some Any, some Any>
8 | ) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
9 | let url = try URL.makeURL(
10 | configuration: configuration,
[16/35] Compiling MicroClient RequestIDInterceptor.swift
/host/spi-builder-workspace/Sources/MicroClient/Interceptors/RequestIDInterceptor.swift:26:66: error: cannot find type 'URLRequest' in scope
24 | // MARK: - Public
25 |
26 | public func intercept(_ request: URLRequest) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
27 | var newRequest = request
28 | let requestID = UUID().uuidString
/host/spi-builder-workspace/Sources/MicroClient/Interceptors/RequestIDInterceptor.swift:26:38: error: cannot find type 'URLRequest' in scope
24 | // MARK: - Public
25 |
26 | public func intercept(_ request: URLRequest) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
27 | var newRequest = request
28 | let requestID = UUID().uuidString
/host/spi-builder-workspace/Sources/MicroClient/NetworkRequestInterceptor.swift:14:59: error: cannot find type 'URLRequest' in scope
12 | /// - Returns: A potentially modified `URLRequest`.
13 | /// - Throws: An error if the interception process fails. Throwing an error will cancel the entire request.
14 | func intercept(_ request: URLRequest) async throws -> URLRequest
| `- error: cannot find type 'URLRequest' in scope
15 | }
16 |
/host/spi-builder-workspace/Sources/MicroClient/NetworkRequestInterceptor.swift:14:31: error: cannot find type 'URLRequest' in scope
12 | /// - Returns: A potentially modified `URLRequest`.
13 | /// - Throws: An error if the interception process fails. Throwing an error will cancel the entire request.
14 | func intercept(_ request: URLRequest) async throws -> URLRequest
| `- error: cannot find type 'URLRequest' in scope
15 | }
16 |
/host/spi-builder-workspace/Sources/MicroClient/Interceptors/ResponseLoggingInterceptor.swift:30:49: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
28 | _ data: Data
29 | ) async throws -> NetworkResponse<ResponseModel> {
30 | if let httpResponse = response.response as? HTTPURLResponse {
| `- warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
31 | logger.log(
32 | level: logLevel,
/host/spi-builder-workspace/Sources/MicroClient/Interceptors/ResponseLoggingInterceptor.swift:30:53: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
28 | _ data: Data
29 | ) async throws -> NetworkResponse<ResponseModel> {
30 | 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.
31 | logger.log(
32 | 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:33:73: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
31 | logger.log(
32 | level: logLevel,
33 | message: "Response interceptor - Status: \(httpResponse.statusCode)"
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
34 | )
35 | logger.log(
/host/spi-builder-workspace/Sources/MicroClient/Interceptors/ResponseLoggingInterceptor.swift:37:74: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
35 | logger.log(
36 | level: logLevel,
37 | message: "Response interceptor - Headers: \(httpResponse.allHeaderFields)"
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
38 | )
39 | }
/host/spi-builder-workspace/Sources/MicroClient/Interceptors/RetryAfterInterceptor.swift:46:52: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
44 | _ data: Data
45 | ) async throws -> NetworkResponse<ResponseModel> {
46 | guard let httpResponse = response.response as? HTTPURLResponse else {
| `- warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
47 | return response
48 | }
/host/spi-builder-workspace/Sources/MicroClient/Interceptors/RetryAfterInterceptor.swift:46:56: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
44 | _ data: Data
45 | ) async throws -> NetworkResponse<ResponseModel> {
46 | 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.
47 | return response
48 | }
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:51:28: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
49 |
50 | // Check for rate limit or service unavailable status codes
51 | guard httpResponse.statusCode == 429 || httpResponse.statusCode == 503 else {
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
52 | return response
53 | }
/host/spi-builder-workspace/Sources/MicroClient/Interceptors/RetryAfterInterceptor.swift:51:62: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
49 |
50 | // Check for rate limit or service unavailable status codes
51 | guard httpResponse.statusCode == 429 || httpResponse.statusCode == 503 else {
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
52 | return response
53 | }
/host/spi-builder-workspace/Sources/MicroClient/Interceptors/RetryAfterInterceptor.swift:56:50: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
54 |
55 | // Parse Retry-After header
56 | guard let retryAfterValue = httpResponse.value(forHTTPHeaderField: Self.retryAfterHeader) else {
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
57 | return response
58 | }
/host/spi-builder-workspace/Sources/MicroClient/Interceptors/RetryAfterInterceptor.swift:64:42: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
62 | throw RetryAfterError(
63 | retryAfterSeconds: seconds,
64 | statusCode: httpResponse.statusCode
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
65 | )
66 | }
/host/spi-builder-workspace/Sources/MicroClient/Interceptors/RetryAfterInterceptor.swift:77:42: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
75 | throw RetryAfterError(
76 | retryAfterDate: date,
77 | statusCode: httpResponse.statusCode
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
78 | )
79 | }
/host/spi-builder-workspace/Sources/MicroClient/Interceptors/StatusCodeValidationInterceptor.swift:44:52: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
42 | _ data: Data
43 | ) async throws -> NetworkResponse<ResponseModel> {
44 | guard let httpResponse = response.response as? HTTPURLResponse else {
| `- warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
45 | return response
46 | }
/host/spi-builder-workspace/Sources/MicroClient/Interceptors/StatusCodeValidationInterceptor.swift:44:56: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
42 | _ data: Data
43 | ) async throws -> NetworkResponse<ResponseModel> {
44 | 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.
45 | return response
46 | }
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:48:59: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
46 | }
47 |
48 | guard acceptableStatusCodes.contains(httpResponse.statusCode) else {
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
49 | throw NetworkClientError.unacceptableStatusCode(
50 | statusCode: httpResponse.statusCode,
/host/spi-builder-workspace/Sources/MicroClient/Interceptors/StatusCodeValidationInterceptor.swift:50:42: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
48 | guard acceptableStatusCodes.contains(httpResponse.statusCode) else {
49 | throw NetworkClientError.unacceptableStatusCode(
50 | statusCode: httpResponse.statusCode,
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
51 | response: httpResponse,
52 | data: data
[17/35] Compiling MicroClient ResponseLoggingInterceptor.swift
/host/spi-builder-workspace/Sources/MicroClient/Interceptors/RequestIDInterceptor.swift:26:66: error: cannot find type 'URLRequest' in scope
24 | // MARK: - Public
25 |
26 | public func intercept(_ request: URLRequest) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
27 | var newRequest = request
28 | let requestID = UUID().uuidString
/host/spi-builder-workspace/Sources/MicroClient/Interceptors/RequestIDInterceptor.swift:26:38: error: cannot find type 'URLRequest' in scope
24 | // MARK: - Public
25 |
26 | public func intercept(_ request: URLRequest) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
27 | var newRequest = request
28 | let requestID = UUID().uuidString
/host/spi-builder-workspace/Sources/MicroClient/NetworkRequestInterceptor.swift:14:59: error: cannot find type 'URLRequest' in scope
12 | /// - Returns: A potentially modified `URLRequest`.
13 | /// - Throws: An error if the interception process fails. Throwing an error will cancel the entire request.
14 | func intercept(_ request: URLRequest) async throws -> URLRequest
| `- error: cannot find type 'URLRequest' in scope
15 | }
16 |
/host/spi-builder-workspace/Sources/MicroClient/NetworkRequestInterceptor.swift:14:31: error: cannot find type 'URLRequest' in scope
12 | /// - Returns: A potentially modified `URLRequest`.
13 | /// - Throws: An error if the interception process fails. Throwing an error will cancel the entire request.
14 | func intercept(_ request: URLRequest) async throws -> URLRequest
| `- error: cannot find type 'URLRequest' in scope
15 | }
16 |
/host/spi-builder-workspace/Sources/MicroClient/Interceptors/ResponseLoggingInterceptor.swift:30:49: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
28 | _ data: Data
29 | ) async throws -> NetworkResponse<ResponseModel> {
30 | if let httpResponse = response.response as? HTTPURLResponse {
| `- warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
31 | logger.log(
32 | level: logLevel,
/host/spi-builder-workspace/Sources/MicroClient/Interceptors/ResponseLoggingInterceptor.swift:30:53: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
28 | _ data: Data
29 | ) async throws -> NetworkResponse<ResponseModel> {
30 | 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.
31 | logger.log(
32 | 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:33:73: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
31 | logger.log(
32 | level: logLevel,
33 | message: "Response interceptor - Status: \(httpResponse.statusCode)"
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
34 | )
35 | logger.log(
/host/spi-builder-workspace/Sources/MicroClient/Interceptors/ResponseLoggingInterceptor.swift:37:74: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
35 | logger.log(
36 | level: logLevel,
37 | message: "Response interceptor - Headers: \(httpResponse.allHeaderFields)"
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
38 | )
39 | }
/host/spi-builder-workspace/Sources/MicroClient/Interceptors/RetryAfterInterceptor.swift:46:52: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
44 | _ data: Data
45 | ) async throws -> NetworkResponse<ResponseModel> {
46 | guard let httpResponse = response.response as? HTTPURLResponse else {
| `- warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
47 | return response
48 | }
/host/spi-builder-workspace/Sources/MicroClient/Interceptors/RetryAfterInterceptor.swift:46:56: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
44 | _ data: Data
45 | ) async throws -> NetworkResponse<ResponseModel> {
46 | 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.
47 | return response
48 | }
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:51:28: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
49 |
50 | // Check for rate limit or service unavailable status codes
51 | guard httpResponse.statusCode == 429 || httpResponse.statusCode == 503 else {
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
52 | return response
53 | }
/host/spi-builder-workspace/Sources/MicroClient/Interceptors/RetryAfterInterceptor.swift:51:62: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
49 |
50 | // Check for rate limit or service unavailable status codes
51 | guard httpResponse.statusCode == 429 || httpResponse.statusCode == 503 else {
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
52 | return response
53 | }
/host/spi-builder-workspace/Sources/MicroClient/Interceptors/RetryAfterInterceptor.swift:56:50: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
54 |
55 | // Parse Retry-After header
56 | guard let retryAfterValue = httpResponse.value(forHTTPHeaderField: Self.retryAfterHeader) else {
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
57 | return response
58 | }
/host/spi-builder-workspace/Sources/MicroClient/Interceptors/RetryAfterInterceptor.swift:64:42: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
62 | throw RetryAfterError(
63 | retryAfterSeconds: seconds,
64 | statusCode: httpResponse.statusCode
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
65 | )
66 | }
/host/spi-builder-workspace/Sources/MicroClient/Interceptors/RetryAfterInterceptor.swift:77:42: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
75 | throw RetryAfterError(
76 | retryAfterDate: date,
77 | statusCode: httpResponse.statusCode
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
78 | )
79 | }
/host/spi-builder-workspace/Sources/MicroClient/Interceptors/StatusCodeValidationInterceptor.swift:44:52: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
42 | _ data: Data
43 | ) async throws -> NetworkResponse<ResponseModel> {
44 | guard let httpResponse = response.response as? HTTPURLResponse else {
| `- warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
45 | return response
46 | }
/host/spi-builder-workspace/Sources/MicroClient/Interceptors/StatusCodeValidationInterceptor.swift:44:56: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
42 | _ data: Data
43 | ) async throws -> NetworkResponse<ResponseModel> {
44 | 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.
45 | return response
46 | }
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:48:59: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
46 | }
47 |
48 | guard acceptableStatusCodes.contains(httpResponse.statusCode) else {
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
49 | throw NetworkClientError.unacceptableStatusCode(
50 | statusCode: httpResponse.statusCode,
/host/spi-builder-workspace/Sources/MicroClient/Interceptors/StatusCodeValidationInterceptor.swift:50:42: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
48 | guard acceptableStatusCodes.contains(httpResponse.statusCode) else {
49 | throw NetworkClientError.unacceptableStatusCode(
50 | statusCode: httpResponse.statusCode,
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
51 | response: httpResponse,
52 | data: data
[18/35] Compiling MicroClient RetryAfterInterceptor.swift
/host/spi-builder-workspace/Sources/MicroClient/Interceptors/RequestIDInterceptor.swift:26:66: error: cannot find type 'URLRequest' in scope
24 | // MARK: - Public
25 |
26 | public func intercept(_ request: URLRequest) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
27 | var newRequest = request
28 | let requestID = UUID().uuidString
/host/spi-builder-workspace/Sources/MicroClient/Interceptors/RequestIDInterceptor.swift:26:38: error: cannot find type 'URLRequest' in scope
24 | // MARK: - Public
25 |
26 | public func intercept(_ request: URLRequest) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
27 | var newRequest = request
28 | let requestID = UUID().uuidString
/host/spi-builder-workspace/Sources/MicroClient/NetworkRequestInterceptor.swift:14:59: error: cannot find type 'URLRequest' in scope
12 | /// - Returns: A potentially modified `URLRequest`.
13 | /// - Throws: An error if the interception process fails. Throwing an error will cancel the entire request.
14 | func intercept(_ request: URLRequest) async throws -> URLRequest
| `- error: cannot find type 'URLRequest' in scope
15 | }
16 |
/host/spi-builder-workspace/Sources/MicroClient/NetworkRequestInterceptor.swift:14:31: error: cannot find type 'URLRequest' in scope
12 | /// - Returns: A potentially modified `URLRequest`.
13 | /// - Throws: An error if the interception process fails. Throwing an error will cancel the entire request.
14 | func intercept(_ request: URLRequest) async throws -> URLRequest
| `- error: cannot find type 'URLRequest' in scope
15 | }
16 |
/host/spi-builder-workspace/Sources/MicroClient/Interceptors/ResponseLoggingInterceptor.swift:30:49: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
28 | _ data: Data
29 | ) async throws -> NetworkResponse<ResponseModel> {
30 | if let httpResponse = response.response as? HTTPURLResponse {
| `- warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
31 | logger.log(
32 | level: logLevel,
/host/spi-builder-workspace/Sources/MicroClient/Interceptors/ResponseLoggingInterceptor.swift:30:53: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
28 | _ data: Data
29 | ) async throws -> NetworkResponse<ResponseModel> {
30 | 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.
31 | logger.log(
32 | 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:33:73: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
31 | logger.log(
32 | level: logLevel,
33 | message: "Response interceptor - Status: \(httpResponse.statusCode)"
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
34 | )
35 | logger.log(
/host/spi-builder-workspace/Sources/MicroClient/Interceptors/ResponseLoggingInterceptor.swift:37:74: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
35 | logger.log(
36 | level: logLevel,
37 | message: "Response interceptor - Headers: \(httpResponse.allHeaderFields)"
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
38 | )
39 | }
/host/spi-builder-workspace/Sources/MicroClient/Interceptors/RetryAfterInterceptor.swift:46:52: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
44 | _ data: Data
45 | ) async throws -> NetworkResponse<ResponseModel> {
46 | guard let httpResponse = response.response as? HTTPURLResponse else {
| `- warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
47 | return response
48 | }
/host/spi-builder-workspace/Sources/MicroClient/Interceptors/RetryAfterInterceptor.swift:46:56: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
44 | _ data: Data
45 | ) async throws -> NetworkResponse<ResponseModel> {
46 | 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.
47 | return response
48 | }
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:51:28: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
49 |
50 | // Check for rate limit or service unavailable status codes
51 | guard httpResponse.statusCode == 429 || httpResponse.statusCode == 503 else {
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
52 | return response
53 | }
/host/spi-builder-workspace/Sources/MicroClient/Interceptors/RetryAfterInterceptor.swift:51:62: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
49 |
50 | // Check for rate limit or service unavailable status codes
51 | guard httpResponse.statusCode == 429 || httpResponse.statusCode == 503 else {
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
52 | return response
53 | }
/host/spi-builder-workspace/Sources/MicroClient/Interceptors/RetryAfterInterceptor.swift:56:50: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
54 |
55 | // Parse Retry-After header
56 | guard let retryAfterValue = httpResponse.value(forHTTPHeaderField: Self.retryAfterHeader) else {
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
57 | return response
58 | }
/host/spi-builder-workspace/Sources/MicroClient/Interceptors/RetryAfterInterceptor.swift:64:42: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
62 | throw RetryAfterError(
63 | retryAfterSeconds: seconds,
64 | statusCode: httpResponse.statusCode
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
65 | )
66 | }
/host/spi-builder-workspace/Sources/MicroClient/Interceptors/RetryAfterInterceptor.swift:77:42: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
75 | throw RetryAfterError(
76 | retryAfterDate: date,
77 | statusCode: httpResponse.statusCode
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
78 | )
79 | }
/host/spi-builder-workspace/Sources/MicroClient/Interceptors/StatusCodeValidationInterceptor.swift:44:52: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
42 | _ data: Data
43 | ) async throws -> NetworkResponse<ResponseModel> {
44 | guard let httpResponse = response.response as? HTTPURLResponse else {
| `- warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
45 | return response
46 | }
/host/spi-builder-workspace/Sources/MicroClient/Interceptors/StatusCodeValidationInterceptor.swift:44:56: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
42 | _ data: Data
43 | ) async throws -> NetworkResponse<ResponseModel> {
44 | 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.
45 | return response
46 | }
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:48:59: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
46 | }
47 |
48 | guard acceptableStatusCodes.contains(httpResponse.statusCode) else {
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
49 | throw NetworkClientError.unacceptableStatusCode(
50 | statusCode: httpResponse.statusCode,
/host/spi-builder-workspace/Sources/MicroClient/Interceptors/StatusCodeValidationInterceptor.swift:50:42: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
48 | guard acceptableStatusCodes.contains(httpResponse.statusCode) else {
49 | throw NetworkClientError.unacceptableStatusCode(
50 | statusCode: httpResponse.statusCode,
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
51 | response: httpResponse,
52 | data: data
[19/35] Compiling MicroClient StatusCodeValidationInterceptor.swift
/host/spi-builder-workspace/Sources/MicroClient/Interceptors/RequestIDInterceptor.swift:26:66: error: cannot find type 'URLRequest' in scope
24 | // MARK: - Public
25 |
26 | public func intercept(_ request: URLRequest) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
27 | var newRequest = request
28 | let requestID = UUID().uuidString
/host/spi-builder-workspace/Sources/MicroClient/Interceptors/RequestIDInterceptor.swift:26:38: error: cannot find type 'URLRequest' in scope
24 | // MARK: - Public
25 |
26 | public func intercept(_ request: URLRequest) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
27 | var newRequest = request
28 | let requestID = UUID().uuidString
/host/spi-builder-workspace/Sources/MicroClient/NetworkRequestInterceptor.swift:14:59: error: cannot find type 'URLRequest' in scope
12 | /// - Returns: A potentially modified `URLRequest`.
13 | /// - Throws: An error if the interception process fails. Throwing an error will cancel the entire request.
14 | func intercept(_ request: URLRequest) async throws -> URLRequest
| `- error: cannot find type 'URLRequest' in scope
15 | }
16 |
/host/spi-builder-workspace/Sources/MicroClient/NetworkRequestInterceptor.swift:14:31: error: cannot find type 'URLRequest' in scope
12 | /// - Returns: A potentially modified `URLRequest`.
13 | /// - Throws: An error if the interception process fails. Throwing an error will cancel the entire request.
14 | func intercept(_ request: URLRequest) async throws -> URLRequest
| `- error: cannot find type 'URLRequest' in scope
15 | }
16 |
/host/spi-builder-workspace/Sources/MicroClient/Interceptors/ResponseLoggingInterceptor.swift:30:49: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
28 | _ data: Data
29 | ) async throws -> NetworkResponse<ResponseModel> {
30 | if let httpResponse = response.response as? HTTPURLResponse {
| `- warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
31 | logger.log(
32 | level: logLevel,
/host/spi-builder-workspace/Sources/MicroClient/Interceptors/ResponseLoggingInterceptor.swift:30:53: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
28 | _ data: Data
29 | ) async throws -> NetworkResponse<ResponseModel> {
30 | 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.
31 | logger.log(
32 | 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:33:73: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
31 | logger.log(
32 | level: logLevel,
33 | message: "Response interceptor - Status: \(httpResponse.statusCode)"
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
34 | )
35 | logger.log(
/host/spi-builder-workspace/Sources/MicroClient/Interceptors/ResponseLoggingInterceptor.swift:37:74: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
35 | logger.log(
36 | level: logLevel,
37 | message: "Response interceptor - Headers: \(httpResponse.allHeaderFields)"
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
38 | )
39 | }
/host/spi-builder-workspace/Sources/MicroClient/Interceptors/RetryAfterInterceptor.swift:46:52: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
44 | _ data: Data
45 | ) async throws -> NetworkResponse<ResponseModel> {
46 | guard let httpResponse = response.response as? HTTPURLResponse else {
| `- warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
47 | return response
48 | }
/host/spi-builder-workspace/Sources/MicroClient/Interceptors/RetryAfterInterceptor.swift:46:56: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
44 | _ data: Data
45 | ) async throws -> NetworkResponse<ResponseModel> {
46 | 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.
47 | return response
48 | }
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:51:28: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
49 |
50 | // Check for rate limit or service unavailable status codes
51 | guard httpResponse.statusCode == 429 || httpResponse.statusCode == 503 else {
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
52 | return response
53 | }
/host/spi-builder-workspace/Sources/MicroClient/Interceptors/RetryAfterInterceptor.swift:51:62: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
49 |
50 | // Check for rate limit or service unavailable status codes
51 | guard httpResponse.statusCode == 429 || httpResponse.statusCode == 503 else {
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
52 | return response
53 | }
/host/spi-builder-workspace/Sources/MicroClient/Interceptors/RetryAfterInterceptor.swift:56:50: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
54 |
55 | // Parse Retry-After header
56 | guard let retryAfterValue = httpResponse.value(forHTTPHeaderField: Self.retryAfterHeader) else {
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
57 | return response
58 | }
/host/spi-builder-workspace/Sources/MicroClient/Interceptors/RetryAfterInterceptor.swift:64:42: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
62 | throw RetryAfterError(
63 | retryAfterSeconds: seconds,
64 | statusCode: httpResponse.statusCode
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
65 | )
66 | }
/host/spi-builder-workspace/Sources/MicroClient/Interceptors/RetryAfterInterceptor.swift:77:42: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
75 | throw RetryAfterError(
76 | retryAfterDate: date,
77 | statusCode: httpResponse.statusCode
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
78 | )
79 | }
/host/spi-builder-workspace/Sources/MicroClient/Interceptors/StatusCodeValidationInterceptor.swift:44:52: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
42 | _ data: Data
43 | ) async throws -> NetworkResponse<ResponseModel> {
44 | guard let httpResponse = response.response as? HTTPURLResponse else {
| `- warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
45 | return response
46 | }
/host/spi-builder-workspace/Sources/MicroClient/Interceptors/StatusCodeValidationInterceptor.swift:44:56: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
42 | _ data: Data
43 | ) async throws -> NetworkResponse<ResponseModel> {
44 | 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.
45 | return response
46 | }
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:48:59: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
46 | }
47 |
48 | guard acceptableStatusCodes.contains(httpResponse.statusCode) else {
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
49 | throw NetworkClientError.unacceptableStatusCode(
50 | statusCode: httpResponse.statusCode,
/host/spi-builder-workspace/Sources/MicroClient/Interceptors/StatusCodeValidationInterceptor.swift:50:42: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
48 | guard acceptableStatusCodes.contains(httpResponse.statusCode) else {
49 | throw NetworkClientError.unacceptableStatusCode(
50 | statusCode: httpResponse.statusCode,
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
51 | response: httpResponse,
52 | data: data
[20/35] Compiling MicroClient BearerAuthorizationInterceptor.swift
/host/spi-builder-workspace/Sources/MicroClient/Interceptors/BearerAuthorizationInterceptor.swift:27:66: error: cannot find type 'URLRequest' in scope
25 | // MARK: - Public
26 |
27 | public func intercept(_ request: URLRequest) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
28 | var newRequest = request
29 |
/host/spi-builder-workspace/Sources/MicroClient/Interceptors/BearerAuthorizationInterceptor.swift:27:38: error: cannot find type 'URLRequest' in scope
25 | // MARK: - Public
26 |
27 | public func intercept(_ request: URLRequest) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
28 | var newRequest = request
29 |
/host/spi-builder-workspace/Sources/MicroClient/NetworkRequestInterceptor.swift:14:59: error: cannot find type 'URLRequest' in scope
12 | /// - Returns: A potentially modified `URLRequest`.
13 | /// - Throws: An error if the interception process fails. Throwing an error will cancel the entire request.
14 | func intercept(_ request: URLRequest) async throws -> URLRequest
| `- error: cannot find type 'URLRequest' in scope
15 | }
16 |
/host/spi-builder-workspace/Sources/MicroClient/NetworkRequestInterceptor.swift:14:31: error: cannot find type 'URLRequest' in scope
12 | /// - Returns: A potentially modified `URLRequest`.
13 | /// - Throws: An error if the interception process fails. Throwing an error will cancel the entire request.
14 | func intercept(_ request: URLRequest) async throws -> URLRequest
| `- error: cannot find type 'URLRequest' in scope
15 | }
16 |
/host/spi-builder-workspace/Sources/MicroClient/Interceptors/CacheControlInterceptor.swift:42:66: error: cannot find type 'URLRequest' in scope
40 | // MARK: - Public
41 |
42 | public func intercept(_ request: URLRequest) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
43 | var newRequest = request
44 | newRequest.setValue(policy.headerValue, forHTTPHeaderField: "Cache-Control")
/host/spi-builder-workspace/Sources/MicroClient/Interceptors/CacheControlInterceptor.swift:42:38: error: cannot find type 'URLRequest' in scope
40 | // MARK: - Public
41 |
42 | public func intercept(_ request: URLRequest) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
43 | var newRequest = request
44 | newRequest.setValue(policy.headerValue, forHTTPHeaderField: "Cache-Control")
/host/spi-builder-workspace/Sources/MicroClient/Interceptors/ContentTypeInterceptor.swift:26:66: error: cannot find type 'URLRequest' in scope
24 | // MARK: - Public
25 |
26 | public func intercept(_ request: URLRequest) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
27 | var newRequest = request
28 |
/host/spi-builder-workspace/Sources/MicroClient/Interceptors/ContentTypeInterceptor.swift:26:38: error: cannot find type 'URLRequest' in scope
24 | // MARK: - Public
25 |
26 | public func intercept(_ request: URLRequest) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
27 | var newRequest = request
28 |
/host/spi-builder-workspace/Sources/MicroClient/Interceptors/MetricsCollectionInterceptor.swift:69:46: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
67 | _ data: Data
68 | ) async throws -> NetworkResponse<ResponseModel> {
69 | let httpResponse = response.response as? HTTPURLResponse
| `- warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
70 |
71 | let metrics = ResponseMetrics(
/host/spi-builder-workspace/Sources/MicroClient/Interceptors/MetricsCollectionInterceptor.swift:69:50: 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 | let httpResponse = response.response as? HTTPURLResponse
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
70 |
71 | 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:72:39: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
70 |
71 | let metrics = ResponseMetrics(
72 | statusCode: httpResponse?.statusCode,
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
73 | responseSize: data.count,
74 | url: httpResponse?.url,
/host/spi-builder-workspace/Sources/MicroClient/Interceptors/MetricsCollectionInterceptor.swift:74:32: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'url'
72 | statusCode: httpResponse?.statusCode,
73 | responseSize: data.count,
74 | url: httpResponse?.url,
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'url'
75 | httpMethod: httpResponse?.value(forHTTPHeaderField: "X-HTTP-Method")
76 | )
/host/spi-builder-workspace/Sources/MicroClient/Interceptors/MetricsCollectionInterceptor.swift:75:39: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
73 | responseSize: data.count,
74 | url: httpResponse?.url,
75 | httpMethod: httpResponse?.value(forHTTPHeaderField: "X-HTTP-Method")
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
76 | )
77 |
[21/35] Compiling MicroClient CacheControlInterceptor.swift
/host/spi-builder-workspace/Sources/MicroClient/Interceptors/BearerAuthorizationInterceptor.swift:27:66: error: cannot find type 'URLRequest' in scope
25 | // MARK: - Public
26 |
27 | public func intercept(_ request: URLRequest) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
28 | var newRequest = request
29 |
/host/spi-builder-workspace/Sources/MicroClient/Interceptors/BearerAuthorizationInterceptor.swift:27:38: error: cannot find type 'URLRequest' in scope
25 | // MARK: - Public
26 |
27 | public func intercept(_ request: URLRequest) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
28 | var newRequest = request
29 |
/host/spi-builder-workspace/Sources/MicroClient/NetworkRequestInterceptor.swift:14:59: error: cannot find type 'URLRequest' in scope
12 | /// - Returns: A potentially modified `URLRequest`.
13 | /// - Throws: An error if the interception process fails. Throwing an error will cancel the entire request.
14 | func intercept(_ request: URLRequest) async throws -> URLRequest
| `- error: cannot find type 'URLRequest' in scope
15 | }
16 |
/host/spi-builder-workspace/Sources/MicroClient/NetworkRequestInterceptor.swift:14:31: error: cannot find type 'URLRequest' in scope
12 | /// - Returns: A potentially modified `URLRequest`.
13 | /// - Throws: An error if the interception process fails. Throwing an error will cancel the entire request.
14 | func intercept(_ request: URLRequest) async throws -> URLRequest
| `- error: cannot find type 'URLRequest' in scope
15 | }
16 |
/host/spi-builder-workspace/Sources/MicroClient/Interceptors/CacheControlInterceptor.swift:42:66: error: cannot find type 'URLRequest' in scope
40 | // MARK: - Public
41 |
42 | public func intercept(_ request: URLRequest) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
43 | var newRequest = request
44 | newRequest.setValue(policy.headerValue, forHTTPHeaderField: "Cache-Control")
/host/spi-builder-workspace/Sources/MicroClient/Interceptors/CacheControlInterceptor.swift:42:38: error: cannot find type 'URLRequest' in scope
40 | // MARK: - Public
41 |
42 | public func intercept(_ request: URLRequest) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
43 | var newRequest = request
44 | newRequest.setValue(policy.headerValue, forHTTPHeaderField: "Cache-Control")
/host/spi-builder-workspace/Sources/MicroClient/Interceptors/ContentTypeInterceptor.swift:26:66: error: cannot find type 'URLRequest' in scope
24 | // MARK: - Public
25 |
26 | public func intercept(_ request: URLRequest) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
27 | var newRequest = request
28 |
/host/spi-builder-workspace/Sources/MicroClient/Interceptors/ContentTypeInterceptor.swift:26:38: error: cannot find type 'URLRequest' in scope
24 | // MARK: - Public
25 |
26 | public func intercept(_ request: URLRequest) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
27 | var newRequest = request
28 |
/host/spi-builder-workspace/Sources/MicroClient/Interceptors/MetricsCollectionInterceptor.swift:69:46: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
67 | _ data: Data
68 | ) async throws -> NetworkResponse<ResponseModel> {
69 | let httpResponse = response.response as? HTTPURLResponse
| `- warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
70 |
71 | let metrics = ResponseMetrics(
/host/spi-builder-workspace/Sources/MicroClient/Interceptors/MetricsCollectionInterceptor.swift:69:50: 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 | let httpResponse = response.response as? HTTPURLResponse
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
70 |
71 | 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:72:39: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
70 |
71 | let metrics = ResponseMetrics(
72 | statusCode: httpResponse?.statusCode,
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
73 | responseSize: data.count,
74 | url: httpResponse?.url,
/host/spi-builder-workspace/Sources/MicroClient/Interceptors/MetricsCollectionInterceptor.swift:74:32: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'url'
72 | statusCode: httpResponse?.statusCode,
73 | responseSize: data.count,
74 | url: httpResponse?.url,
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'url'
75 | httpMethod: httpResponse?.value(forHTTPHeaderField: "X-HTTP-Method")
76 | )
/host/spi-builder-workspace/Sources/MicroClient/Interceptors/MetricsCollectionInterceptor.swift:75:39: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
73 | responseSize: data.count,
74 | url: httpResponse?.url,
75 | httpMethod: httpResponse?.value(forHTTPHeaderField: "X-HTTP-Method")
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
76 | )
77 |
[22/35] Compiling MicroClient ContentTypeInterceptor.swift
/host/spi-builder-workspace/Sources/MicroClient/Interceptors/BearerAuthorizationInterceptor.swift:27:66: error: cannot find type 'URLRequest' in scope
25 | // MARK: - Public
26 |
27 | public func intercept(_ request: URLRequest) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
28 | var newRequest = request
29 |
/host/spi-builder-workspace/Sources/MicroClient/Interceptors/BearerAuthorizationInterceptor.swift:27:38: error: cannot find type 'URLRequest' in scope
25 | // MARK: - Public
26 |
27 | public func intercept(_ request: URLRequest) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
28 | var newRequest = request
29 |
/host/spi-builder-workspace/Sources/MicroClient/NetworkRequestInterceptor.swift:14:59: error: cannot find type 'URLRequest' in scope
12 | /// - Returns: A potentially modified `URLRequest`.
13 | /// - Throws: An error if the interception process fails. Throwing an error will cancel the entire request.
14 | func intercept(_ request: URLRequest) async throws -> URLRequest
| `- error: cannot find type 'URLRequest' in scope
15 | }
16 |
/host/spi-builder-workspace/Sources/MicroClient/NetworkRequestInterceptor.swift:14:31: error: cannot find type 'URLRequest' in scope
12 | /// - Returns: A potentially modified `URLRequest`.
13 | /// - Throws: An error if the interception process fails. Throwing an error will cancel the entire request.
14 | func intercept(_ request: URLRequest) async throws -> URLRequest
| `- error: cannot find type 'URLRequest' in scope
15 | }
16 |
/host/spi-builder-workspace/Sources/MicroClient/Interceptors/CacheControlInterceptor.swift:42:66: error: cannot find type 'URLRequest' in scope
40 | // MARK: - Public
41 |
42 | public func intercept(_ request: URLRequest) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
43 | var newRequest = request
44 | newRequest.setValue(policy.headerValue, forHTTPHeaderField: "Cache-Control")
/host/spi-builder-workspace/Sources/MicroClient/Interceptors/CacheControlInterceptor.swift:42:38: error: cannot find type 'URLRequest' in scope
40 | // MARK: - Public
41 |
42 | public func intercept(_ request: URLRequest) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
43 | var newRequest = request
44 | newRequest.setValue(policy.headerValue, forHTTPHeaderField: "Cache-Control")
/host/spi-builder-workspace/Sources/MicroClient/Interceptors/ContentTypeInterceptor.swift:26:66: error: cannot find type 'URLRequest' in scope
24 | // MARK: - Public
25 |
26 | public func intercept(_ request: URLRequest) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
27 | var newRequest = request
28 |
/host/spi-builder-workspace/Sources/MicroClient/Interceptors/ContentTypeInterceptor.swift:26:38: error: cannot find type 'URLRequest' in scope
24 | // MARK: - Public
25 |
26 | public func intercept(_ request: URLRequest) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
27 | var newRequest = request
28 |
/host/spi-builder-workspace/Sources/MicroClient/Interceptors/MetricsCollectionInterceptor.swift:69:46: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
67 | _ data: Data
68 | ) async throws -> NetworkResponse<ResponseModel> {
69 | let httpResponse = response.response as? HTTPURLResponse
| `- warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
70 |
71 | let metrics = ResponseMetrics(
/host/spi-builder-workspace/Sources/MicroClient/Interceptors/MetricsCollectionInterceptor.swift:69:50: 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 | let httpResponse = response.response as? HTTPURLResponse
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
70 |
71 | 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:72:39: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
70 |
71 | let metrics = ResponseMetrics(
72 | statusCode: httpResponse?.statusCode,
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
73 | responseSize: data.count,
74 | url: httpResponse?.url,
/host/spi-builder-workspace/Sources/MicroClient/Interceptors/MetricsCollectionInterceptor.swift:74:32: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'url'
72 | statusCode: httpResponse?.statusCode,
73 | responseSize: data.count,
74 | url: httpResponse?.url,
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'url'
75 | httpMethod: httpResponse?.value(forHTTPHeaderField: "X-HTTP-Method")
76 | )
/host/spi-builder-workspace/Sources/MicroClient/Interceptors/MetricsCollectionInterceptor.swift:75:39: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
73 | responseSize: data.count,
74 | url: httpResponse?.url,
75 | httpMethod: httpResponse?.value(forHTTPHeaderField: "X-HTTP-Method")
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
76 | )
77 |
[23/35] Compiling MicroClient MetricsCollectionInterceptor.swift
/host/spi-builder-workspace/Sources/MicroClient/Interceptors/BearerAuthorizationInterceptor.swift:27:66: error: cannot find type 'URLRequest' in scope
25 | // MARK: - Public
26 |
27 | public func intercept(_ request: URLRequest) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
28 | var newRequest = request
29 |
/host/spi-builder-workspace/Sources/MicroClient/Interceptors/BearerAuthorizationInterceptor.swift:27:38: error: cannot find type 'URLRequest' in scope
25 | // MARK: - Public
26 |
27 | public func intercept(_ request: URLRequest) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
28 | var newRequest = request
29 |
/host/spi-builder-workspace/Sources/MicroClient/NetworkRequestInterceptor.swift:14:59: error: cannot find type 'URLRequest' in scope
12 | /// - Returns: A potentially modified `URLRequest`.
13 | /// - Throws: An error if the interception process fails. Throwing an error will cancel the entire request.
14 | func intercept(_ request: URLRequest) async throws -> URLRequest
| `- error: cannot find type 'URLRequest' in scope
15 | }
16 |
/host/spi-builder-workspace/Sources/MicroClient/NetworkRequestInterceptor.swift:14:31: error: cannot find type 'URLRequest' in scope
12 | /// - Returns: A potentially modified `URLRequest`.
13 | /// - Throws: An error if the interception process fails. Throwing an error will cancel the entire request.
14 | func intercept(_ request: URLRequest) async throws -> URLRequest
| `- error: cannot find type 'URLRequest' in scope
15 | }
16 |
/host/spi-builder-workspace/Sources/MicroClient/Interceptors/CacheControlInterceptor.swift:42:66: error: cannot find type 'URLRequest' in scope
40 | // MARK: - Public
41 |
42 | public func intercept(_ request: URLRequest) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
43 | var newRequest = request
44 | newRequest.setValue(policy.headerValue, forHTTPHeaderField: "Cache-Control")
/host/spi-builder-workspace/Sources/MicroClient/Interceptors/CacheControlInterceptor.swift:42:38: error: cannot find type 'URLRequest' in scope
40 | // MARK: - Public
41 |
42 | public func intercept(_ request: URLRequest) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
43 | var newRequest = request
44 | newRequest.setValue(policy.headerValue, forHTTPHeaderField: "Cache-Control")
/host/spi-builder-workspace/Sources/MicroClient/Interceptors/ContentTypeInterceptor.swift:26:66: error: cannot find type 'URLRequest' in scope
24 | // MARK: - Public
25 |
26 | public func intercept(_ request: URLRequest) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
27 | var newRequest = request
28 |
/host/spi-builder-workspace/Sources/MicroClient/Interceptors/ContentTypeInterceptor.swift:26:38: error: cannot find type 'URLRequest' in scope
24 | // MARK: - Public
25 |
26 | public func intercept(_ request: URLRequest) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
27 | var newRequest = request
28 |
/host/spi-builder-workspace/Sources/MicroClient/Interceptors/MetricsCollectionInterceptor.swift:69:46: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
67 | _ data: Data
68 | ) async throws -> NetworkResponse<ResponseModel> {
69 | let httpResponse = response.response as? HTTPURLResponse
| `- warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
70 |
71 | let metrics = ResponseMetrics(
/host/spi-builder-workspace/Sources/MicroClient/Interceptors/MetricsCollectionInterceptor.swift:69:50: 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 | let httpResponse = response.response as? HTTPURLResponse
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
70 |
71 | 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:72:39: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
70 |
71 | let metrics = ResponseMetrics(
72 | statusCode: httpResponse?.statusCode,
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
73 | responseSize: data.count,
74 | url: httpResponse?.url,
/host/spi-builder-workspace/Sources/MicroClient/Interceptors/MetricsCollectionInterceptor.swift:74:32: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'url'
72 | statusCode: httpResponse?.statusCode,
73 | responseSize: data.count,
74 | url: httpResponse?.url,
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'url'
75 | httpMethod: httpResponse?.value(forHTTPHeaderField: "X-HTTP-Method")
76 | )
/host/spi-builder-workspace/Sources/MicroClient/Interceptors/MetricsCollectionInterceptor.swift:75:39: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
73 | responseSize: data.count,
74 | url: httpResponse?.url,
75 | httpMethod: httpResponse?.value(forHTTPHeaderField: "X-HTTP-Method")
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
76 | )
77 |
[24/35] Compiling MicroClient TimeoutInterceptor.swift
/host/spi-builder-workspace/Sources/MicroClient/Interceptors/TimeoutInterceptor.swift:25:66: error: cannot find type 'URLRequest' in scope
23 | // MARK: - Public
24 |
25 | public func intercept(_ request: URLRequest) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
26 | var newRequest = request
27 | newRequest.timeoutInterval = timeout
/host/spi-builder-workspace/Sources/MicroClient/Interceptors/TimeoutInterceptor.swift:25:38: error: cannot find type 'URLRequest' in scope
23 | // MARK: - Public
24 |
25 | public func intercept(_ request: URLRequest) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
26 | var newRequest = request
27 | newRequest.timeoutInterval = timeout
/host/spi-builder-workspace/Sources/MicroClient/NetworkRequestInterceptor.swift:14:59: error: cannot find type 'URLRequest' in scope
12 | /// - Returns: A potentially modified `URLRequest`.
13 | /// - Throws: An error if the interception process fails. Throwing an error will cancel the entire request.
14 | func intercept(_ request: URLRequest) async throws -> URLRequest
| `- error: cannot find type 'URLRequest' in scope
15 | }
16 |
/host/spi-builder-workspace/Sources/MicroClient/NetworkRequestInterceptor.swift:14:31: error: cannot find type 'URLRequest' in scope
12 | /// - Returns: A potentially modified `URLRequest`.
13 | /// - Throws: An error if the interception process fails. Throwing an error will cancel the entire request.
14 | func intercept(_ request: URLRequest) async throws -> URLRequest
| `- error: cannot find type 'URLRequest' in scope
15 | }
16 |
/host/spi-builder-workspace/Sources/MicroClient/Interceptors/UserAgentInterceptor.swift:33:66: error: cannot find type 'URLRequest' in scope
31 | // MARK: - Public
32 |
33 | public func intercept(_ request: URLRequest) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
34 | var newRequest = request
35 | newRequest.setValue(userAgent, forHTTPHeaderField: "User-Agent")
/host/spi-builder-workspace/Sources/MicroClient/Interceptors/UserAgentInterceptor.swift:33:38: error: cannot find type 'URLRequest' in scope
31 | // MARK: - Public
32 |
33 | public func intercept(_ request: URLRequest) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
34 | var newRequest = request
35 | newRequest.setValue(userAgent, forHTTPHeaderField: "User-Agent")
/host/spi-builder-workspace/Sources/MicroClient/NetworkClient.swift:63:25: error: cannot find type 'URLRequest' in scope
61 | }
62 |
63 | var urlRequest: URLRequest
| `- error: cannot find type 'URLRequest' in scope
64 | do {
65 | urlRequest = try URLRequest.makeURLRequest(
/host/spi-builder-workspace/Sources/MicroClient/NetworkClient.swift:65:30: error: cannot find 'URLRequest' in scope
63 | var urlRequest: URLRequest
64 | do {
65 | urlRequest = try URLRequest.makeURLRequest(
| `- error: cannot find 'URLRequest' in scope
66 | configuration: configuration,
67 | networkRequest: networkRequest
/host/spi-builder-workspace/Sources/MicroClient/NetworkClient.swift:92:23: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
90 |
91 | let data: Data
92 | let response: URLResponse
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
93 |
94 | 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:12:22: error: cannot find type 'URLRequest' in scope
10 | /// - Returns: A tuple containing the response data and URLResponse.
11 | func data(
12 | for request: URLRequest,
| `- error: cannot find type 'URLRequest' in scope
13 | delegate: URLSessionTaskDelegate?
14 | ) async throws -> (Data, URLResponse)
/host/spi-builder-workspace/Sources/MicroClient/Extensions/URLSessionProtocol.swift:13:19: error: cannot find type 'URLSessionTaskDelegate' in scope
11 | func data(
12 | for request: URLRequest,
13 | delegate: URLSessionTaskDelegate?
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
14 | ) async throws -> (Data, URLResponse)
15 | }
/host/spi-builder-workspace/Sources/MicroClient/NetworkClient.swift:97:27: error: 'nil' requires a contextual type
95 | (data, response) = try await configuration.session.data(
96 | for: urlRequest,
97 | delegate: nil
| `- error: 'nil' requires a contextual type
98 | )
99 | } catch let error as CancellationError {
/host/spi-builder-workspace/Sources/MicroClient/NetworkClient.swift:106:40: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
104 | }
105 |
106 | if let httpResponse = response as? HTTPURLResponse {
| `- warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
107 | log(
108 | .info,
/host/spi-builder-workspace/Sources/MicroClient/NetworkClient.swift:106:44: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
104 | }
105 |
106 | if let httpResponse = response as? HTTPURLResponse {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
107 | log(
108 | .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:109:43: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
107 | log(
108 | .info,
109 | "Response: \(httpResponse.statusCode) \(urlRequest.httpMethod ?? "") \(urlRequest.url?.absoluteString ?? "")"
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
110 | )
111 | log(.debug, "Response headers: \(httpResponse.allHeaderFields)")
/host/spi-builder-workspace/Sources/MicroClient/NetworkClient.swift:111:59: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
109 | "Response: \(httpResponse.statusCode) \(urlRequest.httpMethod ?? "") \(urlRequest.url?.absoluteString ?? "")"
110 | )
111 | log(.debug, "Response headers: \(httpResponse.allHeaderFields)")
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
112 |
113 | guard (200...299).contains(httpResponse.statusCode) else {
/host/spi-builder-workspace/Sources/MicroClient/NetworkClient.swift:113:53: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
111 | log(.debug, "Response headers: \(httpResponse.allHeaderFields)")
112 |
113 | guard (200...299).contains(httpResponse.statusCode) else {
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
114 | log(.error, "Unacceptable status code: \(httpResponse.statusCode)")
115 | throw NetworkClientError.unacceptableStatusCode(
/host/spi-builder-workspace/Sources/MicroClient/NetworkClient.swift:114:71: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
112 |
113 | guard (200...299).contains(httpResponse.statusCode) else {
114 | log(.error, "Unacceptable status code: \(httpResponse.statusCode)")
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
115 | throw NetworkClientError.unacceptableStatusCode(
116 | statusCode: httpResponse.statusCode,
/host/spi-builder-workspace/Sources/MicroClient/NetworkClient.swift:116:46: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
114 | log(.error, "Unacceptable status code: \(httpResponse.statusCode)")
115 | throw NetworkClientError.unacceptableStatusCode(
116 | statusCode: httpResponse.statusCode,
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
117 | response: httpResponse,
118 | data: data
[25/35] Compiling MicroClient UserAgentInterceptor.swift
/host/spi-builder-workspace/Sources/MicroClient/Interceptors/TimeoutInterceptor.swift:25:66: error: cannot find type 'URLRequest' in scope
23 | // MARK: - Public
24 |
25 | public func intercept(_ request: URLRequest) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
26 | var newRequest = request
27 | newRequest.timeoutInterval = timeout
/host/spi-builder-workspace/Sources/MicroClient/Interceptors/TimeoutInterceptor.swift:25:38: error: cannot find type 'URLRequest' in scope
23 | // MARK: - Public
24 |
25 | public func intercept(_ request: URLRequest) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
26 | var newRequest = request
27 | newRequest.timeoutInterval = timeout
/host/spi-builder-workspace/Sources/MicroClient/NetworkRequestInterceptor.swift:14:59: error: cannot find type 'URLRequest' in scope
12 | /// - Returns: A potentially modified `URLRequest`.
13 | /// - Throws: An error if the interception process fails. Throwing an error will cancel the entire request.
14 | func intercept(_ request: URLRequest) async throws -> URLRequest
| `- error: cannot find type 'URLRequest' in scope
15 | }
16 |
/host/spi-builder-workspace/Sources/MicroClient/NetworkRequestInterceptor.swift:14:31: error: cannot find type 'URLRequest' in scope
12 | /// - Returns: A potentially modified `URLRequest`.
13 | /// - Throws: An error if the interception process fails. Throwing an error will cancel the entire request.
14 | func intercept(_ request: URLRequest) async throws -> URLRequest
| `- error: cannot find type 'URLRequest' in scope
15 | }
16 |
/host/spi-builder-workspace/Sources/MicroClient/Interceptors/UserAgentInterceptor.swift:33:66: error: cannot find type 'URLRequest' in scope
31 | // MARK: - Public
32 |
33 | public func intercept(_ request: URLRequest) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
34 | var newRequest = request
35 | newRequest.setValue(userAgent, forHTTPHeaderField: "User-Agent")
/host/spi-builder-workspace/Sources/MicroClient/Interceptors/UserAgentInterceptor.swift:33:38: error: cannot find type 'URLRequest' in scope
31 | // MARK: - Public
32 |
33 | public func intercept(_ request: URLRequest) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
34 | var newRequest = request
35 | newRequest.setValue(userAgent, forHTTPHeaderField: "User-Agent")
/host/spi-builder-workspace/Sources/MicroClient/NetworkClient.swift:63:25: error: cannot find type 'URLRequest' in scope
61 | }
62 |
63 | var urlRequest: URLRequest
| `- error: cannot find type 'URLRequest' in scope
64 | do {
65 | urlRequest = try URLRequest.makeURLRequest(
/host/spi-builder-workspace/Sources/MicroClient/NetworkClient.swift:65:30: error: cannot find 'URLRequest' in scope
63 | var urlRequest: URLRequest
64 | do {
65 | urlRequest = try URLRequest.makeURLRequest(
| `- error: cannot find 'URLRequest' in scope
66 | configuration: configuration,
67 | networkRequest: networkRequest
/host/spi-builder-workspace/Sources/MicroClient/NetworkClient.swift:92:23: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
90 |
91 | let data: Data
92 | let response: URLResponse
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
93 |
94 | 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:12:22: error: cannot find type 'URLRequest' in scope
10 | /// - Returns: A tuple containing the response data and URLResponse.
11 | func data(
12 | for request: URLRequest,
| `- error: cannot find type 'URLRequest' in scope
13 | delegate: URLSessionTaskDelegate?
14 | ) async throws -> (Data, URLResponse)
/host/spi-builder-workspace/Sources/MicroClient/Extensions/URLSessionProtocol.swift:13:19: error: cannot find type 'URLSessionTaskDelegate' in scope
11 | func data(
12 | for request: URLRequest,
13 | delegate: URLSessionTaskDelegate?
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
14 | ) async throws -> (Data, URLResponse)
15 | }
/host/spi-builder-workspace/Sources/MicroClient/NetworkClient.swift:97:27: error: 'nil' requires a contextual type
95 | (data, response) = try await configuration.session.data(
96 | for: urlRequest,
97 | delegate: nil
| `- error: 'nil' requires a contextual type
98 | )
99 | } catch let error as CancellationError {
/host/spi-builder-workspace/Sources/MicroClient/NetworkClient.swift:106:40: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
104 | }
105 |
106 | if let httpResponse = response as? HTTPURLResponse {
| `- warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
107 | log(
108 | .info,
/host/spi-builder-workspace/Sources/MicroClient/NetworkClient.swift:106:44: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
104 | }
105 |
106 | if let httpResponse = response as? HTTPURLResponse {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
107 | log(
108 | .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:109:43: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
107 | log(
108 | .info,
109 | "Response: \(httpResponse.statusCode) \(urlRequest.httpMethod ?? "") \(urlRequest.url?.absoluteString ?? "")"
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
110 | )
111 | log(.debug, "Response headers: \(httpResponse.allHeaderFields)")
/host/spi-builder-workspace/Sources/MicroClient/NetworkClient.swift:111:59: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
109 | "Response: \(httpResponse.statusCode) \(urlRequest.httpMethod ?? "") \(urlRequest.url?.absoluteString ?? "")"
110 | )
111 | log(.debug, "Response headers: \(httpResponse.allHeaderFields)")
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
112 |
113 | guard (200...299).contains(httpResponse.statusCode) else {
/host/spi-builder-workspace/Sources/MicroClient/NetworkClient.swift:113:53: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
111 | log(.debug, "Response headers: \(httpResponse.allHeaderFields)")
112 |
113 | guard (200...299).contains(httpResponse.statusCode) else {
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
114 | log(.error, "Unacceptable status code: \(httpResponse.statusCode)")
115 | throw NetworkClientError.unacceptableStatusCode(
/host/spi-builder-workspace/Sources/MicroClient/NetworkClient.swift:114:71: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
112 |
113 | guard (200...299).contains(httpResponse.statusCode) else {
114 | log(.error, "Unacceptable status code: \(httpResponse.statusCode)")
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
115 | throw NetworkClientError.unacceptableStatusCode(
116 | statusCode: httpResponse.statusCode,
/host/spi-builder-workspace/Sources/MicroClient/NetworkClient.swift:116:46: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
114 | log(.error, "Unacceptable status code: \(httpResponse.statusCode)")
115 | throw NetworkClientError.unacceptableStatusCode(
116 | statusCode: httpResponse.statusCode,
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
117 | response: httpResponse,
118 | data: data
[26/35] Compiling MicroClient StdoutLogger.swift
/host/spi-builder-workspace/Sources/MicroClient/Interceptors/TimeoutInterceptor.swift:25:66: error: cannot find type 'URLRequest' in scope
23 | // MARK: - Public
24 |
25 | public func intercept(_ request: URLRequest) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
26 | var newRequest = request
27 | newRequest.timeoutInterval = timeout
/host/spi-builder-workspace/Sources/MicroClient/Interceptors/TimeoutInterceptor.swift:25:38: error: cannot find type 'URLRequest' in scope
23 | // MARK: - Public
24 |
25 | public func intercept(_ request: URLRequest) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
26 | var newRequest = request
27 | newRequest.timeoutInterval = timeout
/host/spi-builder-workspace/Sources/MicroClient/NetworkRequestInterceptor.swift:14:59: error: cannot find type 'URLRequest' in scope
12 | /// - Returns: A potentially modified `URLRequest`.
13 | /// - Throws: An error if the interception process fails. Throwing an error will cancel the entire request.
14 | func intercept(_ request: URLRequest) async throws -> URLRequest
| `- error: cannot find type 'URLRequest' in scope
15 | }
16 |
/host/spi-builder-workspace/Sources/MicroClient/NetworkRequestInterceptor.swift:14:31: error: cannot find type 'URLRequest' in scope
12 | /// - Returns: A potentially modified `URLRequest`.
13 | /// - Throws: An error if the interception process fails. Throwing an error will cancel the entire request.
14 | func intercept(_ request: URLRequest) async throws -> URLRequest
| `- error: cannot find type 'URLRequest' in scope
15 | }
16 |
/host/spi-builder-workspace/Sources/MicroClient/Interceptors/UserAgentInterceptor.swift:33:66: error: cannot find type 'URLRequest' in scope
31 | // MARK: - Public
32 |
33 | public func intercept(_ request: URLRequest) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
34 | var newRequest = request
35 | newRequest.setValue(userAgent, forHTTPHeaderField: "User-Agent")
/host/spi-builder-workspace/Sources/MicroClient/Interceptors/UserAgentInterceptor.swift:33:38: error: cannot find type 'URLRequest' in scope
31 | // MARK: - Public
32 |
33 | public func intercept(_ request: URLRequest) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
34 | var newRequest = request
35 | newRequest.setValue(userAgent, forHTTPHeaderField: "User-Agent")
/host/spi-builder-workspace/Sources/MicroClient/NetworkClient.swift:63:25: error: cannot find type 'URLRequest' in scope
61 | }
62 |
63 | var urlRequest: URLRequest
| `- error: cannot find type 'URLRequest' in scope
64 | do {
65 | urlRequest = try URLRequest.makeURLRequest(
/host/spi-builder-workspace/Sources/MicroClient/NetworkClient.swift:65:30: error: cannot find 'URLRequest' in scope
63 | var urlRequest: URLRequest
64 | do {
65 | urlRequest = try URLRequest.makeURLRequest(
| `- error: cannot find 'URLRequest' in scope
66 | configuration: configuration,
67 | networkRequest: networkRequest
/host/spi-builder-workspace/Sources/MicroClient/NetworkClient.swift:92:23: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
90 |
91 | let data: Data
92 | let response: URLResponse
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
93 |
94 | 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:12:22: error: cannot find type 'URLRequest' in scope
10 | /// - Returns: A tuple containing the response data and URLResponse.
11 | func data(
12 | for request: URLRequest,
| `- error: cannot find type 'URLRequest' in scope
13 | delegate: URLSessionTaskDelegate?
14 | ) async throws -> (Data, URLResponse)
/host/spi-builder-workspace/Sources/MicroClient/Extensions/URLSessionProtocol.swift:13:19: error: cannot find type 'URLSessionTaskDelegate' in scope
11 | func data(
12 | for request: URLRequest,
13 | delegate: URLSessionTaskDelegate?
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
14 | ) async throws -> (Data, URLResponse)
15 | }
/host/spi-builder-workspace/Sources/MicroClient/NetworkClient.swift:97:27: error: 'nil' requires a contextual type
95 | (data, response) = try await configuration.session.data(
96 | for: urlRequest,
97 | delegate: nil
| `- error: 'nil' requires a contextual type
98 | )
99 | } catch let error as CancellationError {
/host/spi-builder-workspace/Sources/MicroClient/NetworkClient.swift:106:40: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
104 | }
105 |
106 | if let httpResponse = response as? HTTPURLResponse {
| `- warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
107 | log(
108 | .info,
/host/spi-builder-workspace/Sources/MicroClient/NetworkClient.swift:106:44: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
104 | }
105 |
106 | if let httpResponse = response as? HTTPURLResponse {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
107 | log(
108 | .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:109:43: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
107 | log(
108 | .info,
109 | "Response: \(httpResponse.statusCode) \(urlRequest.httpMethod ?? "") \(urlRequest.url?.absoluteString ?? "")"
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
110 | )
111 | log(.debug, "Response headers: \(httpResponse.allHeaderFields)")
/host/spi-builder-workspace/Sources/MicroClient/NetworkClient.swift:111:59: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
109 | "Response: \(httpResponse.statusCode) \(urlRequest.httpMethod ?? "") \(urlRequest.url?.absoluteString ?? "")"
110 | )
111 | log(.debug, "Response headers: \(httpResponse.allHeaderFields)")
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
112 |
113 | guard (200...299).contains(httpResponse.statusCode) else {
/host/spi-builder-workspace/Sources/MicroClient/NetworkClient.swift:113:53: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
111 | log(.debug, "Response headers: \(httpResponse.allHeaderFields)")
112 |
113 | guard (200...299).contains(httpResponse.statusCode) else {
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
114 | log(.error, "Unacceptable status code: \(httpResponse.statusCode)")
115 | throw NetworkClientError.unacceptableStatusCode(
/host/spi-builder-workspace/Sources/MicroClient/NetworkClient.swift:114:71: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
112 |
113 | guard (200...299).contains(httpResponse.statusCode) else {
114 | log(.error, "Unacceptable status code: \(httpResponse.statusCode)")
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
115 | throw NetworkClientError.unacceptableStatusCode(
116 | statusCode: httpResponse.statusCode,
/host/spi-builder-workspace/Sources/MicroClient/NetworkClient.swift:116:46: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
114 | log(.error, "Unacceptable status code: \(httpResponse.statusCode)")
115 | throw NetworkClientError.unacceptableStatusCode(
116 | statusCode: httpResponse.statusCode,
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
117 | response: httpResponse,
118 | data: data
[27/35] Compiling MicroClient NetworkClient.swift
/host/spi-builder-workspace/Sources/MicroClient/Interceptors/TimeoutInterceptor.swift:25:66: error: cannot find type 'URLRequest' in scope
23 | // MARK: - Public
24 |
25 | public func intercept(_ request: URLRequest) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
26 | var newRequest = request
27 | newRequest.timeoutInterval = timeout
/host/spi-builder-workspace/Sources/MicroClient/Interceptors/TimeoutInterceptor.swift:25:38: error: cannot find type 'URLRequest' in scope
23 | // MARK: - Public
24 |
25 | public func intercept(_ request: URLRequest) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
26 | var newRequest = request
27 | newRequest.timeoutInterval = timeout
/host/spi-builder-workspace/Sources/MicroClient/NetworkRequestInterceptor.swift:14:59: error: cannot find type 'URLRequest' in scope
12 | /// - Returns: A potentially modified `URLRequest`.
13 | /// - Throws: An error if the interception process fails. Throwing an error will cancel the entire request.
14 | func intercept(_ request: URLRequest) async throws -> URLRequest
| `- error: cannot find type 'URLRequest' in scope
15 | }
16 |
/host/spi-builder-workspace/Sources/MicroClient/NetworkRequestInterceptor.swift:14:31: error: cannot find type 'URLRequest' in scope
12 | /// - Returns: A potentially modified `URLRequest`.
13 | /// - Throws: An error if the interception process fails. Throwing an error will cancel the entire request.
14 | func intercept(_ request: URLRequest) async throws -> URLRequest
| `- error: cannot find type 'URLRequest' in scope
15 | }
16 |
/host/spi-builder-workspace/Sources/MicroClient/Interceptors/UserAgentInterceptor.swift:33:66: error: cannot find type 'URLRequest' in scope
31 | // MARK: - Public
32 |
33 | public func intercept(_ request: URLRequest) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
34 | var newRequest = request
35 | newRequest.setValue(userAgent, forHTTPHeaderField: "User-Agent")
/host/spi-builder-workspace/Sources/MicroClient/Interceptors/UserAgentInterceptor.swift:33:38: error: cannot find type 'URLRequest' in scope
31 | // MARK: - Public
32 |
33 | public func intercept(_ request: URLRequest) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
34 | var newRequest = request
35 | newRequest.setValue(userAgent, forHTTPHeaderField: "User-Agent")
/host/spi-builder-workspace/Sources/MicroClient/NetworkClient.swift:63:25: error: cannot find type 'URLRequest' in scope
61 | }
62 |
63 | var urlRequest: URLRequest
| `- error: cannot find type 'URLRequest' in scope
64 | do {
65 | urlRequest = try URLRequest.makeURLRequest(
/host/spi-builder-workspace/Sources/MicroClient/NetworkClient.swift:65:30: error: cannot find 'URLRequest' in scope
63 | var urlRequest: URLRequest
64 | do {
65 | urlRequest = try URLRequest.makeURLRequest(
| `- error: cannot find 'URLRequest' in scope
66 | configuration: configuration,
67 | networkRequest: networkRequest
/host/spi-builder-workspace/Sources/MicroClient/NetworkClient.swift:92:23: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
90 |
91 | let data: Data
92 | let response: URLResponse
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
93 |
94 | 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:12:22: error: cannot find type 'URLRequest' in scope
10 | /// - Returns: A tuple containing the response data and URLResponse.
11 | func data(
12 | for request: URLRequest,
| `- error: cannot find type 'URLRequest' in scope
13 | delegate: URLSessionTaskDelegate?
14 | ) async throws -> (Data, URLResponse)
/host/spi-builder-workspace/Sources/MicroClient/Extensions/URLSessionProtocol.swift:13:19: error: cannot find type 'URLSessionTaskDelegate' in scope
11 | func data(
12 | for request: URLRequest,
13 | delegate: URLSessionTaskDelegate?
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
14 | ) async throws -> (Data, URLResponse)
15 | }
/host/spi-builder-workspace/Sources/MicroClient/NetworkClient.swift:97:27: error: 'nil' requires a contextual type
95 | (data, response) = try await configuration.session.data(
96 | for: urlRequest,
97 | delegate: nil
| `- error: 'nil' requires a contextual type
98 | )
99 | } catch let error as CancellationError {
/host/spi-builder-workspace/Sources/MicroClient/NetworkClient.swift:106:40: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
104 | }
105 |
106 | if let httpResponse = response as? HTTPURLResponse {
| `- warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
107 | log(
108 | .info,
/host/spi-builder-workspace/Sources/MicroClient/NetworkClient.swift:106:44: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
104 | }
105 |
106 | if let httpResponse = response as? HTTPURLResponse {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
107 | log(
108 | .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:109:43: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
107 | log(
108 | .info,
109 | "Response: \(httpResponse.statusCode) \(urlRequest.httpMethod ?? "") \(urlRequest.url?.absoluteString ?? "")"
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
110 | )
111 | log(.debug, "Response headers: \(httpResponse.allHeaderFields)")
/host/spi-builder-workspace/Sources/MicroClient/NetworkClient.swift:111:59: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
109 | "Response: \(httpResponse.statusCode) \(urlRequest.httpMethod ?? "") \(urlRequest.url?.absoluteString ?? "")"
110 | )
111 | log(.debug, "Response headers: \(httpResponse.allHeaderFields)")
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
112 |
113 | guard (200...299).contains(httpResponse.statusCode) else {
/host/spi-builder-workspace/Sources/MicroClient/NetworkClient.swift:113:53: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
111 | log(.debug, "Response headers: \(httpResponse.allHeaderFields)")
112 |
113 | guard (200...299).contains(httpResponse.statusCode) else {
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
114 | log(.error, "Unacceptable status code: \(httpResponse.statusCode)")
115 | throw NetworkClientError.unacceptableStatusCode(
/host/spi-builder-workspace/Sources/MicroClient/NetworkClient.swift:114:71: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
112 |
113 | guard (200...299).contains(httpResponse.statusCode) else {
114 | log(.error, "Unacceptable status code: \(httpResponse.statusCode)")
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
115 | throw NetworkClientError.unacceptableStatusCode(
116 | statusCode: httpResponse.statusCode,
/host/spi-builder-workspace/Sources/MicroClient/NetworkClient.swift:116:46: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
114 | log(.error, "Unacceptable status code: \(httpResponse.statusCode)")
115 | throw NetworkClientError.unacceptableStatusCode(
116 | statusCode: httpResponse.statusCode,
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
117 | response: httpResponse,
118 | data: data
[28/35] Compiling MicroClient NetworkRequest.swift
/host/spi-builder-workspace/Sources/MicroClient/NetworkRequestInterceptor.swift:14:59: error: cannot find type 'URLRequest' in scope
12 | /// - Returns: A potentially modified `URLRequest`.
13 | /// - Throws: An error if the interception process fails. Throwing an error will cancel the entire request.
14 | func intercept(_ request: URLRequest) async throws -> URLRequest
| `- error: cannot find type 'URLRequest' in scope
15 | }
16 |
/host/spi-builder-workspace/Sources/MicroClient/NetworkRequestInterceptor.swift:14:31: error: cannot find type 'URLRequest' in scope
12 | /// - Returns: A potentially modified `URLRequest`.
13 | /// - Throws: An error if the interception process fails. Throwing an error will cancel the entire request.
14 | func intercept(_ request: URLRequest) async throws -> URLRequest
| `- error: cannot find type 'URLRequest' in scope
15 | }
16 |
/host/spi-builder-workspace/Sources/MicroClient/NetworkResponse.swift:13:26: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
11 |
12 | /// The network response.
13 | public let response: URLResponse
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
14 |
15 | // 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:19:19: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
17 | public init(
18 | value: ResponseModel,
19 | response: URLResponse
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
20 | ) {
21 | 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:13:16: error: stored property 'response' of 'Sendable'-conforming generic struct 'NetworkResponse' has non-sendable type 'URLResponse' (aka 'AnyObject')
11 |
12 | /// The network response.
13 | public let response: URLResponse
| `- error: stored property 'response' of 'Sendable'-conforming generic struct 'NetworkResponse' has non-sendable type 'URLResponse' (aka 'AnyObject')
14 |
15 | // MARK: - Life cycle
[29/35] Compiling MicroClient NetworkRequestInterceptor.swift
/host/spi-builder-workspace/Sources/MicroClient/NetworkRequestInterceptor.swift:14:59: error: cannot find type 'URLRequest' in scope
12 | /// - Returns: A potentially modified `URLRequest`.
13 | /// - Throws: An error if the interception process fails. Throwing an error will cancel the entire request.
14 | func intercept(_ request: URLRequest) async throws -> URLRequest
| `- error: cannot find type 'URLRequest' in scope
15 | }
16 |
/host/spi-builder-workspace/Sources/MicroClient/NetworkRequestInterceptor.swift:14:31: error: cannot find type 'URLRequest' in scope
12 | /// - Returns: A potentially modified `URLRequest`.
13 | /// - Throws: An error if the interception process fails. Throwing an error will cancel the entire request.
14 | func intercept(_ request: URLRequest) async throws -> URLRequest
| `- error: cannot find type 'URLRequest' in scope
15 | }
16 |
/host/spi-builder-workspace/Sources/MicroClient/NetworkResponse.swift:13:26: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
11 |
12 | /// The network response.
13 | public let response: URLResponse
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
14 |
15 | // 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:19:19: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
17 | public init(
18 | value: ResponseModel,
19 | response: URLResponse
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
20 | ) {
21 | 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:13:16: error: stored property 'response' of 'Sendable'-conforming generic struct 'NetworkResponse' has non-sendable type 'URLResponse' (aka 'AnyObject')
11 |
12 | /// The network response.
13 | public let response: URLResponse
| `- error: stored property 'response' of 'Sendable'-conforming generic struct 'NetworkResponse' has non-sendable type 'URLResponse' (aka 'AnyObject')
14 |
15 | // MARK: - Life cycle
[30/35] Compiling MicroClient NetworkResponse.swift
/host/spi-builder-workspace/Sources/MicroClient/NetworkRequestInterceptor.swift:14:59: error: cannot find type 'URLRequest' in scope
12 | /// - Returns: A potentially modified `URLRequest`.
13 | /// - Throws: An error if the interception process fails. Throwing an error will cancel the entire request.
14 | func intercept(_ request: URLRequest) async throws -> URLRequest
| `- error: cannot find type 'URLRequest' in scope
15 | }
16 |
/host/spi-builder-workspace/Sources/MicroClient/NetworkRequestInterceptor.swift:14:31: error: cannot find type 'URLRequest' in scope
12 | /// - Returns: A potentially modified `URLRequest`.
13 | /// - Throws: An error if the interception process fails. Throwing an error will cancel the entire request.
14 | func intercept(_ request: URLRequest) async throws -> URLRequest
| `- error: cannot find type 'URLRequest' in scope
15 | }
16 |
/host/spi-builder-workspace/Sources/MicroClient/NetworkResponse.swift:13:26: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
11 |
12 | /// The network response.
13 | public let response: URLResponse
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
14 |
15 | // 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:19:19: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
17 | public init(
18 | value: ResponseModel,
19 | response: URLResponse
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
20 | ) {
21 | 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:13:16: error: stored property 'response' of 'Sendable'-conforming generic struct 'NetworkResponse' has non-sendable type 'URLResponse' (aka 'AnyObject')
11 |
12 | /// The network response.
13 | public let response: URLResponse
| `- error: stored property 'response' of 'Sendable'-conforming generic struct 'NetworkResponse' has non-sendable type 'URLResponse' (aka 'AnyObject')
14 |
15 | // MARK: - Life cycle
[31/35] Compiling MicroClient NetworkResponseInterceptor.swift
/host/spi-builder-workspace/Sources/MicroClient/NetworkRequestInterceptor.swift:14:59: error: cannot find type 'URLRequest' in scope
12 | /// - Returns: A potentially modified `URLRequest`.
13 | /// - Throws: An error if the interception process fails. Throwing an error will cancel the entire request.
14 | func intercept(_ request: URLRequest) async throws -> URLRequest
| `- error: cannot find type 'URLRequest' in scope
15 | }
16 |
/host/spi-builder-workspace/Sources/MicroClient/NetworkRequestInterceptor.swift:14:31: error: cannot find type 'URLRequest' in scope
12 | /// - Returns: A potentially modified `URLRequest`.
13 | /// - Throws: An error if the interception process fails. Throwing an error will cancel the entire request.
14 | func intercept(_ request: URLRequest) async throws -> URLRequest
| `- error: cannot find type 'URLRequest' in scope
15 | }
16 |
/host/spi-builder-workspace/Sources/MicroClient/NetworkResponse.swift:13:26: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
11 |
12 | /// The network response.
13 | public let response: URLResponse
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
14 |
15 | // 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:19:19: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
17 | public init(
18 | value: ResponseModel,
19 | response: URLResponse
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
20 | ) {
21 | 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:13:16: error: stored property 'response' of 'Sendable'-conforming generic struct 'NetworkResponse' has non-sendable type 'URLResponse' (aka 'AnyObject')
11 |
12 | /// The network response.
13 | public let response: URLResponse
| `- error: stored property 'response' of 'Sendable'-conforming generic struct 'NetworkResponse' has non-sendable type 'URLResponse' (aka 'AnyObject')
14 |
15 | // MARK: - Life cycle
[32/35] Compiling MicroClient VoidRequest.swift
[33/35] Compiling MicroClient VoidResponse.swift
[34/35] Compiling MicroClient RetryStrategy.swift
[35/35] Compiling MicroClient URLFormItem.swift
BUILD FAILURE 6.1 wasm