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