Build Information
Failed to build MicroClient, reference 0.0.24 (443c66
), with Swift 6.1 for Linux on 5 Sep 2025 14:30:23 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4609320-3":/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
Build Log
25 |
26 | public func intercept(_ request: URLRequest) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
27 | var newRequest = request
28 | newRequest.setValue(acceptType, forHTTPHeaderField: "Accept")
/host/spi-builder-workspace/Sources/MicroClient/Interceptors/AcceptHeaderInterceptor.swift:26:38: error: cannot find type 'URLRequest' in scope
24 | // MARK: - Public
25 |
26 | public func intercept(_ request: URLRequest) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
27 | var newRequest = request
28 | newRequest.setValue(acceptType, forHTTPHeaderField: "Accept")
[11/31] Compiling MicroClient NetworkLogLevel.swift
/host/spi-builder-workspace/Sources/MicroClient/NetworkRequestInterceptor.swift:14:59: error: cannot find type 'URLRequest' in scope
12 | /// - Returns: A potentially modified `URLRequest`.
13 | /// - Throws: An error if the interception process fails. Throwing an error will cancel the entire request.
14 | func intercept(_ request: URLRequest) async throws -> URLRequest
| `- error: cannot find type 'URLRequest' in scope
15 | }
16 |
/host/spi-builder-workspace/Sources/MicroClient/NetworkRequestInterceptor.swift:14:31: error: cannot find type 'URLRequest' in scope
12 | /// - Returns: A potentially modified `URLRequest`.
13 | /// - Throws: An error if the interception process fails. Throwing an error will cancel the entire request.
14 | func intercept(_ request: URLRequest) async throws -> URLRequest
| `- error: cannot find type 'URLRequest' in scope
15 | }
16 |
[12/31] Compiling MicroClient NetworkLogger.swift
/host/spi-builder-workspace/Sources/MicroClient/NetworkRequestInterceptor.swift:14:59: error: cannot find type 'URLRequest' in scope
12 | /// - Returns: A potentially modified `URLRequest`.
13 | /// - Throws: An error if the interception process fails. Throwing an error will cancel the entire request.
14 | func intercept(_ request: URLRequest) async throws -> URLRequest
| `- error: cannot find type 'URLRequest' in scope
15 | }
16 |
/host/spi-builder-workspace/Sources/MicroClient/NetworkRequestInterceptor.swift:14:31: error: cannot find type 'URLRequest' in scope
12 | /// - Returns: A potentially modified `URLRequest`.
13 | /// - Throws: An error if the interception process fails. Throwing an error will cancel the entire request.
14 | func intercept(_ request: URLRequest) async throws -> URLRequest
| `- error: cannot find type 'URLRequest' in scope
15 | }
16 |
[13/31] Compiling MicroClient NetworkRequest.swift
/host/spi-builder-workspace/Sources/MicroClient/NetworkRequestInterceptor.swift:14:59: error: cannot find type 'URLRequest' in scope
12 | /// - Returns: A potentially modified `URLRequest`.
13 | /// - Throws: An error if the interception process fails. Throwing an error will cancel the entire request.
14 | func intercept(_ request: URLRequest) async throws -> URLRequest
| `- error: cannot find type 'URLRequest' in scope
15 | }
16 |
/host/spi-builder-workspace/Sources/MicroClient/NetworkRequestInterceptor.swift:14:31: error: cannot find type 'URLRequest' in scope
12 | /// - Returns: A potentially modified `URLRequest`.
13 | /// - Throws: An error if the interception process fails. Throwing an error will cancel the entire request.
14 | func intercept(_ request: URLRequest) async throws -> URLRequest
| `- error: cannot find type 'URLRequest' in scope
15 | }
16 |
[14/31] Compiling MicroClient VoidResponse.swift
[15/31] Compiling MicroClient RetryStrategy.swift
[16/31] Compiling MicroClient URLFormItem.swift
[17/31] Compiling MicroClient NetworkClient.swift
/host/spi-builder-workspace/Sources/MicroClient/NetworkClient.swift:66:25: error: cannot find type 'URLRequest' in scope
64 | }
65 |
66 | var urlRequest: URLRequest
| `- error: cannot find type 'URLRequest' in scope
67 | do {
68 | urlRequest = try URLRequest.makeURLRequest(
/host/spi-builder-workspace/Sources/MicroClient/NetworkClient.swift:68:30: error: cannot find 'URLRequest' in scope
66 | var urlRequest: URLRequest
67 | do {
68 | urlRequest = try URLRequest.makeURLRequest(
| `- error: cannot find 'URLRequest' in scope
69 | configuration: configuration,
70 | networkRequest: networkRequest
/host/spi-builder-workspace/Sources/MicroClient/NetworkRequestInterceptor.swift:14:59: error: cannot find type 'URLRequest' in scope
12 | /// - Returns: A potentially modified `URLRequest`.
13 | /// - Throws: An error if the interception process fails. Throwing an error will cancel the entire request.
14 | func intercept(_ request: URLRequest) async throws -> URLRequest
| `- error: cannot find type 'URLRequest' in scope
15 | }
16 |
/host/spi-builder-workspace/Sources/MicroClient/NetworkRequestInterceptor.swift:14:31: error: cannot find type 'URLRequest' in scope
12 | /// - Returns: A potentially modified `URLRequest`.
13 | /// - Throws: An error if the interception process fails. Throwing an error will cancel the entire request.
14 | func intercept(_ request: URLRequest) async throws -> URLRequest
| `- error: cannot find type 'URLRequest' in scope
15 | }
16 |
/host/spi-builder-workspace/Sources/MicroClient/NetworkClient.swift:95:23: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
93 |
94 | let data: Data
95 | let response: URLResponse
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
96 |
97 | do {
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/MicroClient/Extensions/URLSessionProtocol.swift:12:22: error: cannot find type 'URLRequest' in scope
10 | /// - Returns: A tuple containing the response data and URLResponse.
11 | func data(
12 | for request: URLRequest,
| `- error: cannot find type 'URLRequest' in scope
13 | delegate: URLSessionTaskDelegate?
14 | ) async throws -> (Data, URLResponse)
/host/spi-builder-workspace/Sources/MicroClient/Extensions/URLSessionProtocol.swift:13:19: error: cannot find type 'URLSessionTaskDelegate' in scope
11 | func data(
12 | for request: URLRequest,
13 | delegate: URLSessionTaskDelegate?
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
14 | ) async throws -> (Data, URLResponse)
15 | }
/host/spi-builder-workspace/Sources/MicroClient/NetworkClient.swift:100:27: error: 'nil' requires a contextual type
98 | (data, response) = try await configuration.session.data(
99 | for: urlRequest,
100 | delegate: nil
| `- error: 'nil' requires a contextual type
101 | )
102 | } catch {
/host/spi-builder-workspace/Sources/MicroClient/NetworkClient.swift:107:40: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
105 | }
106 |
107 | if let httpResponse = response as? HTTPURLResponse {
| `- warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
108 | log(.info, "Response: \(httpResponse.statusCode)")
109 | log(.debug, "Response headers: \(httpResponse.allHeaderFields)")
/host/spi-builder-workspace/Sources/MicroClient/NetworkClient.swift:107:44: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
105 | }
106 |
107 | if let httpResponse = response as? HTTPURLResponse {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
108 | log(.info, "Response: \(httpResponse.statusCode)")
109 | log(.debug, "Response headers: \(httpResponse.allHeaderFields)")
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:108:50: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
106 |
107 | if let httpResponse = response as? HTTPURLResponse {
108 | log(.info, "Response: \(httpResponse.statusCode)")
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
109 | log(.debug, "Response headers: \(httpResponse.allHeaderFields)")
110 |
/host/spi-builder-workspace/Sources/MicroClient/NetworkClient.swift:109:59: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
107 | if let httpResponse = response as? HTTPURLResponse {
108 | log(.info, "Response: \(httpResponse.statusCode)")
109 | log(.debug, "Response headers: \(httpResponse.allHeaderFields)")
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
110 |
111 | guard (200...299).contains(httpResponse.statusCode) else {
/host/spi-builder-workspace/Sources/MicroClient/NetworkClient.swift:111:53: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
109 | log(.debug, "Response headers: \(httpResponse.allHeaderFields)")
110 |
111 | guard (200...299).contains(httpResponse.statusCode) else {
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
112 | log(.error, "Unacceptable status code: \(httpResponse.statusCode)")
113 | throw NetworkClientError.unacceptableStatusCode(
/host/spi-builder-workspace/Sources/MicroClient/NetworkClient.swift:112:71: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
110 |
111 | guard (200...299).contains(httpResponse.statusCode) else {
112 | log(.error, "Unacceptable status code: \(httpResponse.statusCode)")
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
113 | throw NetworkClientError.unacceptableStatusCode(
114 | statusCode: httpResponse.statusCode,
/host/spi-builder-workspace/Sources/MicroClient/NetworkClient.swift:114:46: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
112 | log(.error, "Unacceptable status code: \(httpResponse.statusCode)")
113 | throw NetworkClientError.unacceptableStatusCode(
114 | statusCode: httpResponse.statusCode,
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
115 | response: httpResponse,
116 | data: data
/host/spi-builder-workspace/Sources/MicroClient/NetworkClientError.swift:16:60: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
14 | /// - `response`: The metadata associated with the HTTP response.
15 | /// - `data`: The raw response body, which may contain more specific error details from the server.
16 | 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.
17 |
18 | /// 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:16:10: error: associated value 'unacceptableStatusCode(statusCode:response:data:)' of 'Sendable'-conforming enum 'NetworkClientError' has non-sendable type 'URLResponse' (aka 'AnyObject')
14 | /// - `response`: The metadata associated with the HTTP response.
15 | /// - `data`: The raw response body, which may contain more specific error details from the server.
16 | 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')
17 |
18 | /// The response body could not be decoded into the expected `Decodable` type.
[18/31] Compiling MicroClient NetworkClientError.swift
/host/spi-builder-workspace/Sources/MicroClient/NetworkClient.swift:66:25: error: cannot find type 'URLRequest' in scope
64 | }
65 |
66 | var urlRequest: URLRequest
| `- error: cannot find type 'URLRequest' in scope
67 | do {
68 | urlRequest = try URLRequest.makeURLRequest(
/host/spi-builder-workspace/Sources/MicroClient/NetworkClient.swift:68:30: error: cannot find 'URLRequest' in scope
66 | var urlRequest: URLRequest
67 | do {
68 | urlRequest = try URLRequest.makeURLRequest(
| `- error: cannot find 'URLRequest' in scope
69 | configuration: configuration,
70 | networkRequest: networkRequest
/host/spi-builder-workspace/Sources/MicroClient/NetworkRequestInterceptor.swift:14:59: error: cannot find type 'URLRequest' in scope
12 | /// - Returns: A potentially modified `URLRequest`.
13 | /// - Throws: An error if the interception process fails. Throwing an error will cancel the entire request.
14 | func intercept(_ request: URLRequest) async throws -> URLRequest
| `- error: cannot find type 'URLRequest' in scope
15 | }
16 |
/host/spi-builder-workspace/Sources/MicroClient/NetworkRequestInterceptor.swift:14:31: error: cannot find type 'URLRequest' in scope
12 | /// - Returns: A potentially modified `URLRequest`.
13 | /// - Throws: An error if the interception process fails. Throwing an error will cancel the entire request.
14 | func intercept(_ request: URLRequest) async throws -> URLRequest
| `- error: cannot find type 'URLRequest' in scope
15 | }
16 |
/host/spi-builder-workspace/Sources/MicroClient/NetworkClient.swift:95:23: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
93 |
94 | let data: Data
95 | let response: URLResponse
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
96 |
97 | do {
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/MicroClient/Extensions/URLSessionProtocol.swift:12:22: error: cannot find type 'URLRequest' in scope
10 | /// - Returns: A tuple containing the response data and URLResponse.
11 | func data(
12 | for request: URLRequest,
| `- error: cannot find type 'URLRequest' in scope
13 | delegate: URLSessionTaskDelegate?
14 | ) async throws -> (Data, URLResponse)
/host/spi-builder-workspace/Sources/MicroClient/Extensions/URLSessionProtocol.swift:13:19: error: cannot find type 'URLSessionTaskDelegate' in scope
11 | func data(
12 | for request: URLRequest,
13 | delegate: URLSessionTaskDelegate?
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
14 | ) async throws -> (Data, URLResponse)
15 | }
/host/spi-builder-workspace/Sources/MicroClient/NetworkClient.swift:100:27: error: 'nil' requires a contextual type
98 | (data, response) = try await configuration.session.data(
99 | for: urlRequest,
100 | delegate: nil
| `- error: 'nil' requires a contextual type
101 | )
102 | } catch {
/host/spi-builder-workspace/Sources/MicroClient/NetworkClient.swift:107:40: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
105 | }
106 |
107 | if let httpResponse = response as? HTTPURLResponse {
| `- warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
108 | log(.info, "Response: \(httpResponse.statusCode)")
109 | log(.debug, "Response headers: \(httpResponse.allHeaderFields)")
/host/spi-builder-workspace/Sources/MicroClient/NetworkClient.swift:107:44: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
105 | }
106 |
107 | if let httpResponse = response as? HTTPURLResponse {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
108 | log(.info, "Response: \(httpResponse.statusCode)")
109 | log(.debug, "Response headers: \(httpResponse.allHeaderFields)")
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:108:50: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
106 |
107 | if let httpResponse = response as? HTTPURLResponse {
108 | log(.info, "Response: \(httpResponse.statusCode)")
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
109 | log(.debug, "Response headers: \(httpResponse.allHeaderFields)")
110 |
/host/spi-builder-workspace/Sources/MicroClient/NetworkClient.swift:109:59: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
107 | if let httpResponse = response as? HTTPURLResponse {
108 | log(.info, "Response: \(httpResponse.statusCode)")
109 | log(.debug, "Response headers: \(httpResponse.allHeaderFields)")
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
110 |
111 | guard (200...299).contains(httpResponse.statusCode) else {
/host/spi-builder-workspace/Sources/MicroClient/NetworkClient.swift:111:53: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
109 | log(.debug, "Response headers: \(httpResponse.allHeaderFields)")
110 |
111 | guard (200...299).contains(httpResponse.statusCode) else {
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
112 | log(.error, "Unacceptable status code: \(httpResponse.statusCode)")
113 | throw NetworkClientError.unacceptableStatusCode(
/host/spi-builder-workspace/Sources/MicroClient/NetworkClient.swift:112:71: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
110 |
111 | guard (200...299).contains(httpResponse.statusCode) else {
112 | log(.error, "Unacceptable status code: \(httpResponse.statusCode)")
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
113 | throw NetworkClientError.unacceptableStatusCode(
114 | statusCode: httpResponse.statusCode,
/host/spi-builder-workspace/Sources/MicroClient/NetworkClient.swift:114:46: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
112 | log(.error, "Unacceptable status code: \(httpResponse.statusCode)")
113 | throw NetworkClientError.unacceptableStatusCode(
114 | statusCode: httpResponse.statusCode,
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
115 | response: httpResponse,
116 | data: data
/host/spi-builder-workspace/Sources/MicroClient/NetworkClientError.swift:16:60: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
14 | /// - `response`: The metadata associated with the HTTP response.
15 | /// - `data`: The raw response body, which may contain more specific error details from the server.
16 | 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.
17 |
18 | /// 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:16:10: error: associated value 'unacceptableStatusCode(statusCode:response:data:)' of 'Sendable'-conforming enum 'NetworkClientError' has non-sendable type 'URLResponse' (aka 'AnyObject')
14 | /// - `response`: The metadata associated with the HTTP response.
15 | /// - `data`: The raw response body, which may contain more specific error details from the server.
16 | 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')
17 |
18 | /// The response body could not be decoded into the expected `Decodable` type.
[19/31] Compiling MicroClient NetworkConfiguration.swift
/host/spi-builder-workspace/Sources/MicroClient/NetworkClient.swift:66:25: error: cannot find type 'URLRequest' in scope
64 | }
65 |
66 | var urlRequest: URLRequest
| `- error: cannot find type 'URLRequest' in scope
67 | do {
68 | urlRequest = try URLRequest.makeURLRequest(
/host/spi-builder-workspace/Sources/MicroClient/NetworkClient.swift:68:30: error: cannot find 'URLRequest' in scope
66 | var urlRequest: URLRequest
67 | do {
68 | urlRequest = try URLRequest.makeURLRequest(
| `- error: cannot find 'URLRequest' in scope
69 | configuration: configuration,
70 | networkRequest: networkRequest
/host/spi-builder-workspace/Sources/MicroClient/NetworkRequestInterceptor.swift:14:59: error: cannot find type 'URLRequest' in scope
12 | /// - Returns: A potentially modified `URLRequest`.
13 | /// - Throws: An error if the interception process fails. Throwing an error will cancel the entire request.
14 | func intercept(_ request: URLRequest) async throws -> URLRequest
| `- error: cannot find type 'URLRequest' in scope
15 | }
16 |
/host/spi-builder-workspace/Sources/MicroClient/NetworkRequestInterceptor.swift:14:31: error: cannot find type 'URLRequest' in scope
12 | /// - Returns: A potentially modified `URLRequest`.
13 | /// - Throws: An error if the interception process fails. Throwing an error will cancel the entire request.
14 | func intercept(_ request: URLRequest) async throws -> URLRequest
| `- error: cannot find type 'URLRequest' in scope
15 | }
16 |
/host/spi-builder-workspace/Sources/MicroClient/NetworkClient.swift:95:23: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
93 |
94 | let data: Data
95 | let response: URLResponse
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
96 |
97 | do {
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/MicroClient/Extensions/URLSessionProtocol.swift:12:22: error: cannot find type 'URLRequest' in scope
10 | /// - Returns: A tuple containing the response data and URLResponse.
11 | func data(
12 | for request: URLRequest,
| `- error: cannot find type 'URLRequest' in scope
13 | delegate: URLSessionTaskDelegate?
14 | ) async throws -> (Data, URLResponse)
/host/spi-builder-workspace/Sources/MicroClient/Extensions/URLSessionProtocol.swift:13:19: error: cannot find type 'URLSessionTaskDelegate' in scope
11 | func data(
12 | for request: URLRequest,
13 | delegate: URLSessionTaskDelegate?
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
14 | ) async throws -> (Data, URLResponse)
15 | }
/host/spi-builder-workspace/Sources/MicroClient/NetworkClient.swift:100:27: error: 'nil' requires a contextual type
98 | (data, response) = try await configuration.session.data(
99 | for: urlRequest,
100 | delegate: nil
| `- error: 'nil' requires a contextual type
101 | )
102 | } catch {
/host/spi-builder-workspace/Sources/MicroClient/NetworkClient.swift:107:40: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
105 | }
106 |
107 | if let httpResponse = response as? HTTPURLResponse {
| `- warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
108 | log(.info, "Response: \(httpResponse.statusCode)")
109 | log(.debug, "Response headers: \(httpResponse.allHeaderFields)")
/host/spi-builder-workspace/Sources/MicroClient/NetworkClient.swift:107:44: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
105 | }
106 |
107 | if let httpResponse = response as? HTTPURLResponse {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
108 | log(.info, "Response: \(httpResponse.statusCode)")
109 | log(.debug, "Response headers: \(httpResponse.allHeaderFields)")
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:108:50: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
106 |
107 | if let httpResponse = response as? HTTPURLResponse {
108 | log(.info, "Response: \(httpResponse.statusCode)")
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
109 | log(.debug, "Response headers: \(httpResponse.allHeaderFields)")
110 |
/host/spi-builder-workspace/Sources/MicroClient/NetworkClient.swift:109:59: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
107 | if let httpResponse = response as? HTTPURLResponse {
108 | log(.info, "Response: \(httpResponse.statusCode)")
109 | log(.debug, "Response headers: \(httpResponse.allHeaderFields)")
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
110 |
111 | guard (200...299).contains(httpResponse.statusCode) else {
/host/spi-builder-workspace/Sources/MicroClient/NetworkClient.swift:111:53: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
109 | log(.debug, "Response headers: \(httpResponse.allHeaderFields)")
110 |
111 | guard (200...299).contains(httpResponse.statusCode) else {
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
112 | log(.error, "Unacceptable status code: \(httpResponse.statusCode)")
113 | throw NetworkClientError.unacceptableStatusCode(
/host/spi-builder-workspace/Sources/MicroClient/NetworkClient.swift:112:71: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
110 |
111 | guard (200...299).contains(httpResponse.statusCode) else {
112 | log(.error, "Unacceptable status code: \(httpResponse.statusCode)")
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
113 | throw NetworkClientError.unacceptableStatusCode(
114 | statusCode: httpResponse.statusCode,
/host/spi-builder-workspace/Sources/MicroClient/NetworkClient.swift:114:46: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
112 | log(.error, "Unacceptable status code: \(httpResponse.statusCode)")
113 | throw NetworkClientError.unacceptableStatusCode(
114 | statusCode: httpResponse.statusCode,
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
115 | response: httpResponse,
116 | data: data
/host/spi-builder-workspace/Sources/MicroClient/NetworkClientError.swift:16:60: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
14 | /// - `response`: The metadata associated with the HTTP response.
15 | /// - `data`: The raw response body, which may contain more specific error details from the server.
16 | 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.
17 |
18 | /// 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:16:10: error: associated value 'unacceptableStatusCode(statusCode:response:data:)' of 'Sendable'-conforming enum 'NetworkClientError' has non-sendable type 'URLResponse' (aka 'AnyObject')
14 | /// - `response`: The metadata associated with the HTTP response.
15 | /// - `data`: The raw response body, which may contain more specific error details from the server.
16 | 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')
17 |
18 | /// The response body could not be decoded into the expected `Decodable` type.
[20/31] Compiling MicroClient URLComponents.swift
/host/spi-builder-workspace/Sources/MicroClient/Extensions/URLRequest.swift:3:11: error: cannot find type 'URLRequest' in scope
1 | import Foundation
2 |
3 | extension URLRequest {
| `- error: cannot find type 'URLRequest' in scope
4 |
5 | static func makeURLRequest<RequestModel, ResponseModel>(
/host/spi-builder-workspace/Sources/MicroClient/Extensions/URLResponse.swift:3:8: error: non-nominal type 'URLResponse' (aka 'AnyObject') cannot be extended
1 | import Foundation
2 |
3 | public extension URLResponse {
| `- error: non-nominal type 'URLResponse' (aka 'AnyObject') cannot be extended
4 |
5 | /// Returns the HTTP Header value for "Location". Default: `nil`.
/host/spi-builder-workspace/Sources/MicroClient/Extensions/URLSessionProtocol.swift:12:22: error: cannot find type 'URLRequest' in scope
10 | /// - Returns: A tuple containing the response data and URLResponse.
11 | func data(
12 | for request: URLRequest,
| `- error: cannot find type 'URLRequest' in scope
13 | delegate: URLSessionTaskDelegate?
14 | ) async throws -> (Data, URLResponse)
/host/spi-builder-workspace/Sources/MicroClient/Extensions/URLSessionProtocol.swift:13:19: error: cannot find type 'URLSessionTaskDelegate' in scope
11 | func data(
12 | for request: URLRequest,
13 | delegate: URLSessionTaskDelegate?
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
14 | ) async throws -> (Data, URLResponse)
15 | }
/host/spi-builder-workspace/Sources/MicroClient/Extensions/URLSessionProtocol.swift:14:30: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
12 | for request: URLRequest,
13 | delegate: URLSessionTaskDelegate?
14 | ) async throws -> (Data, URLResponse)
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
15 | }
16 |
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/MicroClient/Extensions/URLSessionProtocol.swift:19:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
17 | // MARK: - URLSession conformance
18 |
19 | extension URLSession: URLSessionProtocol {}
| `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
20 |
/host/spi-builder-workspace/Sources/MicroClient/Extensions/URLRequest.swift:8:17: error: cannot find type 'URLRequest' in scope
6 | configuration: NetworkConfiguration,
7 | networkRequest: NetworkRequest<RequestModel, ResponseModel>
8 | ) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
9 | let url = try URL.makeURL(
10 | configuration: configuration,
[21/31] Compiling MicroClient URLRequest.swift
/host/spi-builder-workspace/Sources/MicroClient/Extensions/URLRequest.swift:3:11: error: cannot find type 'URLRequest' in scope
1 | import Foundation
2 |
3 | extension URLRequest {
| `- error: cannot find type 'URLRequest' in scope
4 |
5 | static func makeURLRequest<RequestModel, ResponseModel>(
/host/spi-builder-workspace/Sources/MicroClient/Extensions/URLResponse.swift:3:8: error: non-nominal type 'URLResponse' (aka 'AnyObject') cannot be extended
1 | import Foundation
2 |
3 | public extension URLResponse {
| `- error: non-nominal type 'URLResponse' (aka 'AnyObject') cannot be extended
4 |
5 | /// Returns the HTTP Header value for "Location". Default: `nil`.
/host/spi-builder-workspace/Sources/MicroClient/Extensions/URLSessionProtocol.swift:12:22: error: cannot find type 'URLRequest' in scope
10 | /// - Returns: A tuple containing the response data and URLResponse.
11 | func data(
12 | for request: URLRequest,
| `- error: cannot find type 'URLRequest' in scope
13 | delegate: URLSessionTaskDelegate?
14 | ) async throws -> (Data, URLResponse)
/host/spi-builder-workspace/Sources/MicroClient/Extensions/URLSessionProtocol.swift:13:19: error: cannot find type 'URLSessionTaskDelegate' in scope
11 | func data(
12 | for request: URLRequest,
13 | delegate: URLSessionTaskDelegate?
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
14 | ) async throws -> (Data, URLResponse)
15 | }
/host/spi-builder-workspace/Sources/MicroClient/Extensions/URLSessionProtocol.swift:14:30: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
12 | for request: URLRequest,
13 | delegate: URLSessionTaskDelegate?
14 | ) async throws -> (Data, URLResponse)
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
15 | }
16 |
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/MicroClient/Extensions/URLSessionProtocol.swift:19:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
17 | // MARK: - URLSession conformance
18 |
19 | extension URLSession: URLSessionProtocol {}
| `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
20 |
/host/spi-builder-workspace/Sources/MicroClient/Extensions/URLRequest.swift:8:17: error: cannot find type 'URLRequest' in scope
6 | configuration: NetworkConfiguration,
7 | networkRequest: NetworkRequest<RequestModel, ResponseModel>
8 | ) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
9 | let url = try URL.makeURL(
10 | configuration: configuration,
[22/31] Compiling MicroClient URLResponse.swift
/host/spi-builder-workspace/Sources/MicroClient/Extensions/URLRequest.swift:3:11: error: cannot find type 'URLRequest' in scope
1 | import Foundation
2 |
3 | extension URLRequest {
| `- error: cannot find type 'URLRequest' in scope
4 |
5 | static func makeURLRequest<RequestModel, ResponseModel>(
/host/spi-builder-workspace/Sources/MicroClient/Extensions/URLResponse.swift:3:8: error: non-nominal type 'URLResponse' (aka 'AnyObject') cannot be extended
1 | import Foundation
2 |
3 | public extension URLResponse {
| `- error: non-nominal type 'URLResponse' (aka 'AnyObject') cannot be extended
4 |
5 | /// Returns the HTTP Header value for "Location". Default: `nil`.
/host/spi-builder-workspace/Sources/MicroClient/Extensions/URLSessionProtocol.swift:12:22: error: cannot find type 'URLRequest' in scope
10 | /// - Returns: A tuple containing the response data and URLResponse.
11 | func data(
12 | for request: URLRequest,
| `- error: cannot find type 'URLRequest' in scope
13 | delegate: URLSessionTaskDelegate?
14 | ) async throws -> (Data, URLResponse)
/host/spi-builder-workspace/Sources/MicroClient/Extensions/URLSessionProtocol.swift:13:19: error: cannot find type 'URLSessionTaskDelegate' in scope
11 | func data(
12 | for request: URLRequest,
13 | delegate: URLSessionTaskDelegate?
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
14 | ) async throws -> (Data, URLResponse)
15 | }
/host/spi-builder-workspace/Sources/MicroClient/Extensions/URLSessionProtocol.swift:14:30: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
12 | for request: URLRequest,
13 | delegate: URLSessionTaskDelegate?
14 | ) async throws -> (Data, URLResponse)
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
15 | }
16 |
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/MicroClient/Extensions/URLSessionProtocol.swift:19:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
17 | // MARK: - URLSession conformance
18 |
19 | extension URLSession: URLSessionProtocol {}
| `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
20 |
/host/spi-builder-workspace/Sources/MicroClient/Extensions/URLRequest.swift:8:17: error: cannot find type 'URLRequest' in scope
6 | configuration: NetworkConfiguration,
7 | networkRequest: NetworkRequest<RequestModel, ResponseModel>
8 | ) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
9 | let url = try URL.makeURL(
10 | configuration: configuration,
[23/31] Compiling MicroClient URLSessionProtocol.swift
/host/spi-builder-workspace/Sources/MicroClient/Extensions/URLRequest.swift:3:11: error: cannot find type 'URLRequest' in scope
1 | import Foundation
2 |
3 | extension URLRequest {
| `- error: cannot find type 'URLRequest' in scope
4 |
5 | static func makeURLRequest<RequestModel, ResponseModel>(
/host/spi-builder-workspace/Sources/MicroClient/Extensions/URLResponse.swift:3:8: error: non-nominal type 'URLResponse' (aka 'AnyObject') cannot be extended
1 | import Foundation
2 |
3 | public extension URLResponse {
| `- error: non-nominal type 'URLResponse' (aka 'AnyObject') cannot be extended
4 |
5 | /// Returns the HTTP Header value for "Location". Default: `nil`.
/host/spi-builder-workspace/Sources/MicroClient/Extensions/URLSessionProtocol.swift:12:22: error: cannot find type 'URLRequest' in scope
10 | /// - Returns: A tuple containing the response data and URLResponse.
11 | func data(
12 | for request: URLRequest,
| `- error: cannot find type 'URLRequest' in scope
13 | delegate: URLSessionTaskDelegate?
14 | ) async throws -> (Data, URLResponse)
/host/spi-builder-workspace/Sources/MicroClient/Extensions/URLSessionProtocol.swift:13:19: error: cannot find type 'URLSessionTaskDelegate' in scope
11 | func data(
12 | for request: URLRequest,
13 | delegate: URLSessionTaskDelegate?
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
14 | ) async throws -> (Data, URLResponse)
15 | }
/host/spi-builder-workspace/Sources/MicroClient/Extensions/URLSessionProtocol.swift:14:30: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
12 | for request: URLRequest,
13 | delegate: URLSessionTaskDelegate?
14 | ) async throws -> (Data, URLResponse)
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
15 | }
16 |
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/MicroClient/Extensions/URLSessionProtocol.swift:19:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
17 | // MARK: - URLSession conformance
18 |
19 | extension URLSession: URLSessionProtocol {}
| `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
20 |
/host/spi-builder-workspace/Sources/MicroClient/Extensions/URLRequest.swift:8:17: error: cannot find type 'URLRequest' in scope
6 | configuration: NetworkConfiguration,
7 | networkRequest: NetworkRequest<RequestModel, ResponseModel>
8 | ) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
9 | let url = try URL.makeURL(
10 | configuration: configuration,
[24/31] Compiling MicroClient BasicAuthInterceptor.swift
/host/spi-builder-workspace/Sources/MicroClient/Interceptors/BasicAuthInterceptor.swift:47:66: error: cannot find type 'URLRequest' in scope
45 | // MARK: - Public
46 |
47 | public func intercept(_ request: URLRequest) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
48 | var newRequest = request
49 |
/host/spi-builder-workspace/Sources/MicroClient/Interceptors/BasicAuthInterceptor.swift:47:38: error: cannot find type 'URLRequest' in scope
45 | // MARK: - Public
46 |
47 | public func intercept(_ request: URLRequest) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
48 | var newRequest = request
49 |
/host/spi-builder-workspace/Sources/MicroClient/NetworkRequestInterceptor.swift:14:59: error: cannot find type 'URLRequest' in scope
12 | /// - Returns: A potentially modified `URLRequest`.
13 | /// - Throws: An error if the interception process fails. Throwing an error will cancel the entire request.
14 | func intercept(_ request: URLRequest) async throws -> URLRequest
| `- error: cannot find type 'URLRequest' in scope
15 | }
16 |
/host/spi-builder-workspace/Sources/MicroClient/NetworkRequestInterceptor.swift:14:31: error: cannot find type 'URLRequest' in scope
12 | /// - Returns: A potentially modified `URLRequest`.
13 | /// - Throws: An error if the interception process fails. Throwing an error will cancel the entire request.
14 | func intercept(_ request: URLRequest) async throws -> URLRequest
| `- error: cannot find type 'URLRequest' in scope
15 | }
16 |
/host/spi-builder-workspace/Sources/MicroClient/Interceptors/BearerAuthorizationInterceptor.swift:27:66: error: cannot find type 'URLRequest' in scope
25 | // MARK: - Public
26 |
27 | public func intercept(_ request: URLRequest) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
28 | var newRequest = request
29 |
/host/spi-builder-workspace/Sources/MicroClient/Interceptors/BearerAuthorizationInterceptor.swift:27:38: error: cannot find type 'URLRequest' in scope
25 | // MARK: - Public
26 |
27 | public func intercept(_ request: URLRequest) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
28 | var newRequest = request
29 |
/host/spi-builder-workspace/Sources/MicroClient/Interceptors/CacheControlInterceptor.swift:41:66: error: cannot find type 'URLRequest' in scope
39 | // MARK: - Public
40 |
41 | public func intercept(_ request: URLRequest) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
42 | var newRequest = request
43 | newRequest.setValue(policy.headerValue, forHTTPHeaderField: "Cache-Control")
/host/spi-builder-workspace/Sources/MicroClient/Interceptors/CacheControlInterceptor.swift:41:38: error: cannot find type 'URLRequest' in scope
39 | // MARK: - Public
40 |
41 | public func intercept(_ request: URLRequest) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
42 | var newRequest = request
43 | newRequest.setValue(policy.headerValue, forHTTPHeaderField: "Cache-Control")
/host/spi-builder-workspace/Sources/MicroClient/Interceptors/ContentTypeInterceptor.swift:26:66: error: cannot find type 'URLRequest' in scope
24 | // MARK: - Public
25 |
26 | public func intercept(_ request: URLRequest) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
27 | var newRequest = request
28 |
/host/spi-builder-workspace/Sources/MicroClient/Interceptors/ContentTypeInterceptor.swift:26:38: error: cannot find type 'URLRequest' in scope
24 | // MARK: - Public
25 |
26 | public func intercept(_ request: URLRequest) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
27 | var newRequest = request
28 |
[25/31] Compiling MicroClient BearerAuthorizationInterceptor.swift
/host/spi-builder-workspace/Sources/MicroClient/Interceptors/BasicAuthInterceptor.swift:47:66: error: cannot find type 'URLRequest' in scope
45 | // MARK: - Public
46 |
47 | public func intercept(_ request: URLRequest) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
48 | var newRequest = request
49 |
/host/spi-builder-workspace/Sources/MicroClient/Interceptors/BasicAuthInterceptor.swift:47:38: error: cannot find type 'URLRequest' in scope
45 | // MARK: - Public
46 |
47 | public func intercept(_ request: URLRequest) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
48 | var newRequest = request
49 |
/host/spi-builder-workspace/Sources/MicroClient/NetworkRequestInterceptor.swift:14:59: error: cannot find type 'URLRequest' in scope
12 | /// - Returns: A potentially modified `URLRequest`.
13 | /// - Throws: An error if the interception process fails. Throwing an error will cancel the entire request.
14 | func intercept(_ request: URLRequest) async throws -> URLRequest
| `- error: cannot find type 'URLRequest' in scope
15 | }
16 |
/host/spi-builder-workspace/Sources/MicroClient/NetworkRequestInterceptor.swift:14:31: error: cannot find type 'URLRequest' in scope
12 | /// - Returns: A potentially modified `URLRequest`.
13 | /// - Throws: An error if the interception process fails. Throwing an error will cancel the entire request.
14 | func intercept(_ request: URLRequest) async throws -> URLRequest
| `- error: cannot find type 'URLRequest' in scope
15 | }
16 |
/host/spi-builder-workspace/Sources/MicroClient/Interceptors/BearerAuthorizationInterceptor.swift:27:66: error: cannot find type 'URLRequest' in scope
25 | // MARK: - Public
26 |
27 | public func intercept(_ request: URLRequest) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
28 | var newRequest = request
29 |
/host/spi-builder-workspace/Sources/MicroClient/Interceptors/BearerAuthorizationInterceptor.swift:27:38: error: cannot find type 'URLRequest' in scope
25 | // MARK: - Public
26 |
27 | public func intercept(_ request: URLRequest) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
28 | var newRequest = request
29 |
/host/spi-builder-workspace/Sources/MicroClient/Interceptors/CacheControlInterceptor.swift:41:66: error: cannot find type 'URLRequest' in scope
39 | // MARK: - Public
40 |
41 | public func intercept(_ request: URLRequest) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
42 | var newRequest = request
43 | newRequest.setValue(policy.headerValue, forHTTPHeaderField: "Cache-Control")
/host/spi-builder-workspace/Sources/MicroClient/Interceptors/CacheControlInterceptor.swift:41:38: error: cannot find type 'URLRequest' in scope
39 | // MARK: - Public
40 |
41 | public func intercept(_ request: URLRequest) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
42 | var newRequest = request
43 | newRequest.setValue(policy.headerValue, forHTTPHeaderField: "Cache-Control")
/host/spi-builder-workspace/Sources/MicroClient/Interceptors/ContentTypeInterceptor.swift:26:66: error: cannot find type 'URLRequest' in scope
24 | // MARK: - Public
25 |
26 | public func intercept(_ request: URLRequest) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
27 | var newRequest = request
28 |
/host/spi-builder-workspace/Sources/MicroClient/Interceptors/ContentTypeInterceptor.swift:26:38: error: cannot find type 'URLRequest' in scope
24 | // MARK: - Public
25 |
26 | public func intercept(_ request: URLRequest) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
27 | var newRequest = request
28 |
[26/31] Compiling MicroClient CacheControlInterceptor.swift
/host/spi-builder-workspace/Sources/MicroClient/Interceptors/BasicAuthInterceptor.swift:47:66: error: cannot find type 'URLRequest' in scope
45 | // MARK: - Public
46 |
47 | public func intercept(_ request: URLRequest) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
48 | var newRequest = request
49 |
/host/spi-builder-workspace/Sources/MicroClient/Interceptors/BasicAuthInterceptor.swift:47:38: error: cannot find type 'URLRequest' in scope
45 | // MARK: - Public
46 |
47 | public func intercept(_ request: URLRequest) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
48 | var newRequest = request
49 |
/host/spi-builder-workspace/Sources/MicroClient/NetworkRequestInterceptor.swift:14:59: error: cannot find type 'URLRequest' in scope
12 | /// - Returns: A potentially modified `URLRequest`.
13 | /// - Throws: An error if the interception process fails. Throwing an error will cancel the entire request.
14 | func intercept(_ request: URLRequest) async throws -> URLRequest
| `- error: cannot find type 'URLRequest' in scope
15 | }
16 |
/host/spi-builder-workspace/Sources/MicroClient/NetworkRequestInterceptor.swift:14:31: error: cannot find type 'URLRequest' in scope
12 | /// - Returns: A potentially modified `URLRequest`.
13 | /// - Throws: An error if the interception process fails. Throwing an error will cancel the entire request.
14 | func intercept(_ request: URLRequest) async throws -> URLRequest
| `- error: cannot find type 'URLRequest' in scope
15 | }
16 |
/host/spi-builder-workspace/Sources/MicroClient/Interceptors/BearerAuthorizationInterceptor.swift:27:66: error: cannot find type 'URLRequest' in scope
25 | // MARK: - Public
26 |
27 | public func intercept(_ request: URLRequest) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
28 | var newRequest = request
29 |
/host/spi-builder-workspace/Sources/MicroClient/Interceptors/BearerAuthorizationInterceptor.swift:27:38: error: cannot find type 'URLRequest' in scope
25 | // MARK: - Public
26 |
27 | public func intercept(_ request: URLRequest) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
28 | var newRequest = request
29 |
/host/spi-builder-workspace/Sources/MicroClient/Interceptors/CacheControlInterceptor.swift:41:66: error: cannot find type 'URLRequest' in scope
39 | // MARK: - Public
40 |
41 | public func intercept(_ request: URLRequest) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
42 | var newRequest = request
43 | newRequest.setValue(policy.headerValue, forHTTPHeaderField: "Cache-Control")
/host/spi-builder-workspace/Sources/MicroClient/Interceptors/CacheControlInterceptor.swift:41:38: error: cannot find type 'URLRequest' in scope
39 | // MARK: - Public
40 |
41 | public func intercept(_ request: URLRequest) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
42 | var newRequest = request
43 | newRequest.setValue(policy.headerValue, forHTTPHeaderField: "Cache-Control")
/host/spi-builder-workspace/Sources/MicroClient/Interceptors/ContentTypeInterceptor.swift:26:66: error: cannot find type 'URLRequest' in scope
24 | // MARK: - Public
25 |
26 | public func intercept(_ request: URLRequest) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
27 | var newRequest = request
28 |
/host/spi-builder-workspace/Sources/MicroClient/Interceptors/ContentTypeInterceptor.swift:26:38: error: cannot find type 'URLRequest' in scope
24 | // MARK: - Public
25 |
26 | public func intercept(_ request: URLRequest) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
27 | var newRequest = request
28 |
[27/31] Compiling MicroClient ContentTypeInterceptor.swift
/host/spi-builder-workspace/Sources/MicroClient/Interceptors/BasicAuthInterceptor.swift:47:66: error: cannot find type 'URLRequest' in scope
45 | // MARK: - Public
46 |
47 | public func intercept(_ request: URLRequest) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
48 | var newRequest = request
49 |
/host/spi-builder-workspace/Sources/MicroClient/Interceptors/BasicAuthInterceptor.swift:47:38: error: cannot find type 'URLRequest' in scope
45 | // MARK: - Public
46 |
47 | public func intercept(_ request: URLRequest) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
48 | var newRequest = request
49 |
/host/spi-builder-workspace/Sources/MicroClient/NetworkRequestInterceptor.swift:14:59: error: cannot find type 'URLRequest' in scope
12 | /// - Returns: A potentially modified `URLRequest`.
13 | /// - Throws: An error if the interception process fails. Throwing an error will cancel the entire request.
14 | func intercept(_ request: URLRequest) async throws -> URLRequest
| `- error: cannot find type 'URLRequest' in scope
15 | }
16 |
/host/spi-builder-workspace/Sources/MicroClient/NetworkRequestInterceptor.swift:14:31: error: cannot find type 'URLRequest' in scope
12 | /// - Returns: A potentially modified `URLRequest`.
13 | /// - Throws: An error if the interception process fails. Throwing an error will cancel the entire request.
14 | func intercept(_ request: URLRequest) async throws -> URLRequest
| `- error: cannot find type 'URLRequest' in scope
15 | }
16 |
/host/spi-builder-workspace/Sources/MicroClient/Interceptors/BearerAuthorizationInterceptor.swift:27:66: error: cannot find type 'URLRequest' in scope
25 | // MARK: - Public
26 |
27 | public func intercept(_ request: URLRequest) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
28 | var newRequest = request
29 |
/host/spi-builder-workspace/Sources/MicroClient/Interceptors/BearerAuthorizationInterceptor.swift:27:38: error: cannot find type 'URLRequest' in scope
25 | // MARK: - Public
26 |
27 | public func intercept(_ request: URLRequest) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
28 | var newRequest = request
29 |
/host/spi-builder-workspace/Sources/MicroClient/Interceptors/CacheControlInterceptor.swift:41:66: error: cannot find type 'URLRequest' in scope
39 | // MARK: - Public
40 |
41 | public func intercept(_ request: URLRequest) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
42 | var newRequest = request
43 | newRequest.setValue(policy.headerValue, forHTTPHeaderField: "Cache-Control")
/host/spi-builder-workspace/Sources/MicroClient/Interceptors/CacheControlInterceptor.swift:41:38: error: cannot find type 'URLRequest' in scope
39 | // MARK: - Public
40 |
41 | public func intercept(_ request: URLRequest) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
42 | var newRequest = request
43 | newRequest.setValue(policy.headerValue, forHTTPHeaderField: "Cache-Control")
/host/spi-builder-workspace/Sources/MicroClient/Interceptors/ContentTypeInterceptor.swift:26:66: error: cannot find type 'URLRequest' in scope
24 | // MARK: - Public
25 |
26 | public func intercept(_ request: URLRequest) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
27 | var newRequest = request
28 |
/host/spi-builder-workspace/Sources/MicroClient/Interceptors/ContentTypeInterceptor.swift:26:38: error: cannot find type 'URLRequest' in scope
24 | // MARK: - Public
25 |
26 | public func intercept(_ request: URLRequest) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
27 | var newRequest = request
28 |
[28/31] Compiling MicroClient RequestIDInterceptor.swift
/host/spi-builder-workspace/Sources/MicroClient/Interceptors/RequestIDInterceptor.swift:26:66: error: cannot find type 'URLRequest' in scope
24 | // MARK: - Public
25 |
26 | public func intercept(_ request: URLRequest) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
27 | var newRequest = request
28 | let requestID = UUID().uuidString
/host/spi-builder-workspace/Sources/MicroClient/Interceptors/RequestIDInterceptor.swift:26:38: error: cannot find type 'URLRequest' in scope
24 | // MARK: - Public
25 |
26 | public func intercept(_ request: URLRequest) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
27 | var newRequest = request
28 | let requestID = UUID().uuidString
/host/spi-builder-workspace/Sources/MicroClient/NetworkRequestInterceptor.swift:14:59: error: cannot find type 'URLRequest' in scope
12 | /// - Returns: A potentially modified `URLRequest`.
13 | /// - Throws: An error if the interception process fails. Throwing an error will cancel the entire request.
14 | func intercept(_ request: URLRequest) async throws -> URLRequest
| `- error: cannot find type 'URLRequest' in scope
15 | }
16 |
/host/spi-builder-workspace/Sources/MicroClient/NetworkRequestInterceptor.swift:14:31: error: cannot find type 'URLRequest' in scope
12 | /// - Returns: A potentially modified `URLRequest`.
13 | /// - Throws: An error if the interception process fails. Throwing an error will cancel the entire request.
14 | func intercept(_ request: URLRequest) async throws -> URLRequest
| `- error: cannot find type 'URLRequest' in scope
15 | }
16 |
/host/spi-builder-workspace/Sources/MicroClient/Interceptors/TimeoutInterceptor.swift:25:66: error: cannot find type 'URLRequest' in scope
23 | // MARK: - Public
24 |
25 | public func intercept(_ request: URLRequest) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
26 | var newRequest = request
27 | newRequest.timeoutInterval = timeout
/host/spi-builder-workspace/Sources/MicroClient/Interceptors/TimeoutInterceptor.swift:25:38: error: cannot find type 'URLRequest' in scope
23 | // MARK: - Public
24 |
25 | public func intercept(_ request: URLRequest) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
26 | var newRequest = request
27 | newRequest.timeoutInterval = timeout
/host/spi-builder-workspace/Sources/MicroClient/Interceptors/UserAgentInterceptor.swift:33:66: error: cannot find type 'URLRequest' in scope
31 | // MARK: - Public
32 |
33 | public func intercept(_ request: URLRequest) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
34 | var newRequest = request
35 | newRequest.setValue(userAgent, forHTTPHeaderField: "User-Agent")
/host/spi-builder-workspace/Sources/MicroClient/Interceptors/UserAgentInterceptor.swift:33:38: error: cannot find type 'URLRequest' in scope
31 | // MARK: - Public
32 |
33 | public func intercept(_ request: URLRequest) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
34 | var newRequest = request
35 | newRequest.setValue(userAgent, forHTTPHeaderField: "User-Agent")
[29/31] Compiling MicroClient TimeoutInterceptor.swift
/host/spi-builder-workspace/Sources/MicroClient/Interceptors/RequestIDInterceptor.swift:26:66: error: cannot find type 'URLRequest' in scope
24 | // MARK: - Public
25 |
26 | public func intercept(_ request: URLRequest) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
27 | var newRequest = request
28 | let requestID = UUID().uuidString
/host/spi-builder-workspace/Sources/MicroClient/Interceptors/RequestIDInterceptor.swift:26:38: error: cannot find type 'URLRequest' in scope
24 | // MARK: - Public
25 |
26 | public func intercept(_ request: URLRequest) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
27 | var newRequest = request
28 | let requestID = UUID().uuidString
/host/spi-builder-workspace/Sources/MicroClient/NetworkRequestInterceptor.swift:14:59: error: cannot find type 'URLRequest' in scope
12 | /// - Returns: A potentially modified `URLRequest`.
13 | /// - Throws: An error if the interception process fails. Throwing an error will cancel the entire request.
14 | func intercept(_ request: URLRequest) async throws -> URLRequest
| `- error: cannot find type 'URLRequest' in scope
15 | }
16 |
/host/spi-builder-workspace/Sources/MicroClient/NetworkRequestInterceptor.swift:14:31: error: cannot find type 'URLRequest' in scope
12 | /// - Returns: A potentially modified `URLRequest`.
13 | /// - Throws: An error if the interception process fails. Throwing an error will cancel the entire request.
14 | func intercept(_ request: URLRequest) async throws -> URLRequest
| `- error: cannot find type 'URLRequest' in scope
15 | }
16 |
/host/spi-builder-workspace/Sources/MicroClient/Interceptors/TimeoutInterceptor.swift:25:66: error: cannot find type 'URLRequest' in scope
23 | // MARK: - Public
24 |
25 | public func intercept(_ request: URLRequest) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
26 | var newRequest = request
27 | newRequest.timeoutInterval = timeout
/host/spi-builder-workspace/Sources/MicroClient/Interceptors/TimeoutInterceptor.swift:25:38: error: cannot find type 'URLRequest' in scope
23 | // MARK: - Public
24 |
25 | public func intercept(_ request: URLRequest) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
26 | var newRequest = request
27 | newRequest.timeoutInterval = timeout
/host/spi-builder-workspace/Sources/MicroClient/Interceptors/UserAgentInterceptor.swift:33:66: error: cannot find type 'URLRequest' in scope
31 | // MARK: - Public
32 |
33 | public func intercept(_ request: URLRequest) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
34 | var newRequest = request
35 | newRequest.setValue(userAgent, forHTTPHeaderField: "User-Agent")
/host/spi-builder-workspace/Sources/MicroClient/Interceptors/UserAgentInterceptor.swift:33:38: error: cannot find type 'URLRequest' in scope
31 | // MARK: - Public
32 |
33 | public func intercept(_ request: URLRequest) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
34 | var newRequest = request
35 | newRequest.setValue(userAgent, forHTTPHeaderField: "User-Agent")
[30/31] Compiling MicroClient UserAgentInterceptor.swift
/host/spi-builder-workspace/Sources/MicroClient/Interceptors/RequestIDInterceptor.swift:26:66: error: cannot find type 'URLRequest' in scope
24 | // MARK: - Public
25 |
26 | public func intercept(_ request: URLRequest) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
27 | var newRequest = request
28 | let requestID = UUID().uuidString
/host/spi-builder-workspace/Sources/MicroClient/Interceptors/RequestIDInterceptor.swift:26:38: error: cannot find type 'URLRequest' in scope
24 | // MARK: - Public
25 |
26 | public func intercept(_ request: URLRequest) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
27 | var newRequest = request
28 | let requestID = UUID().uuidString
/host/spi-builder-workspace/Sources/MicroClient/NetworkRequestInterceptor.swift:14:59: error: cannot find type 'URLRequest' in scope
12 | /// - Returns: A potentially modified `URLRequest`.
13 | /// - Throws: An error if the interception process fails. Throwing an error will cancel the entire request.
14 | func intercept(_ request: URLRequest) async throws -> URLRequest
| `- error: cannot find type 'URLRequest' in scope
15 | }
16 |
/host/spi-builder-workspace/Sources/MicroClient/NetworkRequestInterceptor.swift:14:31: error: cannot find type 'URLRequest' in scope
12 | /// - Returns: A potentially modified `URLRequest`.
13 | /// - Throws: An error if the interception process fails. Throwing an error will cancel the entire request.
14 | func intercept(_ request: URLRequest) async throws -> URLRequest
| `- error: cannot find type 'URLRequest' in scope
15 | }
16 |
/host/spi-builder-workspace/Sources/MicroClient/Interceptors/TimeoutInterceptor.swift:25:66: error: cannot find type 'URLRequest' in scope
23 | // MARK: - Public
24 |
25 | public func intercept(_ request: URLRequest) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
26 | var newRequest = request
27 | newRequest.timeoutInterval = timeout
/host/spi-builder-workspace/Sources/MicroClient/Interceptors/TimeoutInterceptor.swift:25:38: error: cannot find type 'URLRequest' in scope
23 | // MARK: - Public
24 |
25 | public func intercept(_ request: URLRequest) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
26 | var newRequest = request
27 | newRequest.timeoutInterval = timeout
/host/spi-builder-workspace/Sources/MicroClient/Interceptors/UserAgentInterceptor.swift:33:66: error: cannot find type 'URLRequest' in scope
31 | // MARK: - Public
32 |
33 | public func intercept(_ request: URLRequest) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
34 | var newRequest = request
35 | newRequest.setValue(userAgent, forHTTPHeaderField: "User-Agent")
/host/spi-builder-workspace/Sources/MicroClient/Interceptors/UserAgentInterceptor.swift:33:38: error: cannot find type 'URLRequest' in scope
31 | // MARK: - Public
32 |
33 | public func intercept(_ request: URLRequest) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
34 | var newRequest = request
35 | newRequest.setValue(userAgent, forHTTPHeaderField: "User-Agent")
[31/31] Compiling MicroClient StdoutLogger.swift
/host/spi-builder-workspace/Sources/MicroClient/Interceptors/RequestIDInterceptor.swift:26:66: error: cannot find type 'URLRequest' in scope
24 | // MARK: - Public
25 |
26 | public func intercept(_ request: URLRequest) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
27 | var newRequest = request
28 | let requestID = UUID().uuidString
/host/spi-builder-workspace/Sources/MicroClient/Interceptors/RequestIDInterceptor.swift:26:38: error: cannot find type 'URLRequest' in scope
24 | // MARK: - Public
25 |
26 | public func intercept(_ request: URLRequest) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
27 | var newRequest = request
28 | let requestID = UUID().uuidString
/host/spi-builder-workspace/Sources/MicroClient/NetworkRequestInterceptor.swift:14:59: error: cannot find type 'URLRequest' in scope
12 | /// - Returns: A potentially modified `URLRequest`.
13 | /// - Throws: An error if the interception process fails. Throwing an error will cancel the entire request.
14 | func intercept(_ request: URLRequest) async throws -> URLRequest
| `- error: cannot find type 'URLRequest' in scope
15 | }
16 |
/host/spi-builder-workspace/Sources/MicroClient/NetworkRequestInterceptor.swift:14:31: error: cannot find type 'URLRequest' in scope
12 | /// - Returns: A potentially modified `URLRequest`.
13 | /// - Throws: An error if the interception process fails. Throwing an error will cancel the entire request.
14 | func intercept(_ request: URLRequest) async throws -> URLRequest
| `- error: cannot find type 'URLRequest' in scope
15 | }
16 |
/host/spi-builder-workspace/Sources/MicroClient/Interceptors/TimeoutInterceptor.swift:25:66: error: cannot find type 'URLRequest' in scope
23 | // MARK: - Public
24 |
25 | public func intercept(_ request: URLRequest) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
26 | var newRequest = request
27 | newRequest.timeoutInterval = timeout
/host/spi-builder-workspace/Sources/MicroClient/Interceptors/TimeoutInterceptor.swift:25:38: error: cannot find type 'URLRequest' in scope
23 | // MARK: - Public
24 |
25 | public func intercept(_ request: URLRequest) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
26 | var newRequest = request
27 | newRequest.timeoutInterval = timeout
/host/spi-builder-workspace/Sources/MicroClient/Interceptors/UserAgentInterceptor.swift:33:66: error: cannot find type 'URLRequest' in scope
31 | // MARK: - Public
32 |
33 | public func intercept(_ request: URLRequest) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
34 | var newRequest = request
35 | newRequest.setValue(userAgent, forHTTPHeaderField: "User-Agent")
/host/spi-builder-workspace/Sources/MicroClient/Interceptors/UserAgentInterceptor.swift:33:38: error: cannot find type 'URLRequest' in scope
31 | // MARK: - Public
32 |
33 | public func intercept(_ request: URLRequest) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
34 | var newRequest = request
35 | newRequest.setValue(userAgent, forHTTPHeaderField: "User-Agent")
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-3":/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:99ea6d26ace67c023f359493a2ac553a612b92a7f2dee009657225f46f43aa0e
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/27] Compiling MicroClient RequestIDInterceptor.swift
/host/spi-builder-workspace/Sources/MicroClient/Interceptors/RequestIDInterceptor.swift:26:66: error: cannot find type 'URLRequest' in scope
24 | // MARK: - Public
25 |
26 | public func intercept(_ request: URLRequest) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
27 | var newRequest = request
28 | let requestID = UUID().uuidString
/host/spi-builder-workspace/Sources/MicroClient/Interceptors/RequestIDInterceptor.swift:26:38: error: cannot find type 'URLRequest' in scope
24 | // MARK: - Public
25 |
26 | public func intercept(_ request: URLRequest) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
27 | var newRequest = request
28 | let requestID = UUID().uuidString
/host/spi-builder-workspace/Sources/MicroClient/NetworkRequestInterceptor.swift:14:59: error: cannot find type 'URLRequest' in scope
12 | /// - Returns: A potentially modified `URLRequest`.
13 | /// - Throws: An error if the interception process fails. Throwing an error will cancel the entire request.
14 | func intercept(_ request: URLRequest) async throws -> URLRequest
| `- error: cannot find type 'URLRequest' in scope
15 | }
16 |
/host/spi-builder-workspace/Sources/MicroClient/NetworkRequestInterceptor.swift:14:31: error: cannot find type 'URLRequest' in scope
12 | /// - Returns: A potentially modified `URLRequest`.
13 | /// - Throws: An error if the interception process fails. Throwing an error will cancel the entire request.
14 | func intercept(_ request: URLRequest) async throws -> URLRequest
| `- error: cannot find type 'URLRequest' in scope
15 | }
16 |
/host/spi-builder-workspace/Sources/MicroClient/Interceptors/TimeoutInterceptor.swift:25:66: error: cannot find type 'URLRequest' in scope
23 | // MARK: - Public
24 |
25 | public func intercept(_ request: URLRequest) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
26 | var newRequest = request
27 | newRequest.timeoutInterval = timeout
/host/spi-builder-workspace/Sources/MicroClient/Interceptors/TimeoutInterceptor.swift:25:38: error: cannot find type 'URLRequest' in scope
23 | // MARK: - Public
24 |
25 | public func intercept(_ request: URLRequest) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
26 | var newRequest = request
27 | newRequest.timeoutInterval = timeout
/host/spi-builder-workspace/Sources/MicroClient/Interceptors/UserAgentInterceptor.swift:33:66: error: cannot find type 'URLRequest' in scope
31 | // MARK: - Public
32 |
33 | public func intercept(_ request: URLRequest) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
34 | var newRequest = request
35 | newRequest.setValue(userAgent, forHTTPHeaderField: "User-Agent")
/host/spi-builder-workspace/Sources/MicroClient/Interceptors/UserAgentInterceptor.swift:33:38: error: cannot find type 'URLRequest' in scope
31 | // MARK: - Public
32 |
33 | public func intercept(_ request: URLRequest) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
34 | var newRequest = request
35 | newRequest.setValue(userAgent, forHTTPHeaderField: "User-Agent")
[3/27] Compiling MicroClient TimeoutInterceptor.swift
/host/spi-builder-workspace/Sources/MicroClient/Interceptors/RequestIDInterceptor.swift:26:66: error: cannot find type 'URLRequest' in scope
24 | // MARK: - Public
25 |
26 | public func intercept(_ request: URLRequest) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
27 | var newRequest = request
28 | let requestID = UUID().uuidString
/host/spi-builder-workspace/Sources/MicroClient/Interceptors/RequestIDInterceptor.swift:26:38: error: cannot find type 'URLRequest' in scope
24 | // MARK: - Public
25 |
26 | public func intercept(_ request: URLRequest) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
27 | var newRequest = request
28 | let requestID = UUID().uuidString
/host/spi-builder-workspace/Sources/MicroClient/NetworkRequestInterceptor.swift:14:59: error: cannot find type 'URLRequest' in scope
12 | /// - Returns: A potentially modified `URLRequest`.
13 | /// - Throws: An error if the interception process fails. Throwing an error will cancel the entire request.
14 | func intercept(_ request: URLRequest) async throws -> URLRequest
| `- error: cannot find type 'URLRequest' in scope
15 | }
16 |
/host/spi-builder-workspace/Sources/MicroClient/NetworkRequestInterceptor.swift:14:31: error: cannot find type 'URLRequest' in scope
12 | /// - Returns: A potentially modified `URLRequest`.
13 | /// - Throws: An error if the interception process fails. Throwing an error will cancel the entire request.
14 | func intercept(_ request: URLRequest) async throws -> URLRequest
| `- error: cannot find type 'URLRequest' in scope
15 | }
16 |
/host/spi-builder-workspace/Sources/MicroClient/Interceptors/TimeoutInterceptor.swift:25:66: error: cannot find type 'URLRequest' in scope
23 | // MARK: - Public
24 |
25 | public func intercept(_ request: URLRequest) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
26 | var newRequest = request
27 | newRequest.timeoutInterval = timeout
/host/spi-builder-workspace/Sources/MicroClient/Interceptors/TimeoutInterceptor.swift:25:38: error: cannot find type 'URLRequest' in scope
23 | // MARK: - Public
24 |
25 | public func intercept(_ request: URLRequest) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
26 | var newRequest = request
27 | newRequest.timeoutInterval = timeout
/host/spi-builder-workspace/Sources/MicroClient/Interceptors/UserAgentInterceptor.swift:33:66: error: cannot find type 'URLRequest' in scope
31 | // MARK: - Public
32 |
33 | public func intercept(_ request: URLRequest) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
34 | var newRequest = request
35 | newRequest.setValue(userAgent, forHTTPHeaderField: "User-Agent")
/host/spi-builder-workspace/Sources/MicroClient/Interceptors/UserAgentInterceptor.swift:33:38: error: cannot find type 'URLRequest' in scope
31 | // MARK: - Public
32 |
33 | public func intercept(_ request: URLRequest) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
34 | var newRequest = request
35 | newRequest.setValue(userAgent, forHTTPHeaderField: "User-Agent")
[4/27] Compiling MicroClient UserAgentInterceptor.swift
/host/spi-builder-workspace/Sources/MicroClient/Interceptors/RequestIDInterceptor.swift:26:66: error: cannot find type 'URLRequest' in scope
24 | // MARK: - Public
25 |
26 | public func intercept(_ request: URLRequest) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
27 | var newRequest = request
28 | let requestID = UUID().uuidString
/host/spi-builder-workspace/Sources/MicroClient/Interceptors/RequestIDInterceptor.swift:26:38: error: cannot find type 'URLRequest' in scope
24 | // MARK: - Public
25 |
26 | public func intercept(_ request: URLRequest) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
27 | var newRequest = request
28 | let requestID = UUID().uuidString
/host/spi-builder-workspace/Sources/MicroClient/NetworkRequestInterceptor.swift:14:59: error: cannot find type 'URLRequest' in scope
12 | /// - Returns: A potentially modified `URLRequest`.
13 | /// - Throws: An error if the interception process fails. Throwing an error will cancel the entire request.
14 | func intercept(_ request: URLRequest) async throws -> URLRequest
| `- error: cannot find type 'URLRequest' in scope
15 | }
16 |
/host/spi-builder-workspace/Sources/MicroClient/NetworkRequestInterceptor.swift:14:31: error: cannot find type 'URLRequest' in scope
12 | /// - Returns: A potentially modified `URLRequest`.
13 | /// - Throws: An error if the interception process fails. Throwing an error will cancel the entire request.
14 | func intercept(_ request: URLRequest) async throws -> URLRequest
| `- error: cannot find type 'URLRequest' in scope
15 | }
16 |
/host/spi-builder-workspace/Sources/MicroClient/Interceptors/TimeoutInterceptor.swift:25:66: error: cannot find type 'URLRequest' in scope
23 | // MARK: - Public
24 |
25 | public func intercept(_ request: URLRequest) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
26 | var newRequest = request
27 | newRequest.timeoutInterval = timeout
/host/spi-builder-workspace/Sources/MicroClient/Interceptors/TimeoutInterceptor.swift:25:38: error: cannot find type 'URLRequest' in scope
23 | // MARK: - Public
24 |
25 | public func intercept(_ request: URLRequest) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
26 | var newRequest = request
27 | newRequest.timeoutInterval = timeout
/host/spi-builder-workspace/Sources/MicroClient/Interceptors/UserAgentInterceptor.swift:33:66: error: cannot find type 'URLRequest' in scope
31 | // MARK: - Public
32 |
33 | public func intercept(_ request: URLRequest) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
34 | var newRequest = request
35 | newRequest.setValue(userAgent, forHTTPHeaderField: "User-Agent")
/host/spi-builder-workspace/Sources/MicroClient/Interceptors/UserAgentInterceptor.swift:33:38: error: cannot find type 'URLRequest' in scope
31 | // MARK: - Public
32 |
33 | public func intercept(_ request: URLRequest) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
34 | var newRequest = request
35 | newRequest.setValue(userAgent, forHTTPHeaderField: "User-Agent")
[5/27] Compiling MicroClient StdoutLogger.swift
/host/spi-builder-workspace/Sources/MicroClient/Interceptors/RequestIDInterceptor.swift:26:66: error: cannot find type 'URLRequest' in scope
24 | // MARK: - Public
25 |
26 | public func intercept(_ request: URLRequest) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
27 | var newRequest = request
28 | let requestID = UUID().uuidString
/host/spi-builder-workspace/Sources/MicroClient/Interceptors/RequestIDInterceptor.swift:26:38: error: cannot find type 'URLRequest' in scope
24 | // MARK: - Public
25 |
26 | public func intercept(_ request: URLRequest) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
27 | var newRequest = request
28 | let requestID = UUID().uuidString
/host/spi-builder-workspace/Sources/MicroClient/NetworkRequestInterceptor.swift:14:59: error: cannot find type 'URLRequest' in scope
12 | /// - Returns: A potentially modified `URLRequest`.
13 | /// - Throws: An error if the interception process fails. Throwing an error will cancel the entire request.
14 | func intercept(_ request: URLRequest) async throws -> URLRequest
| `- error: cannot find type 'URLRequest' in scope
15 | }
16 |
/host/spi-builder-workspace/Sources/MicroClient/NetworkRequestInterceptor.swift:14:31: error: cannot find type 'URLRequest' in scope
12 | /// - Returns: A potentially modified `URLRequest`.
13 | /// - Throws: An error if the interception process fails. Throwing an error will cancel the entire request.
14 | func intercept(_ request: URLRequest) async throws -> URLRequest
| `- error: cannot find type 'URLRequest' in scope
15 | }
16 |
/host/spi-builder-workspace/Sources/MicroClient/Interceptors/TimeoutInterceptor.swift:25:66: error: cannot find type 'URLRequest' in scope
23 | // MARK: - Public
24 |
25 | public func intercept(_ request: URLRequest) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
26 | var newRequest = request
27 | newRequest.timeoutInterval = timeout
/host/spi-builder-workspace/Sources/MicroClient/Interceptors/TimeoutInterceptor.swift:25:38: error: cannot find type 'URLRequest' in scope
23 | // MARK: - Public
24 |
25 | public func intercept(_ request: URLRequest) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
26 | var newRequest = request
27 | newRequest.timeoutInterval = timeout
/host/spi-builder-workspace/Sources/MicroClient/Interceptors/UserAgentInterceptor.swift:33:66: error: cannot find type 'URLRequest' in scope
31 | // MARK: - Public
32 |
33 | public func intercept(_ request: URLRequest) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
34 | var newRequest = request
35 | newRequest.setValue(userAgent, forHTTPHeaderField: "User-Agent")
/host/spi-builder-workspace/Sources/MicroClient/Interceptors/UserAgentInterceptor.swift:33:38: error: cannot find type 'URLRequest' in scope
31 | // MARK: - Public
32 |
33 | public func intercept(_ request: URLRequest) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
34 | var newRequest = request
35 | newRequest.setValue(userAgent, forHTTPHeaderField: "User-Agent")
[6/27] Compiling MicroClient NetworkRequestInterceptor.swift
/host/spi-builder-workspace/Sources/MicroClient/NetworkRequestInterceptor.swift:14:59: error: cannot find type 'URLRequest' in scope
12 | /// - Returns: A potentially modified `URLRequest`.
13 | /// - Throws: An error if the interception process fails. Throwing an error will cancel the entire request.
14 | func intercept(_ request: URLRequest) async throws -> URLRequest
| `- error: cannot find type 'URLRequest' in scope
15 | }
16 |
/host/spi-builder-workspace/Sources/MicroClient/NetworkRequestInterceptor.swift:14:31: error: cannot find type 'URLRequest' in scope
12 | /// - Returns: A potentially modified `URLRequest`.
13 | /// - Throws: An error if the interception process fails. Throwing an error will cancel the entire request.
14 | func intercept(_ request: URLRequest) async throws -> URLRequest
| `- error: cannot find type 'URLRequest' in scope
15 | }
16 |
/host/spi-builder-workspace/Sources/MicroClient/NetworkResponse.swift:13:26: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
11 |
12 | /// The network response.
13 | public let response: URLResponse
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
14 |
15 | // MARK: - Life cycle
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/MicroClient/NetworkResponse.swift:19:19: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
17 | public init(
18 | value: ResponseModel,
19 | response: URLResponse
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
20 | ) {
21 | self.value = value
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/MicroClient/NetworkResponse.swift:13:16: error: stored property 'response' of 'Sendable'-conforming generic struct 'NetworkResponse' has non-sendable type 'URLResponse' (aka 'AnyObject')
11 |
12 | /// The network response.
13 | public let response: URLResponse
| `- error: stored property 'response' of 'Sendable'-conforming generic struct 'NetworkResponse' has non-sendable type 'URLResponse' (aka 'AnyObject')
14 |
15 | // MARK: - Life cycle
[7/27] Compiling MicroClient NetworkResponse.swift
/host/spi-builder-workspace/Sources/MicroClient/NetworkRequestInterceptor.swift:14:59: error: cannot find type 'URLRequest' in scope
12 | /// - Returns: A potentially modified `URLRequest`.
13 | /// - Throws: An error if the interception process fails. Throwing an error will cancel the entire request.
14 | func intercept(_ request: URLRequest) async throws -> URLRequest
| `- error: cannot find type 'URLRequest' in scope
15 | }
16 |
/host/spi-builder-workspace/Sources/MicroClient/NetworkRequestInterceptor.swift:14:31: error: cannot find type 'URLRequest' in scope
12 | /// - Returns: A potentially modified `URLRequest`.
13 | /// - Throws: An error if the interception process fails. Throwing an error will cancel the entire request.
14 | func intercept(_ request: URLRequest) async throws -> URLRequest
| `- error: cannot find type 'URLRequest' in scope
15 | }
16 |
/host/spi-builder-workspace/Sources/MicroClient/NetworkResponse.swift:13:26: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
11 |
12 | /// The network response.
13 | public let response: URLResponse
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
14 |
15 | // MARK: - Life cycle
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/MicroClient/NetworkResponse.swift:19:19: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
17 | public init(
18 | value: ResponseModel,
19 | response: URLResponse
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
20 | ) {
21 | self.value = value
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/MicroClient/NetworkResponse.swift:13:16: error: stored property 'response' of 'Sendable'-conforming generic struct 'NetworkResponse' has non-sendable type 'URLResponse' (aka 'AnyObject')
11 |
12 | /// The network response.
13 | public let response: URLResponse
| `- error: stored property 'response' of 'Sendable'-conforming generic struct 'NetworkResponse' has non-sendable type 'URLResponse' (aka 'AnyObject')
14 |
15 | // MARK: - Life cycle
[8/27] Compiling MicroClient VoidRequest.swift
/host/spi-builder-workspace/Sources/MicroClient/NetworkRequestInterceptor.swift:14:59: error: cannot find type 'URLRequest' in scope
12 | /// - Returns: A potentially modified `URLRequest`.
13 | /// - Throws: An error if the interception process fails. Throwing an error will cancel the entire request.
14 | func intercept(_ request: URLRequest) async throws -> URLRequest
| `- error: cannot find type 'URLRequest' in scope
15 | }
16 |
/host/spi-builder-workspace/Sources/MicroClient/NetworkRequestInterceptor.swift:14:31: error: cannot find type 'URLRequest' in scope
12 | /// - Returns: A potentially modified `URLRequest`.
13 | /// - Throws: An error if the interception process fails. Throwing an error will cancel the entire request.
14 | func intercept(_ request: URLRequest) async throws -> URLRequest
| `- error: cannot find type 'URLRequest' in scope
15 | }
16 |
/host/spi-builder-workspace/Sources/MicroClient/NetworkResponse.swift:13:26: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
11 |
12 | /// The network response.
13 | public let response: URLResponse
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
14 |
15 | // MARK: - Life cycle
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/MicroClient/NetworkResponse.swift:19:19: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
17 | public init(
18 | value: ResponseModel,
19 | response: URLResponse
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
20 | ) {
21 | self.value = value
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/MicroClient/NetworkResponse.swift:13:16: error: stored property 'response' of 'Sendable'-conforming generic struct 'NetworkResponse' has non-sendable type 'URLResponse' (aka 'AnyObject')
11 |
12 | /// The network response.
13 | public let response: URLResponse
| `- error: stored property 'response' of 'Sendable'-conforming generic struct 'NetworkResponse' has non-sendable type 'URLResponse' (aka 'AnyObject')
14 |
15 | // MARK: - Life cycle
[9/30] Compiling MicroClient BasicAuthInterceptor.swift
/host/spi-builder-workspace/Sources/MicroClient/Interceptors/BasicAuthInterceptor.swift:47:66: error: cannot find type 'URLRequest' in scope
45 | // MARK: - Public
46 |
47 | public func intercept(_ request: URLRequest) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
48 | var newRequest = request
49 |
/host/spi-builder-workspace/Sources/MicroClient/Interceptors/BasicAuthInterceptor.swift:47:38: error: cannot find type 'URLRequest' in scope
45 | // MARK: - Public
46 |
47 | public func intercept(_ request: URLRequest) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
48 | var newRequest = request
49 |
/host/spi-builder-workspace/Sources/MicroClient/NetworkRequestInterceptor.swift:14:59: error: cannot find type 'URLRequest' in scope
12 | /// - Returns: A potentially modified `URLRequest`.
13 | /// - Throws: An error if the interception process fails. Throwing an error will cancel the entire request.
14 | func intercept(_ request: URLRequest) async throws -> URLRequest
| `- error: cannot find type 'URLRequest' in scope
15 | }
16 |
/host/spi-builder-workspace/Sources/MicroClient/NetworkRequestInterceptor.swift:14:31: error: cannot find type 'URLRequest' in scope
12 | /// - Returns: A potentially modified `URLRequest`.
13 | /// - Throws: An error if the interception process fails. Throwing an error will cancel the entire request.
14 | func intercept(_ request: URLRequest) async throws -> URLRequest
| `- error: cannot find type 'URLRequest' in scope
15 | }
16 |
/host/spi-builder-workspace/Sources/MicroClient/Interceptors/BearerAuthorizationInterceptor.swift:27:66: error: cannot find type 'URLRequest' in scope
25 | // MARK: - Public
26 |
27 | public func intercept(_ request: URLRequest) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
28 | var newRequest = request
29 |
/host/spi-builder-workspace/Sources/MicroClient/Interceptors/BearerAuthorizationInterceptor.swift:27:38: error: cannot find type 'URLRequest' in scope
25 | // MARK: - Public
26 |
27 | public func intercept(_ request: URLRequest) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
28 | var newRequest = request
29 |
/host/spi-builder-workspace/Sources/MicroClient/Interceptors/CacheControlInterceptor.swift:41:66: error: cannot find type 'URLRequest' in scope
39 | // MARK: - Public
40 |
41 | public func intercept(_ request: URLRequest) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
42 | var newRequest = request
43 | newRequest.setValue(policy.headerValue, forHTTPHeaderField: "Cache-Control")
/host/spi-builder-workspace/Sources/MicroClient/Interceptors/CacheControlInterceptor.swift:41:38: error: cannot find type 'URLRequest' in scope
39 | // MARK: - Public
40 |
41 | public func intercept(_ request: URLRequest) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
42 | var newRequest = request
43 | newRequest.setValue(policy.headerValue, forHTTPHeaderField: "Cache-Control")
/host/spi-builder-workspace/Sources/MicroClient/Interceptors/ContentTypeInterceptor.swift:26:66: error: cannot find type 'URLRequest' in scope
24 | // MARK: - Public
25 |
26 | public func intercept(_ request: URLRequest) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
27 | var newRequest = request
28 |
/host/spi-builder-workspace/Sources/MicroClient/Interceptors/ContentTypeInterceptor.swift:26:38: error: cannot find type 'URLRequest' in scope
24 | // MARK: - Public
25 |
26 | public func intercept(_ request: URLRequest) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
27 | var newRequest = request
28 |
[10/30] Compiling MicroClient BearerAuthorizationInterceptor.swift
/host/spi-builder-workspace/Sources/MicroClient/Interceptors/BasicAuthInterceptor.swift:47:66: error: cannot find type 'URLRequest' in scope
45 | // MARK: - Public
46 |
47 | public func intercept(_ request: URLRequest) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
48 | var newRequest = request
49 |
/host/spi-builder-workspace/Sources/MicroClient/Interceptors/BasicAuthInterceptor.swift:47:38: error: cannot find type 'URLRequest' in scope
45 | // MARK: - Public
46 |
47 | public func intercept(_ request: URLRequest) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
48 | var newRequest = request
49 |
/host/spi-builder-workspace/Sources/MicroClient/NetworkRequestInterceptor.swift:14:59: error: cannot find type 'URLRequest' in scope
12 | /// - Returns: A potentially modified `URLRequest`.
13 | /// - Throws: An error if the interception process fails. Throwing an error will cancel the entire request.
14 | func intercept(_ request: URLRequest) async throws -> URLRequest
| `- error: cannot find type 'URLRequest' in scope
15 | }
16 |
/host/spi-builder-workspace/Sources/MicroClient/NetworkRequestInterceptor.swift:14:31: error: cannot find type 'URLRequest' in scope
12 | /// - Returns: A potentially modified `URLRequest`.
13 | /// - Throws: An error if the interception process fails. Throwing an error will cancel the entire request.
14 | func intercept(_ request: URLRequest) async throws -> URLRequest
| `- error: cannot find type 'URLRequest' in scope
15 | }
16 |
/host/spi-builder-workspace/Sources/MicroClient/Interceptors/BearerAuthorizationInterceptor.swift:27:66: error: cannot find type 'URLRequest' in scope
25 | // MARK: - Public
26 |
27 | public func intercept(_ request: URLRequest) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
28 | var newRequest = request
29 |
/host/spi-builder-workspace/Sources/MicroClient/Interceptors/BearerAuthorizationInterceptor.swift:27:38: error: cannot find type 'URLRequest' in scope
25 | // MARK: - Public
26 |
27 | public func intercept(_ request: URLRequest) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
28 | var newRequest = request
29 |
/host/spi-builder-workspace/Sources/MicroClient/Interceptors/CacheControlInterceptor.swift:41:66: error: cannot find type 'URLRequest' in scope
39 | // MARK: - Public
40 |
41 | public func intercept(_ request: URLRequest) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
42 | var newRequest = request
43 | newRequest.setValue(policy.headerValue, forHTTPHeaderField: "Cache-Control")
/host/spi-builder-workspace/Sources/MicroClient/Interceptors/CacheControlInterceptor.swift:41:38: error: cannot find type 'URLRequest' in scope
39 | // MARK: - Public
40 |
41 | public func intercept(_ request: URLRequest) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
42 | var newRequest = request
43 | newRequest.setValue(policy.headerValue, forHTTPHeaderField: "Cache-Control")
/host/spi-builder-workspace/Sources/MicroClient/Interceptors/ContentTypeInterceptor.swift:26:66: error: cannot find type 'URLRequest' in scope
24 | // MARK: - Public
25 |
26 | public func intercept(_ request: URLRequest) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
27 | var newRequest = request
28 |
/host/spi-builder-workspace/Sources/MicroClient/Interceptors/ContentTypeInterceptor.swift:26:38: error: cannot find type 'URLRequest' in scope
24 | // MARK: - Public
25 |
26 | public func intercept(_ request: URLRequest) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
27 | var newRequest = request
28 |
[11/30] Compiling MicroClient CacheControlInterceptor.swift
/host/spi-builder-workspace/Sources/MicroClient/Interceptors/BasicAuthInterceptor.swift:47:66: error: cannot find type 'URLRequest' in scope
45 | // MARK: - Public
46 |
47 | public func intercept(_ request: URLRequest) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
48 | var newRequest = request
49 |
/host/spi-builder-workspace/Sources/MicroClient/Interceptors/BasicAuthInterceptor.swift:47:38: error: cannot find type 'URLRequest' in scope
45 | // MARK: - Public
46 |
47 | public func intercept(_ request: URLRequest) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
48 | var newRequest = request
49 |
/host/spi-builder-workspace/Sources/MicroClient/NetworkRequestInterceptor.swift:14:59: error: cannot find type 'URLRequest' in scope
12 | /// - Returns: A potentially modified `URLRequest`.
13 | /// - Throws: An error if the interception process fails. Throwing an error will cancel the entire request.
14 | func intercept(_ request: URLRequest) async throws -> URLRequest
| `- error: cannot find type 'URLRequest' in scope
15 | }
16 |
/host/spi-builder-workspace/Sources/MicroClient/NetworkRequestInterceptor.swift:14:31: error: cannot find type 'URLRequest' in scope
12 | /// - Returns: A potentially modified `URLRequest`.
13 | /// - Throws: An error if the interception process fails. Throwing an error will cancel the entire request.
14 | func intercept(_ request: URLRequest) async throws -> URLRequest
| `- error: cannot find type 'URLRequest' in scope
15 | }
16 |
/host/spi-builder-workspace/Sources/MicroClient/Interceptors/BearerAuthorizationInterceptor.swift:27:66: error: cannot find type 'URLRequest' in scope
25 | // MARK: - Public
26 |
27 | public func intercept(_ request: URLRequest) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
28 | var newRequest = request
29 |
/host/spi-builder-workspace/Sources/MicroClient/Interceptors/BearerAuthorizationInterceptor.swift:27:38: error: cannot find type 'URLRequest' in scope
25 | // MARK: - Public
26 |
27 | public func intercept(_ request: URLRequest) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
28 | var newRequest = request
29 |
/host/spi-builder-workspace/Sources/MicroClient/Interceptors/CacheControlInterceptor.swift:41:66: error: cannot find type 'URLRequest' in scope
39 | // MARK: - Public
40 |
41 | public func intercept(_ request: URLRequest) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
42 | var newRequest = request
43 | newRequest.setValue(policy.headerValue, forHTTPHeaderField: "Cache-Control")
/host/spi-builder-workspace/Sources/MicroClient/Interceptors/CacheControlInterceptor.swift:41:38: error: cannot find type 'URLRequest' in scope
39 | // MARK: - Public
40 |
41 | public func intercept(_ request: URLRequest) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
42 | var newRequest = request
43 | newRequest.setValue(policy.headerValue, forHTTPHeaderField: "Cache-Control")
/host/spi-builder-workspace/Sources/MicroClient/Interceptors/ContentTypeInterceptor.swift:26:66: error: cannot find type 'URLRequest' in scope
24 | // MARK: - Public
25 |
26 | public func intercept(_ request: URLRequest) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
27 | var newRequest = request
28 |
/host/spi-builder-workspace/Sources/MicroClient/Interceptors/ContentTypeInterceptor.swift:26:38: error: cannot find type 'URLRequest' in scope
24 | // MARK: - Public
25 |
26 | public func intercept(_ request: URLRequest) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
27 | var newRequest = request
28 |
[12/30] Compiling MicroClient ContentTypeInterceptor.swift
/host/spi-builder-workspace/Sources/MicroClient/Interceptors/BasicAuthInterceptor.swift:47:66: error: cannot find type 'URLRequest' in scope
45 | // MARK: - Public
46 |
47 | public func intercept(_ request: URLRequest) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
48 | var newRequest = request
49 |
/host/spi-builder-workspace/Sources/MicroClient/Interceptors/BasicAuthInterceptor.swift:47:38: error: cannot find type 'URLRequest' in scope
45 | // MARK: - Public
46 |
47 | public func intercept(_ request: URLRequest) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
48 | var newRequest = request
49 |
/host/spi-builder-workspace/Sources/MicroClient/NetworkRequestInterceptor.swift:14:59: error: cannot find type 'URLRequest' in scope
12 | /// - Returns: A potentially modified `URLRequest`.
13 | /// - Throws: An error if the interception process fails. Throwing an error will cancel the entire request.
14 | func intercept(_ request: URLRequest) async throws -> URLRequest
| `- error: cannot find type 'URLRequest' in scope
15 | }
16 |
/host/spi-builder-workspace/Sources/MicroClient/NetworkRequestInterceptor.swift:14:31: error: cannot find type 'URLRequest' in scope
12 | /// - Returns: A potentially modified `URLRequest`.
13 | /// - Throws: An error if the interception process fails. Throwing an error will cancel the entire request.
14 | func intercept(_ request: URLRequest) async throws -> URLRequest
| `- error: cannot find type 'URLRequest' in scope
15 | }
16 |
/host/spi-builder-workspace/Sources/MicroClient/Interceptors/BearerAuthorizationInterceptor.swift:27:66: error: cannot find type 'URLRequest' in scope
25 | // MARK: - Public
26 |
27 | public func intercept(_ request: URLRequest) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
28 | var newRequest = request
29 |
/host/spi-builder-workspace/Sources/MicroClient/Interceptors/BearerAuthorizationInterceptor.swift:27:38: error: cannot find type 'URLRequest' in scope
25 | // MARK: - Public
26 |
27 | public func intercept(_ request: URLRequest) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
28 | var newRequest = request
29 |
/host/spi-builder-workspace/Sources/MicroClient/Interceptors/CacheControlInterceptor.swift:41:66: error: cannot find type 'URLRequest' in scope
39 | // MARK: - Public
40 |
41 | public func intercept(_ request: URLRequest) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
42 | var newRequest = request
43 | newRequest.setValue(policy.headerValue, forHTTPHeaderField: "Cache-Control")
/host/spi-builder-workspace/Sources/MicroClient/Interceptors/CacheControlInterceptor.swift:41:38: error: cannot find type 'URLRequest' in scope
39 | // MARK: - Public
40 |
41 | public func intercept(_ request: URLRequest) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
42 | var newRequest = request
43 | newRequest.setValue(policy.headerValue, forHTTPHeaderField: "Cache-Control")
/host/spi-builder-workspace/Sources/MicroClient/Interceptors/ContentTypeInterceptor.swift:26:66: error: cannot find type 'URLRequest' in scope
24 | // MARK: - Public
25 |
26 | public func intercept(_ request: URLRequest) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
27 | var newRequest = request
28 |
/host/spi-builder-workspace/Sources/MicroClient/Interceptors/ContentTypeInterceptor.swift:26:38: error: cannot find type 'URLRequest' in scope
24 | // MARK: - Public
25 |
26 | public func intercept(_ request: URLRequest) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
27 | var newRequest = request
28 |
error: emit-module command failed with exit code 1 (use -v to see invocation)
[13/30] Emitting module MicroClient
/host/spi-builder-workspace/Sources/MicroClient/Extensions/URLRequest.swift:3:11: error: cannot find type 'URLRequest' in scope
1 | import Foundation
2 |
3 | extension URLRequest {
| `- error: cannot find type 'URLRequest' in scope
4 |
5 | static func makeURLRequest<RequestModel, ResponseModel>(
/host/spi-builder-workspace/Sources/MicroClient/Extensions/URLResponse.swift:3:8: error: non-nominal type 'URLResponse' (aka 'AnyObject') cannot be extended
1 | import Foundation
2 |
3 | public extension URLResponse {
| `- error: non-nominal type 'URLResponse' (aka 'AnyObject') cannot be extended
4 |
5 | /// Returns the HTTP Header value for "Location". Default: `nil`.
/host/spi-builder-workspace/Sources/MicroClient/Extensions/URLSessionProtocol.swift:12:22: error: cannot find type 'URLRequest' in scope
10 | /// - Returns: A tuple containing the response data and URLResponse.
11 | func data(
12 | for request: URLRequest,
| `- error: cannot find type 'URLRequest' in scope
13 | delegate: URLSessionTaskDelegate?
14 | ) async throws -> (Data, URLResponse)
/host/spi-builder-workspace/Sources/MicroClient/Extensions/URLSessionProtocol.swift:13:19: error: cannot find type 'URLSessionTaskDelegate' in scope
11 | func data(
12 | for request: URLRequest,
13 | delegate: URLSessionTaskDelegate?
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
14 | ) async throws -> (Data, URLResponse)
15 | }
/host/spi-builder-workspace/Sources/MicroClient/Extensions/URLSessionProtocol.swift:14:30: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
12 | for request: URLRequest,
13 | delegate: URLSessionTaskDelegate?
14 | ) async throws -> (Data, URLResponse)
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
15 | }
16 |
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/MicroClient/Extensions/URLSessionProtocol.swift:19:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
17 | // MARK: - URLSession conformance
18 |
19 | extension URLSession: URLSessionProtocol {}
| `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
20 |
/host/spi-builder-workspace/Sources/MicroClient/Interceptors/APIKeyInterceptor.swift:30:66: error: cannot find type 'URLRequest' in scope
28 | // MARK: - Public
29 |
30 | public func intercept(_ request: URLRequest) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
31 | var newRequest = request
32 | newRequest.setValue(apiKey, forHTTPHeaderField: headerName)
/host/spi-builder-workspace/Sources/MicroClient/Interceptors/APIKeyInterceptor.swift:30:38: error: cannot find type 'URLRequest' in scope
28 | // MARK: - Public
29 |
30 | public func intercept(_ request: URLRequest) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
31 | var newRequest = request
32 | newRequest.setValue(apiKey, forHTTPHeaderField: headerName)
/host/spi-builder-workspace/Sources/MicroClient/NetworkRequestInterceptor.swift:14:59: error: cannot find type 'URLRequest' in scope
12 | /// - Returns: A potentially modified `URLRequest`.
13 | /// - Throws: An error if the interception process fails. Throwing an error will cancel the entire request.
14 | func intercept(_ request: URLRequest) async throws -> URLRequest
| `- error: cannot find type 'URLRequest' in scope
15 | }
16 |
/host/spi-builder-workspace/Sources/MicroClient/NetworkRequestInterceptor.swift:14:31: error: cannot find type 'URLRequest' in scope
12 | /// - Returns: A potentially modified `URLRequest`.
13 | /// - Throws: An error if the interception process fails. Throwing an error will cancel the entire request.
14 | func intercept(_ request: URLRequest) async throws -> URLRequest
| `- error: cannot find type 'URLRequest' in scope
15 | }
16 |
/host/spi-builder-workspace/Sources/MicroClient/Interceptors/AcceptHeaderInterceptor.swift:26:66: error: cannot find type 'URLRequest' in scope
24 | // MARK: - Public
25 |
26 | public func intercept(_ request: URLRequest) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
27 | var newRequest = request
28 | newRequest.setValue(acceptType, forHTTPHeaderField: "Accept")
/host/spi-builder-workspace/Sources/MicroClient/Interceptors/AcceptHeaderInterceptor.swift:26:38: error: cannot find type 'URLRequest' in scope
24 | // MARK: - Public
25 |
26 | public func intercept(_ request: URLRequest) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
27 | var newRequest = request
28 | newRequest.setValue(acceptType, forHTTPHeaderField: "Accept")
/host/spi-builder-workspace/Sources/MicroClient/Interceptors/BasicAuthInterceptor.swift:47:66: error: cannot find type 'URLRequest' in scope
45 | // MARK: - Public
46 |
47 | public func intercept(_ request: URLRequest) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
48 | var newRequest = request
49 |
/host/spi-builder-workspace/Sources/MicroClient/Interceptors/BasicAuthInterceptor.swift:47:38: error: cannot find type 'URLRequest' in scope
45 | // MARK: - Public
46 |
47 | public func intercept(_ request: URLRequest) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
48 | var newRequest = request
49 |
/host/spi-builder-workspace/Sources/MicroClient/Interceptors/BearerAuthorizationInterceptor.swift:27:66: error: cannot find type 'URLRequest' in scope
25 | // MARK: - Public
26 |
27 | public func intercept(_ request: URLRequest) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
28 | var newRequest = request
29 |
/host/spi-builder-workspace/Sources/MicroClient/Interceptors/BearerAuthorizationInterceptor.swift:27:38: error: cannot find type 'URLRequest' in scope
25 | // MARK: - Public
26 |
27 | public func intercept(_ request: URLRequest) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
28 | var newRequest = request
29 |
/host/spi-builder-workspace/Sources/MicroClient/Interceptors/CacheControlInterceptor.swift:41:66: error: cannot find type 'URLRequest' in scope
39 | // MARK: - Public
40 |
41 | public func intercept(_ request: URLRequest) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
42 | var newRequest = request
43 | newRequest.setValue(policy.headerValue, forHTTPHeaderField: "Cache-Control")
/host/spi-builder-workspace/Sources/MicroClient/Interceptors/CacheControlInterceptor.swift:41:38: error: cannot find type 'URLRequest' in scope
39 | // MARK: - Public
40 |
41 | public func intercept(_ request: URLRequest) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
42 | var newRequest = request
43 | newRequest.setValue(policy.headerValue, forHTTPHeaderField: "Cache-Control")
/host/spi-builder-workspace/Sources/MicroClient/Interceptors/ContentTypeInterceptor.swift:26:66: error: cannot find type 'URLRequest' in scope
24 | // MARK: - Public
25 |
26 | public func intercept(_ request: URLRequest) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
27 | var newRequest = request
28 |
/host/spi-builder-workspace/Sources/MicroClient/Interceptors/ContentTypeInterceptor.swift:26:38: error: cannot find type 'URLRequest' in scope
24 | // MARK: - Public
25 |
26 | public func intercept(_ request: URLRequest) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
27 | var newRequest = request
28 |
/host/spi-builder-workspace/Sources/MicroClient/Interceptors/RequestIDInterceptor.swift:26:66: error: cannot find type 'URLRequest' in scope
24 | // MARK: - Public
25 |
26 | public func intercept(_ request: URLRequest) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
27 | var newRequest = request
28 | let requestID = UUID().uuidString
/host/spi-builder-workspace/Sources/MicroClient/Interceptors/RequestIDInterceptor.swift:26:38: error: cannot find type 'URLRequest' in scope
24 | // MARK: - Public
25 |
26 | public func intercept(_ request: URLRequest) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
27 | var newRequest = request
28 | let requestID = UUID().uuidString
/host/spi-builder-workspace/Sources/MicroClient/Interceptors/TimeoutInterceptor.swift:25:66: error: cannot find type 'URLRequest' in scope
23 | // MARK: - Public
24 |
25 | public func intercept(_ request: URLRequest) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
26 | var newRequest = request
27 | newRequest.timeoutInterval = timeout
/host/spi-builder-workspace/Sources/MicroClient/Interceptors/TimeoutInterceptor.swift:25:38: error: cannot find type 'URLRequest' in scope
23 | // MARK: - Public
24 |
25 | public func intercept(_ request: URLRequest) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
26 | var newRequest = request
27 | newRequest.timeoutInterval = timeout
/host/spi-builder-workspace/Sources/MicroClient/Interceptors/UserAgentInterceptor.swift:33:66: error: cannot find type 'URLRequest' in scope
31 | // MARK: - Public
32 |
33 | public func intercept(_ request: URLRequest) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
34 | var newRequest = request
35 | newRequest.setValue(userAgent, forHTTPHeaderField: "User-Agent")
/host/spi-builder-workspace/Sources/MicroClient/Interceptors/UserAgentInterceptor.swift:33:38: error: cannot find type 'URLRequest' in scope
31 | // MARK: - Public
32 |
33 | public func intercept(_ request: URLRequest) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
34 | var newRequest = request
35 | newRequest.setValue(userAgent, forHTTPHeaderField: "User-Agent")
/host/spi-builder-workspace/Sources/MicroClient/NetworkClientError.swift:16:60: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
14 | /// - `response`: The metadata associated with the HTTP response.
15 | /// - `data`: The raw response body, which may contain more specific error details from the server.
16 | 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.
17 |
18 | /// 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:16:10: error: associated value 'unacceptableStatusCode(statusCode:response:data:)' of 'Sendable'-conforming enum 'NetworkClientError' has non-sendable type 'URLResponse' (aka 'AnyObject')
14 | /// - `response`: The metadata associated with the HTTP response.
15 | /// - `data`: The raw response body, which may contain more specific error details from the server.
16 | 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')
17 |
18 | /// The response body could not be decoded into the expected `Decodable` type.
/host/spi-builder-workspace/Sources/MicroClient/NetworkResponse.swift:13:26: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
11 |
12 | /// The network response.
13 | public let response: URLResponse
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
14 |
15 | // MARK: - Life cycle
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/MicroClient/NetworkResponse.swift:19:19: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
17 | public init(
18 | value: ResponseModel,
19 | response: URLResponse
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
20 | ) {
21 | self.value = value
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/MicroClient/NetworkResponse.swift:13:16: error: stored property 'response' of 'Sendable'-conforming generic struct 'NetworkResponse' has non-sendable type 'URLResponse' (aka 'AnyObject')
11 |
12 | /// The network response.
13 | public let response: URLResponse
| `- error: stored property 'response' of 'Sendable'-conforming generic struct 'NetworkResponse' has non-sendable type 'URLResponse' (aka 'AnyObject')
14 |
15 | // MARK: - Life cycle
[14/30] Compiling MicroClient URLComponents.swift
/host/spi-builder-workspace/Sources/MicroClient/Extensions/URLRequest.swift:3:11: error: cannot find type 'URLRequest' in scope
1 | import Foundation
2 |
3 | extension URLRequest {
| `- error: cannot find type 'URLRequest' in scope
4 |
5 | static func makeURLRequest<RequestModel, ResponseModel>(
/host/spi-builder-workspace/Sources/MicroClient/Extensions/URLResponse.swift:3:8: error: non-nominal type 'URLResponse' (aka 'AnyObject') cannot be extended
1 | import Foundation
2 |
3 | public extension URLResponse {
| `- error: non-nominal type 'URLResponse' (aka 'AnyObject') cannot be extended
4 |
5 | /// Returns the HTTP Header value for "Location". Default: `nil`.
/host/spi-builder-workspace/Sources/MicroClient/Extensions/URLSessionProtocol.swift:12:22: error: cannot find type 'URLRequest' in scope
10 | /// - Returns: A tuple containing the response data and URLResponse.
11 | func data(
12 | for request: URLRequest,
| `- error: cannot find type 'URLRequest' in scope
13 | delegate: URLSessionTaskDelegate?
14 | ) async throws -> (Data, URLResponse)
/host/spi-builder-workspace/Sources/MicroClient/Extensions/URLSessionProtocol.swift:13:19: error: cannot find type 'URLSessionTaskDelegate' in scope
11 | func data(
12 | for request: URLRequest,
13 | delegate: URLSessionTaskDelegate?
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
14 | ) async throws -> (Data, URLResponse)
15 | }
/host/spi-builder-workspace/Sources/MicroClient/Extensions/URLSessionProtocol.swift:14:30: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
12 | for request: URLRequest,
13 | delegate: URLSessionTaskDelegate?
14 | ) async throws -> (Data, URLResponse)
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
15 | }
16 |
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/MicroClient/Extensions/URLSessionProtocol.swift:19:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
17 | // MARK: - URLSession conformance
18 |
19 | extension URLSession: URLSessionProtocol {}
| `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
20 |
/host/spi-builder-workspace/Sources/MicroClient/Extensions/URLRequest.swift:8:17: error: cannot find type 'URLRequest' in scope
6 | configuration: NetworkConfiguration,
7 | networkRequest: NetworkRequest<RequestModel, ResponseModel>
8 | ) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
9 | let url = try URL.makeURL(
10 | configuration: configuration,
[15/30] Compiling MicroClient URLRequest.swift
/host/spi-builder-workspace/Sources/MicroClient/Extensions/URLRequest.swift:3:11: error: cannot find type 'URLRequest' in scope
1 | import Foundation
2 |
3 | extension URLRequest {
| `- error: cannot find type 'URLRequest' in scope
4 |
5 | static func makeURLRequest<RequestModel, ResponseModel>(
/host/spi-builder-workspace/Sources/MicroClient/Extensions/URLResponse.swift:3:8: error: non-nominal type 'URLResponse' (aka 'AnyObject') cannot be extended
1 | import Foundation
2 |
3 | public extension URLResponse {
| `- error: non-nominal type 'URLResponse' (aka 'AnyObject') cannot be extended
4 |
5 | /// Returns the HTTP Header value for "Location". Default: `nil`.
/host/spi-builder-workspace/Sources/MicroClient/Extensions/URLSessionProtocol.swift:12:22: error: cannot find type 'URLRequest' in scope
10 | /// - Returns: A tuple containing the response data and URLResponse.
11 | func data(
12 | for request: URLRequest,
| `- error: cannot find type 'URLRequest' in scope
13 | delegate: URLSessionTaskDelegate?
14 | ) async throws -> (Data, URLResponse)
/host/spi-builder-workspace/Sources/MicroClient/Extensions/URLSessionProtocol.swift:13:19: error: cannot find type 'URLSessionTaskDelegate' in scope
11 | func data(
12 | for request: URLRequest,
13 | delegate: URLSessionTaskDelegate?
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
14 | ) async throws -> (Data, URLResponse)
15 | }
/host/spi-builder-workspace/Sources/MicroClient/Extensions/URLSessionProtocol.swift:14:30: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
12 | for request: URLRequest,
13 | delegate: URLSessionTaskDelegate?
14 | ) async throws -> (Data, URLResponse)
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
15 | }
16 |
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/MicroClient/Extensions/URLSessionProtocol.swift:19:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
17 | // MARK: - URLSession conformance
18 |
19 | extension URLSession: URLSessionProtocol {}
| `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
20 |
/host/spi-builder-workspace/Sources/MicroClient/Extensions/URLRequest.swift:8:17: error: cannot find type 'URLRequest' in scope
6 | configuration: NetworkConfiguration,
7 | networkRequest: NetworkRequest<RequestModel, ResponseModel>
8 | ) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
9 | let url = try URL.makeURL(
10 | configuration: configuration,
[16/30] Compiling MicroClient URLResponse.swift
/host/spi-builder-workspace/Sources/MicroClient/Extensions/URLRequest.swift:3:11: error: cannot find type 'URLRequest' in scope
1 | import Foundation
2 |
3 | extension URLRequest {
| `- error: cannot find type 'URLRequest' in scope
4 |
5 | static func makeURLRequest<RequestModel, ResponseModel>(
/host/spi-builder-workspace/Sources/MicroClient/Extensions/URLResponse.swift:3:8: error: non-nominal type 'URLResponse' (aka 'AnyObject') cannot be extended
1 | import Foundation
2 |
3 | public extension URLResponse {
| `- error: non-nominal type 'URLResponse' (aka 'AnyObject') cannot be extended
4 |
5 | /// Returns the HTTP Header value for "Location". Default: `nil`.
/host/spi-builder-workspace/Sources/MicroClient/Extensions/URLSessionProtocol.swift:12:22: error: cannot find type 'URLRequest' in scope
10 | /// - Returns: A tuple containing the response data and URLResponse.
11 | func data(
12 | for request: URLRequest,
| `- error: cannot find type 'URLRequest' in scope
13 | delegate: URLSessionTaskDelegate?
14 | ) async throws -> (Data, URLResponse)
/host/spi-builder-workspace/Sources/MicroClient/Extensions/URLSessionProtocol.swift:13:19: error: cannot find type 'URLSessionTaskDelegate' in scope
11 | func data(
12 | for request: URLRequest,
13 | delegate: URLSessionTaskDelegate?
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
14 | ) async throws -> (Data, URLResponse)
15 | }
/host/spi-builder-workspace/Sources/MicroClient/Extensions/URLSessionProtocol.swift:14:30: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
12 | for request: URLRequest,
13 | delegate: URLSessionTaskDelegate?
14 | ) async throws -> (Data, URLResponse)
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
15 | }
16 |
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/MicroClient/Extensions/URLSessionProtocol.swift:19:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
17 | // MARK: - URLSession conformance
18 |
19 | extension URLSession: URLSessionProtocol {}
| `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
20 |
/host/spi-builder-workspace/Sources/MicroClient/Extensions/URLRequest.swift:8:17: error: cannot find type 'URLRequest' in scope
6 | configuration: NetworkConfiguration,
7 | networkRequest: NetworkRequest<RequestModel, ResponseModel>
8 | ) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
9 | let url = try URL.makeURL(
10 | configuration: configuration,
[17/30] Compiling MicroClient URLSessionProtocol.swift
/host/spi-builder-workspace/Sources/MicroClient/Extensions/URLRequest.swift:3:11: error: cannot find type 'URLRequest' in scope
1 | import Foundation
2 |
3 | extension URLRequest {
| `- error: cannot find type 'URLRequest' in scope
4 |
5 | static func makeURLRequest<RequestModel, ResponseModel>(
/host/spi-builder-workspace/Sources/MicroClient/Extensions/URLResponse.swift:3:8: error: non-nominal type 'URLResponse' (aka 'AnyObject') cannot be extended
1 | import Foundation
2 |
3 | public extension URLResponse {
| `- error: non-nominal type 'URLResponse' (aka 'AnyObject') cannot be extended
4 |
5 | /// Returns the HTTP Header value for "Location". Default: `nil`.
/host/spi-builder-workspace/Sources/MicroClient/Extensions/URLSessionProtocol.swift:12:22: error: cannot find type 'URLRequest' in scope
10 | /// - Returns: A tuple containing the response data and URLResponse.
11 | func data(
12 | for request: URLRequest,
| `- error: cannot find type 'URLRequest' in scope
13 | delegate: URLSessionTaskDelegate?
14 | ) async throws -> (Data, URLResponse)
/host/spi-builder-workspace/Sources/MicroClient/Extensions/URLSessionProtocol.swift:13:19: error: cannot find type 'URLSessionTaskDelegate' in scope
11 | func data(
12 | for request: URLRequest,
13 | delegate: URLSessionTaskDelegate?
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
14 | ) async throws -> (Data, URLResponse)
15 | }
/host/spi-builder-workspace/Sources/MicroClient/Extensions/URLSessionProtocol.swift:14:30: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
12 | for request: URLRequest,
13 | delegate: URLSessionTaskDelegate?
14 | ) async throws -> (Data, URLResponse)
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
15 | }
16 |
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/MicroClient/Extensions/URLSessionProtocol.swift:19:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
17 | // MARK: - URLSession conformance
18 |
19 | extension URLSession: URLSessionProtocol {}
| `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
20 |
/host/spi-builder-workspace/Sources/MicroClient/Extensions/URLRequest.swift:8:17: error: cannot find type 'URLRequest' in scope
6 | configuration: NetworkConfiguration,
7 | networkRequest: NetworkRequest<RequestModel, ResponseModel>
8 | ) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
9 | let url = try URL.makeURL(
10 | configuration: configuration,
[18/30] Compiling MicroClient NetworkLogLevel.swift
/host/spi-builder-workspace/Sources/MicroClient/NetworkRequestInterceptor.swift:14:59: error: cannot find type 'URLRequest' in scope
12 | /// - Returns: A potentially modified `URLRequest`.
13 | /// - Throws: An error if the interception process fails. Throwing an error will cancel the entire request.
14 | func intercept(_ request: URLRequest) async throws -> URLRequest
| `- error: cannot find type 'URLRequest' in scope
15 | }
16 |
/host/spi-builder-workspace/Sources/MicroClient/NetworkRequestInterceptor.swift:14:31: error: cannot find type 'URLRequest' in scope
12 | /// - Returns: A potentially modified `URLRequest`.
13 | /// - Throws: An error if the interception process fails. Throwing an error will cancel the entire request.
14 | func intercept(_ request: URLRequest) async throws -> URLRequest
| `- error: cannot find type 'URLRequest' in scope
15 | }
16 |
[19/30] Compiling MicroClient NetworkLogger.swift
/host/spi-builder-workspace/Sources/MicroClient/NetworkRequestInterceptor.swift:14:59: error: cannot find type 'URLRequest' in scope
12 | /// - Returns: A potentially modified `URLRequest`.
13 | /// - Throws: An error if the interception process fails. Throwing an error will cancel the entire request.
14 | func intercept(_ request: URLRequest) async throws -> URLRequest
| `- error: cannot find type 'URLRequest' in scope
15 | }
16 |
/host/spi-builder-workspace/Sources/MicroClient/NetworkRequestInterceptor.swift:14:31: error: cannot find type 'URLRequest' in scope
12 | /// - Returns: A potentially modified `URLRequest`.
13 | /// - Throws: An error if the interception process fails. Throwing an error will cancel the entire request.
14 | func intercept(_ request: URLRequest) async throws -> URLRequest
| `- error: cannot find type 'URLRequest' in scope
15 | }
16 |
[20/30] Compiling MicroClient NetworkRequest.swift
/host/spi-builder-workspace/Sources/MicroClient/NetworkRequestInterceptor.swift:14:59: error: cannot find type 'URLRequest' in scope
12 | /// - Returns: A potentially modified `URLRequest`.
13 | /// - Throws: An error if the interception process fails. Throwing an error will cancel the entire request.
14 | func intercept(_ request: URLRequest) async throws -> URLRequest
| `- error: cannot find type 'URLRequest' in scope
15 | }
16 |
/host/spi-builder-workspace/Sources/MicroClient/NetworkRequestInterceptor.swift:14:31: error: cannot find type 'URLRequest' in scope
12 | /// - Returns: A potentially modified `URLRequest`.
13 | /// - Throws: An error if the interception process fails. Throwing an error will cancel the entire request.
14 | func intercept(_ request: URLRequest) async throws -> URLRequest
| `- error: cannot find type 'URLRequest' in scope
15 | }
16 |
[21/30] Compiling MicroClient NetworkClient.swift
/host/spi-builder-workspace/Sources/MicroClient/NetworkClient.swift:66:25: error: cannot find type 'URLRequest' in scope
64 | }
65 |
66 | var urlRequest: URLRequest
| `- error: cannot find type 'URLRequest' in scope
67 | do {
68 | urlRequest = try URLRequest.makeURLRequest(
/host/spi-builder-workspace/Sources/MicroClient/NetworkClient.swift:68:30: error: cannot find 'URLRequest' in scope
66 | var urlRequest: URLRequest
67 | do {
68 | urlRequest = try URLRequest.makeURLRequest(
| `- error: cannot find 'URLRequest' in scope
69 | configuration: configuration,
70 | networkRequest: networkRequest
/host/spi-builder-workspace/Sources/MicroClient/NetworkRequestInterceptor.swift:14:59: error: cannot find type 'URLRequest' in scope
12 | /// - Returns: A potentially modified `URLRequest`.
13 | /// - Throws: An error if the interception process fails. Throwing an error will cancel the entire request.
14 | func intercept(_ request: URLRequest) async throws -> URLRequest
| `- error: cannot find type 'URLRequest' in scope
15 | }
16 |
/host/spi-builder-workspace/Sources/MicroClient/NetworkRequestInterceptor.swift:14:31: error: cannot find type 'URLRequest' in scope
12 | /// - Returns: A potentially modified `URLRequest`.
13 | /// - Throws: An error if the interception process fails. Throwing an error will cancel the entire request.
14 | func intercept(_ request: URLRequest) async throws -> URLRequest
| `- error: cannot find type 'URLRequest' in scope
15 | }
16 |
/host/spi-builder-workspace/Sources/MicroClient/NetworkClient.swift:95:23: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
93 |
94 | let data: Data
95 | let response: URLResponse
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
96 |
97 | do {
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/MicroClient/Extensions/URLSessionProtocol.swift:12:22: error: cannot find type 'URLRequest' in scope
10 | /// - Returns: A tuple containing the response data and URLResponse.
11 | func data(
12 | for request: URLRequest,
| `- error: cannot find type 'URLRequest' in scope
13 | delegate: URLSessionTaskDelegate?
14 | ) async throws -> (Data, URLResponse)
/host/spi-builder-workspace/Sources/MicroClient/Extensions/URLSessionProtocol.swift:13:19: error: cannot find type 'URLSessionTaskDelegate' in scope
11 | func data(
12 | for request: URLRequest,
13 | delegate: URLSessionTaskDelegate?
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
14 | ) async throws -> (Data, URLResponse)
15 | }
/host/spi-builder-workspace/Sources/MicroClient/NetworkClient.swift:100:27: error: 'nil' requires a contextual type
98 | (data, response) = try await configuration.session.data(
99 | for: urlRequest,
100 | delegate: nil
| `- error: 'nil' requires a contextual type
101 | )
102 | } catch {
/host/spi-builder-workspace/Sources/MicroClient/NetworkClient.swift:107:40: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
105 | }
106 |
107 | if let httpResponse = response as? HTTPURLResponse {
| `- warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
108 | log(.info, "Response: \(httpResponse.statusCode)")
109 | log(.debug, "Response headers: \(httpResponse.allHeaderFields)")
/host/spi-builder-workspace/Sources/MicroClient/NetworkClient.swift:107:44: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
105 | }
106 |
107 | if let httpResponse = response as? HTTPURLResponse {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
108 | log(.info, "Response: \(httpResponse.statusCode)")
109 | log(.debug, "Response headers: \(httpResponse.allHeaderFields)")
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:108:50: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
106 |
107 | if let httpResponse = response as? HTTPURLResponse {
108 | log(.info, "Response: \(httpResponse.statusCode)")
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
109 | log(.debug, "Response headers: \(httpResponse.allHeaderFields)")
110 |
/host/spi-builder-workspace/Sources/MicroClient/NetworkClient.swift:109:59: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
107 | if let httpResponse = response as? HTTPURLResponse {
108 | log(.info, "Response: \(httpResponse.statusCode)")
109 | log(.debug, "Response headers: \(httpResponse.allHeaderFields)")
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
110 |
111 | guard (200...299).contains(httpResponse.statusCode) else {
/host/spi-builder-workspace/Sources/MicroClient/NetworkClient.swift:111:53: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
109 | log(.debug, "Response headers: \(httpResponse.allHeaderFields)")
110 |
111 | guard (200...299).contains(httpResponse.statusCode) else {
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
112 | log(.error, "Unacceptable status code: \(httpResponse.statusCode)")
113 | throw NetworkClientError.unacceptableStatusCode(
/host/spi-builder-workspace/Sources/MicroClient/NetworkClient.swift:112:71: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
110 |
111 | guard (200...299).contains(httpResponse.statusCode) else {
112 | log(.error, "Unacceptable status code: \(httpResponse.statusCode)")
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
113 | throw NetworkClientError.unacceptableStatusCode(
114 | statusCode: httpResponse.statusCode,
/host/spi-builder-workspace/Sources/MicroClient/NetworkClient.swift:114:46: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
112 | log(.error, "Unacceptable status code: \(httpResponse.statusCode)")
113 | throw NetworkClientError.unacceptableStatusCode(
114 | statusCode: httpResponse.statusCode,
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
115 | response: httpResponse,
116 | data: data
/host/spi-builder-workspace/Sources/MicroClient/NetworkClientError.swift:16:60: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
14 | /// - `response`: The metadata associated with the HTTP response.
15 | /// - `data`: The raw response body, which may contain more specific error details from the server.
16 | 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.
17 |
18 | /// 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:16:10: error: associated value 'unacceptableStatusCode(statusCode:response:data:)' of 'Sendable'-conforming enum 'NetworkClientError' has non-sendable type 'URLResponse' (aka 'AnyObject')
14 | /// - `response`: The metadata associated with the HTTP response.
15 | /// - `data`: The raw response body, which may contain more specific error details from the server.
16 | 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')
17 |
18 | /// The response body could not be decoded into the expected `Decodable` type.
[22/30] Compiling MicroClient NetworkClientError.swift
/host/spi-builder-workspace/Sources/MicroClient/NetworkClient.swift:66:25: error: cannot find type 'URLRequest' in scope
64 | }
65 |
66 | var urlRequest: URLRequest
| `- error: cannot find type 'URLRequest' in scope
67 | do {
68 | urlRequest = try URLRequest.makeURLRequest(
/host/spi-builder-workspace/Sources/MicroClient/NetworkClient.swift:68:30: error: cannot find 'URLRequest' in scope
66 | var urlRequest: URLRequest
67 | do {
68 | urlRequest = try URLRequest.makeURLRequest(
| `- error: cannot find 'URLRequest' in scope
69 | configuration: configuration,
70 | networkRequest: networkRequest
/host/spi-builder-workspace/Sources/MicroClient/NetworkRequestInterceptor.swift:14:59: error: cannot find type 'URLRequest' in scope
12 | /// - Returns: A potentially modified `URLRequest`.
13 | /// - Throws: An error if the interception process fails. Throwing an error will cancel the entire request.
14 | func intercept(_ request: URLRequest) async throws -> URLRequest
| `- error: cannot find type 'URLRequest' in scope
15 | }
16 |
/host/spi-builder-workspace/Sources/MicroClient/NetworkRequestInterceptor.swift:14:31: error: cannot find type 'URLRequest' in scope
12 | /// - Returns: A potentially modified `URLRequest`.
13 | /// - Throws: An error if the interception process fails. Throwing an error will cancel the entire request.
14 | func intercept(_ request: URLRequest) async throws -> URLRequest
| `- error: cannot find type 'URLRequest' in scope
15 | }
16 |
/host/spi-builder-workspace/Sources/MicroClient/NetworkClient.swift:95:23: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
93 |
94 | let data: Data
95 | let response: URLResponse
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
96 |
97 | do {
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/MicroClient/Extensions/URLSessionProtocol.swift:12:22: error: cannot find type 'URLRequest' in scope
10 | /// - Returns: A tuple containing the response data and URLResponse.
11 | func data(
12 | for request: URLRequest,
| `- error: cannot find type 'URLRequest' in scope
13 | delegate: URLSessionTaskDelegate?
14 | ) async throws -> (Data, URLResponse)
/host/spi-builder-workspace/Sources/MicroClient/Extensions/URLSessionProtocol.swift:13:19: error: cannot find type 'URLSessionTaskDelegate' in scope
11 | func data(
12 | for request: URLRequest,
13 | delegate: URLSessionTaskDelegate?
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
14 | ) async throws -> (Data, URLResponse)
15 | }
/host/spi-builder-workspace/Sources/MicroClient/NetworkClient.swift:100:27: error: 'nil' requires a contextual type
98 | (data, response) = try await configuration.session.data(
99 | for: urlRequest,
100 | delegate: nil
| `- error: 'nil' requires a contextual type
101 | )
102 | } catch {
/host/spi-builder-workspace/Sources/MicroClient/NetworkClient.swift:107:40: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
105 | }
106 |
107 | if let httpResponse = response as? HTTPURLResponse {
| `- warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
108 | log(.info, "Response: \(httpResponse.statusCode)")
109 | log(.debug, "Response headers: \(httpResponse.allHeaderFields)")
/host/spi-builder-workspace/Sources/MicroClient/NetworkClient.swift:107:44: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
105 | }
106 |
107 | if let httpResponse = response as? HTTPURLResponse {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
108 | log(.info, "Response: \(httpResponse.statusCode)")
109 | log(.debug, "Response headers: \(httpResponse.allHeaderFields)")
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:108:50: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
106 |
107 | if let httpResponse = response as? HTTPURLResponse {
108 | log(.info, "Response: \(httpResponse.statusCode)")
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
109 | log(.debug, "Response headers: \(httpResponse.allHeaderFields)")
110 |
/host/spi-builder-workspace/Sources/MicroClient/NetworkClient.swift:109:59: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
107 | if let httpResponse = response as? HTTPURLResponse {
108 | log(.info, "Response: \(httpResponse.statusCode)")
109 | log(.debug, "Response headers: \(httpResponse.allHeaderFields)")
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
110 |
111 | guard (200...299).contains(httpResponse.statusCode) else {
/host/spi-builder-workspace/Sources/MicroClient/NetworkClient.swift:111:53: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
109 | log(.debug, "Response headers: \(httpResponse.allHeaderFields)")
110 |
111 | guard (200...299).contains(httpResponse.statusCode) else {
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
112 | log(.error, "Unacceptable status code: \(httpResponse.statusCode)")
113 | throw NetworkClientError.unacceptableStatusCode(
/host/spi-builder-workspace/Sources/MicroClient/NetworkClient.swift:112:71: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
110 |
111 | guard (200...299).contains(httpResponse.statusCode) else {
112 | log(.error, "Unacceptable status code: \(httpResponse.statusCode)")
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
113 | throw NetworkClientError.unacceptableStatusCode(
114 | statusCode: httpResponse.statusCode,
/host/spi-builder-workspace/Sources/MicroClient/NetworkClient.swift:114:46: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
112 | log(.error, "Unacceptable status code: \(httpResponse.statusCode)")
113 | throw NetworkClientError.unacceptableStatusCode(
114 | statusCode: httpResponse.statusCode,
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
115 | response: httpResponse,
116 | data: data
/host/spi-builder-workspace/Sources/MicroClient/NetworkClientError.swift:16:60: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
14 | /// - `response`: The metadata associated with the HTTP response.
15 | /// - `data`: The raw response body, which may contain more specific error details from the server.
16 | 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.
17 |
18 | /// 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:16:10: error: associated value 'unacceptableStatusCode(statusCode:response:data:)' of 'Sendable'-conforming enum 'NetworkClientError' has non-sendable type 'URLResponse' (aka 'AnyObject')
14 | /// - `response`: The metadata associated with the HTTP response.
15 | /// - `data`: The raw response body, which may contain more specific error details from the server.
16 | 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')
17 |
18 | /// The response body could not be decoded into the expected `Decodable` type.
[23/30] Compiling MicroClient NetworkConfiguration.swift
/host/spi-builder-workspace/Sources/MicroClient/NetworkClient.swift:66:25: error: cannot find type 'URLRequest' in scope
64 | }
65 |
66 | var urlRequest: URLRequest
| `- error: cannot find type 'URLRequest' in scope
67 | do {
68 | urlRequest = try URLRequest.makeURLRequest(
/host/spi-builder-workspace/Sources/MicroClient/NetworkClient.swift:68:30: error: cannot find 'URLRequest' in scope
66 | var urlRequest: URLRequest
67 | do {
68 | urlRequest = try URLRequest.makeURLRequest(
| `- error: cannot find 'URLRequest' in scope
69 | configuration: configuration,
70 | networkRequest: networkRequest
/host/spi-builder-workspace/Sources/MicroClient/NetworkRequestInterceptor.swift:14:59: error: cannot find type 'URLRequest' in scope
12 | /// - Returns: A potentially modified `URLRequest`.
13 | /// - Throws: An error if the interception process fails. Throwing an error will cancel the entire request.
14 | func intercept(_ request: URLRequest) async throws -> URLRequest
| `- error: cannot find type 'URLRequest' in scope
15 | }
16 |
/host/spi-builder-workspace/Sources/MicroClient/NetworkRequestInterceptor.swift:14:31: error: cannot find type 'URLRequest' in scope
12 | /// - Returns: A potentially modified `URLRequest`.
13 | /// - Throws: An error if the interception process fails. Throwing an error will cancel the entire request.
14 | func intercept(_ request: URLRequest) async throws -> URLRequest
| `- error: cannot find type 'URLRequest' in scope
15 | }
16 |
/host/spi-builder-workspace/Sources/MicroClient/NetworkClient.swift:95:23: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
93 |
94 | let data: Data
95 | let response: URLResponse
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
96 |
97 | do {
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/MicroClient/Extensions/URLSessionProtocol.swift:12:22: error: cannot find type 'URLRequest' in scope
10 | /// - Returns: A tuple containing the response data and URLResponse.
11 | func data(
12 | for request: URLRequest,
| `- error: cannot find type 'URLRequest' in scope
13 | delegate: URLSessionTaskDelegate?
14 | ) async throws -> (Data, URLResponse)
/host/spi-builder-workspace/Sources/MicroClient/Extensions/URLSessionProtocol.swift:13:19: error: cannot find type 'URLSessionTaskDelegate' in scope
11 | func data(
12 | for request: URLRequest,
13 | delegate: URLSessionTaskDelegate?
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
14 | ) async throws -> (Data, URLResponse)
15 | }
/host/spi-builder-workspace/Sources/MicroClient/NetworkClient.swift:100:27: error: 'nil' requires a contextual type
98 | (data, response) = try await configuration.session.data(
99 | for: urlRequest,
100 | delegate: nil
| `- error: 'nil' requires a contextual type
101 | )
102 | } catch {
/host/spi-builder-workspace/Sources/MicroClient/NetworkClient.swift:107:40: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
105 | }
106 |
107 | if let httpResponse = response as? HTTPURLResponse {
| `- warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
108 | log(.info, "Response: \(httpResponse.statusCode)")
109 | log(.debug, "Response headers: \(httpResponse.allHeaderFields)")
/host/spi-builder-workspace/Sources/MicroClient/NetworkClient.swift:107:44: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
105 | }
106 |
107 | if let httpResponse = response as? HTTPURLResponse {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
108 | log(.info, "Response: \(httpResponse.statusCode)")
109 | log(.debug, "Response headers: \(httpResponse.allHeaderFields)")
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:108:50: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
106 |
107 | if let httpResponse = response as? HTTPURLResponse {
108 | log(.info, "Response: \(httpResponse.statusCode)")
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
109 | log(.debug, "Response headers: \(httpResponse.allHeaderFields)")
110 |
/host/spi-builder-workspace/Sources/MicroClient/NetworkClient.swift:109:59: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
107 | if let httpResponse = response as? HTTPURLResponse {
108 | log(.info, "Response: \(httpResponse.statusCode)")
109 | log(.debug, "Response headers: \(httpResponse.allHeaderFields)")
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
110 |
111 | guard (200...299).contains(httpResponse.statusCode) else {
/host/spi-builder-workspace/Sources/MicroClient/NetworkClient.swift:111:53: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
109 | log(.debug, "Response headers: \(httpResponse.allHeaderFields)")
110 |
111 | guard (200...299).contains(httpResponse.statusCode) else {
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
112 | log(.error, "Unacceptable status code: \(httpResponse.statusCode)")
113 | throw NetworkClientError.unacceptableStatusCode(
/host/spi-builder-workspace/Sources/MicroClient/NetworkClient.swift:112:71: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
110 |
111 | guard (200...299).contains(httpResponse.statusCode) else {
112 | log(.error, "Unacceptable status code: \(httpResponse.statusCode)")
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
113 | throw NetworkClientError.unacceptableStatusCode(
114 | statusCode: httpResponse.statusCode,
/host/spi-builder-workspace/Sources/MicroClient/NetworkClient.swift:114:46: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
112 | log(.error, "Unacceptable status code: \(httpResponse.statusCode)")
113 | throw NetworkClientError.unacceptableStatusCode(
114 | statusCode: httpResponse.statusCode,
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
115 | response: httpResponse,
116 | data: data
/host/spi-builder-workspace/Sources/MicroClient/NetworkClientError.swift:16:60: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
14 | /// - `response`: The metadata associated with the HTTP response.
15 | /// - `data`: The raw response body, which may contain more specific error details from the server.
16 | 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.
17 |
18 | /// 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:16:10: error: associated value 'unacceptableStatusCode(statusCode:response:data:)' of 'Sendable'-conforming enum 'NetworkClientError' has non-sendable type 'URLResponse' (aka 'AnyObject')
14 | /// - `response`: The metadata associated with the HTTP response.
15 | /// - `data`: The raw response body, which may contain more specific error details from the server.
16 | 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')
17 |
18 | /// The response body could not be decoded into the expected `Decodable` type.
[24/30] Compiling MicroClient Unwrap.swift
/host/spi-builder-workspace/Sources/MicroClient/Interceptors/APIKeyInterceptor.swift:30:66: error: cannot find type 'URLRequest' in scope
28 | // MARK: - Public
29 |
30 | public func intercept(_ request: URLRequest) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
31 | var newRequest = request
32 | newRequest.setValue(apiKey, forHTTPHeaderField: headerName)
/host/spi-builder-workspace/Sources/MicroClient/Interceptors/APIKeyInterceptor.swift:30:38: error: cannot find type 'URLRequest' in scope
28 | // MARK: - Public
29 |
30 | public func intercept(_ request: URLRequest) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
31 | var newRequest = request
32 | newRequest.setValue(apiKey, forHTTPHeaderField: headerName)
/host/spi-builder-workspace/Sources/MicroClient/NetworkRequestInterceptor.swift:14:59: error: cannot find type 'URLRequest' in scope
12 | /// - Returns: A potentially modified `URLRequest`.
13 | /// - Throws: An error if the interception process fails. Throwing an error will cancel the entire request.
14 | func intercept(_ request: URLRequest) async throws -> URLRequest
| `- error: cannot find type 'URLRequest' in scope
15 | }
16 |
/host/spi-builder-workspace/Sources/MicroClient/NetworkRequestInterceptor.swift:14:31: error: cannot find type 'URLRequest' in scope
12 | /// - Returns: A potentially modified `URLRequest`.
13 | /// - Throws: An error if the interception process fails. Throwing an error will cancel the entire request.
14 | func intercept(_ request: URLRequest) async throws -> URLRequest
| `- error: cannot find type 'URLRequest' in scope
15 | }
16 |
/host/spi-builder-workspace/Sources/MicroClient/Interceptors/AcceptHeaderInterceptor.swift:26:66: error: cannot find type 'URLRequest' in scope
24 | // MARK: - Public
25 |
26 | public func intercept(_ request: URLRequest) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
27 | var newRequest = request
28 | newRequest.setValue(acceptType, forHTTPHeaderField: "Accept")
/host/spi-builder-workspace/Sources/MicroClient/Interceptors/AcceptHeaderInterceptor.swift:26:38: error: cannot find type 'URLRequest' in scope
24 | // MARK: - Public
25 |
26 | public func intercept(_ request: URLRequest) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
27 | var newRequest = request
28 | newRequest.setValue(acceptType, forHTTPHeaderField: "Accept")
[25/30] Compiling MicroClient HTTPMethod.swift
/host/spi-builder-workspace/Sources/MicroClient/Interceptors/APIKeyInterceptor.swift:30:66: error: cannot find type 'URLRequest' in scope
28 | // MARK: - Public
29 |
30 | public func intercept(_ request: URLRequest) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
31 | var newRequest = request
32 | newRequest.setValue(apiKey, forHTTPHeaderField: headerName)
/host/spi-builder-workspace/Sources/MicroClient/Interceptors/APIKeyInterceptor.swift:30:38: error: cannot find type 'URLRequest' in scope
28 | // MARK: - Public
29 |
30 | public func intercept(_ request: URLRequest) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
31 | var newRequest = request
32 | newRequest.setValue(apiKey, forHTTPHeaderField: headerName)
/host/spi-builder-workspace/Sources/MicroClient/NetworkRequestInterceptor.swift:14:59: error: cannot find type 'URLRequest' in scope
12 | /// - Returns: A potentially modified `URLRequest`.
13 | /// - Throws: An error if the interception process fails. Throwing an error will cancel the entire request.
14 | func intercept(_ request: URLRequest) async throws -> URLRequest
| `- error: cannot find type 'URLRequest' in scope
15 | }
16 |
/host/spi-builder-workspace/Sources/MicroClient/NetworkRequestInterceptor.swift:14:31: error: cannot find type 'URLRequest' in scope
12 | /// - Returns: A potentially modified `URLRequest`.
13 | /// - Throws: An error if the interception process fails. Throwing an error will cancel the entire request.
14 | func intercept(_ request: URLRequest) async throws -> URLRequest
| `- error: cannot find type 'URLRequest' in scope
15 | }
16 |
/host/spi-builder-workspace/Sources/MicroClient/Interceptors/AcceptHeaderInterceptor.swift:26:66: error: cannot find type 'URLRequest' in scope
24 | // MARK: - Public
25 |
26 | public func intercept(_ request: URLRequest) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
27 | var newRequest = request
28 | newRequest.setValue(acceptType, forHTTPHeaderField: "Accept")
/host/spi-builder-workspace/Sources/MicroClient/Interceptors/AcceptHeaderInterceptor.swift:26:38: error: cannot find type 'URLRequest' in scope
24 | // MARK: - Public
25 |
26 | public func intercept(_ request: URLRequest) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
27 | var newRequest = request
28 | newRequest.setValue(acceptType, forHTTPHeaderField: "Accept")
[26/30] Compiling MicroClient APIKeyInterceptor.swift
/host/spi-builder-workspace/Sources/MicroClient/Interceptors/APIKeyInterceptor.swift:30:66: error: cannot find type 'URLRequest' in scope
28 | // MARK: - Public
29 |
30 | public func intercept(_ request: URLRequest) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
31 | var newRequest = request
32 | newRequest.setValue(apiKey, forHTTPHeaderField: headerName)
/host/spi-builder-workspace/Sources/MicroClient/Interceptors/APIKeyInterceptor.swift:30:38: error: cannot find type 'URLRequest' in scope
28 | // MARK: - Public
29 |
30 | public func intercept(_ request: URLRequest) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
31 | var newRequest = request
32 | newRequest.setValue(apiKey, forHTTPHeaderField: headerName)
/host/spi-builder-workspace/Sources/MicroClient/NetworkRequestInterceptor.swift:14:59: error: cannot find type 'URLRequest' in scope
12 | /// - Returns: A potentially modified `URLRequest`.
13 | /// - Throws: An error if the interception process fails. Throwing an error will cancel the entire request.
14 | func intercept(_ request: URLRequest) async throws -> URLRequest
| `- error: cannot find type 'URLRequest' in scope
15 | }
16 |
/host/spi-builder-workspace/Sources/MicroClient/NetworkRequestInterceptor.swift:14:31: error: cannot find type 'URLRequest' in scope
12 | /// - Returns: A potentially modified `URLRequest`.
13 | /// - Throws: An error if the interception process fails. Throwing an error will cancel the entire request.
14 | func intercept(_ request: URLRequest) async throws -> URLRequest
| `- error: cannot find type 'URLRequest' in scope
15 | }
16 |
/host/spi-builder-workspace/Sources/MicroClient/Interceptors/AcceptHeaderInterceptor.swift:26:66: error: cannot find type 'URLRequest' in scope
24 | // MARK: - Public
25 |
26 | public func intercept(_ request: URLRequest) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
27 | var newRequest = request
28 | newRequest.setValue(acceptType, forHTTPHeaderField: "Accept")
/host/spi-builder-workspace/Sources/MicroClient/Interceptors/AcceptHeaderInterceptor.swift:26:38: error: cannot find type 'URLRequest' in scope
24 | // MARK: - Public
25 |
26 | public func intercept(_ request: URLRequest) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
27 | var newRequest = request
28 | newRequest.setValue(acceptType, forHTTPHeaderField: "Accept")
[27/30] Compiling MicroClient AcceptHeaderInterceptor.swift
/host/spi-builder-workspace/Sources/MicroClient/Interceptors/APIKeyInterceptor.swift:30:66: error: cannot find type 'URLRequest' in scope
28 | // MARK: - Public
29 |
30 | public func intercept(_ request: URLRequest) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
31 | var newRequest = request
32 | newRequest.setValue(apiKey, forHTTPHeaderField: headerName)
/host/spi-builder-workspace/Sources/MicroClient/Interceptors/APIKeyInterceptor.swift:30:38: error: cannot find type 'URLRequest' in scope
28 | // MARK: - Public
29 |
30 | public func intercept(_ request: URLRequest) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
31 | var newRequest = request
32 | newRequest.setValue(apiKey, forHTTPHeaderField: headerName)
/host/spi-builder-workspace/Sources/MicroClient/NetworkRequestInterceptor.swift:14:59: error: cannot find type 'URLRequest' in scope
12 | /// - Returns: A potentially modified `URLRequest`.
13 | /// - Throws: An error if the interception process fails. Throwing an error will cancel the entire request.
14 | func intercept(_ request: URLRequest) async throws -> URLRequest
| `- error: cannot find type 'URLRequest' in scope
15 | }
16 |
/host/spi-builder-workspace/Sources/MicroClient/NetworkRequestInterceptor.swift:14:31: error: cannot find type 'URLRequest' in scope
12 | /// - Returns: A potentially modified `URLRequest`.
13 | /// - Throws: An error if the interception process fails. Throwing an error will cancel the entire request.
14 | func intercept(_ request: URLRequest) async throws -> URLRequest
| `- error: cannot find type 'URLRequest' in scope
15 | }
16 |
/host/spi-builder-workspace/Sources/MicroClient/Interceptors/AcceptHeaderInterceptor.swift:26:66: error: cannot find type 'URLRequest' in scope
24 | // MARK: - Public
25 |
26 | public func intercept(_ request: URLRequest) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
27 | var newRequest = request
28 | newRequest.setValue(acceptType, forHTTPHeaderField: "Accept")
/host/spi-builder-workspace/Sources/MicroClient/Interceptors/AcceptHeaderInterceptor.swift:26:38: error: cannot find type 'URLRequest' in scope
24 | // MARK: - Public
25 |
26 | public func intercept(_ request: URLRequest) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
27 | var newRequest = request
28 | newRequest.setValue(acceptType, forHTTPHeaderField: "Accept")
[28/30] Compiling MicroClient VoidResponse.swift
[29/30] Compiling MicroClient RetryStrategy.swift
[30/30] Compiling MicroClient URLFormItem.swift
BUILD FAILURE 6.1 linux