The Swift Package Index logo.Swift Package Index

Has it really been five years since Swift Package Index launched? Read our anniversary blog post!

Build Information

Failed to build HandySwift, reference main (e9defa), with Swift 6.1 for Wasm on 3 Jun 2025 15:33:13 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4609320-1":/host -w "$PWD" 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/Sources/HandySwift/Types/RESTClient.swift:236:72: error: cannot find type 'URLRequest' in scope
234 |    }
235 |
236 |    private func handle(data: Data, response: URLResponse, for request: URLRequest, errorContext: String?, attempt: Int = 1) async throws(APIError) -> Data {
    |                                                                        `- error: cannot find type 'URLRequest' in scope
237 |       guard var httpResponse = response as? HTTPURLResponse else {
238 |          throw .unexpectedResponseType(response, self.errorContext(requestContext: errorContext))
/host/spi-builder-workspace/Sources/HandySwift/Types/RESTClient.swift:236:46: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
234 |    }
235 |
236 |    private func handle(data: Data, response: URLResponse, for request: URLRequest, errorContext: String?, attempt: Int = 1) async throws(APIError) -> Data {
    |                                              `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
237 |       guard var httpResponse = response as? HTTPURLResponse else {
238 |          throw .unexpectedResponseType(response, self.errorContext(requestContext: errorContext))
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/HandySwift/Types/RESTClient.swift:299:46: error: cannot find type 'URLRequest' in scope
297 |    }
298 |
299 |    private func logRequestIfDebug(_ request: URLRequest) {
    |                                              `- error: cannot find type 'URLRequest' in scope
300 |       #if DEBUG
301 |       var requestBodyString: String?
/host/spi-builder-workspace/Sources/HandySwift/Types/RESTClient.swift:310:48: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
308 |    }
309 |
310 |    private func logResponseIfDebug(_ response: URLResponse, data: Data?) {
    |                                                `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
311 |       #if DEBUG
312 |       var responseBodyString: String?
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/HandySwift/Types/RESTClient.swift:117:8: error: stored property 'urlSession' of 'Sendable'-conforming class 'RESTClient' has non-sendable type 'URLSession' (aka 'AnyObject')
115 |    let jsonEncoder: JSONEncoder
116 |    let jsonDecoder: JSONDecoder
117 |    let urlSession: URLSession
    |        `- error: stored property 'urlSession' of 'Sendable'-conforming class 'RESTClient' has non-sendable type 'URLSession' (aka 'AnyObject')
118 |    let requestPlugins: [any RequestPlugin]
119 |    let responsePlugins: [any ResponsePlugin]
[4/36] Compiling HandySwift HandyRegex.swift
/host/spi-builder-workspace/Sources/HandySwift/Types/RESTClient.swift:18:35: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 16 |       case failedToDecodeClientErrorBody(Error, Context?)
 17 |       case clientError(String, Context?)
 18 |       case unexpectedResponseType(URLResponse, Context?)
    |                                   `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 19 |       case unexpectedStatusCode(Int, Context?)
 20 |
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/HandySwift/Types/RESTClient.swift:18:12: error: associated value 'unexpectedResponseType' of 'Sendable'-conforming enum 'APIError' has non-sendable type 'URLResponse' (aka 'AnyObject')
 16 |       case failedToDecodeClientErrorBody(Error, Context?)
 17 |       case clientError(String, Context?)
 18 |       case unexpectedResponseType(URLResponse, Context?)
    |            `- error: associated value 'unexpectedResponseType' of 'Sendable'-conforming enum 'APIError' has non-sendable type 'URLResponse' (aka 'AnyObject')
 19 |       case unexpectedStatusCode(Int, Context?)
 20 |
/host/spi-builder-workspace/Sources/HandySwift/Types/RESTClient.swift:105:36: error: cannot find type 'URLRequest' in scope
103 |
104 |    public protocol RequestPlugin: Sendable {
105 |       func apply(to request: inout URLRequest)
    |                                    `- error: cannot find type 'URLRequest' in scope
106 |    }
107 |
/host/spi-builder-workspace/Sources/HandySwift/Types/RESTClient.swift:109:37: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
107 |
108 |    public protocol ResponsePlugin: Sendable {
109 |       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.
110 |    }
111 |
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
  |                  `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/HandySwift/Types/RESTClient.swift:117:20: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
115 |    let jsonEncoder: JSONEncoder
116 |    let jsonDecoder: JSONDecoder
117 |    let urlSession: URLSession
    |                    `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
118 |    let requestPlugins: [any RequestPlugin]
119 |    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/Sources/HandySwift/Types/RESTClient.swift:130:19: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
128 |       jsonEncoder: JSONEncoder = .init(),
129 |       jsonDecoder: JSONDecoder = .init(),
130 |       urlSession: URLSession = .shared,
    |                   `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
131 |       requestPlugins: [any RequestPlugin] = [],
132 |       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/Sources/HandySwift/Types/RESTClient.swift:130:33: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
128 |       jsonEncoder: JSONEncoder = .init(),
129 |       jsonDecoder: JSONDecoder = .init(),
130 |       urlSession: URLSession = .shared,
    |                                 `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
131 |       requestPlugins: [any RequestPlugin] = [],
132 |       responsePlugins: [any ResponsePlugin] = [],
/host/spi-builder-workspace/Sources/HandySwift/Types/RESTClient.swift:221:43: error: cannot find type 'URLRequest' in scope
219 |    }
220 |
221 |    private func performRequest(_ request: URLRequest, errorContext: String?) async throws(APIError) -> (Data, URLResponse) {
    |                                           `- error: cannot find type 'URLRequest' in scope
222 |       self.logRequestIfDebug(request)
223 |
/host/spi-builder-workspace/Sources/HandySwift/Types/RESTClient.swift:221:111: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
219 |    }
220 |
221 |    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.
222 |       self.logRequestIfDebug(request)
223 |
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/HandySwift/Types/RESTClient.swift:236:72: error: cannot find type 'URLRequest' in scope
234 |    }
235 |
236 |    private func handle(data: Data, response: URLResponse, for request: URLRequest, errorContext: String?, attempt: Int = 1) async throws(APIError) -> Data {
    |                                                                        `- error: cannot find type 'URLRequest' in scope
237 |       guard var httpResponse = response as? HTTPURLResponse else {
238 |          throw .unexpectedResponseType(response, self.errorContext(requestContext: errorContext))
/host/spi-builder-workspace/Sources/HandySwift/Types/RESTClient.swift:236:46: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
234 |    }
235 |
236 |    private func handle(data: Data, response: URLResponse, for request: URLRequest, errorContext: String?, attempt: Int = 1) async throws(APIError) -> Data {
    |                                              `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
237 |       guard var httpResponse = response as? HTTPURLResponse else {
238 |          throw .unexpectedResponseType(response, self.errorContext(requestContext: errorContext))
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/HandySwift/Types/RESTClient.swift:299:46: error: cannot find type 'URLRequest' in scope
297 |    }
298 |
299 |    private func logRequestIfDebug(_ request: URLRequest) {
    |                                              `- error: cannot find type 'URLRequest' in scope
300 |       #if DEBUG
301 |       var requestBodyString: String?
/host/spi-builder-workspace/Sources/HandySwift/Types/RESTClient.swift:310:48: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
308 |    }
309 |
310 |    private func logResponseIfDebug(_ response: URLResponse, data: Data?) {
    |                                                `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
311 |       #if DEBUG
312 |       var responseBodyString: String?
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/HandySwift/Types/RESTClient.swift:117:8: error: stored property 'urlSession' of 'Sendable'-conforming class 'RESTClient' has non-sendable type 'URLSession' (aka 'AnyObject')
115 |    let jsonEncoder: JSONEncoder
116 |    let jsonDecoder: JSONDecoder
117 |    let urlSession: URLSession
    |        `- error: stored property 'urlSession' of 'Sendable'-conforming class 'RESTClient' has non-sendable type 'URLSession' (aka 'AnyObject')
118 |    let requestPlugins: [any RequestPlugin]
119 |    let responsePlugins: [any ResponsePlugin]
/host/spi-builder-workspace/Sources/HandySwift/Types/RESTClient.swift:188:21: error: cannot find 'URLRequest' in scope
186 |          .appending(queryItems: self.baseQueryItems + extraQueryItems)
187 |
188 |       var request = URLRequest(url: url)
    |                     `- error: cannot find 'URLRequest' in scope
189 |       request.httpMethod = method.rawValue
190 |
/host/spi-builder-workspace/Sources/HandySwift/Types/RESTClient.swift:225:21: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
223 |
224 |       let data: Data
225 |       let response: URLResponse
    |                     `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
226 |       do {
227 |          (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/Sources/HandySwift/Types/RESTClient.swift:227:55: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
225 |       let response: URLResponse
226 |       do {
227 |          (data, response) = try await self.urlSession.data(for: request)
    |                                                       `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
228 |       } catch {
229 |          throw APIError.failedToLoadData(error, self.errorContext(requestContext: errorContext))
/host/spi-builder-workspace/Sources/HandySwift/Types/RESTClient.swift:237:41: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
235 |
236 |    private func handle(data: Data, response: URLResponse, for request: URLRequest, errorContext: String?, attempt: Int = 1) async throws(APIError) -> Data {
237 |       guard var httpResponse = response as? HTTPURLResponse else {
    |                                         `- warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
238 |          throw .unexpectedResponseType(response, self.errorContext(requestContext: errorContext))
239 |       }
/host/spi-builder-workspace/Sources/HandySwift/Types/RESTClient.swift:237:45: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
235 |
236 |    private func handle(data: Data, response: URLResponse, for request: URLRequest, errorContext: String?, attempt: Int = 1) async throws(APIError) -> Data {
237 |       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.
238 |          throw .unexpectedResponseType(response, self.errorContext(requestContext: errorContext))
239 |       }
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
  |                  `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/HandySwift/Types/RESTClient.swift:250:27: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
248 |       }
249 |
250 |       switch httpResponse.statusCode {
    |                           `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
251 |       case 200..<300:
252 |          return data
/host/spi-builder-workspace/Sources/HandySwift/Types/RESTClient.swift:261:61: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
259 |          // respect the server retry-after(-ms) value if it exists, allowing values betwen 0.5-5 seconds
260 |          if
261 |             let retryAfterMillisecondsString = httpResponse.value(forHTTPHeaderField: "retry-after-ms"),
    |                                                             `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
262 |             let retryAfterMilliseconds = Double(retryAfterMillisecondsString)
263 |          {
/host/spi-builder-workspace/Sources/HandySwift/Types/RESTClient.swift:266:49: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
264 |             sleepSeconds = max(0.5, min(retryAfterMilliseconds, 5))
265 |          } else if
266 |             let retryAfterString = httpResponse.value(forHTTPHeaderField: "retry-after"),
    |                                                 `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
267 |             let retryAfter = Double(retryAfterString)
268 |          {
/host/spi-builder-workspace/Sources/HandySwift/Types/RESTClient.swift:283:71: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
281 |       case 400..<500:
282 |          guard !data.isEmpty else {
283 |             throw .clientError("Unexpected status code \(httpResponse.statusCode) without a response body.", self.errorContext(requestContext: errorContext))
    |                                                                       `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
284 |          }
285 |
/host/spi-builder-workspace/Sources/HandySwift/Types/RESTClient.swift:295:51: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
293 |
294 |       default:
295 |          throw .unexpectedStatusCode(httpResponse.statusCode, self.errorContext(requestContext: errorContext))
    |                                                   `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
296 |       }
297 |    }
/host/spi-builder-workspace/Sources/HandySwift/Types/RESTClient.swift:317:66: error: value of type 'URLResponse' (aka 'AnyObject') has no member 'url'
315 |       }
316 |
317 |       print("[\(self)] Received response & body from '\(response.url!)': \(response)\n\nResponse headers:\n\((response as? HTTPURLResponse)?.allHeaderFields ?? [:])\n\nResponse body:\n\(responseBodyString ?? "No body")")
    |                                                                  `- error: value of type 'URLResponse' (aka 'AnyObject') has no member 'url'
318 |       #endif
319 |    }
[5/36] Compiling HandySwift OperatingSystem.swift
/host/spi-builder-workspace/Sources/HandySwift/Types/RESTClient.swift:18:35: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 16 |       case failedToDecodeClientErrorBody(Error, Context?)
 17 |       case clientError(String, Context?)
 18 |       case unexpectedResponseType(URLResponse, Context?)
    |                                   `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 19 |       case unexpectedStatusCode(Int, Context?)
 20 |
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/HandySwift/Types/RESTClient.swift:18:12: error: associated value 'unexpectedResponseType' of 'Sendable'-conforming enum 'APIError' has non-sendable type 'URLResponse' (aka 'AnyObject')
 16 |       case failedToDecodeClientErrorBody(Error, Context?)
 17 |       case clientError(String, Context?)
 18 |       case unexpectedResponseType(URLResponse, Context?)
    |            `- error: associated value 'unexpectedResponseType' of 'Sendable'-conforming enum 'APIError' has non-sendable type 'URLResponse' (aka 'AnyObject')
 19 |       case unexpectedStatusCode(Int, Context?)
 20 |
/host/spi-builder-workspace/Sources/HandySwift/Types/RESTClient.swift:105:36: error: cannot find type 'URLRequest' in scope
103 |
104 |    public protocol RequestPlugin: Sendable {
105 |       func apply(to request: inout URLRequest)
    |                                    `- error: cannot find type 'URLRequest' in scope
106 |    }
107 |
/host/spi-builder-workspace/Sources/HandySwift/Types/RESTClient.swift:109:37: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
107 |
108 |    public protocol ResponsePlugin: Sendable {
109 |       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.
110 |    }
111 |
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
  |                  `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/HandySwift/Types/RESTClient.swift:117:20: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
115 |    let jsonEncoder: JSONEncoder
116 |    let jsonDecoder: JSONDecoder
117 |    let urlSession: URLSession
    |                    `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
118 |    let requestPlugins: [any RequestPlugin]
119 |    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/Sources/HandySwift/Types/RESTClient.swift:130:19: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
128 |       jsonEncoder: JSONEncoder = .init(),
129 |       jsonDecoder: JSONDecoder = .init(),
130 |       urlSession: URLSession = .shared,
    |                   `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
131 |       requestPlugins: [any RequestPlugin] = [],
132 |       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/Sources/HandySwift/Types/RESTClient.swift:130:33: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
128 |       jsonEncoder: JSONEncoder = .init(),
129 |       jsonDecoder: JSONDecoder = .init(),
130 |       urlSession: URLSession = .shared,
    |                                 `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
131 |       requestPlugins: [any RequestPlugin] = [],
132 |       responsePlugins: [any ResponsePlugin] = [],
/host/spi-builder-workspace/Sources/HandySwift/Types/RESTClient.swift:221:43: error: cannot find type 'URLRequest' in scope
219 |    }
220 |
221 |    private func performRequest(_ request: URLRequest, errorContext: String?) async throws(APIError) -> (Data, URLResponse) {
    |                                           `- error: cannot find type 'URLRequest' in scope
222 |       self.logRequestIfDebug(request)
223 |
/host/spi-builder-workspace/Sources/HandySwift/Types/RESTClient.swift:221:111: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
219 |    }
220 |
221 |    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.
222 |       self.logRequestIfDebug(request)
223 |
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/HandySwift/Types/RESTClient.swift:236:72: error: cannot find type 'URLRequest' in scope
234 |    }
235 |
236 |    private func handle(data: Data, response: URLResponse, for request: URLRequest, errorContext: String?, attempt: Int = 1) async throws(APIError) -> Data {
    |                                                                        `- error: cannot find type 'URLRequest' in scope
237 |       guard var httpResponse = response as? HTTPURLResponse else {
238 |          throw .unexpectedResponseType(response, self.errorContext(requestContext: errorContext))
/host/spi-builder-workspace/Sources/HandySwift/Types/RESTClient.swift:236:46: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
234 |    }
235 |
236 |    private func handle(data: Data, response: URLResponse, for request: URLRequest, errorContext: String?, attempt: Int = 1) async throws(APIError) -> Data {
    |                                              `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
237 |       guard var httpResponse = response as? HTTPURLResponse else {
238 |          throw .unexpectedResponseType(response, self.errorContext(requestContext: errorContext))
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/HandySwift/Types/RESTClient.swift:299:46: error: cannot find type 'URLRequest' in scope
297 |    }
298 |
299 |    private func logRequestIfDebug(_ request: URLRequest) {
    |                                              `- error: cannot find type 'URLRequest' in scope
300 |       #if DEBUG
301 |       var requestBodyString: String?
/host/spi-builder-workspace/Sources/HandySwift/Types/RESTClient.swift:310:48: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
308 |    }
309 |
310 |    private func logResponseIfDebug(_ response: URLResponse, data: Data?) {
    |                                                `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
311 |       #if DEBUG
312 |       var responseBodyString: String?
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/HandySwift/Types/RESTClient.swift:117:8: error: stored property 'urlSession' of 'Sendable'-conforming class 'RESTClient' has non-sendable type 'URLSession' (aka 'AnyObject')
115 |    let jsonEncoder: JSONEncoder
116 |    let jsonDecoder: JSONDecoder
117 |    let urlSession: URLSession
    |        `- error: stored property 'urlSession' of 'Sendable'-conforming class 'RESTClient' has non-sendable type 'URLSession' (aka 'AnyObject')
118 |    let requestPlugins: [any RequestPlugin]
119 |    let responsePlugins: [any ResponsePlugin]
/host/spi-builder-workspace/Sources/HandySwift/Types/RESTClient.swift:188:21: error: cannot find 'URLRequest' in scope
186 |          .appending(queryItems: self.baseQueryItems + extraQueryItems)
187 |
188 |       var request = URLRequest(url: url)
    |                     `- error: cannot find 'URLRequest' in scope
189 |       request.httpMethod = method.rawValue
190 |
/host/spi-builder-workspace/Sources/HandySwift/Types/RESTClient.swift:225:21: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
223 |
224 |       let data: Data
225 |       let response: URLResponse
    |                     `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
226 |       do {
227 |          (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/Sources/HandySwift/Types/RESTClient.swift:227:55: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
225 |       let response: URLResponse
226 |       do {
227 |          (data, response) = try await self.urlSession.data(for: request)
    |                                                       `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
228 |       } catch {
229 |          throw APIError.failedToLoadData(error, self.errorContext(requestContext: errorContext))
/host/spi-builder-workspace/Sources/HandySwift/Types/RESTClient.swift:237:41: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
235 |
236 |    private func handle(data: Data, response: URLResponse, for request: URLRequest, errorContext: String?, attempt: Int = 1) async throws(APIError) -> Data {
237 |       guard var httpResponse = response as? HTTPURLResponse else {
    |                                         `- warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
238 |          throw .unexpectedResponseType(response, self.errorContext(requestContext: errorContext))
239 |       }
/host/spi-builder-workspace/Sources/HandySwift/Types/RESTClient.swift:237:45: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
235 |
236 |    private func handle(data: Data, response: URLResponse, for request: URLRequest, errorContext: String?, attempt: Int = 1) async throws(APIError) -> Data {
237 |       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.
238 |          throw .unexpectedResponseType(response, self.errorContext(requestContext: errorContext))
239 |       }
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
  |                  `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/HandySwift/Types/RESTClient.swift:250:27: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
248 |       }
249 |
250 |       switch httpResponse.statusCode {
    |                           `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
251 |       case 200..<300:
252 |          return data
/host/spi-builder-workspace/Sources/HandySwift/Types/RESTClient.swift:261:61: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
259 |          // respect the server retry-after(-ms) value if it exists, allowing values betwen 0.5-5 seconds
260 |          if
261 |             let retryAfterMillisecondsString = httpResponse.value(forHTTPHeaderField: "retry-after-ms"),
    |                                                             `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
262 |             let retryAfterMilliseconds = Double(retryAfterMillisecondsString)
263 |          {
/host/spi-builder-workspace/Sources/HandySwift/Types/RESTClient.swift:266:49: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
264 |             sleepSeconds = max(0.5, min(retryAfterMilliseconds, 5))
265 |          } else if
266 |             let retryAfterString = httpResponse.value(forHTTPHeaderField: "retry-after"),
    |                                                 `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
267 |             let retryAfter = Double(retryAfterString)
268 |          {
/host/spi-builder-workspace/Sources/HandySwift/Types/RESTClient.swift:283:71: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
281 |       case 400..<500:
282 |          guard !data.isEmpty else {
283 |             throw .clientError("Unexpected status code \(httpResponse.statusCode) without a response body.", self.errorContext(requestContext: errorContext))
    |                                                                       `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
284 |          }
285 |
/host/spi-builder-workspace/Sources/HandySwift/Types/RESTClient.swift:295:51: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
293 |
294 |       default:
295 |          throw .unexpectedStatusCode(httpResponse.statusCode, self.errorContext(requestContext: errorContext))
    |                                                   `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
296 |       }
297 |    }
/host/spi-builder-workspace/Sources/HandySwift/Types/RESTClient.swift:317:66: error: value of type 'URLResponse' (aka 'AnyObject') has no member 'url'
315 |       }
316 |
317 |       print("[\(self)] Received response & body from '\(response.url!)': \(response)\n\nResponse headers:\n\((response as? HTTPURLResponse)?.allHeaderFields ?? [:])\n\nResponse body:\n\(responseBodyString ?? "No body")")
    |                                                                  `- error: value of type 'URLResponse' (aka 'AnyObject') has no member 'url'
318 |       #endif
319 |    }
[6/36] Compiling HandySwift RESTClient.swift
/host/spi-builder-workspace/Sources/HandySwift/Types/RESTClient.swift:18:35: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 16 |       case failedToDecodeClientErrorBody(Error, Context?)
 17 |       case clientError(String, Context?)
 18 |       case unexpectedResponseType(URLResponse, Context?)
    |                                   `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 19 |       case unexpectedStatusCode(Int, Context?)
 20 |
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/HandySwift/Types/RESTClient.swift:18:12: error: associated value 'unexpectedResponseType' of 'Sendable'-conforming enum 'APIError' has non-sendable type 'URLResponse' (aka 'AnyObject')
 16 |       case failedToDecodeClientErrorBody(Error, Context?)
 17 |       case clientError(String, Context?)
 18 |       case unexpectedResponseType(URLResponse, Context?)
    |            `- error: associated value 'unexpectedResponseType' of 'Sendable'-conforming enum 'APIError' has non-sendable type 'URLResponse' (aka 'AnyObject')
 19 |       case unexpectedStatusCode(Int, Context?)
 20 |
/host/spi-builder-workspace/Sources/HandySwift/Types/RESTClient.swift:105:36: error: cannot find type 'URLRequest' in scope
103 |
104 |    public protocol RequestPlugin: Sendable {
105 |       func apply(to request: inout URLRequest)
    |                                    `- error: cannot find type 'URLRequest' in scope
106 |    }
107 |
/host/spi-builder-workspace/Sources/HandySwift/Types/RESTClient.swift:109:37: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
107 |
108 |    public protocol ResponsePlugin: Sendable {
109 |       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.
110 |    }
111 |
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
  |                  `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/HandySwift/Types/RESTClient.swift:117:20: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
115 |    let jsonEncoder: JSONEncoder
116 |    let jsonDecoder: JSONDecoder
117 |    let urlSession: URLSession
    |                    `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
118 |    let requestPlugins: [any RequestPlugin]
119 |    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/Sources/HandySwift/Types/RESTClient.swift:130:19: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
128 |       jsonEncoder: JSONEncoder = .init(),
129 |       jsonDecoder: JSONDecoder = .init(),
130 |       urlSession: URLSession = .shared,
    |                   `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
131 |       requestPlugins: [any RequestPlugin] = [],
132 |       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/Sources/HandySwift/Types/RESTClient.swift:130:33: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
128 |       jsonEncoder: JSONEncoder = .init(),
129 |       jsonDecoder: JSONDecoder = .init(),
130 |       urlSession: URLSession = .shared,
    |                                 `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
131 |       requestPlugins: [any RequestPlugin] = [],
132 |       responsePlugins: [any ResponsePlugin] = [],
/host/spi-builder-workspace/Sources/HandySwift/Types/RESTClient.swift:221:43: error: cannot find type 'URLRequest' in scope
219 |    }
220 |
221 |    private func performRequest(_ request: URLRequest, errorContext: String?) async throws(APIError) -> (Data, URLResponse) {
    |                                           `- error: cannot find type 'URLRequest' in scope
222 |       self.logRequestIfDebug(request)
223 |
/host/spi-builder-workspace/Sources/HandySwift/Types/RESTClient.swift:221:111: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
219 |    }
220 |
221 |    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.
222 |       self.logRequestIfDebug(request)
223 |
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/HandySwift/Types/RESTClient.swift:236:72: error: cannot find type 'URLRequest' in scope
234 |    }
235 |
236 |    private func handle(data: Data, response: URLResponse, for request: URLRequest, errorContext: String?, attempt: Int = 1) async throws(APIError) -> Data {
    |                                                                        `- error: cannot find type 'URLRequest' in scope
237 |       guard var httpResponse = response as? HTTPURLResponse else {
238 |          throw .unexpectedResponseType(response, self.errorContext(requestContext: errorContext))
/host/spi-builder-workspace/Sources/HandySwift/Types/RESTClient.swift:236:46: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
234 |    }
235 |
236 |    private func handle(data: Data, response: URLResponse, for request: URLRequest, errorContext: String?, attempt: Int = 1) async throws(APIError) -> Data {
    |                                              `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
237 |       guard var httpResponse = response as? HTTPURLResponse else {
238 |          throw .unexpectedResponseType(response, self.errorContext(requestContext: errorContext))
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/HandySwift/Types/RESTClient.swift:299:46: error: cannot find type 'URLRequest' in scope
297 |    }
298 |
299 |    private func logRequestIfDebug(_ request: URLRequest) {
    |                                              `- error: cannot find type 'URLRequest' in scope
300 |       #if DEBUG
301 |       var requestBodyString: String?
/host/spi-builder-workspace/Sources/HandySwift/Types/RESTClient.swift:310:48: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
308 |    }
309 |
310 |    private func logResponseIfDebug(_ response: URLResponse, data: Data?) {
    |                                                `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
311 |       #if DEBUG
312 |       var responseBodyString: String?
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/HandySwift/Types/RESTClient.swift:117:8: error: stored property 'urlSession' of 'Sendable'-conforming class 'RESTClient' has non-sendable type 'URLSession' (aka 'AnyObject')
115 |    let jsonEncoder: JSONEncoder
116 |    let jsonDecoder: JSONDecoder
117 |    let urlSession: URLSession
    |        `- error: stored property 'urlSession' of 'Sendable'-conforming class 'RESTClient' has non-sendable type 'URLSession' (aka 'AnyObject')
118 |    let requestPlugins: [any RequestPlugin]
119 |    let responsePlugins: [any ResponsePlugin]
/host/spi-builder-workspace/Sources/HandySwift/Types/RESTClient.swift:188:21: error: cannot find 'URLRequest' in scope
186 |          .appending(queryItems: self.baseQueryItems + extraQueryItems)
187 |
188 |       var request = URLRequest(url: url)
    |                     `- error: cannot find 'URLRequest' in scope
189 |       request.httpMethod = method.rawValue
190 |
/host/spi-builder-workspace/Sources/HandySwift/Types/RESTClient.swift:225:21: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
223 |
224 |       let data: Data
225 |       let response: URLResponse
    |                     `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
226 |       do {
227 |          (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/Sources/HandySwift/Types/RESTClient.swift:227:55: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
225 |       let response: URLResponse
226 |       do {
227 |          (data, response) = try await self.urlSession.data(for: request)
    |                                                       `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
228 |       } catch {
229 |          throw APIError.failedToLoadData(error, self.errorContext(requestContext: errorContext))
/host/spi-builder-workspace/Sources/HandySwift/Types/RESTClient.swift:237:41: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
235 |
236 |    private func handle(data: Data, response: URLResponse, for request: URLRequest, errorContext: String?, attempt: Int = 1) async throws(APIError) -> Data {
237 |       guard var httpResponse = response as? HTTPURLResponse else {
    |                                         `- warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
238 |          throw .unexpectedResponseType(response, self.errorContext(requestContext: errorContext))
239 |       }
/host/spi-builder-workspace/Sources/HandySwift/Types/RESTClient.swift:237:45: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
235 |
236 |    private func handle(data: Data, response: URLResponse, for request: URLRequest, errorContext: String?, attempt: Int = 1) async throws(APIError) -> Data {
237 |       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.
238 |          throw .unexpectedResponseType(response, self.errorContext(requestContext: errorContext))
239 |       }
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
  |                  `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/HandySwift/Types/RESTClient.swift:250:27: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
248 |       }
249 |
250 |       switch httpResponse.statusCode {
    |                           `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
251 |       case 200..<300:
252 |          return data
/host/spi-builder-workspace/Sources/HandySwift/Types/RESTClient.swift:261:61: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
259 |          // respect the server retry-after(-ms) value if it exists, allowing values betwen 0.5-5 seconds
260 |          if
261 |             let retryAfterMillisecondsString = httpResponse.value(forHTTPHeaderField: "retry-after-ms"),
    |                                                             `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
262 |             let retryAfterMilliseconds = Double(retryAfterMillisecondsString)
263 |          {
/host/spi-builder-workspace/Sources/HandySwift/Types/RESTClient.swift:266:49: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
264 |             sleepSeconds = max(0.5, min(retryAfterMilliseconds, 5))
265 |          } else if
266 |             let retryAfterString = httpResponse.value(forHTTPHeaderField: "retry-after"),
    |                                                 `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
267 |             let retryAfter = Double(retryAfterString)
268 |          {
/host/spi-builder-workspace/Sources/HandySwift/Types/RESTClient.swift:283:71: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
281 |       case 400..<500:
282 |          guard !data.isEmpty else {
283 |             throw .clientError("Unexpected status code \(httpResponse.statusCode) without a response body.", self.errorContext(requestContext: errorContext))
    |                                                                       `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
284 |          }
285 |
/host/spi-builder-workspace/Sources/HandySwift/Types/RESTClient.swift:295:51: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
293 |
294 |       default:
295 |          throw .unexpectedStatusCode(httpResponse.statusCode, self.errorContext(requestContext: errorContext))
    |                                                   `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
296 |       }
297 |    }
/host/spi-builder-workspace/Sources/HandySwift/Types/RESTClient.swift:317:66: error: value of type 'URLResponse' (aka 'AnyObject') has no member 'url'
315 |       }
316 |
317 |       print("[\(self)] Received response & body from '\(response.url!)': \(response)\n\nResponse headers:\n\((response as? HTTPURLResponse)?.allHeaderFields ?? [:])\n\nResponse body:\n\(responseBodyString ?? "No body")")
    |                                                                  `- error: value of type 'URLResponse' (aka 'AnyObject') has no member 'url'
318 |       #endif
319 |    }
[7/36] Compiling HandySwift SortedArray.swift
/host/spi-builder-workspace/Sources/HandySwift/Types/RESTClient.swift:18:35: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 16 |       case failedToDecodeClientErrorBody(Error, Context?)
 17 |       case clientError(String, Context?)
 18 |       case unexpectedResponseType(URLResponse, Context?)
    |                                   `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 19 |       case unexpectedStatusCode(Int, Context?)
 20 |
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/HandySwift/Types/RESTClient.swift:18:12: error: associated value 'unexpectedResponseType' of 'Sendable'-conforming enum 'APIError' has non-sendable type 'URLResponse' (aka 'AnyObject')
 16 |       case failedToDecodeClientErrorBody(Error, Context?)
 17 |       case clientError(String, Context?)
 18 |       case unexpectedResponseType(URLResponse, Context?)
    |            `- error: associated value 'unexpectedResponseType' of 'Sendable'-conforming enum 'APIError' has non-sendable type 'URLResponse' (aka 'AnyObject')
 19 |       case unexpectedStatusCode(Int, Context?)
 20 |
/host/spi-builder-workspace/Sources/HandySwift/Types/RESTClient.swift:105:36: error: cannot find type 'URLRequest' in scope
103 |
104 |    public protocol RequestPlugin: Sendable {
105 |       func apply(to request: inout URLRequest)
    |                                    `- error: cannot find type 'URLRequest' in scope
106 |    }
107 |
/host/spi-builder-workspace/Sources/HandySwift/Types/RESTClient.swift:109:37: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
107 |
108 |    public protocol ResponsePlugin: Sendable {
109 |       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.
110 |    }
111 |
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
  |                  `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/HandySwift/Types/RESTClient.swift:117:20: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
115 |    let jsonEncoder: JSONEncoder
116 |    let jsonDecoder: JSONDecoder
117 |    let urlSession: URLSession
    |                    `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
118 |    let requestPlugins: [any RequestPlugin]
119 |    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/Sources/HandySwift/Types/RESTClient.swift:130:19: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
128 |       jsonEncoder: JSONEncoder = .init(),
129 |       jsonDecoder: JSONDecoder = .init(),
130 |       urlSession: URLSession = .shared,
    |                   `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
131 |       requestPlugins: [any RequestPlugin] = [],
132 |       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/Sources/HandySwift/Types/RESTClient.swift:130:33: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
128 |       jsonEncoder: JSONEncoder = .init(),
129 |       jsonDecoder: JSONDecoder = .init(),
130 |       urlSession: URLSession = .shared,
    |                                 `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
131 |       requestPlugins: [any RequestPlugin] = [],
132 |       responsePlugins: [any ResponsePlugin] = [],
/host/spi-builder-workspace/Sources/HandySwift/Types/RESTClient.swift:221:43: error: cannot find type 'URLRequest' in scope
219 |    }
220 |
221 |    private func performRequest(_ request: URLRequest, errorContext: String?) async throws(APIError) -> (Data, URLResponse) {
    |                                           `- error: cannot find type 'URLRequest' in scope
222 |       self.logRequestIfDebug(request)
223 |
/host/spi-builder-workspace/Sources/HandySwift/Types/RESTClient.swift:221:111: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
219 |    }
220 |
221 |    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.
222 |       self.logRequestIfDebug(request)
223 |
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/HandySwift/Types/RESTClient.swift:236:72: error: cannot find type 'URLRequest' in scope
234 |    }
235 |
236 |    private func handle(data: Data, response: URLResponse, for request: URLRequest, errorContext: String?, attempt: Int = 1) async throws(APIError) -> Data {
    |                                                                        `- error: cannot find type 'URLRequest' in scope
237 |       guard var httpResponse = response as? HTTPURLResponse else {
238 |          throw .unexpectedResponseType(response, self.errorContext(requestContext: errorContext))
/host/spi-builder-workspace/Sources/HandySwift/Types/RESTClient.swift:236:46: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
234 |    }
235 |
236 |    private func handle(data: Data, response: URLResponse, for request: URLRequest, errorContext: String?, attempt: Int = 1) async throws(APIError) -> Data {
    |                                              `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
237 |       guard var httpResponse = response as? HTTPURLResponse else {
238 |          throw .unexpectedResponseType(response, self.errorContext(requestContext: errorContext))
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/HandySwift/Types/RESTClient.swift:299:46: error: cannot find type 'URLRequest' in scope
297 |    }
298 |
299 |    private func logRequestIfDebug(_ request: URLRequest) {
    |                                              `- error: cannot find type 'URLRequest' in scope
300 |       #if DEBUG
301 |       var requestBodyString: String?
/host/spi-builder-workspace/Sources/HandySwift/Types/RESTClient.swift:310:48: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
308 |    }
309 |
310 |    private func logResponseIfDebug(_ response: URLResponse, data: Data?) {
    |                                                `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
311 |       #if DEBUG
312 |       var responseBodyString: String?
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/HandySwift/Types/RESTClient.swift:117:8: error: stored property 'urlSession' of 'Sendable'-conforming class 'RESTClient' has non-sendable type 'URLSession' (aka 'AnyObject')
115 |    let jsonEncoder: JSONEncoder
116 |    let jsonDecoder: JSONDecoder
117 |    let urlSession: URLSession
    |        `- error: stored property 'urlSession' of 'Sendable'-conforming class 'RESTClient' has non-sendable type 'URLSession' (aka 'AnyObject')
118 |    let requestPlugins: [any RequestPlugin]
119 |    let responsePlugins: [any ResponsePlugin]
/host/spi-builder-workspace/Sources/HandySwift/Types/RESTClient.swift:188:21: error: cannot find 'URLRequest' in scope
186 |          .appending(queryItems: self.baseQueryItems + extraQueryItems)
187 |
188 |       var request = URLRequest(url: url)
    |                     `- error: cannot find 'URLRequest' in scope
189 |       request.httpMethod = method.rawValue
190 |
/host/spi-builder-workspace/Sources/HandySwift/Types/RESTClient.swift:225:21: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
223 |
224 |       let data: Data
225 |       let response: URLResponse
    |                     `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
226 |       do {
227 |          (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/Sources/HandySwift/Types/RESTClient.swift:227:55: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
225 |       let response: URLResponse
226 |       do {
227 |          (data, response) = try await self.urlSession.data(for: request)
    |                                                       `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
228 |       } catch {
229 |          throw APIError.failedToLoadData(error, self.errorContext(requestContext: errorContext))
/host/spi-builder-workspace/Sources/HandySwift/Types/RESTClient.swift:237:41: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
235 |
236 |    private func handle(data: Data, response: URLResponse, for request: URLRequest, errorContext: String?, attempt: Int = 1) async throws(APIError) -> Data {
237 |       guard var httpResponse = response as? HTTPURLResponse else {
    |                                         `- warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
238 |          throw .unexpectedResponseType(response, self.errorContext(requestContext: errorContext))
239 |       }
/host/spi-builder-workspace/Sources/HandySwift/Types/RESTClient.swift:237:45: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
235 |
236 |    private func handle(data: Data, response: URLResponse, for request: URLRequest, errorContext: String?, attempt: Int = 1) async throws(APIError) -> Data {
237 |       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.
238 |          throw .unexpectedResponseType(response, self.errorContext(requestContext: errorContext))
239 |       }
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
  |                  `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/HandySwift/Types/RESTClient.swift:250:27: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
248 |       }
249 |
250 |       switch httpResponse.statusCode {
    |                           `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
251 |       case 200..<300:
252 |          return data
/host/spi-builder-workspace/Sources/HandySwift/Types/RESTClient.swift:261:61: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
259 |          // respect the server retry-after(-ms) value if it exists, allowing values betwen 0.5-5 seconds
260 |          if
261 |             let retryAfterMillisecondsString = httpResponse.value(forHTTPHeaderField: "retry-after-ms"),
    |                                                             `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
262 |             let retryAfterMilliseconds = Double(retryAfterMillisecondsString)
263 |          {
/host/spi-builder-workspace/Sources/HandySwift/Types/RESTClient.swift:266:49: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
264 |             sleepSeconds = max(0.5, min(retryAfterMilliseconds, 5))
265 |          } else if
266 |             let retryAfterString = httpResponse.value(forHTTPHeaderField: "retry-after"),
    |                                                 `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
267 |             let retryAfter = Double(retryAfterString)
268 |          {
/host/spi-builder-workspace/Sources/HandySwift/Types/RESTClient.swift:283:71: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
281 |       case 400..<500:
282 |          guard !data.isEmpty else {
283 |             throw .clientError("Unexpected status code \(httpResponse.statusCode) without a response body.", self.errorContext(requestContext: errorContext))
    |                                                                       `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
284 |          }
285 |
/host/spi-builder-workspace/Sources/HandySwift/Types/RESTClient.swift:295:51: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
293 |
294 |       default:
295 |          throw .unexpectedStatusCode(httpResponse.statusCode, self.errorContext(requestContext: errorContext))
    |                                                   `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
296 |       }
297 |    }
/host/spi-builder-workspace/Sources/HandySwift/Types/RESTClient.swift:317:66: error: value of type 'URLResponse' (aka 'AnyObject') has no member 'url'
315 |       }
316 |
317 |       print("[\(self)] Received response & body from '\(response.url!)': \(response)\n\nResponse headers:\n\((response as? HTTPURLResponse)?.allHeaderFields ?? [:])\n\nResponse body:\n\(responseBodyString ?? "No body")")
    |                                                                  `- error: value of type 'URLResponse' (aka 'AnyObject') has no member 'url'
318 |       #endif
319 |    }
[8/36] Compiling HandySwift Globals.swift
/host/spi-builder-workspace/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/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/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/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/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/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/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/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 |
[9/36] Compiling HandySwift AutoConforming.swift
/host/spi-builder-workspace/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/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/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/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/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/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/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/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 |
[10/36] Compiling HandySwift DivisibleArithmetic.swift
/host/spi-builder-workspace/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/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/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/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/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/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/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/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/36] Compiling HandySwift Withable.swift
/host/spi-builder-workspace/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/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/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/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/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/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/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/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/36] Compiling HandySwift StringExt.swift
[13/36] Compiling HandySwift StringProtocolExt.swift
[14/36] Compiling HandySwift SymmetricKeyExt.swift
[15/36] Compiling HandySwift TimeIntervalExt.swift
[16/36] Compiling HandySwift JSONEncoderExt.swift
[17/36] Compiling HandySwift NSRangeExt.swift
[18/36] Compiling HandySwift RandomAccessCollectionExt.swift
[19/36] Compiling HandySwift SequenceExt.swift
[20/36] Compiling HandySwift Debouncer.swift
[21/36] Compiling HandySwift FrequencyTable.swift
[22/36] Compiling HandySwift GregorianDay.swift
[23/36] Compiling HandySwift GregorianTime.swift
[24/36] Compiling HandySwift DateExt.swift
/host/spi-builder-workspace/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),
[25/36] Compiling HandySwift DictionaryExt.swift
/host/spi-builder-workspace/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),
[26/36] Compiling HandySwift DispatchTimeIntervalExt.swift
/host/spi-builder-workspace/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),
[27/36] Compiling HandySwift DoubleExt.swift
/host/spi-builder-workspace/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),
[28/36] Compiling HandySwift ArrayExt.swift
[29/36] Compiling HandySwift CaseIterableExt.swift
[30/36] Compiling HandySwift CollectionExt.swift
[31/36] Compiling HandySwift ComparableExt.swift
[32/36] Compiling HandySwift DataExt.swift
[33/36] Compiling HandySwift DurationExt.swift
[34/36] Compiling HandySwift FloatExt.swift
[35/36] Compiling HandySwift IntExt.swift
[36/36] Compiling HandySwift JSONDecoderExt.swift
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-1":/host -w "$PWD" 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:7e37457820e5f17452a98118754f345f2619722c485f2db0d8b666940a83afd2
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest
[0/1] Planning build
Building for debugging...
[0/1] Write swift-version-24593BA9C3E375BF.txt
[2/31] Compiling HandySwift Globals.swift
/host/spi-builder-workspace/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/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/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/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/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/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/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/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 |
[3/31] Compiling HandySwift AutoConforming.swift
/host/spi-builder-workspace/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/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/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/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/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/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/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/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 |
[4/31] Compiling HandySwift DivisibleArithmetic.swift
/host/spi-builder-workspace/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/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/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/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/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/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/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/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 |
[5/31] Compiling HandySwift Withable.swift
/host/spi-builder-workspace/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/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/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/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/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/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/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/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 |
[6/35] Compiling HandySwift ArrayExt.swift
[7/35] Compiling HandySwift CaseIterableExt.swift
[8/35] Compiling HandySwift CollectionExt.swift
[9/35] Compiling HandySwift ComparableExt.swift
[10/35] Compiling HandySwift DataExt.swift
[11/35] Compiling HandySwift DateExt.swift
/host/spi-builder-workspace/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),
[12/35] Compiling HandySwift DictionaryExt.swift
/host/spi-builder-workspace/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),
[13/35] Compiling HandySwift DispatchTimeIntervalExt.swift
/host/spi-builder-workspace/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),
[14/35] Compiling HandySwift DoubleExt.swift
/host/spi-builder-workspace/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),
error: emit-module command failed with exit code 1 (use -v to see invocation)
[15/35] Emitting module HandySwift
/host/spi-builder-workspace/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/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/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/Sources/HandySwift/Types/RESTClient.swift:18:35: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 16 |       case failedToDecodeClientErrorBody(Error, Context?)
 17 |       case clientError(String, Context?)
 18 |       case unexpectedResponseType(URLResponse, Context?)
    |                                   `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 19 |       case unexpectedStatusCode(Int, Context?)
 20 |
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/HandySwift/Types/RESTClient.swift:18:12: error: associated value 'unexpectedResponseType' of 'Sendable'-conforming enum 'APIError' has non-sendable type 'URLResponse' (aka 'AnyObject')
 16 |       case failedToDecodeClientErrorBody(Error, Context?)
 17 |       case clientError(String, Context?)
 18 |       case unexpectedResponseType(URLResponse, Context?)
    |            `- error: associated value 'unexpectedResponseType' of 'Sendable'-conforming enum 'APIError' has non-sendable type 'URLResponse' (aka 'AnyObject')
 19 |       case unexpectedStatusCode(Int, Context?)
 20 |
/host/spi-builder-workspace/Sources/HandySwift/Types/RESTClient.swift:105:36: error: cannot find type 'URLRequest' in scope
103 |
104 |    public protocol RequestPlugin: Sendable {
105 |       func apply(to request: inout URLRequest)
    |                                    `- error: cannot find type 'URLRequest' in scope
106 |    }
107 |
/host/spi-builder-workspace/Sources/HandySwift/Types/RESTClient.swift:109:37: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
107 |
108 |    public protocol ResponsePlugin: Sendable {
109 |       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.
110 |    }
111 |
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
  |                  `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/HandySwift/Types/RESTClient.swift:117:20: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
115 |    let jsonEncoder: JSONEncoder
116 |    let jsonDecoder: JSONDecoder
117 |    let urlSession: URLSession
    |                    `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
118 |    let requestPlugins: [any RequestPlugin]
119 |    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/Sources/HandySwift/Types/RESTClient.swift:130:19: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
128 |       jsonEncoder: JSONEncoder = .init(),
129 |       jsonDecoder: JSONDecoder = .init(),
130 |       urlSession: URLSession = .shared,
    |                   `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
131 |       requestPlugins: [any RequestPlugin] = [],
132 |       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/Sources/HandySwift/Types/RESTClient.swift:130:33: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
128 |       jsonEncoder: JSONEncoder = .init(),
129 |       jsonDecoder: JSONDecoder = .init(),
130 |       urlSession: URLSession = .shared,
    |                                 `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
131 |       requestPlugins: [any RequestPlugin] = [],
132 |       responsePlugins: [any ResponsePlugin] = [],
/host/spi-builder-workspace/Sources/HandySwift/Types/RESTClient.swift:221:43: error: cannot find type 'URLRequest' in scope
219 |    }
220 |
221 |    private func performRequest(_ request: URLRequest, errorContext: String?) async throws(APIError) -> (Data, URLResponse) {
    |                                           `- error: cannot find type 'URLRequest' in scope
222 |       self.logRequestIfDebug(request)
223 |
/host/spi-builder-workspace/Sources/HandySwift/Types/RESTClient.swift:221:111: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
219 |    }
220 |
221 |    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.
222 |       self.logRequestIfDebug(request)
223 |
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/HandySwift/Types/RESTClient.swift:236:72: error: cannot find type 'URLRequest' in scope
234 |    }
235 |
236 |    private func handle(data: Data, response: URLResponse, for request: URLRequest, errorContext: String?, attempt: Int = 1) async throws(APIError) -> Data {
    |                                                                        `- error: cannot find type 'URLRequest' in scope
237 |       guard var httpResponse = response as? HTTPURLResponse else {
238 |          throw .unexpectedResponseType(response, self.errorContext(requestContext: errorContext))
/host/spi-builder-workspace/Sources/HandySwift/Types/RESTClient.swift:236:46: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
234 |    }
235 |
236 |    private func handle(data: Data, response: URLResponse, for request: URLRequest, errorContext: String?, attempt: Int = 1) async throws(APIError) -> Data {
    |                                              `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
237 |       guard var httpResponse = response as? HTTPURLResponse else {
238 |          throw .unexpectedResponseType(response, self.errorContext(requestContext: errorContext))
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/HandySwift/Types/RESTClient.swift:299:46: error: cannot find type 'URLRequest' in scope
297 |    }
298 |
299 |    private func logRequestIfDebug(_ request: URLRequest) {
    |                                              `- error: cannot find type 'URLRequest' in scope
300 |       #if DEBUG
301 |       var requestBodyString: String?
/host/spi-builder-workspace/Sources/HandySwift/Types/RESTClient.swift:310:48: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
308 |    }
309 |
310 |    private func logResponseIfDebug(_ response: URLResponse, data: Data?) {
    |                                                `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
311 |       #if DEBUG
312 |       var responseBodyString: String?
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/HandySwift/Types/RESTClient.swift:117:8: error: stored property 'urlSession' of 'Sendable'-conforming class 'RESTClient' has non-sendable type 'URLSession' (aka 'AnyObject')
115 |    let jsonEncoder: JSONEncoder
116 |    let jsonDecoder: JSONDecoder
117 |    let urlSession: URLSession
    |        `- error: stored property 'urlSession' of 'Sendable'-conforming class 'RESTClient' has non-sendable type 'URLSession' (aka 'AnyObject')
118 |    let requestPlugins: [any RequestPlugin]
119 |    let responsePlugins: [any ResponsePlugin]
[16/35] Compiling HandySwift StringExt.swift
[17/35] Compiling HandySwift StringProtocolExt.swift
[18/35] Compiling HandySwift SymmetricKeyExt.swift
[19/35] Compiling HandySwift TimeIntervalExt.swift
[20/35] Compiling HandySwift HandyRegex.swift
/host/spi-builder-workspace/Sources/HandySwift/Types/RESTClient.swift:18:35: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 16 |       case failedToDecodeClientErrorBody(Error, Context?)
 17 |       case clientError(String, Context?)
 18 |       case unexpectedResponseType(URLResponse, Context?)
    |                                   `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 19 |       case unexpectedStatusCode(Int, Context?)
 20 |
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/HandySwift/Types/RESTClient.swift:18:12: error: associated value 'unexpectedResponseType' of 'Sendable'-conforming enum 'APIError' has non-sendable type 'URLResponse' (aka 'AnyObject')
 16 |       case failedToDecodeClientErrorBody(Error, Context?)
 17 |       case clientError(String, Context?)
 18 |       case unexpectedResponseType(URLResponse, Context?)
    |            `- error: associated value 'unexpectedResponseType' of 'Sendable'-conforming enum 'APIError' has non-sendable type 'URLResponse' (aka 'AnyObject')
 19 |       case unexpectedStatusCode(Int, Context?)
 20 |
/host/spi-builder-workspace/Sources/HandySwift/Types/RESTClient.swift:105:36: error: cannot find type 'URLRequest' in scope
103 |
104 |    public protocol RequestPlugin: Sendable {
105 |       func apply(to request: inout URLRequest)
    |                                    `- error: cannot find type 'URLRequest' in scope
106 |    }
107 |
/host/spi-builder-workspace/Sources/HandySwift/Types/RESTClient.swift:109:37: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
107 |
108 |    public protocol ResponsePlugin: Sendable {
109 |       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.
110 |    }
111 |
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
  |                  `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/HandySwift/Types/RESTClient.swift:117:20: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
115 |    let jsonEncoder: JSONEncoder
116 |    let jsonDecoder: JSONDecoder
117 |    let urlSession: URLSession
    |                    `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
118 |    let requestPlugins: [any RequestPlugin]
119 |    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/Sources/HandySwift/Types/RESTClient.swift:130:19: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
128 |       jsonEncoder: JSONEncoder = .init(),
129 |       jsonDecoder: JSONDecoder = .init(),
130 |       urlSession: URLSession = .shared,
    |                   `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
131 |       requestPlugins: [any RequestPlugin] = [],
132 |       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/Sources/HandySwift/Types/RESTClient.swift:130:33: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
128 |       jsonEncoder: JSONEncoder = .init(),
129 |       jsonDecoder: JSONDecoder = .init(),
130 |       urlSession: URLSession = .shared,
    |                                 `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
131 |       requestPlugins: [any RequestPlugin] = [],
132 |       responsePlugins: [any ResponsePlugin] = [],
/host/spi-builder-workspace/Sources/HandySwift/Types/RESTClient.swift:221:43: error: cannot find type 'URLRequest' in scope
219 |    }
220 |
221 |    private func performRequest(_ request: URLRequest, errorContext: String?) async throws(APIError) -> (Data, URLResponse) {
    |                                           `- error: cannot find type 'URLRequest' in scope
222 |       self.logRequestIfDebug(request)
223 |
/host/spi-builder-workspace/Sources/HandySwift/Types/RESTClient.swift:221:111: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
219 |    }
220 |
221 |    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.
222 |       self.logRequestIfDebug(request)
223 |
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/HandySwift/Types/RESTClient.swift:236:72: error: cannot find type 'URLRequest' in scope
234 |    }
235 |
236 |    private func handle(data: Data, response: URLResponse, for request: URLRequest, errorContext: String?, attempt: Int = 1) async throws(APIError) -> Data {
    |                                                                        `- error: cannot find type 'URLRequest' in scope
237 |       guard var httpResponse = response as? HTTPURLResponse else {
238 |          throw .unexpectedResponseType(response, self.errorContext(requestContext: errorContext))
/host/spi-builder-workspace/Sources/HandySwift/Types/RESTClient.swift:236:46: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
234 |    }
235 |
236 |    private func handle(data: Data, response: URLResponse, for request: URLRequest, errorContext: String?, attempt: Int = 1) async throws(APIError) -> Data {
    |                                              `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
237 |       guard var httpResponse = response as? HTTPURLResponse else {
238 |          throw .unexpectedResponseType(response, self.errorContext(requestContext: errorContext))
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/HandySwift/Types/RESTClient.swift:299:46: error: cannot find type 'URLRequest' in scope
297 |    }
298 |
299 |    private func logRequestIfDebug(_ request: URLRequest) {
    |                                              `- error: cannot find type 'URLRequest' in scope
300 |       #if DEBUG
301 |       var requestBodyString: String?
/host/spi-builder-workspace/Sources/HandySwift/Types/RESTClient.swift:310:48: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
308 |    }
309 |
310 |    private func logResponseIfDebug(_ response: URLResponse, data: Data?) {
    |                                                `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
311 |       #if DEBUG
312 |       var responseBodyString: String?
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/HandySwift/Types/RESTClient.swift:117:8: error: stored property 'urlSession' of 'Sendable'-conforming class 'RESTClient' has non-sendable type 'URLSession' (aka 'AnyObject')
115 |    let jsonEncoder: JSONEncoder
116 |    let jsonDecoder: JSONDecoder
117 |    let urlSession: URLSession
    |        `- error: stored property 'urlSession' of 'Sendable'-conforming class 'RESTClient' has non-sendable type 'URLSession' (aka 'AnyObject')
118 |    let requestPlugins: [any RequestPlugin]
119 |    let responsePlugins: [any ResponsePlugin]
/host/spi-builder-workspace/Sources/HandySwift/Types/RESTClient.swift:188:21: error: cannot find 'URLRequest' in scope
186 |          .appending(queryItems: self.baseQueryItems + extraQueryItems)
187 |
188 |       var request = URLRequest(url: url)
    |                     `- error: cannot find 'URLRequest' in scope
189 |       request.httpMethod = method.rawValue
190 |
/host/spi-builder-workspace/Sources/HandySwift/Types/RESTClient.swift:225:21: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
223 |
224 |       let data: Data
225 |       let response: URLResponse
    |                     `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
226 |       do {
227 |          (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/Sources/HandySwift/Types/RESTClient.swift:227:55: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
225 |       let response: URLResponse
226 |       do {
227 |          (data, response) = try await self.urlSession.data(for: request)
    |                                                       `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
228 |       } catch {
229 |          throw APIError.failedToLoadData(error, self.errorContext(requestContext: errorContext))
/host/spi-builder-workspace/Sources/HandySwift/Types/RESTClient.swift:237:41: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
235 |
236 |    private func handle(data: Data, response: URLResponse, for request: URLRequest, errorContext: String?, attempt: Int = 1) async throws(APIError) -> Data {
237 |       guard var httpResponse = response as? HTTPURLResponse else {
    |                                         `- warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
238 |          throw .unexpectedResponseType(response, self.errorContext(requestContext: errorContext))
239 |       }
/host/spi-builder-workspace/Sources/HandySwift/Types/RESTClient.swift:237:45: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
235 |
236 |    private func handle(data: Data, response: URLResponse, for request: URLRequest, errorContext: String?, attempt: Int = 1) async throws(APIError) -> Data {
237 |       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.
238 |          throw .unexpectedResponseType(response, self.errorContext(requestContext: errorContext))
239 |       }
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
  |                  `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/HandySwift/Types/RESTClient.swift:250:27: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
248 |       }
249 |
250 |       switch httpResponse.statusCode {
    |                           `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
251 |       case 200..<300:
252 |          return data
/host/spi-builder-workspace/Sources/HandySwift/Types/RESTClient.swift:261:61: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
259 |          // respect the server retry-after(-ms) value if it exists, allowing values betwen 0.5-5 seconds
260 |          if
261 |             let retryAfterMillisecondsString = httpResponse.value(forHTTPHeaderField: "retry-after-ms"),
    |                                                             `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
262 |             let retryAfterMilliseconds = Double(retryAfterMillisecondsString)
263 |          {
/host/spi-builder-workspace/Sources/HandySwift/Types/RESTClient.swift:266:49: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
264 |             sleepSeconds = max(0.5, min(retryAfterMilliseconds, 5))
265 |          } else if
266 |             let retryAfterString = httpResponse.value(forHTTPHeaderField: "retry-after"),
    |                                                 `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
267 |             let retryAfter = Double(retryAfterString)
268 |          {
/host/spi-builder-workspace/Sources/HandySwift/Types/RESTClient.swift:283:71: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
281 |       case 400..<500:
282 |          guard !data.isEmpty else {
283 |             throw .clientError("Unexpected status code \(httpResponse.statusCode) without a response body.", self.errorContext(requestContext: errorContext))
    |                                                                       `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
284 |          }
285 |
/host/spi-builder-workspace/Sources/HandySwift/Types/RESTClient.swift:295:51: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
293 |
294 |       default:
295 |          throw .unexpectedStatusCode(httpResponse.statusCode, self.errorContext(requestContext: errorContext))
    |                                                   `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
296 |       }
297 |    }
/host/spi-builder-workspace/Sources/HandySwift/Types/RESTClient.swift:317:66: error: value of type 'URLResponse' (aka 'AnyObject') has no member 'url'
315 |       }
316 |
317 |       print("[\(self)] Received response & body from '\(response.url!)': \(response)\n\nResponse headers:\n\((response as? HTTPURLResponse)?.allHeaderFields ?? [:])\n\nResponse body:\n\(responseBodyString ?? "No body")")
    |                                                                  `- error: value of type 'URLResponse' (aka 'AnyObject') has no member 'url'
318 |       #endif
319 |    }
[21/35] Compiling HandySwift OperatingSystem.swift
/host/spi-builder-workspace/Sources/HandySwift/Types/RESTClient.swift:18:35: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 16 |       case failedToDecodeClientErrorBody(Error, Context?)
 17 |       case clientError(String, Context?)
 18 |       case unexpectedResponseType(URLResponse, Context?)
    |                                   `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 19 |       case unexpectedStatusCode(Int, Context?)
 20 |
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/HandySwift/Types/RESTClient.swift:18:12: error: associated value 'unexpectedResponseType' of 'Sendable'-conforming enum 'APIError' has non-sendable type 'URLResponse' (aka 'AnyObject')
 16 |       case failedToDecodeClientErrorBody(Error, Context?)
 17 |       case clientError(String, Context?)
 18 |       case unexpectedResponseType(URLResponse, Context?)
    |            `- error: associated value 'unexpectedResponseType' of 'Sendable'-conforming enum 'APIError' has non-sendable type 'URLResponse' (aka 'AnyObject')
 19 |       case unexpectedStatusCode(Int, Context?)
 20 |
/host/spi-builder-workspace/Sources/HandySwift/Types/RESTClient.swift:105:36: error: cannot find type 'URLRequest' in scope
103 |
104 |    public protocol RequestPlugin: Sendable {
105 |       func apply(to request: inout URLRequest)
    |                                    `- error: cannot find type 'URLRequest' in scope
106 |    }
107 |
/host/spi-builder-workspace/Sources/HandySwift/Types/RESTClient.swift:109:37: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
107 |
108 |    public protocol ResponsePlugin: Sendable {
109 |       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.
110 |    }
111 |
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
  |                  `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/HandySwift/Types/RESTClient.swift:117:20: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
115 |    let jsonEncoder: JSONEncoder
116 |    let jsonDecoder: JSONDecoder
117 |    let urlSession: URLSession
    |                    `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
118 |    let requestPlugins: [any RequestPlugin]
119 |    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/Sources/HandySwift/Types/RESTClient.swift:130:19: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
128 |       jsonEncoder: JSONEncoder = .init(),
129 |       jsonDecoder: JSONDecoder = .init(),
130 |       urlSession: URLSession = .shared,
    |                   `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
131 |       requestPlugins: [any RequestPlugin] = [],
132 |       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/Sources/HandySwift/Types/RESTClient.swift:130:33: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
128 |       jsonEncoder: JSONEncoder = .init(),
129 |       jsonDecoder: JSONDecoder = .init(),
130 |       urlSession: URLSession = .shared,
    |                                 `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
131 |       requestPlugins: [any RequestPlugin] = [],
132 |       responsePlugins: [any ResponsePlugin] = [],
/host/spi-builder-workspace/Sources/HandySwift/Types/RESTClient.swift:221:43: error: cannot find type 'URLRequest' in scope
219 |    }
220 |
221 |    private func performRequest(_ request: URLRequest, errorContext: String?) async throws(APIError) -> (Data, URLResponse) {
    |                                           `- error: cannot find type 'URLRequest' in scope
222 |       self.logRequestIfDebug(request)
223 |
/host/spi-builder-workspace/Sources/HandySwift/Types/RESTClient.swift:221:111: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
219 |    }
220 |
221 |    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.
222 |       self.logRequestIfDebug(request)
223 |
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/HandySwift/Types/RESTClient.swift:236:72: error: cannot find type 'URLRequest' in scope
234 |    }
235 |
236 |    private func handle(data: Data, response: URLResponse, for request: URLRequest, errorContext: String?, attempt: Int = 1) async throws(APIError) -> Data {
    |                                                                        `- error: cannot find type 'URLRequest' in scope
237 |       guard var httpResponse = response as? HTTPURLResponse else {
238 |          throw .unexpectedResponseType(response, self.errorContext(requestContext: errorContext))
/host/spi-builder-workspace/Sources/HandySwift/Types/RESTClient.swift:236:46: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
234 |    }
235 |
236 |    private func handle(data: Data, response: URLResponse, for request: URLRequest, errorContext: String?, attempt: Int = 1) async throws(APIError) -> Data {
    |                                              `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
237 |       guard var httpResponse = response as? HTTPURLResponse else {
238 |          throw .unexpectedResponseType(response, self.errorContext(requestContext: errorContext))
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/HandySwift/Types/RESTClient.swift:299:46: error: cannot find type 'URLRequest' in scope
297 |    }
298 |
299 |    private func logRequestIfDebug(_ request: URLRequest) {
    |                                              `- error: cannot find type 'URLRequest' in scope
300 |       #if DEBUG
301 |       var requestBodyString: String?
/host/spi-builder-workspace/Sources/HandySwift/Types/RESTClient.swift:310:48: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
308 |    }
309 |
310 |    private func logResponseIfDebug(_ response: URLResponse, data: Data?) {
    |                                                `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
311 |       #if DEBUG
312 |       var responseBodyString: String?
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/HandySwift/Types/RESTClient.swift:117:8: error: stored property 'urlSession' of 'Sendable'-conforming class 'RESTClient' has non-sendable type 'URLSession' (aka 'AnyObject')
115 |    let jsonEncoder: JSONEncoder
116 |    let jsonDecoder: JSONDecoder
117 |    let urlSession: URLSession
    |        `- error: stored property 'urlSession' of 'Sendable'-conforming class 'RESTClient' has non-sendable type 'URLSession' (aka 'AnyObject')
118 |    let requestPlugins: [any RequestPlugin]
119 |    let responsePlugins: [any ResponsePlugin]
/host/spi-builder-workspace/Sources/HandySwift/Types/RESTClient.swift:188:21: error: cannot find 'URLRequest' in scope
186 |          .appending(queryItems: self.baseQueryItems + extraQueryItems)
187 |
188 |       var request = URLRequest(url: url)
    |                     `- error: cannot find 'URLRequest' in scope
189 |       request.httpMethod = method.rawValue
190 |
/host/spi-builder-workspace/Sources/HandySwift/Types/RESTClient.swift:225:21: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
223 |
224 |       let data: Data
225 |       let response: URLResponse
    |                     `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
226 |       do {
227 |          (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/Sources/HandySwift/Types/RESTClient.swift:227:55: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
225 |       let response: URLResponse
226 |       do {
227 |          (data, response) = try await self.urlSession.data(for: request)
    |                                                       `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
228 |       } catch {
229 |          throw APIError.failedToLoadData(error, self.errorContext(requestContext: errorContext))
/host/spi-builder-workspace/Sources/HandySwift/Types/RESTClient.swift:237:41: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
235 |
236 |    private func handle(data: Data, response: URLResponse, for request: URLRequest, errorContext: String?, attempt: Int = 1) async throws(APIError) -> Data {
237 |       guard var httpResponse = response as? HTTPURLResponse else {
    |                                         `- warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
238 |          throw .unexpectedResponseType(response, self.errorContext(requestContext: errorContext))
239 |       }
/host/spi-builder-workspace/Sources/HandySwift/Types/RESTClient.swift:237:45: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
235 |
236 |    private func handle(data: Data, response: URLResponse, for request: URLRequest, errorContext: String?, attempt: Int = 1) async throws(APIError) -> Data {
237 |       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.
238 |          throw .unexpectedResponseType(response, self.errorContext(requestContext: errorContext))
239 |       }
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
  |                  `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/HandySwift/Types/RESTClient.swift:250:27: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
248 |       }
249 |
250 |       switch httpResponse.statusCode {
    |                           `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
251 |       case 200..<300:
252 |          return data
/host/spi-builder-workspace/Sources/HandySwift/Types/RESTClient.swift:261:61: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
259 |          // respect the server retry-after(-ms) value if it exists, allowing values betwen 0.5-5 seconds
260 |          if
261 |             let retryAfterMillisecondsString = httpResponse.value(forHTTPHeaderField: "retry-after-ms"),
    |                                                             `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
262 |             let retryAfterMilliseconds = Double(retryAfterMillisecondsString)
263 |          {
/host/spi-builder-workspace/Sources/HandySwift/Types/RESTClient.swift:266:49: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
264 |             sleepSeconds = max(0.5, min(retryAfterMilliseconds, 5))
265 |          } else if
266 |             let retryAfterString = httpResponse.value(forHTTPHeaderField: "retry-after"),
    |                                                 `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
267 |             let retryAfter = Double(retryAfterString)
268 |          {
/host/spi-builder-workspace/Sources/HandySwift/Types/RESTClient.swift:283:71: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
281 |       case 400..<500:
282 |          guard !data.isEmpty else {
283 |             throw .clientError("Unexpected status code \(httpResponse.statusCode) without a response body.", self.errorContext(requestContext: errorContext))
    |                                                                       `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
284 |          }
285 |
/host/spi-builder-workspace/Sources/HandySwift/Types/RESTClient.swift:295:51: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
293 |
294 |       default:
295 |          throw .unexpectedStatusCode(httpResponse.statusCode, self.errorContext(requestContext: errorContext))
    |                                                   `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
296 |       }
297 |    }
/host/spi-builder-workspace/Sources/HandySwift/Types/RESTClient.swift:317:66: error: value of type 'URLResponse' (aka 'AnyObject') has no member 'url'
315 |       }
316 |
317 |       print("[\(self)] Received response & body from '\(response.url!)': \(response)\n\nResponse headers:\n\((response as? HTTPURLResponse)?.allHeaderFields ?? [:])\n\nResponse body:\n\(responseBodyString ?? "No body")")
    |                                                                  `- error: value of type 'URLResponse' (aka 'AnyObject') has no member 'url'
318 |       #endif
319 |    }
[22/35] Compiling HandySwift RESTClient.swift
/host/spi-builder-workspace/Sources/HandySwift/Types/RESTClient.swift:18:35: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 16 |       case failedToDecodeClientErrorBody(Error, Context?)
 17 |       case clientError(String, Context?)
 18 |       case unexpectedResponseType(URLResponse, Context?)
    |                                   `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 19 |       case unexpectedStatusCode(Int, Context?)
 20 |
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/HandySwift/Types/RESTClient.swift:18:12: error: associated value 'unexpectedResponseType' of 'Sendable'-conforming enum 'APIError' has non-sendable type 'URLResponse' (aka 'AnyObject')
 16 |       case failedToDecodeClientErrorBody(Error, Context?)
 17 |       case clientError(String, Context?)
 18 |       case unexpectedResponseType(URLResponse, Context?)
    |            `- error: associated value 'unexpectedResponseType' of 'Sendable'-conforming enum 'APIError' has non-sendable type 'URLResponse' (aka 'AnyObject')
 19 |       case unexpectedStatusCode(Int, Context?)
 20 |
/host/spi-builder-workspace/Sources/HandySwift/Types/RESTClient.swift:105:36: error: cannot find type 'URLRequest' in scope
103 |
104 |    public protocol RequestPlugin: Sendable {
105 |       func apply(to request: inout URLRequest)
    |                                    `- error: cannot find type 'URLRequest' in scope
106 |    }
107 |
/host/spi-builder-workspace/Sources/HandySwift/Types/RESTClient.swift:109:37: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
107 |
108 |    public protocol ResponsePlugin: Sendable {
109 |       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.
110 |    }
111 |
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
  |                  `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/HandySwift/Types/RESTClient.swift:117:20: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
115 |    let jsonEncoder: JSONEncoder
116 |    let jsonDecoder: JSONDecoder
117 |    let urlSession: URLSession
    |                    `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
118 |    let requestPlugins: [any RequestPlugin]
119 |    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/Sources/HandySwift/Types/RESTClient.swift:130:19: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
128 |       jsonEncoder: JSONEncoder = .init(),
129 |       jsonDecoder: JSONDecoder = .init(),
130 |       urlSession: URLSession = .shared,
    |                   `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
131 |       requestPlugins: [any RequestPlugin] = [],
132 |       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/Sources/HandySwift/Types/RESTClient.swift:130:33: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
128 |       jsonEncoder: JSONEncoder = .init(),
129 |       jsonDecoder: JSONDecoder = .init(),
130 |       urlSession: URLSession = .shared,
    |                                 `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
131 |       requestPlugins: [any RequestPlugin] = [],
132 |       responsePlugins: [any ResponsePlugin] = [],
/host/spi-builder-workspace/Sources/HandySwift/Types/RESTClient.swift:221:43: error: cannot find type 'URLRequest' in scope
219 |    }
220 |
221 |    private func performRequest(_ request: URLRequest, errorContext: String?) async throws(APIError) -> (Data, URLResponse) {
    |                                           `- error: cannot find type 'URLRequest' in scope
222 |       self.logRequestIfDebug(request)
223 |
/host/spi-builder-workspace/Sources/HandySwift/Types/RESTClient.swift:221:111: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
219 |    }
220 |
221 |    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.
222 |       self.logRequestIfDebug(request)
223 |
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/HandySwift/Types/RESTClient.swift:236:72: error: cannot find type 'URLRequest' in scope
234 |    }
235 |
236 |    private func handle(data: Data, response: URLResponse, for request: URLRequest, errorContext: String?, attempt: Int = 1) async throws(APIError) -> Data {
    |                                                                        `- error: cannot find type 'URLRequest' in scope
237 |       guard var httpResponse = response as? HTTPURLResponse else {
238 |          throw .unexpectedResponseType(response, self.errorContext(requestContext: errorContext))
/host/spi-builder-workspace/Sources/HandySwift/Types/RESTClient.swift:236:46: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
234 |    }
235 |
236 |    private func handle(data: Data, response: URLResponse, for request: URLRequest, errorContext: String?, attempt: Int = 1) async throws(APIError) -> Data {
    |                                              `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
237 |       guard var httpResponse = response as? HTTPURLResponse else {
238 |          throw .unexpectedResponseType(response, self.errorContext(requestContext: errorContext))
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/HandySwift/Types/RESTClient.swift:299:46: error: cannot find type 'URLRequest' in scope
297 |    }
298 |
299 |    private func logRequestIfDebug(_ request: URLRequest) {
    |                                              `- error: cannot find type 'URLRequest' in scope
300 |       #if DEBUG
301 |       var requestBodyString: String?
/host/spi-builder-workspace/Sources/HandySwift/Types/RESTClient.swift:310:48: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
308 |    }
309 |
310 |    private func logResponseIfDebug(_ response: URLResponse, data: Data?) {
    |                                                `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
311 |       #if DEBUG
312 |       var responseBodyString: String?
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/HandySwift/Types/RESTClient.swift:117:8: error: stored property 'urlSession' of 'Sendable'-conforming class 'RESTClient' has non-sendable type 'URLSession' (aka 'AnyObject')
115 |    let jsonEncoder: JSONEncoder
116 |    let jsonDecoder: JSONDecoder
117 |    let urlSession: URLSession
    |        `- error: stored property 'urlSession' of 'Sendable'-conforming class 'RESTClient' has non-sendable type 'URLSession' (aka 'AnyObject')
118 |    let requestPlugins: [any RequestPlugin]
119 |    let responsePlugins: [any ResponsePlugin]
/host/spi-builder-workspace/Sources/HandySwift/Types/RESTClient.swift:188:21: error: cannot find 'URLRequest' in scope
186 |          .appending(queryItems: self.baseQueryItems + extraQueryItems)
187 |
188 |       var request = URLRequest(url: url)
    |                     `- error: cannot find 'URLRequest' in scope
189 |       request.httpMethod = method.rawValue
190 |
/host/spi-builder-workspace/Sources/HandySwift/Types/RESTClient.swift:225:21: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
223 |
224 |       let data: Data
225 |       let response: URLResponse
    |                     `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
226 |       do {
227 |          (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/Sources/HandySwift/Types/RESTClient.swift:227:55: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
225 |       let response: URLResponse
226 |       do {
227 |          (data, response) = try await self.urlSession.data(for: request)
    |                                                       `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
228 |       } catch {
229 |          throw APIError.failedToLoadData(error, self.errorContext(requestContext: errorContext))
/host/spi-builder-workspace/Sources/HandySwift/Types/RESTClient.swift:237:41: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
235 |
236 |    private func handle(data: Data, response: URLResponse, for request: URLRequest, errorContext: String?, attempt: Int = 1) async throws(APIError) -> Data {
237 |       guard var httpResponse = response as? HTTPURLResponse else {
    |                                         `- warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
238 |          throw .unexpectedResponseType(response, self.errorContext(requestContext: errorContext))
239 |       }
/host/spi-builder-workspace/Sources/HandySwift/Types/RESTClient.swift:237:45: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
235 |
236 |    private func handle(data: Data, response: URLResponse, for request: URLRequest, errorContext: String?, attempt: Int = 1) async throws(APIError) -> Data {
237 |       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.
238 |          throw .unexpectedResponseType(response, self.errorContext(requestContext: errorContext))
239 |       }
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
  |                  `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/HandySwift/Types/RESTClient.swift:250:27: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
248 |       }
249 |
250 |       switch httpResponse.statusCode {
    |                           `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
251 |       case 200..<300:
252 |          return data
/host/spi-builder-workspace/Sources/HandySwift/Types/RESTClient.swift:261:61: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
259 |          // respect the server retry-after(-ms) value if it exists, allowing values betwen 0.5-5 seconds
260 |          if
261 |             let retryAfterMillisecondsString = httpResponse.value(forHTTPHeaderField: "retry-after-ms"),
    |                                                             `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
262 |             let retryAfterMilliseconds = Double(retryAfterMillisecondsString)
263 |          {
/host/spi-builder-workspace/Sources/HandySwift/Types/RESTClient.swift:266:49: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
264 |             sleepSeconds = max(0.5, min(retryAfterMilliseconds, 5))
265 |          } else if
266 |             let retryAfterString = httpResponse.value(forHTTPHeaderField: "retry-after"),
    |                                                 `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
267 |             let retryAfter = Double(retryAfterString)
268 |          {
/host/spi-builder-workspace/Sources/HandySwift/Types/RESTClient.swift:283:71: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
281 |       case 400..<500:
282 |          guard !data.isEmpty else {
283 |             throw .clientError("Unexpected status code \(httpResponse.statusCode) without a response body.", self.errorContext(requestContext: errorContext))
    |                                                                       `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
284 |          }
285 |
/host/spi-builder-workspace/Sources/HandySwift/Types/RESTClient.swift:295:51: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
293 |
294 |       default:
295 |          throw .unexpectedStatusCode(httpResponse.statusCode, self.errorContext(requestContext: errorContext))
    |                                                   `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
296 |       }
297 |    }
/host/spi-builder-workspace/Sources/HandySwift/Types/RESTClient.swift:317:66: error: value of type 'URLResponse' (aka 'AnyObject') has no member 'url'
315 |       }
316 |
317 |       print("[\(self)] Received response & body from '\(response.url!)': \(response)\n\nResponse headers:\n\((response as? HTTPURLResponse)?.allHeaderFields ?? [:])\n\nResponse body:\n\(responseBodyString ?? "No body")")
    |                                                                  `- error: value of type 'URLResponse' (aka 'AnyObject') has no member 'url'
318 |       #endif
319 |    }
[23/35] Compiling HandySwift SortedArray.swift
/host/spi-builder-workspace/Sources/HandySwift/Types/RESTClient.swift:18:35: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 16 |       case failedToDecodeClientErrorBody(Error, Context?)
 17 |       case clientError(String, Context?)
 18 |       case unexpectedResponseType(URLResponse, Context?)
    |                                   `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 19 |       case unexpectedStatusCode(Int, Context?)
 20 |
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/HandySwift/Types/RESTClient.swift:18:12: error: associated value 'unexpectedResponseType' of 'Sendable'-conforming enum 'APIError' has non-sendable type 'URLResponse' (aka 'AnyObject')
 16 |       case failedToDecodeClientErrorBody(Error, Context?)
 17 |       case clientError(String, Context?)
 18 |       case unexpectedResponseType(URLResponse, Context?)
    |            `- error: associated value 'unexpectedResponseType' of 'Sendable'-conforming enum 'APIError' has non-sendable type 'URLResponse' (aka 'AnyObject')
 19 |       case unexpectedStatusCode(Int, Context?)
 20 |
/host/spi-builder-workspace/Sources/HandySwift/Types/RESTClient.swift:105:36: error: cannot find type 'URLRequest' in scope
103 |
104 |    public protocol RequestPlugin: Sendable {
105 |       func apply(to request: inout URLRequest)
    |                                    `- error: cannot find type 'URLRequest' in scope
106 |    }
107 |
/host/spi-builder-workspace/Sources/HandySwift/Types/RESTClient.swift:109:37: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
107 |
108 |    public protocol ResponsePlugin: Sendable {
109 |       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.
110 |    }
111 |
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
  |                  `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/HandySwift/Types/RESTClient.swift:117:20: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
115 |    let jsonEncoder: JSONEncoder
116 |    let jsonDecoder: JSONDecoder
117 |    let urlSession: URLSession
    |                    `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
118 |    let requestPlugins: [any RequestPlugin]
119 |    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/Sources/HandySwift/Types/RESTClient.swift:130:19: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
128 |       jsonEncoder: JSONEncoder = .init(),
129 |       jsonDecoder: JSONDecoder = .init(),
130 |       urlSession: URLSession = .shared,
    |                   `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
131 |       requestPlugins: [any RequestPlugin] = [],
132 |       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/Sources/HandySwift/Types/RESTClient.swift:130:33: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
128 |       jsonEncoder: JSONEncoder = .init(),
129 |       jsonDecoder: JSONDecoder = .init(),
130 |       urlSession: URLSession = .shared,
    |                                 `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
131 |       requestPlugins: [any RequestPlugin] = [],
132 |       responsePlugins: [any ResponsePlugin] = [],
/host/spi-builder-workspace/Sources/HandySwift/Types/RESTClient.swift:221:43: error: cannot find type 'URLRequest' in scope
219 |    }
220 |
221 |    private func performRequest(_ request: URLRequest, errorContext: String?) async throws(APIError) -> (Data, URLResponse) {
    |                                           `- error: cannot find type 'URLRequest' in scope
222 |       self.logRequestIfDebug(request)
223 |
/host/spi-builder-workspace/Sources/HandySwift/Types/RESTClient.swift:221:111: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
219 |    }
220 |
221 |    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.
222 |       self.logRequestIfDebug(request)
223 |
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/HandySwift/Types/RESTClient.swift:236:72: error: cannot find type 'URLRequest' in scope
234 |    }
235 |
236 |    private func handle(data: Data, response: URLResponse, for request: URLRequest, errorContext: String?, attempt: Int = 1) async throws(APIError) -> Data {
    |                                                                        `- error: cannot find type 'URLRequest' in scope
237 |       guard var httpResponse = response as? HTTPURLResponse else {
238 |          throw .unexpectedResponseType(response, self.errorContext(requestContext: errorContext))
/host/spi-builder-workspace/Sources/HandySwift/Types/RESTClient.swift:236:46: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
234 |    }
235 |
236 |    private func handle(data: Data, response: URLResponse, for request: URLRequest, errorContext: String?, attempt: Int = 1) async throws(APIError) -> Data {
    |                                              `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
237 |       guard var httpResponse = response as? HTTPURLResponse else {
238 |          throw .unexpectedResponseType(response, self.errorContext(requestContext: errorContext))
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/HandySwift/Types/RESTClient.swift:299:46: error: cannot find type 'URLRequest' in scope
297 |    }
298 |
299 |    private func logRequestIfDebug(_ request: URLRequest) {
    |                                              `- error: cannot find type 'URLRequest' in scope
300 |       #if DEBUG
301 |       var requestBodyString: String?
/host/spi-builder-workspace/Sources/HandySwift/Types/RESTClient.swift:310:48: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
308 |    }
309 |
310 |    private func logResponseIfDebug(_ response: URLResponse, data: Data?) {
    |                                                `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
311 |       #if DEBUG
312 |       var responseBodyString: String?
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/HandySwift/Types/RESTClient.swift:117:8: error: stored property 'urlSession' of 'Sendable'-conforming class 'RESTClient' has non-sendable type 'URLSession' (aka 'AnyObject')
115 |    let jsonEncoder: JSONEncoder
116 |    let jsonDecoder: JSONDecoder
117 |    let urlSession: URLSession
    |        `- error: stored property 'urlSession' of 'Sendable'-conforming class 'RESTClient' has non-sendable type 'URLSession' (aka 'AnyObject')
118 |    let requestPlugins: [any RequestPlugin]
119 |    let responsePlugins: [any ResponsePlugin]
/host/spi-builder-workspace/Sources/HandySwift/Types/RESTClient.swift:188:21: error: cannot find 'URLRequest' in scope
186 |          .appending(queryItems: self.baseQueryItems + extraQueryItems)
187 |
188 |       var request = URLRequest(url: url)
    |                     `- error: cannot find 'URLRequest' in scope
189 |       request.httpMethod = method.rawValue
190 |
/host/spi-builder-workspace/Sources/HandySwift/Types/RESTClient.swift:225:21: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
223 |
224 |       let data: Data
225 |       let response: URLResponse
    |                     `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
226 |       do {
227 |          (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/Sources/HandySwift/Types/RESTClient.swift:227:55: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
225 |       let response: URLResponse
226 |       do {
227 |          (data, response) = try await self.urlSession.data(for: request)
    |                                                       `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
228 |       } catch {
229 |          throw APIError.failedToLoadData(error, self.errorContext(requestContext: errorContext))
/host/spi-builder-workspace/Sources/HandySwift/Types/RESTClient.swift:237:41: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
235 |
236 |    private func handle(data: Data, response: URLResponse, for request: URLRequest, errorContext: String?, attempt: Int = 1) async throws(APIError) -> Data {
237 |       guard var httpResponse = response as? HTTPURLResponse else {
    |                                         `- warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
238 |          throw .unexpectedResponseType(response, self.errorContext(requestContext: errorContext))
239 |       }
/host/spi-builder-workspace/Sources/HandySwift/Types/RESTClient.swift:237:45: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
235 |
236 |    private func handle(data: Data, response: URLResponse, for request: URLRequest, errorContext: String?, attempt: Int = 1) async throws(APIError) -> Data {
237 |       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.
238 |          throw .unexpectedResponseType(response, self.errorContext(requestContext: errorContext))
239 |       }
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
  |                  `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/HandySwift/Types/RESTClient.swift:250:27: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
248 |       }
249 |
250 |       switch httpResponse.statusCode {
    |                           `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
251 |       case 200..<300:
252 |          return data
/host/spi-builder-workspace/Sources/HandySwift/Types/RESTClient.swift:261:61: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
259 |          // respect the server retry-after(-ms) value if it exists, allowing values betwen 0.5-5 seconds
260 |          if
261 |             let retryAfterMillisecondsString = httpResponse.value(forHTTPHeaderField: "retry-after-ms"),
    |                                                             `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
262 |             let retryAfterMilliseconds = Double(retryAfterMillisecondsString)
263 |          {
/host/spi-builder-workspace/Sources/HandySwift/Types/RESTClient.swift:266:49: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
264 |             sleepSeconds = max(0.5, min(retryAfterMilliseconds, 5))
265 |          } else if
266 |             let retryAfterString = httpResponse.value(forHTTPHeaderField: "retry-after"),
    |                                                 `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
267 |             let retryAfter = Double(retryAfterString)
268 |          {
/host/spi-builder-workspace/Sources/HandySwift/Types/RESTClient.swift:283:71: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
281 |       case 400..<500:
282 |          guard !data.isEmpty else {
283 |             throw .clientError("Unexpected status code \(httpResponse.statusCode) without a response body.", self.errorContext(requestContext: errorContext))
    |                                                                       `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
284 |          }
285 |
/host/spi-builder-workspace/Sources/HandySwift/Types/RESTClient.swift:295:51: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
293 |
294 |       default:
295 |          throw .unexpectedStatusCode(httpResponse.statusCode, self.errorContext(requestContext: errorContext))
    |                                                   `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
296 |       }
297 |    }
/host/spi-builder-workspace/Sources/HandySwift/Types/RESTClient.swift:317:66: error: value of type 'URLResponse' (aka 'AnyObject') has no member 'url'
315 |       }
316 |
317 |       print("[\(self)] Received response & body from '\(response.url!)': \(response)\n\nResponse headers:\n\((response as? HTTPURLResponse)?.allHeaderFields ?? [:])\n\nResponse body:\n\(responseBodyString ?? "No body")")
    |                                                                  `- error: value of type 'URLResponse' (aka 'AnyObject') has no member 'url'
318 |       #endif
319 |    }
[24/35] Compiling HandySwift DurationExt.swift
[25/35] Compiling HandySwift FloatExt.swift
[26/35] Compiling HandySwift IntExt.swift
[27/35] Compiling HandySwift JSONDecoderExt.swift
[28/35] Compiling HandySwift Debouncer.swift
[29/35] Compiling HandySwift FrequencyTable.swift
[30/35] Compiling HandySwift GregorianDay.swift
[31/35] Compiling HandySwift GregorianTime.swift
[32/35] Compiling HandySwift JSONEncoderExt.swift
[33/35] Compiling HandySwift NSRangeExt.swift
[34/35] Compiling HandySwift RandomAccessCollectionExt.swift
[35/35] Compiling HandySwift SequenceExt.swift
BUILD FAILURE 6.1 wasm