Build Information
Failed to build IntelligenceKit, reference main (babcce), with Swift 6.1 for Wasm on 27 Sep 2025 10:18:05 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4606859-2":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1Build Log
23 | let dispatchQueue = qosClass != nil ? DispatchQueue.global(qos: qosClass!) : DispatchQueue.main
24 | dispatchQueue.asyncAfter(deadline: DispatchTime.now() + duration.timeInterval, execute: closure)
| `- error: cannot find 'DispatchTime' in scope
25 | }
26 |
[200/414] Compiling x509_d2.cc
[201/414] Compiling x509_cmp.cc
[202/414] Compiling x509_att.cc
[203/414] Compiling x509.cc
[204/414] Compiling v3_purp.cc
[205/414] Compiling v3_skey.cc
[206/414] Compiling v3_utl.cc
[207/414] Compiling v3_prn.cc
[208/414] Compiling v3_pcons.cc
[209/414] Compiling v3_ocsp.cc
[210/414] Compiling v3_pmaps.cc
[211/414] Compiling v3_ncons.cc
[212/414] Compiling v3_lib.cc
[213/414] Compiling v3_int.cc
[215/414] Compiling HandySwift PrintRequestPlugin.swift
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/PrintRequestPlugin.swift:85:40: error: cannot find type 'URLRequest' in scope
83 | ///
84 | /// - Parameter request: The URLRequest to potentially log and pass through unchanged.
85 | public func apply(to request: inout URLRequest) {
| `- error: cannot find type 'URLRequest' in scope
86 | if self.debugOnly {
87 | #if DEBUG
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/PrintRequestPlugin.swift:98:41: error: cannot find type 'URLRequest' in scope
96 | ///
97 | /// - Parameter request: The URLRequest to print details for.
98 | private func printRequest(_ request: URLRequest) {
| `- error: cannot find type 'URLRequest' in scope
99 | var requestBodyString: String?
100 | if let bodyData = request.httpBody {
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:201:36: error: cannot find type 'URLRequest' in scope
199 |
200 | public protocol RequestPlugin: Sendable {
201 | func apply(to request: inout URLRequest)
| `- error: cannot find type 'URLRequest' in scope
202 | }
203 |
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/PrintResponsePlugin.swift:93:41: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
91 | /// - data: The response body data to potentially log.
92 | /// - Throws: Does not throw errors, but passes through any errors from the response processing.
93 | public func apply(to response: inout HTTPURLResponse, data: inout Data) throws {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
94 | if self.debugOnly {
95 | #if DEBUG
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/.build/checkouts/HandySwift/Sources/HandySwift/Types/PrintResponsePlugin.swift:108:43: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
106 | /// - response: The HTTPURLResponse to print details for.
107 | /// - data: The response body data to print.
108 | private func printResponse(_ response: HTTPURLResponse, data: Data) {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
109 | var responseBodyString: String?
110 | if !data.isEmpty {
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/.build/checkouts/HandySwift/Sources/HandySwift/Types/PrintResponsePlugin.swift:116:35: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
114 | // Clean headers formatting - sorted alphabetically for consistency, no AnyHashable wrappers
115 | var headersString = ""
116 | let cleanHeaders = response.allHeaderFields
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
117 | .compactMapValues { "\($0)" }
118 | .sorted { "\($0.key)" < "\($1.key)" }
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/PrintResponsePlugin.swift:124:44: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
122 |
123 | print(
124 | "[RESTClient] Response \(response.statusCode) from '\(response.url!)'\n\nResponse headers:\(headersString)\n\nResponse body:\n\(responseBodyString ?? "No body")"
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
125 | )
126 | }
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:19:35: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
17 | case failedToDecodeClientErrorBody(Error, Context?)
18 | case clientError(String, Context?)
19 | case unexpectedResponseType(URLResponse, Context?)
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
20 | case unexpectedStatusCode(Int, Context?)
21 |
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/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:19:12: error: associated value 'unexpectedResponseType' of 'Sendable'-conforming enum 'APIError' has non-sendable type 'URLResponse' (aka 'AnyObject')
17 | case failedToDecodeClientErrorBody(Error, Context?)
18 | case clientError(String, Context?)
19 | case unexpectedResponseType(URLResponse, Context?)
| `- error: associated value 'unexpectedResponseType' of 'Sendable'-conforming enum 'APIError' has non-sendable type 'URLResponse' (aka 'AnyObject')
20 | case unexpectedStatusCode(Int, Context?)
21 |
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:205:37: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
203 |
204 | public protocol ResponsePlugin: Sendable {
205 | func apply(to response: inout HTTPURLResponse, data: inout Data) throws
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
206 | }
207 |
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/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:213:20: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
211 | let jsonEncoder: JSONEncoder
212 | let jsonDecoder: JSONDecoder
213 | let urlSession: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
214 | let requestPlugins: [any RequestPlugin]
215 | let responsePlugins: [any ResponsePlugin]
Foundation.URLSession:2:18: note: 'URLSession' 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 URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:226:19: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
224 | jsonEncoder: JSONEncoder = .init(),
225 | jsonDecoder: JSONDecoder = .init(),
226 | urlSession: URLSession = .shared,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
227 | requestPlugins: [any RequestPlugin] = [],
228 | responsePlugins: [any ResponsePlugin] = [],
Foundation.URLSession:2:18: note: 'URLSession' 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 URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:226:33: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
224 | jsonEncoder: JSONEncoder = .init(),
225 | jsonDecoder: JSONDecoder = .init(),
226 | urlSession: URLSession = .shared,
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
227 | requestPlugins: [any RequestPlugin] = [],
228 | responsePlugins: [any ResponsePlugin] = [],
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:325:43: error: cannot find type 'URLRequest' in scope
323 | }
324 |
325 | private func performRequest(_ request: URLRequest, errorContext: String?) async throws(APIError) -> (Data, URLResponse) {
| `- error: cannot find type 'URLRequest' in scope
326 | let data: Data
327 | let response: URLResponse
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:325:111: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
323 | }
324 |
325 | private func performRequest(_ request: URLRequest, errorContext: String?) async throws(APIError) -> (Data, URLResponse) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
326 | let data: Data
327 | let response: URLResponse
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/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:337:72: error: cannot find type 'URLRequest' in scope
335 | }
336 |
337 | private func handle(data: Data, response: URLResponse, for request: URLRequest, errorContext: String?, attempt: Int = 1) async throws(APIError)
| `- error: cannot find type 'URLRequest' in scope
338 | -> Data
339 | {
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:337:46: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
335 | }
336 |
337 | private func handle(data: Data, response: URLResponse, for request: URLRequest, errorContext: String?, attempt: Int = 1) async throws(APIError)
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
338 | -> Data
339 | {
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/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:213:8: error: stored property 'urlSession' of 'Sendable'-conforming class 'RESTClient' has non-sendable type 'URLSession' (aka 'AnyObject')
211 | let jsonEncoder: JSONEncoder
212 | let jsonDecoder: JSONDecoder
213 | let urlSession: URLSession
| `- error: stored property 'urlSession' of 'Sendable'-conforming class 'RESTClient' has non-sendable type 'URLSession' (aka 'AnyObject')
214 | let requestPlugins: [any RequestPlugin]
215 | let responsePlugins: [any ResponsePlugin]
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:292:21: error: cannot find 'URLRequest' in scope
290 | }
291 |
292 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
293 | request.httpMethod = method.rawValue
294 |
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:327:21: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
325 | private func performRequest(_ request: URLRequest, errorContext: String?) async throws(APIError) -> (Data, URLResponse) {
326 | let data: Data
327 | let response: URLResponse
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
328 | do {
329 | (data, response) = try await self.urlSession.data(for: request)
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/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:329:55: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
327 | let response: URLResponse
328 | do {
329 | (data, response) = try await self.urlSession.data(for: request)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
330 | } catch {
331 | throw APIError.failedToLoadData(error, self.errorContext(requestContext: errorContext))
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:340:45: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
338 | -> Data
339 | {
340 | guard var httpResponse = response as? HTTPURLResponse else {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
341 | throw .unexpectedResponseType(response, self.errorContext(requestContext: errorContext))
342 | }
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/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:353:27: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
351 | }
352 |
353 | switch httpResponse.statusCode {
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
354 | case 200..<300:
355 | return data
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:363:61: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
361 |
362 | // respect the server retry-after(-ms) value if it exists, allowing values betwen 0.5-5 seconds
363 | if let retryAfterMillisecondsString = httpResponse.value(forHTTPHeaderField: "retry-after-ms"),
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
364 | let retryAfterMilliseconds = Double(retryAfterMillisecondsString)
365 | {
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:367:56: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
365 | {
366 | sleepSeconds = max(0.5, min(retryAfterMilliseconds, 5))
367 | } else if let retryAfterString = httpResponse.value(forHTTPHeaderField: "retry-after"),
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
368 | let retryAfter = Double(retryAfterString)
369 | {
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:385:55: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
383 | guard !data.isEmpty else {
384 | throw .clientError(
385 | "Unexpected status code \(httpResponse.statusCode) without a response body.",
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
386 | self.errorContext(requestContext: errorContext)
387 | )
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:399:51: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
397 |
398 | default:
399 | throw .unexpectedStatusCode(httpResponse.statusCode, self.errorContext(requestContext: errorContext))
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
400 | }
401 | }
[216/414] Compiling HandySwift PrintResponsePlugin.swift
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/PrintRequestPlugin.swift:85:40: error: cannot find type 'URLRequest' in scope
83 | ///
84 | /// - Parameter request: The URLRequest to potentially log and pass through unchanged.
85 | public func apply(to request: inout URLRequest) {
| `- error: cannot find type 'URLRequest' in scope
86 | if self.debugOnly {
87 | #if DEBUG
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/PrintRequestPlugin.swift:98:41: error: cannot find type 'URLRequest' in scope
96 | ///
97 | /// - Parameter request: The URLRequest to print details for.
98 | private func printRequest(_ request: URLRequest) {
| `- error: cannot find type 'URLRequest' in scope
99 | var requestBodyString: String?
100 | if let bodyData = request.httpBody {
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:201:36: error: cannot find type 'URLRequest' in scope
199 |
200 | public protocol RequestPlugin: Sendable {
201 | func apply(to request: inout URLRequest)
| `- error: cannot find type 'URLRequest' in scope
202 | }
203 |
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/PrintResponsePlugin.swift:93:41: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
91 | /// - data: The response body data to potentially log.
92 | /// - Throws: Does not throw errors, but passes through any errors from the response processing.
93 | public func apply(to response: inout HTTPURLResponse, data: inout Data) throws {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
94 | if self.debugOnly {
95 | #if DEBUG
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/.build/checkouts/HandySwift/Sources/HandySwift/Types/PrintResponsePlugin.swift:108:43: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
106 | /// - response: The HTTPURLResponse to print details for.
107 | /// - data: The response body data to print.
108 | private func printResponse(_ response: HTTPURLResponse, data: Data) {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
109 | var responseBodyString: String?
110 | if !data.isEmpty {
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/.build/checkouts/HandySwift/Sources/HandySwift/Types/PrintResponsePlugin.swift:116:35: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
114 | // Clean headers formatting - sorted alphabetically for consistency, no AnyHashable wrappers
115 | var headersString = ""
116 | let cleanHeaders = response.allHeaderFields
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
117 | .compactMapValues { "\($0)" }
118 | .sorted { "\($0.key)" < "\($1.key)" }
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/PrintResponsePlugin.swift:124:44: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
122 |
123 | print(
124 | "[RESTClient] Response \(response.statusCode) from '\(response.url!)'\n\nResponse headers:\(headersString)\n\nResponse body:\n\(responseBodyString ?? "No body")"
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
125 | )
126 | }
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:19:35: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
17 | case failedToDecodeClientErrorBody(Error, Context?)
18 | case clientError(String, Context?)
19 | case unexpectedResponseType(URLResponse, Context?)
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
20 | case unexpectedStatusCode(Int, Context?)
21 |
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/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:19:12: error: associated value 'unexpectedResponseType' of 'Sendable'-conforming enum 'APIError' has non-sendable type 'URLResponse' (aka 'AnyObject')
17 | case failedToDecodeClientErrorBody(Error, Context?)
18 | case clientError(String, Context?)
19 | case unexpectedResponseType(URLResponse, Context?)
| `- error: associated value 'unexpectedResponseType' of 'Sendable'-conforming enum 'APIError' has non-sendable type 'URLResponse' (aka 'AnyObject')
20 | case unexpectedStatusCode(Int, Context?)
21 |
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:205:37: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
203 |
204 | public protocol ResponsePlugin: Sendable {
205 | func apply(to response: inout HTTPURLResponse, data: inout Data) throws
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
206 | }
207 |
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/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:213:20: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
211 | let jsonEncoder: JSONEncoder
212 | let jsonDecoder: JSONDecoder
213 | let urlSession: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
214 | let requestPlugins: [any RequestPlugin]
215 | let responsePlugins: [any ResponsePlugin]
Foundation.URLSession:2:18: note: 'URLSession' 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 URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:226:19: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
224 | jsonEncoder: JSONEncoder = .init(),
225 | jsonDecoder: JSONDecoder = .init(),
226 | urlSession: URLSession = .shared,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
227 | requestPlugins: [any RequestPlugin] = [],
228 | responsePlugins: [any ResponsePlugin] = [],
Foundation.URLSession:2:18: note: 'URLSession' 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 URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:226:33: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
224 | jsonEncoder: JSONEncoder = .init(),
225 | jsonDecoder: JSONDecoder = .init(),
226 | urlSession: URLSession = .shared,
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
227 | requestPlugins: [any RequestPlugin] = [],
228 | responsePlugins: [any ResponsePlugin] = [],
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:325:43: error: cannot find type 'URLRequest' in scope
323 | }
324 |
325 | private func performRequest(_ request: URLRequest, errorContext: String?) async throws(APIError) -> (Data, URLResponse) {
| `- error: cannot find type 'URLRequest' in scope
326 | let data: Data
327 | let response: URLResponse
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:325:111: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
323 | }
324 |
325 | private func performRequest(_ request: URLRequest, errorContext: String?) async throws(APIError) -> (Data, URLResponse) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
326 | let data: Data
327 | let response: URLResponse
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/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:337:72: error: cannot find type 'URLRequest' in scope
335 | }
336 |
337 | private func handle(data: Data, response: URLResponse, for request: URLRequest, errorContext: String?, attempt: Int = 1) async throws(APIError)
| `- error: cannot find type 'URLRequest' in scope
338 | -> Data
339 | {
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:337:46: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
335 | }
336 |
337 | private func handle(data: Data, response: URLResponse, for request: URLRequest, errorContext: String?, attempt: Int = 1) async throws(APIError)
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
338 | -> Data
339 | {
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/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:213:8: error: stored property 'urlSession' of 'Sendable'-conforming class 'RESTClient' has non-sendable type 'URLSession' (aka 'AnyObject')
211 | let jsonEncoder: JSONEncoder
212 | let jsonDecoder: JSONDecoder
213 | let urlSession: URLSession
| `- error: stored property 'urlSession' of 'Sendable'-conforming class 'RESTClient' has non-sendable type 'URLSession' (aka 'AnyObject')
214 | let requestPlugins: [any RequestPlugin]
215 | let responsePlugins: [any ResponsePlugin]
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:292:21: error: cannot find 'URLRequest' in scope
290 | }
291 |
292 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
293 | request.httpMethod = method.rawValue
294 |
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:327:21: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
325 | private func performRequest(_ request: URLRequest, errorContext: String?) async throws(APIError) -> (Data, URLResponse) {
326 | let data: Data
327 | let response: URLResponse
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
328 | do {
329 | (data, response) = try await self.urlSession.data(for: request)
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/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:329:55: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
327 | let response: URLResponse
328 | do {
329 | (data, response) = try await self.urlSession.data(for: request)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
330 | } catch {
331 | throw APIError.failedToLoadData(error, self.errorContext(requestContext: errorContext))
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:340:45: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
338 | -> Data
339 | {
340 | guard var httpResponse = response as? HTTPURLResponse else {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
341 | throw .unexpectedResponseType(response, self.errorContext(requestContext: errorContext))
342 | }
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/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:353:27: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
351 | }
352 |
353 | switch httpResponse.statusCode {
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
354 | case 200..<300:
355 | return data
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:363:61: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
361 |
362 | // respect the server retry-after(-ms) value if it exists, allowing values betwen 0.5-5 seconds
363 | if let retryAfterMillisecondsString = httpResponse.value(forHTTPHeaderField: "retry-after-ms"),
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
364 | let retryAfterMilliseconds = Double(retryAfterMillisecondsString)
365 | {
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:367:56: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
365 | {
366 | sleepSeconds = max(0.5, min(retryAfterMilliseconds, 5))
367 | } else if let retryAfterString = httpResponse.value(forHTTPHeaderField: "retry-after"),
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
368 | let retryAfter = Double(retryAfterString)
369 | {
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:385:55: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
383 | guard !data.isEmpty else {
384 | throw .clientError(
385 | "Unexpected status code \(httpResponse.statusCode) without a response body.",
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
386 | self.errorContext(requestContext: errorContext)
387 | )
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:399:51: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
397 |
398 | default:
399 | throw .unexpectedStatusCode(httpResponse.statusCode, self.errorContext(requestContext: errorContext))
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
400 | }
401 | }
[217/414] Compiling HandySwift RESTClient.swift
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/PrintRequestPlugin.swift:85:40: error: cannot find type 'URLRequest' in scope
83 | ///
84 | /// - Parameter request: The URLRequest to potentially log and pass through unchanged.
85 | public func apply(to request: inout URLRequest) {
| `- error: cannot find type 'URLRequest' in scope
86 | if self.debugOnly {
87 | #if DEBUG
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/PrintRequestPlugin.swift:98:41: error: cannot find type 'URLRequest' in scope
96 | ///
97 | /// - Parameter request: The URLRequest to print details for.
98 | private func printRequest(_ request: URLRequest) {
| `- error: cannot find type 'URLRequest' in scope
99 | var requestBodyString: String?
100 | if let bodyData = request.httpBody {
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:201:36: error: cannot find type 'URLRequest' in scope
199 |
200 | public protocol RequestPlugin: Sendable {
201 | func apply(to request: inout URLRequest)
| `- error: cannot find type 'URLRequest' in scope
202 | }
203 |
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/PrintResponsePlugin.swift:93:41: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
91 | /// - data: The response body data to potentially log.
92 | /// - Throws: Does not throw errors, but passes through any errors from the response processing.
93 | public func apply(to response: inout HTTPURLResponse, data: inout Data) throws {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
94 | if self.debugOnly {
95 | #if DEBUG
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/.build/checkouts/HandySwift/Sources/HandySwift/Types/PrintResponsePlugin.swift:108:43: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
106 | /// - response: The HTTPURLResponse to print details for.
107 | /// - data: The response body data to print.
108 | private func printResponse(_ response: HTTPURLResponse, data: Data) {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
109 | var responseBodyString: String?
110 | if !data.isEmpty {
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/.build/checkouts/HandySwift/Sources/HandySwift/Types/PrintResponsePlugin.swift:116:35: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
114 | // Clean headers formatting - sorted alphabetically for consistency, no AnyHashable wrappers
115 | var headersString = ""
116 | let cleanHeaders = response.allHeaderFields
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
117 | .compactMapValues { "\($0)" }
118 | .sorted { "\($0.key)" < "\($1.key)" }
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/PrintResponsePlugin.swift:124:44: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
122 |
123 | print(
124 | "[RESTClient] Response \(response.statusCode) from '\(response.url!)'\n\nResponse headers:\(headersString)\n\nResponse body:\n\(responseBodyString ?? "No body")"
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
125 | )
126 | }
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:19:35: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
17 | case failedToDecodeClientErrorBody(Error, Context?)
18 | case clientError(String, Context?)
19 | case unexpectedResponseType(URLResponse, Context?)
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
20 | case unexpectedStatusCode(Int, Context?)
21 |
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/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:19:12: error: associated value 'unexpectedResponseType' of 'Sendable'-conforming enum 'APIError' has non-sendable type 'URLResponse' (aka 'AnyObject')
17 | case failedToDecodeClientErrorBody(Error, Context?)
18 | case clientError(String, Context?)
19 | case unexpectedResponseType(URLResponse, Context?)
| `- error: associated value 'unexpectedResponseType' of 'Sendable'-conforming enum 'APIError' has non-sendable type 'URLResponse' (aka 'AnyObject')
20 | case unexpectedStatusCode(Int, Context?)
21 |
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:205:37: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
203 |
204 | public protocol ResponsePlugin: Sendable {
205 | func apply(to response: inout HTTPURLResponse, data: inout Data) throws
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
206 | }
207 |
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/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:213:20: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
211 | let jsonEncoder: JSONEncoder
212 | let jsonDecoder: JSONDecoder
213 | let urlSession: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
214 | let requestPlugins: [any RequestPlugin]
215 | let responsePlugins: [any ResponsePlugin]
Foundation.URLSession:2:18: note: 'URLSession' 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 URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:226:19: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
224 | jsonEncoder: JSONEncoder = .init(),
225 | jsonDecoder: JSONDecoder = .init(),
226 | urlSession: URLSession = .shared,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
227 | requestPlugins: [any RequestPlugin] = [],
228 | responsePlugins: [any ResponsePlugin] = [],
Foundation.URLSession:2:18: note: 'URLSession' 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 URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:226:33: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
224 | jsonEncoder: JSONEncoder = .init(),
225 | jsonDecoder: JSONDecoder = .init(),
226 | urlSession: URLSession = .shared,
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
227 | requestPlugins: [any RequestPlugin] = [],
228 | responsePlugins: [any ResponsePlugin] = [],
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:325:43: error: cannot find type 'URLRequest' in scope
323 | }
324 |
325 | private func performRequest(_ request: URLRequest, errorContext: String?) async throws(APIError) -> (Data, URLResponse) {
| `- error: cannot find type 'URLRequest' in scope
326 | let data: Data
327 | let response: URLResponse
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:325:111: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
323 | }
324 |
325 | private func performRequest(_ request: URLRequest, errorContext: String?) async throws(APIError) -> (Data, URLResponse) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
326 | let data: Data
327 | let response: URLResponse
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/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:337:72: error: cannot find type 'URLRequest' in scope
335 | }
336 |
337 | private func handle(data: Data, response: URLResponse, for request: URLRequest, errorContext: String?, attempt: Int = 1) async throws(APIError)
| `- error: cannot find type 'URLRequest' in scope
338 | -> Data
339 | {
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:337:46: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
335 | }
336 |
337 | private func handle(data: Data, response: URLResponse, for request: URLRequest, errorContext: String?, attempt: Int = 1) async throws(APIError)
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
338 | -> Data
339 | {
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/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:213:8: error: stored property 'urlSession' of 'Sendable'-conforming class 'RESTClient' has non-sendable type 'URLSession' (aka 'AnyObject')
211 | let jsonEncoder: JSONEncoder
212 | let jsonDecoder: JSONDecoder
213 | let urlSession: URLSession
| `- error: stored property 'urlSession' of 'Sendable'-conforming class 'RESTClient' has non-sendable type 'URLSession' (aka 'AnyObject')
214 | let requestPlugins: [any RequestPlugin]
215 | let responsePlugins: [any ResponsePlugin]
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:292:21: error: cannot find 'URLRequest' in scope
290 | }
291 |
292 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
293 | request.httpMethod = method.rawValue
294 |
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:327:21: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
325 | private func performRequest(_ request: URLRequest, errorContext: String?) async throws(APIError) -> (Data, URLResponse) {
326 | let data: Data
327 | let response: URLResponse
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
328 | do {
329 | (data, response) = try await self.urlSession.data(for: request)
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/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:329:55: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
327 | let response: URLResponse
328 | do {
329 | (data, response) = try await self.urlSession.data(for: request)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
330 | } catch {
331 | throw APIError.failedToLoadData(error, self.errorContext(requestContext: errorContext))
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:340:45: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
338 | -> Data
339 | {
340 | guard var httpResponse = response as? HTTPURLResponse else {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
341 | throw .unexpectedResponseType(response, self.errorContext(requestContext: errorContext))
342 | }
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/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:353:27: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
351 | }
352 |
353 | switch httpResponse.statusCode {
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
354 | case 200..<300:
355 | return data
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:363:61: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
361 |
362 | // respect the server retry-after(-ms) value if it exists, allowing values betwen 0.5-5 seconds
363 | if let retryAfterMillisecondsString = httpResponse.value(forHTTPHeaderField: "retry-after-ms"),
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
364 | let retryAfterMilliseconds = Double(retryAfterMillisecondsString)
365 | {
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:367:56: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
365 | {
366 | sleepSeconds = max(0.5, min(retryAfterMilliseconds, 5))
367 | } else if let retryAfterString = httpResponse.value(forHTTPHeaderField: "retry-after"),
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
368 | let retryAfter = Double(retryAfterString)
369 | {
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:385:55: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
383 | guard !data.isEmpty else {
384 | throw .clientError(
385 | "Unexpected status code \(httpResponse.statusCode) without a response body.",
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
386 | self.errorContext(requestContext: errorContext)
387 | )
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:399:51: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
397 |
398 | default:
399 | throw .unexpectedStatusCode(httpResponse.statusCode, self.errorContext(requestContext: errorContext))
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
400 | }
401 | }
[218/414] Compiling HandySwift SortedArray.swift
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/PrintRequestPlugin.swift:85:40: error: cannot find type 'URLRequest' in scope
83 | ///
84 | /// - Parameter request: The URLRequest to potentially log and pass through unchanged.
85 | public func apply(to request: inout URLRequest) {
| `- error: cannot find type 'URLRequest' in scope
86 | if self.debugOnly {
87 | #if DEBUG
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/PrintRequestPlugin.swift:98:41: error: cannot find type 'URLRequest' in scope
96 | ///
97 | /// - Parameter request: The URLRequest to print details for.
98 | private func printRequest(_ request: URLRequest) {
| `- error: cannot find type 'URLRequest' in scope
99 | var requestBodyString: String?
100 | if let bodyData = request.httpBody {
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:201:36: error: cannot find type 'URLRequest' in scope
199 |
200 | public protocol RequestPlugin: Sendable {
201 | func apply(to request: inout URLRequest)
| `- error: cannot find type 'URLRequest' in scope
202 | }
203 |
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/PrintResponsePlugin.swift:93:41: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
91 | /// - data: The response body data to potentially log.
92 | /// - Throws: Does not throw errors, but passes through any errors from the response processing.
93 | public func apply(to response: inout HTTPURLResponse, data: inout Data) throws {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
94 | if self.debugOnly {
95 | #if DEBUG
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/.build/checkouts/HandySwift/Sources/HandySwift/Types/PrintResponsePlugin.swift:108:43: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
106 | /// - response: The HTTPURLResponse to print details for.
107 | /// - data: The response body data to print.
108 | private func printResponse(_ response: HTTPURLResponse, data: Data) {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
109 | var responseBodyString: String?
110 | if !data.isEmpty {
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/.build/checkouts/HandySwift/Sources/HandySwift/Types/PrintResponsePlugin.swift:116:35: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
114 | // Clean headers formatting - sorted alphabetically for consistency, no AnyHashable wrappers
115 | var headersString = ""
116 | let cleanHeaders = response.allHeaderFields
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
117 | .compactMapValues { "\($0)" }
118 | .sorted { "\($0.key)" < "\($1.key)" }
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/PrintResponsePlugin.swift:124:44: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
122 |
123 | print(
124 | "[RESTClient] Response \(response.statusCode) from '\(response.url!)'\n\nResponse headers:\(headersString)\n\nResponse body:\n\(responseBodyString ?? "No body")"
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
125 | )
126 | }
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:19:35: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
17 | case failedToDecodeClientErrorBody(Error, Context?)
18 | case clientError(String, Context?)
19 | case unexpectedResponseType(URLResponse, Context?)
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
20 | case unexpectedStatusCode(Int, Context?)
21 |
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/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:19:12: error: associated value 'unexpectedResponseType' of 'Sendable'-conforming enum 'APIError' has non-sendable type 'URLResponse' (aka 'AnyObject')
17 | case failedToDecodeClientErrorBody(Error, Context?)
18 | case clientError(String, Context?)
19 | case unexpectedResponseType(URLResponse, Context?)
| `- error: associated value 'unexpectedResponseType' of 'Sendable'-conforming enum 'APIError' has non-sendable type 'URLResponse' (aka 'AnyObject')
20 | case unexpectedStatusCode(Int, Context?)
21 |
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:205:37: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
203 |
204 | public protocol ResponsePlugin: Sendable {
205 | func apply(to response: inout HTTPURLResponse, data: inout Data) throws
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
206 | }
207 |
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/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:213:20: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
211 | let jsonEncoder: JSONEncoder
212 | let jsonDecoder: JSONDecoder
213 | let urlSession: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
214 | let requestPlugins: [any RequestPlugin]
215 | let responsePlugins: [any ResponsePlugin]
Foundation.URLSession:2:18: note: 'URLSession' 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 URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:226:19: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
224 | jsonEncoder: JSONEncoder = .init(),
225 | jsonDecoder: JSONDecoder = .init(),
226 | urlSession: URLSession = .shared,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
227 | requestPlugins: [any RequestPlugin] = [],
228 | responsePlugins: [any ResponsePlugin] = [],
Foundation.URLSession:2:18: note: 'URLSession' 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 URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:226:33: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
224 | jsonEncoder: JSONEncoder = .init(),
225 | jsonDecoder: JSONDecoder = .init(),
226 | urlSession: URLSession = .shared,
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
227 | requestPlugins: [any RequestPlugin] = [],
228 | responsePlugins: [any ResponsePlugin] = [],
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:325:43: error: cannot find type 'URLRequest' in scope
323 | }
324 |
325 | private func performRequest(_ request: URLRequest, errorContext: String?) async throws(APIError) -> (Data, URLResponse) {
| `- error: cannot find type 'URLRequest' in scope
326 | let data: Data
327 | let response: URLResponse
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:325:111: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
323 | }
324 |
325 | private func performRequest(_ request: URLRequest, errorContext: String?) async throws(APIError) -> (Data, URLResponse) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
326 | let data: Data
327 | let response: URLResponse
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/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:337:72: error: cannot find type 'URLRequest' in scope
335 | }
336 |
337 | private func handle(data: Data, response: URLResponse, for request: URLRequest, errorContext: String?, attempt: Int = 1) async throws(APIError)
| `- error: cannot find type 'URLRequest' in scope
338 | -> Data
339 | {
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:337:46: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
335 | }
336 |
337 | private func handle(data: Data, response: URLResponse, for request: URLRequest, errorContext: String?, attempt: Int = 1) async throws(APIError)
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
338 | -> Data
339 | {
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/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:213:8: error: stored property 'urlSession' of 'Sendable'-conforming class 'RESTClient' has non-sendable type 'URLSession' (aka 'AnyObject')
211 | let jsonEncoder: JSONEncoder
212 | let jsonDecoder: JSONDecoder
213 | let urlSession: URLSession
| `- error: stored property 'urlSession' of 'Sendable'-conforming class 'RESTClient' has non-sendable type 'URLSession' (aka 'AnyObject')
214 | let requestPlugins: [any RequestPlugin]
215 | let responsePlugins: [any ResponsePlugin]
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:292:21: error: cannot find 'URLRequest' in scope
290 | }
291 |
292 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
293 | request.httpMethod = method.rawValue
294 |
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:327:21: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
325 | private func performRequest(_ request: URLRequest, errorContext: String?) async throws(APIError) -> (Data, URLResponse) {
326 | let data: Data
327 | let response: URLResponse
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
328 | do {
329 | (data, response) = try await self.urlSession.data(for: request)
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/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:329:55: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
327 | let response: URLResponse
328 | do {
329 | (data, response) = try await self.urlSession.data(for: request)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
330 | } catch {
331 | throw APIError.failedToLoadData(error, self.errorContext(requestContext: errorContext))
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:340:45: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
338 | -> Data
339 | {
340 | guard var httpResponse = response as? HTTPURLResponse else {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
341 | throw .unexpectedResponseType(response, self.errorContext(requestContext: errorContext))
342 | }
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/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:353:27: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
351 | }
352 |
353 | switch httpResponse.statusCode {
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
354 | case 200..<300:
355 | return data
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:363:61: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
361 |
362 | // respect the server retry-after(-ms) value if it exists, allowing values betwen 0.5-5 seconds
363 | if let retryAfterMillisecondsString = httpResponse.value(forHTTPHeaderField: "retry-after-ms"),
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
364 | let retryAfterMilliseconds = Double(retryAfterMillisecondsString)
365 | {
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:367:56: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
365 | {
366 | sleepSeconds = max(0.5, min(retryAfterMilliseconds, 5))
367 | } else if let retryAfterString = httpResponse.value(forHTTPHeaderField: "retry-after"),
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
368 | let retryAfter = Double(retryAfterString)
369 | {
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:385:55: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
383 | guard !data.isEmpty else {
384 | throw .clientError(
385 | "Unexpected status code \(httpResponse.statusCode) without a response body.",
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
386 | self.errorContext(requestContext: errorContext)
387 | )
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:399:51: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
397 |
398 | default:
399 | throw .unexpectedStatusCode(httpResponse.statusCode, self.errorContext(requestContext: errorContext))
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
400 | }
401 | }
[218/414] Compiling v3_crld.cc
[218/414] Compiling v3_extku.cc
[218/414] Compiling v3_enum.cc
[218/414] Compiling v3_info.cc
[218/414] Compiling v3_genn.cc
[218/414] Compiling v3_ia5.cc
[218/414] Compiling v3_cpols.cc
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-2":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1
wasm-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:062e4aaff76454b333ce7957a8e87c3beb342f1dedb64399abb81cdea021b526
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest
[0/1] Planning build
Building for debugging...
[0/197] Compiling v3_enum.cc
[1/197] Compiling v3_crld.cc
[2/197] Compiling v3_ia5.cc
[3/197] Compiling v3_conf.cc
[4/197] Compiling v3_genn.cc
[5/197] Compiling v3_info.cc
[6/197] Compiling v3_extku.cc
[7/197] Write swift-version-24593BA9C3E375BF.txt
[8/197] Compiling v3_cpols.cc
[9/231] Compiling v3_bitst.cc
[11/231] Compiling HandySwift FloatExt.swift
[12/231] Compiling HandySwift IntExt.swift
[13/231] Compiling HandySwift JSONDecoderExt.swift
[14/231] Compiling HandySwift JSONEncoderExt.swift
[15/231] Compiling HandySwift NSRangeExt.swift
[16/231] Compiling HandySwift DateExt.swift
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Extensions/DispatchTimeIntervalExt.swift:3:11: error: cannot find type 'DispatchTimeInterval' in scope
1 | import Foundation
2 |
3 | extension DispatchTimeInterval {
| `- error: cannot find type 'DispatchTimeInterval' in scope
4 | /// Converts the dispatch time interval to seconds using the `TimeInterval` type.
5 | /// This is useful for when you need to work with `DispatchTimeInterval` values in contexts that require `TimeInterval` (in seconds),
[17/231] Compiling HandySwift DictionaryExt.swift
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Extensions/DispatchTimeIntervalExt.swift:3:11: error: cannot find type 'DispatchTimeInterval' in scope
1 | import Foundation
2 |
3 | extension DispatchTimeInterval {
| `- error: cannot find type 'DispatchTimeInterval' in scope
4 | /// Converts the dispatch time interval to seconds using the `TimeInterval` type.
5 | /// This is useful for when you need to work with `DispatchTimeInterval` values in contexts that require `TimeInterval` (in seconds),
[18/231] Compiling HandySwift DispatchTimeIntervalExt.swift
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Extensions/DispatchTimeIntervalExt.swift:3:11: error: cannot find type 'DispatchTimeInterval' in scope
1 | import Foundation
2 |
3 | extension DispatchTimeInterval {
| `- error: cannot find type 'DispatchTimeInterval' in scope
4 | /// Converts the dispatch time interval to seconds using the `TimeInterval` type.
5 | /// This is useful for when you need to work with `DispatchTimeInterval` values in contexts that require `TimeInterval` (in seconds),
[19/231] Compiling HandySwift DoubleExt.swift
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Extensions/DispatchTimeIntervalExt.swift:3:11: error: cannot find type 'DispatchTimeInterval' in scope
1 | import Foundation
2 |
3 | extension DispatchTimeInterval {
| `- error: cannot find type 'DispatchTimeInterval' in scope
4 | /// Converts the dispatch time interval to seconds using the `TimeInterval` type.
5 | /// This is useful for when you need to work with `DispatchTimeInterval` values in contexts that require `TimeInterval` (in seconds),
[20/231] Compiling HandySwift DurationExt.swift
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Extensions/DispatchTimeIntervalExt.swift:3:11: error: cannot find type 'DispatchTimeInterval' in scope
1 | import Foundation
2 |
3 | extension DispatchTimeInterval {
| `- error: cannot find type 'DispatchTimeInterval' in scope
4 | /// Converts the dispatch time interval to seconds using the `TimeInterval` type.
5 | /// This is useful for when you need to work with `DispatchTimeInterval` values in contexts that require `TimeInterval` (in seconds),
[20/235] Compiling t_x509.cc
[21/235] Compiling v3_bcons.cc
[23/235] Compiling HandySwift ArrayExt.swift
[24/235] Compiling HandySwift CaseIterableExt.swift
[25/235] Compiling HandySwift CollectionExt.swift
[26/235] Compiling HandySwift ComparableExt.swift
[27/235] Compiling HandySwift DataExt.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[28/235] Emitting module HandySwift
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Extensions/DispatchTimeIntervalExt.swift:3:11: error: cannot find type 'DispatchTimeInterval' in scope
1 | import Foundation
2 |
3 | extension DispatchTimeInterval {
| `- error: cannot find type 'DispatchTimeInterval' in scope
4 | /// Converts the dispatch time interval to seconds using the `TimeInterval` type.
5 | /// This is useful for when you need to work with `DispatchTimeInterval` values in contexts that require `TimeInterval` (in seconds),
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Globals.swift:9:60: error: cannot find type 'DispatchQoS' in scope
7 | /// - qosClass: The global QoS class to be used or `nil` to use the main thread. Defaults to `nil`.
8 | /// - closure: The code to run with a delay.
9 | public func delay(by timeInterval: TimeInterval, qosClass: DispatchQoS.QoSClass? = nil, _ closure: @Sendable @escaping () -> Void) {
| `- error: cannot find type 'DispatchQoS' in scope
10 | let dispatchQueue = qosClass != nil ? DispatchQueue.global(qos: qosClass!) : DispatchQueue.main
11 | dispatchQueue.asyncAfter(deadline: DispatchTime.now() + timeInterval, execute: closure)
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Globals.swift:22:52: error: cannot find type 'DispatchQoS' in scope
20 | @_disfavoredOverload
21 | @available(iOS 16, macOS 13, tvOS 16, visionOS 1, watchOS 9, *)
22 | public func delay(by duration: Duration, qosClass: DispatchQoS.QoSClass? = nil, _ closure: @Sendable @escaping () -> Void) {
| `- error: cannot find type 'DispatchQoS' in scope
23 | let dispatchQueue = qosClass != nil ? DispatchQueue.global(qos: qosClass!) : DispatchQueue.main
24 | dispatchQueue.asyncAfter(deadline: DispatchTime.now() + duration.timeInterval, execute: closure)
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/PrintRequestPlugin.swift:85:40: error: cannot find type 'URLRequest' in scope
83 | ///
84 | /// - Parameter request: The URLRequest to potentially log and pass through unchanged.
85 | public func apply(to request: inout URLRequest) {
| `- error: cannot find type 'URLRequest' in scope
86 | if self.debugOnly {
87 | #if DEBUG
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/PrintRequestPlugin.swift:98:41: error: cannot find type 'URLRequest' in scope
96 | ///
97 | /// - Parameter request: The URLRequest to print details for.
98 | private func printRequest(_ request: URLRequest) {
| `- error: cannot find type 'URLRequest' in scope
99 | var requestBodyString: String?
100 | if let bodyData = request.httpBody {
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:201:36: error: cannot find type 'URLRequest' in scope
199 |
200 | public protocol RequestPlugin: Sendable {
201 | func apply(to request: inout URLRequest)
| `- error: cannot find type 'URLRequest' in scope
202 | }
203 |
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/PrintResponsePlugin.swift:93:41: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
91 | /// - data: The response body data to potentially log.
92 | /// - Throws: Does not throw errors, but passes through any errors from the response processing.
93 | public func apply(to response: inout HTTPURLResponse, data: inout Data) throws {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
94 | if self.debugOnly {
95 | #if DEBUG
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/.build/checkouts/HandySwift/Sources/HandySwift/Types/PrintResponsePlugin.swift:108:43: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
106 | /// - response: The HTTPURLResponse to print details for.
107 | /// - data: The response body data to print.
108 | private func printResponse(_ response: HTTPURLResponse, data: Data) {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
109 | var responseBodyString: String?
110 | if !data.isEmpty {
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/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:19:35: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
17 | case failedToDecodeClientErrorBody(Error, Context?)
18 | case clientError(String, Context?)
19 | case unexpectedResponseType(URLResponse, Context?)
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
20 | case unexpectedStatusCode(Int, Context?)
21 |
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/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:19:12: error: associated value 'unexpectedResponseType' of 'Sendable'-conforming enum 'APIError' has non-sendable type 'URLResponse' (aka 'AnyObject')
17 | case failedToDecodeClientErrorBody(Error, Context?)
18 | case clientError(String, Context?)
19 | case unexpectedResponseType(URLResponse, Context?)
| `- error: associated value 'unexpectedResponseType' of 'Sendable'-conforming enum 'APIError' has non-sendable type 'URLResponse' (aka 'AnyObject')
20 | case unexpectedStatusCode(Int, Context?)
21 |
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:205:37: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
203 |
204 | public protocol ResponsePlugin: Sendable {
205 | func apply(to response: inout HTTPURLResponse, data: inout Data) throws
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
206 | }
207 |
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/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:213:20: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
211 | let jsonEncoder: JSONEncoder
212 | let jsonDecoder: JSONDecoder
213 | let urlSession: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
214 | let requestPlugins: [any RequestPlugin]
215 | let responsePlugins: [any ResponsePlugin]
Foundation.URLSession:2:18: note: 'URLSession' 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 URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:226:19: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
224 | jsonEncoder: JSONEncoder = .init(),
225 | jsonDecoder: JSONDecoder = .init(),
226 | urlSession: URLSession = .shared,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
227 | requestPlugins: [any RequestPlugin] = [],
228 | responsePlugins: [any ResponsePlugin] = [],
Foundation.URLSession:2:18: note: 'URLSession' 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 URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:226:33: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
224 | jsonEncoder: JSONEncoder = .init(),
225 | jsonDecoder: JSONDecoder = .init(),
226 | urlSession: URLSession = .shared,
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
227 | requestPlugins: [any RequestPlugin] = [],
228 | responsePlugins: [any ResponsePlugin] = [],
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:325:43: error: cannot find type 'URLRequest' in scope
323 | }
324 |
325 | private func performRequest(_ request: URLRequest, errorContext: String?) async throws(APIError) -> (Data, URLResponse) {
| `- error: cannot find type 'URLRequest' in scope
326 | let data: Data
327 | let response: URLResponse
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:325:111: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
323 | }
324 |
325 | private func performRequest(_ request: URLRequest, errorContext: String?) async throws(APIError) -> (Data, URLResponse) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
326 | let data: Data
327 | let response: URLResponse
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/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:337:72: error: cannot find type 'URLRequest' in scope
335 | }
336 |
337 | private func handle(data: Data, response: URLResponse, for request: URLRequest, errorContext: String?, attempt: Int = 1) async throws(APIError)
| `- error: cannot find type 'URLRequest' in scope
338 | -> Data
339 | {
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:337:46: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
335 | }
336 |
337 | private func handle(data: Data, response: URLResponse, for request: URLRequest, errorContext: String?, attempt: Int = 1) async throws(APIError)
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
338 | -> Data
339 | {
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/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:213:8: error: stored property 'urlSession' of 'Sendable'-conforming class 'RESTClient' has non-sendable type 'URLSession' (aka 'AnyObject')
211 | let jsonEncoder: JSONEncoder
212 | let jsonDecoder: JSONDecoder
213 | let urlSession: URLSession
| `- error: stored property 'urlSession' of 'Sendable'-conforming class 'RESTClient' has non-sendable type 'URLSession' (aka 'AnyObject')
214 | let requestPlugins: [any RequestPlugin]
215 | let responsePlugins: [any ResponsePlugin]
[28/235] Compiling v3_alt.cc
[29/235] Compiling t_x509a.cc
[31/235] Compiling HandySwift HandyRegex.swift
[32/235] Compiling HandySwift LogRequestPlugin.swift
[33/235] Compiling HandySwift LogResponsePlugin.swift
[34/235] Compiling HandySwift OperatingSystem.swift
[34/235] Compiling v3_akeya.cc
[35/235] Compiling v3_akey.cc
[37/235] Compiling HandySwift TimeIntervalExt.swift
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Globals.swift:9:60: error: cannot find type 'DispatchQoS' in scope
7 | /// - qosClass: The global QoS class to be used or `nil` to use the main thread. Defaults to `nil`.
8 | /// - closure: The code to run with a delay.
9 | public func delay(by timeInterval: TimeInterval, qosClass: DispatchQoS.QoSClass? = nil, _ closure: @Sendable @escaping () -> Void) {
| `- error: cannot find type 'DispatchQoS' in scope
10 | let dispatchQueue = qosClass != nil ? DispatchQueue.global(qos: qosClass!) : DispatchQueue.main
11 | dispatchQueue.asyncAfter(deadline: DispatchTime.now() + timeInterval, execute: closure)
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Globals.swift:22:52: error: cannot find type 'DispatchQoS' in scope
20 | @_disfavoredOverload
21 | @available(iOS 16, macOS 13, tvOS 16, visionOS 1, watchOS 9, *)
22 | public func delay(by duration: Duration, qosClass: DispatchQoS.QoSClass? = nil, _ closure: @Sendable @escaping () -> Void) {
| `- error: cannot find type 'DispatchQoS' in scope
23 | let dispatchQueue = qosClass != nil ? DispatchQueue.global(qos: qosClass!) : DispatchQueue.main
24 | dispatchQueue.asyncAfter(deadline: DispatchTime.now() + duration.timeInterval, execute: closure)
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Globals.swift:10:42: error: cannot find 'DispatchQueue' in scope
8 | /// - closure: The code to run with a delay.
9 | public func delay(by timeInterval: TimeInterval, qosClass: DispatchQoS.QoSClass? = nil, _ closure: @Sendable @escaping () -> Void) {
10 | let dispatchQueue = qosClass != nil ? DispatchQueue.global(qos: qosClass!) : DispatchQueue.main
| `- error: cannot find 'DispatchQueue' in scope
11 | dispatchQueue.asyncAfter(deadline: DispatchTime.now() + timeInterval, execute: closure)
12 | }
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Globals.swift:10:81: error: cannot find 'DispatchQueue' in scope
8 | /// - closure: The code to run with a delay.
9 | public func delay(by timeInterval: TimeInterval, qosClass: DispatchQoS.QoSClass? = nil, _ closure: @Sendable @escaping () -> Void) {
10 | let dispatchQueue = qosClass != nil ? DispatchQueue.global(qos: qosClass!) : DispatchQueue.main
| `- error: cannot find 'DispatchQueue' in scope
11 | dispatchQueue.asyncAfter(deadline: DispatchTime.now() + timeInterval, execute: closure)
12 | }
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Globals.swift:11:39: error: cannot find 'DispatchTime' in scope
9 | public func delay(by timeInterval: TimeInterval, qosClass: DispatchQoS.QoSClass? = nil, _ closure: @Sendable @escaping () -> Void) {
10 | let dispatchQueue = qosClass != nil ? DispatchQueue.global(qos: qosClass!) : DispatchQueue.main
11 | dispatchQueue.asyncAfter(deadline: DispatchTime.now() + timeInterval, execute: closure)
| `- error: cannot find 'DispatchTime' in scope
12 | }
13 |
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Globals.swift:23:42: error: cannot find 'DispatchQueue' in scope
21 | @available(iOS 16, macOS 13, tvOS 16, visionOS 1, watchOS 9, *)
22 | public func delay(by duration: Duration, qosClass: DispatchQoS.QoSClass? = nil, _ closure: @Sendable @escaping () -> Void) {
23 | let dispatchQueue = qosClass != nil ? DispatchQueue.global(qos: qosClass!) : DispatchQueue.main
| `- error: cannot find 'DispatchQueue' in scope
24 | dispatchQueue.asyncAfter(deadline: DispatchTime.now() + duration.timeInterval, execute: closure)
25 | }
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Globals.swift:23:81: error: cannot find 'DispatchQueue' in scope
21 | @available(iOS 16, macOS 13, tvOS 16, visionOS 1, watchOS 9, *)
22 | public func delay(by duration: Duration, qosClass: DispatchQoS.QoSClass? = nil, _ closure: @Sendable @escaping () -> Void) {
23 | let dispatchQueue = qosClass != nil ? DispatchQueue.global(qos: qosClass!) : DispatchQueue.main
| `- error: cannot find 'DispatchQueue' in scope
24 | dispatchQueue.asyncAfter(deadline: DispatchTime.now() + duration.timeInterval, execute: closure)
25 | }
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Globals.swift:24:39: error: cannot find 'DispatchTime' in scope
22 | public func delay(by duration: Duration, qosClass: DispatchQoS.QoSClass? = nil, _ closure: @Sendable @escaping () -> Void) {
23 | let dispatchQueue = qosClass != nil ? DispatchQueue.global(qos: qosClass!) : DispatchQueue.main
24 | dispatchQueue.asyncAfter(deadline: DispatchTime.now() + duration.timeInterval, execute: closure)
| `- error: cannot find 'DispatchTime' in scope
25 | }
26 |
[38/235] Compiling HandySwift Globals.swift
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Globals.swift:9:60: error: cannot find type 'DispatchQoS' in scope
7 | /// - qosClass: The global QoS class to be used or `nil` to use the main thread. Defaults to `nil`.
8 | /// - closure: The code to run with a delay.
9 | public func delay(by timeInterval: TimeInterval, qosClass: DispatchQoS.QoSClass? = nil, _ closure: @Sendable @escaping () -> Void) {
| `- error: cannot find type 'DispatchQoS' in scope
10 | let dispatchQueue = qosClass != nil ? DispatchQueue.global(qos: qosClass!) : DispatchQueue.main
11 | dispatchQueue.asyncAfter(deadline: DispatchTime.now() + timeInterval, execute: closure)
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Globals.swift:22:52: error: cannot find type 'DispatchQoS' in scope
20 | @_disfavoredOverload
21 | @available(iOS 16, macOS 13, tvOS 16, visionOS 1, watchOS 9, *)
22 | public func delay(by duration: Duration, qosClass: DispatchQoS.QoSClass? = nil, _ closure: @Sendable @escaping () -> Void) {
| `- error: cannot find type 'DispatchQoS' in scope
23 | let dispatchQueue = qosClass != nil ? DispatchQueue.global(qos: qosClass!) : DispatchQueue.main
24 | dispatchQueue.asyncAfter(deadline: DispatchTime.now() + duration.timeInterval, execute: closure)
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Globals.swift:10:42: error: cannot find 'DispatchQueue' in scope
8 | /// - closure: The code to run with a delay.
9 | public func delay(by timeInterval: TimeInterval, qosClass: DispatchQoS.QoSClass? = nil, _ closure: @Sendable @escaping () -> Void) {
10 | let dispatchQueue = qosClass != nil ? DispatchQueue.global(qos: qosClass!) : DispatchQueue.main
| `- error: cannot find 'DispatchQueue' in scope
11 | dispatchQueue.asyncAfter(deadline: DispatchTime.now() + timeInterval, execute: closure)
12 | }
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Globals.swift:10:81: error: cannot find 'DispatchQueue' in scope
8 | /// - closure: The code to run with a delay.
9 | public func delay(by timeInterval: TimeInterval, qosClass: DispatchQoS.QoSClass? = nil, _ closure: @Sendable @escaping () -> Void) {
10 | let dispatchQueue = qosClass != nil ? DispatchQueue.global(qos: qosClass!) : DispatchQueue.main
| `- error: cannot find 'DispatchQueue' in scope
11 | dispatchQueue.asyncAfter(deadline: DispatchTime.now() + timeInterval, execute: closure)
12 | }
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Globals.swift:11:39: error: cannot find 'DispatchTime' in scope
9 | public func delay(by timeInterval: TimeInterval, qosClass: DispatchQoS.QoSClass? = nil, _ closure: @Sendable @escaping () -> Void) {
10 | let dispatchQueue = qosClass != nil ? DispatchQueue.global(qos: qosClass!) : DispatchQueue.main
11 | dispatchQueue.asyncAfter(deadline: DispatchTime.now() + timeInterval, execute: closure)
| `- error: cannot find 'DispatchTime' in scope
12 | }
13 |
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Globals.swift:23:42: error: cannot find 'DispatchQueue' in scope
21 | @available(iOS 16, macOS 13, tvOS 16, visionOS 1, watchOS 9, *)
22 | public func delay(by duration: Duration, qosClass: DispatchQoS.QoSClass? = nil, _ closure: @Sendable @escaping () -> Void) {
23 | let dispatchQueue = qosClass != nil ? DispatchQueue.global(qos: qosClass!) : DispatchQueue.main
| `- error: cannot find 'DispatchQueue' in scope
24 | dispatchQueue.asyncAfter(deadline: DispatchTime.now() + duration.timeInterval, execute: closure)
25 | }
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Globals.swift:23:81: error: cannot find 'DispatchQueue' in scope
21 | @available(iOS 16, macOS 13, tvOS 16, visionOS 1, watchOS 9, *)
22 | public func delay(by duration: Duration, qosClass: DispatchQoS.QoSClass? = nil, _ closure: @Sendable @escaping () -> Void) {
23 | let dispatchQueue = qosClass != nil ? DispatchQueue.global(qos: qosClass!) : DispatchQueue.main
| `- error: cannot find 'DispatchQueue' in scope
24 | dispatchQueue.asyncAfter(deadline: DispatchTime.now() + duration.timeInterval, execute: closure)
25 | }
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Globals.swift:24:39: error: cannot find 'DispatchTime' in scope
22 | public func delay(by duration: Duration, qosClass: DispatchQoS.QoSClass? = nil, _ closure: @Sendable @escaping () -> Void) {
23 | let dispatchQueue = qosClass != nil ? DispatchQueue.global(qos: qosClass!) : DispatchQueue.main
24 | dispatchQueue.asyncAfter(deadline: DispatchTime.now() + duration.timeInterval, execute: closure)
| `- error: cannot find 'DispatchTime' in scope
25 | }
26 |
[39/235] Compiling HandySwift AutoConforming.swift
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Globals.swift:9:60: error: cannot find type 'DispatchQoS' in scope
7 | /// - qosClass: The global QoS class to be used or `nil` to use the main thread. Defaults to `nil`.
8 | /// - closure: The code to run with a delay.
9 | public func delay(by timeInterval: TimeInterval, qosClass: DispatchQoS.QoSClass? = nil, _ closure: @Sendable @escaping () -> Void) {
| `- error: cannot find type 'DispatchQoS' in scope
10 | let dispatchQueue = qosClass != nil ? DispatchQueue.global(qos: qosClass!) : DispatchQueue.main
11 | dispatchQueue.asyncAfter(deadline: DispatchTime.now() + timeInterval, execute: closure)
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Globals.swift:22:52: error: cannot find type 'DispatchQoS' in scope
20 | @_disfavoredOverload
21 | @available(iOS 16, macOS 13, tvOS 16, visionOS 1, watchOS 9, *)
22 | public func delay(by duration: Duration, qosClass: DispatchQoS.QoSClass? = nil, _ closure: @Sendable @escaping () -> Void) {
| `- error: cannot find type 'DispatchQoS' in scope
23 | let dispatchQueue = qosClass != nil ? DispatchQueue.global(qos: qosClass!) : DispatchQueue.main
24 | dispatchQueue.asyncAfter(deadline: DispatchTime.now() + duration.timeInterval, execute: closure)
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Globals.swift:10:42: error: cannot find 'DispatchQueue' in scope
8 | /// - closure: The code to run with a delay.
9 | public func delay(by timeInterval: TimeInterval, qosClass: DispatchQoS.QoSClass? = nil, _ closure: @Sendable @escaping () -> Void) {
10 | let dispatchQueue = qosClass != nil ? DispatchQueue.global(qos: qosClass!) : DispatchQueue.main
| `- error: cannot find 'DispatchQueue' in scope
11 | dispatchQueue.asyncAfter(deadline: DispatchTime.now() + timeInterval, execute: closure)
12 | }
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Globals.swift:10:81: error: cannot find 'DispatchQueue' in scope
8 | /// - closure: The code to run with a delay.
9 | public func delay(by timeInterval: TimeInterval, qosClass: DispatchQoS.QoSClass? = nil, _ closure: @Sendable @escaping () -> Void) {
10 | let dispatchQueue = qosClass != nil ? DispatchQueue.global(qos: qosClass!) : DispatchQueue.main
| `- error: cannot find 'DispatchQueue' in scope
11 | dispatchQueue.asyncAfter(deadline: DispatchTime.now() + timeInterval, execute: closure)
12 | }
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Globals.swift:11:39: error: cannot find 'DispatchTime' in scope
9 | public func delay(by timeInterval: TimeInterval, qosClass: DispatchQoS.QoSClass? = nil, _ closure: @Sendable @escaping () -> Void) {
10 | let dispatchQueue = qosClass != nil ? DispatchQueue.global(qos: qosClass!) : DispatchQueue.main
11 | dispatchQueue.asyncAfter(deadline: DispatchTime.now() + timeInterval, execute: closure)
| `- error: cannot find 'DispatchTime' in scope
12 | }
13 |
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Globals.swift:23:42: error: cannot find 'DispatchQueue' in scope
21 | @available(iOS 16, macOS 13, tvOS 16, visionOS 1, watchOS 9, *)
22 | public func delay(by duration: Duration, qosClass: DispatchQoS.QoSClass? = nil, _ closure: @Sendable @escaping () -> Void) {
23 | let dispatchQueue = qosClass != nil ? DispatchQueue.global(qos: qosClass!) : DispatchQueue.main
| `- error: cannot find 'DispatchQueue' in scope
24 | dispatchQueue.asyncAfter(deadline: DispatchTime.now() + duration.timeInterval, execute: closure)
25 | }
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Globals.swift:23:81: error: cannot find 'DispatchQueue' in scope
21 | @available(iOS 16, macOS 13, tvOS 16, visionOS 1, watchOS 9, *)
22 | public func delay(by duration: Duration, qosClass: DispatchQoS.QoSClass? = nil, _ closure: @Sendable @escaping () -> Void) {
23 | let dispatchQueue = qosClass != nil ? DispatchQueue.global(qos: qosClass!) : DispatchQueue.main
| `- error: cannot find 'DispatchQueue' in scope
24 | dispatchQueue.asyncAfter(deadline: DispatchTime.now() + duration.timeInterval, execute: closure)
25 | }
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Globals.swift:24:39: error: cannot find 'DispatchTime' in scope
22 | public func delay(by duration: Duration, qosClass: DispatchQoS.QoSClass? = nil, _ closure: @Sendable @escaping () -> Void) {
23 | let dispatchQueue = qosClass != nil ? DispatchQueue.global(qos: qosClass!) : DispatchQueue.main
24 | dispatchQueue.asyncAfter(deadline: DispatchTime.now() + duration.timeInterval, execute: closure)
| `- error: cannot find 'DispatchTime' in scope
25 | }
26 |
[40/235] Compiling HandySwift DivisibleArithmetic.swift
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Globals.swift:9:60: error: cannot find type 'DispatchQoS' in scope
7 | /// - qosClass: The global QoS class to be used or `nil` to use the main thread. Defaults to `nil`.
8 | /// - closure: The code to run with a delay.
9 | public func delay(by timeInterval: TimeInterval, qosClass: DispatchQoS.QoSClass? = nil, _ closure: @Sendable @escaping () -> Void) {
| `- error: cannot find type 'DispatchQoS' in scope
10 | let dispatchQueue = qosClass != nil ? DispatchQueue.global(qos: qosClass!) : DispatchQueue.main
11 | dispatchQueue.asyncAfter(deadline: DispatchTime.now() + timeInterval, execute: closure)
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Globals.swift:22:52: error: cannot find type 'DispatchQoS' in scope
20 | @_disfavoredOverload
21 | @available(iOS 16, macOS 13, tvOS 16, visionOS 1, watchOS 9, *)
22 | public func delay(by duration: Duration, qosClass: DispatchQoS.QoSClass? = nil, _ closure: @Sendable @escaping () -> Void) {
| `- error: cannot find type 'DispatchQoS' in scope
23 | let dispatchQueue = qosClass != nil ? DispatchQueue.global(qos: qosClass!) : DispatchQueue.main
24 | dispatchQueue.asyncAfter(deadline: DispatchTime.now() + duration.timeInterval, execute: closure)
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Globals.swift:10:42: error: cannot find 'DispatchQueue' in scope
8 | /// - closure: The code to run with a delay.
9 | public func delay(by timeInterval: TimeInterval, qosClass: DispatchQoS.QoSClass? = nil, _ closure: @Sendable @escaping () -> Void) {
10 | let dispatchQueue = qosClass != nil ? DispatchQueue.global(qos: qosClass!) : DispatchQueue.main
| `- error: cannot find 'DispatchQueue' in scope
11 | dispatchQueue.asyncAfter(deadline: DispatchTime.now() + timeInterval, execute: closure)
12 | }
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Globals.swift:10:81: error: cannot find 'DispatchQueue' in scope
8 | /// - closure: The code to run with a delay.
9 | public func delay(by timeInterval: TimeInterval, qosClass: DispatchQoS.QoSClass? = nil, _ closure: @Sendable @escaping () -> Void) {
10 | let dispatchQueue = qosClass != nil ? DispatchQueue.global(qos: qosClass!) : DispatchQueue.main
| `- error: cannot find 'DispatchQueue' in scope
11 | dispatchQueue.asyncAfter(deadline: DispatchTime.now() + timeInterval, execute: closure)
12 | }
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Globals.swift:11:39: error: cannot find 'DispatchTime' in scope
9 | public func delay(by timeInterval: TimeInterval, qosClass: DispatchQoS.QoSClass? = nil, _ closure: @Sendable @escaping () -> Void) {
10 | let dispatchQueue = qosClass != nil ? DispatchQueue.global(qos: qosClass!) : DispatchQueue.main
11 | dispatchQueue.asyncAfter(deadline: DispatchTime.now() + timeInterval, execute: closure)
| `- error: cannot find 'DispatchTime' in scope
12 | }
13 |
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Globals.swift:23:42: error: cannot find 'DispatchQueue' in scope
21 | @available(iOS 16, macOS 13, tvOS 16, visionOS 1, watchOS 9, *)
22 | public func delay(by duration: Duration, qosClass: DispatchQoS.QoSClass? = nil, _ closure: @Sendable @escaping () -> Void) {
23 | let dispatchQueue = qosClass != nil ? DispatchQueue.global(qos: qosClass!) : DispatchQueue.main
| `- error: cannot find 'DispatchQueue' in scope
24 | dispatchQueue.asyncAfter(deadline: DispatchTime.now() + duration.timeInterval, execute: closure)
25 | }
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Globals.swift:23:81: error: cannot find 'DispatchQueue' in scope
21 | @available(iOS 16, macOS 13, tvOS 16, visionOS 1, watchOS 9, *)
22 | public func delay(by duration: Duration, qosClass: DispatchQoS.QoSClass? = nil, _ closure: @Sendable @escaping () -> Void) {
23 | let dispatchQueue = qosClass != nil ? DispatchQueue.global(qos: qosClass!) : DispatchQueue.main
| `- error: cannot find 'DispatchQueue' in scope
24 | dispatchQueue.asyncAfter(deadline: DispatchTime.now() + duration.timeInterval, execute: closure)
25 | }
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Globals.swift:24:39: error: cannot find 'DispatchTime' in scope
22 | public func delay(by duration: Duration, qosClass: DispatchQoS.QoSClass? = nil, _ closure: @Sendable @escaping () -> Void) {
23 | let dispatchQueue = qosClass != nil ? DispatchQueue.global(qos: qosClass!) : DispatchQueue.main
24 | dispatchQueue.asyncAfter(deadline: DispatchTime.now() + duration.timeInterval, execute: closure)
| `- error: cannot find 'DispatchTime' in scope
25 | }
26 |
[41/235] Compiling HandySwift Withable.swift
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Globals.swift:9:60: error: cannot find type 'DispatchQoS' in scope
7 | /// - qosClass: The global QoS class to be used or `nil` to use the main thread. Defaults to `nil`.
8 | /// - closure: The code to run with a delay.
9 | public func delay(by timeInterval: TimeInterval, qosClass: DispatchQoS.QoSClass? = nil, _ closure: @Sendable @escaping () -> Void) {
| `- error: cannot find type 'DispatchQoS' in scope
10 | let dispatchQueue = qosClass != nil ? DispatchQueue.global(qos: qosClass!) : DispatchQueue.main
11 | dispatchQueue.asyncAfter(deadline: DispatchTime.now() + timeInterval, execute: closure)
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Globals.swift:22:52: error: cannot find type 'DispatchQoS' in scope
20 | @_disfavoredOverload
21 | @available(iOS 16, macOS 13, tvOS 16, visionOS 1, watchOS 9, *)
22 | public func delay(by duration: Duration, qosClass: DispatchQoS.QoSClass? = nil, _ closure: @Sendable @escaping () -> Void) {
| `- error: cannot find type 'DispatchQoS' in scope
23 | let dispatchQueue = qosClass != nil ? DispatchQueue.global(qos: qosClass!) : DispatchQueue.main
24 | dispatchQueue.asyncAfter(deadline: DispatchTime.now() + duration.timeInterval, execute: closure)
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Globals.swift:10:42: error: cannot find 'DispatchQueue' in scope
8 | /// - closure: The code to run with a delay.
9 | public func delay(by timeInterval: TimeInterval, qosClass: DispatchQoS.QoSClass? = nil, _ closure: @Sendable @escaping () -> Void) {
10 | let dispatchQueue = qosClass != nil ? DispatchQueue.global(qos: qosClass!) : DispatchQueue.main
| `- error: cannot find 'DispatchQueue' in scope
11 | dispatchQueue.asyncAfter(deadline: DispatchTime.now() + timeInterval, execute: closure)
12 | }
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Globals.swift:10:81: error: cannot find 'DispatchQueue' in scope
8 | /// - closure: The code to run with a delay.
9 | public func delay(by timeInterval: TimeInterval, qosClass: DispatchQoS.QoSClass? = nil, _ closure: @Sendable @escaping () -> Void) {
10 | let dispatchQueue = qosClass != nil ? DispatchQueue.global(qos: qosClass!) : DispatchQueue.main
| `- error: cannot find 'DispatchQueue' in scope
11 | dispatchQueue.asyncAfter(deadline: DispatchTime.now() + timeInterval, execute: closure)
12 | }
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Globals.swift:11:39: error: cannot find 'DispatchTime' in scope
9 | public func delay(by timeInterval: TimeInterval, qosClass: DispatchQoS.QoSClass? = nil, _ closure: @Sendable @escaping () -> Void) {
10 | let dispatchQueue = qosClass != nil ? DispatchQueue.global(qos: qosClass!) : DispatchQueue.main
11 | dispatchQueue.asyncAfter(deadline: DispatchTime.now() + timeInterval, execute: closure)
| `- error: cannot find 'DispatchTime' in scope
12 | }
13 |
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Globals.swift:23:42: error: cannot find 'DispatchQueue' in scope
21 | @available(iOS 16, macOS 13, tvOS 16, visionOS 1, watchOS 9, *)
22 | public func delay(by duration: Duration, qosClass: DispatchQoS.QoSClass? = nil, _ closure: @Sendable @escaping () -> Void) {
23 | let dispatchQueue = qosClass != nil ? DispatchQueue.global(qos: qosClass!) : DispatchQueue.main
| `- error: cannot find 'DispatchQueue' in scope
24 | dispatchQueue.asyncAfter(deadline: DispatchTime.now() + duration.timeInterval, execute: closure)
25 | }
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Globals.swift:23:81: error: cannot find 'DispatchQueue' in scope
21 | @available(iOS 16, macOS 13, tvOS 16, visionOS 1, watchOS 9, *)
22 | public func delay(by duration: Duration, qosClass: DispatchQoS.QoSClass? = nil, _ closure: @Sendable @escaping () -> Void) {
23 | let dispatchQueue = qosClass != nil ? DispatchQueue.global(qos: qosClass!) : DispatchQueue.main
| `- error: cannot find 'DispatchQueue' in scope
24 | dispatchQueue.asyncAfter(deadline: DispatchTime.now() + duration.timeInterval, execute: closure)
25 | }
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Globals.swift:24:39: error: cannot find 'DispatchTime' in scope
22 | public func delay(by duration: Duration, qosClass: DispatchQoS.QoSClass? = nil, _ closure: @Sendable @escaping () -> Void) {
23 | let dispatchQueue = qosClass != nil ? DispatchQueue.global(qos: qosClass!) : DispatchQueue.main
24 | dispatchQueue.asyncAfter(deadline: DispatchTime.now() + duration.timeInterval, execute: closure)
| `- error: cannot find 'DispatchTime' in scope
25 | }
26 |
[42/235] Compiling HandySwift Debouncer.swift
[43/235] Compiling HandySwift FrequencyTable.swift
[44/235] Compiling HandySwift GregorianDay.swift
[45/235] Compiling HandySwift GregorianTime.swift
[46/235] Compiling HandySwift RandomAccessCollectionExt.swift
[47/235] Compiling HandySwift SequenceExt.swift
[48/235] Compiling HandySwift StringExt.swift
[49/235] Compiling HandySwift StringProtocolExt.swift
[50/235] Compiling HandySwift SymmetricKeyExt.swift
[50/235] Compiling i2d_pr.cc
[51/235] Compiling rsa_pss.cc
[52/235] Compiling t_req.cc
[53/235] Compiling policy.cc
[54/235] Compiling name_print.cc
[55/235] Compiling t_crl.cc
[56/235] Compiling by_file.cc
[57/235] Compiling asn1_gen.cc
[58/235] Compiling a_verify.cc
[59/235] Compiling by_dir.cc
[60/235] Compiling algorithm.cc
[61/235] Compiling a_sign.cc
[62/235] Compiling a_digest.cc
[63/235] Compiling voprf.cc
[65/235] Compiling HandySwift PrintRequestPlugin.swift
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/PrintRequestPlugin.swift:85:40: error: cannot find type 'URLRequest' in scope
83 | ///
84 | /// - Parameter request: The URLRequest to potentially log and pass through unchanged.
85 | public func apply(to request: inout URLRequest) {
| `- error: cannot find type 'URLRequest' in scope
86 | if self.debugOnly {
87 | #if DEBUG
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/PrintRequestPlugin.swift:98:41: error: cannot find type 'URLRequest' in scope
96 | ///
97 | /// - Parameter request: The URLRequest to print details for.
98 | private func printRequest(_ request: URLRequest) {
| `- error: cannot find type 'URLRequest' in scope
99 | var requestBodyString: String?
100 | if let bodyData = request.httpBody {
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:201:36: error: cannot find type 'URLRequest' in scope
199 |
200 | public protocol RequestPlugin: Sendable {
201 | func apply(to request: inout URLRequest)
| `- error: cannot find type 'URLRequest' in scope
202 | }
203 |
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/PrintResponsePlugin.swift:93:41: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
91 | /// - data: The response body data to potentially log.
92 | /// - Throws: Does not throw errors, but passes through any errors from the response processing.
93 | public func apply(to response: inout HTTPURLResponse, data: inout Data) throws {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
94 | if self.debugOnly {
95 | #if DEBUG
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/.build/checkouts/HandySwift/Sources/HandySwift/Types/PrintResponsePlugin.swift:108:43: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
106 | /// - response: The HTTPURLResponse to print details for.
107 | /// - data: The response body data to print.
108 | private func printResponse(_ response: HTTPURLResponse, data: Data) {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
109 | var responseBodyString: String?
110 | if !data.isEmpty {
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/.build/checkouts/HandySwift/Sources/HandySwift/Types/PrintResponsePlugin.swift:116:35: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
114 | // Clean headers formatting - sorted alphabetically for consistency, no AnyHashable wrappers
115 | var headersString = ""
116 | let cleanHeaders = response.allHeaderFields
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
117 | .compactMapValues { "\($0)" }
118 | .sorted { "\($0.key)" < "\($1.key)" }
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/PrintResponsePlugin.swift:124:44: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
122 |
123 | print(
124 | "[RESTClient] Response \(response.statusCode) from '\(response.url!)'\n\nResponse headers:\(headersString)\n\nResponse body:\n\(responseBodyString ?? "No body")"
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
125 | )
126 | }
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:19:35: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
17 | case failedToDecodeClientErrorBody(Error, Context?)
18 | case clientError(String, Context?)
19 | case unexpectedResponseType(URLResponse, Context?)
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
20 | case unexpectedStatusCode(Int, Context?)
21 |
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/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:19:12: error: associated value 'unexpectedResponseType' of 'Sendable'-conforming enum 'APIError' has non-sendable type 'URLResponse' (aka 'AnyObject')
17 | case failedToDecodeClientErrorBody(Error, Context?)
18 | case clientError(String, Context?)
19 | case unexpectedResponseType(URLResponse, Context?)
| `- error: associated value 'unexpectedResponseType' of 'Sendable'-conforming enum 'APIError' has non-sendable type 'URLResponse' (aka 'AnyObject')
20 | case unexpectedStatusCode(Int, Context?)
21 |
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:205:37: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
203 |
204 | public protocol ResponsePlugin: Sendable {
205 | func apply(to response: inout HTTPURLResponse, data: inout Data) throws
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
206 | }
207 |
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/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:213:20: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
211 | let jsonEncoder: JSONEncoder
212 | let jsonDecoder: JSONDecoder
213 | let urlSession: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
214 | let requestPlugins: [any RequestPlugin]
215 | let responsePlugins: [any ResponsePlugin]
Foundation.URLSession:2:18: note: 'URLSession' 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 URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:226:19: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
224 | jsonEncoder: JSONEncoder = .init(),
225 | jsonDecoder: JSONDecoder = .init(),
226 | urlSession: URLSession = .shared,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
227 | requestPlugins: [any RequestPlugin] = [],
228 | responsePlugins: [any ResponsePlugin] = [],
Foundation.URLSession:2:18: note: 'URLSession' 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 URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:226:33: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
224 | jsonEncoder: JSONEncoder = .init(),
225 | jsonDecoder: JSONDecoder = .init(),
226 | urlSession: URLSession = .shared,
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
227 | requestPlugins: [any RequestPlugin] = [],
228 | responsePlugins: [any ResponsePlugin] = [],
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:325:43: error: cannot find type 'URLRequest' in scope
323 | }
324 |
325 | private func performRequest(_ request: URLRequest, errorContext: String?) async throws(APIError) -> (Data, URLResponse) {
| `- error: cannot find type 'URLRequest' in scope
326 | let data: Data
327 | let response: URLResponse
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:325:111: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
323 | }
324 |
325 | private func performRequest(_ request: URLRequest, errorContext: String?) async throws(APIError) -> (Data, URLResponse) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
326 | let data: Data
327 | let response: URLResponse
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/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:337:72: error: cannot find type 'URLRequest' in scope
335 | }
336 |
337 | private func handle(data: Data, response: URLResponse, for request: URLRequest, errorContext: String?, attempt: Int = 1) async throws(APIError)
| `- error: cannot find type 'URLRequest' in scope
338 | -> Data
339 | {
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:337:46: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
335 | }
336 |
337 | private func handle(data: Data, response: URLResponse, for request: URLRequest, errorContext: String?, attempt: Int = 1) async throws(APIError)
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
338 | -> Data
339 | {
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/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:213:8: error: stored property 'urlSession' of 'Sendable'-conforming class 'RESTClient' has non-sendable type 'URLSession' (aka 'AnyObject')
211 | let jsonEncoder: JSONEncoder
212 | let jsonDecoder: JSONDecoder
213 | let urlSession: URLSession
| `- error: stored property 'urlSession' of 'Sendable'-conforming class 'RESTClient' has non-sendable type 'URLSession' (aka 'AnyObject')
214 | let requestPlugins: [any RequestPlugin]
215 | let responsePlugins: [any ResponsePlugin]
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:292:21: error: cannot find 'URLRequest' in scope
290 | }
291 |
292 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
293 | request.httpMethod = method.rawValue
294 |
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:327:21: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
325 | private func performRequest(_ request: URLRequest, errorContext: String?) async throws(APIError) -> (Data, URLResponse) {
326 | let data: Data
327 | let response: URLResponse
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
328 | do {
329 | (data, response) = try await self.urlSession.data(for: request)
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/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:329:55: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
327 | let response: URLResponse
328 | do {
329 | (data, response) = try await self.urlSession.data(for: request)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
330 | } catch {
331 | throw APIError.failedToLoadData(error, self.errorContext(requestContext: errorContext))
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:340:45: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
338 | -> Data
339 | {
340 | guard var httpResponse = response as? HTTPURLResponse else {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
341 | throw .unexpectedResponseType(response, self.errorContext(requestContext: errorContext))
342 | }
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/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:353:27: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
351 | }
352 |
353 | switch httpResponse.statusCode {
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
354 | case 200..<300:
355 | return data
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:363:61: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
361 |
362 | // respect the server retry-after(-ms) value if it exists, allowing values betwen 0.5-5 seconds
363 | if let retryAfterMillisecondsString = httpResponse.value(forHTTPHeaderField: "retry-after-ms"),
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
364 | let retryAfterMilliseconds = Double(retryAfterMillisecondsString)
365 | {
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:367:56: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
365 | {
366 | sleepSeconds = max(0.5, min(retryAfterMilliseconds, 5))
367 | } else if let retryAfterString = httpResponse.value(forHTTPHeaderField: "retry-after"),
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
368 | let retryAfter = Double(retryAfterString)
369 | {
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:385:55: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
383 | guard !data.isEmpty else {
384 | throw .clientError(
385 | "Unexpected status code \(httpResponse.statusCode) without a response body.",
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
386 | self.errorContext(requestContext: errorContext)
387 | )
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:399:51: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
397 |
398 | default:
399 | throw .unexpectedStatusCode(httpResponse.statusCode, self.errorContext(requestContext: errorContext))
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
400 | }
401 | }
[66/235] Compiling HandySwift PrintResponsePlugin.swift
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/PrintRequestPlugin.swift:85:40: error: cannot find type 'URLRequest' in scope
83 | ///
84 | /// - Parameter request: The URLRequest to potentially log and pass through unchanged.
85 | public func apply(to request: inout URLRequest) {
| `- error: cannot find type 'URLRequest' in scope
86 | if self.debugOnly {
87 | #if DEBUG
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/PrintRequestPlugin.swift:98:41: error: cannot find type 'URLRequest' in scope
96 | ///
97 | /// - Parameter request: The URLRequest to print details for.
98 | private func printRequest(_ request: URLRequest) {
| `- error: cannot find type 'URLRequest' in scope
99 | var requestBodyString: String?
100 | if let bodyData = request.httpBody {
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:201:36: error: cannot find type 'URLRequest' in scope
199 |
200 | public protocol RequestPlugin: Sendable {
201 | func apply(to request: inout URLRequest)
| `- error: cannot find type 'URLRequest' in scope
202 | }
203 |
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/PrintResponsePlugin.swift:93:41: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
91 | /// - data: The response body data to potentially log.
92 | /// - Throws: Does not throw errors, but passes through any errors from the response processing.
93 | public func apply(to response: inout HTTPURLResponse, data: inout Data) throws {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
94 | if self.debugOnly {
95 | #if DEBUG
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/.build/checkouts/HandySwift/Sources/HandySwift/Types/PrintResponsePlugin.swift:108:43: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
106 | /// - response: The HTTPURLResponse to print details for.
107 | /// - data: The response body data to print.
108 | private func printResponse(_ response: HTTPURLResponse, data: Data) {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
109 | var responseBodyString: String?
110 | if !data.isEmpty {
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/.build/checkouts/HandySwift/Sources/HandySwift/Types/PrintResponsePlugin.swift:116:35: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
114 | // Clean headers formatting - sorted alphabetically for consistency, no AnyHashable wrappers
115 | var headersString = ""
116 | let cleanHeaders = response.allHeaderFields
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
117 | .compactMapValues { "\($0)" }
118 | .sorted { "\($0.key)" < "\($1.key)" }
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/PrintResponsePlugin.swift:124:44: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
122 |
123 | print(
124 | "[RESTClient] Response \(response.statusCode) from '\(response.url!)'\n\nResponse headers:\(headersString)\n\nResponse body:\n\(responseBodyString ?? "No body")"
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
125 | )
126 | }
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:19:35: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
17 | case failedToDecodeClientErrorBody(Error, Context?)
18 | case clientError(String, Context?)
19 | case unexpectedResponseType(URLResponse, Context?)
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
20 | case unexpectedStatusCode(Int, Context?)
21 |
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/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:19:12: error: associated value 'unexpectedResponseType' of 'Sendable'-conforming enum 'APIError' has non-sendable type 'URLResponse' (aka 'AnyObject')
17 | case failedToDecodeClientErrorBody(Error, Context?)
18 | case clientError(String, Context?)
19 | case unexpectedResponseType(URLResponse, Context?)
| `- error: associated value 'unexpectedResponseType' of 'Sendable'-conforming enum 'APIError' has non-sendable type 'URLResponse' (aka 'AnyObject')
20 | case unexpectedStatusCode(Int, Context?)
21 |
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:205:37: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
203 |
204 | public protocol ResponsePlugin: Sendable {
205 | func apply(to response: inout HTTPURLResponse, data: inout Data) throws
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
206 | }
207 |
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/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:213:20: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
211 | let jsonEncoder: JSONEncoder
212 | let jsonDecoder: JSONDecoder
213 | let urlSession: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
214 | let requestPlugins: [any RequestPlugin]
215 | let responsePlugins: [any ResponsePlugin]
Foundation.URLSession:2:18: note: 'URLSession' 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 URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:226:19: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
224 | jsonEncoder: JSONEncoder = .init(),
225 | jsonDecoder: JSONDecoder = .init(),
226 | urlSession: URLSession = .shared,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
227 | requestPlugins: [any RequestPlugin] = [],
228 | responsePlugins: [any ResponsePlugin] = [],
Foundation.URLSession:2:18: note: 'URLSession' 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 URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:226:33: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
224 | jsonEncoder: JSONEncoder = .init(),
225 | jsonDecoder: JSONDecoder = .init(),
226 | urlSession: URLSession = .shared,
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
227 | requestPlugins: [any RequestPlugin] = [],
228 | responsePlugins: [any ResponsePlugin] = [],
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:325:43: error: cannot find type 'URLRequest' in scope
323 | }
324 |
325 | private func performRequest(_ request: URLRequest, errorContext: String?) async throws(APIError) -> (Data, URLResponse) {
| `- error: cannot find type 'URLRequest' in scope
326 | let data: Data
327 | let response: URLResponse
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:325:111: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
323 | }
324 |
325 | private func performRequest(_ request: URLRequest, errorContext: String?) async throws(APIError) -> (Data, URLResponse) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
326 | let data: Data
327 | let response: URLResponse
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/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:337:72: error: cannot find type 'URLRequest' in scope
335 | }
336 |
337 | private func handle(data: Data, response: URLResponse, for request: URLRequest, errorContext: String?, attempt: Int = 1) async throws(APIError)
| `- error: cannot find type 'URLRequest' in scope
338 | -> Data
339 | {
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:337:46: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
335 | }
336 |
337 | private func handle(data: Data, response: URLResponse, for request: URLRequest, errorContext: String?, attempt: Int = 1) async throws(APIError)
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
338 | -> Data
339 | {
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/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:213:8: error: stored property 'urlSession' of 'Sendable'-conforming class 'RESTClient' has non-sendable type 'URLSession' (aka 'AnyObject')
211 | let jsonEncoder: JSONEncoder
212 | let jsonDecoder: JSONDecoder
213 | let urlSession: URLSession
| `- error: stored property 'urlSession' of 'Sendable'-conforming class 'RESTClient' has non-sendable type 'URLSession' (aka 'AnyObject')
214 | let requestPlugins: [any RequestPlugin]
215 | let responsePlugins: [any ResponsePlugin]
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:292:21: error: cannot find 'URLRequest' in scope
290 | }
291 |
292 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
293 | request.httpMethod = method.rawValue
294 |
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:327:21: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
325 | private func performRequest(_ request: URLRequest, errorContext: String?) async throws(APIError) -> (Data, URLResponse) {
326 | let data: Data
327 | let response: URLResponse
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
328 | do {
329 | (data, response) = try await self.urlSession.data(for: request)
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/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:329:55: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
327 | let response: URLResponse
328 | do {
329 | (data, response) = try await self.urlSession.data(for: request)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
330 | } catch {
331 | throw APIError.failedToLoadData(error, self.errorContext(requestContext: errorContext))
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:340:45: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
338 | -> Data
339 | {
340 | guard var httpResponse = response as? HTTPURLResponse else {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
341 | throw .unexpectedResponseType(response, self.errorContext(requestContext: errorContext))
342 | }
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/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:353:27: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
351 | }
352 |
353 | switch httpResponse.statusCode {
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
354 | case 200..<300:
355 | return data
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:363:61: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
361 |
362 | // respect the server retry-after(-ms) value if it exists, allowing values betwen 0.5-5 seconds
363 | if let retryAfterMillisecondsString = httpResponse.value(forHTTPHeaderField: "retry-after-ms"),
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
364 | let retryAfterMilliseconds = Double(retryAfterMillisecondsString)
365 | {
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:367:56: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
365 | {
366 | sleepSeconds = max(0.5, min(retryAfterMilliseconds, 5))
367 | } else if let retryAfterString = httpResponse.value(forHTTPHeaderField: "retry-after"),
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
368 | let retryAfter = Double(retryAfterString)
369 | {
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:385:55: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
383 | guard !data.isEmpty else {
384 | throw .clientError(
385 | "Unexpected status code \(httpResponse.statusCode) without a response body.",
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
386 | self.errorContext(requestContext: errorContext)
387 | )
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:399:51: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
397 |
398 | default:
399 | throw .unexpectedStatusCode(httpResponse.statusCode, self.errorContext(requestContext: errorContext))
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
400 | }
401 | }
[67/235] Compiling HandySwift RESTClient.swift
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/PrintRequestPlugin.swift:85:40: error: cannot find type 'URLRequest' in scope
83 | ///
84 | /// - Parameter request: The URLRequest to potentially log and pass through unchanged.
85 | public func apply(to request: inout URLRequest) {
| `- error: cannot find type 'URLRequest' in scope
86 | if self.debugOnly {
87 | #if DEBUG
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/PrintRequestPlugin.swift:98:41: error: cannot find type 'URLRequest' in scope
96 | ///
97 | /// - Parameter request: The URLRequest to print details for.
98 | private func printRequest(_ request: URLRequest) {
| `- error: cannot find type 'URLRequest' in scope
99 | var requestBodyString: String?
100 | if let bodyData = request.httpBody {
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:201:36: error: cannot find type 'URLRequest' in scope
199 |
200 | public protocol RequestPlugin: Sendable {
201 | func apply(to request: inout URLRequest)
| `- error: cannot find type 'URLRequest' in scope
202 | }
203 |
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/PrintResponsePlugin.swift:93:41: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
91 | /// - data: The response body data to potentially log.
92 | /// - Throws: Does not throw errors, but passes through any errors from the response processing.
93 | public func apply(to response: inout HTTPURLResponse, data: inout Data) throws {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
94 | if self.debugOnly {
95 | #if DEBUG
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/.build/checkouts/HandySwift/Sources/HandySwift/Types/PrintResponsePlugin.swift:108:43: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
106 | /// - response: The HTTPURLResponse to print details for.
107 | /// - data: The response body data to print.
108 | private func printResponse(_ response: HTTPURLResponse, data: Data) {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
109 | var responseBodyString: String?
110 | if !data.isEmpty {
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/.build/checkouts/HandySwift/Sources/HandySwift/Types/PrintResponsePlugin.swift:116:35: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
114 | // Clean headers formatting - sorted alphabetically for consistency, no AnyHashable wrappers
115 | var headersString = ""
116 | let cleanHeaders = response.allHeaderFields
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
117 | .compactMapValues { "\($0)" }
118 | .sorted { "\($0.key)" < "\($1.key)" }
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/PrintResponsePlugin.swift:124:44: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
122 |
123 | print(
124 | "[RESTClient] Response \(response.statusCode) from '\(response.url!)'\n\nResponse headers:\(headersString)\n\nResponse body:\n\(responseBodyString ?? "No body")"
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
125 | )
126 | }
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:19:35: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
17 | case failedToDecodeClientErrorBody(Error, Context?)
18 | case clientError(String, Context?)
19 | case unexpectedResponseType(URLResponse, Context?)
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
20 | case unexpectedStatusCode(Int, Context?)
21 |
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/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:19:12: error: associated value 'unexpectedResponseType' of 'Sendable'-conforming enum 'APIError' has non-sendable type 'URLResponse' (aka 'AnyObject')
17 | case failedToDecodeClientErrorBody(Error, Context?)
18 | case clientError(String, Context?)
19 | case unexpectedResponseType(URLResponse, Context?)
| `- error: associated value 'unexpectedResponseType' of 'Sendable'-conforming enum 'APIError' has non-sendable type 'URLResponse' (aka 'AnyObject')
20 | case unexpectedStatusCode(Int, Context?)
21 |
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:205:37: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
203 |
204 | public protocol ResponsePlugin: Sendable {
205 | func apply(to response: inout HTTPURLResponse, data: inout Data) throws
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
206 | }
207 |
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/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:213:20: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
211 | let jsonEncoder: JSONEncoder
212 | let jsonDecoder: JSONDecoder
213 | let urlSession: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
214 | let requestPlugins: [any RequestPlugin]
215 | let responsePlugins: [any ResponsePlugin]
Foundation.URLSession:2:18: note: 'URLSession' 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 URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:226:19: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
224 | jsonEncoder: JSONEncoder = .init(),
225 | jsonDecoder: JSONDecoder = .init(),
226 | urlSession: URLSession = .shared,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
227 | requestPlugins: [any RequestPlugin] = [],
228 | responsePlugins: [any ResponsePlugin] = [],
Foundation.URLSession:2:18: note: 'URLSession' 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 URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:226:33: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
224 | jsonEncoder: JSONEncoder = .init(),
225 | jsonDecoder: JSONDecoder = .init(),
226 | urlSession: URLSession = .shared,
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
227 | requestPlugins: [any RequestPlugin] = [],
228 | responsePlugins: [any ResponsePlugin] = [],
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:325:43: error: cannot find type 'URLRequest' in scope
323 | }
324 |
325 | private func performRequest(_ request: URLRequest, errorContext: String?) async throws(APIError) -> (Data, URLResponse) {
| `- error: cannot find type 'URLRequest' in scope
326 | let data: Data
327 | let response: URLResponse
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:325:111: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
323 | }
324 |
325 | private func performRequest(_ request: URLRequest, errorContext: String?) async throws(APIError) -> (Data, URLResponse) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
326 | let data: Data
327 | let response: URLResponse
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/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:337:72: error: cannot find type 'URLRequest' in scope
335 | }
336 |
337 | private func handle(data: Data, response: URLResponse, for request: URLRequest, errorContext: String?, attempt: Int = 1) async throws(APIError)
| `- error: cannot find type 'URLRequest' in scope
338 | -> Data
339 | {
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:337:46: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
335 | }
336 |
337 | private func handle(data: Data, response: URLResponse, for request: URLRequest, errorContext: String?, attempt: Int = 1) async throws(APIError)
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
338 | -> Data
339 | {
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/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:213:8: error: stored property 'urlSession' of 'Sendable'-conforming class 'RESTClient' has non-sendable type 'URLSession' (aka 'AnyObject')
211 | let jsonEncoder: JSONEncoder
212 | let jsonDecoder: JSONDecoder
213 | let urlSession: URLSession
| `- error: stored property 'urlSession' of 'Sendable'-conforming class 'RESTClient' has non-sendable type 'URLSession' (aka 'AnyObject')
214 | let requestPlugins: [any RequestPlugin]
215 | let responsePlugins: [any ResponsePlugin]
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:292:21: error: cannot find 'URLRequest' in scope
290 | }
291 |
292 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
293 | request.httpMethod = method.rawValue
294 |
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:327:21: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
325 | private func performRequest(_ request: URLRequest, errorContext: String?) async throws(APIError) -> (Data, URLResponse) {
326 | let data: Data
327 | let response: URLResponse
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
328 | do {
329 | (data, response) = try await self.urlSession.data(for: request)
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/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:329:55: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
327 | let response: URLResponse
328 | do {
329 | (data, response) = try await self.urlSession.data(for: request)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
330 | } catch {
331 | throw APIError.failedToLoadData(error, self.errorContext(requestContext: errorContext))
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:340:45: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
338 | -> Data
339 | {
340 | guard var httpResponse = response as? HTTPURLResponse else {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
341 | throw .unexpectedResponseType(response, self.errorContext(requestContext: errorContext))
342 | }
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/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:353:27: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
351 | }
352 |
353 | switch httpResponse.statusCode {
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
354 | case 200..<300:
355 | return data
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:363:61: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
361 |
362 | // respect the server retry-after(-ms) value if it exists, allowing values betwen 0.5-5 seconds
363 | if let retryAfterMillisecondsString = httpResponse.value(forHTTPHeaderField: "retry-after-ms"),
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
364 | let retryAfterMilliseconds = Double(retryAfterMillisecondsString)
365 | {
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:367:56: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
365 | {
366 | sleepSeconds = max(0.5, min(retryAfterMilliseconds, 5))
367 | } else if let retryAfterString = httpResponse.value(forHTTPHeaderField: "retry-after"),
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
368 | let retryAfter = Double(retryAfterString)
369 | {
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:385:55: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
383 | guard !data.isEmpty else {
384 | throw .clientError(
385 | "Unexpected status code \(httpResponse.statusCode) without a response body.",
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
386 | self.errorContext(requestContext: errorContext)
387 | )
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:399:51: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
397 |
398 | default:
399 | throw .unexpectedStatusCode(httpResponse.statusCode, self.errorContext(requestContext: errorContext))
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
400 | }
401 | }
[68/235] Compiling HandySwift SortedArray.swift
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/PrintRequestPlugin.swift:85:40: error: cannot find type 'URLRequest' in scope
83 | ///
84 | /// - Parameter request: The URLRequest to potentially log and pass through unchanged.
85 | public func apply(to request: inout URLRequest) {
| `- error: cannot find type 'URLRequest' in scope
86 | if self.debugOnly {
87 | #if DEBUG
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/PrintRequestPlugin.swift:98:41: error: cannot find type 'URLRequest' in scope
96 | ///
97 | /// - Parameter request: The URLRequest to print details for.
98 | private func printRequest(_ request: URLRequest) {
| `- error: cannot find type 'URLRequest' in scope
99 | var requestBodyString: String?
100 | if let bodyData = request.httpBody {
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:201:36: error: cannot find type 'URLRequest' in scope
199 |
200 | public protocol RequestPlugin: Sendable {
201 | func apply(to request: inout URLRequest)
| `- error: cannot find type 'URLRequest' in scope
202 | }
203 |
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/PrintResponsePlugin.swift:93:41: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
91 | /// - data: The response body data to potentially log.
92 | /// - Throws: Does not throw errors, but passes through any errors from the response processing.
93 | public func apply(to response: inout HTTPURLResponse, data: inout Data) throws {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
94 | if self.debugOnly {
95 | #if DEBUG
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/.build/checkouts/HandySwift/Sources/HandySwift/Types/PrintResponsePlugin.swift:108:43: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
106 | /// - response: The HTTPURLResponse to print details for.
107 | /// - data: The response body data to print.
108 | private func printResponse(_ response: HTTPURLResponse, data: Data) {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
109 | var responseBodyString: String?
110 | if !data.isEmpty {
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/.build/checkouts/HandySwift/Sources/HandySwift/Types/PrintResponsePlugin.swift:116:35: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
114 | // Clean headers formatting - sorted alphabetically for consistency, no AnyHashable wrappers
115 | var headersString = ""
116 | let cleanHeaders = response.allHeaderFields
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
117 | .compactMapValues { "\($0)" }
118 | .sorted { "\($0.key)" < "\($1.key)" }
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/PrintResponsePlugin.swift:124:44: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
122 |
123 | print(
124 | "[RESTClient] Response \(response.statusCode) from '\(response.url!)'\n\nResponse headers:\(headersString)\n\nResponse body:\n\(responseBodyString ?? "No body")"
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
125 | )
126 | }
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:19:35: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
17 | case failedToDecodeClientErrorBody(Error, Context?)
18 | case clientError(String, Context?)
19 | case unexpectedResponseType(URLResponse, Context?)
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
20 | case unexpectedStatusCode(Int, Context?)
21 |
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/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:19:12: error: associated value 'unexpectedResponseType' of 'Sendable'-conforming enum 'APIError' has non-sendable type 'URLResponse' (aka 'AnyObject')
17 | case failedToDecodeClientErrorBody(Error, Context?)
18 | case clientError(String, Context?)
19 | case unexpectedResponseType(URLResponse, Context?)
| `- error: associated value 'unexpectedResponseType' of 'Sendable'-conforming enum 'APIError' has non-sendable type 'URLResponse' (aka 'AnyObject')
20 | case unexpectedStatusCode(Int, Context?)
21 |
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:205:37: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
203 |
204 | public protocol ResponsePlugin: Sendable {
205 | func apply(to response: inout HTTPURLResponse, data: inout Data) throws
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
206 | }
207 |
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/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:213:20: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
211 | let jsonEncoder: JSONEncoder
212 | let jsonDecoder: JSONDecoder
213 | let urlSession: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
214 | let requestPlugins: [any RequestPlugin]
215 | let responsePlugins: [any ResponsePlugin]
Foundation.URLSession:2:18: note: 'URLSession' 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 URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:226:19: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
224 | jsonEncoder: JSONEncoder = .init(),
225 | jsonDecoder: JSONDecoder = .init(),
226 | urlSession: URLSession = .shared,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
227 | requestPlugins: [any RequestPlugin] = [],
228 | responsePlugins: [any ResponsePlugin] = [],
Foundation.URLSession:2:18: note: 'URLSession' 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 URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:226:33: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
224 | jsonEncoder: JSONEncoder = .init(),
225 | jsonDecoder: JSONDecoder = .init(),
226 | urlSession: URLSession = .shared,
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
227 | requestPlugins: [any RequestPlugin] = [],
228 | responsePlugins: [any ResponsePlugin] = [],
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:325:43: error: cannot find type 'URLRequest' in scope
323 | }
324 |
325 | private func performRequest(_ request: URLRequest, errorContext: String?) async throws(APIError) -> (Data, URLResponse) {
| `- error: cannot find type 'URLRequest' in scope
326 | let data: Data
327 | let response: URLResponse
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:325:111: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
323 | }
324 |
325 | private func performRequest(_ request: URLRequest, errorContext: String?) async throws(APIError) -> (Data, URLResponse) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
326 | let data: Data
327 | let response: URLResponse
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/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:337:72: error: cannot find type 'URLRequest' in scope
335 | }
336 |
337 | private func handle(data: Data, response: URLResponse, for request: URLRequest, errorContext: String?, attempt: Int = 1) async throws(APIError)
| `- error: cannot find type 'URLRequest' in scope
338 | -> Data
339 | {
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:337:46: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
335 | }
336 |
337 | private func handle(data: Data, response: URLResponse, for request: URLRequest, errorContext: String?, attempt: Int = 1) async throws(APIError)
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
338 | -> Data
339 | {
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/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:213:8: error: stored property 'urlSession' of 'Sendable'-conforming class 'RESTClient' has non-sendable type 'URLSession' (aka 'AnyObject')
211 | let jsonEncoder: JSONEncoder
212 | let jsonDecoder: JSONDecoder
213 | let urlSession: URLSession
| `- error: stored property 'urlSession' of 'Sendable'-conforming class 'RESTClient' has non-sendable type 'URLSession' (aka 'AnyObject')
214 | let requestPlugins: [any RequestPlugin]
215 | let responsePlugins: [any ResponsePlugin]
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:292:21: error: cannot find 'URLRequest' in scope
290 | }
291 |
292 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
293 | request.httpMethod = method.rawValue
294 |
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:327:21: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
325 | private func performRequest(_ request: URLRequest, errorContext: String?) async throws(APIError) -> (Data, URLResponse) {
326 | let data: Data
327 | let response: URLResponse
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
328 | do {
329 | (data, response) = try await self.urlSession.data(for: request)
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/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:329:55: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
327 | let response: URLResponse
328 | do {
329 | (data, response) = try await self.urlSession.data(for: request)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
330 | } catch {
331 | throw APIError.failedToLoadData(error, self.errorContext(requestContext: errorContext))
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:340:45: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
338 | -> Data
339 | {
340 | guard var httpResponse = response as? HTTPURLResponse else {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
341 | throw .unexpectedResponseType(response, self.errorContext(requestContext: errorContext))
342 | }
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/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:353:27: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
351 | }
352 |
353 | switch httpResponse.statusCode {
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
354 | case 200..<300:
355 | return data
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:363:61: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
361 |
362 | // respect the server retry-after(-ms) value if it exists, allowing values betwen 0.5-5 seconds
363 | if let retryAfterMillisecondsString = httpResponse.value(forHTTPHeaderField: "retry-after-ms"),
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
364 | let retryAfterMilliseconds = Double(retryAfterMillisecondsString)
365 | {
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:367:56: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
365 | {
366 | sleepSeconds = max(0.5, min(retryAfterMilliseconds, 5))
367 | } else if let retryAfterString = httpResponse.value(forHTTPHeaderField: "retry-after"),
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
368 | let retryAfter = Double(retryAfterString)
369 | {
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:385:55: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
383 | guard !data.isEmpty else {
384 | throw .clientError(
385 | "Unexpected status code \(httpResponse.statusCode) without a response body.",
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
386 | self.errorContext(requestContext: errorContext)
387 | )
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:399:51: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
397 |
398 | default:
399 | throw .unexpectedStatusCode(httpResponse.statusCode, self.errorContext(requestContext: errorContext))
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
400 | }
401 | }
[68/235] Compiling thread_win.cc
[69/235] Compiling trust_token.cc
[70/235] Compiling thread.cc
[71/235] Compiling thread_none.cc
[72/235] Compiling sha512.cc
[72/235] Compiling siphash.cc
[72/235] Compiling slhdsa.cc
[72/235] Compiling spake2plus.cc
[72/235] Compiling stack.cc
[72/235] Compiling thread_pthread.cc
[72/235] Compiling pmbtoken.cc
BUILD FAILURE 6.1 wasm