Build Information
Failed to build AsyncHTTP, reference 1.1.0 (56228f
), with Swift 6.1 for Wasm on 28 May 2025 08:40:19 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
/host/spi-builder-workspace/Sources/AsyncHTTP/Loaders/URLSession.swift:45:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
43 | private let urlSession: URLSession
44 |
45 | init(urlSession: URLSession = .shared) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
46 | self.urlSession = urlSession
47 | }
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/AsyncHTTP/Loaders/URLSession.swift:45:40: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
43 | private let urlSession: URLSession
44 |
45 | init(urlSession: URLSession = .shared) {
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
46 | self.urlSession = urlSession
47 | }
/host/spi-builder-workspace/Sources/AsyncHTTP/Loaders/URLSession.swift:49:37: error: cannot find type 'URLRequest' in scope
47 | }
48 |
49 | public func load(_ request: URLRequest) async throws -> (Data, URLResponse) {
| `- error: cannot find type 'URLRequest' in scope
50 | try await urlSession.data(for: request)
51 | }
/host/spi-builder-workspace/Sources/AsyncHTTP/Loaders/URLSession.swift:49:72: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
47 | }
48 |
49 | public 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.
50 | try await urlSession.data(for: request)
51 | }
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/AsyncHTTP/Loaders/URLSession.swift:42:19: error: type 'Loaders.URLSessionData' does not conform to protocol 'Loader'
40 |
41 | extension Loaders {
42 | public struct URLSessionData: Loader {
| |- error: type 'Loaders.URLSessionData' does not conform to protocol 'Loader'
| `- note: add stubs for conformance
43 | private let urlSession: URLSession
44 |
/host/spi-builder-workspace/Sources/AsyncHTTP/Loader.swift:8:20: note: protocol requires nested type 'Input'
6 | #if compiler(>=5.7)
7 | @rethrows public protocol Loader<Input, Output> {
8 | associatedtype Input
| `- note: protocol requires nested type 'Input'
9 | associatedtype Output
| `- note: protocol requires nested type 'Output'
10 | func load(_ input: Input) async throws -> Output
11 | }
/host/spi-builder-workspace/Sources/AsyncHTTP/Loaders/URLSession.swift:50:34: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
48 |
49 | public func load(_ request: URLRequest) async throws -> (Data, URLResponse) {
50 | try await urlSession.data(for: request)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
51 | }
52 | }
/host/spi-builder-workspace/Sources/AsyncHTTP/Loaders/URLSession.swift:23:40: error: cannot find type 'URLRequest' in scope
21 | extension URLSession {
22 | #if compiler(>=5.7)
23 | public var dataLoader: some Loader<URLRequest, (Data, URLResponse)> {
| `- error: cannot find type 'URLRequest' in scope
24 | Loaders.URLSessionData(urlSession: self)
25 | }
[34/41] Compiling AsyncHTTP Pipe.swift
/host/spi-builder-workspace/Sources/AsyncHTTP/Loaders/URLSession.swift:21:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
19 | #endif
20 |
21 | extension URLSession {
| `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
22 | #if compiler(>=5.7)
23 | public var dataLoader: some Loader<URLRequest, (Data, URLResponse)> {
/host/spi-builder-workspace/Sources/AsyncHTTP/Loaders/URLSession.swift:43:33: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
41 | extension Loaders {
42 | public struct URLSessionData: Loader {
43 | private let urlSession: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
44 |
45 | init(urlSession: URLSession = .shared) {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/AsyncHTTP/Loaders/URLSession.swift:45:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
43 | private let urlSession: URLSession
44 |
45 | init(urlSession: URLSession = .shared) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
46 | self.urlSession = urlSession
47 | }
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/AsyncHTTP/Loaders/URLSession.swift:45:40: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
43 | private let urlSession: URLSession
44 |
45 | init(urlSession: URLSession = .shared) {
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
46 | self.urlSession = urlSession
47 | }
/host/spi-builder-workspace/Sources/AsyncHTTP/Loaders/URLSession.swift:49:37: error: cannot find type 'URLRequest' in scope
47 | }
48 |
49 | public func load(_ request: URLRequest) async throws -> (Data, URLResponse) {
| `- error: cannot find type 'URLRequest' in scope
50 | try await urlSession.data(for: request)
51 | }
/host/spi-builder-workspace/Sources/AsyncHTTP/Loaders/URLSession.swift:49:72: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
47 | }
48 |
49 | public 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.
50 | try await urlSession.data(for: request)
51 | }
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/AsyncHTTP/Loaders/URLSession.swift:42:19: error: type 'Loaders.URLSessionData' does not conform to protocol 'Loader'
40 |
41 | extension Loaders {
42 | public struct URLSessionData: Loader {
| |- error: type 'Loaders.URLSessionData' does not conform to protocol 'Loader'
| `- note: add stubs for conformance
43 | private let urlSession: URLSession
44 |
/host/spi-builder-workspace/Sources/AsyncHTTP/Loader.swift:8:20: note: protocol requires nested type 'Input'
6 | #if compiler(>=5.7)
7 | @rethrows public protocol Loader<Input, Output> {
8 | associatedtype Input
| `- note: protocol requires nested type 'Input'
9 | associatedtype Output
| `- note: protocol requires nested type 'Output'
10 | func load(_ input: Input) async throws -> Output
11 | }
/host/spi-builder-workspace/Sources/AsyncHTTP/Loaders/URLSession.swift:50:34: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
48 |
49 | public func load(_ request: URLRequest) async throws -> (Data, URLResponse) {
50 | try await urlSession.data(for: request)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
51 | }
52 | }
/host/spi-builder-workspace/Sources/AsyncHTTP/Loaders/URLSession.swift:23:40: error: cannot find type 'URLRequest' in scope
21 | extension URLSession {
22 | #if compiler(>=5.7)
23 | public var dataLoader: some Loader<URLRequest, (Data, URLResponse)> {
| `- error: cannot find type 'URLRequest' in scope
24 | Loaders.URLSessionData(urlSession: self)
25 | }
[35/41] Compiling AsyncHTTP Pullback.swift
/host/spi-builder-workspace/Sources/AsyncHTTP/Loaders/URLSession.swift:21:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
19 | #endif
20 |
21 | extension URLSession {
| `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
22 | #if compiler(>=5.7)
23 | public var dataLoader: some Loader<URLRequest, (Data, URLResponse)> {
/host/spi-builder-workspace/Sources/AsyncHTTP/Loaders/URLSession.swift:43:33: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
41 | extension Loaders {
42 | public struct URLSessionData: Loader {
43 | private let urlSession: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
44 |
45 | init(urlSession: URLSession = .shared) {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/AsyncHTTP/Loaders/URLSession.swift:45:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
43 | private let urlSession: URLSession
44 |
45 | init(urlSession: URLSession = .shared) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
46 | self.urlSession = urlSession
47 | }
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/AsyncHTTP/Loaders/URLSession.swift:45:40: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
43 | private let urlSession: URLSession
44 |
45 | init(urlSession: URLSession = .shared) {
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
46 | self.urlSession = urlSession
47 | }
/host/spi-builder-workspace/Sources/AsyncHTTP/Loaders/URLSession.swift:49:37: error: cannot find type 'URLRequest' in scope
47 | }
48 |
49 | public func load(_ request: URLRequest) async throws -> (Data, URLResponse) {
| `- error: cannot find type 'URLRequest' in scope
50 | try await urlSession.data(for: request)
51 | }
/host/spi-builder-workspace/Sources/AsyncHTTP/Loaders/URLSession.swift:49:72: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
47 | }
48 |
49 | public 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.
50 | try await urlSession.data(for: request)
51 | }
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/AsyncHTTP/Loaders/URLSession.swift:42:19: error: type 'Loaders.URLSessionData' does not conform to protocol 'Loader'
40 |
41 | extension Loaders {
42 | public struct URLSessionData: Loader {
| |- error: type 'Loaders.URLSessionData' does not conform to protocol 'Loader'
| `- note: add stubs for conformance
43 | private let urlSession: URLSession
44 |
/host/spi-builder-workspace/Sources/AsyncHTTP/Loader.swift:8:20: note: protocol requires nested type 'Input'
6 | #if compiler(>=5.7)
7 | @rethrows public protocol Loader<Input, Output> {
8 | associatedtype Input
| `- note: protocol requires nested type 'Input'
9 | associatedtype Output
| `- note: protocol requires nested type 'Output'
10 | func load(_ input: Input) async throws -> Output
11 | }
/host/spi-builder-workspace/Sources/AsyncHTTP/Loaders/URLSession.swift:50:34: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
48 |
49 | public func load(_ request: URLRequest) async throws -> (Data, URLResponse) {
50 | try await urlSession.data(for: request)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
51 | }
52 | }
/host/spi-builder-workspace/Sources/AsyncHTTP/Loaders/URLSession.swift:23:40: error: cannot find type 'URLRequest' in scope
21 | extension URLSession {
22 | #if compiler(>=5.7)
23 | public var dataLoader: some Loader<URLRequest, (Data, URLResponse)> {
| `- error: cannot find type 'URLRequest' in scope
24 | Loaders.URLSessionData(urlSession: self)
25 | }
[36/41] Compiling AsyncHTTP URLSession.swift
/host/spi-builder-workspace/Sources/AsyncHTTP/Loaders/URLSession.swift:21:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
19 | #endif
20 |
21 | extension URLSession {
| `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
22 | #if compiler(>=5.7)
23 | public var dataLoader: some Loader<URLRequest, (Data, URLResponse)> {
/host/spi-builder-workspace/Sources/AsyncHTTP/Loaders/URLSession.swift:43:33: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
41 | extension Loaders {
42 | public struct URLSessionData: Loader {
43 | private let urlSession: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
44 |
45 | init(urlSession: URLSession = .shared) {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/AsyncHTTP/Loaders/URLSession.swift:45:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
43 | private let urlSession: URLSession
44 |
45 | init(urlSession: URLSession = .shared) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
46 | self.urlSession = urlSession
47 | }
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/AsyncHTTP/Loaders/URLSession.swift:45:40: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
43 | private let urlSession: URLSession
44 |
45 | init(urlSession: URLSession = .shared) {
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
46 | self.urlSession = urlSession
47 | }
/host/spi-builder-workspace/Sources/AsyncHTTP/Loaders/URLSession.swift:49:37: error: cannot find type 'URLRequest' in scope
47 | }
48 |
49 | public func load(_ request: URLRequest) async throws -> (Data, URLResponse) {
| `- error: cannot find type 'URLRequest' in scope
50 | try await urlSession.data(for: request)
51 | }
/host/spi-builder-workspace/Sources/AsyncHTTP/Loaders/URLSession.swift:49:72: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
47 | }
48 |
49 | public 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.
50 | try await urlSession.data(for: request)
51 | }
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/AsyncHTTP/Loaders/URLSession.swift:42:19: error: type 'Loaders.URLSessionData' does not conform to protocol 'Loader'
40 |
41 | extension Loaders {
42 | public struct URLSessionData: Loader {
| |- error: type 'Loaders.URLSessionData' does not conform to protocol 'Loader'
| `- note: add stubs for conformance
43 | private let urlSession: URLSession
44 |
/host/spi-builder-workspace/Sources/AsyncHTTP/Loader.swift:8:20: note: protocol requires nested type 'Input'
6 | #if compiler(>=5.7)
7 | @rethrows public protocol Loader<Input, Output> {
8 | associatedtype Input
| `- note: protocol requires nested type 'Input'
9 | associatedtype Output
| `- note: protocol requires nested type 'Output'
10 | func load(_ input: Input) async throws -> Output
11 | }
/host/spi-builder-workspace/Sources/AsyncHTTP/Loaders/URLSession.swift:50:34: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
48 |
49 | public func load(_ request: URLRequest) async throws -> (Data, URLResponse) {
50 | try await urlSession.data(for: request)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
51 | }
52 | }
/host/spi-builder-workspace/Sources/AsyncHTTP/Loaders/URLSession.swift:23:40: error: cannot find type 'URLRequest' in scope
21 | extension URLSession {
22 | #if compiler(>=5.7)
23 | public var dataLoader: some Loader<URLRequest, (Data, URLResponse)> {
| `- error: cannot find type 'URLRequest' in scope
24 | Loaders.URLSessionData(urlSession: self)
25 | }
[37/41] Compiling AsyncHTTP AsyncHTTP.swift
/host/spi-builder-workspace/Sources/AsyncHTTP/Formatters/HTTPRequestFormatter.swift:6:23: warning: static property 'defaultFormatter' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
4 |
5 | extension HTTPRequest: DefaultFormattible {
6 | public static var defaultFormatter = StandardHTTPRequestFormatter()
| |- warning: static property 'defaultFormatter' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'defaultFormatter' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'defaultFormatter' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
7 | }
8 |
/host/spi-builder-workspace/Sources/AsyncHTTP/Formatters/HTTPResponseFormatter.swift:6:23: warning: static property 'defaultFormatter' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
4 |
5 | extension HTTPResponse: DefaultFormattible {
6 | public static var defaultFormatter = StandardHTTPResponseFormatter()
| |- warning: static property 'defaultFormatter' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'defaultFormatter' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'defaultFormatter' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
7 | }
8 |
[38/41] Compiling AsyncHTTP Formatter.swift
/host/spi-builder-workspace/Sources/AsyncHTTP/Formatters/HTTPRequestFormatter.swift:6:23: warning: static property 'defaultFormatter' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
4 |
5 | extension HTTPRequest: DefaultFormattible {
6 | public static var defaultFormatter = StandardHTTPRequestFormatter()
| |- warning: static property 'defaultFormatter' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'defaultFormatter' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'defaultFormatter' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
7 | }
8 |
/host/spi-builder-workspace/Sources/AsyncHTTP/Formatters/HTTPResponseFormatter.swift:6:23: warning: static property 'defaultFormatter' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
4 |
5 | extension HTTPResponse: DefaultFormattible {
6 | public static var defaultFormatter = StandardHTTPResponseFormatter()
| |- warning: static property 'defaultFormatter' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'defaultFormatter' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'defaultFormatter' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
7 | }
8 |
[39/41] Compiling AsyncHTTP HTTPRequestFormatter.swift
/host/spi-builder-workspace/Sources/AsyncHTTP/Formatters/HTTPRequestFormatter.swift:6:23: warning: static property 'defaultFormatter' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
4 |
5 | extension HTTPRequest: DefaultFormattible {
6 | public static var defaultFormatter = StandardHTTPRequestFormatter()
| |- warning: static property 'defaultFormatter' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'defaultFormatter' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'defaultFormatter' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
7 | }
8 |
/host/spi-builder-workspace/Sources/AsyncHTTP/Formatters/HTTPResponseFormatter.swift:6:23: warning: static property 'defaultFormatter' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
4 |
5 | extension HTTPResponse: DefaultFormattible {
6 | public static var defaultFormatter = StandardHTTPResponseFormatter()
| |- warning: static property 'defaultFormatter' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'defaultFormatter' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'defaultFormatter' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
7 | }
8 |
[40/41] Compiling AsyncHTTP HTTPResponseFormatter.swift
/host/spi-builder-workspace/Sources/AsyncHTTP/Formatters/HTTPRequestFormatter.swift:6:23: warning: static property 'defaultFormatter' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
4 |
5 | extension HTTPRequest: DefaultFormattible {
6 | public static var defaultFormatter = StandardHTTPRequestFormatter()
| |- warning: static property 'defaultFormatter' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'defaultFormatter' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'defaultFormatter' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
7 | }
8 |
/host/spi-builder-workspace/Sources/AsyncHTTP/Formatters/HTTPResponseFormatter.swift:6:23: warning: static property 'defaultFormatter' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
4 |
5 | extension HTTPResponse: DefaultFormattible {
6 | public static var defaultFormatter = StandardHTTPResponseFormatter()
| |- warning: static property 'defaultFormatter' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'defaultFormatter' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'defaultFormatter' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
7 | }
8 |
[41/41] Compiling AsyncHTTP Loader.swift
/host/spi-builder-workspace/Sources/AsyncHTTP/Formatters/HTTPRequestFormatter.swift:6:23: warning: static property 'defaultFormatter' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
4 |
5 | extension HTTPRequest: DefaultFormattible {
6 | public static var defaultFormatter = StandardHTTPRequestFormatter()
| |- warning: static property 'defaultFormatter' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'defaultFormatter' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'defaultFormatter' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
7 | }
8 |
/host/spi-builder-workspace/Sources/AsyncHTTP/Formatters/HTTPResponseFormatter.swift:6:23: warning: static property 'defaultFormatter' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
4 |
5 | extension HTTPResponse: DefaultFormattible {
6 | public static var defaultFormatter = StandardHTTPResponseFormatter()
| |- warning: static property 'defaultFormatter' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'defaultFormatter' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'defaultFormatter' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
7 | }
8 |
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
[1/1] Compiling plugin Swift-DocC Preview
[2/2] Compiling plugin Swift-DocC
Building for debugging...
[2/3] Write swift-version-24593BA9C3E375BF.txt
[4/36] Compiling AsyncHTTP Any.swift
/host/spi-builder-workspace/Sources/AsyncHTTP/Loaders/HTTP.swift:6:33: error: cannot find type 'URLRequest' in scope
4 | #endif
5 |
6 | extension Loader where Input == URLRequest, Output == (Data, URLResponse) {
| `- error: cannot find type 'URLRequest' in scope
7 | #if compiler(>=5.7)
8 | @_disfavoredOverload
/host/spi-builder-workspace/Sources/AsyncHTTP/Loaders/HTTP.swift:9:57: error: cannot find type 'URLRequest' in scope
7 | #if compiler(>=5.7)
8 | @_disfavoredOverload
9 | public func httpLoader(modify: ((HTTPRequest, inout URLRequest) -> Void)? = nil) -> some HTTPLoader {
| `- error: cannot find type 'URLRequest' in scope
10 | Loaders.HTTP(loader: self, modify: modify)
11 | }
/host/spi-builder-workspace/Sources/AsyncHTTP/Loaders/HTTP.swift:24:81: error: cannot find type 'URLRequest' in scope
22 |
23 | extension Loaders {
24 | public struct HTTP<Wrapped: Loader>: CompositeLoader where Wrapped.Input == URLRequest, Wrapped.Output == (Data, URLResponse) {
| `- error: cannot find type 'URLRequest' in scope
25 | private let loader: Wrapped
26 | private let modify: ((HTTPRequest, inout URLRequest) -> Void)?
/host/spi-builder-workspace/Sources/AsyncHTTP/Loaders/HTTP.swift:14:57: error: cannot find type 'URLRequest' in scope
12 | #endif
13 |
14 | public func httpLoader(modify: ((HTTPRequest, inout URLRequest) -> Void)? = nil) -> Loaders.HTTP<Self> {
| `- error: cannot find type 'URLRequest' in scope
15 | Loaders.HTTP(loader: self, modify: modify)
16 | }
/host/spi-builder-workspace/Sources/AsyncHTTP/Loaders/HTTP.swift:6:62: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
4 | #endif
5 |
6 | extension Loader where Input == URLRequest, Output == (Data, URLResponse) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
7 | #if compiler(>=5.7)
8 | @_disfavoredOverload
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/AsyncHTTP/Loaders/HTTP.swift:26:50: error: cannot find type 'URLRequest' in scope
24 | public struct HTTP<Wrapped: Loader>: CompositeLoader where Wrapped.Input == URLRequest, Wrapped.Output == (Data, URLResponse) {
25 | private let loader: Wrapped
26 | private let modify: ((HTTPRequest, inout URLRequest) -> Void)?
| `- error: cannot find type 'URLRequest' in scope
27 |
28 | public init(loader: Wrapped, modify: ((HTTPRequest, inout URLRequest) -> Void)? = nil) {
/host/spi-builder-workspace/Sources/AsyncHTTP/Loaders/HTTP.swift:28:67: error: cannot find type 'URLRequest' in scope
26 | private let modify: ((HTTPRequest, inout URLRequest) -> Void)?
27 |
28 | public init(loader: Wrapped, modify: ((HTTPRequest, inout URLRequest) -> Void)? = nil) {
| `- error: cannot find type 'URLRequest' in scope
29 | self.loader = loader
30 | self.modify = modify
/host/spi-builder-workspace/Sources/AsyncHTTP/Loaders/HTTP.swift:47:21: error: type 'Loaders.HTTP<Wrapped>.Error' does not conform to protocol 'Equatable'
45 | }
46 |
47 | public enum Error: Swift.Error {
| `- error: type 'Loaders.HTTP<Wrapped>.Error' does not conform to protocol 'Equatable'
48 | case invalidRequest
49 | case notHTTPURLResponse
/host/spi-builder-workspace/Sources/AsyncHTTP/Loaders/HTTP.swift:47:21: error: protocol 'Equatable' is broken; cannot derive conformance for type 'Loaders.HTTP<Wrapped>.Error'
45 | }
46 |
47 | public enum Error: Swift.Error {
| `- error: protocol 'Equatable' is broken; cannot derive conformance for type 'Loaders.HTTP<Wrapped>.Error'
48 | case invalidRequest
49 | case notHTTPURLResponse
/host/spi-builder-workspace/Sources/AsyncHTTP/Loaders/HTTP.swift:47:21: error: type 'Loaders.HTTP<Wrapped>.Error' does not conform to protocol 'Hashable'
45 | }
46 |
47 | public enum Error: Swift.Error {
| `- error: type 'Loaders.HTTP<Wrapped>.Error' does not conform to protocol 'Hashable'
48 | case invalidRequest
49 | case notHTTPURLResponse
/host/spi-builder-workspace/Sources/AsyncHTTP/Loaders/HTTP.swift:47:21: error: protocol 'Hashable' is broken; cannot derive conformance for type 'Loaders.HTTP<Wrapped>.Error'
45 | }
46 |
47 | public enum Error: Swift.Error {
| `- error: protocol 'Hashable' is broken; cannot derive conformance for type 'Loaders.HTTP<Wrapped>.Error'
48 | case invalidRequest
49 | case notHTTPURLResponse
/host/spi-builder-workspace/Sources/AsyncHTTP/Loaders/HTTP.swift:47:21: error: protocol 'Hashable' is broken; cannot derive conformance for type 'Loaders.HTTP<Wrapped>.Error'
45 | }
46 |
47 | public enum Error: Swift.Error {
| `- error: protocol 'Hashable' is broken; cannot derive conformance for type 'Loaders.HTTP<Wrapped>.Error'
48 | case invalidRequest
49 | case notHTTPURLResponse
/host/spi-builder-workspace/Sources/AsyncHTTP/Loaders/HTTP.swift:24:118: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
22 |
23 | extension Loaders {
24 | public struct HTTP<Wrapped: Loader>: CompositeLoader where Wrapped.Input == URLRequest, Wrapped.Output == (Data, URLResponse) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
25 | private let loader: Wrapped
26 | private let modify: ((HTTPRequest, inout URLRequest) -> Void)?
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/AsyncHTTP/Loaders/HTTP.swift:24:19: error: type 'Loaders.HTTP<Wrapped>' does not conform to protocol 'Loader'
22 |
23 | extension Loaders {
24 | public struct HTTP<Wrapped: Loader>: CompositeLoader where Wrapped.Input == URLRequest, Wrapped.Output == (Data, URLResponse) {
| |- error: type 'Loaders.HTTP<Wrapped>' does not conform to protocol 'Loader'
| `- note: add stubs for conformance
25 | private let loader: Wrapped
26 | private let modify: ((HTTPRequest, inout URLRequest) -> Void)?
:
31 | }
32 |
33 | public func load(_ request: HTTPRequest) async throws -> HTTPResponse {
| `- note: candidate has non-matching type '<Wrapped> (HTTPRequest) async throws -> HTTPResponse' [with Input = HTTPRequest, Output = HTTPResponse]
34 | guard var urlRequest = request.urlRequest else {
35 | throw Self.Error.invalidRequest
/host/spi-builder-workspace/Sources/AsyncHTTP/Loader.swift:10:10: note: protocol requires function 'load' with type '(HTTPRequest) async throws -> HTTPResponse'
8 | associatedtype Input
9 | associatedtype Output
10 | func load(_ input: Input) async throws -> Output
| `- note: protocol requires function 'load' with type '(HTTPRequest) async throws -> HTTPResponse'
11 | }
12 | #else
/host/spi-builder-workspace/Sources/AsyncHTTP/Loaders/HTTP.swift:10:9: error: return type of instance method 'httpLoader(modify:)' requires the types 'Self.Input' and '<<error type>>' be equivalent
7 | #if compiler(>=5.7)
8 | @_disfavoredOverload
9 | public func httpLoader(modify: ((HTTPRequest, inout URLRequest) -> Void)? = nil) -> some HTTPLoader {
| `- note: opaque return type declared here
10 | Loaders.HTTP(loader: self, modify: modify)
| `- error: return type of instance method 'httpLoader(modify:)' requires the types 'Self.Input' and '<<error type>>' be equivalent
11 | }
12 | #endif
/host/spi-builder-workspace/Sources/AsyncHTTP/Loaders/HTTP.swift:10:17: error: generic parameter 'Wrapped' could not be inferred
8 | @_disfavoredOverload
9 | public func httpLoader(modify: ((HTTPRequest, inout URLRequest) -> Void)? = nil) -> some HTTPLoader {
10 | Loaders.HTTP(loader: self, modify: modify)
| |- error: generic parameter 'Wrapped' could not be inferred
| `- note: explicitly specify the generic arguments to fix this issue
11 | }
12 | #endif
:
22 |
23 | extension Loaders {
24 | public struct HTTP<Wrapped: Loader>: CompositeLoader where Wrapped.Input == URLRequest, Wrapped.Output == (Data, URLResponse) {
| `- note: 'Wrapped' declared as parameter to type 'Loaders.HTTP'
25 | private let loader: Wrapped
26 | private let modify: ((HTTPRequest, inout URLRequest) -> Void)?
/host/spi-builder-workspace/Sources/AsyncHTTP/Loaders/HTTP.swift:29:18: error: generic struct 'HTTP' requires the types 'Wrapped.Input' and '<<error type>>' be equivalent
22 |
23 | extension Loaders {
24 | public struct HTTP<Wrapped: Loader>: CompositeLoader where Wrapped.Input == URLRequest, Wrapped.Output == (Data, URLResponse) {
| `- note: where 'Wrapped.Input' = 'Wrapped.Input'
25 | private let loader: Wrapped
26 | private let modify: ((HTTPRequest, inout URLRequest) -> Void)?
27 |
28 | public init(loader: Wrapped, modify: ((HTTPRequest, inout URLRequest) -> Void)? = nil) {
29 | self.loader = loader
| `- error: generic struct 'HTTP' requires the types 'Wrapped.Input' and '<<error type>>' be equivalent
30 | self.modify = modify
31 | }
/host/spi-builder-workspace/Sources/AsyncHTTP/Model/HTTPRequest.swift:60:30: error: cannot find type 'URLRequest' in scope
58 | }
59 |
60 | internal var urlRequest: URLRequest? {
| `- error: cannot find type 'URLRequest' in scope
61 | guard let url = url else {
62 | return nil
/host/spi-builder-workspace/Sources/AsyncHTTP/Loaders/HTTP.swift:35:34: error: enum 'Error' requires the types 'Wrapped.Input' and '<<error type>>' be equivalent
33 | public func load(_ request: HTTPRequest) async throws -> HTTPResponse {
34 | guard var urlRequest = request.urlRequest else {
35 | throw Self.Error.invalidRequest
| `- error: enum 'Error' requires the types 'Wrapped.Input' and '<<error type>>' be equivalent
36 | }
37 | modify?(request, &urlRequest)
:
45 | }
46 |
47 | public enum Error: Swift.Error {
| `- note: where 'Wrapped.Input' = 'Wrapped.Input'
48 | case invalidRequest
49 | case notHTTPURLResponse
/host/spi-builder-workspace/Sources/AsyncHTTP/Loaders/HTTP.swift:38:46: error: generic struct 'HTTP' requires the types 'Wrapped.Input' and '<<error type>>' be equivalent
22 |
23 | extension Loaders {
24 | public struct HTTP<Wrapped: Loader>: CompositeLoader where Wrapped.Input == URLRequest, Wrapped.Output == (Data, URLResponse) {
| `- note: where 'Wrapped.Input' = 'Wrapped.Input'
25 | private let loader: Wrapped
26 | private let modify: ((HTTPRequest, inout URLRequest) -> Void)?
:
36 | }
37 | modify?(request, &urlRequest)
38 | let (data, response) = try await loader.load(urlRequest)
| `- error: generic struct 'HTTP' requires the types 'Wrapped.Input' and '<<error type>>' be equivalent
39 |
40 | guard let response = response as? HTTPURLResponse else {
/host/spi-builder-workspace/Sources/AsyncHTTP/Loaders/HTTP.swift:41:34: error: enum 'Error' requires the types 'Wrapped.Input' and '<<error type>>' be equivalent
39 |
40 | guard let response = response as? HTTPURLResponse else {
41 | throw Self.Error.notHTTPURLResponse
| `- error: enum 'Error' requires the types 'Wrapped.Input' and '<<error type>>' be equivalent
42 | }
43 |
:
45 | }
46 |
47 | public enum Error: Swift.Error {
| `- note: where 'Wrapped.Input' = 'Wrapped.Input'
48 | case invalidRequest
49 | case notHTTPURLResponse
[5/36] Compiling AsyncHTTP Capture.swift
/host/spi-builder-workspace/Sources/AsyncHTTP/Loaders/HTTP.swift:6:33: error: cannot find type 'URLRequest' in scope
4 | #endif
5 |
6 | extension Loader where Input == URLRequest, Output == (Data, URLResponse) {
| `- error: cannot find type 'URLRequest' in scope
7 | #if compiler(>=5.7)
8 | @_disfavoredOverload
/host/spi-builder-workspace/Sources/AsyncHTTP/Loaders/HTTP.swift:9:57: error: cannot find type 'URLRequest' in scope
7 | #if compiler(>=5.7)
8 | @_disfavoredOverload
9 | public func httpLoader(modify: ((HTTPRequest, inout URLRequest) -> Void)? = nil) -> some HTTPLoader {
| `- error: cannot find type 'URLRequest' in scope
10 | Loaders.HTTP(loader: self, modify: modify)
11 | }
/host/spi-builder-workspace/Sources/AsyncHTTP/Loaders/HTTP.swift:24:81: error: cannot find type 'URLRequest' in scope
22 |
23 | extension Loaders {
24 | public struct HTTP<Wrapped: Loader>: CompositeLoader where Wrapped.Input == URLRequest, Wrapped.Output == (Data, URLResponse) {
| `- error: cannot find type 'URLRequest' in scope
25 | private let loader: Wrapped
26 | private let modify: ((HTTPRequest, inout URLRequest) -> Void)?
/host/spi-builder-workspace/Sources/AsyncHTTP/Loaders/HTTP.swift:14:57: error: cannot find type 'URLRequest' in scope
12 | #endif
13 |
14 | public func httpLoader(modify: ((HTTPRequest, inout URLRequest) -> Void)? = nil) -> Loaders.HTTP<Self> {
| `- error: cannot find type 'URLRequest' in scope
15 | Loaders.HTTP(loader: self, modify: modify)
16 | }
/host/spi-builder-workspace/Sources/AsyncHTTP/Loaders/HTTP.swift:6:62: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
4 | #endif
5 |
6 | extension Loader where Input == URLRequest, Output == (Data, URLResponse) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
7 | #if compiler(>=5.7)
8 | @_disfavoredOverload
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/AsyncHTTP/Loaders/HTTP.swift:26:50: error: cannot find type 'URLRequest' in scope
24 | public struct HTTP<Wrapped: Loader>: CompositeLoader where Wrapped.Input == URLRequest, Wrapped.Output == (Data, URLResponse) {
25 | private let loader: Wrapped
26 | private let modify: ((HTTPRequest, inout URLRequest) -> Void)?
| `- error: cannot find type 'URLRequest' in scope
27 |
28 | public init(loader: Wrapped, modify: ((HTTPRequest, inout URLRequest) -> Void)? = nil) {
/host/spi-builder-workspace/Sources/AsyncHTTP/Loaders/HTTP.swift:28:67: error: cannot find type 'URLRequest' in scope
26 | private let modify: ((HTTPRequest, inout URLRequest) -> Void)?
27 |
28 | public init(loader: Wrapped, modify: ((HTTPRequest, inout URLRequest) -> Void)? = nil) {
| `- error: cannot find type 'URLRequest' in scope
29 | self.loader = loader
30 | self.modify = modify
/host/spi-builder-workspace/Sources/AsyncHTTP/Loaders/HTTP.swift:47:21: error: type 'Loaders.HTTP<Wrapped>.Error' does not conform to protocol 'Equatable'
45 | }
46 |
47 | public enum Error: Swift.Error {
| `- error: type 'Loaders.HTTP<Wrapped>.Error' does not conform to protocol 'Equatable'
48 | case invalidRequest
49 | case notHTTPURLResponse
/host/spi-builder-workspace/Sources/AsyncHTTP/Loaders/HTTP.swift:47:21: error: protocol 'Equatable' is broken; cannot derive conformance for type 'Loaders.HTTP<Wrapped>.Error'
45 | }
46 |
47 | public enum Error: Swift.Error {
| `- error: protocol 'Equatable' is broken; cannot derive conformance for type 'Loaders.HTTP<Wrapped>.Error'
48 | case invalidRequest
49 | case notHTTPURLResponse
/host/spi-builder-workspace/Sources/AsyncHTTP/Loaders/HTTP.swift:47:21: error: type 'Loaders.HTTP<Wrapped>.Error' does not conform to protocol 'Hashable'
45 | }
46 |
47 | public enum Error: Swift.Error {
| `- error: type 'Loaders.HTTP<Wrapped>.Error' does not conform to protocol 'Hashable'
48 | case invalidRequest
49 | case notHTTPURLResponse
/host/spi-builder-workspace/Sources/AsyncHTTP/Loaders/HTTP.swift:47:21: error: protocol 'Hashable' is broken; cannot derive conformance for type 'Loaders.HTTP<Wrapped>.Error'
45 | }
46 |
47 | public enum Error: Swift.Error {
| `- error: protocol 'Hashable' is broken; cannot derive conformance for type 'Loaders.HTTP<Wrapped>.Error'
48 | case invalidRequest
49 | case notHTTPURLResponse
/host/spi-builder-workspace/Sources/AsyncHTTP/Loaders/HTTP.swift:47:21: error: protocol 'Hashable' is broken; cannot derive conformance for type 'Loaders.HTTP<Wrapped>.Error'
45 | }
46 |
47 | public enum Error: Swift.Error {
| `- error: protocol 'Hashable' is broken; cannot derive conformance for type 'Loaders.HTTP<Wrapped>.Error'
48 | case invalidRequest
49 | case notHTTPURLResponse
/host/spi-builder-workspace/Sources/AsyncHTTP/Loaders/HTTP.swift:24:118: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
22 |
23 | extension Loaders {
24 | public struct HTTP<Wrapped: Loader>: CompositeLoader where Wrapped.Input == URLRequest, Wrapped.Output == (Data, URLResponse) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
25 | private let loader: Wrapped
26 | private let modify: ((HTTPRequest, inout URLRequest) -> Void)?
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/AsyncHTTP/Loaders/HTTP.swift:24:19: error: type 'Loaders.HTTP<Wrapped>' does not conform to protocol 'Loader'
22 |
23 | extension Loaders {
24 | public struct HTTP<Wrapped: Loader>: CompositeLoader where Wrapped.Input == URLRequest, Wrapped.Output == (Data, URLResponse) {
| |- error: type 'Loaders.HTTP<Wrapped>' does not conform to protocol 'Loader'
| `- note: add stubs for conformance
25 | private let loader: Wrapped
26 | private let modify: ((HTTPRequest, inout URLRequest) -> Void)?
:
31 | }
32 |
33 | public func load(_ request: HTTPRequest) async throws -> HTTPResponse {
| `- note: candidate has non-matching type '<Wrapped> (HTTPRequest) async throws -> HTTPResponse' [with Input = HTTPRequest, Output = HTTPResponse]
34 | guard var urlRequest = request.urlRequest else {
35 | throw Self.Error.invalidRequest
/host/spi-builder-workspace/Sources/AsyncHTTP/Loader.swift:10:10: note: protocol requires function 'load' with type '(HTTPRequest) async throws -> HTTPResponse'
8 | associatedtype Input
9 | associatedtype Output
10 | func load(_ input: Input) async throws -> Output
| `- note: protocol requires function 'load' with type '(HTTPRequest) async throws -> HTTPResponse'
11 | }
12 | #else
/host/spi-builder-workspace/Sources/AsyncHTTP/Loaders/HTTP.swift:10:9: error: return type of instance method 'httpLoader(modify:)' requires the types 'Self.Input' and '<<error type>>' be equivalent
7 | #if compiler(>=5.7)
8 | @_disfavoredOverload
9 | public func httpLoader(modify: ((HTTPRequest, inout URLRequest) -> Void)? = nil) -> some HTTPLoader {
| `- note: opaque return type declared here
10 | Loaders.HTTP(loader: self, modify: modify)
| `- error: return type of instance method 'httpLoader(modify:)' requires the types 'Self.Input' and '<<error type>>' be equivalent
11 | }
12 | #endif
/host/spi-builder-workspace/Sources/AsyncHTTP/Loaders/HTTP.swift:10:17: error: generic parameter 'Wrapped' could not be inferred
8 | @_disfavoredOverload
9 | public func httpLoader(modify: ((HTTPRequest, inout URLRequest) -> Void)? = nil) -> some HTTPLoader {
10 | Loaders.HTTP(loader: self, modify: modify)
| |- error: generic parameter 'Wrapped' could not be inferred
| `- note: explicitly specify the generic arguments to fix this issue
11 | }
12 | #endif
:
22 |
23 | extension Loaders {
24 | public struct HTTP<Wrapped: Loader>: CompositeLoader where Wrapped.Input == URLRequest, Wrapped.Output == (Data, URLResponse) {
| `- note: 'Wrapped' declared as parameter to type 'Loaders.HTTP'
25 | private let loader: Wrapped
26 | private let modify: ((HTTPRequest, inout URLRequest) -> Void)?
/host/spi-builder-workspace/Sources/AsyncHTTP/Loaders/HTTP.swift:29:18: error: generic struct 'HTTP' requires the types 'Wrapped.Input' and '<<error type>>' be equivalent
22 |
23 | extension Loaders {
24 | public struct HTTP<Wrapped: Loader>: CompositeLoader where Wrapped.Input == URLRequest, Wrapped.Output == (Data, URLResponse) {
| `- note: where 'Wrapped.Input' = 'Wrapped.Input'
25 | private let loader: Wrapped
26 | private let modify: ((HTTPRequest, inout URLRequest) -> Void)?
27 |
28 | public init(loader: Wrapped, modify: ((HTTPRequest, inout URLRequest) -> Void)? = nil) {
29 | self.loader = loader
| `- error: generic struct 'HTTP' requires the types 'Wrapped.Input' and '<<error type>>' be equivalent
30 | self.modify = modify
31 | }
/host/spi-builder-workspace/Sources/AsyncHTTP/Model/HTTPRequest.swift:60:30: error: cannot find type 'URLRequest' in scope
58 | }
59 |
60 | internal var urlRequest: URLRequest? {
| `- error: cannot find type 'URLRequest' in scope
61 | guard let url = url else {
62 | return nil
/host/spi-builder-workspace/Sources/AsyncHTTP/Loaders/HTTP.swift:35:34: error: enum 'Error' requires the types 'Wrapped.Input' and '<<error type>>' be equivalent
33 | public func load(_ request: HTTPRequest) async throws -> HTTPResponse {
34 | guard var urlRequest = request.urlRequest else {
35 | throw Self.Error.invalidRequest
| `- error: enum 'Error' requires the types 'Wrapped.Input' and '<<error type>>' be equivalent
36 | }
37 | modify?(request, &urlRequest)
:
45 | }
46 |
47 | public enum Error: Swift.Error {
| `- note: where 'Wrapped.Input' = 'Wrapped.Input'
48 | case invalidRequest
49 | case notHTTPURLResponse
/host/spi-builder-workspace/Sources/AsyncHTTP/Loaders/HTTP.swift:38:46: error: generic struct 'HTTP' requires the types 'Wrapped.Input' and '<<error type>>' be equivalent
22 |
23 | extension Loaders {
24 | public struct HTTP<Wrapped: Loader>: CompositeLoader where Wrapped.Input == URLRequest, Wrapped.Output == (Data, URLResponse) {
| `- note: where 'Wrapped.Input' = 'Wrapped.Input'
25 | private let loader: Wrapped
26 | private let modify: ((HTTPRequest, inout URLRequest) -> Void)?
:
36 | }
37 | modify?(request, &urlRequest)
38 | let (data, response) = try await loader.load(urlRequest)
| `- error: generic struct 'HTTP' requires the types 'Wrapped.Input' and '<<error type>>' be equivalent
39 |
40 | guard let response = response as? HTTPURLResponse else {
/host/spi-builder-workspace/Sources/AsyncHTTP/Loaders/HTTP.swift:41:34: error: enum 'Error' requires the types 'Wrapped.Input' and '<<error type>>' be equivalent
39 |
40 | guard let response = response as? HTTPURLResponse else {
41 | throw Self.Error.notHTTPURLResponse
| `- error: enum 'Error' requires the types 'Wrapped.Input' and '<<error type>>' be equivalent
42 | }
43 |
:
45 | }
46 |
47 | public enum Error: Swift.Error {
| `- note: where 'Wrapped.Input' = 'Wrapped.Input'
48 | case invalidRequest
49 | case notHTTPURLResponse
[6/36] Compiling AsyncHTTP Decode.swift
/host/spi-builder-workspace/Sources/AsyncHTTP/Loaders/HTTP.swift:6:33: error: cannot find type 'URLRequest' in scope
4 | #endif
5 |
6 | extension Loader where Input == URLRequest, Output == (Data, URLResponse) {
| `- error: cannot find type 'URLRequest' in scope
7 | #if compiler(>=5.7)
8 | @_disfavoredOverload
/host/spi-builder-workspace/Sources/AsyncHTTP/Loaders/HTTP.swift:9:57: error: cannot find type 'URLRequest' in scope
7 | #if compiler(>=5.7)
8 | @_disfavoredOverload
9 | public func httpLoader(modify: ((HTTPRequest, inout URLRequest) -> Void)? = nil) -> some HTTPLoader {
| `- error: cannot find type 'URLRequest' in scope
10 | Loaders.HTTP(loader: self, modify: modify)
11 | }
/host/spi-builder-workspace/Sources/AsyncHTTP/Loaders/HTTP.swift:24:81: error: cannot find type 'URLRequest' in scope
22 |
23 | extension Loaders {
24 | public struct HTTP<Wrapped: Loader>: CompositeLoader where Wrapped.Input == URLRequest, Wrapped.Output == (Data, URLResponse) {
| `- error: cannot find type 'URLRequest' in scope
25 | private let loader: Wrapped
26 | private let modify: ((HTTPRequest, inout URLRequest) -> Void)?
/host/spi-builder-workspace/Sources/AsyncHTTP/Loaders/HTTP.swift:14:57: error: cannot find type 'URLRequest' in scope
12 | #endif
13 |
14 | public func httpLoader(modify: ((HTTPRequest, inout URLRequest) -> Void)? = nil) -> Loaders.HTTP<Self> {
| `- error: cannot find type 'URLRequest' in scope
15 | Loaders.HTTP(loader: self, modify: modify)
16 | }
/host/spi-builder-workspace/Sources/AsyncHTTP/Loaders/HTTP.swift:6:62: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
4 | #endif
5 |
6 | extension Loader where Input == URLRequest, Output == (Data, URLResponse) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
7 | #if compiler(>=5.7)
8 | @_disfavoredOverload
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/AsyncHTTP/Loaders/HTTP.swift:26:50: error: cannot find type 'URLRequest' in scope
24 | public struct HTTP<Wrapped: Loader>: CompositeLoader where Wrapped.Input == URLRequest, Wrapped.Output == (Data, URLResponse) {
25 | private let loader: Wrapped
26 | private let modify: ((HTTPRequest, inout URLRequest) -> Void)?
| `- error: cannot find type 'URLRequest' in scope
27 |
28 | public init(loader: Wrapped, modify: ((HTTPRequest, inout URLRequest) -> Void)? = nil) {
/host/spi-builder-workspace/Sources/AsyncHTTP/Loaders/HTTP.swift:28:67: error: cannot find type 'URLRequest' in scope
26 | private let modify: ((HTTPRequest, inout URLRequest) -> Void)?
27 |
28 | public init(loader: Wrapped, modify: ((HTTPRequest, inout URLRequest) -> Void)? = nil) {
| `- error: cannot find type 'URLRequest' in scope
29 | self.loader = loader
30 | self.modify = modify
/host/spi-builder-workspace/Sources/AsyncHTTP/Loaders/HTTP.swift:47:21: error: type 'Loaders.HTTP<Wrapped>.Error' does not conform to protocol 'Equatable'
45 | }
46 |
47 | public enum Error: Swift.Error {
| `- error: type 'Loaders.HTTP<Wrapped>.Error' does not conform to protocol 'Equatable'
48 | case invalidRequest
49 | case notHTTPURLResponse
/host/spi-builder-workspace/Sources/AsyncHTTP/Loaders/HTTP.swift:47:21: error: protocol 'Equatable' is broken; cannot derive conformance for type 'Loaders.HTTP<Wrapped>.Error'
45 | }
46 |
47 | public enum Error: Swift.Error {
| `- error: protocol 'Equatable' is broken; cannot derive conformance for type 'Loaders.HTTP<Wrapped>.Error'
48 | case invalidRequest
49 | case notHTTPURLResponse
/host/spi-builder-workspace/Sources/AsyncHTTP/Loaders/HTTP.swift:47:21: error: type 'Loaders.HTTP<Wrapped>.Error' does not conform to protocol 'Hashable'
45 | }
46 |
47 | public enum Error: Swift.Error {
| `- error: type 'Loaders.HTTP<Wrapped>.Error' does not conform to protocol 'Hashable'
48 | case invalidRequest
49 | case notHTTPURLResponse
/host/spi-builder-workspace/Sources/AsyncHTTP/Loaders/HTTP.swift:47:21: error: protocol 'Hashable' is broken; cannot derive conformance for type 'Loaders.HTTP<Wrapped>.Error'
45 | }
46 |
47 | public enum Error: Swift.Error {
| `- error: protocol 'Hashable' is broken; cannot derive conformance for type 'Loaders.HTTP<Wrapped>.Error'
48 | case invalidRequest
49 | case notHTTPURLResponse
/host/spi-builder-workspace/Sources/AsyncHTTP/Loaders/HTTP.swift:47:21: error: protocol 'Hashable' is broken; cannot derive conformance for type 'Loaders.HTTP<Wrapped>.Error'
45 | }
46 |
47 | public enum Error: Swift.Error {
| `- error: protocol 'Hashable' is broken; cannot derive conformance for type 'Loaders.HTTP<Wrapped>.Error'
48 | case invalidRequest
49 | case notHTTPURLResponse
/host/spi-builder-workspace/Sources/AsyncHTTP/Loaders/HTTP.swift:24:118: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
22 |
23 | extension Loaders {
24 | public struct HTTP<Wrapped: Loader>: CompositeLoader where Wrapped.Input == URLRequest, Wrapped.Output == (Data, URLResponse) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
25 | private let loader: Wrapped
26 | private let modify: ((HTTPRequest, inout URLRequest) -> Void)?
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/AsyncHTTP/Loaders/HTTP.swift:24:19: error: type 'Loaders.HTTP<Wrapped>' does not conform to protocol 'Loader'
22 |
23 | extension Loaders {
24 | public struct HTTP<Wrapped: Loader>: CompositeLoader where Wrapped.Input == URLRequest, Wrapped.Output == (Data, URLResponse) {
| |- error: type 'Loaders.HTTP<Wrapped>' does not conform to protocol 'Loader'
| `- note: add stubs for conformance
25 | private let loader: Wrapped
26 | private let modify: ((HTTPRequest, inout URLRequest) -> Void)?
:
31 | }
32 |
33 | public func load(_ request: HTTPRequest) async throws -> HTTPResponse {
| `- note: candidate has non-matching type '<Wrapped> (HTTPRequest) async throws -> HTTPResponse' [with Input = HTTPRequest, Output = HTTPResponse]
34 | guard var urlRequest = request.urlRequest else {
35 | throw Self.Error.invalidRequest
/host/spi-builder-workspace/Sources/AsyncHTTP/Loader.swift:10:10: note: protocol requires function 'load' with type '(HTTPRequest) async throws -> HTTPResponse'
8 | associatedtype Input
9 | associatedtype Output
10 | func load(_ input: Input) async throws -> Output
| `- note: protocol requires function 'load' with type '(HTTPRequest) async throws -> HTTPResponse'
11 | }
12 | #else
/host/spi-builder-workspace/Sources/AsyncHTTP/Loaders/HTTP.swift:10:9: error: return type of instance method 'httpLoader(modify:)' requires the types 'Self.Input' and '<<error type>>' be equivalent
7 | #if compiler(>=5.7)
8 | @_disfavoredOverload
9 | public func httpLoader(modify: ((HTTPRequest, inout URLRequest) -> Void)? = nil) -> some HTTPLoader {
| `- note: opaque return type declared here
10 | Loaders.HTTP(loader: self, modify: modify)
| `- error: return type of instance method 'httpLoader(modify:)' requires the types 'Self.Input' and '<<error type>>' be equivalent
11 | }
12 | #endif
/host/spi-builder-workspace/Sources/AsyncHTTP/Loaders/HTTP.swift:10:17: error: generic parameter 'Wrapped' could not be inferred
8 | @_disfavoredOverload
9 | public func httpLoader(modify: ((HTTPRequest, inout URLRequest) -> Void)? = nil) -> some HTTPLoader {
10 | Loaders.HTTP(loader: self, modify: modify)
| |- error: generic parameter 'Wrapped' could not be inferred
| `- note: explicitly specify the generic arguments to fix this issue
11 | }
12 | #endif
:
22 |
23 | extension Loaders {
24 | public struct HTTP<Wrapped: Loader>: CompositeLoader where Wrapped.Input == URLRequest, Wrapped.Output == (Data, URLResponse) {
| `- note: 'Wrapped' declared as parameter to type 'Loaders.HTTP'
25 | private let loader: Wrapped
26 | private let modify: ((HTTPRequest, inout URLRequest) -> Void)?
/host/spi-builder-workspace/Sources/AsyncHTTP/Loaders/HTTP.swift:29:18: error: generic struct 'HTTP' requires the types 'Wrapped.Input' and '<<error type>>' be equivalent
22 |
23 | extension Loaders {
24 | public struct HTTP<Wrapped: Loader>: CompositeLoader where Wrapped.Input == URLRequest, Wrapped.Output == (Data, URLResponse) {
| `- note: where 'Wrapped.Input' = 'Wrapped.Input'
25 | private let loader: Wrapped
26 | private let modify: ((HTTPRequest, inout URLRequest) -> Void)?
27 |
28 | public init(loader: Wrapped, modify: ((HTTPRequest, inout URLRequest) -> Void)? = nil) {
29 | self.loader = loader
| `- error: generic struct 'HTTP' requires the types 'Wrapped.Input' and '<<error type>>' be equivalent
30 | self.modify = modify
31 | }
/host/spi-builder-workspace/Sources/AsyncHTTP/Model/HTTPRequest.swift:60:30: error: cannot find type 'URLRequest' in scope
58 | }
59 |
60 | internal var urlRequest: URLRequest? {
| `- error: cannot find type 'URLRequest' in scope
61 | guard let url = url else {
62 | return nil
/host/spi-builder-workspace/Sources/AsyncHTTP/Loaders/HTTP.swift:35:34: error: enum 'Error' requires the types 'Wrapped.Input' and '<<error type>>' be equivalent
33 | public func load(_ request: HTTPRequest) async throws -> HTTPResponse {
34 | guard var urlRequest = request.urlRequest else {
35 | throw Self.Error.invalidRequest
| `- error: enum 'Error' requires the types 'Wrapped.Input' and '<<error type>>' be equivalent
36 | }
37 | modify?(request, &urlRequest)
:
45 | }
46 |
47 | public enum Error: Swift.Error {
| `- note: where 'Wrapped.Input' = 'Wrapped.Input'
48 | case invalidRequest
49 | case notHTTPURLResponse
/host/spi-builder-workspace/Sources/AsyncHTTP/Loaders/HTTP.swift:38:46: error: generic struct 'HTTP' requires the types 'Wrapped.Input' and '<<error type>>' be equivalent
22 |
23 | extension Loaders {
24 | public struct HTTP<Wrapped: Loader>: CompositeLoader where Wrapped.Input == URLRequest, Wrapped.Output == (Data, URLResponse) {
| `- note: where 'Wrapped.Input' = 'Wrapped.Input'
25 | private let loader: Wrapped
26 | private let modify: ((HTTPRequest, inout URLRequest) -> Void)?
:
36 | }
37 | modify?(request, &urlRequest)
38 | let (data, response) = try await loader.load(urlRequest)
| `- error: generic struct 'HTTP' requires the types 'Wrapped.Input' and '<<error type>>' be equivalent
39 |
40 | guard let response = response as? HTTPURLResponse else {
/host/spi-builder-workspace/Sources/AsyncHTTP/Loaders/HTTP.swift:41:34: error: enum 'Error' requires the types 'Wrapped.Input' and '<<error type>>' be equivalent
39 |
40 | guard let response = response as? HTTPURLResponse else {
41 | throw Self.Error.notHTTPURLResponse
| `- error: enum 'Error' requires the types 'Wrapped.Input' and '<<error type>>' be equivalent
42 | }
43 |
:
45 | }
46 |
47 | public enum Error: Swift.Error {
| `- note: where 'Wrapped.Input' = 'Wrapped.Input'
48 | case invalidRequest
49 | case notHTTPURLResponse
[7/36] Compiling AsyncHTTP FlatMap.swift
/host/spi-builder-workspace/Sources/AsyncHTTP/Loaders/HTTP.swift:6:33: error: cannot find type 'URLRequest' in scope
4 | #endif
5 |
6 | extension Loader where Input == URLRequest, Output == (Data, URLResponse) {
| `- error: cannot find type 'URLRequest' in scope
7 | #if compiler(>=5.7)
8 | @_disfavoredOverload
/host/spi-builder-workspace/Sources/AsyncHTTP/Loaders/HTTP.swift:9:57: error: cannot find type 'URLRequest' in scope
7 | #if compiler(>=5.7)
8 | @_disfavoredOverload
9 | public func httpLoader(modify: ((HTTPRequest, inout URLRequest) -> Void)? = nil) -> some HTTPLoader {
| `- error: cannot find type 'URLRequest' in scope
10 | Loaders.HTTP(loader: self, modify: modify)
11 | }
/host/spi-builder-workspace/Sources/AsyncHTTP/Loaders/HTTP.swift:24:81: error: cannot find type 'URLRequest' in scope
22 |
23 | extension Loaders {
24 | public struct HTTP<Wrapped: Loader>: CompositeLoader where Wrapped.Input == URLRequest, Wrapped.Output == (Data, URLResponse) {
| `- error: cannot find type 'URLRequest' in scope
25 | private let loader: Wrapped
26 | private let modify: ((HTTPRequest, inout URLRequest) -> Void)?
/host/spi-builder-workspace/Sources/AsyncHTTP/Loaders/HTTP.swift:14:57: error: cannot find type 'URLRequest' in scope
12 | #endif
13 |
14 | public func httpLoader(modify: ((HTTPRequest, inout URLRequest) -> Void)? = nil) -> Loaders.HTTP<Self> {
| `- error: cannot find type 'URLRequest' in scope
15 | Loaders.HTTP(loader: self, modify: modify)
16 | }
/host/spi-builder-workspace/Sources/AsyncHTTP/Loaders/HTTP.swift:6:62: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
4 | #endif
5 |
6 | extension Loader where Input == URLRequest, Output == (Data, URLResponse) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
7 | #if compiler(>=5.7)
8 | @_disfavoredOverload
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/AsyncHTTP/Loaders/HTTP.swift:26:50: error: cannot find type 'URLRequest' in scope
24 | public struct HTTP<Wrapped: Loader>: CompositeLoader where Wrapped.Input == URLRequest, Wrapped.Output == (Data, URLResponse) {
25 | private let loader: Wrapped
26 | private let modify: ((HTTPRequest, inout URLRequest) -> Void)?
| `- error: cannot find type 'URLRequest' in scope
27 |
28 | public init(loader: Wrapped, modify: ((HTTPRequest, inout URLRequest) -> Void)? = nil) {
/host/spi-builder-workspace/Sources/AsyncHTTP/Loaders/HTTP.swift:28:67: error: cannot find type 'URLRequest' in scope
26 | private let modify: ((HTTPRequest, inout URLRequest) -> Void)?
27 |
28 | public init(loader: Wrapped, modify: ((HTTPRequest, inout URLRequest) -> Void)? = nil) {
| `- error: cannot find type 'URLRequest' in scope
29 | self.loader = loader
30 | self.modify = modify
/host/spi-builder-workspace/Sources/AsyncHTTP/Loaders/HTTP.swift:47:21: error: type 'Loaders.HTTP<Wrapped>.Error' does not conform to protocol 'Equatable'
45 | }
46 |
47 | public enum Error: Swift.Error {
| `- error: type 'Loaders.HTTP<Wrapped>.Error' does not conform to protocol 'Equatable'
48 | case invalidRequest
49 | case notHTTPURLResponse
/host/spi-builder-workspace/Sources/AsyncHTTP/Loaders/HTTP.swift:47:21: error: protocol 'Equatable' is broken; cannot derive conformance for type 'Loaders.HTTP<Wrapped>.Error'
45 | }
46 |
47 | public enum Error: Swift.Error {
| `- error: protocol 'Equatable' is broken; cannot derive conformance for type 'Loaders.HTTP<Wrapped>.Error'
48 | case invalidRequest
49 | case notHTTPURLResponse
/host/spi-builder-workspace/Sources/AsyncHTTP/Loaders/HTTP.swift:47:21: error: type 'Loaders.HTTP<Wrapped>.Error' does not conform to protocol 'Hashable'
45 | }
46 |
47 | public enum Error: Swift.Error {
| `- error: type 'Loaders.HTTP<Wrapped>.Error' does not conform to protocol 'Hashable'
48 | case invalidRequest
49 | case notHTTPURLResponse
/host/spi-builder-workspace/Sources/AsyncHTTP/Loaders/HTTP.swift:47:21: error: protocol 'Hashable' is broken; cannot derive conformance for type 'Loaders.HTTP<Wrapped>.Error'
45 | }
46 |
47 | public enum Error: Swift.Error {
| `- error: protocol 'Hashable' is broken; cannot derive conformance for type 'Loaders.HTTP<Wrapped>.Error'
48 | case invalidRequest
49 | case notHTTPURLResponse
/host/spi-builder-workspace/Sources/AsyncHTTP/Loaders/HTTP.swift:47:21: error: protocol 'Hashable' is broken; cannot derive conformance for type 'Loaders.HTTP<Wrapped>.Error'
45 | }
46 |
47 | public enum Error: Swift.Error {
| `- error: protocol 'Hashable' is broken; cannot derive conformance for type 'Loaders.HTTP<Wrapped>.Error'
48 | case invalidRequest
49 | case notHTTPURLResponse
/host/spi-builder-workspace/Sources/AsyncHTTP/Loaders/HTTP.swift:24:118: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
22 |
23 | extension Loaders {
24 | public struct HTTP<Wrapped: Loader>: CompositeLoader where Wrapped.Input == URLRequest, Wrapped.Output == (Data, URLResponse) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
25 | private let loader: Wrapped
26 | private let modify: ((HTTPRequest, inout URLRequest) -> Void)?
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/AsyncHTTP/Loaders/HTTP.swift:24:19: error: type 'Loaders.HTTP<Wrapped>' does not conform to protocol 'Loader'
22 |
23 | extension Loaders {
24 | public struct HTTP<Wrapped: Loader>: CompositeLoader where Wrapped.Input == URLRequest, Wrapped.Output == (Data, URLResponse) {
| |- error: type 'Loaders.HTTP<Wrapped>' does not conform to protocol 'Loader'
| `- note: add stubs for conformance
25 | private let loader: Wrapped
26 | private let modify: ((HTTPRequest, inout URLRequest) -> Void)?
:
31 | }
32 |
33 | public func load(_ request: HTTPRequest) async throws -> HTTPResponse {
| `- note: candidate has non-matching type '<Wrapped> (HTTPRequest) async throws -> HTTPResponse' [with Input = HTTPRequest, Output = HTTPResponse]
34 | guard var urlRequest = request.urlRequest else {
35 | throw Self.Error.invalidRequest
/host/spi-builder-workspace/Sources/AsyncHTTP/Loader.swift:10:10: note: protocol requires function 'load' with type '(HTTPRequest) async throws -> HTTPResponse'
8 | associatedtype Input
9 | associatedtype Output
10 | func load(_ input: Input) async throws -> Output
| `- note: protocol requires function 'load' with type '(HTTPRequest) async throws -> HTTPResponse'
11 | }
12 | #else
/host/spi-builder-workspace/Sources/AsyncHTTP/Loaders/HTTP.swift:10:9: error: return type of instance method 'httpLoader(modify:)' requires the types 'Self.Input' and '<<error type>>' be equivalent
7 | #if compiler(>=5.7)
8 | @_disfavoredOverload
9 | public func httpLoader(modify: ((HTTPRequest, inout URLRequest) -> Void)? = nil) -> some HTTPLoader {
| `- note: opaque return type declared here
10 | Loaders.HTTP(loader: self, modify: modify)
| `- error: return type of instance method 'httpLoader(modify:)' requires the types 'Self.Input' and '<<error type>>' be equivalent
11 | }
12 | #endif
/host/spi-builder-workspace/Sources/AsyncHTTP/Loaders/HTTP.swift:10:17: error: generic parameter 'Wrapped' could not be inferred
8 | @_disfavoredOverload
9 | public func httpLoader(modify: ((HTTPRequest, inout URLRequest) -> Void)? = nil) -> some HTTPLoader {
10 | Loaders.HTTP(loader: self, modify: modify)
| |- error: generic parameter 'Wrapped' could not be inferred
| `- note: explicitly specify the generic arguments to fix this issue
11 | }
12 | #endif
:
22 |
23 | extension Loaders {
24 | public struct HTTP<Wrapped: Loader>: CompositeLoader where Wrapped.Input == URLRequest, Wrapped.Output == (Data, URLResponse) {
| `- note: 'Wrapped' declared as parameter to type 'Loaders.HTTP'
25 | private let loader: Wrapped
26 | private let modify: ((HTTPRequest, inout URLRequest) -> Void)?
/host/spi-builder-workspace/Sources/AsyncHTTP/Loaders/HTTP.swift:29:18: error: generic struct 'HTTP' requires the types 'Wrapped.Input' and '<<error type>>' be equivalent
22 |
23 | extension Loaders {
24 | public struct HTTP<Wrapped: Loader>: CompositeLoader where Wrapped.Input == URLRequest, Wrapped.Output == (Data, URLResponse) {
| `- note: where 'Wrapped.Input' = 'Wrapped.Input'
25 | private let loader: Wrapped
26 | private let modify: ((HTTPRequest, inout URLRequest) -> Void)?
27 |
28 | public init(loader: Wrapped, modify: ((HTTPRequest, inout URLRequest) -> Void)? = nil) {
29 | self.loader = loader
| `- error: generic struct 'HTTP' requires the types 'Wrapped.Input' and '<<error type>>' be equivalent
30 | self.modify = modify
31 | }
/host/spi-builder-workspace/Sources/AsyncHTTP/Model/HTTPRequest.swift:60:30: error: cannot find type 'URLRequest' in scope
58 | }
59 |
60 | internal var urlRequest: URLRequest? {
| `- error: cannot find type 'URLRequest' in scope
61 | guard let url = url else {
62 | return nil
/host/spi-builder-workspace/Sources/AsyncHTTP/Loaders/HTTP.swift:35:34: error: enum 'Error' requires the types 'Wrapped.Input' and '<<error type>>' be equivalent
33 | public func load(_ request: HTTPRequest) async throws -> HTTPResponse {
34 | guard var urlRequest = request.urlRequest else {
35 | throw Self.Error.invalidRequest
| `- error: enum 'Error' requires the types 'Wrapped.Input' and '<<error type>>' be equivalent
36 | }
37 | modify?(request, &urlRequest)
:
45 | }
46 |
47 | public enum Error: Swift.Error {
| `- note: where 'Wrapped.Input' = 'Wrapped.Input'
48 | case invalidRequest
49 | case notHTTPURLResponse
/host/spi-builder-workspace/Sources/AsyncHTTP/Loaders/HTTP.swift:38:46: error: generic struct 'HTTP' requires the types 'Wrapped.Input' and '<<error type>>' be equivalent
22 |
23 | extension Loaders {
24 | public struct HTTP<Wrapped: Loader>: CompositeLoader where Wrapped.Input == URLRequest, Wrapped.Output == (Data, URLResponse) {
| `- note: where 'Wrapped.Input' = 'Wrapped.Input'
25 | private let loader: Wrapped
26 | private let modify: ((HTTPRequest, inout URLRequest) -> Void)?
:
36 | }
37 | modify?(request, &urlRequest)
38 | let (data, response) = try await loader.load(urlRequest)
| `- error: generic struct 'HTTP' requires the types 'Wrapped.Input' and '<<error type>>' be equivalent
39 |
40 | guard let response = response as? HTTPURLResponse else {
/host/spi-builder-workspace/Sources/AsyncHTTP/Loaders/HTTP.swift:41:34: error: enum 'Error' requires the types 'Wrapped.Input' and '<<error type>>' be equivalent
39 |
40 | guard let response = response as? HTTPURLResponse else {
41 | throw Self.Error.notHTTPURLResponse
| `- error: enum 'Error' requires the types 'Wrapped.Input' and '<<error type>>' be equivalent
42 | }
43 |
:
45 | }
46 |
47 | public enum Error: Swift.Error {
| `- note: where 'Wrapped.Input' = 'Wrapped.Input'
48 | case invalidRequest
49 | case notHTTPURLResponse
[8/36] Compiling AsyncHTTP HTTP.swift
/host/spi-builder-workspace/Sources/AsyncHTTP/Loaders/HTTP.swift:6:33: error: cannot find type 'URLRequest' in scope
4 | #endif
5 |
6 | extension Loader where Input == URLRequest, Output == (Data, URLResponse) {
| `- error: cannot find type 'URLRequest' in scope
7 | #if compiler(>=5.7)
8 | @_disfavoredOverload
/host/spi-builder-workspace/Sources/AsyncHTTP/Loaders/HTTP.swift:9:57: error: cannot find type 'URLRequest' in scope
7 | #if compiler(>=5.7)
8 | @_disfavoredOverload
9 | public func httpLoader(modify: ((HTTPRequest, inout URLRequest) -> Void)? = nil) -> some HTTPLoader {
| `- error: cannot find type 'URLRequest' in scope
10 | Loaders.HTTP(loader: self, modify: modify)
11 | }
/host/spi-builder-workspace/Sources/AsyncHTTP/Loaders/HTTP.swift:24:81: error: cannot find type 'URLRequest' in scope
22 |
23 | extension Loaders {
24 | public struct HTTP<Wrapped: Loader>: CompositeLoader where Wrapped.Input == URLRequest, Wrapped.Output == (Data, URLResponse) {
| `- error: cannot find type 'URLRequest' in scope
25 | private let loader: Wrapped
26 | private let modify: ((HTTPRequest, inout URLRequest) -> Void)?
/host/spi-builder-workspace/Sources/AsyncHTTP/Loaders/HTTP.swift:14:57: error: cannot find type 'URLRequest' in scope
12 | #endif
13 |
14 | public func httpLoader(modify: ((HTTPRequest, inout URLRequest) -> Void)? = nil) -> Loaders.HTTP<Self> {
| `- error: cannot find type 'URLRequest' in scope
15 | Loaders.HTTP(loader: self, modify: modify)
16 | }
/host/spi-builder-workspace/Sources/AsyncHTTP/Loaders/HTTP.swift:6:62: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
4 | #endif
5 |
6 | extension Loader where Input == URLRequest, Output == (Data, URLResponse) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
7 | #if compiler(>=5.7)
8 | @_disfavoredOverload
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/AsyncHTTP/Loaders/HTTP.swift:26:50: error: cannot find type 'URLRequest' in scope
24 | public struct HTTP<Wrapped: Loader>: CompositeLoader where Wrapped.Input == URLRequest, Wrapped.Output == (Data, URLResponse) {
25 | private let loader: Wrapped
26 | private let modify: ((HTTPRequest, inout URLRequest) -> Void)?
| `- error: cannot find type 'URLRequest' in scope
27 |
28 | public init(loader: Wrapped, modify: ((HTTPRequest, inout URLRequest) -> Void)? = nil) {
/host/spi-builder-workspace/Sources/AsyncHTTP/Loaders/HTTP.swift:28:67: error: cannot find type 'URLRequest' in scope
26 | private let modify: ((HTTPRequest, inout URLRequest) -> Void)?
27 |
28 | public init(loader: Wrapped, modify: ((HTTPRequest, inout URLRequest) -> Void)? = nil) {
| `- error: cannot find type 'URLRequest' in scope
29 | self.loader = loader
30 | self.modify = modify
/host/spi-builder-workspace/Sources/AsyncHTTP/Loaders/HTTP.swift:47:21: error: type 'Loaders.HTTP<Wrapped>.Error' does not conform to protocol 'Equatable'
45 | }
46 |
47 | public enum Error: Swift.Error {
| `- error: type 'Loaders.HTTP<Wrapped>.Error' does not conform to protocol 'Equatable'
48 | case invalidRequest
49 | case notHTTPURLResponse
/host/spi-builder-workspace/Sources/AsyncHTTP/Loaders/HTTP.swift:47:21: error: protocol 'Equatable' is broken; cannot derive conformance for type 'Loaders.HTTP<Wrapped>.Error'
45 | }
46 |
47 | public enum Error: Swift.Error {
| `- error: protocol 'Equatable' is broken; cannot derive conformance for type 'Loaders.HTTP<Wrapped>.Error'
48 | case invalidRequest
49 | case notHTTPURLResponse
/host/spi-builder-workspace/Sources/AsyncHTTP/Loaders/HTTP.swift:47:21: error: type 'Loaders.HTTP<Wrapped>.Error' does not conform to protocol 'Hashable'
45 | }
46 |
47 | public enum Error: Swift.Error {
| `- error: type 'Loaders.HTTP<Wrapped>.Error' does not conform to protocol 'Hashable'
48 | case invalidRequest
49 | case notHTTPURLResponse
/host/spi-builder-workspace/Sources/AsyncHTTP/Loaders/HTTP.swift:47:21: error: protocol 'Hashable' is broken; cannot derive conformance for type 'Loaders.HTTP<Wrapped>.Error'
45 | }
46 |
47 | public enum Error: Swift.Error {
| `- error: protocol 'Hashable' is broken; cannot derive conformance for type 'Loaders.HTTP<Wrapped>.Error'
48 | case invalidRequest
49 | case notHTTPURLResponse
/host/spi-builder-workspace/Sources/AsyncHTTP/Loaders/HTTP.swift:47:21: error: protocol 'Hashable' is broken; cannot derive conformance for type 'Loaders.HTTP<Wrapped>.Error'
45 | }
46 |
47 | public enum Error: Swift.Error {
| `- error: protocol 'Hashable' is broken; cannot derive conformance for type 'Loaders.HTTP<Wrapped>.Error'
48 | case invalidRequest
49 | case notHTTPURLResponse
/host/spi-builder-workspace/Sources/AsyncHTTP/Loaders/HTTP.swift:24:118: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
22 |
23 | extension Loaders {
24 | public struct HTTP<Wrapped: Loader>: CompositeLoader where Wrapped.Input == URLRequest, Wrapped.Output == (Data, URLResponse) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
25 | private let loader: Wrapped
26 | private let modify: ((HTTPRequest, inout URLRequest) -> Void)?
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/AsyncHTTP/Loaders/HTTP.swift:24:19: error: type 'Loaders.HTTP<Wrapped>' does not conform to protocol 'Loader'
22 |
23 | extension Loaders {
24 | public struct HTTP<Wrapped: Loader>: CompositeLoader where Wrapped.Input == URLRequest, Wrapped.Output == (Data, URLResponse) {
| |- error: type 'Loaders.HTTP<Wrapped>' does not conform to protocol 'Loader'
| `- note: add stubs for conformance
25 | private let loader: Wrapped
26 | private let modify: ((HTTPRequest, inout URLRequest) -> Void)?
:
31 | }
32 |
33 | public func load(_ request: HTTPRequest) async throws -> HTTPResponse {
| `- note: candidate has non-matching type '<Wrapped> (HTTPRequest) async throws -> HTTPResponse' [with Input = HTTPRequest, Output = HTTPResponse]
34 | guard var urlRequest = request.urlRequest else {
35 | throw Self.Error.invalidRequest
/host/spi-builder-workspace/Sources/AsyncHTTP/Loader.swift:10:10: note: protocol requires function 'load' with type '(HTTPRequest) async throws -> HTTPResponse'
8 | associatedtype Input
9 | associatedtype Output
10 | func load(_ input: Input) async throws -> Output
| `- note: protocol requires function 'load' with type '(HTTPRequest) async throws -> HTTPResponse'
11 | }
12 | #else
/host/spi-builder-workspace/Sources/AsyncHTTP/Loaders/HTTP.swift:10:9: error: return type of instance method 'httpLoader(modify:)' requires the types 'Self.Input' and '<<error type>>' be equivalent
7 | #if compiler(>=5.7)
8 | @_disfavoredOverload
9 | public func httpLoader(modify: ((HTTPRequest, inout URLRequest) -> Void)? = nil) -> some HTTPLoader {
| `- note: opaque return type declared here
10 | Loaders.HTTP(loader: self, modify: modify)
| `- error: return type of instance method 'httpLoader(modify:)' requires the types 'Self.Input' and '<<error type>>' be equivalent
11 | }
12 | #endif
/host/spi-builder-workspace/Sources/AsyncHTTP/Loaders/HTTP.swift:10:17: error: generic parameter 'Wrapped' could not be inferred
8 | @_disfavoredOverload
9 | public func httpLoader(modify: ((HTTPRequest, inout URLRequest) -> Void)? = nil) -> some HTTPLoader {
10 | Loaders.HTTP(loader: self, modify: modify)
| |- error: generic parameter 'Wrapped' could not be inferred
| `- note: explicitly specify the generic arguments to fix this issue
11 | }
12 | #endif
:
22 |
23 | extension Loaders {
24 | public struct HTTP<Wrapped: Loader>: CompositeLoader where Wrapped.Input == URLRequest, Wrapped.Output == (Data, URLResponse) {
| `- note: 'Wrapped' declared as parameter to type 'Loaders.HTTP'
25 | private let loader: Wrapped
26 | private let modify: ((HTTPRequest, inout URLRequest) -> Void)?
/host/spi-builder-workspace/Sources/AsyncHTTP/Loaders/HTTP.swift:29:18: error: generic struct 'HTTP' requires the types 'Wrapped.Input' and '<<error type>>' be equivalent
22 |
23 | extension Loaders {
24 | public struct HTTP<Wrapped: Loader>: CompositeLoader where Wrapped.Input == URLRequest, Wrapped.Output == (Data, URLResponse) {
| `- note: where 'Wrapped.Input' = 'Wrapped.Input'
25 | private let loader: Wrapped
26 | private let modify: ((HTTPRequest, inout URLRequest) -> Void)?
27 |
28 | public init(loader: Wrapped, modify: ((HTTPRequest, inout URLRequest) -> Void)? = nil) {
29 | self.loader = loader
| `- error: generic struct 'HTTP' requires the types 'Wrapped.Input' and '<<error type>>' be equivalent
30 | self.modify = modify
31 | }
/host/spi-builder-workspace/Sources/AsyncHTTP/Model/HTTPRequest.swift:60:30: error: cannot find type 'URLRequest' in scope
58 | }
59 |
60 | internal var urlRequest: URLRequest? {
| `- error: cannot find type 'URLRequest' in scope
61 | guard let url = url else {
62 | return nil
/host/spi-builder-workspace/Sources/AsyncHTTP/Loaders/HTTP.swift:35:34: error: enum 'Error' requires the types 'Wrapped.Input' and '<<error type>>' be equivalent
33 | public func load(_ request: HTTPRequest) async throws -> HTTPResponse {
34 | guard var urlRequest = request.urlRequest else {
35 | throw Self.Error.invalidRequest
| `- error: enum 'Error' requires the types 'Wrapped.Input' and '<<error type>>' be equivalent
36 | }
37 | modify?(request, &urlRequest)
:
45 | }
46 |
47 | public enum Error: Swift.Error {
| `- note: where 'Wrapped.Input' = 'Wrapped.Input'
48 | case invalidRequest
49 | case notHTTPURLResponse
/host/spi-builder-workspace/Sources/AsyncHTTP/Loaders/HTTP.swift:38:46: error: generic struct 'HTTP' requires the types 'Wrapped.Input' and '<<error type>>' be equivalent
22 |
23 | extension Loaders {
24 | public struct HTTP<Wrapped: Loader>: CompositeLoader where Wrapped.Input == URLRequest, Wrapped.Output == (Data, URLResponse) {
| `- note: where 'Wrapped.Input' = 'Wrapped.Input'
25 | private let loader: Wrapped
26 | private let modify: ((HTTPRequest, inout URLRequest) -> Void)?
:
36 | }
37 | modify?(request, &urlRequest)
38 | let (data, response) = try await loader.load(urlRequest)
| `- error: generic struct 'HTTP' requires the types 'Wrapped.Input' and '<<error type>>' be equivalent
39 |
40 | guard let response = response as? HTTPURLResponse else {
/host/spi-builder-workspace/Sources/AsyncHTTP/Loaders/HTTP.swift:41:34: error: enum 'Error' requires the types 'Wrapped.Input' and '<<error type>>' be equivalent
39 |
40 | guard let response = response as? HTTPURLResponse else {
41 | throw Self.Error.notHTTPURLResponse
| `- error: enum 'Error' requires the types 'Wrapped.Input' and '<<error type>>' be equivalent
42 | }
43 |
:
45 | }
46 |
47 | public enum Error: Swift.Error {
| `- note: where 'Wrapped.Input' = 'Wrapped.Input'
48 | case invalidRequest
49 | case notHTTPURLResponse
[9/40] Compiling AsyncHTTP Intercept.swift
/host/spi-builder-workspace/Sources/AsyncHTTP/Loaders/URLSession.swift:21:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
19 | #endif
20 |
21 | extension URLSession {
| `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
22 | #if compiler(>=5.7)
23 | public var dataLoader: some Loader<URLRequest, (Data, URLResponse)> {
/host/spi-builder-workspace/Sources/AsyncHTTP/Loaders/URLSession.swift:43:33: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
41 | extension Loaders {
42 | public struct URLSessionData: Loader {
43 | private let urlSession: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
44 |
45 | init(urlSession: URLSession = .shared) {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/AsyncHTTP/Loaders/URLSession.swift:45:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
43 | private let urlSession: URLSession
44 |
45 | init(urlSession: URLSession = .shared) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
46 | self.urlSession = urlSession
47 | }
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/AsyncHTTP/Loaders/URLSession.swift:45:40: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
43 | private let urlSession: URLSession
44 |
45 | init(urlSession: URLSession = .shared) {
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
46 | self.urlSession = urlSession
47 | }
/host/spi-builder-workspace/Sources/AsyncHTTP/Loaders/URLSession.swift:49:37: error: cannot find type 'URLRequest' in scope
47 | }
48 |
49 | public func load(_ request: URLRequest) async throws -> (Data, URLResponse) {
| `- error: cannot find type 'URLRequest' in scope
50 | try await urlSession.data(for: request)
51 | }
/host/spi-builder-workspace/Sources/AsyncHTTP/Loaders/URLSession.swift:49:72: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
47 | }
48 |
49 | public 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.
50 | try await urlSession.data(for: request)
51 | }
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/AsyncHTTP/Loaders/URLSession.swift:42:19: error: type 'Loaders.URLSessionData' does not conform to protocol 'Loader'
40 |
41 | extension Loaders {
42 | public struct URLSessionData: Loader {
| |- error: type 'Loaders.URLSessionData' does not conform to protocol 'Loader'
| `- note: add stubs for conformance
43 | private let urlSession: URLSession
44 |
/host/spi-builder-workspace/Sources/AsyncHTTP/Loader.swift:8:20: note: protocol requires nested type 'Input'
6 | #if compiler(>=5.7)
7 | @rethrows public protocol Loader<Input, Output> {
8 | associatedtype Input
| `- note: protocol requires nested type 'Input'
9 | associatedtype Output
| `- note: protocol requires nested type 'Output'
10 | func load(_ input: Input) async throws -> Output
11 | }
/host/spi-builder-workspace/Sources/AsyncHTTP/Loaders/URLSession.swift:50:34: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
48 |
49 | public func load(_ request: URLRequest) async throws -> (Data, URLResponse) {
50 | try await urlSession.data(for: request)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
51 | }
52 | }
/host/spi-builder-workspace/Sources/AsyncHTTP/Loaders/URLSession.swift:23:40: error: cannot find type 'URLRequest' in scope
21 | extension URLSession {
22 | #if compiler(>=5.7)
23 | public var dataLoader: some Loader<URLRequest, (Data, URLResponse)> {
| `- error: cannot find type 'URLRequest' in scope
24 | Loaders.URLSessionData(urlSession: self)
25 | }
[10/40] Compiling AsyncHTTP Map.swift
/host/spi-builder-workspace/Sources/AsyncHTTP/Loaders/URLSession.swift:21:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
19 | #endif
20 |
21 | extension URLSession {
| `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
22 | #if compiler(>=5.7)
23 | public var dataLoader: some Loader<URLRequest, (Data, URLResponse)> {
/host/spi-builder-workspace/Sources/AsyncHTTP/Loaders/URLSession.swift:43:33: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
41 | extension Loaders {
42 | public struct URLSessionData: Loader {
43 | private let urlSession: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
44 |
45 | init(urlSession: URLSession = .shared) {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/AsyncHTTP/Loaders/URLSession.swift:45:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
43 | private let urlSession: URLSession
44 |
45 | init(urlSession: URLSession = .shared) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
46 | self.urlSession = urlSession
47 | }
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/AsyncHTTP/Loaders/URLSession.swift:45:40: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
43 | private let urlSession: URLSession
44 |
45 | init(urlSession: URLSession = .shared) {
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
46 | self.urlSession = urlSession
47 | }
/host/spi-builder-workspace/Sources/AsyncHTTP/Loaders/URLSession.swift:49:37: error: cannot find type 'URLRequest' in scope
47 | }
48 |
49 | public func load(_ request: URLRequest) async throws -> (Data, URLResponse) {
| `- error: cannot find type 'URLRequest' in scope
50 | try await urlSession.data(for: request)
51 | }
/host/spi-builder-workspace/Sources/AsyncHTTP/Loaders/URLSession.swift:49:72: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
47 | }
48 |
49 | public 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.
50 | try await urlSession.data(for: request)
51 | }
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/AsyncHTTP/Loaders/URLSession.swift:42:19: error: type 'Loaders.URLSessionData' does not conform to protocol 'Loader'
40 |
41 | extension Loaders {
42 | public struct URLSessionData: Loader {
| |- error: type 'Loaders.URLSessionData' does not conform to protocol 'Loader'
| `- note: add stubs for conformance
43 | private let urlSession: URLSession
44 |
/host/spi-builder-workspace/Sources/AsyncHTTP/Loader.swift:8:20: note: protocol requires nested type 'Input'
6 | #if compiler(>=5.7)
7 | @rethrows public protocol Loader<Input, Output> {
8 | associatedtype Input
| `- note: protocol requires nested type 'Input'
9 | associatedtype Output
| `- note: protocol requires nested type 'Output'
10 | func load(_ input: Input) async throws -> Output
11 | }
/host/spi-builder-workspace/Sources/AsyncHTTP/Loaders/URLSession.swift:50:34: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
48 |
49 | public func load(_ request: URLRequest) async throws -> (Data, URLResponse) {
50 | try await urlSession.data(for: request)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
51 | }
52 | }
/host/spi-builder-workspace/Sources/AsyncHTTP/Loaders/URLSession.swift:23:40: error: cannot find type 'URLRequest' in scope
21 | extension URLSession {
22 | #if compiler(>=5.7)
23 | public var dataLoader: some Loader<URLRequest, (Data, URLResponse)> {
| `- error: cannot find type 'URLRequest' in scope
24 | Loaders.URLSessionData(urlSession: self)
25 | }
[11/40] Compiling AsyncHTTP Pipe.swift
/host/spi-builder-workspace/Sources/AsyncHTTP/Loaders/URLSession.swift:21:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
19 | #endif
20 |
21 | extension URLSession {
| `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
22 | #if compiler(>=5.7)
23 | public var dataLoader: some Loader<URLRequest, (Data, URLResponse)> {
/host/spi-builder-workspace/Sources/AsyncHTTP/Loaders/URLSession.swift:43:33: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
41 | extension Loaders {
42 | public struct URLSessionData: Loader {
43 | private let urlSession: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
44 |
45 | init(urlSession: URLSession = .shared) {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/AsyncHTTP/Loaders/URLSession.swift:45:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
43 | private let urlSession: URLSession
44 |
45 | init(urlSession: URLSession = .shared) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
46 | self.urlSession = urlSession
47 | }
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/AsyncHTTP/Loaders/URLSession.swift:45:40: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
43 | private let urlSession: URLSession
44 |
45 | init(urlSession: URLSession = .shared) {
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
46 | self.urlSession = urlSession
47 | }
/host/spi-builder-workspace/Sources/AsyncHTTP/Loaders/URLSession.swift:49:37: error: cannot find type 'URLRequest' in scope
47 | }
48 |
49 | public func load(_ request: URLRequest) async throws -> (Data, URLResponse) {
| `- error: cannot find type 'URLRequest' in scope
50 | try await urlSession.data(for: request)
51 | }
/host/spi-builder-workspace/Sources/AsyncHTTP/Loaders/URLSession.swift:49:72: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
47 | }
48 |
49 | public 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.
50 | try await urlSession.data(for: request)
51 | }
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/AsyncHTTP/Loaders/URLSession.swift:42:19: error: type 'Loaders.URLSessionData' does not conform to protocol 'Loader'
40 |
41 | extension Loaders {
42 | public struct URLSessionData: Loader {
| |- error: type 'Loaders.URLSessionData' does not conform to protocol 'Loader'
| `- note: add stubs for conformance
43 | private let urlSession: URLSession
44 |
/host/spi-builder-workspace/Sources/AsyncHTTP/Loader.swift:8:20: note: protocol requires nested type 'Input'
6 | #if compiler(>=5.7)
7 | @rethrows public protocol Loader<Input, Output> {
8 | associatedtype Input
| `- note: protocol requires nested type 'Input'
9 | associatedtype Output
| `- note: protocol requires nested type 'Output'
10 | func load(_ input: Input) async throws -> Output
11 | }
/host/spi-builder-workspace/Sources/AsyncHTTP/Loaders/URLSession.swift:50:34: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
48 |
49 | public func load(_ request: URLRequest) async throws -> (Data, URLResponse) {
50 | try await urlSession.data(for: request)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
51 | }
52 | }
/host/spi-builder-workspace/Sources/AsyncHTTP/Loaders/URLSession.swift:23:40: error: cannot find type 'URLRequest' in scope
21 | extension URLSession {
22 | #if compiler(>=5.7)
23 | public var dataLoader: some Loader<URLRequest, (Data, URLResponse)> {
| `- error: cannot find type 'URLRequest' in scope
24 | Loaders.URLSessionData(urlSession: self)
25 | }
[12/40] Compiling AsyncHTTP Pullback.swift
/host/spi-builder-workspace/Sources/AsyncHTTP/Loaders/URLSession.swift:21:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
19 | #endif
20 |
21 | extension URLSession {
| `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
22 | #if compiler(>=5.7)
23 | public var dataLoader: some Loader<URLRequest, (Data, URLResponse)> {
/host/spi-builder-workspace/Sources/AsyncHTTP/Loaders/URLSession.swift:43:33: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
41 | extension Loaders {
42 | public struct URLSessionData: Loader {
43 | private let urlSession: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
44 |
45 | init(urlSession: URLSession = .shared) {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/AsyncHTTP/Loaders/URLSession.swift:45:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
43 | private let urlSession: URLSession
44 |
45 | init(urlSession: URLSession = .shared) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
46 | self.urlSession = urlSession
47 | }
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/AsyncHTTP/Loaders/URLSession.swift:45:40: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
43 | private let urlSession: URLSession
44 |
45 | init(urlSession: URLSession = .shared) {
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
46 | self.urlSession = urlSession
47 | }
/host/spi-builder-workspace/Sources/AsyncHTTP/Loaders/URLSession.swift:49:37: error: cannot find type 'URLRequest' in scope
47 | }
48 |
49 | public func load(_ request: URLRequest) async throws -> (Data, URLResponse) {
| `- error: cannot find type 'URLRequest' in scope
50 | try await urlSession.data(for: request)
51 | }
/host/spi-builder-workspace/Sources/AsyncHTTP/Loaders/URLSession.swift:49:72: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
47 | }
48 |
49 | public 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.
50 | try await urlSession.data(for: request)
51 | }
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/AsyncHTTP/Loaders/URLSession.swift:42:19: error: type 'Loaders.URLSessionData' does not conform to protocol 'Loader'
40 |
41 | extension Loaders {
42 | public struct URLSessionData: Loader {
| |- error: type 'Loaders.URLSessionData' does not conform to protocol 'Loader'
| `- note: add stubs for conformance
43 | private let urlSession: URLSession
44 |
/host/spi-builder-workspace/Sources/AsyncHTTP/Loader.swift:8:20: note: protocol requires nested type 'Input'
6 | #if compiler(>=5.7)
7 | @rethrows public protocol Loader<Input, Output> {
8 | associatedtype Input
| `- note: protocol requires nested type 'Input'
9 | associatedtype Output
| `- note: protocol requires nested type 'Output'
10 | func load(_ input: Input) async throws -> Output
11 | }
/host/spi-builder-workspace/Sources/AsyncHTTP/Loaders/URLSession.swift:50:34: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
48 |
49 | public func load(_ request: URLRequest) async throws -> (Data, URLResponse) {
50 | try await urlSession.data(for: request)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
51 | }
52 | }
/host/spi-builder-workspace/Sources/AsyncHTTP/Loaders/URLSession.swift:23:40: error: cannot find type 'URLRequest' in scope
21 | extension URLSession {
22 | #if compiler(>=5.7)
23 | public var dataLoader: some Loader<URLRequest, (Data, URLResponse)> {
| `- error: cannot find type 'URLRequest' in scope
24 | Loaders.URLSessionData(urlSession: self)
25 | }
[13/40] Compiling AsyncHTTP URLSession.swift
/host/spi-builder-workspace/Sources/AsyncHTTP/Loaders/URLSession.swift:21:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
19 | #endif
20 |
21 | extension URLSession {
| `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
22 | #if compiler(>=5.7)
23 | public var dataLoader: some Loader<URLRequest, (Data, URLResponse)> {
/host/spi-builder-workspace/Sources/AsyncHTTP/Loaders/URLSession.swift:43:33: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
41 | extension Loaders {
42 | public struct URLSessionData: Loader {
43 | private let urlSession: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
44 |
45 | init(urlSession: URLSession = .shared) {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/AsyncHTTP/Loaders/URLSession.swift:45:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
43 | private let urlSession: URLSession
44 |
45 | init(urlSession: URLSession = .shared) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
46 | self.urlSession = urlSession
47 | }
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/AsyncHTTP/Loaders/URLSession.swift:45:40: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
43 | private let urlSession: URLSession
44 |
45 | init(urlSession: URLSession = .shared) {
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
46 | self.urlSession = urlSession
47 | }
/host/spi-builder-workspace/Sources/AsyncHTTP/Loaders/URLSession.swift:49:37: error: cannot find type 'URLRequest' in scope
47 | }
48 |
49 | public func load(_ request: URLRequest) async throws -> (Data, URLResponse) {
| `- error: cannot find type 'URLRequest' in scope
50 | try await urlSession.data(for: request)
51 | }
/host/spi-builder-workspace/Sources/AsyncHTTP/Loaders/URLSession.swift:49:72: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
47 | }
48 |
49 | public 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.
50 | try await urlSession.data(for: request)
51 | }
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/AsyncHTTP/Loaders/URLSession.swift:42:19: error: type 'Loaders.URLSessionData' does not conform to protocol 'Loader'
40 |
41 | extension Loaders {
42 | public struct URLSessionData: Loader {
| |- error: type 'Loaders.URLSessionData' does not conform to protocol 'Loader'
| `- note: add stubs for conformance
43 | private let urlSession: URLSession
44 |
/host/spi-builder-workspace/Sources/AsyncHTTP/Loader.swift:8:20: note: protocol requires nested type 'Input'
6 | #if compiler(>=5.7)
7 | @rethrows public protocol Loader<Input, Output> {
8 | associatedtype Input
| `- note: protocol requires nested type 'Input'
9 | associatedtype Output
| `- note: protocol requires nested type 'Output'
10 | func load(_ input: Input) async throws -> Output
11 | }
/host/spi-builder-workspace/Sources/AsyncHTTP/Loaders/URLSession.swift:50:34: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
48 |
49 | public func load(_ request: URLRequest) async throws -> (Data, URLResponse) {
50 | try await urlSession.data(for: request)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
51 | }
52 | }
/host/spi-builder-workspace/Sources/AsyncHTTP/Loaders/URLSession.swift:23:40: error: cannot find type 'URLRequest' in scope
21 | extension URLSession {
22 | #if compiler(>=5.7)
23 | public var dataLoader: some Loader<URLRequest, (Data, URLResponse)> {
| `- error: cannot find type 'URLRequest' in scope
24 | Loaders.URLSessionData(urlSession: self)
25 | }
error: emit-module command failed with exit code 1 (use -v to see invocation)
[14/40] Emitting module AsyncHTTP
/host/spi-builder-workspace/Sources/AsyncHTTP/Loaders/HTTP.swift:6:33: error: cannot find type 'URLRequest' in scope
4 | #endif
5 |
6 | extension Loader where Input == URLRequest, Output == (Data, URLResponse) {
| `- error: cannot find type 'URLRequest' in scope
7 | #if compiler(>=5.7)
8 | @_disfavoredOverload
/host/spi-builder-workspace/Sources/AsyncHTTP/Loaders/HTTP.swift:9:57: error: cannot find type 'URLRequest' in scope
7 | #if compiler(>=5.7)
8 | @_disfavoredOverload
9 | public func httpLoader(modify: ((HTTPRequest, inout URLRequest) -> Void)? = nil) -> some HTTPLoader {
| `- error: cannot find type 'URLRequest' in scope
10 | Loaders.HTTP(loader: self, modify: modify)
11 | }
/host/spi-builder-workspace/Sources/AsyncHTTP/Loaders/HTTP.swift:24:81: error: cannot find type 'URLRequest' in scope
22 |
23 | extension Loaders {
24 | public struct HTTP<Wrapped: Loader>: CompositeLoader where Wrapped.Input == URLRequest, Wrapped.Output == (Data, URLResponse) {
| `- error: cannot find type 'URLRequest' in scope
25 | private let loader: Wrapped
26 | private let modify: ((HTTPRequest, inout URLRequest) -> Void)?
/host/spi-builder-workspace/Sources/AsyncHTTP/Loaders/HTTP.swift:14:57: error: cannot find type 'URLRequest' in scope
12 | #endif
13 |
14 | public func httpLoader(modify: ((HTTPRequest, inout URLRequest) -> Void)? = nil) -> Loaders.HTTP<Self> {
| `- error: cannot find type 'URLRequest' in scope
15 | Loaders.HTTP(loader: self, modify: modify)
16 | }
/host/spi-builder-workspace/Sources/AsyncHTTP/Loaders/HTTP.swift:6:62: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
4 | #endif
5 |
6 | extension Loader where Input == URLRequest, Output == (Data, URLResponse) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
7 | #if compiler(>=5.7)
8 | @_disfavoredOverload
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/AsyncHTTP/Loaders/HTTP.swift:26:50: error: cannot find type 'URLRequest' in scope
24 | public struct HTTP<Wrapped: Loader>: CompositeLoader where Wrapped.Input == URLRequest, Wrapped.Output == (Data, URLResponse) {
25 | private let loader: Wrapped
26 | private let modify: ((HTTPRequest, inout URLRequest) -> Void)?
| `- error: cannot find type 'URLRequest' in scope
27 |
28 | public init(loader: Wrapped, modify: ((HTTPRequest, inout URLRequest) -> Void)? = nil) {
/host/spi-builder-workspace/Sources/AsyncHTTP/Loaders/HTTP.swift:28:67: error: cannot find type 'URLRequest' in scope
26 | private let modify: ((HTTPRequest, inout URLRequest) -> Void)?
27 |
28 | public init(loader: Wrapped, modify: ((HTTPRequest, inout URLRequest) -> Void)? = nil) {
| `- error: cannot find type 'URLRequest' in scope
29 | self.loader = loader
30 | self.modify = modify
/host/spi-builder-workspace/Sources/AsyncHTTP/Loaders/HTTP.swift:47:21: error: type 'Loaders.HTTP<Wrapped>.Error' does not conform to protocol 'Equatable'
45 | }
46 |
47 | public enum Error: Swift.Error {
| `- error: type 'Loaders.HTTP<Wrapped>.Error' does not conform to protocol 'Equatable'
48 | case invalidRequest
49 | case notHTTPURLResponse
/host/spi-builder-workspace/Sources/AsyncHTTP/Loaders/HTTP.swift:47:21: error: protocol 'Equatable' is broken; cannot derive conformance for type 'Loaders.HTTP<Wrapped>.Error'
45 | }
46 |
47 | public enum Error: Swift.Error {
| `- error: protocol 'Equatable' is broken; cannot derive conformance for type 'Loaders.HTTP<Wrapped>.Error'
48 | case invalidRequest
49 | case notHTTPURLResponse
/host/spi-builder-workspace/Sources/AsyncHTTP/Loaders/HTTP.swift:47:21: error: type 'Loaders.HTTP<Wrapped>.Error' does not conform to protocol 'Hashable'
45 | }
46 |
47 | public enum Error: Swift.Error {
| `- error: type 'Loaders.HTTP<Wrapped>.Error' does not conform to protocol 'Hashable'
48 | case invalidRequest
49 | case notHTTPURLResponse
/host/spi-builder-workspace/Sources/AsyncHTTP/Loaders/HTTP.swift:47:21: error: protocol 'Hashable' is broken; cannot derive conformance for type 'Loaders.HTTP<Wrapped>.Error'
45 | }
46 |
47 | public enum Error: Swift.Error {
| `- error: protocol 'Hashable' is broken; cannot derive conformance for type 'Loaders.HTTP<Wrapped>.Error'
48 | case invalidRequest
49 | case notHTTPURLResponse
/host/spi-builder-workspace/Sources/AsyncHTTP/Loaders/HTTP.swift:47:21: error: protocol 'Hashable' is broken; cannot derive conformance for type 'Loaders.HTTP<Wrapped>.Error'
45 | }
46 |
47 | public enum Error: Swift.Error {
| `- error: protocol 'Hashable' is broken; cannot derive conformance for type 'Loaders.HTTP<Wrapped>.Error'
48 | case invalidRequest
49 | case notHTTPURLResponse
/host/spi-builder-workspace/Sources/AsyncHTTP/Loaders/HTTP.swift:24:118: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
22 |
23 | extension Loaders {
24 | public struct HTTP<Wrapped: Loader>: CompositeLoader where Wrapped.Input == URLRequest, Wrapped.Output == (Data, URLResponse) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
25 | private let loader: Wrapped
26 | private let modify: ((HTTPRequest, inout URLRequest) -> Void)?
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/AsyncHTTP/Loaders/HTTP.swift:24:19: error: type 'Loaders.HTTP<Wrapped>' does not conform to protocol 'Loader'
22 |
23 | extension Loaders {
24 | public struct HTTP<Wrapped: Loader>: CompositeLoader where Wrapped.Input == URLRequest, Wrapped.Output == (Data, URLResponse) {
| |- error: type 'Loaders.HTTP<Wrapped>' does not conform to protocol 'Loader'
| `- note: add stubs for conformance
25 | private let loader: Wrapped
26 | private let modify: ((HTTPRequest, inout URLRequest) -> Void)?
:
31 | }
32 |
33 | public func load(_ request: HTTPRequest) async throws -> HTTPResponse {
| `- note: candidate has non-matching type '<Wrapped> (HTTPRequest) async throws -> HTTPResponse' [with Input = HTTPRequest, Output = HTTPResponse]
34 | guard var urlRequest = request.urlRequest else {
35 | throw Self.Error.invalidRequest
/host/spi-builder-workspace/Sources/AsyncHTTP/Loader.swift:10:10: note: protocol requires function 'load' with type '(HTTPRequest) async throws -> HTTPResponse'
8 | associatedtype Input
9 | associatedtype Output
10 | func load(_ input: Input) async throws -> Output
| `- note: protocol requires function 'load' with type '(HTTPRequest) async throws -> HTTPResponse'
11 | }
12 | #else
/host/spi-builder-workspace/Sources/AsyncHTTP/Loaders/URLSession.swift:21:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
19 | #endif
20 |
21 | extension URLSession {
| `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
22 | #if compiler(>=5.7)
23 | public var dataLoader: some Loader<URLRequest, (Data, URLResponse)> {
/host/spi-builder-workspace/Sources/AsyncHTTP/Loaders/URLSession.swift:43:33: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
41 | extension Loaders {
42 | public struct URLSessionData: Loader {
43 | private let urlSession: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
44 |
45 | init(urlSession: URLSession = .shared) {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/AsyncHTTP/Loaders/URLSession.swift:45:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
43 | private let urlSession: URLSession
44 |
45 | init(urlSession: URLSession = .shared) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
46 | self.urlSession = urlSession
47 | }
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/AsyncHTTP/Loaders/URLSession.swift:45:40: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
43 | private let urlSession: URLSession
44 |
45 | init(urlSession: URLSession = .shared) {
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
46 | self.urlSession = urlSession
47 | }
/host/spi-builder-workspace/Sources/AsyncHTTP/Loaders/URLSession.swift:49:37: error: cannot find type 'URLRequest' in scope
47 | }
48 |
49 | public func load(_ request: URLRequest) async throws -> (Data, URLResponse) {
| `- error: cannot find type 'URLRequest' in scope
50 | try await urlSession.data(for: request)
51 | }
/host/spi-builder-workspace/Sources/AsyncHTTP/Loaders/URLSession.swift:49:72: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
47 | }
48 |
49 | public 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.
50 | try await urlSession.data(for: request)
51 | }
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/AsyncHTTP/Loaders/URLSession.swift:42:19: error: type 'Loaders.URLSessionData' does not conform to protocol 'Loader'
40 |
41 | extension Loaders {
42 | public struct URLSessionData: Loader {
| |- error: type 'Loaders.URLSessionData' does not conform to protocol 'Loader'
| `- note: add stubs for conformance
43 | private let urlSession: URLSession
44 |
/host/spi-builder-workspace/Sources/AsyncHTTP/Loader.swift:8:20: note: protocol requires nested type 'Input'
6 | #if compiler(>=5.7)
7 | @rethrows public protocol Loader<Input, Output> {
8 | associatedtype Input
| `- note: protocol requires nested type 'Input'
9 | associatedtype Output
| `- note: protocol requires nested type 'Output'
10 | func load(_ input: Input) async throws -> Output
11 | }
/host/spi-builder-workspace/Sources/AsyncHTTP/Model/HTTPRequest.swift:60:30: error: cannot find type 'URLRequest' in scope
58 | }
59 |
60 | internal var urlRequest: URLRequest? {
| `- error: cannot find type 'URLRequest' in scope
61 | guard let url = url else {
62 | return nil
/host/spi-builder-workspace/Sources/AsyncHTTP/Model/HTTPRequest.swift:141:40: error: 'HTTPCookie' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
139 | }
140 |
141 | public mutating func set(cookies: [HTTPCookie]) {
| `- error: 'HTTPCookie' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
142 | let newHeaders = HTTPCookie.requestHeaderFields(with: cookies).mapKeys(HTTPHeader<String>.init(name:))
143 | headers.merge(newHeaders) { _, new in new }
Foundation.HTTPCookie:2:18: note: 'HTTPCookie' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPCookie = AnyObject
| `- note: 'HTTPCookie' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/AsyncHTTP/Model/HTTPRequest.swift:146:38: error: 'HTTPCookie' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
144 | }
145 |
146 | public mutating func add(cookie: HTTPCookie) {
| `- error: 'HTTPCookie' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
147 | addCookie(name: cookie.name, value: cookie.value)
148 | }
Foundation.HTTPCookie:2:18: note: 'HTTPCookie' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPCookie = AnyObject
| `- note: 'HTTPCookie' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/AsyncHTTP/Model/HTTPRequest.swift:187:1: warning: extension declares a conformance of imported type 'AnyHashable' to imported protocol 'Sendable'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
185 |
186 | extension URLComponents: @unchecked Sendable {}
187 | extension AnyHashable: @unchecked Sendable {}
| |- warning: extension declares a conformance of imported type 'AnyHashable' to imported protocol 'Sendable'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
| `- note: add '@retroactive' to silence this warning
188 |
/host/spi-builder-workspace/Sources/AsyncHTTP/Model/HTTPResponse.swift:11:26: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
9 | public struct HTTPResponse {
10 | public let request: HTTPRequest
11 | public let response: HTTPURLResponse
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
12 | public let body: Data
13 |
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/AsyncHTTP/Model/HTTPResponse.swift:38:26: error: 'HTTPCookie' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
36 | }
37 |
38 | public var cookies: [HTTPCookie]? {
| `- error: 'HTTPCookie' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
39 | let headers = self.headers.mapKeys(\.name)
40 | guard let url = url, !headers.isEmpty else {
Foundation.HTTPCookie:2:18: note: 'HTTPCookie' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPCookie = AnyObject
| `- note: 'HTTPCookie' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/AsyncHTTP/Plugins/Timeout.swift:14:35: error: cannot find type 'DispatchTimeInterval' in scope
12 | }
13 |
14 | public init?(maximumDuration: DispatchTimeInterval) {
| `- error: cannot find type 'DispatchTimeInterval' in scope
15 | guard let duration = TimeInterval(dispatchTimeInterval: maximumDuration) else {
16 | return nil
/host/spi-builder-workspace/Sources/AsyncHTTP/Plugins/Timeout.swift:103:33: error: cannot find type 'DispatchTimeInterval' in scope
101 |
102 | extension TimeInterval {
103 | init?(dispatchTimeInterval: DispatchTimeInterval) {
| `- error: cannot find type 'DispatchTimeInterval' in scope
104 | switch dispatchTimeInterval {
105 | case .seconds(let value):
[15/40] Compiling AsyncHTTP Deduplication.swift
/host/spi-builder-workspace/Sources/AsyncHTTP/Plugins/Timeout.swift:103:33: error: cannot find type 'DispatchTimeInterval' in scope
101 |
102 | extension TimeInterval {
103 | init?(dispatchTimeInterval: DispatchTimeInterval) {
| `- error: cannot find type 'DispatchTimeInterval' in scope
104 | switch dispatchTimeInterval {
105 | case .seconds(let value):
[16/40] Compiling AsyncHTTP Delay.swift
/host/spi-builder-workspace/Sources/AsyncHTTP/Plugins/Timeout.swift:103:33: error: cannot find type 'DispatchTimeInterval' in scope
101 |
102 | extension TimeInterval {
103 | init?(dispatchTimeInterval: DispatchTimeInterval) {
| `- error: cannot find type 'DispatchTimeInterval' in scope
104 | switch dispatchTimeInterval {
105 | case .seconds(let value):
[17/40] Compiling AsyncHTTP IdentifyRequests.swift
/host/spi-builder-workspace/Sources/AsyncHTTP/Plugins/Timeout.swift:103:33: error: cannot find type 'DispatchTimeInterval' in scope
101 |
102 | extension TimeInterval {
103 | init?(dispatchTimeInterval: DispatchTimeInterval) {
| `- error: cannot find type 'DispatchTimeInterval' in scope
104 | switch dispatchTimeInterval {
105 | case .seconds(let value):
[18/40] Compiling AsyncHTTP Retry.swift
/host/spi-builder-workspace/Sources/AsyncHTTP/Plugins/Timeout.swift:103:33: error: cannot find type 'DispatchTimeInterval' in scope
101 |
102 | extension TimeInterval {
103 | init?(dispatchTimeInterval: DispatchTimeInterval) {
| `- error: cannot find type 'DispatchTimeInterval' in scope
104 | switch dispatchTimeInterval {
105 | case .seconds(let value):
[19/40] Compiling AsyncHTTP ServerEnvironment.swift
/host/spi-builder-workspace/Sources/AsyncHTTP/Plugins/Timeout.swift:14:35: error: cannot find type 'DispatchTimeInterval' in scope
12 | }
13 |
14 | public init?(maximumDuration: DispatchTimeInterval) {
| `- error: cannot find type 'DispatchTimeInterval' in scope
15 | guard let duration = TimeInterval(dispatchTimeInterval: maximumDuration) else {
16 | return nil
/host/spi-builder-workspace/Sources/AsyncHTTP/Plugins/Timeout.swift:103:33: error: cannot find type 'DispatchTimeInterval' in scope
101 |
102 | extension TimeInterval {
103 | init?(dispatchTimeInterval: DispatchTimeInterval) {
| `- error: cannot find type 'DispatchTimeInterval' in scope
104 | switch dispatchTimeInterval {
105 | case .seconds(let value):
/host/spi-builder-workspace/Sources/AsyncHTTP/Plugins/Timeout.swift:15:42: error: extraneous argument label 'dispatchTimeInterval:' in call
13 |
14 | public init?(maximumDuration: DispatchTimeInterval) {
15 | guard let duration = TimeInterval(dispatchTimeInterval: maximumDuration) else {
| `- error: extraneous argument label 'dispatchTimeInterval:' in call
16 | return nil
17 | }
[20/40] Compiling AsyncHTTP Throttle.swift
/host/spi-builder-workspace/Sources/AsyncHTTP/Plugins/Timeout.swift:14:35: error: cannot find type 'DispatchTimeInterval' in scope
12 | }
13 |
14 | public init?(maximumDuration: DispatchTimeInterval) {
| `- error: cannot find type 'DispatchTimeInterval' in scope
15 | guard let duration = TimeInterval(dispatchTimeInterval: maximumDuration) else {
16 | return nil
/host/spi-builder-workspace/Sources/AsyncHTTP/Plugins/Timeout.swift:103:33: error: cannot find type 'DispatchTimeInterval' in scope
101 |
102 | extension TimeInterval {
103 | init?(dispatchTimeInterval: DispatchTimeInterval) {
| `- error: cannot find type 'DispatchTimeInterval' in scope
104 | switch dispatchTimeInterval {
105 | case .seconds(let value):
/host/spi-builder-workspace/Sources/AsyncHTTP/Plugins/Timeout.swift:15:42: error: extraneous argument label 'dispatchTimeInterval:' in call
13 |
14 | public init?(maximumDuration: DispatchTimeInterval) {
15 | guard let duration = TimeInterval(dispatchTimeInterval: maximumDuration) else {
| `- error: extraneous argument label 'dispatchTimeInterval:' in call
16 | return nil
17 | }
[21/40] Compiling AsyncHTTP Timeout.swift
/host/spi-builder-workspace/Sources/AsyncHTTP/Plugins/Timeout.swift:14:35: error: cannot find type 'DispatchTimeInterval' in scope
12 | }
13 |
14 | public init?(maximumDuration: DispatchTimeInterval) {
| `- error: cannot find type 'DispatchTimeInterval' in scope
15 | guard let duration = TimeInterval(dispatchTimeInterval: maximumDuration) else {
16 | return nil
/host/spi-builder-workspace/Sources/AsyncHTTP/Plugins/Timeout.swift:103:33: error: cannot find type 'DispatchTimeInterval' in scope
101 |
102 | extension TimeInterval {
103 | init?(dispatchTimeInterval: DispatchTimeInterval) {
| `- error: cannot find type 'DispatchTimeInterval' in scope
104 | switch dispatchTimeInterval {
105 | case .seconds(let value):
/host/spi-builder-workspace/Sources/AsyncHTTP/Plugins/Timeout.swift:15:42: error: extraneous argument label 'dispatchTimeInterval:' in call
13 |
14 | public init?(maximumDuration: DispatchTimeInterval) {
15 | guard let duration = TimeInterval(dispatchTimeInterval: maximumDuration) else {
| `- error: extraneous argument label 'dispatchTimeInterval:' in call
16 | return nil
17 | }
[22/40] Compiling AsyncHTTP ValidateRequests.swift
/host/spi-builder-workspace/Sources/AsyncHTTP/Plugins/Timeout.swift:14:35: error: cannot find type 'DispatchTimeInterval' in scope
12 | }
13 |
14 | public init?(maximumDuration: DispatchTimeInterval) {
| `- error: cannot find type 'DispatchTimeInterval' in scope
15 | guard let duration = TimeInterval(dispatchTimeInterval: maximumDuration) else {
16 | return nil
/host/spi-builder-workspace/Sources/AsyncHTTP/Plugins/Timeout.swift:103:33: error: cannot find type 'DispatchTimeInterval' in scope
101 |
102 | extension TimeInterval {
103 | init?(dispatchTimeInterval: DispatchTimeInterval) {
| `- error: cannot find type 'DispatchTimeInterval' in scope
104 | switch dispatchTimeInterval {
105 | case .seconds(let value):
/host/spi-builder-workspace/Sources/AsyncHTTP/Plugins/Timeout.swift:15:42: error: extraneous argument label 'dispatchTimeInterval:' in call
13 |
14 | public init?(maximumDuration: DispatchTimeInterval) {
15 | guard let duration = TimeInterval(dispatchTimeInterval: maximumDuration) else {
| `- error: extraneous argument label 'dispatchTimeInterval:' in call
16 | return nil
17 | }
[23/40] Compiling AsyncHTTP HTTPStatus.swift
/host/spi-builder-workspace/Sources/AsyncHTTP/Model/HTTPStatus.swift:18:40: error: type 'HTTPURLResponse' (aka 'AnyObject') has no member 'localizedString'
16 | return "OK"
17 | case let value:
18 | return HTTPURLResponse.localizedString(forStatusCode: value).capitalized
| `- error: type 'HTTPURLResponse' (aka 'AnyObject') has no member 'localizedString'
19 | }
20 | }
[24/40] Compiling AsyncHTTP HTTPVersion.swift
/host/spi-builder-workspace/Sources/AsyncHTTP/Model/HTTPStatus.swift:18:40: error: type 'HTTPURLResponse' (aka 'AnyObject') has no member 'localizedString'
16 | return "OK"
17 | case let value:
18 | return HTTPURLResponse.localizedString(forStatusCode: value).capitalized
| `- error: type 'HTTPURLResponse' (aka 'AnyObject') has no member 'localizedString'
19 | }
20 | }
[25/40] Compiling AsyncHTTP MIMEType.swift
/host/spi-builder-workspace/Sources/AsyncHTTP/Model/HTTPStatus.swift:18:40: error: type 'HTTPURLResponse' (aka 'AnyObject') has no member 'localizedString'
16 | return "OK"
17 | case let value:
18 | return HTTPURLResponse.localizedString(forStatusCode: value).capitalized
| `- error: type 'HTTPURLResponse' (aka 'AnyObject') has no member 'localizedString'
19 | }
20 | }
[26/40] Compiling AsyncHTTP URIScheme.swift
/host/spi-builder-workspace/Sources/AsyncHTTP/Model/HTTPStatus.swift:18:40: error: type 'HTTPURLResponse' (aka 'AnyObject') has no member 'localizedString'
16 | return "OK"
17 | case let value:
18 | return HTTPURLResponse.localizedString(forStatusCode: value).capitalized
| `- error: type 'HTTPURLResponse' (aka 'AnyObject') has no member 'localizedString'
19 | }
20 | }
[27/40] Compiling AsyncHTTP HTTPHeader.swift
/host/spi-builder-workspace/Sources/AsyncHTTP/Model/HTTPRequest.swift:60:30: error: cannot find type 'URLRequest' in scope
58 | }
59 |
60 | internal var urlRequest: URLRequest? {
| `- error: cannot find type 'URLRequest' in scope
61 | guard let url = url else {
62 | return nil
/host/spi-builder-workspace/Sources/AsyncHTTP/Model/HTTPRequest.swift:141:40: error: 'HTTPCookie' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
139 | }
140 |
141 | public mutating func set(cookies: [HTTPCookie]) {
| `- error: 'HTTPCookie' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
142 | let newHeaders = HTTPCookie.requestHeaderFields(with: cookies).mapKeys(HTTPHeader<String>.init(name:))
143 | headers.merge(newHeaders) { _, new in new }
Foundation.HTTPCookie:2:18: note: 'HTTPCookie' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPCookie = AnyObject
| `- note: 'HTTPCookie' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/AsyncHTTP/Model/HTTPRequest.swift:146:38: error: 'HTTPCookie' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
144 | }
145 |
146 | public mutating func add(cookie: HTTPCookie) {
| `- error: 'HTTPCookie' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
147 | addCookie(name: cookie.name, value: cookie.value)
148 | }
Foundation.HTTPCookie:2:18: note: 'HTTPCookie' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPCookie = AnyObject
| `- note: 'HTTPCookie' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/AsyncHTTP/Model/HTTPRequest.swift:187:1: warning: extension declares a conformance of imported type 'AnyHashable' to imported protocol 'Sendable'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
185 |
186 | extension URLComponents: @unchecked Sendable {}
187 | extension AnyHashable: @unchecked Sendable {}
| |- warning: extension declares a conformance of imported type 'AnyHashable' to imported protocol 'Sendable'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
| `- note: add '@retroactive' to silence this warning
188 |
/host/spi-builder-workspace/Sources/AsyncHTTP/Model/HTTPRequest.swift:64:26: error: cannot find 'URLRequest' in scope
62 | return nil
63 | }
64 | var urlRequest = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
65 | urlRequest.httpMethod = method.httpFormatted()
66 | urlRequest.httpBody = body.content
/host/spi-builder-workspace/Sources/AsyncHTTP/Model/HTTPRequest.swift:142:37: error: type 'HTTPCookie' (aka 'AnyObject') has no member 'requestHeaderFields'
140 |
141 | public mutating func set(cookies: [HTTPCookie]) {
142 | let newHeaders = HTTPCookie.requestHeaderFields(with: cookies).mapKeys(HTTPHeader<String>.init(name:))
| `- error: type 'HTTPCookie' (aka 'AnyObject') has no member 'requestHeaderFields'
143 | headers.merge(newHeaders) { _, new in new }
144 | }
/host/spi-builder-workspace/Sources/AsyncHTTP/Model/HTTPRequest.swift:147:32: error: value of type 'HTTPCookie' (aka 'AnyObject') has no member 'name'
145 |
146 | public mutating func add(cookie: HTTPCookie) {
147 | addCookie(name: cookie.name, value: cookie.value)
| `- error: value of type 'HTTPCookie' (aka 'AnyObject') has no member 'name'
148 | }
149 |
/host/spi-builder-workspace/Sources/AsyncHTTP/Model/HTTPRequest.swift:147:52: error: value of type 'HTTPCookie' (aka 'AnyObject') has no member 'value'
145 |
146 | public mutating func add(cookie: HTTPCookie) {
147 | addCookie(name: cookie.name, value: cookie.value)
| `- error: value of type 'HTTPCookie' (aka 'AnyObject') has no member 'value'
148 | }
149 |
/host/spi-builder-workspace/Sources/AsyncHTTP/Model/HTTPResponse.swift:11:26: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
9 | public struct HTTPResponse {
10 | public let request: HTTPRequest
11 | public let response: HTTPURLResponse
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
12 | public let body: Data
13 |
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/AsyncHTTP/Model/HTTPResponse.swift:38:26: error: 'HTTPCookie' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
36 | }
37 |
38 | public var cookies: [HTTPCookie]? {
| `- error: 'HTTPCookie' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
39 | let headers = self.headers.mapKeys(\.name)
40 | guard let url = url, !headers.isEmpty else {
Foundation.HTTPCookie:2:18: note: 'HTTPCookie' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPCookie = AnyObject
| `- note: 'HTTPCookie' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/AsyncHTTP/Model/HTTPResponse.swift:23:35: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
21 |
22 | public var status: HTTPStatus {
23 | HTTPStatus(code: response.statusCode)
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
24 | }
25 |
/host/spi-builder-workspace/Sources/AsyncHTTP/Model/HTTPResponse.swift:27:18: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'url'
25 |
26 | public var url: URL? {
27 | response.url
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'url'
28 | }
29 |
/host/spi-builder-workspace/Sources/AsyncHTTP/Model/HTTPResponse.swift:31:18: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
29 |
30 | public var headers: [HTTPHeader<String>: String] {
31 | response.allHeaderFields.mapKeys { HTTPHeader<String>(name: $0.description) }.compactMapValues { $0 as? String }
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
32 | }
33 |
/host/spi-builder-workspace/Sources/AsyncHTTP/Model/HTTPResponse.swift:35:18: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
33 |
34 | public subscript(header header: HTTPHeader<String>) -> String? {
35 | response.value(forHTTPHeaderField: header.name)
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
36 | }
37 |
/host/spi-builder-workspace/Sources/AsyncHTTP/Model/HTTPResponse.swift:43:27: error: type 'HTTPCookie' (aka 'AnyObject') has no member 'cookies'
41 | return nil
42 | }
43 | return HTTPCookie.cookies(withResponseHeaderFields: headers, for: url)
| `- error: type 'HTTPCookie' (aka 'AnyObject') has no member 'cookies'
44 | }
45 | }
[28/40] Compiling AsyncHTTP HTTPMethod.swift
/host/spi-builder-workspace/Sources/AsyncHTTP/Model/HTTPRequest.swift:60:30: error: cannot find type 'URLRequest' in scope
58 | }
59 |
60 | internal var urlRequest: URLRequest? {
| `- error: cannot find type 'URLRequest' in scope
61 | guard let url = url else {
62 | return nil
/host/spi-builder-workspace/Sources/AsyncHTTP/Model/HTTPRequest.swift:141:40: error: 'HTTPCookie' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
139 | }
140 |
141 | public mutating func set(cookies: [HTTPCookie]) {
| `- error: 'HTTPCookie' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
142 | let newHeaders = HTTPCookie.requestHeaderFields(with: cookies).mapKeys(HTTPHeader<String>.init(name:))
143 | headers.merge(newHeaders) { _, new in new }
Foundation.HTTPCookie:2:18: note: 'HTTPCookie' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPCookie = AnyObject
| `- note: 'HTTPCookie' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/AsyncHTTP/Model/HTTPRequest.swift:146:38: error: 'HTTPCookie' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
144 | }
145 |
146 | public mutating func add(cookie: HTTPCookie) {
| `- error: 'HTTPCookie' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
147 | addCookie(name: cookie.name, value: cookie.value)
148 | }
Foundation.HTTPCookie:2:18: note: 'HTTPCookie' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPCookie = AnyObject
| `- note: 'HTTPCookie' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/AsyncHTTP/Model/HTTPRequest.swift:187:1: warning: extension declares a conformance of imported type 'AnyHashable' to imported protocol 'Sendable'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
185 |
186 | extension URLComponents: @unchecked Sendable {}
187 | extension AnyHashable: @unchecked Sendable {}
| |- warning: extension declares a conformance of imported type 'AnyHashable' to imported protocol 'Sendable'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
| `- note: add '@retroactive' to silence this warning
188 |
/host/spi-builder-workspace/Sources/AsyncHTTP/Model/HTTPRequest.swift:64:26: error: cannot find 'URLRequest' in scope
62 | return nil
63 | }
64 | var urlRequest = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
65 | urlRequest.httpMethod = method.httpFormatted()
66 | urlRequest.httpBody = body.content
/host/spi-builder-workspace/Sources/AsyncHTTP/Model/HTTPRequest.swift:142:37: error: type 'HTTPCookie' (aka 'AnyObject') has no member 'requestHeaderFields'
140 |
141 | public mutating func set(cookies: [HTTPCookie]) {
142 | let newHeaders = HTTPCookie.requestHeaderFields(with: cookies).mapKeys(HTTPHeader<String>.init(name:))
| `- error: type 'HTTPCookie' (aka 'AnyObject') has no member 'requestHeaderFields'
143 | headers.merge(newHeaders) { _, new in new }
144 | }
/host/spi-builder-workspace/Sources/AsyncHTTP/Model/HTTPRequest.swift:147:32: error: value of type 'HTTPCookie' (aka 'AnyObject') has no member 'name'
145 |
146 | public mutating func add(cookie: HTTPCookie) {
147 | addCookie(name: cookie.name, value: cookie.value)
| `- error: value of type 'HTTPCookie' (aka 'AnyObject') has no member 'name'
148 | }
149 |
/host/spi-builder-workspace/Sources/AsyncHTTP/Model/HTTPRequest.swift:147:52: error: value of type 'HTTPCookie' (aka 'AnyObject') has no member 'value'
145 |
146 | public mutating func add(cookie: HTTPCookie) {
147 | addCookie(name: cookie.name, value: cookie.value)
| `- error: value of type 'HTTPCookie' (aka 'AnyObject') has no member 'value'
148 | }
149 |
/host/spi-builder-workspace/Sources/AsyncHTTP/Model/HTTPResponse.swift:11:26: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
9 | public struct HTTPResponse {
10 | public let request: HTTPRequest
11 | public let response: HTTPURLResponse
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
12 | public let body: Data
13 |
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/AsyncHTTP/Model/HTTPResponse.swift:38:26: error: 'HTTPCookie' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
36 | }
37 |
38 | public var cookies: [HTTPCookie]? {
| `- error: 'HTTPCookie' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
39 | let headers = self.headers.mapKeys(\.name)
40 | guard let url = url, !headers.isEmpty else {
Foundation.HTTPCookie:2:18: note: 'HTTPCookie' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPCookie = AnyObject
| `- note: 'HTTPCookie' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/AsyncHTTP/Model/HTTPResponse.swift:23:35: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
21 |
22 | public var status: HTTPStatus {
23 | HTTPStatus(code: response.statusCode)
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
24 | }
25 |
/host/spi-builder-workspace/Sources/AsyncHTTP/Model/HTTPResponse.swift:27:18: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'url'
25 |
26 | public var url: URL? {
27 | response.url
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'url'
28 | }
29 |
/host/spi-builder-workspace/Sources/AsyncHTTP/Model/HTTPResponse.swift:31:18: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
29 |
30 | public var headers: [HTTPHeader<String>: String] {
31 | response.allHeaderFields.mapKeys { HTTPHeader<String>(name: $0.description) }.compactMapValues { $0 as? String }
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
32 | }
33 |
/host/spi-builder-workspace/Sources/AsyncHTTP/Model/HTTPResponse.swift:35:18: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
33 |
34 | public subscript(header header: HTTPHeader<String>) -> String? {
35 | response.value(forHTTPHeaderField: header.name)
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
36 | }
37 |
/host/spi-builder-workspace/Sources/AsyncHTTP/Model/HTTPResponse.swift:43:27: error: type 'HTTPCookie' (aka 'AnyObject') has no member 'cookies'
41 | return nil
42 | }
43 | return HTTPCookie.cookies(withResponseHeaderFields: headers, for: url)
| `- error: type 'HTTPCookie' (aka 'AnyObject') has no member 'cookies'
44 | }
45 | }
[29/40] Compiling AsyncHTTP HTTPRequest.swift
/host/spi-builder-workspace/Sources/AsyncHTTP/Model/HTTPRequest.swift:60:30: error: cannot find type 'URLRequest' in scope
58 | }
59 |
60 | internal var urlRequest: URLRequest? {
| `- error: cannot find type 'URLRequest' in scope
61 | guard let url = url else {
62 | return nil
/host/spi-builder-workspace/Sources/AsyncHTTP/Model/HTTPRequest.swift:141:40: error: 'HTTPCookie' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
139 | }
140 |
141 | public mutating func set(cookies: [HTTPCookie]) {
| `- error: 'HTTPCookie' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
142 | let newHeaders = HTTPCookie.requestHeaderFields(with: cookies).mapKeys(HTTPHeader<String>.init(name:))
143 | headers.merge(newHeaders) { _, new in new }
Foundation.HTTPCookie:2:18: note: 'HTTPCookie' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPCookie = AnyObject
| `- note: 'HTTPCookie' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/AsyncHTTP/Model/HTTPRequest.swift:146:38: error: 'HTTPCookie' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
144 | }
145 |
146 | public mutating func add(cookie: HTTPCookie) {
| `- error: 'HTTPCookie' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
147 | addCookie(name: cookie.name, value: cookie.value)
148 | }
Foundation.HTTPCookie:2:18: note: 'HTTPCookie' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPCookie = AnyObject
| `- note: 'HTTPCookie' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/AsyncHTTP/Model/HTTPRequest.swift:187:1: warning: extension declares a conformance of imported type 'AnyHashable' to imported protocol 'Sendable'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
185 |
186 | extension URLComponents: @unchecked Sendable {}
187 | extension AnyHashable: @unchecked Sendable {}
| |- warning: extension declares a conformance of imported type 'AnyHashable' to imported protocol 'Sendable'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
| `- note: add '@retroactive' to silence this warning
188 |
/host/spi-builder-workspace/Sources/AsyncHTTP/Model/HTTPRequest.swift:64:26: error: cannot find 'URLRequest' in scope
62 | return nil
63 | }
64 | var urlRequest = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
65 | urlRequest.httpMethod = method.httpFormatted()
66 | urlRequest.httpBody = body.content
/host/spi-builder-workspace/Sources/AsyncHTTP/Model/HTTPRequest.swift:142:37: error: type 'HTTPCookie' (aka 'AnyObject') has no member 'requestHeaderFields'
140 |
141 | public mutating func set(cookies: [HTTPCookie]) {
142 | let newHeaders = HTTPCookie.requestHeaderFields(with: cookies).mapKeys(HTTPHeader<String>.init(name:))
| `- error: type 'HTTPCookie' (aka 'AnyObject') has no member 'requestHeaderFields'
143 | headers.merge(newHeaders) { _, new in new }
144 | }
/host/spi-builder-workspace/Sources/AsyncHTTP/Model/HTTPRequest.swift:147:32: error: value of type 'HTTPCookie' (aka 'AnyObject') has no member 'name'
145 |
146 | public mutating func add(cookie: HTTPCookie) {
147 | addCookie(name: cookie.name, value: cookie.value)
| `- error: value of type 'HTTPCookie' (aka 'AnyObject') has no member 'name'
148 | }
149 |
/host/spi-builder-workspace/Sources/AsyncHTTP/Model/HTTPRequest.swift:147:52: error: value of type 'HTTPCookie' (aka 'AnyObject') has no member 'value'
145 |
146 | public mutating func add(cookie: HTTPCookie) {
147 | addCookie(name: cookie.name, value: cookie.value)
| `- error: value of type 'HTTPCookie' (aka 'AnyObject') has no member 'value'
148 | }
149 |
/host/spi-builder-workspace/Sources/AsyncHTTP/Model/HTTPResponse.swift:11:26: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
9 | public struct HTTPResponse {
10 | public let request: HTTPRequest
11 | public let response: HTTPURLResponse
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
12 | public let body: Data
13 |
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/AsyncHTTP/Model/HTTPResponse.swift:38:26: error: 'HTTPCookie' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
36 | }
37 |
38 | public var cookies: [HTTPCookie]? {
| `- error: 'HTTPCookie' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
39 | let headers = self.headers.mapKeys(\.name)
40 | guard let url = url, !headers.isEmpty else {
Foundation.HTTPCookie:2:18: note: 'HTTPCookie' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPCookie = AnyObject
| `- note: 'HTTPCookie' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/AsyncHTTP/Model/HTTPResponse.swift:23:35: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
21 |
22 | public var status: HTTPStatus {
23 | HTTPStatus(code: response.statusCode)
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
24 | }
25 |
/host/spi-builder-workspace/Sources/AsyncHTTP/Model/HTTPResponse.swift:27:18: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'url'
25 |
26 | public var url: URL? {
27 | response.url
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'url'
28 | }
29 |
/host/spi-builder-workspace/Sources/AsyncHTTP/Model/HTTPResponse.swift:31:18: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
29 |
30 | public var headers: [HTTPHeader<String>: String] {
31 | response.allHeaderFields.mapKeys { HTTPHeader<String>(name: $0.description) }.compactMapValues { $0 as? String }
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
32 | }
33 |
/host/spi-builder-workspace/Sources/AsyncHTTP/Model/HTTPResponse.swift:35:18: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
33 |
34 | public subscript(header header: HTTPHeader<String>) -> String? {
35 | response.value(forHTTPHeaderField: header.name)
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
36 | }
37 |
/host/spi-builder-workspace/Sources/AsyncHTTP/Model/HTTPResponse.swift:43:27: error: type 'HTTPCookie' (aka 'AnyObject') has no member 'cookies'
41 | return nil
42 | }
43 | return HTTPCookie.cookies(withResponseHeaderFields: headers, for: url)
| `- error: type 'HTTPCookie' (aka 'AnyObject') has no member 'cookies'
44 | }
45 | }
[30/40] Compiling AsyncHTTP HTTPRequestBody.swift
/host/spi-builder-workspace/Sources/AsyncHTTP/Model/HTTPRequest.swift:60:30: error: cannot find type 'URLRequest' in scope
58 | }
59 |
60 | internal var urlRequest: URLRequest? {
| `- error: cannot find type 'URLRequest' in scope
61 | guard let url = url else {
62 | return nil
/host/spi-builder-workspace/Sources/AsyncHTTP/Model/HTTPRequest.swift:141:40: error: 'HTTPCookie' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
139 | }
140 |
141 | public mutating func set(cookies: [HTTPCookie]) {
| `- error: 'HTTPCookie' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
142 | let newHeaders = HTTPCookie.requestHeaderFields(with: cookies).mapKeys(HTTPHeader<String>.init(name:))
143 | headers.merge(newHeaders) { _, new in new }
Foundation.HTTPCookie:2:18: note: 'HTTPCookie' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPCookie = AnyObject
| `- note: 'HTTPCookie' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/AsyncHTTP/Model/HTTPRequest.swift:146:38: error: 'HTTPCookie' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
144 | }
145 |
146 | public mutating func add(cookie: HTTPCookie) {
| `- error: 'HTTPCookie' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
147 | addCookie(name: cookie.name, value: cookie.value)
148 | }
Foundation.HTTPCookie:2:18: note: 'HTTPCookie' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPCookie = AnyObject
| `- note: 'HTTPCookie' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/AsyncHTTP/Model/HTTPRequest.swift:187:1: warning: extension declares a conformance of imported type 'AnyHashable' to imported protocol 'Sendable'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
185 |
186 | extension URLComponents: @unchecked Sendable {}
187 | extension AnyHashable: @unchecked Sendable {}
| |- warning: extension declares a conformance of imported type 'AnyHashable' to imported protocol 'Sendable'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
| `- note: add '@retroactive' to silence this warning
188 |
/host/spi-builder-workspace/Sources/AsyncHTTP/Model/HTTPRequest.swift:64:26: error: cannot find 'URLRequest' in scope
62 | return nil
63 | }
64 | var urlRequest = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
65 | urlRequest.httpMethod = method.httpFormatted()
66 | urlRequest.httpBody = body.content
/host/spi-builder-workspace/Sources/AsyncHTTP/Model/HTTPRequest.swift:142:37: error: type 'HTTPCookie' (aka 'AnyObject') has no member 'requestHeaderFields'
140 |
141 | public mutating func set(cookies: [HTTPCookie]) {
142 | let newHeaders = HTTPCookie.requestHeaderFields(with: cookies).mapKeys(HTTPHeader<String>.init(name:))
| `- error: type 'HTTPCookie' (aka 'AnyObject') has no member 'requestHeaderFields'
143 | headers.merge(newHeaders) { _, new in new }
144 | }
/host/spi-builder-workspace/Sources/AsyncHTTP/Model/HTTPRequest.swift:147:32: error: value of type 'HTTPCookie' (aka 'AnyObject') has no member 'name'
145 |
146 | public mutating func add(cookie: HTTPCookie) {
147 | addCookie(name: cookie.name, value: cookie.value)
| `- error: value of type 'HTTPCookie' (aka 'AnyObject') has no member 'name'
148 | }
149 |
/host/spi-builder-workspace/Sources/AsyncHTTP/Model/HTTPRequest.swift:147:52: error: value of type 'HTTPCookie' (aka 'AnyObject') has no member 'value'
145 |
146 | public mutating func add(cookie: HTTPCookie) {
147 | addCookie(name: cookie.name, value: cookie.value)
| `- error: value of type 'HTTPCookie' (aka 'AnyObject') has no member 'value'
148 | }
149 |
/host/spi-builder-workspace/Sources/AsyncHTTP/Model/HTTPResponse.swift:11:26: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
9 | public struct HTTPResponse {
10 | public let request: HTTPRequest
11 | public let response: HTTPURLResponse
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
12 | public let body: Data
13 |
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/AsyncHTTP/Model/HTTPResponse.swift:38:26: error: 'HTTPCookie' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
36 | }
37 |
38 | public var cookies: [HTTPCookie]? {
| `- error: 'HTTPCookie' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
39 | let headers = self.headers.mapKeys(\.name)
40 | guard let url = url, !headers.isEmpty else {
Foundation.HTTPCookie:2:18: note: 'HTTPCookie' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPCookie = AnyObject
| `- note: 'HTTPCookie' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/AsyncHTTP/Model/HTTPResponse.swift:23:35: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
21 |
22 | public var status: HTTPStatus {
23 | HTTPStatus(code: response.statusCode)
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
24 | }
25 |
/host/spi-builder-workspace/Sources/AsyncHTTP/Model/HTTPResponse.swift:27:18: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'url'
25 |
26 | public var url: URL? {
27 | response.url
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'url'
28 | }
29 |
/host/spi-builder-workspace/Sources/AsyncHTTP/Model/HTTPResponse.swift:31:18: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
29 |
30 | public var headers: [HTTPHeader<String>: String] {
31 | response.allHeaderFields.mapKeys { HTTPHeader<String>(name: $0.description) }.compactMapValues { $0 as? String }
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
32 | }
33 |
/host/spi-builder-workspace/Sources/AsyncHTTP/Model/HTTPResponse.swift:35:18: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
33 |
34 | public subscript(header header: HTTPHeader<String>) -> String? {
35 | response.value(forHTTPHeaderField: header.name)
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
36 | }
37 |
/host/spi-builder-workspace/Sources/AsyncHTTP/Model/HTTPResponse.swift:43:27: error: type 'HTTPCookie' (aka 'AnyObject') has no member 'cookies'
41 | return nil
42 | }
43 | return HTTPCookie.cookies(withResponseHeaderFields: headers, for: url)
| `- error: type 'HTTPCookie' (aka 'AnyObject') has no member 'cookies'
44 | }
45 | }
[31/40] Compiling AsyncHTTP HTTPResponse.swift
/host/spi-builder-workspace/Sources/AsyncHTTP/Model/HTTPRequest.swift:60:30: error: cannot find type 'URLRequest' in scope
58 | }
59 |
60 | internal var urlRequest: URLRequest? {
| `- error: cannot find type 'URLRequest' in scope
61 | guard let url = url else {
62 | return nil
/host/spi-builder-workspace/Sources/AsyncHTTP/Model/HTTPRequest.swift:141:40: error: 'HTTPCookie' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
139 | }
140 |
141 | public mutating func set(cookies: [HTTPCookie]) {
| `- error: 'HTTPCookie' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
142 | let newHeaders = HTTPCookie.requestHeaderFields(with: cookies).mapKeys(HTTPHeader<String>.init(name:))
143 | headers.merge(newHeaders) { _, new in new }
Foundation.HTTPCookie:2:18: note: 'HTTPCookie' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPCookie = AnyObject
| `- note: 'HTTPCookie' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/AsyncHTTP/Model/HTTPRequest.swift:146:38: error: 'HTTPCookie' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
144 | }
145 |
146 | public mutating func add(cookie: HTTPCookie) {
| `- error: 'HTTPCookie' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
147 | addCookie(name: cookie.name, value: cookie.value)
148 | }
Foundation.HTTPCookie:2:18: note: 'HTTPCookie' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPCookie = AnyObject
| `- note: 'HTTPCookie' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/AsyncHTTP/Model/HTTPRequest.swift:187:1: warning: extension declares a conformance of imported type 'AnyHashable' to imported protocol 'Sendable'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
185 |
186 | extension URLComponents: @unchecked Sendable {}
187 | extension AnyHashable: @unchecked Sendable {}
| |- warning: extension declares a conformance of imported type 'AnyHashable' to imported protocol 'Sendable'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
| `- note: add '@retroactive' to silence this warning
188 |
/host/spi-builder-workspace/Sources/AsyncHTTP/Model/HTTPRequest.swift:64:26: error: cannot find 'URLRequest' in scope
62 | return nil
63 | }
64 | var urlRequest = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
65 | urlRequest.httpMethod = method.httpFormatted()
66 | urlRequest.httpBody = body.content
/host/spi-builder-workspace/Sources/AsyncHTTP/Model/HTTPRequest.swift:142:37: error: type 'HTTPCookie' (aka 'AnyObject') has no member 'requestHeaderFields'
140 |
141 | public mutating func set(cookies: [HTTPCookie]) {
142 | let newHeaders = HTTPCookie.requestHeaderFields(with: cookies).mapKeys(HTTPHeader<String>.init(name:))
| `- error: type 'HTTPCookie' (aka 'AnyObject') has no member 'requestHeaderFields'
143 | headers.merge(newHeaders) { _, new in new }
144 | }
/host/spi-builder-workspace/Sources/AsyncHTTP/Model/HTTPRequest.swift:147:32: error: value of type 'HTTPCookie' (aka 'AnyObject') has no member 'name'
145 |
146 | public mutating func add(cookie: HTTPCookie) {
147 | addCookie(name: cookie.name, value: cookie.value)
| `- error: value of type 'HTTPCookie' (aka 'AnyObject') has no member 'name'
148 | }
149 |
/host/spi-builder-workspace/Sources/AsyncHTTP/Model/HTTPRequest.swift:147:52: error: value of type 'HTTPCookie' (aka 'AnyObject') has no member 'value'
145 |
146 | public mutating func add(cookie: HTTPCookie) {
147 | addCookie(name: cookie.name, value: cookie.value)
| `- error: value of type 'HTTPCookie' (aka 'AnyObject') has no member 'value'
148 | }
149 |
/host/spi-builder-workspace/Sources/AsyncHTTP/Model/HTTPResponse.swift:11:26: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
9 | public struct HTTPResponse {
10 | public let request: HTTPRequest
11 | public let response: HTTPURLResponse
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
12 | public let body: Data
13 |
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/AsyncHTTP/Model/HTTPResponse.swift:38:26: error: 'HTTPCookie' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
36 | }
37 |
38 | public var cookies: [HTTPCookie]? {
| `- error: 'HTTPCookie' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
39 | let headers = self.headers.mapKeys(\.name)
40 | guard let url = url, !headers.isEmpty else {
Foundation.HTTPCookie:2:18: note: 'HTTPCookie' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPCookie = AnyObject
| `- note: 'HTTPCookie' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/AsyncHTTP/Model/HTTPResponse.swift:23:35: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
21 |
22 | public var status: HTTPStatus {
23 | HTTPStatus(code: response.statusCode)
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
24 | }
25 |
/host/spi-builder-workspace/Sources/AsyncHTTP/Model/HTTPResponse.swift:27:18: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'url'
25 |
26 | public var url: URL? {
27 | response.url
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'url'
28 | }
29 |
/host/spi-builder-workspace/Sources/AsyncHTTP/Model/HTTPResponse.swift:31:18: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
29 |
30 | public var headers: [HTTPHeader<String>: String] {
31 | response.allHeaderFields.mapKeys { HTTPHeader<String>(name: $0.description) }.compactMapValues { $0 as? String }
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
32 | }
33 |
/host/spi-builder-workspace/Sources/AsyncHTTP/Model/HTTPResponse.swift:35:18: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
33 |
34 | public subscript(header header: HTTPHeader<String>) -> String? {
35 | response.value(forHTTPHeaderField: header.name)
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
36 | }
37 |
/host/spi-builder-workspace/Sources/AsyncHTTP/Model/HTTPResponse.swift:43:27: error: type 'HTTPCookie' (aka 'AnyObject') has no member 'cookies'
41 | return nil
42 | }
43 | return HTTPCookie.cookies(withResponseHeaderFields: headers, for: url)
| `- error: type 'HTTPCookie' (aka 'AnyObject') has no member 'cookies'
44 | }
45 | }
[32/40] Compiling AsyncHTTP AsyncHTTP.swift
[33/40] Compiling AsyncHTTP Formatter.swift
[34/40] Compiling AsyncHTTP HTTPRequestFormatter.swift
[35/40] Compiling AsyncHTTP HTTPResponseFormatter.swift
[36/40] Compiling AsyncHTTP Loader.swift
[37/40] Compiling AsyncHTTP Combine.swift
[38/40] Compiling AsyncHTTP Converted.swift
[39/40] Compiling AsyncHTTP HTTPFormattible.swift
[40/40] Compiling AsyncHTTP Sorted.swift
BUILD FAILURE 6.1 wasm