Build Information
Failed to build CSVImporter, reference main (193aa0
), with Swift 6.1 for Wasm on 28 May 2025 06:05:58 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4606859-0":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1
Build Log
========================================
RunAll
========================================
Builder version: 4.63.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/FlineDev/CSVImporter.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/CSVImporter
* branch main -> FETCH_HEAD
* [new branch] main -> origin/main
HEAD is now at 193aa03 Update code style
Cloned https://github.com/FlineDev/CSVImporter.git
Revision (git rev-parse @):
193aa03649f7fcdd1a2d9ed968885ef145e4ac18
SUCCESS checkout https://github.com/FlineDev/CSVImporter.git at main
========================================
Build
========================================
Selected platform: wasm
Swift version: 6.1
Building package at path: $PWD
https://github.com/FlineDev/CSVImporter.git
https://github.com/FlineDev/CSVImporter.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
"dependencies" : [
{
"identity" : "handyswift",
"requirement" : {
"branch" : [
"main"
]
},
"type" : "sourceControl",
"url" : "https://github.com/Flinesoft/HandySwift.git"
},
{
"identity" : "quick",
"requirement" : {
"range" : [
{
"lower_bound" : "2.1.0",
"upper_bound" : "3.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/Quick/Quick.git"
},
{
"identity" : "nimble",
"requirement" : {
"range" : [
{
"lower_bound" : "8.0.1",
"upper_bound" : "9.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/Quick/Nimble.git"
}
],
"manifest_display_name" : "CSVImporter",
"name" : "CSVImporter",
"path" : "/host/spi-builder-workspace",
"platforms" : [
{
"name" : "ios",
"version" : "17.0"
},
{
"name" : "macos",
"version" : "14.0"
},
{
"name" : "tvos",
"version" : "17.0"
},
{
"name" : "watchos",
"version" : "10.0"
},
{
"name" : "visionos",
"version" : "1.0"
}
],
"products" : [
{
"name" : "CSVImporter",
"targets" : [
"CSVImporter"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "CSVImporterTests",
"module_type" : "SwiftTarget",
"name" : "CSVImporterTests",
"path" : "Tests/CSVImporterTests",
"product_dependencies" : [
"Quick",
"Nimble"
],
"sources" : [
"CSVImporterSpec.swift"
],
"target_dependencies" : [
"CSVImporter"
],
"type" : "test"
},
{
"c99name" : "CSVImporter",
"module_type" : "SwiftTarget",
"name" : "CSVImporter",
"path" : "Frameworks/CSVImporter",
"product_dependencies" : [
"HandySwift"
],
"product_memberships" : [
"CSVImporter"
],
"sources" : [
"CSVImporter.swift",
"FileSource.swift",
"Globals.swift",
"Source.swift",
"StringSource.swift",
"TextFile.swift",
"TextFileStreamReader.swift"
],
"type" : "library"
}
],
"tools_version" : "5.9"
}
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-0":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures 2>&1
wasm-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:7e37457820e5f17452a98118754f345f2619722c485f2db0d8b666940a83afd2
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest
Fetching https://github.com/Flinesoft/HandySwift.git
[1/3368] Fetching handyswift
Fetched https://github.com/Flinesoft/HandySwift.git from cache (0.53s)
Fetching https://github.com/Quick/Quick.git
Fetching https://github.com/Quick/Nimble.git
[1/14755] Fetching quick
[7969/34339] Fetching quick, nimble
Fetched https://github.com/Quick/Quick.git from cache (1.46s)
Fetched https://github.com/Quick/Nimble.git from cache (1.48s)
Computing version for https://github.com/Quick/Quick.git
Computed https://github.com/Quick/Quick.git at 2.2.1 (3.72s)
Computing version for https://github.com/Quick/Nimble.git
Computed https://github.com/Quick/Nimble.git at 8.1.2 (0.56s)
Creating working copy for https://github.com/Quick/Nimble.git
Working copy of https://github.com/Quick/Nimble.git resolved at 8.1.2
Creating working copy for https://github.com/Flinesoft/HandySwift.git
Working copy of https://github.com/Flinesoft/HandySwift.git resolved at main (f45bf51)
Creating working copy for https://github.com/Quick/Quick.git
Working copy of https://github.com/Quick/Quick.git resolved at 2.2.1
Building for debugging...
[0/3] Write sources
[2/3] Write swift-version-24593BA9C3E375BF.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[4/33] Emitting module HandySwift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
/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/RESTClient.swift:18:35: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
16 | case failedToDecodeClientErrorBody(Error, Context?)
17 | case clientError(String, Context?)
18 | case unexpectedResponseType(URLResponse, Context?)
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
19 | case unexpectedStatusCode(Int, Context?)
20 |
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:18:12: error: associated value 'unexpectedResponseType' of 'Sendable'-conforming enum 'APIError' has non-sendable type 'URLResponse' (aka 'AnyObject')
16 | case failedToDecodeClientErrorBody(Error, Context?)
17 | case clientError(String, Context?)
18 | case unexpectedResponseType(URLResponse, Context?)
| `- error: associated value 'unexpectedResponseType' of 'Sendable'-conforming enum 'APIError' has non-sendable type 'URLResponse' (aka 'AnyObject')
19 | case unexpectedStatusCode(Int, Context?)
20 |
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:105:36: error: cannot find type 'URLRequest' in scope
103 |
104 | public protocol RequestPlugin: Sendable {
105 | func apply(to request: inout URLRequest)
| `- error: cannot find type 'URLRequest' in scope
106 | }
107 |
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:109:37: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
107 |
108 | public protocol ResponsePlugin: Sendable {
109 | func apply(to response: inout HTTPURLResponse, data: inout Data) throws
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
110 | }
111 |
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:218:43: error: cannot find type 'URLRequest' in scope
216 | }
217 |
218 | private func performRequest(_ request: URLRequest, errorContext: String?) async throws(APIError) -> (Data, URLResponse) {
| `- error: cannot find type 'URLRequest' in scope
219 | self.logRequestIfDebug(request)
220 |
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:218:111: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
216 | }
217 |
218 | 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.
219 | self.logRequestIfDebug(request)
220 |
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:233:72: error: cannot find type 'URLRequest' in scope
231 | }
232 |
233 | private func handle(data: Data, response: URLResponse, for request: URLRequest, errorContext: String?, attempt: Int = 1) async throws(APIError) -> Data {
| `- error: cannot find type 'URLRequest' in scope
234 | guard var httpResponse = response as? HTTPURLResponse else {
235 | throw .unexpectedResponseType(response, self.errorContext(requestContext: errorContext))
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:233:46: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
231 | }
232 |
233 | private func handle(data: Data, response: URLResponse, for request: URLRequest, errorContext: String?, attempt: Int = 1) async throws(APIError) -> Data {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
234 | guard var httpResponse = response as? HTTPURLResponse else {
235 | throw .unexpectedResponseType(response, self.errorContext(requestContext: errorContext))
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:296:46: error: cannot find type 'URLRequest' in scope
294 | }
295 |
296 | private func logRequestIfDebug(_ request: URLRequest) {
| `- error: cannot find type 'URLRequest' in scope
297 | #if DEBUG
298 | var requestBodyString: String?
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:307:48: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
305 | }
306 |
307 | private func logResponseIfDebug(_ response: URLResponse, data: Data?) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
308 | #if DEBUG
309 | var responseBodyString: String?
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
[5/37] Compiling HandySwift HandyRegex.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:18:35: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
16 | case failedToDecodeClientErrorBody(Error, Context?)
17 | case clientError(String, Context?)
18 | case unexpectedResponseType(URLResponse, Context?)
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
19 | case unexpectedStatusCode(Int, Context?)
20 |
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:18:12: error: associated value 'unexpectedResponseType' of 'Sendable'-conforming enum 'APIError' has non-sendable type 'URLResponse' (aka 'AnyObject')
16 | case failedToDecodeClientErrorBody(Error, Context?)
17 | case clientError(String, Context?)
18 | case unexpectedResponseType(URLResponse, Context?)
| `- error: associated value 'unexpectedResponseType' of 'Sendable'-conforming enum 'APIError' has non-sendable type 'URLResponse' (aka 'AnyObject')
19 | case unexpectedStatusCode(Int, Context?)
20 |
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:105:36: error: cannot find type 'URLRequest' in scope
103 |
104 | public protocol RequestPlugin: Sendable {
105 | func apply(to request: inout URLRequest)
| `- error: cannot find type 'URLRequest' in scope
106 | }
107 |
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:109:37: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
107 |
108 | public protocol ResponsePlugin: Sendable {
109 | func apply(to response: inout HTTPURLResponse, data: inout Data) throws
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
110 | }
111 |
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:218:43: error: cannot find type 'URLRequest' in scope
216 | }
217 |
218 | private func performRequest(_ request: URLRequest, errorContext: String?) async throws(APIError) -> (Data, URLResponse) {
| `- error: cannot find type 'URLRequest' in scope
219 | self.logRequestIfDebug(request)
220 |
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:218:111: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
216 | }
217 |
218 | 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.
219 | self.logRequestIfDebug(request)
220 |
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:233:72: error: cannot find type 'URLRequest' in scope
231 | }
232 |
233 | private func handle(data: Data, response: URLResponse, for request: URLRequest, errorContext: String?, attempt: Int = 1) async throws(APIError) -> Data {
| `- error: cannot find type 'URLRequest' in scope
234 | guard var httpResponse = response as? HTTPURLResponse else {
235 | throw .unexpectedResponseType(response, self.errorContext(requestContext: errorContext))
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:233:46: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
231 | }
232 |
233 | private func handle(data: Data, response: URLResponse, for request: URLRequest, errorContext: String?, attempt: Int = 1) async throws(APIError) -> Data {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
234 | guard var httpResponse = response as? HTTPURLResponse else {
235 | throw .unexpectedResponseType(response, self.errorContext(requestContext: errorContext))
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:296:46: error: cannot find type 'URLRequest' in scope
294 | }
295 |
296 | private func logRequestIfDebug(_ request: URLRequest) {
| `- error: cannot find type 'URLRequest' in scope
297 | #if DEBUG
298 | var requestBodyString: String?
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:307:48: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
305 | }
306 |
307 | private func logResponseIfDebug(_ response: URLResponse, data: Data?) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
308 | #if DEBUG
309 | var responseBodyString: String?
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:185:21: error: cannot find 'URLRequest' in scope
183 | .appending(queryItems: self.baseQueryItems + extraQueryItems)
184 |
185 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
186 | request.httpMethod = method.rawValue
187 |
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:222:21: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
220 |
221 | let data: Data
222 | let response: URLResponse
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
223 | do {
224 | (data, response) = try await URLSession.shared.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:224:50: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
222 | let response: URLResponse
223 | do {
224 | (data, response) = try await URLSession.shared.data(for: request)
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
225 | } catch {
226 | throw APIError.failedToLoadData(error, self.errorContext(requestContext: errorContext))
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:234:45: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
232 |
233 | private func handle(data: Data, response: URLResponse, for request: URLRequest, errorContext: String?, attempt: Int = 1) async throws(APIError) -> Data {
234 | 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.
235 | throw .unexpectedResponseType(response, self.errorContext(requestContext: errorContext))
236 | }
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:247:27: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
245 | }
246 |
247 | switch httpResponse.statusCode {
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
248 | case 200..<300:
249 | return data
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:258:61: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
256 | // respect the server retry-after(-ms) value if it exists, allowing values betwen 0.5-5 seconds
257 | if
258 | let retryAfterMillisecondsString = httpResponse.value(forHTTPHeaderField: "retry-after-ms"),
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
259 | let retryAfterMilliseconds = Double(retryAfterMillisecondsString)
260 | {
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:263:49: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
261 | sleepSeconds = max(0.5, min(retryAfterMilliseconds, 5))
262 | } else if
263 | let retryAfterString = httpResponse.value(forHTTPHeaderField: "retry-after"),
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
264 | let retryAfter = Double(retryAfterString)
265 | {
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:280:71: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
278 | case 400..<500:
279 | guard !data.isEmpty else {
280 | throw .clientError("Unexpected status code \(httpResponse.statusCode) without a response body.", self.errorContext(requestContext: errorContext))
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
281 | }
282 |
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:292:51: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
290 |
291 | default:
292 | throw .unexpectedStatusCode(httpResponse.statusCode, self.errorContext(requestContext: errorContext))
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
293 | }
294 | }
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:314:66: error: value of type 'URLResponse' (aka 'AnyObject') has no member 'url'
312 | }
313 |
314 | print("[\(self)] Received response & body from '\(response.url!)': \(response)\n\nResponse headers:\n\((response as? HTTPURLResponse)?.allHeaderFields ?? [:])\n\nResponse body:\n\(responseBodyString ?? "No body")")
| `- error: value of type 'URLResponse' (aka 'AnyObject') has no member 'url'
315 | #endif
316 | }
[6/37] Compiling HandySwift OperatingSystem.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:18:35: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
16 | case failedToDecodeClientErrorBody(Error, Context?)
17 | case clientError(String, Context?)
18 | case unexpectedResponseType(URLResponse, Context?)
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
19 | case unexpectedStatusCode(Int, Context?)
20 |
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:18:12: error: associated value 'unexpectedResponseType' of 'Sendable'-conforming enum 'APIError' has non-sendable type 'URLResponse' (aka 'AnyObject')
16 | case failedToDecodeClientErrorBody(Error, Context?)
17 | case clientError(String, Context?)
18 | case unexpectedResponseType(URLResponse, Context?)
| `- error: associated value 'unexpectedResponseType' of 'Sendable'-conforming enum 'APIError' has non-sendable type 'URLResponse' (aka 'AnyObject')
19 | case unexpectedStatusCode(Int, Context?)
20 |
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:105:36: error: cannot find type 'URLRequest' in scope
103 |
104 | public protocol RequestPlugin: Sendable {
105 | func apply(to request: inout URLRequest)
| `- error: cannot find type 'URLRequest' in scope
106 | }
107 |
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:109:37: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
107 |
108 | public protocol ResponsePlugin: Sendable {
109 | func apply(to response: inout HTTPURLResponse, data: inout Data) throws
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
110 | }
111 |
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:218:43: error: cannot find type 'URLRequest' in scope
216 | }
217 |
218 | private func performRequest(_ request: URLRequest, errorContext: String?) async throws(APIError) -> (Data, URLResponse) {
| `- error: cannot find type 'URLRequest' in scope
219 | self.logRequestIfDebug(request)
220 |
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:218:111: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
216 | }
217 |
218 | 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.
219 | self.logRequestIfDebug(request)
220 |
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:233:72: error: cannot find type 'URLRequest' in scope
231 | }
232 |
233 | private func handle(data: Data, response: URLResponse, for request: URLRequest, errorContext: String?, attempt: Int = 1) async throws(APIError) -> Data {
| `- error: cannot find type 'URLRequest' in scope
234 | guard var httpResponse = response as? HTTPURLResponse else {
235 | throw .unexpectedResponseType(response, self.errorContext(requestContext: errorContext))
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:233:46: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
231 | }
232 |
233 | private func handle(data: Data, response: URLResponse, for request: URLRequest, errorContext: String?, attempt: Int = 1) async throws(APIError) -> Data {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
234 | guard var httpResponse = response as? HTTPURLResponse else {
235 | throw .unexpectedResponseType(response, self.errorContext(requestContext: errorContext))
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:296:46: error: cannot find type 'URLRequest' in scope
294 | }
295 |
296 | private func logRequestIfDebug(_ request: URLRequest) {
| `- error: cannot find type 'URLRequest' in scope
297 | #if DEBUG
298 | var requestBodyString: String?
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:307:48: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
305 | }
306 |
307 | private func logResponseIfDebug(_ response: URLResponse, data: Data?) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
308 | #if DEBUG
309 | var responseBodyString: String?
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:185:21: error: cannot find 'URLRequest' in scope
183 | .appending(queryItems: self.baseQueryItems + extraQueryItems)
184 |
185 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
186 | request.httpMethod = method.rawValue
187 |
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:222:21: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
220 |
221 | let data: Data
222 | let response: URLResponse
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
223 | do {
224 | (data, response) = try await URLSession.shared.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:224:50: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
222 | let response: URLResponse
223 | do {
224 | (data, response) = try await URLSession.shared.data(for: request)
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
225 | } catch {
226 | throw APIError.failedToLoadData(error, self.errorContext(requestContext: errorContext))
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:234:45: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
232 |
233 | private func handle(data: Data, response: URLResponse, for request: URLRequest, errorContext: String?, attempt: Int = 1) async throws(APIError) -> Data {
234 | 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.
235 | throw .unexpectedResponseType(response, self.errorContext(requestContext: errorContext))
236 | }
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:247:27: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
245 | }
246 |
247 | switch httpResponse.statusCode {
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
248 | case 200..<300:
249 | return data
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:258:61: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
256 | // respect the server retry-after(-ms) value if it exists, allowing values betwen 0.5-5 seconds
257 | if
258 | let retryAfterMillisecondsString = httpResponse.value(forHTTPHeaderField: "retry-after-ms"),
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
259 | let retryAfterMilliseconds = Double(retryAfterMillisecondsString)
260 | {
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:263:49: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
261 | sleepSeconds = max(0.5, min(retryAfterMilliseconds, 5))
262 | } else if
263 | let retryAfterString = httpResponse.value(forHTTPHeaderField: "retry-after"),
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
264 | let retryAfter = Double(retryAfterString)
265 | {
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:280:71: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
278 | case 400..<500:
279 | guard !data.isEmpty else {
280 | throw .clientError("Unexpected status code \(httpResponse.statusCode) without a response body.", self.errorContext(requestContext: errorContext))
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
281 | }
282 |
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:292:51: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
290 |
291 | default:
292 | throw .unexpectedStatusCode(httpResponse.statusCode, self.errorContext(requestContext: errorContext))
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
293 | }
294 | }
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:314:66: error: value of type 'URLResponse' (aka 'AnyObject') has no member 'url'
312 | }
313 |
314 | print("[\(self)] Received response & body from '\(response.url!)': \(response)\n\nResponse headers:\n\((response as? HTTPURLResponse)?.allHeaderFields ?? [:])\n\nResponse body:\n\(responseBodyString ?? "No body")")
| `- error: value of type 'URLResponse' (aka 'AnyObject') has no member 'url'
315 | #endif
316 | }
[7/37] Compiling HandySwift RESTClient.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:18:35: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
16 | case failedToDecodeClientErrorBody(Error, Context?)
17 | case clientError(String, Context?)
18 | case unexpectedResponseType(URLResponse, Context?)
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
19 | case unexpectedStatusCode(Int, Context?)
20 |
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:18:12: error: associated value 'unexpectedResponseType' of 'Sendable'-conforming enum 'APIError' has non-sendable type 'URLResponse' (aka 'AnyObject')
16 | case failedToDecodeClientErrorBody(Error, Context?)
17 | case clientError(String, Context?)
18 | case unexpectedResponseType(URLResponse, Context?)
| `- error: associated value 'unexpectedResponseType' of 'Sendable'-conforming enum 'APIError' has non-sendable type 'URLResponse' (aka 'AnyObject')
19 | case unexpectedStatusCode(Int, Context?)
20 |
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:105:36: error: cannot find type 'URLRequest' in scope
103 |
104 | public protocol RequestPlugin: Sendable {
105 | func apply(to request: inout URLRequest)
| `- error: cannot find type 'URLRequest' in scope
106 | }
107 |
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:109:37: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
107 |
108 | public protocol ResponsePlugin: Sendable {
109 | func apply(to response: inout HTTPURLResponse, data: inout Data) throws
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
110 | }
111 |
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:218:43: error: cannot find type 'URLRequest' in scope
216 | }
217 |
218 | private func performRequest(_ request: URLRequest, errorContext: String?) async throws(APIError) -> (Data, URLResponse) {
| `- error: cannot find type 'URLRequest' in scope
219 | self.logRequestIfDebug(request)
220 |
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:218:111: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
216 | }
217 |
218 | 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.
219 | self.logRequestIfDebug(request)
220 |
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:233:72: error: cannot find type 'URLRequest' in scope
231 | }
232 |
233 | private func handle(data: Data, response: URLResponse, for request: URLRequest, errorContext: String?, attempt: Int = 1) async throws(APIError) -> Data {
| `- error: cannot find type 'URLRequest' in scope
234 | guard var httpResponse = response as? HTTPURLResponse else {
235 | throw .unexpectedResponseType(response, self.errorContext(requestContext: errorContext))
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:233:46: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
231 | }
232 |
233 | private func handle(data: Data, response: URLResponse, for request: URLRequest, errorContext: String?, attempt: Int = 1) async throws(APIError) -> Data {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
234 | guard var httpResponse = response as? HTTPURLResponse else {
235 | throw .unexpectedResponseType(response, self.errorContext(requestContext: errorContext))
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:296:46: error: cannot find type 'URLRequest' in scope
294 | }
295 |
296 | private func logRequestIfDebug(_ request: URLRequest) {
| `- error: cannot find type 'URLRequest' in scope
297 | #if DEBUG
298 | var requestBodyString: String?
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:307:48: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
305 | }
306 |
307 | private func logResponseIfDebug(_ response: URLResponse, data: Data?) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
308 | #if DEBUG
309 | var responseBodyString: String?
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:185:21: error: cannot find 'URLRequest' in scope
183 | .appending(queryItems: self.baseQueryItems + extraQueryItems)
184 |
185 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
186 | request.httpMethod = method.rawValue
187 |
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:222:21: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
220 |
221 | let data: Data
222 | let response: URLResponse
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
223 | do {
224 | (data, response) = try await URLSession.shared.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:224:50: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
222 | let response: URLResponse
223 | do {
224 | (data, response) = try await URLSession.shared.data(for: request)
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
225 | } catch {
226 | throw APIError.failedToLoadData(error, self.errorContext(requestContext: errorContext))
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:234:45: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
232 |
233 | private func handle(data: Data, response: URLResponse, for request: URLRequest, errorContext: String?, attempt: Int = 1) async throws(APIError) -> Data {
234 | 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.
235 | throw .unexpectedResponseType(response, self.errorContext(requestContext: errorContext))
236 | }
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:247:27: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
245 | }
246 |
247 | switch httpResponse.statusCode {
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
248 | case 200..<300:
249 | return data
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:258:61: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
256 | // respect the server retry-after(-ms) value if it exists, allowing values betwen 0.5-5 seconds
257 | if
258 | let retryAfterMillisecondsString = httpResponse.value(forHTTPHeaderField: "retry-after-ms"),
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
259 | let retryAfterMilliseconds = Double(retryAfterMillisecondsString)
260 | {
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:263:49: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
261 | sleepSeconds = max(0.5, min(retryAfterMilliseconds, 5))
262 | } else if
263 | let retryAfterString = httpResponse.value(forHTTPHeaderField: "retry-after"),
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
264 | let retryAfter = Double(retryAfterString)
265 | {
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:280:71: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
278 | case 400..<500:
279 | guard !data.isEmpty else {
280 | throw .clientError("Unexpected status code \(httpResponse.statusCode) without a response body.", self.errorContext(requestContext: errorContext))
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
281 | }
282 |
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:292:51: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
290 |
291 | default:
292 | throw .unexpectedStatusCode(httpResponse.statusCode, self.errorContext(requestContext: errorContext))
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
293 | }
294 | }
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:314:66: error: value of type 'URLResponse' (aka 'AnyObject') has no member 'url'
312 | }
313 |
314 | print("[\(self)] Received response & body from '\(response.url!)': \(response)\n\nResponse headers:\n\((response as? HTTPURLResponse)?.allHeaderFields ?? [:])\n\nResponse body:\n\(responseBodyString ?? "No body")")
| `- error: value of type 'URLResponse' (aka 'AnyObject') has no member 'url'
315 | #endif
316 | }
[8/37] Compiling HandySwift SortedArray.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:18:35: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
16 | case failedToDecodeClientErrorBody(Error, Context?)
17 | case clientError(String, Context?)
18 | case unexpectedResponseType(URLResponse, Context?)
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
19 | case unexpectedStatusCode(Int, Context?)
20 |
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:18:12: error: associated value 'unexpectedResponseType' of 'Sendable'-conforming enum 'APIError' has non-sendable type 'URLResponse' (aka 'AnyObject')
16 | case failedToDecodeClientErrorBody(Error, Context?)
17 | case clientError(String, Context?)
18 | case unexpectedResponseType(URLResponse, Context?)
| `- error: associated value 'unexpectedResponseType' of 'Sendable'-conforming enum 'APIError' has non-sendable type 'URLResponse' (aka 'AnyObject')
19 | case unexpectedStatusCode(Int, Context?)
20 |
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:105:36: error: cannot find type 'URLRequest' in scope
103 |
104 | public protocol RequestPlugin: Sendable {
105 | func apply(to request: inout URLRequest)
| `- error: cannot find type 'URLRequest' in scope
106 | }
107 |
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:109:37: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
107 |
108 | public protocol ResponsePlugin: Sendable {
109 | func apply(to response: inout HTTPURLResponse, data: inout Data) throws
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
110 | }
111 |
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:218:43: error: cannot find type 'URLRequest' in scope
216 | }
217 |
218 | private func performRequest(_ request: URLRequest, errorContext: String?) async throws(APIError) -> (Data, URLResponse) {
| `- error: cannot find type 'URLRequest' in scope
219 | self.logRequestIfDebug(request)
220 |
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:218:111: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
216 | }
217 |
218 | 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.
219 | self.logRequestIfDebug(request)
220 |
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:233:72: error: cannot find type 'URLRequest' in scope
231 | }
232 |
233 | private func handle(data: Data, response: URLResponse, for request: URLRequest, errorContext: String?, attempt: Int = 1) async throws(APIError) -> Data {
| `- error: cannot find type 'URLRequest' in scope
234 | guard var httpResponse = response as? HTTPURLResponse else {
235 | throw .unexpectedResponseType(response, self.errorContext(requestContext: errorContext))
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:233:46: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
231 | }
232 |
233 | private func handle(data: Data, response: URLResponse, for request: URLRequest, errorContext: String?, attempt: Int = 1) async throws(APIError) -> Data {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
234 | guard var httpResponse = response as? HTTPURLResponse else {
235 | throw .unexpectedResponseType(response, self.errorContext(requestContext: errorContext))
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:296:46: error: cannot find type 'URLRequest' in scope
294 | }
295 |
296 | private func logRequestIfDebug(_ request: URLRequest) {
| `- error: cannot find type 'URLRequest' in scope
297 | #if DEBUG
298 | var requestBodyString: String?
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:307:48: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
305 | }
306 |
307 | private func logResponseIfDebug(_ response: URLResponse, data: Data?) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
308 | #if DEBUG
309 | var responseBodyString: String?
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:185:21: error: cannot find 'URLRequest' in scope
183 | .appending(queryItems: self.baseQueryItems + extraQueryItems)
184 |
185 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
186 | request.httpMethod = method.rawValue
187 |
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:222:21: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
220 |
221 | let data: Data
222 | let response: URLResponse
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
223 | do {
224 | (data, response) = try await URLSession.shared.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:224:50: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
222 | let response: URLResponse
223 | do {
224 | (data, response) = try await URLSession.shared.data(for: request)
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
225 | } catch {
226 | throw APIError.failedToLoadData(error, self.errorContext(requestContext: errorContext))
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:234:45: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
232 |
233 | private func handle(data: Data, response: URLResponse, for request: URLRequest, errorContext: String?, attempt: Int = 1) async throws(APIError) -> Data {
234 | 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.
235 | throw .unexpectedResponseType(response, self.errorContext(requestContext: errorContext))
236 | }
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:247:27: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
245 | }
246 |
247 | switch httpResponse.statusCode {
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
248 | case 200..<300:
249 | return data
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:258:61: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
256 | // respect the server retry-after(-ms) value if it exists, allowing values betwen 0.5-5 seconds
257 | if
258 | let retryAfterMillisecondsString = httpResponse.value(forHTTPHeaderField: "retry-after-ms"),
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
259 | let retryAfterMilliseconds = Double(retryAfterMillisecondsString)
260 | {
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:263:49: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
261 | sleepSeconds = max(0.5, min(retryAfterMilliseconds, 5))
262 | } else if
263 | let retryAfterString = httpResponse.value(forHTTPHeaderField: "retry-after"),
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
264 | let retryAfter = Double(retryAfterString)
265 | {
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:280:71: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
278 | case 400..<500:
279 | guard !data.isEmpty else {
280 | throw .clientError("Unexpected status code \(httpResponse.statusCode) without a response body.", self.errorContext(requestContext: errorContext))
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
281 | }
282 |
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:292:51: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
290 |
291 | default:
292 | throw .unexpectedStatusCode(httpResponse.statusCode, self.errorContext(requestContext: errorContext))
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
293 | }
294 | }
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:314:66: error: value of type 'URLResponse' (aka 'AnyObject') has no member 'url'
312 | }
313 |
314 | print("[\(self)] Received response & body from '\(response.url!)': \(response)\n\nResponse headers:\n\((response as? HTTPURLResponse)?.allHeaderFields ?? [:])\n\nResponse body:\n\(responseBodyString ?? "No body")")
| `- error: value of type 'URLResponse' (aka 'AnyObject') has no member 'url'
315 | #endif
316 | }
[9/37] Compiling HandySwift Debouncer.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[10/37] Compiling HandySwift FrequencyTable.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[11/37] Compiling HandySwift GregorianDay.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[12/37] Compiling HandySwift GregorianTime.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[13/37] Compiling HandySwift DurationExt.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[14/37] Compiling HandySwift FloatExt.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[15/37] Compiling HandySwift IntExt.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[16/37] Compiling HandySwift JSONDecoderExt.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[17/37] Compiling HandySwift StringExt.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[18/37] Compiling HandySwift StringProtocolExt.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[19/37] Compiling HandySwift SymmetricKeyExt.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[20/37] Compiling HandySwift TimeIntervalExt.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[21/37] Compiling HandySwift JSONEncoderExt.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[22/37] Compiling HandySwift NSRangeExt.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[23/37] Compiling HandySwift RandomAccessCollectionExt.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[24/37] Compiling HandySwift SequenceExt.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[25/37] Compiling HandySwift DateExt.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
/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),
[26/37] Compiling HandySwift DictionaryExt.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
/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),
[27/37] Compiling HandySwift DispatchTimeIntervalExt.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
/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),
[28/37] Compiling HandySwift DoubleExt.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
/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),
[29/37] Compiling HandySwift Globals.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
/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 |
[30/37] Compiling HandySwift AutoConforming.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
/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 |
[31/37] Compiling HandySwift DivisibleArithmetic.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
/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 |
[32/37] Compiling HandySwift Withable.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
/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 |
[33/37] Compiling HandySwift ArrayExt.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[34/37] Compiling HandySwift CaseIterableExt.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[35/37] Compiling HandySwift CollectionExt.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[36/37] Compiling HandySwift ComparableExt.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[37/37] Compiling HandySwift DataExt.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-0":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1
wasm-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:7e37457820e5f17452a98118754f345f2619722c485f2db0d8b666940a83afd2
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest
[0/1] Planning build
Building for debugging...
[0/1] Write swift-version-24593BA9C3E375BF.txt
[2/31] Compiling HandySwift Globals.swift
/host/spi-builder-workspace/.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 |
[3/31] 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 |
[4/31] 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 |
[5/31] 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 |
error: emit-module command failed with exit code 1 (use -v to see invocation)
[6/35] 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/RESTClient.swift:18:35: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
16 | case failedToDecodeClientErrorBody(Error, Context?)
17 | case clientError(String, Context?)
18 | case unexpectedResponseType(URLResponse, Context?)
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
19 | case unexpectedStatusCode(Int, Context?)
20 |
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:18:12: error: associated value 'unexpectedResponseType' of 'Sendable'-conforming enum 'APIError' has non-sendable type 'URLResponse' (aka 'AnyObject')
16 | case failedToDecodeClientErrorBody(Error, Context?)
17 | case clientError(String, Context?)
18 | case unexpectedResponseType(URLResponse, Context?)
| `- error: associated value 'unexpectedResponseType' of 'Sendable'-conforming enum 'APIError' has non-sendable type 'URLResponse' (aka 'AnyObject')
19 | case unexpectedStatusCode(Int, Context?)
20 |
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:105:36: error: cannot find type 'URLRequest' in scope
103 |
104 | public protocol RequestPlugin: Sendable {
105 | func apply(to request: inout URLRequest)
| `- error: cannot find type 'URLRequest' in scope
106 | }
107 |
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:109:37: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
107 |
108 | public protocol ResponsePlugin: Sendable {
109 | func apply(to response: inout HTTPURLResponse, data: inout Data) throws
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
110 | }
111 |
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:218:43: error: cannot find type 'URLRequest' in scope
216 | }
217 |
218 | private func performRequest(_ request: URLRequest, errorContext: String?) async throws(APIError) -> (Data, URLResponse) {
| `- error: cannot find type 'URLRequest' in scope
219 | self.logRequestIfDebug(request)
220 |
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:218:111: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
216 | }
217 |
218 | 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.
219 | self.logRequestIfDebug(request)
220 |
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:233:72: error: cannot find type 'URLRequest' in scope
231 | }
232 |
233 | private func handle(data: Data, response: URLResponse, for request: URLRequest, errorContext: String?, attempt: Int = 1) async throws(APIError) -> Data {
| `- error: cannot find type 'URLRequest' in scope
234 | guard var httpResponse = response as? HTTPURLResponse else {
235 | throw .unexpectedResponseType(response, self.errorContext(requestContext: errorContext))
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:233:46: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
231 | }
232 |
233 | private func handle(data: Data, response: URLResponse, for request: URLRequest, errorContext: String?, attempt: Int = 1) async throws(APIError) -> Data {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
234 | guard var httpResponse = response as? HTTPURLResponse else {
235 | throw .unexpectedResponseType(response, self.errorContext(requestContext: errorContext))
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:296:46: error: cannot find type 'URLRequest' in scope
294 | }
295 |
296 | private func logRequestIfDebug(_ request: URLRequest) {
| `- error: cannot find type 'URLRequest' in scope
297 | #if DEBUG
298 | var requestBodyString: String?
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:307:48: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
305 | }
306 |
307 | private func logResponseIfDebug(_ response: URLResponse, data: Data?) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
308 | #if DEBUG
309 | var responseBodyString: String?
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
[7/35] Compiling HandySwift StringExt.swift
[8/35] Compiling HandySwift StringProtocolExt.swift
[9/35] Compiling HandySwift SymmetricKeyExt.swift
[10/35] Compiling HandySwift TimeIntervalExt.swift
[11/35] Compiling HandySwift ArrayExt.swift
[12/35] Compiling HandySwift CaseIterableExt.swift
[13/35] Compiling HandySwift CollectionExt.swift
[14/35] Compiling HandySwift ComparableExt.swift
[15/35] Compiling HandySwift DataExt.swift
[16/35] Compiling HandySwift DurationExt.swift
[17/35] Compiling HandySwift FloatExt.swift
[18/35] Compiling HandySwift IntExt.swift
[19/35] Compiling HandySwift JSONDecoderExt.swift
[20/35] 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),
[21/35] 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),
[22/35] 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),
[23/35] 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),
[24/35] Compiling HandySwift JSONEncoderExt.swift
[25/35] Compiling HandySwift NSRangeExt.swift
[26/35] Compiling HandySwift RandomAccessCollectionExt.swift
[27/35] Compiling HandySwift SequenceExt.swift
[28/35] Compiling HandySwift Debouncer.swift
[29/35] Compiling HandySwift FrequencyTable.swift
[30/35] Compiling HandySwift GregorianDay.swift
[31/35] Compiling HandySwift GregorianTime.swift
[32/35] Compiling HandySwift HandyRegex.swift
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:18:35: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
16 | case failedToDecodeClientErrorBody(Error, Context?)
17 | case clientError(String, Context?)
18 | case unexpectedResponseType(URLResponse, Context?)
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
19 | case unexpectedStatusCode(Int, Context?)
20 |
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:18:12: error: associated value 'unexpectedResponseType' of 'Sendable'-conforming enum 'APIError' has non-sendable type 'URLResponse' (aka 'AnyObject')
16 | case failedToDecodeClientErrorBody(Error, Context?)
17 | case clientError(String, Context?)
18 | case unexpectedResponseType(URLResponse, Context?)
| `- error: associated value 'unexpectedResponseType' of 'Sendable'-conforming enum 'APIError' has non-sendable type 'URLResponse' (aka 'AnyObject')
19 | case unexpectedStatusCode(Int, Context?)
20 |
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:105:36: error: cannot find type 'URLRequest' in scope
103 |
104 | public protocol RequestPlugin: Sendable {
105 | func apply(to request: inout URLRequest)
| `- error: cannot find type 'URLRequest' in scope
106 | }
107 |
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:109:37: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
107 |
108 | public protocol ResponsePlugin: Sendable {
109 | func apply(to response: inout HTTPURLResponse, data: inout Data) throws
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
110 | }
111 |
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:218:43: error: cannot find type 'URLRequest' in scope
216 | }
217 |
218 | private func performRequest(_ request: URLRequest, errorContext: String?) async throws(APIError) -> (Data, URLResponse) {
| `- error: cannot find type 'URLRequest' in scope
219 | self.logRequestIfDebug(request)
220 |
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:218:111: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
216 | }
217 |
218 | 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.
219 | self.logRequestIfDebug(request)
220 |
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:233:72: error: cannot find type 'URLRequest' in scope
231 | }
232 |
233 | private func handle(data: Data, response: URLResponse, for request: URLRequest, errorContext: String?, attempt: Int = 1) async throws(APIError) -> Data {
| `- error: cannot find type 'URLRequest' in scope
234 | guard var httpResponse = response as? HTTPURLResponse else {
235 | throw .unexpectedResponseType(response, self.errorContext(requestContext: errorContext))
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:233:46: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
231 | }
232 |
233 | private func handle(data: Data, response: URLResponse, for request: URLRequest, errorContext: String?, attempt: Int = 1) async throws(APIError) -> Data {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
234 | guard var httpResponse = response as? HTTPURLResponse else {
235 | throw .unexpectedResponseType(response, self.errorContext(requestContext: errorContext))
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:296:46: error: cannot find type 'URLRequest' in scope
294 | }
295 |
296 | private func logRequestIfDebug(_ request: URLRequest) {
| `- error: cannot find type 'URLRequest' in scope
297 | #if DEBUG
298 | var requestBodyString: String?
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:307:48: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
305 | }
306 |
307 | private func logResponseIfDebug(_ response: URLResponse, data: Data?) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
308 | #if DEBUG
309 | var responseBodyString: String?
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:185:21: error: cannot find 'URLRequest' in scope
183 | .appending(queryItems: self.baseQueryItems + extraQueryItems)
184 |
185 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
186 | request.httpMethod = method.rawValue
187 |
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:222:21: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
220 |
221 | let data: Data
222 | let response: URLResponse
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
223 | do {
224 | (data, response) = try await URLSession.shared.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:224:50: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
222 | let response: URLResponse
223 | do {
224 | (data, response) = try await URLSession.shared.data(for: request)
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
225 | } catch {
226 | throw APIError.failedToLoadData(error, self.errorContext(requestContext: errorContext))
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:234:45: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
232 |
233 | private func handle(data: Data, response: URLResponse, for request: URLRequest, errorContext: String?, attempt: Int = 1) async throws(APIError) -> Data {
234 | 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.
235 | throw .unexpectedResponseType(response, self.errorContext(requestContext: errorContext))
236 | }
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:247:27: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
245 | }
246 |
247 | switch httpResponse.statusCode {
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
248 | case 200..<300:
249 | return data
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:258:61: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
256 | // respect the server retry-after(-ms) value if it exists, allowing values betwen 0.5-5 seconds
257 | if
258 | let retryAfterMillisecondsString = httpResponse.value(forHTTPHeaderField: "retry-after-ms"),
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
259 | let retryAfterMilliseconds = Double(retryAfterMillisecondsString)
260 | {
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:263:49: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
261 | sleepSeconds = max(0.5, min(retryAfterMilliseconds, 5))
262 | } else if
263 | let retryAfterString = httpResponse.value(forHTTPHeaderField: "retry-after"),
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
264 | let retryAfter = Double(retryAfterString)
265 | {
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:280:71: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
278 | case 400..<500:
279 | guard !data.isEmpty else {
280 | throw .clientError("Unexpected status code \(httpResponse.statusCode) without a response body.", self.errorContext(requestContext: errorContext))
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
281 | }
282 |
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:292:51: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
290 |
291 | default:
292 | throw .unexpectedStatusCode(httpResponse.statusCode, self.errorContext(requestContext: errorContext))
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
293 | }
294 | }
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:314:66: error: value of type 'URLResponse' (aka 'AnyObject') has no member 'url'
312 | }
313 |
314 | print("[\(self)] Received response & body from '\(response.url!)': \(response)\n\nResponse headers:\n\((response as? HTTPURLResponse)?.allHeaderFields ?? [:])\n\nResponse body:\n\(responseBodyString ?? "No body")")
| `- error: value of type 'URLResponse' (aka 'AnyObject') has no member 'url'
315 | #endif
316 | }
[33/35] Compiling HandySwift OperatingSystem.swift
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:18:35: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
16 | case failedToDecodeClientErrorBody(Error, Context?)
17 | case clientError(String, Context?)
18 | case unexpectedResponseType(URLResponse, Context?)
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
19 | case unexpectedStatusCode(Int, Context?)
20 |
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:18:12: error: associated value 'unexpectedResponseType' of 'Sendable'-conforming enum 'APIError' has non-sendable type 'URLResponse' (aka 'AnyObject')
16 | case failedToDecodeClientErrorBody(Error, Context?)
17 | case clientError(String, Context?)
18 | case unexpectedResponseType(URLResponse, Context?)
| `- error: associated value 'unexpectedResponseType' of 'Sendable'-conforming enum 'APIError' has non-sendable type 'URLResponse' (aka 'AnyObject')
19 | case unexpectedStatusCode(Int, Context?)
20 |
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:105:36: error: cannot find type 'URLRequest' in scope
103 |
104 | public protocol RequestPlugin: Sendable {
105 | func apply(to request: inout URLRequest)
| `- error: cannot find type 'URLRequest' in scope
106 | }
107 |
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:109:37: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
107 |
108 | public protocol ResponsePlugin: Sendable {
109 | func apply(to response: inout HTTPURLResponse, data: inout Data) throws
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
110 | }
111 |
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:218:43: error: cannot find type 'URLRequest' in scope
216 | }
217 |
218 | private func performRequest(_ request: URLRequest, errorContext: String?) async throws(APIError) -> (Data, URLResponse) {
| `- error: cannot find type 'URLRequest' in scope
219 | self.logRequestIfDebug(request)
220 |
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:218:111: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
216 | }
217 |
218 | 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.
219 | self.logRequestIfDebug(request)
220 |
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:233:72: error: cannot find type 'URLRequest' in scope
231 | }
232 |
233 | private func handle(data: Data, response: URLResponse, for request: URLRequest, errorContext: String?, attempt: Int = 1) async throws(APIError) -> Data {
| `- error: cannot find type 'URLRequest' in scope
234 | guard var httpResponse = response as? HTTPURLResponse else {
235 | throw .unexpectedResponseType(response, self.errorContext(requestContext: errorContext))
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:233:46: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
231 | }
232 |
233 | private func handle(data: Data, response: URLResponse, for request: URLRequest, errorContext: String?, attempt: Int = 1) async throws(APIError) -> Data {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
234 | guard var httpResponse = response as? HTTPURLResponse else {
235 | throw .unexpectedResponseType(response, self.errorContext(requestContext: errorContext))
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:296:46: error: cannot find type 'URLRequest' in scope
294 | }
295 |
296 | private func logRequestIfDebug(_ request: URLRequest) {
| `- error: cannot find type 'URLRequest' in scope
297 | #if DEBUG
298 | var requestBodyString: String?
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:307:48: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
305 | }
306 |
307 | private func logResponseIfDebug(_ response: URLResponse, data: Data?) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
308 | #if DEBUG
309 | var responseBodyString: String?
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:185:21: error: cannot find 'URLRequest' in scope
183 | .appending(queryItems: self.baseQueryItems + extraQueryItems)
184 |
185 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
186 | request.httpMethod = method.rawValue
187 |
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:222:21: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
220 |
221 | let data: Data
222 | let response: URLResponse
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
223 | do {
224 | (data, response) = try await URLSession.shared.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:224:50: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
222 | let response: URLResponse
223 | do {
224 | (data, response) = try await URLSession.shared.data(for: request)
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
225 | } catch {
226 | throw APIError.failedToLoadData(error, self.errorContext(requestContext: errorContext))
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:234:45: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
232 |
233 | private func handle(data: Data, response: URLResponse, for request: URLRequest, errorContext: String?, attempt: Int = 1) async throws(APIError) -> Data {
234 | 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.
235 | throw .unexpectedResponseType(response, self.errorContext(requestContext: errorContext))
236 | }
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:247:27: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
245 | }
246 |
247 | switch httpResponse.statusCode {
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
248 | case 200..<300:
249 | return data
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:258:61: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
256 | // respect the server retry-after(-ms) value if it exists, allowing values betwen 0.5-5 seconds
257 | if
258 | let retryAfterMillisecondsString = httpResponse.value(forHTTPHeaderField: "retry-after-ms"),
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
259 | let retryAfterMilliseconds = Double(retryAfterMillisecondsString)
260 | {
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:263:49: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
261 | sleepSeconds = max(0.5, min(retryAfterMilliseconds, 5))
262 | } else if
263 | let retryAfterString = httpResponse.value(forHTTPHeaderField: "retry-after"),
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
264 | let retryAfter = Double(retryAfterString)
265 | {
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:280:71: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
278 | case 400..<500:
279 | guard !data.isEmpty else {
280 | throw .clientError("Unexpected status code \(httpResponse.statusCode) without a response body.", self.errorContext(requestContext: errorContext))
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
281 | }
282 |
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:292:51: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
290 |
291 | default:
292 | throw .unexpectedStatusCode(httpResponse.statusCode, self.errorContext(requestContext: errorContext))
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
293 | }
294 | }
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:314:66: error: value of type 'URLResponse' (aka 'AnyObject') has no member 'url'
312 | }
313 |
314 | print("[\(self)] Received response & body from '\(response.url!)': \(response)\n\nResponse headers:\n\((response as? HTTPURLResponse)?.allHeaderFields ?? [:])\n\nResponse body:\n\(responseBodyString ?? "No body")")
| `- error: value of type 'URLResponse' (aka 'AnyObject') has no member 'url'
315 | #endif
316 | }
[34/35] Compiling HandySwift RESTClient.swift
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:18:35: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
16 | case failedToDecodeClientErrorBody(Error, Context?)
17 | case clientError(String, Context?)
18 | case unexpectedResponseType(URLResponse, Context?)
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
19 | case unexpectedStatusCode(Int, Context?)
20 |
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:18:12: error: associated value 'unexpectedResponseType' of 'Sendable'-conforming enum 'APIError' has non-sendable type 'URLResponse' (aka 'AnyObject')
16 | case failedToDecodeClientErrorBody(Error, Context?)
17 | case clientError(String, Context?)
18 | case unexpectedResponseType(URLResponse, Context?)
| `- error: associated value 'unexpectedResponseType' of 'Sendable'-conforming enum 'APIError' has non-sendable type 'URLResponse' (aka 'AnyObject')
19 | case unexpectedStatusCode(Int, Context?)
20 |
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:105:36: error: cannot find type 'URLRequest' in scope
103 |
104 | public protocol RequestPlugin: Sendable {
105 | func apply(to request: inout URLRequest)
| `- error: cannot find type 'URLRequest' in scope
106 | }
107 |
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:109:37: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
107 |
108 | public protocol ResponsePlugin: Sendable {
109 | func apply(to response: inout HTTPURLResponse, data: inout Data) throws
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
110 | }
111 |
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:218:43: error: cannot find type 'URLRequest' in scope
216 | }
217 |
218 | private func performRequest(_ request: URLRequest, errorContext: String?) async throws(APIError) -> (Data, URLResponse) {
| `- error: cannot find type 'URLRequest' in scope
219 | self.logRequestIfDebug(request)
220 |
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:218:111: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
216 | }
217 |
218 | 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.
219 | self.logRequestIfDebug(request)
220 |
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:233:72: error: cannot find type 'URLRequest' in scope
231 | }
232 |
233 | private func handle(data: Data, response: URLResponse, for request: URLRequest, errorContext: String?, attempt: Int = 1) async throws(APIError) -> Data {
| `- error: cannot find type 'URLRequest' in scope
234 | guard var httpResponse = response as? HTTPURLResponse else {
235 | throw .unexpectedResponseType(response, self.errorContext(requestContext: errorContext))
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:233:46: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
231 | }
232 |
233 | private func handle(data: Data, response: URLResponse, for request: URLRequest, errorContext: String?, attempt: Int = 1) async throws(APIError) -> Data {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
234 | guard var httpResponse = response as? HTTPURLResponse else {
235 | throw .unexpectedResponseType(response, self.errorContext(requestContext: errorContext))
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:296:46: error: cannot find type 'URLRequest' in scope
294 | }
295 |
296 | private func logRequestIfDebug(_ request: URLRequest) {
| `- error: cannot find type 'URLRequest' in scope
297 | #if DEBUG
298 | var requestBodyString: String?
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:307:48: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
305 | }
306 |
307 | private func logResponseIfDebug(_ response: URLResponse, data: Data?) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
308 | #if DEBUG
309 | var responseBodyString: String?
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:185:21: error: cannot find 'URLRequest' in scope
183 | .appending(queryItems: self.baseQueryItems + extraQueryItems)
184 |
185 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
186 | request.httpMethod = method.rawValue
187 |
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:222:21: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
220 |
221 | let data: Data
222 | let response: URLResponse
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
223 | do {
224 | (data, response) = try await URLSession.shared.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:224:50: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
222 | let response: URLResponse
223 | do {
224 | (data, response) = try await URLSession.shared.data(for: request)
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
225 | } catch {
226 | throw APIError.failedToLoadData(error, self.errorContext(requestContext: errorContext))
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:234:45: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
232 |
233 | private func handle(data: Data, response: URLResponse, for request: URLRequest, errorContext: String?, attempt: Int = 1) async throws(APIError) -> Data {
234 | 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.
235 | throw .unexpectedResponseType(response, self.errorContext(requestContext: errorContext))
236 | }
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:247:27: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
245 | }
246 |
247 | switch httpResponse.statusCode {
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
248 | case 200..<300:
249 | return data
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:258:61: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
256 | // respect the server retry-after(-ms) value if it exists, allowing values betwen 0.5-5 seconds
257 | if
258 | let retryAfterMillisecondsString = httpResponse.value(forHTTPHeaderField: "retry-after-ms"),
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
259 | let retryAfterMilliseconds = Double(retryAfterMillisecondsString)
260 | {
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:263:49: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
261 | sleepSeconds = max(0.5, min(retryAfterMilliseconds, 5))
262 | } else if
263 | let retryAfterString = httpResponse.value(forHTTPHeaderField: "retry-after"),
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
264 | let retryAfter = Double(retryAfterString)
265 | {
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:280:71: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
278 | case 400..<500:
279 | guard !data.isEmpty else {
280 | throw .clientError("Unexpected status code \(httpResponse.statusCode) without a response body.", self.errorContext(requestContext: errorContext))
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
281 | }
282 |
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:292:51: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
290 |
291 | default:
292 | throw .unexpectedStatusCode(httpResponse.statusCode, self.errorContext(requestContext: errorContext))
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
293 | }
294 | }
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:314:66: error: value of type 'URLResponse' (aka 'AnyObject') has no member 'url'
312 | }
313 |
314 | print("[\(self)] Received response & body from '\(response.url!)': \(response)\n\nResponse headers:\n\((response as? HTTPURLResponse)?.allHeaderFields ?? [:])\n\nResponse body:\n\(responseBodyString ?? "No body")")
| `- error: value of type 'URLResponse' (aka 'AnyObject') has no member 'url'
315 | #endif
316 | }
[35/35] Compiling HandySwift SortedArray.swift
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:18:35: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
16 | case failedToDecodeClientErrorBody(Error, Context?)
17 | case clientError(String, Context?)
18 | case unexpectedResponseType(URLResponse, Context?)
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
19 | case unexpectedStatusCode(Int, Context?)
20 |
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:18:12: error: associated value 'unexpectedResponseType' of 'Sendable'-conforming enum 'APIError' has non-sendable type 'URLResponse' (aka 'AnyObject')
16 | case failedToDecodeClientErrorBody(Error, Context?)
17 | case clientError(String, Context?)
18 | case unexpectedResponseType(URLResponse, Context?)
| `- error: associated value 'unexpectedResponseType' of 'Sendable'-conforming enum 'APIError' has non-sendable type 'URLResponse' (aka 'AnyObject')
19 | case unexpectedStatusCode(Int, Context?)
20 |
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:105:36: error: cannot find type 'URLRequest' in scope
103 |
104 | public protocol RequestPlugin: Sendable {
105 | func apply(to request: inout URLRequest)
| `- error: cannot find type 'URLRequest' in scope
106 | }
107 |
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:109:37: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
107 |
108 | public protocol ResponsePlugin: Sendable {
109 | func apply(to response: inout HTTPURLResponse, data: inout Data) throws
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
110 | }
111 |
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:218:43: error: cannot find type 'URLRequest' in scope
216 | }
217 |
218 | private func performRequest(_ request: URLRequest, errorContext: String?) async throws(APIError) -> (Data, URLResponse) {
| `- error: cannot find type 'URLRequest' in scope
219 | self.logRequestIfDebug(request)
220 |
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:218:111: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
216 | }
217 |
218 | 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.
219 | self.logRequestIfDebug(request)
220 |
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:233:72: error: cannot find type 'URLRequest' in scope
231 | }
232 |
233 | private func handle(data: Data, response: URLResponse, for request: URLRequest, errorContext: String?, attempt: Int = 1) async throws(APIError) -> Data {
| `- error: cannot find type 'URLRequest' in scope
234 | guard var httpResponse = response as? HTTPURLResponse else {
235 | throw .unexpectedResponseType(response, self.errorContext(requestContext: errorContext))
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:233:46: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
231 | }
232 |
233 | private func handle(data: Data, response: URLResponse, for request: URLRequest, errorContext: String?, attempt: Int = 1) async throws(APIError) -> Data {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
234 | guard var httpResponse = response as? HTTPURLResponse else {
235 | throw .unexpectedResponseType(response, self.errorContext(requestContext: errorContext))
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:296:46: error: cannot find type 'URLRequest' in scope
294 | }
295 |
296 | private func logRequestIfDebug(_ request: URLRequest) {
| `- error: cannot find type 'URLRequest' in scope
297 | #if DEBUG
298 | var requestBodyString: String?
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:307:48: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
305 | }
306 |
307 | private func logResponseIfDebug(_ response: URLResponse, data: Data?) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
308 | #if DEBUG
309 | var responseBodyString: String?
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:185:21: error: cannot find 'URLRequest' in scope
183 | .appending(queryItems: self.baseQueryItems + extraQueryItems)
184 |
185 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
186 | request.httpMethod = method.rawValue
187 |
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:222:21: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
220 |
221 | let data: Data
222 | let response: URLResponse
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
223 | do {
224 | (data, response) = try await URLSession.shared.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:224:50: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
222 | let response: URLResponse
223 | do {
224 | (data, response) = try await URLSession.shared.data(for: request)
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
225 | } catch {
226 | throw APIError.failedToLoadData(error, self.errorContext(requestContext: errorContext))
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:234:45: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
232 |
233 | private func handle(data: Data, response: URLResponse, for request: URLRequest, errorContext: String?, attempt: Int = 1) async throws(APIError) -> Data {
234 | 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.
235 | throw .unexpectedResponseType(response, self.errorContext(requestContext: errorContext))
236 | }
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:247:27: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
245 | }
246 |
247 | switch httpResponse.statusCode {
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
248 | case 200..<300:
249 | return data
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:258:61: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
256 | // respect the server retry-after(-ms) value if it exists, allowing values betwen 0.5-5 seconds
257 | if
258 | let retryAfterMillisecondsString = httpResponse.value(forHTTPHeaderField: "retry-after-ms"),
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
259 | let retryAfterMilliseconds = Double(retryAfterMillisecondsString)
260 | {
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:263:49: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
261 | sleepSeconds = max(0.5, min(retryAfterMilliseconds, 5))
262 | } else if
263 | let retryAfterString = httpResponse.value(forHTTPHeaderField: "retry-after"),
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
264 | let retryAfter = Double(retryAfterString)
265 | {
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:280:71: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
278 | case 400..<500:
279 | guard !data.isEmpty else {
280 | throw .clientError("Unexpected status code \(httpResponse.statusCode) without a response body.", self.errorContext(requestContext: errorContext))
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
281 | }
282 |
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:292:51: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
290 |
291 | default:
292 | throw .unexpectedStatusCode(httpResponse.statusCode, self.errorContext(requestContext: errorContext))
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
293 | }
294 | }
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Types/RESTClient.swift:314:66: error: value of type 'URLResponse' (aka 'AnyObject') has no member 'url'
312 | }
313 |
314 | print("[\(self)] Received response & body from '\(response.url!)': \(response)\n\nResponse headers:\n\((response as? HTTPURLResponse)?.allHeaderFields ?? [:])\n\nResponse body:\n\(responseBodyString ?? "No body")")
| `- error: value of type 'URLResponse' (aka 'AnyObject') has no member 'url'
315 | #endif
316 | }
BUILD FAILURE 6.1 wasm