Build Information
Failed to build HTTP Client, reference main (89a069), with Swift 6.1 for Wasm on 30 May 2025 05:10:01 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4606859-2":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1Build Log
========================================
RunAll
========================================
Builder version: 4.63.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/joemasilotti/HTTP-Client.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/joemasilotti/HTTP-Client
* branch main -> FETCH_HEAD
* [new branch] main -> origin/main
HEAD is now at 89a0698 Update README.md
Cloned https://github.com/joemasilotti/HTTP-Client.git
Revision (git rev-parse @):
89a0698e2db9efd95c0299adfba53bd8a2a7e3f3
SUCCESS checkout https://github.com/joemasilotti/HTTP-Client.git at main
========================================
Build
========================================
Selected platform: wasm
Swift version: 6.1
Building package at path: $PWD
https://github.com/joemasilotti/HTTP-Client.git
https://github.com/joemasilotti/HTTP-Client.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
"dependencies" : [
],
"manifest_display_name" : "HTTP Client",
"name" : "HTTP Client",
"path" : "/host/spi-builder-workspace",
"platforms" : [
{
"name" : "macos",
"version" : "10.15"
},
{
"name" : "ios",
"version" : "14.0"
}
],
"products" : [
{
"name" : "HTTP",
"targets" : [
"HTTP"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "HTTPTests",
"module_type" : "SwiftTarget",
"name" : "HTTPTests",
"path" : "Tests/HTTPTests",
"sources" : [
"BodyRequestTests.swift",
"ClientTests.swift",
"GlobalTests.swift",
"RequestTests.swift",
"Support/Extensions/Foundation/JSONDecoder.swift",
"Support/Extensions/Foundation/JSONEncoder.swift",
"Support/Fakes/FakeRequestLoader.swift",
"Support/Fixtures.swift",
"Support/Helpers/READMEHelper.swift",
"Support/Helpers/ResultHelpers.swift",
"Support/Helpers/URLHelper.swift",
"XCTestManifests.swift"
],
"target_dependencies" : [
"HTTP"
],
"type" : "test"
},
{
"c99name" : "HTTP",
"module_type" : "SwiftTarget",
"name" : "HTTP",
"path" : "Sources/HTTP",
"product_memberships" : [
"HTTP"
],
"sources" : [
"BodyRequest.swift",
"Client.swift",
"Empty.swift",
"Global.swift",
"HTTPError.swift",
"Method.swift",
"Request.swift",
"RequestLoader.swift",
"Response.swift"
],
"type" : "library"
}
],
"tools_version" : "5.3"
}
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-2":/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
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-24593BA9C3E375BF.txt
[3/11] Compiling HTTP Method.swift
[4/12] Compiling HTTP HTTPError.swift
[5/12] Compiling HTTP Empty.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[6/12] Emitting module HTTP
/host/spi-builder-workspace/Sources/HTTP/BodyRequest.swift:11:49: error: cannot find type 'URLRequest' in scope
9 | // MARK: Internal
10 |
11 | override func addToRequest(_ request: inout URLRequest) {
| `- error: cannot find type 'URLRequest' in scope
12 | let encoder = JSONEncoder()
13 | encoder.keyEncodingStrategy = Global.keyEncodingStrategy
/host/spi-builder-workspace/Sources/HTTP/RequestLoader.swift:4:26: error: cannot find type 'URLRequest' in scope
2 |
3 | public protocol RequestLoader {
4 | func load(_ request: URLRequest) async throws -> (Data, URLResponse)
| `- error: cannot find type 'URLRequest' in scope
5 | }
6 |
/host/spi-builder-workspace/Sources/HTTP/Client.swift:17:36: error: cannot find type 'URLRequest' in scope
15 |
16 | @MainActor
17 | public func request(_ request: URLRequest) async -> ClientResult<T, E> {
| `- error: cannot find type 'URLRequest' in scope
18 | do {
19 | let (data, response) = try await requestLoader.load(request)
/host/spi-builder-workspace/Sources/HTTP/Client.swift:30:45: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
28 | private let requestLoader: RequestLoader
29 |
30 | private func handleResponse(_ response: URLResponse, with data: Data) -> ClientResult<T, E> {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
31 | guard let response = response as? HTTPURLResponse
32 | else { return .failure(.failedRequest(nil)) }
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/HTTP/Global.swift:4:23: warning: static property 'keyDecodingStrategy' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
2 |
3 | public enum Global {
4 | public static var keyDecodingStrategy: JSONDecoder.KeyDecodingStrategy = .convertFromSnakeCase
| |- warning: static property 'keyDecodingStrategy' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'keyDecodingStrategy' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'keyDecodingStrategy' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
5 | public static var keyEncodingStrategy: JSONEncoder.KeyEncodingStrategy = .convertToSnakeCase
6 | public static var userAgent: String?
/host/spi-builder-workspace/Sources/HTTP/Global.swift:5:23: warning: static property 'keyEncodingStrategy' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
3 | public enum Global {
4 | public static var keyDecodingStrategy: JSONDecoder.KeyDecodingStrategy = .convertFromSnakeCase
5 | public static var keyEncodingStrategy: JSONEncoder.KeyEncodingStrategy = .convertToSnakeCase
| |- warning: static property 'keyEncodingStrategy' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'keyEncodingStrategy' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'keyEncodingStrategy' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
6 | public static var userAgent: String?
7 | public static var requestLoader: RequestLoader = URLSession.shared
/host/spi-builder-workspace/Sources/HTTP/Global.swift:6:23: warning: static property 'userAgent' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
4 | public static var keyDecodingStrategy: JSONDecoder.KeyDecodingStrategy = .convertFromSnakeCase
5 | public static var keyEncodingStrategy: JSONEncoder.KeyEncodingStrategy = .convertToSnakeCase
6 | public static var userAgent: String?
| |- warning: static property 'userAgent' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'userAgent' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'userAgent' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
7 | public static var requestLoader: RequestLoader = URLSession.shared
8 |
/host/spi-builder-workspace/Sources/HTTP/Global.swift:7:23: warning: static property 'requestLoader' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
5 | public static var keyEncodingStrategy: JSONEncoder.KeyEncodingStrategy = .convertToSnakeCase
6 | public static var userAgent: String?
7 | public static var requestLoader: RequestLoader = URLSession.shared
| |- warning: static property 'requestLoader' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'requestLoader' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'requestLoader' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
8 |
9 | static func resetToDefaults() {
/host/spi-builder-workspace/Sources/HTTP/Global.swift:7:65: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
5 | public static var keyEncodingStrategy: JSONEncoder.KeyEncodingStrategy = .convertToSnakeCase
6 | public static var userAgent: String?
7 | public static var requestLoader: RequestLoader = URLSession.shared
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
8 |
9 | static func resetToDefaults() {
/host/spi-builder-workspace/Sources/HTTP/Request.swift:19:23: error: cannot find type 'URLRequest' in scope
17 | // MARK: Internal
18 |
19 | var asURLRequest: URLRequest {
| `- error: cannot find type 'URLRequest' in scope
20 | var request = URLRequest(url: url)
21 | request.httpMethod = method.rawValue
/host/spi-builder-workspace/Sources/HTTP/Request.swift:27:40: error: cannot find type 'URLRequest' in scope
25 | }
26 |
27 | func addToRequest(_ request: inout URLRequest) {}
| `- error: cannot find type 'URLRequest' in scope
28 |
29 | // MARK: Private
/host/spi-builder-workspace/Sources/HTTP/RequestLoader.swift:4:61: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
2 |
3 | public protocol RequestLoader {
4 | func load(_ request: URLRequest) async throws -> (Data, URLResponse)
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
5 | }
6 |
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/HTTP/RequestLoader.swift:7:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
5 | }
6 |
7 | extension URLSession: RequestLoader {
| `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
8 | public func load(_ request: URLRequest) async throws -> (Data, URLResponse) {
9 | if #available(iOS 15.0, macOS 12.0, *) {
[7/12] Compiling HTTP RequestLoader.swift
/host/spi-builder-workspace/Sources/HTTP/RequestLoader.swift:4:26: error: cannot find type 'URLRequest' in scope
2 |
3 | public protocol RequestLoader {
4 | func load(_ request: URLRequest) async throws -> (Data, URLResponse)
| `- error: cannot find type 'URLRequest' in scope
5 | }
6 |
/host/spi-builder-workspace/Sources/HTTP/RequestLoader.swift:4:61: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
2 |
3 | public protocol RequestLoader {
4 | func load(_ request: URLRequest) async throws -> (Data, URLResponse)
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
5 | }
6 |
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/HTTP/RequestLoader.swift:7:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
5 | }
6 |
7 | extension URLSession: RequestLoader {
| `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
8 | public func load(_ request: URLRequest) async throws -> (Data, URLResponse) {
9 | if #available(iOS 15.0, macOS 12.0, *) {
/host/spi-builder-workspace/Sources/HTTP/RequestLoader.swift:8:33: error: cannot find type 'URLRequest' in scope
6 |
7 | extension URLSession: RequestLoader {
8 | public func load(_ request: URLRequest) async throws -> (Data, URLResponse) {
| `- error: cannot find type 'URLRequest' in scope
9 | if #available(iOS 15.0, macOS 12.0, *) {
10 | return try await data(for: request)
/host/spi-builder-workspace/Sources/HTTP/RequestLoader.swift:16:37: error: cannot find type 'URLRequest' in scope
14 | }
15 |
16 | private func _data(for request: URLRequest) async throws -> (Data, URLResponse) {
| `- error: cannot find type 'URLRequest' in scope
17 | try await withCheckedThrowingContinuation { continuation in
18 | let task = self.dataTask(with: request) { data, response, error in
[8/12] Compiling HTTP Request.swift
/host/spi-builder-workspace/Sources/HTTP/Request.swift:19:23: error: cannot find type 'URLRequest' in scope
17 | // MARK: Internal
18 |
19 | var asURLRequest: URLRequest {
| `- error: cannot find type 'URLRequest' in scope
20 | var request = URLRequest(url: url)
21 | request.httpMethod = method.rawValue
/host/spi-builder-workspace/Sources/HTTP/Request.swift:27:40: error: cannot find type 'URLRequest' in scope
25 | }
26 |
27 | func addToRequest(_ request: inout URLRequest) {}
| `- error: cannot find type 'URLRequest' in scope
28 |
29 | // MARK: Private
/host/spi-builder-workspace/Sources/HTTP/Request.swift:20:23: error: cannot find 'URLRequest' in scope
18 |
19 | var asURLRequest: URLRequest {
20 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
21 | request.httpMethod = method.rawValue
22 | request.allHTTPHeaderFields = headers
[9/12] Compiling HTTP Global.swift
/host/spi-builder-workspace/Sources/HTTP/Global.swift:4:23: warning: static property 'keyDecodingStrategy' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
2 |
3 | public enum Global {
4 | public static var keyDecodingStrategy: JSONDecoder.KeyDecodingStrategy = .convertFromSnakeCase
| |- warning: static property 'keyDecodingStrategy' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'keyDecodingStrategy' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'keyDecodingStrategy' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
5 | public static var keyEncodingStrategy: JSONEncoder.KeyEncodingStrategy = .convertToSnakeCase
6 | public static var userAgent: String?
/host/spi-builder-workspace/Sources/HTTP/Global.swift:5:23: warning: static property 'keyEncodingStrategy' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
3 | public enum Global {
4 | public static var keyDecodingStrategy: JSONDecoder.KeyDecodingStrategy = .convertFromSnakeCase
5 | public static var keyEncodingStrategy: JSONEncoder.KeyEncodingStrategy = .convertToSnakeCase
| |- warning: static property 'keyEncodingStrategy' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'keyEncodingStrategy' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'keyEncodingStrategy' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
6 | public static var userAgent: String?
7 | public static var requestLoader: RequestLoader = URLSession.shared
/host/spi-builder-workspace/Sources/HTTP/Global.swift:6:23: warning: static property 'userAgent' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
4 | public static var keyDecodingStrategy: JSONDecoder.KeyDecodingStrategy = .convertFromSnakeCase
5 | public static var keyEncodingStrategy: JSONEncoder.KeyEncodingStrategy = .convertToSnakeCase
6 | public static var userAgent: String?
| |- warning: static property 'userAgent' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'userAgent' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'userAgent' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
7 | public static var requestLoader: RequestLoader = URLSession.shared
8 |
/host/spi-builder-workspace/Sources/HTTP/Global.swift:7:23: warning: static property 'requestLoader' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
5 | public static var keyEncodingStrategy: JSONEncoder.KeyEncodingStrategy = .convertToSnakeCase
6 | public static var userAgent: String?
7 | public static var requestLoader: RequestLoader = URLSession.shared
| |- warning: static property 'requestLoader' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'requestLoader' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'requestLoader' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
8 |
9 | static func resetToDefaults() {
/host/spi-builder-workspace/Sources/HTTP/Global.swift:7:65: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
5 | public static var keyEncodingStrategy: JSONEncoder.KeyEncodingStrategy = .convertToSnakeCase
6 | public static var userAgent: String?
7 | public static var requestLoader: RequestLoader = URLSession.shared
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
8 |
9 | static func resetToDefaults() {
/host/spi-builder-workspace/Sources/HTTP/Global.swift:13:36: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
11 | keyEncodingStrategy = .convertToSnakeCase
12 | userAgent = nil
13 | requestLoader = URLSession.shared
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
14 | }
15 | }
[10/12] Compiling HTTP BodyRequest.swift
/host/spi-builder-workspace/Sources/HTTP/BodyRequest.swift:11:49: error: cannot find type 'URLRequest' in scope
9 | // MARK: Internal
10 |
11 | override func addToRequest(_ request: inout URLRequest) {
| `- error: cannot find type 'URLRequest' in scope
12 | let encoder = JSONEncoder()
13 | encoder.keyEncodingStrategy = Global.keyEncodingStrategy
/host/spi-builder-workspace/Sources/HTTP/RequestLoader.swift:4:26: error: cannot find type 'URLRequest' in scope
2 |
3 | public protocol RequestLoader {
4 | func load(_ request: URLRequest) async throws -> (Data, URLResponse)
| `- error: cannot find type 'URLRequest' in scope
5 | }
6 |
/host/spi-builder-workspace/Sources/HTTP/Client.swift:17:36: error: cannot find type 'URLRequest' in scope
15 |
16 | @MainActor
17 | public func request(_ request: URLRequest) async -> ClientResult<T, E> {
| `- error: cannot find type 'URLRequest' in scope
18 | do {
19 | let (data, response) = try await requestLoader.load(request)
/host/spi-builder-workspace/Sources/HTTP/Client.swift:30:45: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
28 | private let requestLoader: RequestLoader
29 |
30 | private func handleResponse(_ response: URLResponse, with data: Data) -> ClientResult<T, E> {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
31 | guard let response = response as? HTTPURLResponse
32 | else { return .failure(.failedRequest(nil)) }
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/HTTP/Request.swift:19:23: error: cannot find type 'URLRequest' in scope
17 | // MARK: Internal
18 |
19 | var asURLRequest: URLRequest {
| `- error: cannot find type 'URLRequest' in scope
20 | var request = URLRequest(url: url)
21 | request.httpMethod = method.rawValue
/host/spi-builder-workspace/Sources/HTTP/Client.swift:31:39: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
29 |
30 | private func handleResponse(_ response: URLResponse, with data: Data) -> ClientResult<T, E> {
31 | guard let response = response as? HTTPURLResponse
| `- warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
32 | else { return .failure(.failedRequest(nil)) }
33 |
/host/spi-builder-workspace/Sources/HTTP/Client.swift:31:43: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
29 |
30 | private func handleResponse(_ response: URLResponse, with data: Data) -> ClientResult<T, E> {
31 | guard let response = response as? HTTPURLResponse
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
32 | else { return .failure(.failedRequest(nil)) }
33 |
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/HTTP/Client.swift:34:44: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
32 | else { return .failure(.failedRequest(nil)) }
33 |
34 | if (200 ..< 300).contains(response.statusCode) {
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
35 | return handleSuccess(data, headers: response.allHeaderFields, statusCode: response.statusCode)
36 | } else {
/host/spi-builder-workspace/Sources/HTTP/Client.swift:35:58: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
33 |
34 | if (200 ..< 300).contains(response.statusCode) {
35 | return handleSuccess(data, headers: response.allHeaderFields, statusCode: response.statusCode)
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
36 | } else {
37 | return handleFailure(data, statusCode: response.statusCode)
/host/spi-builder-workspace/Sources/HTTP/Client.swift:35:96: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
33 |
34 | if (200 ..< 300).contains(response.statusCode) {
35 | return handleSuccess(data, headers: response.allHeaderFields, statusCode: response.statusCode)
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
36 | } else {
37 | return handleFailure(data, statusCode: response.statusCode)
/host/spi-builder-workspace/Sources/HTTP/Client.swift:37:61: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
35 | return handleSuccess(data, headers: response.allHeaderFields, statusCode: response.statusCode)
36 | } else {
37 | return handleFailure(data, statusCode: response.statusCode)
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
38 | }
39 | }
[11/12] Compiling HTTP Client.swift
/host/spi-builder-workspace/Sources/HTTP/BodyRequest.swift:11:49: error: cannot find type 'URLRequest' in scope
9 | // MARK: Internal
10 |
11 | override func addToRequest(_ request: inout URLRequest) {
| `- error: cannot find type 'URLRequest' in scope
12 | let encoder = JSONEncoder()
13 | encoder.keyEncodingStrategy = Global.keyEncodingStrategy
/host/spi-builder-workspace/Sources/HTTP/RequestLoader.swift:4:26: error: cannot find type 'URLRequest' in scope
2 |
3 | public protocol RequestLoader {
4 | func load(_ request: URLRequest) async throws -> (Data, URLResponse)
| `- error: cannot find type 'URLRequest' in scope
5 | }
6 |
/host/spi-builder-workspace/Sources/HTTP/Client.swift:17:36: error: cannot find type 'URLRequest' in scope
15 |
16 | @MainActor
17 | public func request(_ request: URLRequest) async -> ClientResult<T, E> {
| `- error: cannot find type 'URLRequest' in scope
18 | do {
19 | let (data, response) = try await requestLoader.load(request)
/host/spi-builder-workspace/Sources/HTTP/Client.swift:30:45: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
28 | private let requestLoader: RequestLoader
29 |
30 | private func handleResponse(_ response: URLResponse, with data: Data) -> ClientResult<T, E> {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
31 | guard let response = response as? HTTPURLResponse
32 | else { return .failure(.failedRequest(nil)) }
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/HTTP/Request.swift:19:23: error: cannot find type 'URLRequest' in scope
17 | // MARK: Internal
18 |
19 | var asURLRequest: URLRequest {
| `- error: cannot find type 'URLRequest' in scope
20 | var request = URLRequest(url: url)
21 | request.httpMethod = method.rawValue
/host/spi-builder-workspace/Sources/HTTP/Client.swift:31:39: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
29 |
30 | private func handleResponse(_ response: URLResponse, with data: Data) -> ClientResult<T, E> {
31 | guard let response = response as? HTTPURLResponse
| `- warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
32 | else { return .failure(.failedRequest(nil)) }
33 |
/host/spi-builder-workspace/Sources/HTTP/Client.swift:31:43: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
29 |
30 | private func handleResponse(_ response: URLResponse, with data: Data) -> ClientResult<T, E> {
31 | guard let response = response as? HTTPURLResponse
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
32 | else { return .failure(.failedRequest(nil)) }
33 |
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/HTTP/Client.swift:34:44: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
32 | else { return .failure(.failedRequest(nil)) }
33 |
34 | if (200 ..< 300).contains(response.statusCode) {
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
35 | return handleSuccess(data, headers: response.allHeaderFields, statusCode: response.statusCode)
36 | } else {
/host/spi-builder-workspace/Sources/HTTP/Client.swift:35:58: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
33 |
34 | if (200 ..< 300).contains(response.statusCode) {
35 | return handleSuccess(data, headers: response.allHeaderFields, statusCode: response.statusCode)
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
36 | } else {
37 | return handleFailure(data, statusCode: response.statusCode)
/host/spi-builder-workspace/Sources/HTTP/Client.swift:35:96: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
33 |
34 | if (200 ..< 300).contains(response.statusCode) {
35 | return handleSuccess(data, headers: response.allHeaderFields, statusCode: response.statusCode)
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
36 | } else {
37 | return handleFailure(data, statusCode: response.statusCode)
/host/spi-builder-workspace/Sources/HTTP/Client.swift:37:61: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
35 | return handleSuccess(data, headers: response.allHeaderFields, statusCode: response.statusCode)
36 | } else {
37 | return handleFailure(data, statusCode: response.statusCode)
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
38 | }
39 | }
[12/12] Compiling HTTP Response.swift
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-2":/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/10] Compiling HTTP RequestLoader.swift
/host/spi-builder-workspace/Sources/HTTP/RequestLoader.swift:4:26: error: cannot find type 'URLRequest' in scope
2 |
3 | public protocol RequestLoader {
4 | func load(_ request: URLRequest) async throws -> (Data, URLResponse)
| `- error: cannot find type 'URLRequest' in scope
5 | }
6 |
/host/spi-builder-workspace/Sources/HTTP/RequestLoader.swift:4:61: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
2 |
3 | public protocol RequestLoader {
4 | func load(_ request: URLRequest) async throws -> (Data, URLResponse)
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
5 | }
6 |
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/HTTP/RequestLoader.swift:7:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
5 | }
6 |
7 | extension URLSession: RequestLoader {
| `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
8 | public func load(_ request: URLRequest) async throws -> (Data, URLResponse) {
9 | if #available(iOS 15.0, macOS 12.0, *) {
/host/spi-builder-workspace/Sources/HTTP/RequestLoader.swift:8:33: error: cannot find type 'URLRequest' in scope
6 |
7 | extension URLSession: RequestLoader {
8 | public func load(_ request: URLRequest) async throws -> (Data, URLResponse) {
| `- error: cannot find type 'URLRequest' in scope
9 | if #available(iOS 15.0, macOS 12.0, *) {
10 | return try await data(for: request)
/host/spi-builder-workspace/Sources/HTTP/RequestLoader.swift:16:37: error: cannot find type 'URLRequest' in scope
14 | }
15 |
16 | private func _data(for request: URLRequest) async throws -> (Data, URLResponse) {
| `- error: cannot find type 'URLRequest' in scope
17 | try await withCheckedThrowingContinuation { continuation in
18 | let task = self.dataTask(with: request) { data, response, error in
[3/11] Compiling HTTP Method.swift
[4/11] Compiling HTTP Request.swift
/host/spi-builder-workspace/Sources/HTTP/Request.swift:19:23: error: cannot find type 'URLRequest' in scope
17 | // MARK: Internal
18 |
19 | var asURLRequest: URLRequest {
| `- error: cannot find type 'URLRequest' in scope
20 | var request = URLRequest(url: url)
21 | request.httpMethod = method.rawValue
/host/spi-builder-workspace/Sources/HTTP/Request.swift:27:40: error: cannot find type 'URLRequest' in scope
25 | }
26 |
27 | func addToRequest(_ request: inout URLRequest) {}
| `- error: cannot find type 'URLRequest' in scope
28 |
29 | // MARK: Private
/host/spi-builder-workspace/Sources/HTTP/Request.swift:20:23: error: cannot find 'URLRequest' in scope
18 |
19 | var asURLRequest: URLRequest {
20 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
21 | request.httpMethod = method.rawValue
22 | request.allHTTPHeaderFields = headers
[5/11] Compiling HTTP HTTPError.swift
[6/11] Compiling HTTP Global.swift
/host/spi-builder-workspace/Sources/HTTP/Global.swift:7:65: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
5 | public static var keyEncodingStrategy: JSONEncoder.KeyEncodingStrategy = .convertToSnakeCase
6 | public static var userAgent: String?
7 | public static var requestLoader: RequestLoader = URLSession.shared
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
8 |
9 | static func resetToDefaults() {
/host/spi-builder-workspace/Sources/HTTP/Global.swift:13:36: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
11 | keyEncodingStrategy = .convertToSnakeCase
12 | userAgent = nil
13 | requestLoader = URLSession.shared
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
14 | }
15 | }
error: emit-module command failed with exit code 1 (use -v to see invocation)
[7/11] Emitting module HTTP
/host/spi-builder-workspace/Sources/HTTP/BodyRequest.swift:11:49: error: cannot find type 'URLRequest' in scope
9 | // MARK: Internal
10 |
11 | override func addToRequest(_ request: inout URLRequest) {
| `- error: cannot find type 'URLRequest' in scope
12 | let encoder = JSONEncoder()
13 | encoder.keyEncodingStrategy = Global.keyEncodingStrategy
/host/spi-builder-workspace/Sources/HTTP/RequestLoader.swift:4:26: error: cannot find type 'URLRequest' in scope
2 |
3 | public protocol RequestLoader {
4 | func load(_ request: URLRequest) async throws -> (Data, URLResponse)
| `- error: cannot find type 'URLRequest' in scope
5 | }
6 |
/host/spi-builder-workspace/Sources/HTTP/Client.swift:17:36: error: cannot find type 'URLRequest' in scope
15 |
16 | @MainActor
17 | public func request(_ request: URLRequest) async -> ClientResult<T, E> {
| `- error: cannot find type 'URLRequest' in scope
18 | do {
19 | let (data, response) = try await requestLoader.load(request)
/host/spi-builder-workspace/Sources/HTTP/Client.swift:30:45: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
28 | private let requestLoader: RequestLoader
29 |
30 | private func handleResponse(_ response: URLResponse, with data: Data) -> ClientResult<T, E> {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
31 | guard let response = response as? HTTPURLResponse
32 | else { return .failure(.failedRequest(nil)) }
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/HTTP/Global.swift:7:65: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
5 | public static var keyEncodingStrategy: JSONEncoder.KeyEncodingStrategy = .convertToSnakeCase
6 | public static var userAgent: String?
7 | public static var requestLoader: RequestLoader = URLSession.shared
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
8 |
9 | static func resetToDefaults() {
/host/spi-builder-workspace/Sources/HTTP/Request.swift:19:23: error: cannot find type 'URLRequest' in scope
17 | // MARK: Internal
18 |
19 | var asURLRequest: URLRequest {
| `- error: cannot find type 'URLRequest' in scope
20 | var request = URLRequest(url: url)
21 | request.httpMethod = method.rawValue
/host/spi-builder-workspace/Sources/HTTP/Request.swift:27:40: error: cannot find type 'URLRequest' in scope
25 | }
26 |
27 | func addToRequest(_ request: inout URLRequest) {}
| `- error: cannot find type 'URLRequest' in scope
28 |
29 | // MARK: Private
/host/spi-builder-workspace/Sources/HTTP/RequestLoader.swift:4:61: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
2 |
3 | public protocol RequestLoader {
4 | func load(_ request: URLRequest) async throws -> (Data, URLResponse)
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
5 | }
6 |
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/HTTP/RequestLoader.swift:7:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
5 | }
6 |
7 | extension URLSession: RequestLoader {
| `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
8 | public func load(_ request: URLRequest) async throws -> (Data, URLResponse) {
9 | if #available(iOS 15.0, macOS 12.0, *) {
[8/11] Compiling HTTP Empty.swift
[9/11] Compiling HTTP BodyRequest.swift
/host/spi-builder-workspace/Sources/HTTP/BodyRequest.swift:11:49: error: cannot find type 'URLRequest' in scope
9 | // MARK: Internal
10 |
11 | override func addToRequest(_ request: inout URLRequest) {
| `- error: cannot find type 'URLRequest' in scope
12 | let encoder = JSONEncoder()
13 | encoder.keyEncodingStrategy = Global.keyEncodingStrategy
/host/spi-builder-workspace/Sources/HTTP/RequestLoader.swift:4:26: error: cannot find type 'URLRequest' in scope
2 |
3 | public protocol RequestLoader {
4 | func load(_ request: URLRequest) async throws -> (Data, URLResponse)
| `- error: cannot find type 'URLRequest' in scope
5 | }
6 |
/host/spi-builder-workspace/Sources/HTTP/Client.swift:17:36: error: cannot find type 'URLRequest' in scope
15 |
16 | @MainActor
17 | public func request(_ request: URLRequest) async -> ClientResult<T, E> {
| `- error: cannot find type 'URLRequest' in scope
18 | do {
19 | let (data, response) = try await requestLoader.load(request)
/host/spi-builder-workspace/Sources/HTTP/Client.swift:30:45: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
28 | private let requestLoader: RequestLoader
29 |
30 | private func handleResponse(_ response: URLResponse, with data: Data) -> ClientResult<T, E> {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
31 | guard let response = response as? HTTPURLResponse
32 | else { return .failure(.failedRequest(nil)) }
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/HTTP/Request.swift:19:23: error: cannot find type 'URLRequest' in scope
17 | // MARK: Internal
18 |
19 | var asURLRequest: URLRequest {
| `- error: cannot find type 'URLRequest' in scope
20 | var request = URLRequest(url: url)
21 | request.httpMethod = method.rawValue
/host/spi-builder-workspace/Sources/HTTP/Client.swift:31:39: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
29 |
30 | private func handleResponse(_ response: URLResponse, with data: Data) -> ClientResult<T, E> {
31 | guard let response = response as? HTTPURLResponse
| `- warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
32 | else { return .failure(.failedRequest(nil)) }
33 |
/host/spi-builder-workspace/Sources/HTTP/Client.swift:31:43: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
29 |
30 | private func handleResponse(_ response: URLResponse, with data: Data) -> ClientResult<T, E> {
31 | guard let response = response as? HTTPURLResponse
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
32 | else { return .failure(.failedRequest(nil)) }
33 |
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/HTTP/Client.swift:34:44: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
32 | else { return .failure(.failedRequest(nil)) }
33 |
34 | if (200 ..< 300).contains(response.statusCode) {
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
35 | return handleSuccess(data, headers: response.allHeaderFields, statusCode: response.statusCode)
36 | } else {
/host/spi-builder-workspace/Sources/HTTP/Client.swift:35:58: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
33 |
34 | if (200 ..< 300).contains(response.statusCode) {
35 | return handleSuccess(data, headers: response.allHeaderFields, statusCode: response.statusCode)
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
36 | } else {
37 | return handleFailure(data, statusCode: response.statusCode)
/host/spi-builder-workspace/Sources/HTTP/Client.swift:35:96: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
33 |
34 | if (200 ..< 300).contains(response.statusCode) {
35 | return handleSuccess(data, headers: response.allHeaderFields, statusCode: response.statusCode)
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
36 | } else {
37 | return handleFailure(data, statusCode: response.statusCode)
/host/spi-builder-workspace/Sources/HTTP/Client.swift:37:61: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
35 | return handleSuccess(data, headers: response.allHeaderFields, statusCode: response.statusCode)
36 | } else {
37 | return handleFailure(data, statusCode: response.statusCode)
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
38 | }
39 | }
[10/11] Compiling HTTP Client.swift
/host/spi-builder-workspace/Sources/HTTP/BodyRequest.swift:11:49: error: cannot find type 'URLRequest' in scope
9 | // MARK: Internal
10 |
11 | override func addToRequest(_ request: inout URLRequest) {
| `- error: cannot find type 'URLRequest' in scope
12 | let encoder = JSONEncoder()
13 | encoder.keyEncodingStrategy = Global.keyEncodingStrategy
/host/spi-builder-workspace/Sources/HTTP/RequestLoader.swift:4:26: error: cannot find type 'URLRequest' in scope
2 |
3 | public protocol RequestLoader {
4 | func load(_ request: URLRequest) async throws -> (Data, URLResponse)
| `- error: cannot find type 'URLRequest' in scope
5 | }
6 |
/host/spi-builder-workspace/Sources/HTTP/Client.swift:17:36: error: cannot find type 'URLRequest' in scope
15 |
16 | @MainActor
17 | public func request(_ request: URLRequest) async -> ClientResult<T, E> {
| `- error: cannot find type 'URLRequest' in scope
18 | do {
19 | let (data, response) = try await requestLoader.load(request)
/host/spi-builder-workspace/Sources/HTTP/Client.swift:30:45: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
28 | private let requestLoader: RequestLoader
29 |
30 | private func handleResponse(_ response: URLResponse, with data: Data) -> ClientResult<T, E> {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
31 | guard let response = response as? HTTPURLResponse
32 | else { return .failure(.failedRequest(nil)) }
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/HTTP/Request.swift:19:23: error: cannot find type 'URLRequest' in scope
17 | // MARK: Internal
18 |
19 | var asURLRequest: URLRequest {
| `- error: cannot find type 'URLRequest' in scope
20 | var request = URLRequest(url: url)
21 | request.httpMethod = method.rawValue
/host/spi-builder-workspace/Sources/HTTP/Client.swift:31:39: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
29 |
30 | private func handleResponse(_ response: URLResponse, with data: Data) -> ClientResult<T, E> {
31 | guard let response = response as? HTTPURLResponse
| `- warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
32 | else { return .failure(.failedRequest(nil)) }
33 |
/host/spi-builder-workspace/Sources/HTTP/Client.swift:31:43: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
29 |
30 | private func handleResponse(_ response: URLResponse, with data: Data) -> ClientResult<T, E> {
31 | guard let response = response as? HTTPURLResponse
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
32 | else { return .failure(.failedRequest(nil)) }
33 |
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/HTTP/Client.swift:34:44: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
32 | else { return .failure(.failedRequest(nil)) }
33 |
34 | if (200 ..< 300).contains(response.statusCode) {
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
35 | return handleSuccess(data, headers: response.allHeaderFields, statusCode: response.statusCode)
36 | } else {
/host/spi-builder-workspace/Sources/HTTP/Client.swift:35:58: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
33 |
34 | if (200 ..< 300).contains(response.statusCode) {
35 | return handleSuccess(data, headers: response.allHeaderFields, statusCode: response.statusCode)
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
36 | } else {
37 | return handleFailure(data, statusCode: response.statusCode)
/host/spi-builder-workspace/Sources/HTTP/Client.swift:35:96: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
33 |
34 | if (200 ..< 300).contains(response.statusCode) {
35 | return handleSuccess(data, headers: response.allHeaderFields, statusCode: response.statusCode)
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
36 | } else {
37 | return handleFailure(data, statusCode: response.statusCode)
/host/spi-builder-workspace/Sources/HTTP/Client.swift:37:61: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
35 | return handleSuccess(data, headers: response.allHeaderFields, statusCode: response.statusCode)
36 | } else {
37 | return handleFailure(data, statusCode: response.statusCode)
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
38 | }
39 | }
[11/11] Compiling HTTP Response.swift
BUILD FAILURE 6.1 wasm