Build Information
Failed to build IntelligenceKit, reference main (98d383), with Swift 6.3 for Wasm on 16 Apr 2026 20:56:22 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/swiftpackageindex/spi-images:wasm-6.3-latest swift build --swift-sdk swift-6.3-RELEASE_wasm 2>&1Build Log
========================================
RunAll
========================================
Builder version: 4.70.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/FlineDev/IntelligenceKit.git
Reference: main
Initialized empty Git repository in /host/spi-builder-workspace/.git/
hint: Using 'master' as the name for the initial branch. This default branch name
hint: is subject to change. To configure the initial branch name to use in all
hint: of your new repositories, which will suppress this warning, call:
hint:
hint: git config --global init.defaultBranch <name>
hint:
hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and
hint: 'development'. The just-created branch can be renamed via this command:
hint:
hint: git branch -m <name>
From https://github.com/FlineDev/IntelligenceKit
* branch main -> FETCH_HEAD
* [new branch] main -> origin/main
HEAD is now at 98d3833 Remove ContextKit artifacts during Indie workspace cleanup in favor of shared skills
Cloned https://github.com/FlineDev/IntelligenceKit.git
Revision (git rev-parse @):
98d3833aab18e98d5a403c9d26979d9e0e063060
SUCCESS checkout https://github.com/FlineDev/IntelligenceKit.git at main
========================================
Build
========================================
Selected platform: wasm
Swift version: 6.3
Building package at path: $PWD
https://github.com/FlineDev/IntelligenceKit.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/swiftpackageindex/spi-images:wasm-6.3-latest swift build --swift-sdk swift-6.3-RELEASE_wasm 2>&1
wasm-6.3-latest: Pulling from swiftpackageindex/spi-images
Digest: sha256:d69f4e7582c319245442d62a08b2d7c7fd5a0c0c69f5d2ef11d1530cd8d3329b
Status: Image is up to date for registry.gitlab.com/swiftpackageindex/spi-images:wasm-6.3-latest
Fetching https://github.com/FlineDev/HandySwift.git
[1/3483] Fetching handyswift
Fetched https://github.com/FlineDev/HandySwift.git from cache (0.37s)
Fetching https://github.com/FlineDev/ErrorKit.git
[1/657] Fetching errorkit
Fetched https://github.com/FlineDev/ErrorKit.git from cache (0.36s)
Fetching https://github.com/apple/swift-crypto.git
[1/17374] Fetching swift-crypto
Fetched https://github.com/apple/swift-crypto.git from cache (2.05s)
Computing version for https://github.com/apple/swift-crypto.git
Computed https://github.com/apple/swift-crypto.git at 3.15.1 (4.72s)
Fetching https://github.com/apple/swift-asn1.git
[1/1803] Fetching swift-asn1
Fetched https://github.com/apple/swift-asn1.git from cache (0.34s)
Computing version for https://github.com/apple/swift-asn1.git
Computed https://github.com/apple/swift-asn1.git at 1.7.0 (2.76s)
Creating working copy for https://github.com/apple/swift-asn1.git
Working copy of https://github.com/apple/swift-asn1.git resolved at 1.7.0
Creating working copy for https://github.com/apple/swift-crypto.git
Working copy of https://github.com/apple/swift-crypto.git resolved at 3.15.1
Creating working copy for https://github.com/FlineDev/HandySwift.git
Working copy of https://github.com/FlineDev/HandySwift.git resolved at main (f30a47c)
Creating working copy for https://github.com/FlineDev/ErrorKit.git
Working copy of https://github.com/FlineDev/ErrorKit.git resolved at main (6265a02)
Building for debugging...
[0/376] Copying PrivacyInfo.xcprivacy
[0/376] Copying Info.plist
[2/376] Copying Localizable.xcstrings
[3/376] Write sources
[8/376] Compiling fiat_curve25519_adx_square.S
[9/376] Compiling fiat_curve25519_adx_mul.S
[10/376] Compiling md5-x86_64-linux.S
[11/376] Compiling fiat_p256_adx_sqr.S
[12/376] Compiling fiat_p256_adx_mul.S
[13/376] Write swift-version-24593BA9C3E375BF.txt
[14/376] Compiling md5-x86_64-apple.S
[15/376] Compiling md5-586-linux.S
[16/376] Compiling md5-586-apple.S
[17/376] Compiling chacha20_poly1305_x86_64-linux.S
[18/376] Compiling chacha20_poly1305_x86_64-apple.S
[19/376] Compiling chacha20_poly1305_armv8-linux.S
[20/376] Compiling chacha20_poly1305_armv8-win.S
[21/376] Compiling chacha-x86_64-linux.S
[22/376] Compiling chacha20_poly1305_armv8-apple.S
[23/377] Compiling chacha-x86_64-apple.S
[24/377] Compiling chacha-x86-linux.S
[25/377] Compiling chacha-x86-apple.S
[26/377] Compiling CCryptoBoringSSLShims shims.c
[27/377] Compiling err_data.cc
[28/377] Compiling aes128gcmsiv-x86_64-linux.S
[29/377] Compiling chacha-armv4-linux.S
[29/377] Compiling chacha-armv8-linux.S
[29/377] Compiling aes128gcmsiv-x86_64-apple.S
[29/377] Compiling chacha-armv8-win.S
[29/377] Compiling chacha-armv8-apple.S
[34/377] Compiling x86_64-mont5-linux.S
[35/377] Compiling x86_64-mont-linux.S
[36/382] Compiling x86_64-mont5-apple.S
[37/410] Compiling x86-mont-apple.S
[38/410] Compiling x86_64-mont-apple.S
[39/410] Compiling x86-mont-linux.S
[40/410] Compiling vpaes-x86_64-linux.S
[41/410] Compiling vpaes-x86_64-apple.S
[42/410] Compiling vpaes-x86-apple.S
[43/410] Compiling vpaes-x86-linux.S
[44/410] Compiling vpaes-armv8-win.S
[45/410] Compiling vpaes-armv8-apple.S
[46/410] Compiling vpaes-armv8-linux.S
[47/410] Compiling sha512-x86_64-linux.S
[48/410] Compiling vpaes-armv7-linux.S
[49/410] Compiling sha512-armv8-win.S
[50/410] Compiling sha512-x86_64-apple.S
[51/410] Compiling sha512-armv8-linux.S
[51/410] Compiling sha512-armv8-apple.S
[53/410] Compiling sha512-armv4-linux.S
[54/410] Compiling sha512-586-linux.S
[55/410] Compiling sha512-586-apple.S
[56/410] Compiling sha256-x86_64-apple.S
[57/410] Compiling sha256-x86_64-linux.S
[58/410] Compiling sha256-armv8-linux.S
[59/410] Compiling sha256-armv8-apple.S
[60/410] Compiling sha256-armv4-linux.S
[61/410] Compiling sha256-armv8-win.S
[62/410] Compiling sha256-586-linux.S
[63/410] Compiling sha1-x86_64-linux.S
[64/410] Compiling sha1-armv8-win.S
[65/410] Compiling sha1-x86_64-apple.S
[65/410] Compiling sha256-586-apple.S
[67/410] Compiling sha1-armv8-apple.S
[68/410] Compiling sha1-armv8-linux.S
[69/410] Compiling sha1-armv4-large-linux.S
[70/410] Compiling sha1-586-linux.S
[71/410] Compiling rsaz-avx2-linux.S
[72/410] Compiling sha1-586-apple.S
[73/410] Compiling rdrand-x86_64-linux.S
[74/410] Compiling rsaz-avx2-apple.S
[75/410] Compiling p256_beeu-x86_64-asm-linux.S
[76/410] Compiling rdrand-x86_64-apple.S
[77/410] Compiling p256_beeu-x86_64-asm-apple.S
[78/410] Compiling p256_beeu-armv8-asm-linux.S
[79/410] Compiling p256_beeu-armv8-asm-win.S
[80/410] Compiling p256_beeu-armv8-asm-apple.S
[81/410] Compiling p256-x86_64-asm-apple.S
[82/410] Compiling p256-armv8-asm-win.S
[83/410] Compiling p256-x86_64-asm-linux.S
[84/410] Compiling p256-armv8-asm-linux.S
[85/410] Compiling p256-armv8-asm-apple.S
[86/410] Compiling ghashv8-armv8-win.S
[87/410] Compiling ghashv8-armv8-apple.S
[87/410] Compiling ghashv8-armv8-linux.S
[89/410] Compiling ghash-x86_64-linux.S
[90/410] Compiling ghashv8-armv7-linux.S
[91/410] Compiling ghash-x86_64-apple.S
[92/410] Compiling ghash-x86-linux.S
[93/410] Compiling ghash-x86-apple.S
[94/410] Compiling ghash-ssse3-x86-apple.S
[95/410] Compiling ghash-ssse3-x86_64-apple.S
[96/410] Compiling ghash-ssse3-x86_64-linux.S
[97/410] Compiling ghash-ssse3-x86-linux.S
[98/410] Compiling ghash-neon-armv8-win.S
[99/410] Compiling ghash-neon-armv8-apple.S
[100/410] Compiling ghash-neon-armv8-linux.S
[101/410] Compiling ghash-armv4-linux.S
[102/410] Compiling co-586-linux.S
[103/410] Compiling bn-armv8-win.S
[104/410] Compiling bn-armv8-linux.S
[105/410] Compiling co-586-apple.S
[105/410] Compiling bn-586-apple.S
[107/410] Compiling bsaes-armv7-linux.S
[108/410] Compiling bn-armv8-apple.S
[109/410] Compiling bn-586-linux.S
[110/410] Compiling armv8-mont-win.S
[111/410] Compiling armv4-mont-linux.S
[112/410] Compiling aesv8-gcm-armv8-win.S
[113/410] Compiling armv8-mont-apple.S
[114/410] Compiling armv8-mont-linux.S
[115/410] Compiling aesv8-gcm-armv8-linux.S
[116/410] Compiling aesv8-armv8-win.S
[117/410] Compiling aesv8-gcm-armv8-apple.S
[118/410] Compiling aesv8-armv8-linux.S
[119/410] Compiling aesv8-armv8-apple.S
[120/410] Compiling aesv8-armv7-linux.S
[121/410] Compiling aesni-x86_64-linux.S
[122/410] Compiling aesni-x86-linux.S
[123/410] Compiling aesni-x86_64-apple.S
[124/410] Compiling aesni-x86-apple.S
[125/410] Compiling aesni-gcm-x86_64-apple.S
[126/410] Compiling aesni-gcm-x86_64-linux.S
[127/410] Compiling aes-gcm-avx2-x86_64-linux.S
[128/410] Compiling aes-gcm-avx512-x86_64-apple.S
[129/410] Compiling aes-gcm-avx2-x86_64-apple.S
[130/410] Compiling aes-gcm-avx512-x86_64-linux.S
error: emit-module command failed with exit code 1 (use -v to see invocation)
[132/410] Emitting module HandySwift
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Extensions/DispatchTimeIntervalExt.swift:3:11: error: cannot find type 'DispatchTimeInterval' in scope
1 | import Foundation
2 |
3 | extension DispatchTimeInterval {
| `- error: cannot find type 'DispatchTimeInterval' in scope
4 | /// Converts the dispatch time interval to seconds using the `TimeInterval` type.
5 | /// This is useful for when you need to work with `DispatchTimeInterval` values in contexts that require `TimeInterval` (in seconds),
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Globals.swift:9:60: error: cannot find type 'DispatchQoS' in scope
7 | /// - qosClass: The global QoS class to be used or `nil` to use the main thread. Defaults to `nil`.
8 | /// - closure: The code to run with a delay.
9 | public func delay(by timeInterval: TimeInterval, qosClass: DispatchQoS.QoSClass? = nil, _ closure: @Sendable @escaping () -> Void) {
| `- error: cannot find type 'DispatchQoS' in scope
10 | let dispatchQueue = qosClass != nil ? DispatchQueue.global(qos: qosClass!) : DispatchQueue.main
11 | dispatchQueue.asyncAfter(deadline: DispatchTime.now() + timeInterval, execute: closure)
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Globals.swift:22:52: error: cannot find type 'DispatchQoS' in scope
20 | @_disfavoredOverload
21 | @available(iOS 16, macOS 13, tvOS 16, visionOS 1, watchOS 9, *)
22 | public func delay(by duration: Duration, qosClass: DispatchQoS.QoSClass? = nil, _ closure: @Sendable @escaping () -> Void) {
| `- error: cannot find type 'DispatchQoS' in scope
23 | let dispatchQueue = qosClass != nil ? DispatchQueue.global(qos: qosClass!) : DispatchQueue.main
24 | dispatchQueue.asyncAfter(deadline: DispatchTime.now() + duration.timeInterval, execute: closure)
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/PrintRequestPlugin.swift:85:40: error: cannot find type 'URLRequest' in scope
83 | ///
84 | /// - Parameter request: The URLRequest to potentially log and pass through unchanged.
85 | public func apply(to request: inout URLRequest) {
| `- error: cannot find type 'URLRequest' in scope
86 | if self.debugOnly {
87 | #if DEBUG
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/PrintRequestPlugin.swift:98:41: error: cannot find type 'URLRequest' in scope
96 | ///
97 | /// - Parameter request: The URLRequest to print details for.
98 | private func printRequest(_ request: URLRequest) {
| `- error: cannot find type 'URLRequest' in scope
99 | var requestBodyString: String?
100 | if let bodyData = request.httpBody {
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:201:36: error: cannot find type 'URLRequest' in scope
199 |
200 | public protocol RequestPlugin: Sendable {
201 | func apply(to request: inout URLRequest)
| `- error: cannot find type 'URLRequest' in scope
202 | }
203 |
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/PrintResponsePlugin.swift:93:41: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
91 | /// - data: The response body data to potentially log.
92 | /// - Throws: Does not throw errors, but passes through any errors from the response processing.
93 | public func apply(to response: inout HTTPURLResponse, data: inout Data) throws {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
94 | if self.debugOnly {
95 | #if DEBUG
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/PrintResponsePlugin.swift:108:43: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
106 | /// - response: The HTTPURLResponse to print details for.
107 | /// - data: The response body data to print.
108 | private func printResponse(_ response: HTTPURLResponse, data: Data) {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
109 | var responseBodyString: String?
110 | if !data.isEmpty {
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:19:35: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
17 | case failedToDecodeClientErrorBody(Error, Context?)
18 | case clientError(String, Context?)
19 | case unexpectedResponseType(URLResponse, Context?)
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
20 | case unexpectedStatusCode(Int, Context?)
21 |
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:19:12: error: associated value 'unexpectedResponseType' of 'Sendable'-conforming enum 'APIError' contains non-Sendable type 'AnyObject'
17 | case failedToDecodeClientErrorBody(Error, Context?)
18 | case clientError(String, Context?)
19 | case unexpectedResponseType(URLResponse, Context?)
| `- error: associated value 'unexpectedResponseType' of 'Sendable'-conforming enum 'APIError' contains non-Sendable type 'AnyObject'
20 | case unexpectedStatusCode(Int, Context?)
21 |
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:205:37: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
203 |
204 | public protocol ResponsePlugin: Sendable {
205 | func apply(to response: inout HTTPURLResponse, data: inout Data) throws
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
206 | }
207 |
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:213:20: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
211 | let jsonEncoder: JSONEncoder
212 | let jsonDecoder: JSONDecoder
213 | let urlSession: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
214 | let requestPlugins: [any RequestPlugin]
215 | let responsePlugins: [any ResponsePlugin]
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:226:19: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
224 | jsonEncoder: JSONEncoder = .init(),
225 | jsonDecoder: JSONDecoder = .init(),
226 | urlSession: URLSession = .shared,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
227 | requestPlugins: [any RequestPlugin] = [],
228 | responsePlugins: [any ResponsePlugin] = [],
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:226:33: error: value of type '_' expected to be instance of class or class-constrained type
224 | jsonEncoder: JSONEncoder = .init(),
225 | jsonDecoder: JSONDecoder = .init(),
226 | urlSession: URLSession = .shared,
| `- error: value of type '_' expected to be instance of class or class-constrained type
227 | requestPlugins: [any RequestPlugin] = [],
228 | responsePlugins: [any ResponsePlugin] = [],
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:226:33: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
224 | jsonEncoder: JSONEncoder = .init(),
225 | jsonDecoder: JSONDecoder = .init(),
226 | urlSession: URLSession = .shared,
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
227 | requestPlugins: [any RequestPlugin] = [],
228 | responsePlugins: [any ResponsePlugin] = [],
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:325:43: error: cannot find type 'URLRequest' in scope
323 | }
324 |
325 | private func performRequest(_ request: URLRequest, errorContext: String?) async throws(APIError) -> (Data, URLResponse) {
| `- error: cannot find type 'URLRequest' in scope
326 | let data: Data
327 | let response: URLResponse
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:325:111: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
323 | }
324 |
325 | private func performRequest(_ request: URLRequest, errorContext: String?) async throws(APIError) -> (Data, URLResponse) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
326 | let data: Data
327 | let response: URLResponse
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:337:72: error: cannot find type 'URLRequest' in scope
335 | }
336 |
337 | private func handle(data: Data, response: URLResponse, for request: URLRequest, errorContext: String?, attempt: Int = 1) async throws(APIError)
| `- error: cannot find type 'URLRequest' in scope
338 | -> Data
339 | {
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:337:46: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
335 | }
336 |
337 | private func handle(data: Data, response: URLResponse, for request: URLRequest, errorContext: String?, attempt: Int = 1) async throws(APIError)
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
338 | -> Data
339 | {
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:213:8: error: stored property 'urlSession' of 'Sendable'-conforming class 'RESTClient' has non-Sendable type 'AnyObject'
211 | let jsonEncoder: JSONEncoder
212 | let jsonDecoder: JSONDecoder
213 | let urlSession: URLSession
| `- error: stored property 'urlSession' of 'Sendable'-conforming class 'RESTClient' has non-Sendable type 'AnyObject'
214 | let requestPlugins: [any RequestPlugin]
215 | let responsePlugins: [any ResponsePlugin]
[132/414] Compiling xwing.cc
[133/414] Compiling x_req.cc
[134/414] Compiling x_pubkey.cc
[135/414] Compiling x_x509a.cc
[136/414] Compiling x_spki.cc
[137/414] Compiling x_sig.cc
[138/414] Compiling x_x509.cc
[139/414] Compiling x_name.cc
[140/414] Compiling x_attrib.cc
[141/414] Compiling x_exten.cc
[142/414] Compiling x509spki.cc
[143/414] Compiling x_all.cc
[144/414] Compiling x_crl.cc
[145/414] Compiling x_algor.cc
[146/414] Compiling x509rset.cc
[147/414] Compiling x509cset.cc
[148/414] Compiling x509_vpm.cc
[149/414] Compiling x509name.cc
[150/414] Compiling x509_v3.cc
[151/414] Compiling x509_vfy.cc
[152/414] Compiling x509_txt.cc
[153/414] Compiling x509_trs.cc
[154/414] Compiling x509_set.cc
[155/414] Compiling x509_req.cc
[156/414] Compiling x509_obj.cc
[157/414] Compiling x509_lu.cc
[158/414] Compiling x509_ext.cc
[159/414] Compiling x509_def.cc
[160/414] Compiling x509_d2.cc
[161/414] Compiling x509_cmp.cc
[162/414] Compiling x509_att.cc
[163/414] Compiling x509.cc
[164/414] Compiling v3_purp.cc
[165/414] Compiling v3_skey.cc
[166/414] Compiling v3_utl.cc
[167/414] Compiling v3_prn.cc
[169/414] Compiling HandySwift Debouncer.swift
[170/414] Compiling HandySwift FrequencyTable.swift
[171/414] Compiling HandySwift GregorianDay.swift
[172/414] Compiling HandySwift GregorianTime.swift
[173/414] Compiling HandySwift TimeIntervalExt.swift
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Globals.swift:9:60: error: cannot find type 'DispatchQoS' in scope
7 | /// - qosClass: The global QoS class to be used or `nil` to use the main thread. Defaults to `nil`.
8 | /// - closure: The code to run with a delay.
9 | public func delay(by timeInterval: TimeInterval, qosClass: DispatchQoS.QoSClass? = nil, _ closure: @Sendable @escaping () -> Void) {
| `- error: cannot find type 'DispatchQoS' in scope
10 | let dispatchQueue = qosClass != nil ? DispatchQueue.global(qos: qosClass!) : DispatchQueue.main
11 | dispatchQueue.asyncAfter(deadline: DispatchTime.now() + timeInterval, execute: closure)
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Globals.swift:22:52: error: cannot find type 'DispatchQoS' in scope
20 | @_disfavoredOverload
21 | @available(iOS 16, macOS 13, tvOS 16, visionOS 1, watchOS 9, *)
22 | public func delay(by duration: Duration, qosClass: DispatchQoS.QoSClass? = nil, _ closure: @Sendable @escaping () -> Void) {
| `- error: cannot find type 'DispatchQoS' in scope
23 | let dispatchQueue = qosClass != nil ? DispatchQueue.global(qos: qosClass!) : DispatchQueue.main
24 | dispatchQueue.asyncAfter(deadline: DispatchTime.now() + duration.timeInterval, execute: closure)
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Globals.swift:10:42: error: cannot find 'DispatchQueue' in scope
8 | /// - closure: The code to run with a delay.
9 | public func delay(by timeInterval: TimeInterval, qosClass: DispatchQoS.QoSClass? = nil, _ closure: @Sendable @escaping () -> Void) {
10 | let dispatchQueue = qosClass != nil ? DispatchQueue.global(qos: qosClass!) : DispatchQueue.main
| `- error: cannot find 'DispatchQueue' in scope
11 | dispatchQueue.asyncAfter(deadline: DispatchTime.now() + timeInterval, execute: closure)
12 | }
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Globals.swift:10:81: error: cannot find 'DispatchQueue' in scope
8 | /// - closure: The code to run with a delay.
9 | public func delay(by timeInterval: TimeInterval, qosClass: DispatchQoS.QoSClass? = nil, _ closure: @Sendable @escaping () -> Void) {
10 | let dispatchQueue = qosClass != nil ? DispatchQueue.global(qos: qosClass!) : DispatchQueue.main
| `- error: cannot find 'DispatchQueue' in scope
11 | dispatchQueue.asyncAfter(deadline: DispatchTime.now() + timeInterval, execute: closure)
12 | }
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Globals.swift:11:39: error: cannot find 'DispatchTime' in scope
9 | public func delay(by timeInterval: TimeInterval, qosClass: DispatchQoS.QoSClass? = nil, _ closure: @Sendable @escaping () -> Void) {
10 | let dispatchQueue = qosClass != nil ? DispatchQueue.global(qos: qosClass!) : DispatchQueue.main
11 | dispatchQueue.asyncAfter(deadline: DispatchTime.now() + timeInterval, execute: closure)
| `- error: cannot find 'DispatchTime' in scope
12 | }
13 |
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Globals.swift:23:42: error: cannot find 'DispatchQueue' in scope
21 | @available(iOS 16, macOS 13, tvOS 16, visionOS 1, watchOS 9, *)
22 | public func delay(by duration: Duration, qosClass: DispatchQoS.QoSClass? = nil, _ closure: @Sendable @escaping () -> Void) {
23 | let dispatchQueue = qosClass != nil ? DispatchQueue.global(qos: qosClass!) : DispatchQueue.main
| `- error: cannot find 'DispatchQueue' in scope
24 | dispatchQueue.asyncAfter(deadline: DispatchTime.now() + duration.timeInterval, execute: closure)
25 | }
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Globals.swift:23:81: error: cannot find 'DispatchQueue' in scope
21 | @available(iOS 16, macOS 13, tvOS 16, visionOS 1, watchOS 9, *)
22 | public func delay(by duration: Duration, qosClass: DispatchQoS.QoSClass? = nil, _ closure: @Sendable @escaping () -> Void) {
23 | let dispatchQueue = qosClass != nil ? DispatchQueue.global(qos: qosClass!) : DispatchQueue.main
| `- error: cannot find 'DispatchQueue' in scope
24 | dispatchQueue.asyncAfter(deadline: DispatchTime.now() + duration.timeInterval, execute: closure)
25 | }
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Globals.swift:24:39: error: cannot find 'DispatchTime' in scope
22 | public func delay(by duration: Duration, qosClass: DispatchQoS.QoSClass? = nil, _ closure: @Sendable @escaping () -> Void) {
23 | let dispatchQueue = qosClass != nil ? DispatchQueue.global(qos: qosClass!) : DispatchQueue.main
24 | dispatchQueue.asyncAfter(deadline: DispatchTime.now() + duration.timeInterval, execute: closure)
| `- error: cannot find 'DispatchTime' in scope
25 | }
26 |
[174/414] Compiling HandySwift Globals.swift
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Globals.swift:9:60: error: cannot find type 'DispatchQoS' in scope
7 | /// - qosClass: The global QoS class to be used or `nil` to use the main thread. Defaults to `nil`.
8 | /// - closure: The code to run with a delay.
9 | public func delay(by timeInterval: TimeInterval, qosClass: DispatchQoS.QoSClass? = nil, _ closure: @Sendable @escaping () -> Void) {
| `- error: cannot find type 'DispatchQoS' in scope
10 | let dispatchQueue = qosClass != nil ? DispatchQueue.global(qos: qosClass!) : DispatchQueue.main
11 | dispatchQueue.asyncAfter(deadline: DispatchTime.now() + timeInterval, execute: closure)
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Globals.swift:22:52: error: cannot find type 'DispatchQoS' in scope
20 | @_disfavoredOverload
21 | @available(iOS 16, macOS 13, tvOS 16, visionOS 1, watchOS 9, *)
22 | public func delay(by duration: Duration, qosClass: DispatchQoS.QoSClass? = nil, _ closure: @Sendable @escaping () -> Void) {
| `- error: cannot find type 'DispatchQoS' in scope
23 | let dispatchQueue = qosClass != nil ? DispatchQueue.global(qos: qosClass!) : DispatchQueue.main
24 | dispatchQueue.asyncAfter(deadline: DispatchTime.now() + duration.timeInterval, execute: closure)
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Globals.swift:10:42: error: cannot find 'DispatchQueue' in scope
8 | /// - closure: The code to run with a delay.
9 | public func delay(by timeInterval: TimeInterval, qosClass: DispatchQoS.QoSClass? = nil, _ closure: @Sendable @escaping () -> Void) {
10 | let dispatchQueue = qosClass != nil ? DispatchQueue.global(qos: qosClass!) : DispatchQueue.main
| `- error: cannot find 'DispatchQueue' in scope
11 | dispatchQueue.asyncAfter(deadline: DispatchTime.now() + timeInterval, execute: closure)
12 | }
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Globals.swift:10:81: error: cannot find 'DispatchQueue' in scope
8 | /// - closure: The code to run with a delay.
9 | public func delay(by timeInterval: TimeInterval, qosClass: DispatchQoS.QoSClass? = nil, _ closure: @Sendable @escaping () -> Void) {
10 | let dispatchQueue = qosClass != nil ? DispatchQueue.global(qos: qosClass!) : DispatchQueue.main
| `- error: cannot find 'DispatchQueue' in scope
11 | dispatchQueue.asyncAfter(deadline: DispatchTime.now() + timeInterval, execute: closure)
12 | }
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Globals.swift:11:39: error: cannot find 'DispatchTime' in scope
9 | public func delay(by timeInterval: TimeInterval, qosClass: DispatchQoS.QoSClass? = nil, _ closure: @Sendable @escaping () -> Void) {
10 | let dispatchQueue = qosClass != nil ? DispatchQueue.global(qos: qosClass!) : DispatchQueue.main
11 | dispatchQueue.asyncAfter(deadline: DispatchTime.now() + timeInterval, execute: closure)
| `- error: cannot find 'DispatchTime' in scope
12 | }
13 |
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Globals.swift:23:42: error: cannot find 'DispatchQueue' in scope
21 | @available(iOS 16, macOS 13, tvOS 16, visionOS 1, watchOS 9, *)
22 | public func delay(by duration: Duration, qosClass: DispatchQoS.QoSClass? = nil, _ closure: @Sendable @escaping () -> Void) {
23 | let dispatchQueue = qosClass != nil ? DispatchQueue.global(qos: qosClass!) : DispatchQueue.main
| `- error: cannot find 'DispatchQueue' in scope
24 | dispatchQueue.asyncAfter(deadline: DispatchTime.now() + duration.timeInterval, execute: closure)
25 | }
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Globals.swift:23:81: error: cannot find 'DispatchQueue' in scope
21 | @available(iOS 16, macOS 13, tvOS 16, visionOS 1, watchOS 9, *)
22 | public func delay(by duration: Duration, qosClass: DispatchQoS.QoSClass? = nil, _ closure: @Sendable @escaping () -> Void) {
23 | let dispatchQueue = qosClass != nil ? DispatchQueue.global(qos: qosClass!) : DispatchQueue.main
| `- error: cannot find 'DispatchQueue' in scope
24 | dispatchQueue.asyncAfter(deadline: DispatchTime.now() + duration.timeInterval, execute: closure)
25 | }
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Globals.swift:24:39: error: cannot find 'DispatchTime' in scope
22 | public func delay(by duration: Duration, qosClass: DispatchQoS.QoSClass? = nil, _ closure: @Sendable @escaping () -> Void) {
23 | let dispatchQueue = qosClass != nil ? DispatchQueue.global(qos: qosClass!) : DispatchQueue.main
24 | dispatchQueue.asyncAfter(deadline: DispatchTime.now() + duration.timeInterval, execute: closure)
| `- error: cannot find 'DispatchTime' in scope
25 | }
26 |
[175/414] Compiling HandySwift AutoConforming.swift
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Globals.swift:9:60: error: cannot find type 'DispatchQoS' in scope
7 | /// - qosClass: The global QoS class to be used or `nil` to use the main thread. Defaults to `nil`.
8 | /// - closure: The code to run with a delay.
9 | public func delay(by timeInterval: TimeInterval, qosClass: DispatchQoS.QoSClass? = nil, _ closure: @Sendable @escaping () -> Void) {
| `- error: cannot find type 'DispatchQoS' in scope
10 | let dispatchQueue = qosClass != nil ? DispatchQueue.global(qos: qosClass!) : DispatchQueue.main
11 | dispatchQueue.asyncAfter(deadline: DispatchTime.now() + timeInterval, execute: closure)
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Globals.swift:22:52: error: cannot find type 'DispatchQoS' in scope
20 | @_disfavoredOverload
21 | @available(iOS 16, macOS 13, tvOS 16, visionOS 1, watchOS 9, *)
22 | public func delay(by duration: Duration, qosClass: DispatchQoS.QoSClass? = nil, _ closure: @Sendable @escaping () -> Void) {
| `- error: cannot find type 'DispatchQoS' in scope
23 | let dispatchQueue = qosClass != nil ? DispatchQueue.global(qos: qosClass!) : DispatchQueue.main
24 | dispatchQueue.asyncAfter(deadline: DispatchTime.now() + duration.timeInterval, execute: closure)
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Globals.swift:10:42: error: cannot find 'DispatchQueue' in scope
8 | /// - closure: The code to run with a delay.
9 | public func delay(by timeInterval: TimeInterval, qosClass: DispatchQoS.QoSClass? = nil, _ closure: @Sendable @escaping () -> Void) {
10 | let dispatchQueue = qosClass != nil ? DispatchQueue.global(qos: qosClass!) : DispatchQueue.main
| `- error: cannot find 'DispatchQueue' in scope
11 | dispatchQueue.asyncAfter(deadline: DispatchTime.now() + timeInterval, execute: closure)
12 | }
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Globals.swift:10:81: error: cannot find 'DispatchQueue' in scope
8 | /// - closure: The code to run with a delay.
9 | public func delay(by timeInterval: TimeInterval, qosClass: DispatchQoS.QoSClass? = nil, _ closure: @Sendable @escaping () -> Void) {
10 | let dispatchQueue = qosClass != nil ? DispatchQueue.global(qos: qosClass!) : DispatchQueue.main
| `- error: cannot find 'DispatchQueue' in scope
11 | dispatchQueue.asyncAfter(deadline: DispatchTime.now() + timeInterval, execute: closure)
12 | }
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Globals.swift:11:39: error: cannot find 'DispatchTime' in scope
9 | public func delay(by timeInterval: TimeInterval, qosClass: DispatchQoS.QoSClass? = nil, _ closure: @Sendable @escaping () -> Void) {
10 | let dispatchQueue = qosClass != nil ? DispatchQueue.global(qos: qosClass!) : DispatchQueue.main
11 | dispatchQueue.asyncAfter(deadline: DispatchTime.now() + timeInterval, execute: closure)
| `- error: cannot find 'DispatchTime' in scope
12 | }
13 |
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Globals.swift:23:42: error: cannot find 'DispatchQueue' in scope
21 | @available(iOS 16, macOS 13, tvOS 16, visionOS 1, watchOS 9, *)
22 | public func delay(by duration: Duration, qosClass: DispatchQoS.QoSClass? = nil, _ closure: @Sendable @escaping () -> Void) {
23 | let dispatchQueue = qosClass != nil ? DispatchQueue.global(qos: qosClass!) : DispatchQueue.main
| `- error: cannot find 'DispatchQueue' in scope
24 | dispatchQueue.asyncAfter(deadline: DispatchTime.now() + duration.timeInterval, execute: closure)
25 | }
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Globals.swift:23:81: error: cannot find 'DispatchQueue' in scope
21 | @available(iOS 16, macOS 13, tvOS 16, visionOS 1, watchOS 9, *)
22 | public func delay(by duration: Duration, qosClass: DispatchQoS.QoSClass? = nil, _ closure: @Sendable @escaping () -> Void) {
23 | let dispatchQueue = qosClass != nil ? DispatchQueue.global(qos: qosClass!) : DispatchQueue.main
| `- error: cannot find 'DispatchQueue' in scope
24 | dispatchQueue.asyncAfter(deadline: DispatchTime.now() + duration.timeInterval, execute: closure)
25 | }
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Globals.swift:24:39: error: cannot find 'DispatchTime' in scope
22 | public func delay(by duration: Duration, qosClass: DispatchQoS.QoSClass? = nil, _ closure: @Sendable @escaping () -> Void) {
23 | let dispatchQueue = qosClass != nil ? DispatchQueue.global(qos: qosClass!) : DispatchQueue.main
24 | dispatchQueue.asyncAfter(deadline: DispatchTime.now() + duration.timeInterval, execute: closure)
| `- error: cannot find 'DispatchTime' in scope
25 | }
26 |
[176/414] Compiling HandySwift DivisibleArithmetic.swift
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Globals.swift:9:60: error: cannot find type 'DispatchQoS' in scope
7 | /// - qosClass: The global QoS class to be used or `nil` to use the main thread. Defaults to `nil`.
8 | /// - closure: The code to run with a delay.
9 | public func delay(by timeInterval: TimeInterval, qosClass: DispatchQoS.QoSClass? = nil, _ closure: @Sendable @escaping () -> Void) {
| `- error: cannot find type 'DispatchQoS' in scope
10 | let dispatchQueue = qosClass != nil ? DispatchQueue.global(qos: qosClass!) : DispatchQueue.main
11 | dispatchQueue.asyncAfter(deadline: DispatchTime.now() + timeInterval, execute: closure)
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Globals.swift:22:52: error: cannot find type 'DispatchQoS' in scope
20 | @_disfavoredOverload
21 | @available(iOS 16, macOS 13, tvOS 16, visionOS 1, watchOS 9, *)
22 | public func delay(by duration: Duration, qosClass: DispatchQoS.QoSClass? = nil, _ closure: @Sendable @escaping () -> Void) {
| `- error: cannot find type 'DispatchQoS' in scope
23 | let dispatchQueue = qosClass != nil ? DispatchQueue.global(qos: qosClass!) : DispatchQueue.main
24 | dispatchQueue.asyncAfter(deadline: DispatchTime.now() + duration.timeInterval, execute: closure)
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Globals.swift:10:42: error: cannot find 'DispatchQueue' in scope
8 | /// - closure: The code to run with a delay.
9 | public func delay(by timeInterval: TimeInterval, qosClass: DispatchQoS.QoSClass? = nil, _ closure: @Sendable @escaping () -> Void) {
10 | let dispatchQueue = qosClass != nil ? DispatchQueue.global(qos: qosClass!) : DispatchQueue.main
| `- error: cannot find 'DispatchQueue' in scope
11 | dispatchQueue.asyncAfter(deadline: DispatchTime.now() + timeInterval, execute: closure)
12 | }
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Globals.swift:10:81: error: cannot find 'DispatchQueue' in scope
8 | /// - closure: The code to run with a delay.
9 | public func delay(by timeInterval: TimeInterval, qosClass: DispatchQoS.QoSClass? = nil, _ closure: @Sendable @escaping () -> Void) {
10 | let dispatchQueue = qosClass != nil ? DispatchQueue.global(qos: qosClass!) : DispatchQueue.main
| `- error: cannot find 'DispatchQueue' in scope
11 | dispatchQueue.asyncAfter(deadline: DispatchTime.now() + timeInterval, execute: closure)
12 | }
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Globals.swift:11:39: error: cannot find 'DispatchTime' in scope
9 | public func delay(by timeInterval: TimeInterval, qosClass: DispatchQoS.QoSClass? = nil, _ closure: @Sendable @escaping () -> Void) {
10 | let dispatchQueue = qosClass != nil ? DispatchQueue.global(qos: qosClass!) : DispatchQueue.main
11 | dispatchQueue.asyncAfter(deadline: DispatchTime.now() + timeInterval, execute: closure)
| `- error: cannot find 'DispatchTime' in scope
12 | }
13 |
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Globals.swift:23:42: error: cannot find 'DispatchQueue' in scope
21 | @available(iOS 16, macOS 13, tvOS 16, visionOS 1, watchOS 9, *)
22 | public func delay(by duration: Duration, qosClass: DispatchQoS.QoSClass? = nil, _ closure: @Sendable @escaping () -> Void) {
23 | let dispatchQueue = qosClass != nil ? DispatchQueue.global(qos: qosClass!) : DispatchQueue.main
| `- error: cannot find 'DispatchQueue' in scope
24 | dispatchQueue.asyncAfter(deadline: DispatchTime.now() + duration.timeInterval, execute: closure)
25 | }
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Globals.swift:23:81: error: cannot find 'DispatchQueue' in scope
21 | @available(iOS 16, macOS 13, tvOS 16, visionOS 1, watchOS 9, *)
22 | public func delay(by duration: Duration, qosClass: DispatchQoS.QoSClass? = nil, _ closure: @Sendable @escaping () -> Void) {
23 | let dispatchQueue = qosClass != nil ? DispatchQueue.global(qos: qosClass!) : DispatchQueue.main
| `- error: cannot find 'DispatchQueue' in scope
24 | dispatchQueue.asyncAfter(deadline: DispatchTime.now() + duration.timeInterval, execute: closure)
25 | }
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Globals.swift:24:39: error: cannot find 'DispatchTime' in scope
22 | public func delay(by duration: Duration, qosClass: DispatchQoS.QoSClass? = nil, _ closure: @Sendable @escaping () -> Void) {
23 | let dispatchQueue = qosClass != nil ? DispatchQueue.global(qos: qosClass!) : DispatchQueue.main
24 | dispatchQueue.asyncAfter(deadline: DispatchTime.now() + duration.timeInterval, execute: closure)
| `- error: cannot find 'DispatchTime' in scope
25 | }
26 |
[177/414] Compiling HandySwift Withable.swift
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Globals.swift:9:60: error: cannot find type 'DispatchQoS' in scope
7 | /// - qosClass: The global QoS class to be used or `nil` to use the main thread. Defaults to `nil`.
8 | /// - closure: The code to run with a delay.
9 | public func delay(by timeInterval: TimeInterval, qosClass: DispatchQoS.QoSClass? = nil, _ closure: @Sendable @escaping () -> Void) {
| `- error: cannot find type 'DispatchQoS' in scope
10 | let dispatchQueue = qosClass != nil ? DispatchQueue.global(qos: qosClass!) : DispatchQueue.main
11 | dispatchQueue.asyncAfter(deadline: DispatchTime.now() + timeInterval, execute: closure)
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Globals.swift:22:52: error: cannot find type 'DispatchQoS' in scope
20 | @_disfavoredOverload
21 | @available(iOS 16, macOS 13, tvOS 16, visionOS 1, watchOS 9, *)
22 | public func delay(by duration: Duration, qosClass: DispatchQoS.QoSClass? = nil, _ closure: @Sendable @escaping () -> Void) {
| `- error: cannot find type 'DispatchQoS' in scope
23 | let dispatchQueue = qosClass != nil ? DispatchQueue.global(qos: qosClass!) : DispatchQueue.main
24 | dispatchQueue.asyncAfter(deadline: DispatchTime.now() + duration.timeInterval, execute: closure)
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Globals.swift:10:42: error: cannot find 'DispatchQueue' in scope
8 | /// - closure: The code to run with a delay.
9 | public func delay(by timeInterval: TimeInterval, qosClass: DispatchQoS.QoSClass? = nil, _ closure: @Sendable @escaping () -> Void) {
10 | let dispatchQueue = qosClass != nil ? DispatchQueue.global(qos: qosClass!) : DispatchQueue.main
| `- error: cannot find 'DispatchQueue' in scope
11 | dispatchQueue.asyncAfter(deadline: DispatchTime.now() + timeInterval, execute: closure)
12 | }
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Globals.swift:10:81: error: cannot find 'DispatchQueue' in scope
8 | /// - closure: The code to run with a delay.
9 | public func delay(by timeInterval: TimeInterval, qosClass: DispatchQoS.QoSClass? = nil, _ closure: @Sendable @escaping () -> Void) {
10 | let dispatchQueue = qosClass != nil ? DispatchQueue.global(qos: qosClass!) : DispatchQueue.main
| `- error: cannot find 'DispatchQueue' in scope
11 | dispatchQueue.asyncAfter(deadline: DispatchTime.now() + timeInterval, execute: closure)
12 | }
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Globals.swift:11:39: error: cannot find 'DispatchTime' in scope
9 | public func delay(by timeInterval: TimeInterval, qosClass: DispatchQoS.QoSClass? = nil, _ closure: @Sendable @escaping () -> Void) {
10 | let dispatchQueue = qosClass != nil ? DispatchQueue.global(qos: qosClass!) : DispatchQueue.main
11 | dispatchQueue.asyncAfter(deadline: DispatchTime.now() + timeInterval, execute: closure)
| `- error: cannot find 'DispatchTime' in scope
12 | }
13 |
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Globals.swift:23:42: error: cannot find 'DispatchQueue' in scope
21 | @available(iOS 16, macOS 13, tvOS 16, visionOS 1, watchOS 9, *)
22 | public func delay(by duration: Duration, qosClass: DispatchQoS.QoSClass? = nil, _ closure: @Sendable @escaping () -> Void) {
23 | let dispatchQueue = qosClass != nil ? DispatchQueue.global(qos: qosClass!) : DispatchQueue.main
| `- error: cannot find 'DispatchQueue' in scope
24 | dispatchQueue.asyncAfter(deadline: DispatchTime.now() + duration.timeInterval, execute: closure)
25 | }
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Globals.swift:23:81: error: cannot find 'DispatchQueue' in scope
21 | @available(iOS 16, macOS 13, tvOS 16, visionOS 1, watchOS 9, *)
22 | public func delay(by duration: Duration, qosClass: DispatchQoS.QoSClass? = nil, _ closure: @Sendable @escaping () -> Void) {
23 | let dispatchQueue = qosClass != nil ? DispatchQueue.global(qos: qosClass!) : DispatchQueue.main
| `- error: cannot find 'DispatchQueue' in scope
24 | dispatchQueue.asyncAfter(deadline: DispatchTime.now() + duration.timeInterval, execute: closure)
25 | }
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Globals.swift:24:39: error: cannot find 'DispatchTime' in scope
22 | public func delay(by duration: Duration, qosClass: DispatchQoS.QoSClass? = nil, _ closure: @Sendable @escaping () -> Void) {
23 | let dispatchQueue = qosClass != nil ? DispatchQueue.global(qos: qosClass!) : DispatchQueue.main
24 | dispatchQueue.asyncAfter(deadline: DispatchTime.now() + duration.timeInterval, execute: closure)
| `- error: cannot find 'DispatchTime' in scope
25 | }
26 |
[178/414] Compiling HandySwift PrintRequestPlugin.swift
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/PrintRequestPlugin.swift:85:40: error: cannot find type 'URLRequest' in scope
83 | ///
84 | /// - Parameter request: The URLRequest to potentially log and pass through unchanged.
85 | public func apply(to request: inout URLRequest) {
| `- error: cannot find type 'URLRequest' in scope
86 | if self.debugOnly {
87 | #if DEBUG
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/PrintRequestPlugin.swift:98:41: error: cannot find type 'URLRequest' in scope
96 | ///
97 | /// - Parameter request: The URLRequest to print details for.
98 | private func printRequest(_ request: URLRequest) {
| `- error: cannot find type 'URLRequest' in scope
99 | var requestBodyString: String?
100 | if let bodyData = request.httpBody {
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:201:36: error: cannot find type 'URLRequest' in scope
199 |
200 | public protocol RequestPlugin: Sendable {
201 | func apply(to request: inout URLRequest)
| `- error: cannot find type 'URLRequest' in scope
202 | }
203 |
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/PrintResponsePlugin.swift:93:41: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
91 | /// - data: The response body data to potentially log.
92 | /// - Throws: Does not throw errors, but passes through any errors from the response processing.
93 | public func apply(to response: inout HTTPURLResponse, data: inout Data) throws {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
94 | if self.debugOnly {
95 | #if DEBUG
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/PrintResponsePlugin.swift:108:43: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
106 | /// - response: The HTTPURLResponse to print details for.
107 | /// - data: The response body data to print.
108 | private func printResponse(_ response: HTTPURLResponse, data: Data) {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
109 | var responseBodyString: String?
110 | if !data.isEmpty {
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/PrintResponsePlugin.swift:116:35: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
114 | // Clean headers formatting - sorted alphabetically for consistency, no AnyHashable wrappers
115 | var headersString = ""
116 | let cleanHeaders = response.allHeaderFields
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
117 | .compactMapValues { "\($0)" }
118 | .sorted { "\($0.key)" < "\($1.key)" }
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/PrintResponsePlugin.swift:124:44: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
122 |
123 | print(
124 | "[RESTClient] Response \(response.statusCode) from '\(response.url!)'\n\nResponse headers:\(headersString)\n\nResponse body:\n\(responseBodyString ?? "No body")"
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
125 | )
126 | }
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:19:35: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
17 | case failedToDecodeClientErrorBody(Error, Context?)
18 | case clientError(String, Context?)
19 | case unexpectedResponseType(URLResponse, Context?)
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
20 | case unexpectedStatusCode(Int, Context?)
21 |
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:19:12: error: associated value 'unexpectedResponseType' of 'Sendable'-conforming enum 'APIError' contains non-Sendable type 'AnyObject'
17 | case failedToDecodeClientErrorBody(Error, Context?)
18 | case clientError(String, Context?)
19 | case unexpectedResponseType(URLResponse, Context?)
| `- error: associated value 'unexpectedResponseType' of 'Sendable'-conforming enum 'APIError' contains non-Sendable type 'AnyObject'
20 | case unexpectedStatusCode(Int, Context?)
21 |
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:205:37: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
203 |
204 | public protocol ResponsePlugin: Sendable {
205 | func apply(to response: inout HTTPURLResponse, data: inout Data) throws
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
206 | }
207 |
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:213:20: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
211 | let jsonEncoder: JSONEncoder
212 | let jsonDecoder: JSONDecoder
213 | let urlSession: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
214 | let requestPlugins: [any RequestPlugin]
215 | let responsePlugins: [any ResponsePlugin]
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:226:19: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
224 | jsonEncoder: JSONEncoder = .init(),
225 | jsonDecoder: JSONDecoder = .init(),
226 | urlSession: URLSession = .shared,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
227 | requestPlugins: [any RequestPlugin] = [],
228 | responsePlugins: [any ResponsePlugin] = [],
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:226:33: error: value of type '_' expected to be instance of class or class-constrained type
224 | jsonEncoder: JSONEncoder = .init(),
225 | jsonDecoder: JSONDecoder = .init(),
226 | urlSession: URLSession = .shared,
| `- error: value of type '_' expected to be instance of class or class-constrained type
227 | requestPlugins: [any RequestPlugin] = [],
228 | responsePlugins: [any ResponsePlugin] = [],
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:226:33: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
224 | jsonEncoder: JSONEncoder = .init(),
225 | jsonDecoder: JSONDecoder = .init(),
226 | urlSession: URLSession = .shared,
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
227 | requestPlugins: [any RequestPlugin] = [],
228 | responsePlugins: [any ResponsePlugin] = [],
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:325:43: error: cannot find type 'URLRequest' in scope
323 | }
324 |
325 | private func performRequest(_ request: URLRequest, errorContext: String?) async throws(APIError) -> (Data, URLResponse) {
| `- error: cannot find type 'URLRequest' in scope
326 | let data: Data
327 | let response: URLResponse
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:325:111: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
323 | }
324 |
325 | private func performRequest(_ request: URLRequest, errorContext: String?) async throws(APIError) -> (Data, URLResponse) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
326 | let data: Data
327 | let response: URLResponse
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:337:72: error: cannot find type 'URLRequest' in scope
335 | }
336 |
337 | private func handle(data: Data, response: URLResponse, for request: URLRequest, errorContext: String?, attempt: Int = 1) async throws(APIError)
| `- error: cannot find type 'URLRequest' in scope
338 | -> Data
339 | {
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:337:46: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
335 | }
336 |
337 | private func handle(data: Data, response: URLResponse, for request: URLRequest, errorContext: String?, attempt: Int = 1) async throws(APIError)
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
338 | -> Data
339 | {
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:213:8: error: stored property 'urlSession' of 'Sendable'-conforming class 'RESTClient' has non-Sendable type 'AnyObject'
211 | let jsonEncoder: JSONEncoder
212 | let jsonDecoder: JSONDecoder
213 | let urlSession: URLSession
| `- error: stored property 'urlSession' of 'Sendable'-conforming class 'RESTClient' has non-Sendable type 'AnyObject'
214 | let requestPlugins: [any RequestPlugin]
215 | let responsePlugins: [any ResponsePlugin]
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:292:21: error: cannot find 'URLRequest' in scope
290 | }
291 |
292 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
293 | request.httpMethod = method.rawValue
294 |
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:327:21: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
325 | private func performRequest(_ request: URLRequest, errorContext: String?) async throws(APIError) -> (Data, URLResponse) {
326 | let data: Data
327 | let response: URLResponse
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
328 | do {
329 | (data, response) = try await self.urlSession.data(for: request)
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:329:55: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
327 | let response: URLResponse
328 | do {
329 | (data, response) = try await self.urlSession.data(for: request)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
330 | } catch {
331 | throw APIError.failedToLoadData(error, self.errorContext(requestContext: errorContext))
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:340:45: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
338 | -> Data
339 | {
340 | guard var httpResponse = response as? HTTPURLResponse else {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
341 | throw .unexpectedResponseType(response, self.errorContext(requestContext: errorContext))
342 | }
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:353:27: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
351 | }
352 |
353 | switch httpResponse.statusCode {
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
354 | case 200..<300:
355 | return data
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:363:61: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
361 |
362 | // respect the server retry-after(-ms) value if it exists, allowing values betwen 0.5-5 seconds
363 | if let retryAfterMillisecondsString = httpResponse.value(forHTTPHeaderField: "retry-after-ms"),
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
364 | let retryAfterMilliseconds = Double(retryAfterMillisecondsString)
365 | {
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:367:56: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
365 | {
366 | sleepSeconds = max(0.5, min(retryAfterMilliseconds, 5))
367 | } else if let retryAfterString = httpResponse.value(forHTTPHeaderField: "retry-after"),
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
368 | let retryAfter = Double(retryAfterString)
369 | {
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:385:55: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
383 | guard !data.isEmpty else {
384 | throw .clientError(
385 | "Unexpected status code \(httpResponse.statusCode) without a response body.",
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
386 | self.errorContext(requestContext: errorContext)
387 | )
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:399:51: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
397 |
398 | default:
399 | throw .unexpectedStatusCode(httpResponse.statusCode, self.errorContext(requestContext: errorContext))
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
400 | }
401 | }
[179/414] Compiling HandySwift PrintResponsePlugin.swift
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/PrintRequestPlugin.swift:85:40: error: cannot find type 'URLRequest' in scope
83 | ///
84 | /// - Parameter request: The URLRequest to potentially log and pass through unchanged.
85 | public func apply(to request: inout URLRequest) {
| `- error: cannot find type 'URLRequest' in scope
86 | if self.debugOnly {
87 | #if DEBUG
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/PrintRequestPlugin.swift:98:41: error: cannot find type 'URLRequest' in scope
96 | ///
97 | /// - Parameter request: The URLRequest to print details for.
98 | private func printRequest(_ request: URLRequest) {
| `- error: cannot find type 'URLRequest' in scope
99 | var requestBodyString: String?
100 | if let bodyData = request.httpBody {
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:201:36: error: cannot find type 'URLRequest' in scope
199 |
200 | public protocol RequestPlugin: Sendable {
201 | func apply(to request: inout URLRequest)
| `- error: cannot find type 'URLRequest' in scope
202 | }
203 |
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/PrintResponsePlugin.swift:93:41: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
91 | /// - data: The response body data to potentially log.
92 | /// - Throws: Does not throw errors, but passes through any errors from the response processing.
93 | public func apply(to response: inout HTTPURLResponse, data: inout Data) throws {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
94 | if self.debugOnly {
95 | #if DEBUG
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/PrintResponsePlugin.swift:108:43: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
106 | /// - response: The HTTPURLResponse to print details for.
107 | /// - data: The response body data to print.
108 | private func printResponse(_ response: HTTPURLResponse, data: Data) {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
109 | var responseBodyString: String?
110 | if !data.isEmpty {
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/PrintResponsePlugin.swift:116:35: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
114 | // Clean headers formatting - sorted alphabetically for consistency, no AnyHashable wrappers
115 | var headersString = ""
116 | let cleanHeaders = response.allHeaderFields
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
117 | .compactMapValues { "\($0)" }
118 | .sorted { "\($0.key)" < "\($1.key)" }
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/PrintResponsePlugin.swift:124:44: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
122 |
123 | print(
124 | "[RESTClient] Response \(response.statusCode) from '\(response.url!)'\n\nResponse headers:\(headersString)\n\nResponse body:\n\(responseBodyString ?? "No body")"
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
125 | )
126 | }
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:19:35: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
17 | case failedToDecodeClientErrorBody(Error, Context?)
18 | case clientError(String, Context?)
19 | case unexpectedResponseType(URLResponse, Context?)
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
20 | case unexpectedStatusCode(Int, Context?)
21 |
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:19:12: error: associated value 'unexpectedResponseType' of 'Sendable'-conforming enum 'APIError' contains non-Sendable type 'AnyObject'
17 | case failedToDecodeClientErrorBody(Error, Context?)
18 | case clientError(String, Context?)
19 | case unexpectedResponseType(URLResponse, Context?)
| `- error: associated value 'unexpectedResponseType' of 'Sendable'-conforming enum 'APIError' contains non-Sendable type 'AnyObject'
20 | case unexpectedStatusCode(Int, Context?)
21 |
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:205:37: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
203 |
204 | public protocol ResponsePlugin: Sendable {
205 | func apply(to response: inout HTTPURLResponse, data: inout Data) throws
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
206 | }
207 |
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:213:20: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
211 | let jsonEncoder: JSONEncoder
212 | let jsonDecoder: JSONDecoder
213 | let urlSession: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
214 | let requestPlugins: [any RequestPlugin]
215 | let responsePlugins: [any ResponsePlugin]
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:226:19: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
224 | jsonEncoder: JSONEncoder = .init(),
225 | jsonDecoder: JSONDecoder = .init(),
226 | urlSession: URLSession = .shared,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
227 | requestPlugins: [any RequestPlugin] = [],
228 | responsePlugins: [any ResponsePlugin] = [],
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:226:33: error: value of type '_' expected to be instance of class or class-constrained type
224 | jsonEncoder: JSONEncoder = .init(),
225 | jsonDecoder: JSONDecoder = .init(),
226 | urlSession: URLSession = .shared,
| `- error: value of type '_' expected to be instance of class or class-constrained type
227 | requestPlugins: [any RequestPlugin] = [],
228 | responsePlugins: [any ResponsePlugin] = [],
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:226:33: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
224 | jsonEncoder: JSONEncoder = .init(),
225 | jsonDecoder: JSONDecoder = .init(),
226 | urlSession: URLSession = .shared,
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
227 | requestPlugins: [any RequestPlugin] = [],
228 | responsePlugins: [any ResponsePlugin] = [],
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:325:43: error: cannot find type 'URLRequest' in scope
323 | }
324 |
325 | private func performRequest(_ request: URLRequest, errorContext: String?) async throws(APIError) -> (Data, URLResponse) {
| `- error: cannot find type 'URLRequest' in scope
326 | let data: Data
327 | let response: URLResponse
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:325:111: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
323 | }
324 |
325 | private func performRequest(_ request: URLRequest, errorContext: String?) async throws(APIError) -> (Data, URLResponse) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
326 | let data: Data
327 | let response: URLResponse
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:337:72: error: cannot find type 'URLRequest' in scope
335 | }
336 |
337 | private func handle(data: Data, response: URLResponse, for request: URLRequest, errorContext: String?, attempt: Int = 1) async throws(APIError)
| `- error: cannot find type 'URLRequest' in scope
338 | -> Data
339 | {
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:337:46: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
335 | }
336 |
337 | private func handle(data: Data, response: URLResponse, for request: URLRequest, errorContext: String?, attempt: Int = 1) async throws(APIError)
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
338 | -> Data
339 | {
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:213:8: error: stored property 'urlSession' of 'Sendable'-conforming class 'RESTClient' has non-Sendable type 'AnyObject'
211 | let jsonEncoder: JSONEncoder
212 | let jsonDecoder: JSONDecoder
213 | let urlSession: URLSession
| `- error: stored property 'urlSession' of 'Sendable'-conforming class 'RESTClient' has non-Sendable type 'AnyObject'
214 | let requestPlugins: [any RequestPlugin]
215 | let responsePlugins: [any ResponsePlugin]
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:292:21: error: cannot find 'URLRequest' in scope
290 | }
291 |
292 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
293 | request.httpMethod = method.rawValue
294 |
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:327:21: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
325 | private func performRequest(_ request: URLRequest, errorContext: String?) async throws(APIError) -> (Data, URLResponse) {
326 | let data: Data
327 | let response: URLResponse
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
328 | do {
329 | (data, response) = try await self.urlSession.data(for: request)
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:329:55: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
327 | let response: URLResponse
328 | do {
329 | (data, response) = try await self.urlSession.data(for: request)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
330 | } catch {
331 | throw APIError.failedToLoadData(error, self.errorContext(requestContext: errorContext))
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:340:45: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
338 | -> Data
339 | {
340 | guard var httpResponse = response as? HTTPURLResponse else {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
341 | throw .unexpectedResponseType(response, self.errorContext(requestContext: errorContext))
342 | }
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:353:27: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
351 | }
352 |
353 | switch httpResponse.statusCode {
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
354 | case 200..<300:
355 | return data
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:363:61: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
361 |
362 | // respect the server retry-after(-ms) value if it exists, allowing values betwen 0.5-5 seconds
363 | if let retryAfterMillisecondsString = httpResponse.value(forHTTPHeaderField: "retry-after-ms"),
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
364 | let retryAfterMilliseconds = Double(retryAfterMillisecondsString)
365 | {
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:367:56: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
365 | {
366 | sleepSeconds = max(0.5, min(retryAfterMilliseconds, 5))
367 | } else if let retryAfterString = httpResponse.value(forHTTPHeaderField: "retry-after"),
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
368 | let retryAfter = Double(retryAfterString)
369 | {
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:385:55: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
383 | guard !data.isEmpty else {
384 | throw .clientError(
385 | "Unexpected status code \(httpResponse.statusCode) without a response body.",
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
386 | self.errorContext(requestContext: errorContext)
387 | )
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:399:51: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
397 |
398 | default:
399 | throw .unexpectedStatusCode(httpResponse.statusCode, self.errorContext(requestContext: errorContext))
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
400 | }
401 | }
[180/414] Compiling HandySwift RESTClient.swift
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/PrintRequestPlugin.swift:85:40: error: cannot find type 'URLRequest' in scope
83 | ///
84 | /// - Parameter request: The URLRequest to potentially log and pass through unchanged.
85 | public func apply(to request: inout URLRequest) {
| `- error: cannot find type 'URLRequest' in scope
86 | if self.debugOnly {
87 | #if DEBUG
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/PrintRequestPlugin.swift:98:41: error: cannot find type 'URLRequest' in scope
96 | ///
97 | /// - Parameter request: The URLRequest to print details for.
98 | private func printRequest(_ request: URLRequest) {
| `- error: cannot find type 'URLRequest' in scope
99 | var requestBodyString: String?
100 | if let bodyData = request.httpBody {
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:201:36: error: cannot find type 'URLRequest' in scope
199 |
200 | public protocol RequestPlugin: Sendable {
201 | func apply(to request: inout URLRequest)
| `- error: cannot find type 'URLRequest' in scope
202 | }
203 |
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/PrintResponsePlugin.swift:93:41: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
91 | /// - data: The response body data to potentially log.
92 | /// - Throws: Does not throw errors, but passes through any errors from the response processing.
93 | public func apply(to response: inout HTTPURLResponse, data: inout Data) throws {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
94 | if self.debugOnly {
95 | #if DEBUG
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/PrintResponsePlugin.swift:108:43: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
106 | /// - response: The HTTPURLResponse to print details for.
107 | /// - data: The response body data to print.
108 | private func printResponse(_ response: HTTPURLResponse, data: Data) {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
109 | var responseBodyString: String?
110 | if !data.isEmpty {
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/PrintResponsePlugin.swift:116:35: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
114 | // Clean headers formatting - sorted alphabetically for consistency, no AnyHashable wrappers
115 | var headersString = ""
116 | let cleanHeaders = response.allHeaderFields
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
117 | .compactMapValues { "\($0)" }
118 | .sorted { "\($0.key)" < "\($1.key)" }
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/PrintResponsePlugin.swift:124:44: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
122 |
123 | print(
124 | "[RESTClient] Response \(response.statusCode) from '\(response.url!)'\n\nResponse headers:\(headersString)\n\nResponse body:\n\(responseBodyString ?? "No body")"
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
125 | )
126 | }
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:19:35: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
17 | case failedToDecodeClientErrorBody(Error, Context?)
18 | case clientError(String, Context?)
19 | case unexpectedResponseType(URLResponse, Context?)
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
20 | case unexpectedStatusCode(Int, Context?)
21 |
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:19:12: error: associated value 'unexpectedResponseType' of 'Sendable'-conforming enum 'APIError' contains non-Sendable type 'AnyObject'
17 | case failedToDecodeClientErrorBody(Error, Context?)
18 | case clientError(String, Context?)
19 | case unexpectedResponseType(URLResponse, Context?)
| `- error: associated value 'unexpectedResponseType' of 'Sendable'-conforming enum 'APIError' contains non-Sendable type 'AnyObject'
20 | case unexpectedStatusCode(Int, Context?)
21 |
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:205:37: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
203 |
204 | public protocol ResponsePlugin: Sendable {
205 | func apply(to response: inout HTTPURLResponse, data: inout Data) throws
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
206 | }
207 |
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:213:20: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
211 | let jsonEncoder: JSONEncoder
212 | let jsonDecoder: JSONDecoder
213 | let urlSession: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
214 | let requestPlugins: [any RequestPlugin]
215 | let responsePlugins: [any ResponsePlugin]
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:226:19: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
224 | jsonEncoder: JSONEncoder = .init(),
225 | jsonDecoder: JSONDecoder = .init(),
226 | urlSession: URLSession = .shared,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
227 | requestPlugins: [any RequestPlugin] = [],
228 | responsePlugins: [any ResponsePlugin] = [],
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:226:33: error: value of type '_' expected to be instance of class or class-constrained type
224 | jsonEncoder: JSONEncoder = .init(),
225 | jsonDecoder: JSONDecoder = .init(),
226 | urlSession: URLSession = .shared,
| `- error: value of type '_' expected to be instance of class or class-constrained type
227 | requestPlugins: [any RequestPlugin] = [],
228 | responsePlugins: [any ResponsePlugin] = [],
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:226:33: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
224 | jsonEncoder: JSONEncoder = .init(),
225 | jsonDecoder: JSONDecoder = .init(),
226 | urlSession: URLSession = .shared,
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
227 | requestPlugins: [any RequestPlugin] = [],
228 | responsePlugins: [any ResponsePlugin] = [],
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:325:43: error: cannot find type 'URLRequest' in scope
323 | }
324 |
325 | private func performRequest(_ request: URLRequest, errorContext: String?) async throws(APIError) -> (Data, URLResponse) {
| `- error: cannot find type 'URLRequest' in scope
326 | let data: Data
327 | let response: URLResponse
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:325:111: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
323 | }
324 |
325 | private func performRequest(_ request: URLRequest, errorContext: String?) async throws(APIError) -> (Data, URLResponse) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
326 | let data: Data
327 | let response: URLResponse
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:337:72: error: cannot find type 'URLRequest' in scope
335 | }
336 |
337 | private func handle(data: Data, response: URLResponse, for request: URLRequest, errorContext: String?, attempt: Int = 1) async throws(APIError)
| `- error: cannot find type 'URLRequest' in scope
338 | -> Data
339 | {
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:337:46: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
335 | }
336 |
337 | private func handle(data: Data, response: URLResponse, for request: URLRequest, errorContext: String?, attempt: Int = 1) async throws(APIError)
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
338 | -> Data
339 | {
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:213:8: error: stored property 'urlSession' of 'Sendable'-conforming class 'RESTClient' has non-Sendable type 'AnyObject'
211 | let jsonEncoder: JSONEncoder
212 | let jsonDecoder: JSONDecoder
213 | let urlSession: URLSession
| `- error: stored property 'urlSession' of 'Sendable'-conforming class 'RESTClient' has non-Sendable type 'AnyObject'
214 | let requestPlugins: [any RequestPlugin]
215 | let responsePlugins: [any ResponsePlugin]
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:292:21: error: cannot find 'URLRequest' in scope
290 | }
291 |
292 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
293 | request.httpMethod = method.rawValue
294 |
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:327:21: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
325 | private func performRequest(_ request: URLRequest, errorContext: String?) async throws(APIError) -> (Data, URLResponse) {
326 | let data: Data
327 | let response: URLResponse
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
328 | do {
329 | (data, response) = try await self.urlSession.data(for: request)
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:329:55: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
327 | let response: URLResponse
328 | do {
329 | (data, response) = try await self.urlSession.data(for: request)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
330 | } catch {
331 | throw APIError.failedToLoadData(error, self.errorContext(requestContext: errorContext))
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:340:45: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
338 | -> Data
339 | {
340 | guard var httpResponse = response as? HTTPURLResponse else {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
341 | throw .unexpectedResponseType(response, self.errorContext(requestContext: errorContext))
342 | }
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:353:27: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
351 | }
352 |
353 | switch httpResponse.statusCode {
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
354 | case 200..<300:
355 | return data
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:363:61: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
361 |
362 | // respect the server retry-after(-ms) value if it exists, allowing values betwen 0.5-5 seconds
363 | if let retryAfterMillisecondsString = httpResponse.value(forHTTPHeaderField: "retry-after-ms"),
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
364 | let retryAfterMilliseconds = Double(retryAfterMillisecondsString)
365 | {
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:367:56: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
365 | {
366 | sleepSeconds = max(0.5, min(retryAfterMilliseconds, 5))
367 | } else if let retryAfterString = httpResponse.value(forHTTPHeaderField: "retry-after"),
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
368 | let retryAfter = Double(retryAfterString)
369 | {
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:385:55: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
383 | guard !data.isEmpty else {
384 | throw .clientError(
385 | "Unexpected status code \(httpResponse.statusCode) without a response body.",
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
386 | self.errorContext(requestContext: errorContext)
387 | )
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:399:51: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
397 |
398 | default:
399 | throw .unexpectedStatusCode(httpResponse.statusCode, self.errorContext(requestContext: errorContext))
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
400 | }
401 | }
[181/414] Compiling HandySwift SortedArray.swift
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/PrintRequestPlugin.swift:85:40: error: cannot find type 'URLRequest' in scope
83 | ///
84 | /// - Parameter request: The URLRequest to potentially log and pass through unchanged.
85 | public func apply(to request: inout URLRequest) {
| `- error: cannot find type 'URLRequest' in scope
86 | if self.debugOnly {
87 | #if DEBUG
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/PrintRequestPlugin.swift:98:41: error: cannot find type 'URLRequest' in scope
96 | ///
97 | /// - Parameter request: The URLRequest to print details for.
98 | private func printRequest(_ request: URLRequest) {
| `- error: cannot find type 'URLRequest' in scope
99 | var requestBodyString: String?
100 | if let bodyData = request.httpBody {
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:201:36: error: cannot find type 'URLRequest' in scope
199 |
200 | public protocol RequestPlugin: Sendable {
201 | func apply(to request: inout URLRequest)
| `- error: cannot find type 'URLRequest' in scope
202 | }
203 |
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/PrintResponsePlugin.swift:93:41: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
91 | /// - data: The response body data to potentially log.
92 | /// - Throws: Does not throw errors, but passes through any errors from the response processing.
93 | public func apply(to response: inout HTTPURLResponse, data: inout Data) throws {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
94 | if self.debugOnly {
95 | #if DEBUG
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/PrintResponsePlugin.swift:108:43: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
106 | /// - response: The HTTPURLResponse to print details for.
107 | /// - data: The response body data to print.
108 | private func printResponse(_ response: HTTPURLResponse, data: Data) {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
109 | var responseBodyString: String?
110 | if !data.isEmpty {
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/PrintResponsePlugin.swift:116:35: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
114 | // Clean headers formatting - sorted alphabetically for consistency, no AnyHashable wrappers
115 | var headersString = ""
116 | let cleanHeaders = response.allHeaderFields
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
117 | .compactMapValues { "\($0)" }
118 | .sorted { "\($0.key)" < "\($1.key)" }
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/PrintResponsePlugin.swift:124:44: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
122 |
123 | print(
124 | "[RESTClient] Response \(response.statusCode) from '\(response.url!)'\n\nResponse headers:\(headersString)\n\nResponse body:\n\(responseBodyString ?? "No body")"
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
125 | )
126 | }
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:19:35: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
17 | case failedToDecodeClientErrorBody(Error, Context?)
18 | case clientError(String, Context?)
19 | case unexpectedResponseType(URLResponse, Context?)
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
20 | case unexpectedStatusCode(Int, Context?)
21 |
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:19:12: error: associated value 'unexpectedResponseType' of 'Sendable'-conforming enum 'APIError' contains non-Sendable type 'AnyObject'
17 | case failedToDecodeClientErrorBody(Error, Context?)
18 | case clientError(String, Context?)
19 | case unexpectedResponseType(URLResponse, Context?)
| `- error: associated value 'unexpectedResponseType' of 'Sendable'-conforming enum 'APIError' contains non-Sendable type 'AnyObject'
20 | case unexpectedStatusCode(Int, Context?)
21 |
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:205:37: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
203 |
204 | public protocol ResponsePlugin: Sendable {
205 | func apply(to response: inout HTTPURLResponse, data: inout Data) throws
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
206 | }
207 |
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:213:20: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
211 | let jsonEncoder: JSONEncoder
212 | let jsonDecoder: JSONDecoder
213 | let urlSession: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
214 | let requestPlugins: [any RequestPlugin]
215 | let responsePlugins: [any ResponsePlugin]
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:226:19: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
224 | jsonEncoder: JSONEncoder = .init(),
225 | jsonDecoder: JSONDecoder = .init(),
226 | urlSession: URLSession = .shared,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
227 | requestPlugins: [any RequestPlugin] = [],
228 | responsePlugins: [any ResponsePlugin] = [],
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:226:33: error: value of type '_' expected to be instance of class or class-constrained type
224 | jsonEncoder: JSONEncoder = .init(),
225 | jsonDecoder: JSONDecoder = .init(),
226 | urlSession: URLSession = .shared,
| `- error: value of type '_' expected to be instance of class or class-constrained type
227 | requestPlugins: [any RequestPlugin] = [],
228 | responsePlugins: [any ResponsePlugin] = [],
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:226:33: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
224 | jsonEncoder: JSONEncoder = .init(),
225 | jsonDecoder: JSONDecoder = .init(),
226 | urlSession: URLSession = .shared,
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
227 | requestPlugins: [any RequestPlugin] = [],
228 | responsePlugins: [any ResponsePlugin] = [],
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:325:43: error: cannot find type 'URLRequest' in scope
323 | }
324 |
325 | private func performRequest(_ request: URLRequest, errorContext: String?) async throws(APIError) -> (Data, URLResponse) {
| `- error: cannot find type 'URLRequest' in scope
326 | let data: Data
327 | let response: URLResponse
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:325:111: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
323 | }
324 |
325 | private func performRequest(_ request: URLRequest, errorContext: String?) async throws(APIError) -> (Data, URLResponse) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
326 | let data: Data
327 | let response: URLResponse
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:337:72: error: cannot find type 'URLRequest' in scope
335 | }
336 |
337 | private func handle(data: Data, response: URLResponse, for request: URLRequest, errorContext: String?, attempt: Int = 1) async throws(APIError)
| `- error: cannot find type 'URLRequest' in scope
338 | -> Data
339 | {
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:337:46: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
335 | }
336 |
337 | private func handle(data: Data, response: URLResponse, for request: URLRequest, errorContext: String?, attempt: Int = 1) async throws(APIError)
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
338 | -> Data
339 | {
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:213:8: error: stored property 'urlSession' of 'Sendable'-conforming class 'RESTClient' has non-Sendable type 'AnyObject'
211 | let jsonEncoder: JSONEncoder
212 | let jsonDecoder: JSONDecoder
213 | let urlSession: URLSession
| `- error: stored property 'urlSession' of 'Sendable'-conforming class 'RESTClient' has non-Sendable type 'AnyObject'
214 | let requestPlugins: [any RequestPlugin]
215 | let responsePlugins: [any ResponsePlugin]
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:292:21: error: cannot find 'URLRequest' in scope
290 | }
291 |
292 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
293 | request.httpMethod = method.rawValue
294 |
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:327:21: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
325 | private func performRequest(_ request: URLRequest, errorContext: String?) async throws(APIError) -> (Data, URLResponse) {
326 | let data: Data
327 | let response: URLResponse
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
328 | do {
329 | (data, response) = try await self.urlSession.data(for: request)
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:329:55: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
327 | let response: URLResponse
328 | do {
329 | (data, response) = try await self.urlSession.data(for: request)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
330 | } catch {
331 | throw APIError.failedToLoadData(error, self.errorContext(requestContext: errorContext))
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:340:45: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
338 | -> Data
339 | {
340 | guard var httpResponse = response as? HTTPURLResponse else {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
341 | throw .unexpectedResponseType(response, self.errorContext(requestContext: errorContext))
342 | }
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:353:27: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
351 | }
352 |
353 | switch httpResponse.statusCode {
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
354 | case 200..<300:
355 | return data
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:363:61: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
361 |
362 | // respect the server retry-after(-ms) value if it exists, allowing values betwen 0.5-5 seconds
363 | if let retryAfterMillisecondsString = httpResponse.value(forHTTPHeaderField: "retry-after-ms"),
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
364 | let retryAfterMilliseconds = Double(retryAfterMillisecondsString)
365 | {
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:367:56: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
365 | {
366 | sleepSeconds = max(0.5, min(retryAfterMilliseconds, 5))
367 | } else if let retryAfterString = httpResponse.value(forHTTPHeaderField: "retry-after"),
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
368 | let retryAfter = Double(retryAfterString)
369 | {
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:385:55: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
383 | guard !data.isEmpty else {
384 | throw .clientError(
385 | "Unexpected status code \(httpResponse.statusCode) without a response body.",
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
386 | self.errorContext(requestContext: errorContext)
387 | )
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:399:51: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
397 |
398 | default:
399 | throw .unexpectedStatusCode(httpResponse.statusCode, self.errorContext(requestContext: errorContext))
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
400 | }
401 | }
[182/414] Compiling HandySwift RandomAccessCollectionExt.swift
[183/414] Compiling HandySwift SequenceExt.swift
[184/414] Compiling HandySwift StringExt.swift
[185/414] Compiling HandySwift StringProtocolExt.swift
[186/414] Compiling HandySwift SymmetricKeyExt.swift
[187/414] Compiling HandySwift ArrayExt.swift
[188/414] Compiling HandySwift CaseIterableExt.swift
[189/414] Compiling HandySwift CollectionExt.swift
[190/414] Compiling HandySwift ComparableExt.swift
[191/414] Compiling HandySwift DataExt.swift
[192/414] Compiling HandySwift DateExt.swift
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Extensions/DispatchTimeIntervalExt.swift:3:11: error: cannot find type 'DispatchTimeInterval' in scope
1 | import Foundation
2 |
3 | extension DispatchTimeInterval {
| `- error: cannot find type 'DispatchTimeInterval' in scope
4 | /// Converts the dispatch time interval to seconds using the `TimeInterval` type.
5 | /// This is useful for when you need to work with `DispatchTimeInterval` values in contexts that require `TimeInterval` (in seconds),
[193/414] Compiling HandySwift DictionaryExt.swift
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Extensions/DispatchTimeIntervalExt.swift:3:11: error: cannot find type 'DispatchTimeInterval' in scope
1 | import Foundation
2 |
3 | extension DispatchTimeInterval {
| `- error: cannot find type 'DispatchTimeInterval' in scope
4 | /// Converts the dispatch time interval to seconds using the `TimeInterval` type.
5 | /// This is useful for when you need to work with `DispatchTimeInterval` values in contexts that require `TimeInterval` (in seconds),
[194/414] Compiling HandySwift DispatchTimeIntervalExt.swift
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Extensions/DispatchTimeIntervalExt.swift:3:11: error: cannot find type 'DispatchTimeInterval' in scope
1 | import Foundation
2 |
3 | extension DispatchTimeInterval {
| `- error: cannot find type 'DispatchTimeInterval' in scope
4 | /// Converts the dispatch time interval to seconds using the `TimeInterval` type.
5 | /// This is useful for when you need to work with `DispatchTimeInterval` values in contexts that require `TimeInterval` (in seconds),
[195/414] Compiling HandySwift DoubleExt.swift
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Extensions/DispatchTimeIntervalExt.swift:3:11: error: cannot find type 'DispatchTimeInterval' in scope
1 | import Foundation
2 |
3 | extension DispatchTimeInterval {
| `- error: cannot find type 'DispatchTimeInterval' in scope
4 | /// Converts the dispatch time interval to seconds using the `TimeInterval` type.
5 | /// This is useful for when you need to work with `DispatchTimeInterval` values in contexts that require `TimeInterval` (in seconds),
[196/414] Compiling HandySwift DurationExt.swift
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Extensions/DispatchTimeIntervalExt.swift:3:11: error: cannot find type 'DispatchTimeInterval' in scope
1 | import Foundation
2 |
3 | extension DispatchTimeInterval {
| `- error: cannot find type 'DispatchTimeInterval' in scope
4 | /// Converts the dispatch time interval to seconds using the `TimeInterval` type.
5 | /// This is useful for when you need to work with `DispatchTimeInterval` values in contexts that require `TimeInterval` (in seconds),
[197/414] Compiling HandySwift FloatExt.swift
[198/414] Compiling HandySwift IntExt.swift
[199/414] Compiling HandySwift JSONDecoderExt.swift
[200/414] Compiling HandySwift JSONEncoderExt.swift
[201/414] Compiling HandySwift NSRangeExt.swift
[202/414] Compiling HandySwift HandyRegex.swift
[203/414] Compiling HandySwift LogRequestPlugin.swift
[204/414] Compiling HandySwift LogResponsePlugin.swift
[205/414] Compiling HandySwift OperatingSystem.swift
[205/414] Compiling v3_pcons.cc
[205/414] Compiling v3_int.cc
[205/414] Compiling v3_ocsp.cc
[205/414] Compiling v3_ncons.cc
[205/414] Compiling v3_info.cc
[205/414] Compiling v3_lib.cc
[205/414] Compiling v3_pmaps.cc
BUILD FAILURE 6.3 wasm