Build Information
Failed to build IntelligenceKit, reference 0.2.0 (abb322
), with Swift 6.1 for Wasm on 31 Aug 2025 11:13:34 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4609320-3":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1
Build Log
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:242:72: error: cannot find type 'URLRequest' in scope
240 | }
241 |
242 | 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
243 | -> Data
244 | {
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:242:46: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
240 | }
241 |
242 | 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.
243 | -> Data
244 | {
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:118:8: error: stored property 'urlSession' of 'Sendable'-conforming class 'RESTClient' has non-sendable type 'URLSession' (aka 'AnyObject')
116 | let jsonEncoder: JSONEncoder
117 | let jsonDecoder: JSONDecoder
118 | let urlSession: URLSession
| `- error: stored property 'urlSession' of 'Sendable'-conforming class 'RESTClient' has non-sendable type 'URLSession' (aka 'AnyObject')
119 | let requestPlugins: [any RequestPlugin]
120 | let responsePlugins: [any ResponsePlugin]
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:197:21: error: cannot find 'URLRequest' in scope
195 | }
196 |
197 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
198 | request.httpMethod = method.rawValue
199 |
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:232:21: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
230 | private func performRequest(_ request: URLRequest, errorContext: String?) async throws(APIError) -> (Data, URLResponse) {
231 | let data: Data
232 | let response: URLResponse
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
233 | do {
234 | (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:234:55: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
232 | let response: URLResponse
233 | do {
234 | (data, response) = try await self.urlSession.data(for: request)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
235 | } catch {
236 | throw APIError.failedToLoadData(error, self.errorContext(requestContext: errorContext))
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:245:45: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
243 | -> Data
244 | {
245 | 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.
246 | throw .unexpectedResponseType(response, self.errorContext(requestContext: errorContext))
247 | }
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:258:27: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
256 | }
257 |
258 | switch httpResponse.statusCode {
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
259 | case 200..<300:
260 | return data
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:268:61: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
266 |
267 | // respect the server retry-after(-ms) value if it exists, allowing values betwen 0.5-5 seconds
268 | if let retryAfterMillisecondsString = httpResponse.value(forHTTPHeaderField: "retry-after-ms"),
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
269 | let retryAfterMilliseconds = Double(retryAfterMillisecondsString)
270 | {
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:272:56: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
270 | {
271 | sleepSeconds = max(0.5, min(retryAfterMilliseconds, 5))
272 | } else if let retryAfterString = httpResponse.value(forHTTPHeaderField: "retry-after"),
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
273 | let retryAfter = Double(retryAfterString)
274 | {
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:290:55: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
288 | guard !data.isEmpty else {
289 | throw .clientError(
290 | "Unexpected status code \(httpResponse.statusCode) without a response body.",
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
291 | self.errorContext(requestContext: errorContext)
292 | )
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:304:51: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
302 |
303 | default:
304 | throw .unexpectedStatusCode(httpResponse.statusCode, self.errorContext(requestContext: errorContext))
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
305 | }
306 | }
[168/415] 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:106:36: error: cannot find type 'URLRequest' in scope
104 |
105 | public protocol RequestPlugin: Sendable {
106 | func apply(to request: inout URLRequest)
| `- error: cannot find type 'URLRequest' in scope
107 | }
108 |
/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:110:37: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
108 |
109 | public protocol ResponsePlugin: Sendable {
110 | 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.
111 | }
112 |
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:118:20: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
116 | let jsonEncoder: JSONEncoder
117 | let jsonDecoder: JSONDecoder
118 | let urlSession: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
119 | let requestPlugins: [any RequestPlugin]
120 | 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:131:19: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
129 | jsonEncoder: JSONEncoder = .init(),
130 | jsonDecoder: JSONDecoder = .init(),
131 | urlSession: URLSession = .shared,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
132 | requestPlugins: [any RequestPlugin] = [],
133 | 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:131:33: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
129 | jsonEncoder: JSONEncoder = .init(),
130 | jsonDecoder: JSONDecoder = .init(),
131 | urlSession: URLSession = .shared,
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
132 | requestPlugins: [any RequestPlugin] = [],
133 | responsePlugins: [any ResponsePlugin] = [],
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:230:43: error: cannot find type 'URLRequest' in scope
228 | }
229 |
230 | private func performRequest(_ request: URLRequest, errorContext: String?) async throws(APIError) -> (Data, URLResponse) {
| `- error: cannot find type 'URLRequest' in scope
231 | let data: Data
232 | let response: URLResponse
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:230:111: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
228 | }
229 |
230 | 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.
231 | let data: Data
232 | 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:242:72: error: cannot find type 'URLRequest' in scope
240 | }
241 |
242 | 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
243 | -> Data
244 | {
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:242:46: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
240 | }
241 |
242 | 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.
243 | -> Data
244 | {
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:118:8: error: stored property 'urlSession' of 'Sendable'-conforming class 'RESTClient' has non-sendable type 'URLSession' (aka 'AnyObject')
116 | let jsonEncoder: JSONEncoder
117 | let jsonDecoder: JSONDecoder
118 | let urlSession: URLSession
| `- error: stored property 'urlSession' of 'Sendable'-conforming class 'RESTClient' has non-sendable type 'URLSession' (aka 'AnyObject')
119 | let requestPlugins: [any RequestPlugin]
120 | let responsePlugins: [any ResponsePlugin]
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:197:21: error: cannot find 'URLRequest' in scope
195 | }
196 |
197 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
198 | request.httpMethod = method.rawValue
199 |
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:232:21: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
230 | private func performRequest(_ request: URLRequest, errorContext: String?) async throws(APIError) -> (Data, URLResponse) {
231 | let data: Data
232 | let response: URLResponse
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
233 | do {
234 | (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:234:55: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
232 | let response: URLResponse
233 | do {
234 | (data, response) = try await self.urlSession.data(for: request)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
235 | } catch {
236 | throw APIError.failedToLoadData(error, self.errorContext(requestContext: errorContext))
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:245:45: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
243 | -> Data
244 | {
245 | 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.
246 | throw .unexpectedResponseType(response, self.errorContext(requestContext: errorContext))
247 | }
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:258:27: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
256 | }
257 |
258 | switch httpResponse.statusCode {
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
259 | case 200..<300:
260 | return data
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:268:61: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
266 |
267 | // respect the server retry-after(-ms) value if it exists, allowing values betwen 0.5-5 seconds
268 | if let retryAfterMillisecondsString = httpResponse.value(forHTTPHeaderField: "retry-after-ms"),
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
269 | let retryAfterMilliseconds = Double(retryAfterMillisecondsString)
270 | {
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:272:56: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
270 | {
271 | sleepSeconds = max(0.5, min(retryAfterMilliseconds, 5))
272 | } else if let retryAfterString = httpResponse.value(forHTTPHeaderField: "retry-after"),
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
273 | let retryAfter = Double(retryAfterString)
274 | {
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:290:55: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
288 | guard !data.isEmpty else {
289 | throw .clientError(
290 | "Unexpected status code \(httpResponse.statusCode) without a response body.",
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
291 | self.errorContext(requestContext: errorContext)
292 | )
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:304:51: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
302 |
303 | default:
304 | throw .unexpectedStatusCode(httpResponse.statusCode, self.errorContext(requestContext: errorContext))
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
305 | }
306 | }
[169/415] 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:106:36: error: cannot find type 'URLRequest' in scope
104 |
105 | public protocol RequestPlugin: Sendable {
106 | func apply(to request: inout URLRequest)
| `- error: cannot find type 'URLRequest' in scope
107 | }
108 |
/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:110:37: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
108 |
109 | public protocol ResponsePlugin: Sendable {
110 | 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.
111 | }
112 |
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:118:20: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
116 | let jsonEncoder: JSONEncoder
117 | let jsonDecoder: JSONDecoder
118 | let urlSession: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
119 | let requestPlugins: [any RequestPlugin]
120 | 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:131:19: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
129 | jsonEncoder: JSONEncoder = .init(),
130 | jsonDecoder: JSONDecoder = .init(),
131 | urlSession: URLSession = .shared,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
132 | requestPlugins: [any RequestPlugin] = [],
133 | 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:131:33: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
129 | jsonEncoder: JSONEncoder = .init(),
130 | jsonDecoder: JSONDecoder = .init(),
131 | urlSession: URLSession = .shared,
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
132 | requestPlugins: [any RequestPlugin] = [],
133 | responsePlugins: [any ResponsePlugin] = [],
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:230:43: error: cannot find type 'URLRequest' in scope
228 | }
229 |
230 | private func performRequest(_ request: URLRequest, errorContext: String?) async throws(APIError) -> (Data, URLResponse) {
| `- error: cannot find type 'URLRequest' in scope
231 | let data: Data
232 | let response: URLResponse
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:230:111: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
228 | }
229 |
230 | 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.
231 | let data: Data
232 | 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:242:72: error: cannot find type 'URLRequest' in scope
240 | }
241 |
242 | 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
243 | -> Data
244 | {
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:242:46: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
240 | }
241 |
242 | 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.
243 | -> Data
244 | {
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:118:8: error: stored property 'urlSession' of 'Sendable'-conforming class 'RESTClient' has non-sendable type 'URLSession' (aka 'AnyObject')
116 | let jsonEncoder: JSONEncoder
117 | let jsonDecoder: JSONDecoder
118 | let urlSession: URLSession
| `- error: stored property 'urlSession' of 'Sendable'-conforming class 'RESTClient' has non-sendable type 'URLSession' (aka 'AnyObject')
119 | let requestPlugins: [any RequestPlugin]
120 | let responsePlugins: [any ResponsePlugin]
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:197:21: error: cannot find 'URLRequest' in scope
195 | }
196 |
197 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
198 | request.httpMethod = method.rawValue
199 |
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:232:21: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
230 | private func performRequest(_ request: URLRequest, errorContext: String?) async throws(APIError) -> (Data, URLResponse) {
231 | let data: Data
232 | let response: URLResponse
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
233 | do {
234 | (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:234:55: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
232 | let response: URLResponse
233 | do {
234 | (data, response) = try await self.urlSession.data(for: request)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
235 | } catch {
236 | throw APIError.failedToLoadData(error, self.errorContext(requestContext: errorContext))
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:245:45: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
243 | -> Data
244 | {
245 | 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.
246 | throw .unexpectedResponseType(response, self.errorContext(requestContext: errorContext))
247 | }
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:258:27: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
256 | }
257 |
258 | switch httpResponse.statusCode {
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
259 | case 200..<300:
260 | return data
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:268:61: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
266 |
267 | // respect the server retry-after(-ms) value if it exists, allowing values betwen 0.5-5 seconds
268 | if let retryAfterMillisecondsString = httpResponse.value(forHTTPHeaderField: "retry-after-ms"),
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
269 | let retryAfterMilliseconds = Double(retryAfterMillisecondsString)
270 | {
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:272:56: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
270 | {
271 | sleepSeconds = max(0.5, min(retryAfterMilliseconds, 5))
272 | } else if let retryAfterString = httpResponse.value(forHTTPHeaderField: "retry-after"),
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
273 | let retryAfter = Double(retryAfterString)
274 | {
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:290:55: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
288 | guard !data.isEmpty else {
289 | throw .clientError(
290 | "Unexpected status code \(httpResponse.statusCode) without a response body.",
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
291 | self.errorContext(requestContext: errorContext)
292 | )
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:304:51: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
302 |
303 | default:
304 | throw .unexpectedStatusCode(httpResponse.statusCode, self.errorContext(requestContext: errorContext))
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
305 | }
306 | }
[170/415] 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),
[171/415] 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),
[172/415] 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),
[173/415] 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),
[174/415] 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),
[175/415] Compiling HandySwift HandyRegex.swift
[176/415] Compiling HandySwift LogRequestPlugin.swift
[177/415] Compiling HandySwift LogResponsePlugin.swift
[178/415] Compiling HandySwift OperatingSystem.swift
[179/415] 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 |
[180/415] 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 |
[181/415] 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 |
[182/415] 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 |
[183/415] 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 |
[184/415] Compiling HandySwift RandomAccessCollectionExt.swift
[185/415] Compiling HandySwift SequenceExt.swift
[186/415] Compiling HandySwift StringExt.swift
[187/415] Compiling HandySwift StringProtocolExt.swift
[188/415] Compiling HandySwift SymmetricKeyExt.swift
[189/415] Compiling HandySwift FloatExt.swift
[190/415] Compiling HandySwift IntExt.swift
[191/415] Compiling HandySwift JSONDecoderExt.swift
[192/415] Compiling HandySwift JSONEncoderExt.swift
[193/415] Compiling HandySwift NSRangeExt.swift
[194/415] Compiling HandySwift Debouncer.swift
[195/415] Compiling HandySwift FrequencyTable.swift
[196/415] Compiling HandySwift GregorianDay.swift
[197/415] Compiling HandySwift GregorianTime.swift
[198/415] Compiling HandySwift ArrayExt.swift
[199/415] Compiling HandySwift CaseIterableExt.swift
[200/415] Compiling HandySwift CollectionExt.swift
[201/415] Compiling HandySwift ComparableExt.swift
[202/415] Compiling HandySwift DataExt.swift
[202/415] Compiling v3_skey.cc
[202/415] Compiling v3_pcons.cc
[202/415] Compiling v3_ocsp.cc
[202/415] Compiling v3_pmaps.cc
[202/415] Compiling v3_prn.cc
[202/415] Compiling x509.cc
[202/415] Compiling v3_purp.cc
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-3":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1
wasm-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:eb0758f51dbd6991fb9e51dedbfbcbec142ffc0d3b9b8ad91fa19d35e5136f0a
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/214] Compiling v3_pmaps.cc
[1/214] Compiling v3_prn.cc
[2/214] Compiling v3_ncons.cc
[3/214] Compiling x509.cc
[4/214] Write swift-version-24593BA9C3E375BF.txt
[5/214] Compiling v3_ocsp.cc
[6/214] Compiling v3_skey.cc
[7/214] Compiling v3_pcons.cc
[8/214] Compiling v3_purp.cc
[10/248] 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 |
[11/248] 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 |
[12/248] 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 |
[13/248] 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 |
[14/248] 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 |
[15/252] Compiling HandySwift ArrayExt.swift
[16/252] Compiling HandySwift CaseIterableExt.swift
[17/252] Compiling HandySwift CollectionExt.swift
[18/252] Compiling HandySwift ComparableExt.swift
[19/252] Compiling HandySwift DataExt.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[20/252] 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:106:36: error: cannot find type 'URLRequest' in scope
104 |
105 | public protocol RequestPlugin: Sendable {
106 | func apply(to request: inout URLRequest)
| `- error: cannot find type 'URLRequest' in scope
107 | }
108 |
/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:110:37: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
108 |
109 | public protocol ResponsePlugin: Sendable {
110 | 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.
111 | }
112 |
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:118:20: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
116 | let jsonEncoder: JSONEncoder
117 | let jsonDecoder: JSONDecoder
118 | let urlSession: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
119 | let requestPlugins: [any RequestPlugin]
120 | 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:131:19: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
129 | jsonEncoder: JSONEncoder = .init(),
130 | jsonDecoder: JSONDecoder = .init(),
131 | urlSession: URLSession = .shared,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
132 | requestPlugins: [any RequestPlugin] = [],
133 | 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:131:33: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
129 | jsonEncoder: JSONEncoder = .init(),
130 | jsonDecoder: JSONDecoder = .init(),
131 | urlSession: URLSession = .shared,
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
132 | requestPlugins: [any RequestPlugin] = [],
133 | responsePlugins: [any ResponsePlugin] = [],
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:230:43: error: cannot find type 'URLRequest' in scope
228 | }
229 |
230 | private func performRequest(_ request: URLRequest, errorContext: String?) async throws(APIError) -> (Data, URLResponse) {
| `- error: cannot find type 'URLRequest' in scope
231 | let data: Data
232 | let response: URLResponse
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:230:111: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
228 | }
229 |
230 | 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.
231 | let data: Data
232 | 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:242:72: error: cannot find type 'URLRequest' in scope
240 | }
241 |
242 | 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
243 | -> Data
244 | {
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:242:46: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
240 | }
241 |
242 | 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.
243 | -> Data
244 | {
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:118:8: error: stored property 'urlSession' of 'Sendable'-conforming class 'RESTClient' has non-sendable type 'URLSession' (aka 'AnyObject')
116 | let jsonEncoder: JSONEncoder
117 | let jsonDecoder: JSONDecoder
118 | let urlSession: URLSession
| `- error: stored property 'urlSession' of 'Sendable'-conforming class 'RESTClient' has non-sendable type 'URLSession' (aka 'AnyObject')
119 | let requestPlugins: [any RequestPlugin]
120 | let responsePlugins: [any ResponsePlugin]
[20/252] Compiling v3_info.cc
[21/252] Compiling v3_lib.cc
[22/252] Compiling v3_int.cc
[24/252] Compiling HandySwift FloatExt.swift
[25/252] Compiling HandySwift IntExt.swift
[26/252] Compiling HandySwift JSONDecoderExt.swift
[27/252] Compiling HandySwift JSONEncoderExt.swift
[28/252] Compiling HandySwift NSRangeExt.swift
[29/252] 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),
[30/252] 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),
[31/252] 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),
[32/252] 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),
[33/252] 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),
[34/252] Compiling HandySwift RandomAccessCollectionExt.swift
[35/252] Compiling HandySwift SequenceExt.swift
[36/252] Compiling HandySwift StringExt.swift
[37/252] Compiling HandySwift StringProtocolExt.swift
[38/252] Compiling HandySwift SymmetricKeyExt.swift
[38/252] Compiling v3_genn.cc
[39/252] Compiling v3_extku.cc
[40/252] Compiling v3_ia5.cc
[42/252] Compiling HandySwift HandyRegex.swift
[43/252] Compiling HandySwift LogRequestPlugin.swift
[44/252] Compiling HandySwift LogResponsePlugin.swift
[45/252] Compiling HandySwift OperatingSystem.swift
[46/252] Compiling HandySwift Debouncer.swift
[47/252] Compiling HandySwift FrequencyTable.swift
[48/252] Compiling HandySwift GregorianDay.swift
[49/252] Compiling HandySwift GregorianTime.swift
[49/252] Compiling v3_enum.cc
[50/252] Compiling v3_conf.cc
[51/252] Compiling v3_cpols.cc
[52/252] Compiling v3_crld.cc
[53/252] Compiling v3_bcons.cc
[54/252] Compiling v3_bitst.cc
[55/252] Compiling v3_alt.cc
[56/252] Compiling v3_akey.cc
[57/252] Compiling v3_akeya.cc
[58/252] Compiling t_x509a.cc
[60/252] 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:106:36: error: cannot find type 'URLRequest' in scope
104 |
105 | public protocol RequestPlugin: Sendable {
106 | func apply(to request: inout URLRequest)
| `- error: cannot find type 'URLRequest' in scope
107 | }
108 |
/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:110:37: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
108 |
109 | public protocol ResponsePlugin: Sendable {
110 | 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.
111 | }
112 |
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:118:20: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
116 | let jsonEncoder: JSONEncoder
117 | let jsonDecoder: JSONDecoder
118 | let urlSession: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
119 | let requestPlugins: [any RequestPlugin]
120 | 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:131:19: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
129 | jsonEncoder: JSONEncoder = .init(),
130 | jsonDecoder: JSONDecoder = .init(),
131 | urlSession: URLSession = .shared,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
132 | requestPlugins: [any RequestPlugin] = [],
133 | 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:131:33: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
129 | jsonEncoder: JSONEncoder = .init(),
130 | jsonDecoder: JSONDecoder = .init(),
131 | urlSession: URLSession = .shared,
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
132 | requestPlugins: [any RequestPlugin] = [],
133 | responsePlugins: [any ResponsePlugin] = [],
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:230:43: error: cannot find type 'URLRequest' in scope
228 | }
229 |
230 | private func performRequest(_ request: URLRequest, errorContext: String?) async throws(APIError) -> (Data, URLResponse) {
| `- error: cannot find type 'URLRequest' in scope
231 | let data: Data
232 | let response: URLResponse
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:230:111: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
228 | }
229 |
230 | 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.
231 | let data: Data
232 | 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:242:72: error: cannot find type 'URLRequest' in scope
240 | }
241 |
242 | 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
243 | -> Data
244 | {
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:242:46: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
240 | }
241 |
242 | 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.
243 | -> Data
244 | {
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:118:8: error: stored property 'urlSession' of 'Sendable'-conforming class 'RESTClient' has non-sendable type 'URLSession' (aka 'AnyObject')
116 | let jsonEncoder: JSONEncoder
117 | let jsonDecoder: JSONDecoder
118 | let urlSession: URLSession
| `- error: stored property 'urlSession' of 'Sendable'-conforming class 'RESTClient' has non-sendable type 'URLSession' (aka 'AnyObject')
119 | let requestPlugins: [any RequestPlugin]
120 | let responsePlugins: [any ResponsePlugin]
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:197:21: error: cannot find 'URLRequest' in scope
195 | }
196 |
197 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
198 | request.httpMethod = method.rawValue
199 |
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:232:21: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
230 | private func performRequest(_ request: URLRequest, errorContext: String?) async throws(APIError) -> (Data, URLResponse) {
231 | let data: Data
232 | let response: URLResponse
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
233 | do {
234 | (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:234:55: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
232 | let response: URLResponse
233 | do {
234 | (data, response) = try await self.urlSession.data(for: request)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
235 | } catch {
236 | throw APIError.failedToLoadData(error, self.errorContext(requestContext: errorContext))
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:245:45: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
243 | -> Data
244 | {
245 | 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.
246 | throw .unexpectedResponseType(response, self.errorContext(requestContext: errorContext))
247 | }
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:258:27: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
256 | }
257 |
258 | switch httpResponse.statusCode {
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
259 | case 200..<300:
260 | return data
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:268:61: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
266 |
267 | // respect the server retry-after(-ms) value if it exists, allowing values betwen 0.5-5 seconds
268 | if let retryAfterMillisecondsString = httpResponse.value(forHTTPHeaderField: "retry-after-ms"),
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
269 | let retryAfterMilliseconds = Double(retryAfterMillisecondsString)
270 | {
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:272:56: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
270 | {
271 | sleepSeconds = max(0.5, min(retryAfterMilliseconds, 5))
272 | } else if let retryAfterString = httpResponse.value(forHTTPHeaderField: "retry-after"),
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
273 | let retryAfter = Double(retryAfterString)
274 | {
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:290:55: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
288 | guard !data.isEmpty else {
289 | throw .clientError(
290 | "Unexpected status code \(httpResponse.statusCode) without a response body.",
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
291 | self.errorContext(requestContext: errorContext)
292 | )
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:304:51: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
302 |
303 | default:
304 | throw .unexpectedStatusCode(httpResponse.statusCode, self.errorContext(requestContext: errorContext))
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
305 | }
306 | }
[61/252] 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:106:36: error: cannot find type 'URLRequest' in scope
104 |
105 | public protocol RequestPlugin: Sendable {
106 | func apply(to request: inout URLRequest)
| `- error: cannot find type 'URLRequest' in scope
107 | }
108 |
/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:110:37: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
108 |
109 | public protocol ResponsePlugin: Sendable {
110 | 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.
111 | }
112 |
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:118:20: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
116 | let jsonEncoder: JSONEncoder
117 | let jsonDecoder: JSONDecoder
118 | let urlSession: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
119 | let requestPlugins: [any RequestPlugin]
120 | 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:131:19: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
129 | jsonEncoder: JSONEncoder = .init(),
130 | jsonDecoder: JSONDecoder = .init(),
131 | urlSession: URLSession = .shared,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
132 | requestPlugins: [any RequestPlugin] = [],
133 | 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:131:33: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
129 | jsonEncoder: JSONEncoder = .init(),
130 | jsonDecoder: JSONDecoder = .init(),
131 | urlSession: URLSession = .shared,
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
132 | requestPlugins: [any RequestPlugin] = [],
133 | responsePlugins: [any ResponsePlugin] = [],
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:230:43: error: cannot find type 'URLRequest' in scope
228 | }
229 |
230 | private func performRequest(_ request: URLRequest, errorContext: String?) async throws(APIError) -> (Data, URLResponse) {
| `- error: cannot find type 'URLRequest' in scope
231 | let data: Data
232 | let response: URLResponse
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:230:111: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
228 | }
229 |
230 | 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.
231 | let data: Data
232 | 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:242:72: error: cannot find type 'URLRequest' in scope
240 | }
241 |
242 | 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
243 | -> Data
244 | {
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:242:46: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
240 | }
241 |
242 | 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.
243 | -> Data
244 | {
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:118:8: error: stored property 'urlSession' of 'Sendable'-conforming class 'RESTClient' has non-sendable type 'URLSession' (aka 'AnyObject')
116 | let jsonEncoder: JSONEncoder
117 | let jsonDecoder: JSONDecoder
118 | let urlSession: URLSession
| `- error: stored property 'urlSession' of 'Sendable'-conforming class 'RESTClient' has non-sendable type 'URLSession' (aka 'AnyObject')
119 | let requestPlugins: [any RequestPlugin]
120 | let responsePlugins: [any ResponsePlugin]
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:197:21: error: cannot find 'URLRequest' in scope
195 | }
196 |
197 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
198 | request.httpMethod = method.rawValue
199 |
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:232:21: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
230 | private func performRequest(_ request: URLRequest, errorContext: String?) async throws(APIError) -> (Data, URLResponse) {
231 | let data: Data
232 | let response: URLResponse
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
233 | do {
234 | (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:234:55: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
232 | let response: URLResponse
233 | do {
234 | (data, response) = try await self.urlSession.data(for: request)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
235 | } catch {
236 | throw APIError.failedToLoadData(error, self.errorContext(requestContext: errorContext))
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:245:45: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
243 | -> Data
244 | {
245 | 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.
246 | throw .unexpectedResponseType(response, self.errorContext(requestContext: errorContext))
247 | }
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:258:27: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
256 | }
257 |
258 | switch httpResponse.statusCode {
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
259 | case 200..<300:
260 | return data
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:268:61: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
266 |
267 | // respect the server retry-after(-ms) value if it exists, allowing values betwen 0.5-5 seconds
268 | if let retryAfterMillisecondsString = httpResponse.value(forHTTPHeaderField: "retry-after-ms"),
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
269 | let retryAfterMilliseconds = Double(retryAfterMillisecondsString)
270 | {
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:272:56: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
270 | {
271 | sleepSeconds = max(0.5, min(retryAfterMilliseconds, 5))
272 | } else if let retryAfterString = httpResponse.value(forHTTPHeaderField: "retry-after"),
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
273 | let retryAfter = Double(retryAfterString)
274 | {
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:290:55: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
288 | guard !data.isEmpty else {
289 | throw .clientError(
290 | "Unexpected status code \(httpResponse.statusCode) without a response body.",
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
291 | self.errorContext(requestContext: errorContext)
292 | )
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:304:51: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
302 |
303 | default:
304 | throw .unexpectedStatusCode(httpResponse.statusCode, self.errorContext(requestContext: errorContext))
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
305 | }
306 | }
[62/252] 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:106:36: error: cannot find type 'URLRequest' in scope
104 |
105 | public protocol RequestPlugin: Sendable {
106 | func apply(to request: inout URLRequest)
| `- error: cannot find type 'URLRequest' in scope
107 | }
108 |
/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:110:37: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
108 |
109 | public protocol ResponsePlugin: Sendable {
110 | 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.
111 | }
112 |
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:118:20: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
116 | let jsonEncoder: JSONEncoder
117 | let jsonDecoder: JSONDecoder
118 | let urlSession: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
119 | let requestPlugins: [any RequestPlugin]
120 | 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:131:19: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
129 | jsonEncoder: JSONEncoder = .init(),
130 | jsonDecoder: JSONDecoder = .init(),
131 | urlSession: URLSession = .shared,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
132 | requestPlugins: [any RequestPlugin] = [],
133 | 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:131:33: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
129 | jsonEncoder: JSONEncoder = .init(),
130 | jsonDecoder: JSONDecoder = .init(),
131 | urlSession: URLSession = .shared,
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
132 | requestPlugins: [any RequestPlugin] = [],
133 | responsePlugins: [any ResponsePlugin] = [],
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:230:43: error: cannot find type 'URLRequest' in scope
228 | }
229 |
230 | private func performRequest(_ request: URLRequest, errorContext: String?) async throws(APIError) -> (Data, URLResponse) {
| `- error: cannot find type 'URLRequest' in scope
231 | let data: Data
232 | let response: URLResponse
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:230:111: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
228 | }
229 |
230 | 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.
231 | let data: Data
232 | 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:242:72: error: cannot find type 'URLRequest' in scope
240 | }
241 |
242 | 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
243 | -> Data
244 | {
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:242:46: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
240 | }
241 |
242 | 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.
243 | -> Data
244 | {
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:118:8: error: stored property 'urlSession' of 'Sendable'-conforming class 'RESTClient' has non-sendable type 'URLSession' (aka 'AnyObject')
116 | let jsonEncoder: JSONEncoder
117 | let jsonDecoder: JSONDecoder
118 | let urlSession: URLSession
| `- error: stored property 'urlSession' of 'Sendable'-conforming class 'RESTClient' has non-sendable type 'URLSession' (aka 'AnyObject')
119 | let requestPlugins: [any RequestPlugin]
120 | let responsePlugins: [any ResponsePlugin]
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:197:21: error: cannot find 'URLRequest' in scope
195 | }
196 |
197 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
198 | request.httpMethod = method.rawValue
199 |
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:232:21: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
230 | private func performRequest(_ request: URLRequest, errorContext: String?) async throws(APIError) -> (Data, URLResponse) {
231 | let data: Data
232 | let response: URLResponse
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
233 | do {
234 | (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:234:55: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
232 | let response: URLResponse
233 | do {
234 | (data, response) = try await self.urlSession.data(for: request)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
235 | } catch {
236 | throw APIError.failedToLoadData(error, self.errorContext(requestContext: errorContext))
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:245:45: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
243 | -> Data
244 | {
245 | 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.
246 | throw .unexpectedResponseType(response, self.errorContext(requestContext: errorContext))
247 | }
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:258:27: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
256 | }
257 |
258 | switch httpResponse.statusCode {
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
259 | case 200..<300:
260 | return data
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:268:61: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
266 |
267 | // respect the server retry-after(-ms) value if it exists, allowing values betwen 0.5-5 seconds
268 | if let retryAfterMillisecondsString = httpResponse.value(forHTTPHeaderField: "retry-after-ms"),
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
269 | let retryAfterMilliseconds = Double(retryAfterMillisecondsString)
270 | {
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:272:56: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
270 | {
271 | sleepSeconds = max(0.5, min(retryAfterMilliseconds, 5))
272 | } else if let retryAfterString = httpResponse.value(forHTTPHeaderField: "retry-after"),
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
273 | let retryAfter = Double(retryAfterString)
274 | {
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:290:55: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
288 | guard !data.isEmpty else {
289 | throw .clientError(
290 | "Unexpected status code \(httpResponse.statusCode) without a response body.",
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
291 | self.errorContext(requestContext: errorContext)
292 | )
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:304:51: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
302 |
303 | default:
304 | throw .unexpectedStatusCode(httpResponse.statusCode, self.errorContext(requestContext: errorContext))
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
305 | }
306 | }
[63/252] 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:106:36: error: cannot find type 'URLRequest' in scope
104 |
105 | public protocol RequestPlugin: Sendable {
106 | func apply(to request: inout URLRequest)
| `- error: cannot find type 'URLRequest' in scope
107 | }
108 |
/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:110:37: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
108 |
109 | public protocol ResponsePlugin: Sendable {
110 | 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.
111 | }
112 |
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:118:20: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
116 | let jsonEncoder: JSONEncoder
117 | let jsonDecoder: JSONDecoder
118 | let urlSession: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
119 | let requestPlugins: [any RequestPlugin]
120 | 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:131:19: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
129 | jsonEncoder: JSONEncoder = .init(),
130 | jsonDecoder: JSONDecoder = .init(),
131 | urlSession: URLSession = .shared,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
132 | requestPlugins: [any RequestPlugin] = [],
133 | 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:131:33: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
129 | jsonEncoder: JSONEncoder = .init(),
130 | jsonDecoder: JSONDecoder = .init(),
131 | urlSession: URLSession = .shared,
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
132 | requestPlugins: [any RequestPlugin] = [],
133 | responsePlugins: [any ResponsePlugin] = [],
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:230:43: error: cannot find type 'URLRequest' in scope
228 | }
229 |
230 | private func performRequest(_ request: URLRequest, errorContext: String?) async throws(APIError) -> (Data, URLResponse) {
| `- error: cannot find type 'URLRequest' in scope
231 | let data: Data
232 | let response: URLResponse
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:230:111: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
228 | }
229 |
230 | 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.
231 | let data: Data
232 | 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:242:72: error: cannot find type 'URLRequest' in scope
240 | }
241 |
242 | 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
243 | -> Data
244 | {
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:242:46: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
240 | }
241 |
242 | 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.
243 | -> Data
244 | {
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:118:8: error: stored property 'urlSession' of 'Sendable'-conforming class 'RESTClient' has non-sendable type 'URLSession' (aka 'AnyObject')
116 | let jsonEncoder: JSONEncoder
117 | let jsonDecoder: JSONDecoder
118 | let urlSession: URLSession
| `- error: stored property 'urlSession' of 'Sendable'-conforming class 'RESTClient' has non-sendable type 'URLSession' (aka 'AnyObject')
119 | let requestPlugins: [any RequestPlugin]
120 | let responsePlugins: [any ResponsePlugin]
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:197:21: error: cannot find 'URLRequest' in scope
195 | }
196 |
197 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
198 | request.httpMethod = method.rawValue
199 |
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:232:21: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
230 | private func performRequest(_ request: URLRequest, errorContext: String?) async throws(APIError) -> (Data, URLResponse) {
231 | let data: Data
232 | let response: URLResponse
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
233 | do {
234 | (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:234:55: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
232 | let response: URLResponse
233 | do {
234 | (data, response) = try await self.urlSession.data(for: request)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
235 | } catch {
236 | throw APIError.failedToLoadData(error, self.errorContext(requestContext: errorContext))
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:245:45: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
243 | -> Data
244 | {
245 | 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.
246 | throw .unexpectedResponseType(response, self.errorContext(requestContext: errorContext))
247 | }
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:258:27: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
256 | }
257 |
258 | switch httpResponse.statusCode {
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
259 | case 200..<300:
260 | return data
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:268:61: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
266 |
267 | // respect the server retry-after(-ms) value if it exists, allowing values betwen 0.5-5 seconds
268 | if let retryAfterMillisecondsString = httpResponse.value(forHTTPHeaderField: "retry-after-ms"),
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
269 | let retryAfterMilliseconds = Double(retryAfterMillisecondsString)
270 | {
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:272:56: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
270 | {
271 | sleepSeconds = max(0.5, min(retryAfterMilliseconds, 5))
272 | } else if let retryAfterString = httpResponse.value(forHTTPHeaderField: "retry-after"),
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
273 | let retryAfter = Double(retryAfterString)
274 | {
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:290:55: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
288 | guard !data.isEmpty else {
289 | throw .clientError(
290 | "Unexpected status code \(httpResponse.statusCode) without a response body.",
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
291 | self.errorContext(requestContext: errorContext)
292 | )
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:304:51: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
302 |
303 | default:
304 | throw .unexpectedStatusCode(httpResponse.statusCode, self.errorContext(requestContext: errorContext))
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
305 | }
306 | }
[63/252] Compiling t_x509.cc
[64/252] Compiling t_req.cc
[65/252] Compiling t_crl.cc
[66/252] Compiling policy.cc
[67/252] Compiling rsa_pss.cc
[68/252] Compiling i2d_pr.cc
[69/252] Compiling name_print.cc
[70/252] Compiling algorithm.cc
[71/252] Compiling by_file.cc
[72/252] Compiling by_dir.cc
[73/252] Compiling a_sign.cc
[74/252] Compiling a_verify.cc
[75/252] Compiling asn1_gen.cc
[76/252] Compiling thread_win.cc
[77/252] Compiling a_digest.cc
[78/252] Compiling thread_pthread.cc
[79/252] Compiling voprf.cc
[80/252] Compiling thread_none.cc
[81/252] Compiling thread.cc
[82/252] Compiling trust_token.cc
[83/252] Compiling pmbtoken.cc
[84/252] Compiling stack.cc
[84/252] Compiling sha512.cc
[84/252] Compiling sha1.cc
[84/252] Compiling siphash.cc
[84/252] Compiling spake2plus.cc
[84/252] Compiling sha256.cc
[84/252] Compiling slhdsa.cc
BUILD FAILURE 6.1 wasm