Build Information
Failed to build Endpoints, reference 3.0.2 (ea770e
), with Swift 6.1 for Wasm on 29 May 2025 07:14:22 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4609320-2":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1
Build Log
17 | configuration: .default,
18 | delegate: URLSessionDelegateHandler(),
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/Async/Session.swift:16:40: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
14 | public init(
15 | with client: CL,
16 | using urlSession: URLSession = URLSession(
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
17 | configuration: .default,
18 | delegate: URLSessionDelegateHandler(),
/host/spi-builder-workspace/Sources/Async/Session.swift:17:29: error: cannot infer contextual base in reference to member 'default'
15 | with client: CL,
16 | using urlSession: URLSession = URLSession(
17 | configuration: .default,
| `- error: cannot infer contextual base in reference to member 'default'
18 | delegate: URLSessionDelegateHandler(),
19 | delegateQueue: nil
/host/spi-builder-workspace/Sources/Async/Session.swift:19:28: error: 'nil' requires a contextual type
17 | configuration: .default,
18 | delegate: URLSessionDelegateHandler(),
19 | delegateQueue: nil
| `- error: 'nil' requires a contextual type
20 | )
21 | ) {
/host/spi-builder-workspace/Sources/Async/Session.swift:27:84: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
25 |
26 | @discardableResult
27 | open func dataTask<C: Call>(for call: C) async throws -> (C.Parser.OutputType, HTTPURLResponse) {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
28 | let urlRequest = try await client.encode(call: call)
29 |
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/Async/Session.swift:76:29: error: cannot find type 'URLRequest' in scope
74 | task: URLSessionTask,
75 | willPerformHTTPRedirection response: HTTPURLResponse,
76 | newRequest request: URLRequest,
| `- error: cannot find type 'URLRequest' in scope
77 | completionHandler: @escaping (URLRequest?) -> Void
78 | ) {
/host/spi-builder-workspace/Sources/Async/Session.swift:77:39: error: cannot find type 'URLRequest' in scope
75 | willPerformHTTPRedirection response: HTTPURLResponse,
76 | newRequest request: URLRequest,
77 | completionHandler: @escaping (URLRequest?) -> Void
| `- error: cannot find type 'URLRequest' in scope
78 | ) {
79 | let message = "\(response.url?.absoluteString ?? "") -> redirected to -> \(request.url?.absoluteString ?? "")"
/host/spi-builder-workspace/Sources/Async/Session.swift:73:20: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
71 | public class URLSessionDelegateHandler: NSObject, URLSessionTaskDelegate {
72 | public func urlSession(
73 | _ session: URLSession,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
74 | task: URLSessionTask,
75 | willPerformHTTPRedirection response: HTTPURLResponse,
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/Async/Session.swift:74:15: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
72 | public func urlSession(
73 | _ session: URLSession,
74 | task: URLSessionTask,
| `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
75 | willPerformHTTPRedirection response: HTTPURLResponse,
76 | newRequest request: URLRequest,
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionTask = AnyObject
| `- note: 'URLSessionTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Async/Session.swift:75:46: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
73 | _ session: URLSession,
74 | task: URLSessionTask,
75 | willPerformHTTPRedirection response: HTTPURLResponse,
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
76 | newRequest request: URLRequest,
77 | completionHandler: @escaping (URLRequest?) -> Void
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/Async/Session.swift:71:51: error: cannot find type 'URLSessionTaskDelegate' in scope
69 | }
70 |
71 | public class URLSessionDelegateHandler: NSObject, URLSessionTaskDelegate {
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
72 | public func urlSession(
73 | _ session: URLSession,
/host/spi-builder-workspace/Sources/Async/Session.swift:30:53: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
28 | let urlRequest = try await client.encode(call: call)
29 |
30 | let (data, response) = try await urlSession.data(for: urlRequest)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
31 |
32 | guard let response = response as? HTTPURLResponse else {
/host/spi-builder-workspace/Sources/Async/Session.swift:34:17: error: cannot find 'Logger' in scope
32 | guard let response = response as? HTTPURLResponse else {
33 | if #available(iOS 14.0, macOS 11.0, tvOS 14.0, watchOS 7.0, visionOS 1.0, *) {
34 | Logger.default.debug("no response.")
| `- error: cannot find 'Logger' in scope
35 | } else {
36 | os_log("no response.", log: .default, type: .debug)
/host/spi-builder-workspace/Sources/Async/Session.swift:36:17: error: cannot find 'os_log' in scope
34 | Logger.default.debug("no response.")
35 | } else {
36 | os_log("no response.", log: .default, type: .debug)
| `- error: cannot find 'os_log' in scope
37 | }
38 | throw EndpointsError(
/host/spi-builder-workspace/Sources/Async/Session.swift:36:46: error: cannot infer contextual base in reference to member 'default'
34 | Logger.default.debug("no response.")
35 | } else {
36 | os_log("no response.", log: .default, type: .debug)
| `- error: cannot infer contextual base in reference to member 'default'
37 | }
38 | throw EndpointsError(
/host/spi-builder-workspace/Sources/Async/Session.swift:36:62: error: cannot infer contextual base in reference to member 'debug'
34 | Logger.default.debug("no response.")
35 | } else {
36 | os_log("no response.", log: .default, type: .debug)
| `- error: cannot infer contextual base in reference to member 'debug'
37 | }
38 | throw EndpointsError(
/host/spi-builder-workspace/Sources/Async/Session.swift:53:17: error: cannot find 'Logger' in scope
51 |
52 | if #available(iOS 14.0, macOS 11.0, tvOS 14.0, watchOS 7.0, visionOS 1.0, *) {
53 | Logger.default.debug("\(message, privacy: .private)")
| `- error: cannot find 'Logger' in scope
54 | } else {
55 | os_log("%s", log: .default, type: .debug, message)
/host/spi-builder-workspace/Sources/Async/Session.swift:53:60: error: extra argument 'privacy' in call
51 |
52 | if #available(iOS 14.0, macOS 11.0, tvOS 14.0, watchOS 7.0, visionOS 1.0, *) {
53 | Logger.default.debug("\(message, privacy: .private)")
| `- error: extra argument 'privacy' in call
54 | } else {
55 | os_log("%s", log: .default, type: .debug, message)
/host/spi-builder-workspace/Sources/Async/Session.swift:53:60: error: cannot infer contextual base in reference to member 'private'
51 |
52 | if #available(iOS 14.0, macOS 11.0, tvOS 14.0, watchOS 7.0, visionOS 1.0, *) {
53 | Logger.default.debug("\(message, privacy: .private)")
| `- error: cannot infer contextual base in reference to member 'private'
54 | } else {
55 | os_log("%s", log: .default, type: .debug, message)
/host/spi-builder-workspace/Sources/Async/Session.swift:55:17: error: cannot find 'os_log' in scope
53 | Logger.default.debug("\(message, privacy: .private)")
54 | } else {
55 | os_log("%s", log: .default, type: .debug, message)
| `- error: cannot find 'os_log' in scope
56 | }
57 | }
/host/spi-builder-workspace/Sources/Async/Session.swift:55:36: error: cannot infer contextual base in reference to member 'default'
53 | Logger.default.debug("\(message, privacy: .private)")
54 | } else {
55 | os_log("%s", log: .default, type: .debug, message)
| `- error: cannot infer contextual base in reference to member 'default'
56 | }
57 | }
/host/spi-builder-workspace/Sources/Async/Session.swift:55:52: error: cannot infer contextual base in reference to member 'debug'
53 | Logger.default.debug("\(message, privacy: .private)")
54 | } else {
55 | os_log("%s", log: .default, type: .debug, message)
| `- error: cannot infer contextual base in reference to member 'debug'
56 | }
57 | }
/host/spi-builder-workspace/Sources/Async/Session.swift:79:35: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'url'
77 | completionHandler: @escaping (URLRequest?) -> Void
78 | ) {
79 | let message = "\(response.url?.absoluteString ?? "") -> redirected to -> \(request.url?.absoluteString ?? "")"
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'url'
80 |
81 | if #available(iOS 14.0, macOS 11.0, tvOS 14.0, watchOS 7.0, visionOS 1.0, *) {
/host/spi-builder-workspace/Sources/Async/Session.swift:82:13: error: cannot find 'Logger' in scope
80 |
81 | if #available(iOS 14.0, macOS 11.0, tvOS 14.0, watchOS 7.0, visionOS 1.0, *) {
82 | Logger.default.debug("\(message, privacy: .private)")
| `- error: cannot find 'Logger' in scope
83 | } else {
84 | os_log("%s", log: .default, type: .debug, message)
/host/spi-builder-workspace/Sources/Async/Session.swift:82:56: error: extra argument 'privacy' in call
80 |
81 | if #available(iOS 14.0, macOS 11.0, tvOS 14.0, watchOS 7.0, visionOS 1.0, *) {
82 | Logger.default.debug("\(message, privacy: .private)")
| `- error: extra argument 'privacy' in call
83 | } else {
84 | os_log("%s", log: .default, type: .debug, message)
/host/spi-builder-workspace/Sources/Async/Session.swift:82:56: error: cannot infer contextual base in reference to member 'private'
80 |
81 | if #available(iOS 14.0, macOS 11.0, tvOS 14.0, watchOS 7.0, visionOS 1.0, *) {
82 | Logger.default.debug("\(message, privacy: .private)")
| `- error: cannot infer contextual base in reference to member 'private'
83 | } else {
84 | os_log("%s", log: .default, type: .debug, message)
/host/spi-builder-workspace/Sources/Async/Session.swift:84:13: error: cannot find 'os_log' in scope
82 | Logger.default.debug("\(message, privacy: .private)")
83 | } else {
84 | os_log("%s", log: .default, type: .debug, message)
| `- error: cannot find 'os_log' in scope
85 | }
86 |
/host/spi-builder-workspace/Sources/Async/Session.swift:84:32: error: cannot infer contextual base in reference to member 'default'
82 | Logger.default.debug("\(message, privacy: .private)")
83 | } else {
84 | os_log("%s", log: .default, type: .debug, message)
| `- error: cannot infer contextual base in reference to member 'default'
85 | }
86 |
/host/spi-builder-workspace/Sources/Async/Session.swift:84:48: error: cannot infer contextual base in reference to member 'debug'
82 | Logger.default.debug("\(message, privacy: .private)")
83 | } else {
84 | os_log("%s", log: .default, type: .debug, message)
| `- error: cannot infer contextual base in reference to member 'debug'
85 | }
86 |
[25/43] Compiling Endpoints Client.swift
/host/spi-builder-workspace/Sources/Async/AnyClient.swift:19:23: error: cannot find type 'URLRequest' in scope
17 | open func encode(
18 | call: some Call
19 | ) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
20 | var urlRequest = call.request.urlRequest
21 |
/host/spi-builder-workspace/Sources/Async/AnyClient.swift:30:19: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
28 |
29 | open func parse<C>(
30 | response: HTTPURLResponse?,
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
31 | data: Data?,
32 | for call: C
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/Async/AnyClient.swift:42:19: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
40 |
41 | open func validate(
42 | response: HTTPURLResponse?,
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
43 | data: Data?
44 | ) async throws {
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/Async/Client.swift:10:51: error: cannot find type 'URLRequest' in scope
8 | /// Converts a `Call` created for this client's Web API
9 | /// into a `URLRequest`.
10 | func encode<C: Call>(call: C) async throws -> URLRequest
| `- error: cannot find type 'URLRequest' in scope
11 |
12 | /// Converts the `URLSession`s result for a `Call` to
/host/spi-builder-workspace/Sources/Core/URLRequestEncodable.swift:10:21: error: cannot find type 'URLRequest' in scope
8 | public protocol URLRequestEncodable: CustomDebugStringConvertible {
9 | /// Returns an `URLRequest` configured with the data encapsulated by `self`.
10 | var urlRequest: URLRequest { get }
| `- error: cannot find type 'URLRequest' in scope
11 | }
12 |
/host/spi-builder-workspace/Sources/Async/Client.swift:17:19: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
15 | /// - throws: Any `Error` if `result` is considered invalid.
16 | func parse<C: Call>(
17 | response: HTTPURLResponse?,
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
18 | data: Data?,
19 | for call: C
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/Async/Session.swift:11:28: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
9 | public var debug = false
10 |
11 | public var urlSession: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
12 | public let client: CL
13 |
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/Async/Session.swift:16:27: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
14 | public init(
15 | with client: CL,
16 | using urlSession: URLSession = URLSession(
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
17 | configuration: .default,
18 | delegate: URLSessionDelegateHandler(),
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/Async/Session.swift:16:40: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
14 | public init(
15 | with client: CL,
16 | using urlSession: URLSession = URLSession(
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
17 | configuration: .default,
18 | delegate: URLSessionDelegateHandler(),
/host/spi-builder-workspace/Sources/Async/Session.swift:17:29: error: cannot infer contextual base in reference to member 'default'
15 | with client: CL,
16 | using urlSession: URLSession = URLSession(
17 | configuration: .default,
| `- error: cannot infer contextual base in reference to member 'default'
18 | delegate: URLSessionDelegateHandler(),
19 | delegateQueue: nil
/host/spi-builder-workspace/Sources/Async/Session.swift:19:28: error: 'nil' requires a contextual type
17 | configuration: .default,
18 | delegate: URLSessionDelegateHandler(),
19 | delegateQueue: nil
| `- error: 'nil' requires a contextual type
20 | )
21 | ) {
/host/spi-builder-workspace/Sources/Async/Session.swift:27:84: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
25 |
26 | @discardableResult
27 | open func dataTask<C: Call>(for call: C) async throws -> (C.Parser.OutputType, HTTPURLResponse) {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
28 | let urlRequest = try await client.encode(call: call)
29 |
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/Async/Session.swift:76:29: error: cannot find type 'URLRequest' in scope
74 | task: URLSessionTask,
75 | willPerformHTTPRedirection response: HTTPURLResponse,
76 | newRequest request: URLRequest,
| `- error: cannot find type 'URLRequest' in scope
77 | completionHandler: @escaping (URLRequest?) -> Void
78 | ) {
/host/spi-builder-workspace/Sources/Async/Session.swift:77:39: error: cannot find type 'URLRequest' in scope
75 | willPerformHTTPRedirection response: HTTPURLResponse,
76 | newRequest request: URLRequest,
77 | completionHandler: @escaping (URLRequest?) -> Void
| `- error: cannot find type 'URLRequest' in scope
78 | ) {
79 | let message = "\(response.url?.absoluteString ?? "") -> redirected to -> \(request.url?.absoluteString ?? "")"
/host/spi-builder-workspace/Sources/Async/Session.swift:73:20: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
71 | public class URLSessionDelegateHandler: NSObject, URLSessionTaskDelegate {
72 | public func urlSession(
73 | _ session: URLSession,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
74 | task: URLSessionTask,
75 | willPerformHTTPRedirection response: HTTPURLResponse,
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/Async/Session.swift:74:15: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
72 | public func urlSession(
73 | _ session: URLSession,
74 | task: URLSessionTask,
| `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
75 | willPerformHTTPRedirection response: HTTPURLResponse,
76 | newRequest request: URLRequest,
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionTask = AnyObject
| `- note: 'URLSessionTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Async/Session.swift:75:46: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
73 | _ session: URLSession,
74 | task: URLSessionTask,
75 | willPerformHTTPRedirection response: HTTPURLResponse,
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
76 | newRequest request: URLRequest,
77 | completionHandler: @escaping (URLRequest?) -> Void
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/Async/Session.swift:71:51: error: cannot find type 'URLSessionTaskDelegate' in scope
69 | }
70 |
71 | public class URLSessionDelegateHandler: NSObject, URLSessionTaskDelegate {
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
72 | public func urlSession(
73 | _ session: URLSession,
/host/spi-builder-workspace/Sources/Async/Session.swift:30:53: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
28 | let urlRequest = try await client.encode(call: call)
29 |
30 | let (data, response) = try await urlSession.data(for: urlRequest)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
31 |
32 | guard let response = response as? HTTPURLResponse else {
/host/spi-builder-workspace/Sources/Async/Session.swift:34:17: error: cannot find 'Logger' in scope
32 | guard let response = response as? HTTPURLResponse else {
33 | if #available(iOS 14.0, macOS 11.0, tvOS 14.0, watchOS 7.0, visionOS 1.0, *) {
34 | Logger.default.debug("no response.")
| `- error: cannot find 'Logger' in scope
35 | } else {
36 | os_log("no response.", log: .default, type: .debug)
/host/spi-builder-workspace/Sources/Async/Session.swift:36:17: error: cannot find 'os_log' in scope
34 | Logger.default.debug("no response.")
35 | } else {
36 | os_log("no response.", log: .default, type: .debug)
| `- error: cannot find 'os_log' in scope
37 | }
38 | throw EndpointsError(
/host/spi-builder-workspace/Sources/Async/Session.swift:36:46: error: cannot infer contextual base in reference to member 'default'
34 | Logger.default.debug("no response.")
35 | } else {
36 | os_log("no response.", log: .default, type: .debug)
| `- error: cannot infer contextual base in reference to member 'default'
37 | }
38 | throw EndpointsError(
/host/spi-builder-workspace/Sources/Async/Session.swift:36:62: error: cannot infer contextual base in reference to member 'debug'
34 | Logger.default.debug("no response.")
35 | } else {
36 | os_log("no response.", log: .default, type: .debug)
| `- error: cannot infer contextual base in reference to member 'debug'
37 | }
38 | throw EndpointsError(
/host/spi-builder-workspace/Sources/Async/Session.swift:53:17: error: cannot find 'Logger' in scope
51 |
52 | if #available(iOS 14.0, macOS 11.0, tvOS 14.0, watchOS 7.0, visionOS 1.0, *) {
53 | Logger.default.debug("\(message, privacy: .private)")
| `- error: cannot find 'Logger' in scope
54 | } else {
55 | os_log("%s", log: .default, type: .debug, message)
/host/spi-builder-workspace/Sources/Async/Session.swift:53:60: error: extra argument 'privacy' in call
51 |
52 | if #available(iOS 14.0, macOS 11.0, tvOS 14.0, watchOS 7.0, visionOS 1.0, *) {
53 | Logger.default.debug("\(message, privacy: .private)")
| `- error: extra argument 'privacy' in call
54 | } else {
55 | os_log("%s", log: .default, type: .debug, message)
/host/spi-builder-workspace/Sources/Async/Session.swift:53:60: error: cannot infer contextual base in reference to member 'private'
51 |
52 | if #available(iOS 14.0, macOS 11.0, tvOS 14.0, watchOS 7.0, visionOS 1.0, *) {
53 | Logger.default.debug("\(message, privacy: .private)")
| `- error: cannot infer contextual base in reference to member 'private'
54 | } else {
55 | os_log("%s", log: .default, type: .debug, message)
/host/spi-builder-workspace/Sources/Async/Session.swift:55:17: error: cannot find 'os_log' in scope
53 | Logger.default.debug("\(message, privacy: .private)")
54 | } else {
55 | os_log("%s", log: .default, type: .debug, message)
| `- error: cannot find 'os_log' in scope
56 | }
57 | }
/host/spi-builder-workspace/Sources/Async/Session.swift:55:36: error: cannot infer contextual base in reference to member 'default'
53 | Logger.default.debug("\(message, privacy: .private)")
54 | } else {
55 | os_log("%s", log: .default, type: .debug, message)
| `- error: cannot infer contextual base in reference to member 'default'
56 | }
57 | }
/host/spi-builder-workspace/Sources/Async/Session.swift:55:52: error: cannot infer contextual base in reference to member 'debug'
53 | Logger.default.debug("\(message, privacy: .private)")
54 | } else {
55 | os_log("%s", log: .default, type: .debug, message)
| `- error: cannot infer contextual base in reference to member 'debug'
56 | }
57 | }
/host/spi-builder-workspace/Sources/Async/Session.swift:79:35: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'url'
77 | completionHandler: @escaping (URLRequest?) -> Void
78 | ) {
79 | let message = "\(response.url?.absoluteString ?? "") -> redirected to -> \(request.url?.absoluteString ?? "")"
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'url'
80 |
81 | if #available(iOS 14.0, macOS 11.0, tvOS 14.0, watchOS 7.0, visionOS 1.0, *) {
/host/spi-builder-workspace/Sources/Async/Session.swift:82:13: error: cannot find 'Logger' in scope
80 |
81 | if #available(iOS 14.0, macOS 11.0, tvOS 14.0, watchOS 7.0, visionOS 1.0, *) {
82 | Logger.default.debug("\(message, privacy: .private)")
| `- error: cannot find 'Logger' in scope
83 | } else {
84 | os_log("%s", log: .default, type: .debug, message)
/host/spi-builder-workspace/Sources/Async/Session.swift:82:56: error: extra argument 'privacy' in call
80 |
81 | if #available(iOS 14.0, macOS 11.0, tvOS 14.0, watchOS 7.0, visionOS 1.0, *) {
82 | Logger.default.debug("\(message, privacy: .private)")
| `- error: extra argument 'privacy' in call
83 | } else {
84 | os_log("%s", log: .default, type: .debug, message)
/host/spi-builder-workspace/Sources/Async/Session.swift:82:56: error: cannot infer contextual base in reference to member 'private'
80 |
81 | if #available(iOS 14.0, macOS 11.0, tvOS 14.0, watchOS 7.0, visionOS 1.0, *) {
82 | Logger.default.debug("\(message, privacy: .private)")
| `- error: cannot infer contextual base in reference to member 'private'
83 | } else {
84 | os_log("%s", log: .default, type: .debug, message)
/host/spi-builder-workspace/Sources/Async/Session.swift:84:13: error: cannot find 'os_log' in scope
82 | Logger.default.debug("\(message, privacy: .private)")
83 | } else {
84 | os_log("%s", log: .default, type: .debug, message)
| `- error: cannot find 'os_log' in scope
85 | }
86 |
/host/spi-builder-workspace/Sources/Async/Session.swift:84:32: error: cannot infer contextual base in reference to member 'default'
82 | Logger.default.debug("\(message, privacy: .private)")
83 | } else {
84 | os_log("%s", log: .default, type: .debug, message)
| `- error: cannot infer contextual base in reference to member 'default'
85 | }
86 |
/host/spi-builder-workspace/Sources/Async/Session.swift:84:48: error: cannot infer contextual base in reference to member 'debug'
82 | Logger.default.debug("\(message, privacy: .private)")
83 | } else {
84 | os_log("%s", log: .default, type: .debug, message)
| `- error: cannot infer contextual base in reference to member 'debug'
85 | }
86 |
[26/43] Compiling Endpoints Session.swift
/host/spi-builder-workspace/Sources/Async/AnyClient.swift:19:23: error: cannot find type 'URLRequest' in scope
17 | open func encode(
18 | call: some Call
19 | ) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
20 | var urlRequest = call.request.urlRequest
21 |
/host/spi-builder-workspace/Sources/Async/AnyClient.swift:30:19: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
28 |
29 | open func parse<C>(
30 | response: HTTPURLResponse?,
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
31 | data: Data?,
32 | for call: C
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/Async/AnyClient.swift:42:19: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
40 |
41 | open func validate(
42 | response: HTTPURLResponse?,
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
43 | data: Data?
44 | ) async throws {
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/Async/Client.swift:10:51: error: cannot find type 'URLRequest' in scope
8 | /// Converts a `Call` created for this client's Web API
9 | /// into a `URLRequest`.
10 | func encode<C: Call>(call: C) async throws -> URLRequest
| `- error: cannot find type 'URLRequest' in scope
11 |
12 | /// Converts the `URLSession`s result for a `Call` to
/host/spi-builder-workspace/Sources/Core/URLRequestEncodable.swift:10:21: error: cannot find type 'URLRequest' in scope
8 | public protocol URLRequestEncodable: CustomDebugStringConvertible {
9 | /// Returns an `URLRequest` configured with the data encapsulated by `self`.
10 | var urlRequest: URLRequest { get }
| `- error: cannot find type 'URLRequest' in scope
11 | }
12 |
/host/spi-builder-workspace/Sources/Async/Client.swift:17:19: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
15 | /// - throws: Any `Error` if `result` is considered invalid.
16 | func parse<C: Call>(
17 | response: HTTPURLResponse?,
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
18 | data: Data?,
19 | for call: C
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/Async/Session.swift:11:28: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
9 | public var debug = false
10 |
11 | public var urlSession: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
12 | public let client: CL
13 |
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/Async/Session.swift:16:27: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
14 | public init(
15 | with client: CL,
16 | using urlSession: URLSession = URLSession(
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
17 | configuration: .default,
18 | delegate: URLSessionDelegateHandler(),
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/Async/Session.swift:16:40: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
14 | public init(
15 | with client: CL,
16 | using urlSession: URLSession = URLSession(
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
17 | configuration: .default,
18 | delegate: URLSessionDelegateHandler(),
/host/spi-builder-workspace/Sources/Async/Session.swift:17:29: error: cannot infer contextual base in reference to member 'default'
15 | with client: CL,
16 | using urlSession: URLSession = URLSession(
17 | configuration: .default,
| `- error: cannot infer contextual base in reference to member 'default'
18 | delegate: URLSessionDelegateHandler(),
19 | delegateQueue: nil
/host/spi-builder-workspace/Sources/Async/Session.swift:19:28: error: 'nil' requires a contextual type
17 | configuration: .default,
18 | delegate: URLSessionDelegateHandler(),
19 | delegateQueue: nil
| `- error: 'nil' requires a contextual type
20 | )
21 | ) {
/host/spi-builder-workspace/Sources/Async/Session.swift:27:84: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
25 |
26 | @discardableResult
27 | open func dataTask<C: Call>(for call: C) async throws -> (C.Parser.OutputType, HTTPURLResponse) {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
28 | let urlRequest = try await client.encode(call: call)
29 |
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/Async/Session.swift:76:29: error: cannot find type 'URLRequest' in scope
74 | task: URLSessionTask,
75 | willPerformHTTPRedirection response: HTTPURLResponse,
76 | newRequest request: URLRequest,
| `- error: cannot find type 'URLRequest' in scope
77 | completionHandler: @escaping (URLRequest?) -> Void
78 | ) {
/host/spi-builder-workspace/Sources/Async/Session.swift:77:39: error: cannot find type 'URLRequest' in scope
75 | willPerformHTTPRedirection response: HTTPURLResponse,
76 | newRequest request: URLRequest,
77 | completionHandler: @escaping (URLRequest?) -> Void
| `- error: cannot find type 'URLRequest' in scope
78 | ) {
79 | let message = "\(response.url?.absoluteString ?? "") -> redirected to -> \(request.url?.absoluteString ?? "")"
/host/spi-builder-workspace/Sources/Async/Session.swift:73:20: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
71 | public class URLSessionDelegateHandler: NSObject, URLSessionTaskDelegate {
72 | public func urlSession(
73 | _ session: URLSession,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
74 | task: URLSessionTask,
75 | willPerformHTTPRedirection response: HTTPURLResponse,
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/Async/Session.swift:74:15: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
72 | public func urlSession(
73 | _ session: URLSession,
74 | task: URLSessionTask,
| `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
75 | willPerformHTTPRedirection response: HTTPURLResponse,
76 | newRequest request: URLRequest,
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionTask = AnyObject
| `- note: 'URLSessionTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Async/Session.swift:75:46: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
73 | _ session: URLSession,
74 | task: URLSessionTask,
75 | willPerformHTTPRedirection response: HTTPURLResponse,
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
76 | newRequest request: URLRequest,
77 | completionHandler: @escaping (URLRequest?) -> Void
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/Async/Session.swift:71:51: error: cannot find type 'URLSessionTaskDelegate' in scope
69 | }
70 |
71 | public class URLSessionDelegateHandler: NSObject, URLSessionTaskDelegate {
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
72 | public func urlSession(
73 | _ session: URLSession,
/host/spi-builder-workspace/Sources/Async/Session.swift:30:53: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
28 | let urlRequest = try await client.encode(call: call)
29 |
30 | let (data, response) = try await urlSession.data(for: urlRequest)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
31 |
32 | guard let response = response as? HTTPURLResponse else {
/host/spi-builder-workspace/Sources/Async/Session.swift:34:17: error: cannot find 'Logger' in scope
32 | guard let response = response as? HTTPURLResponse else {
33 | if #available(iOS 14.0, macOS 11.0, tvOS 14.0, watchOS 7.0, visionOS 1.0, *) {
34 | Logger.default.debug("no response.")
| `- error: cannot find 'Logger' in scope
35 | } else {
36 | os_log("no response.", log: .default, type: .debug)
/host/spi-builder-workspace/Sources/Async/Session.swift:36:17: error: cannot find 'os_log' in scope
34 | Logger.default.debug("no response.")
35 | } else {
36 | os_log("no response.", log: .default, type: .debug)
| `- error: cannot find 'os_log' in scope
37 | }
38 | throw EndpointsError(
/host/spi-builder-workspace/Sources/Async/Session.swift:36:46: error: cannot infer contextual base in reference to member 'default'
34 | Logger.default.debug("no response.")
35 | } else {
36 | os_log("no response.", log: .default, type: .debug)
| `- error: cannot infer contextual base in reference to member 'default'
37 | }
38 | throw EndpointsError(
/host/spi-builder-workspace/Sources/Async/Session.swift:36:62: error: cannot infer contextual base in reference to member 'debug'
34 | Logger.default.debug("no response.")
35 | } else {
36 | os_log("no response.", log: .default, type: .debug)
| `- error: cannot infer contextual base in reference to member 'debug'
37 | }
38 | throw EndpointsError(
/host/spi-builder-workspace/Sources/Async/Session.swift:53:17: error: cannot find 'Logger' in scope
51 |
52 | if #available(iOS 14.0, macOS 11.0, tvOS 14.0, watchOS 7.0, visionOS 1.0, *) {
53 | Logger.default.debug("\(message, privacy: .private)")
| `- error: cannot find 'Logger' in scope
54 | } else {
55 | os_log("%s", log: .default, type: .debug, message)
/host/spi-builder-workspace/Sources/Async/Session.swift:53:60: error: extra argument 'privacy' in call
51 |
52 | if #available(iOS 14.0, macOS 11.0, tvOS 14.0, watchOS 7.0, visionOS 1.0, *) {
53 | Logger.default.debug("\(message, privacy: .private)")
| `- error: extra argument 'privacy' in call
54 | } else {
55 | os_log("%s", log: .default, type: .debug, message)
/host/spi-builder-workspace/Sources/Async/Session.swift:53:60: error: cannot infer contextual base in reference to member 'private'
51 |
52 | if #available(iOS 14.0, macOS 11.0, tvOS 14.0, watchOS 7.0, visionOS 1.0, *) {
53 | Logger.default.debug("\(message, privacy: .private)")
| `- error: cannot infer contextual base in reference to member 'private'
54 | } else {
55 | os_log("%s", log: .default, type: .debug, message)
/host/spi-builder-workspace/Sources/Async/Session.swift:55:17: error: cannot find 'os_log' in scope
53 | Logger.default.debug("\(message, privacy: .private)")
54 | } else {
55 | os_log("%s", log: .default, type: .debug, message)
| `- error: cannot find 'os_log' in scope
56 | }
57 | }
/host/spi-builder-workspace/Sources/Async/Session.swift:55:36: error: cannot infer contextual base in reference to member 'default'
53 | Logger.default.debug("\(message, privacy: .private)")
54 | } else {
55 | os_log("%s", log: .default, type: .debug, message)
| `- error: cannot infer contextual base in reference to member 'default'
56 | }
57 | }
/host/spi-builder-workspace/Sources/Async/Session.swift:55:52: error: cannot infer contextual base in reference to member 'debug'
53 | Logger.default.debug("\(message, privacy: .private)")
54 | } else {
55 | os_log("%s", log: .default, type: .debug, message)
| `- error: cannot infer contextual base in reference to member 'debug'
56 | }
57 | }
/host/spi-builder-workspace/Sources/Async/Session.swift:79:35: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'url'
77 | completionHandler: @escaping (URLRequest?) -> Void
78 | ) {
79 | let message = "\(response.url?.absoluteString ?? "") -> redirected to -> \(request.url?.absoluteString ?? "")"
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'url'
80 |
81 | if #available(iOS 14.0, macOS 11.0, tvOS 14.0, watchOS 7.0, visionOS 1.0, *) {
/host/spi-builder-workspace/Sources/Async/Session.swift:82:13: error: cannot find 'Logger' in scope
80 |
81 | if #available(iOS 14.0, macOS 11.0, tvOS 14.0, watchOS 7.0, visionOS 1.0, *) {
82 | Logger.default.debug("\(message, privacy: .private)")
| `- error: cannot find 'Logger' in scope
83 | } else {
84 | os_log("%s", log: .default, type: .debug, message)
/host/spi-builder-workspace/Sources/Async/Session.swift:82:56: error: extra argument 'privacy' in call
80 |
81 | if #available(iOS 14.0, macOS 11.0, tvOS 14.0, watchOS 7.0, visionOS 1.0, *) {
82 | Logger.default.debug("\(message, privacy: .private)")
| `- error: extra argument 'privacy' in call
83 | } else {
84 | os_log("%s", log: .default, type: .debug, message)
/host/spi-builder-workspace/Sources/Async/Session.swift:82:56: error: cannot infer contextual base in reference to member 'private'
80 |
81 | if #available(iOS 14.0, macOS 11.0, tvOS 14.0, watchOS 7.0, visionOS 1.0, *) {
82 | Logger.default.debug("\(message, privacy: .private)")
| `- error: cannot infer contextual base in reference to member 'private'
83 | } else {
84 | os_log("%s", log: .default, type: .debug, message)
/host/spi-builder-workspace/Sources/Async/Session.swift:84:13: error: cannot find 'os_log' in scope
82 | Logger.default.debug("\(message, privacy: .private)")
83 | } else {
84 | os_log("%s", log: .default, type: .debug, message)
| `- error: cannot find 'os_log' in scope
85 | }
86 |
/host/spi-builder-workspace/Sources/Async/Session.swift:84:32: error: cannot infer contextual base in reference to member 'default'
82 | Logger.default.debug("\(message, privacy: .private)")
83 | } else {
84 | os_log("%s", log: .default, type: .debug, message)
| `- error: cannot infer contextual base in reference to member 'default'
85 | }
86 |
/host/spi-builder-workspace/Sources/Async/Session.swift:84:48: error: cannot infer contextual base in reference to member 'debug'
82 | Logger.default.debug("\(message, privacy: .private)")
83 | } else {
84 | os_log("%s", log: .default, type: .debug, message)
| `- error: cannot infer contextual base in reference to member 'debug'
85 | }
86 |
[27/43] Compiling Endpoints Body.swift
/host/spi-builder-workspace/Sources/Async/AnyClient.swift:19:23: error: cannot find type 'URLRequest' in scope
17 | open func encode(
18 | call: some Call
19 | ) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
20 | var urlRequest = call.request.urlRequest
21 |
/host/spi-builder-workspace/Sources/Async/AnyClient.swift:30:19: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
28 |
29 | open func parse<C>(
30 | response: HTTPURLResponse?,
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
31 | data: Data?,
32 | for call: C
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/Async/AnyClient.swift:42:19: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
40 |
41 | open func validate(
42 | response: HTTPURLResponse?,
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
43 | data: Data?
44 | ) async throws {
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/Async/Client.swift:10:51: error: cannot find type 'URLRequest' in scope
8 | /// Converts a `Call` created for this client's Web API
9 | /// into a `URLRequest`.
10 | func encode<C: Call>(call: C) async throws -> URLRequest
| `- error: cannot find type 'URLRequest' in scope
11 |
12 | /// Converts the `URLSession`s result for a `Call` to
/host/spi-builder-workspace/Sources/Core/URLRequestEncodable.swift:10:21: error: cannot find type 'URLRequest' in scope
8 | public protocol URLRequestEncodable: CustomDebugStringConvertible {
9 | /// Returns an `URLRequest` configured with the data encapsulated by `self`.
10 | var urlRequest: URLRequest { get }
| `- error: cannot find type 'URLRequest' in scope
11 | }
12 |
/host/spi-builder-workspace/Sources/Async/Client.swift:17:19: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
15 | /// - throws: Any `Error` if `result` is considered invalid.
16 | func parse<C: Call>(
17 | response: HTTPURLResponse?,
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
18 | data: Data?,
19 | for call: C
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/Async/Session.swift:11:28: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
9 | public var debug = false
10 |
11 | public var urlSession: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
12 | public let client: CL
13 |
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/Async/Session.swift:16:27: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
14 | public init(
15 | with client: CL,
16 | using urlSession: URLSession = URLSession(
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
17 | configuration: .default,
18 | delegate: URLSessionDelegateHandler(),
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/Async/Session.swift:16:40: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
14 | public init(
15 | with client: CL,
16 | using urlSession: URLSession = URLSession(
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
17 | configuration: .default,
18 | delegate: URLSessionDelegateHandler(),
/host/spi-builder-workspace/Sources/Async/Session.swift:17:29: error: cannot infer contextual base in reference to member 'default'
15 | with client: CL,
16 | using urlSession: URLSession = URLSession(
17 | configuration: .default,
| `- error: cannot infer contextual base in reference to member 'default'
18 | delegate: URLSessionDelegateHandler(),
19 | delegateQueue: nil
/host/spi-builder-workspace/Sources/Async/Session.swift:19:28: error: 'nil' requires a contextual type
17 | configuration: .default,
18 | delegate: URLSessionDelegateHandler(),
19 | delegateQueue: nil
| `- error: 'nil' requires a contextual type
20 | )
21 | ) {
/host/spi-builder-workspace/Sources/Async/Session.swift:27:84: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
25 |
26 | @discardableResult
27 | open func dataTask<C: Call>(for call: C) async throws -> (C.Parser.OutputType, HTTPURLResponse) {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
28 | let urlRequest = try await client.encode(call: call)
29 |
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/Async/Session.swift:76:29: error: cannot find type 'URLRequest' in scope
74 | task: URLSessionTask,
75 | willPerformHTTPRedirection response: HTTPURLResponse,
76 | newRequest request: URLRequest,
| `- error: cannot find type 'URLRequest' in scope
77 | completionHandler: @escaping (URLRequest?) -> Void
78 | ) {
/host/spi-builder-workspace/Sources/Async/Session.swift:77:39: error: cannot find type 'URLRequest' in scope
75 | willPerformHTTPRedirection response: HTTPURLResponse,
76 | newRequest request: URLRequest,
77 | completionHandler: @escaping (URLRequest?) -> Void
| `- error: cannot find type 'URLRequest' in scope
78 | ) {
79 | let message = "\(response.url?.absoluteString ?? "") -> redirected to -> \(request.url?.absoluteString ?? "")"
/host/spi-builder-workspace/Sources/Async/Session.swift:73:20: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
71 | public class URLSessionDelegateHandler: NSObject, URLSessionTaskDelegate {
72 | public func urlSession(
73 | _ session: URLSession,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
74 | task: URLSessionTask,
75 | willPerformHTTPRedirection response: HTTPURLResponse,
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/Async/Session.swift:74:15: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
72 | public func urlSession(
73 | _ session: URLSession,
74 | task: URLSessionTask,
| `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
75 | willPerformHTTPRedirection response: HTTPURLResponse,
76 | newRequest request: URLRequest,
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionTask = AnyObject
| `- note: 'URLSessionTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Async/Session.swift:75:46: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
73 | _ session: URLSession,
74 | task: URLSessionTask,
75 | willPerformHTTPRedirection response: HTTPURLResponse,
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
76 | newRequest request: URLRequest,
77 | completionHandler: @escaping (URLRequest?) -> Void
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/Async/Session.swift:71:51: error: cannot find type 'URLSessionTaskDelegate' in scope
69 | }
70 |
71 | public class URLSessionDelegateHandler: NSObject, URLSessionTaskDelegate {
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
72 | public func urlSession(
73 | _ session: URLSession,
/host/spi-builder-workspace/Sources/Async/Session.swift:30:53: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
28 | let urlRequest = try await client.encode(call: call)
29 |
30 | let (data, response) = try await urlSession.data(for: urlRequest)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
31 |
32 | guard let response = response as? HTTPURLResponse else {
/host/spi-builder-workspace/Sources/Async/Session.swift:34:17: error: cannot find 'Logger' in scope
32 | guard let response = response as? HTTPURLResponse else {
33 | if #available(iOS 14.0, macOS 11.0, tvOS 14.0, watchOS 7.0, visionOS 1.0, *) {
34 | Logger.default.debug("no response.")
| `- error: cannot find 'Logger' in scope
35 | } else {
36 | os_log("no response.", log: .default, type: .debug)
/host/spi-builder-workspace/Sources/Async/Session.swift:36:17: error: cannot find 'os_log' in scope
34 | Logger.default.debug("no response.")
35 | } else {
36 | os_log("no response.", log: .default, type: .debug)
| `- error: cannot find 'os_log' in scope
37 | }
38 | throw EndpointsError(
/host/spi-builder-workspace/Sources/Async/Session.swift:36:46: error: cannot infer contextual base in reference to member 'default'
34 | Logger.default.debug("no response.")
35 | } else {
36 | os_log("no response.", log: .default, type: .debug)
| `- error: cannot infer contextual base in reference to member 'default'
37 | }
38 | throw EndpointsError(
/host/spi-builder-workspace/Sources/Async/Session.swift:36:62: error: cannot infer contextual base in reference to member 'debug'
34 | Logger.default.debug("no response.")
35 | } else {
36 | os_log("no response.", log: .default, type: .debug)
| `- error: cannot infer contextual base in reference to member 'debug'
37 | }
38 | throw EndpointsError(
/host/spi-builder-workspace/Sources/Async/Session.swift:53:17: error: cannot find 'Logger' in scope
51 |
52 | if #available(iOS 14.0, macOS 11.0, tvOS 14.0, watchOS 7.0, visionOS 1.0, *) {
53 | Logger.default.debug("\(message, privacy: .private)")
| `- error: cannot find 'Logger' in scope
54 | } else {
55 | os_log("%s", log: .default, type: .debug, message)
/host/spi-builder-workspace/Sources/Async/Session.swift:53:60: error: extra argument 'privacy' in call
51 |
52 | if #available(iOS 14.0, macOS 11.0, tvOS 14.0, watchOS 7.0, visionOS 1.0, *) {
53 | Logger.default.debug("\(message, privacy: .private)")
| `- error: extra argument 'privacy' in call
54 | } else {
55 | os_log("%s", log: .default, type: .debug, message)
/host/spi-builder-workspace/Sources/Async/Session.swift:53:60: error: cannot infer contextual base in reference to member 'private'
51 |
52 | if #available(iOS 14.0, macOS 11.0, tvOS 14.0, watchOS 7.0, visionOS 1.0, *) {
53 | Logger.default.debug("\(message, privacy: .private)")
| `- error: cannot infer contextual base in reference to member 'private'
54 | } else {
55 | os_log("%s", log: .default, type: .debug, message)
/host/spi-builder-workspace/Sources/Async/Session.swift:55:17: error: cannot find 'os_log' in scope
53 | Logger.default.debug("\(message, privacy: .private)")
54 | } else {
55 | os_log("%s", log: .default, type: .debug, message)
| `- error: cannot find 'os_log' in scope
56 | }
57 | }
/host/spi-builder-workspace/Sources/Async/Session.swift:55:36: error: cannot infer contextual base in reference to member 'default'
53 | Logger.default.debug("\(message, privacy: .private)")
54 | } else {
55 | os_log("%s", log: .default, type: .debug, message)
| `- error: cannot infer contextual base in reference to member 'default'
56 | }
57 | }
/host/spi-builder-workspace/Sources/Async/Session.swift:55:52: error: cannot infer contextual base in reference to member 'debug'
53 | Logger.default.debug("\(message, privacy: .private)")
54 | } else {
55 | os_log("%s", log: .default, type: .debug, message)
| `- error: cannot infer contextual base in reference to member 'debug'
56 | }
57 | }
/host/spi-builder-workspace/Sources/Async/Session.swift:79:35: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'url'
77 | completionHandler: @escaping (URLRequest?) -> Void
78 | ) {
79 | let message = "\(response.url?.absoluteString ?? "") -> redirected to -> \(request.url?.absoluteString ?? "")"
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'url'
80 |
81 | if #available(iOS 14.0, macOS 11.0, tvOS 14.0, watchOS 7.0, visionOS 1.0, *) {
/host/spi-builder-workspace/Sources/Async/Session.swift:82:13: error: cannot find 'Logger' in scope
80 |
81 | if #available(iOS 14.0, macOS 11.0, tvOS 14.0, watchOS 7.0, visionOS 1.0, *) {
82 | Logger.default.debug("\(message, privacy: .private)")
| `- error: cannot find 'Logger' in scope
83 | } else {
84 | os_log("%s", log: .default, type: .debug, message)
/host/spi-builder-workspace/Sources/Async/Session.swift:82:56: error: extra argument 'privacy' in call
80 |
81 | if #available(iOS 14.0, macOS 11.0, tvOS 14.0, watchOS 7.0, visionOS 1.0, *) {
82 | Logger.default.debug("\(message, privacy: .private)")
| `- error: extra argument 'privacy' in call
83 | } else {
84 | os_log("%s", log: .default, type: .debug, message)
/host/spi-builder-workspace/Sources/Async/Session.swift:82:56: error: cannot infer contextual base in reference to member 'private'
80 |
81 | if #available(iOS 14.0, macOS 11.0, tvOS 14.0, watchOS 7.0, visionOS 1.0, *) {
82 | Logger.default.debug("\(message, privacy: .private)")
| `- error: cannot infer contextual base in reference to member 'private'
83 | } else {
84 | os_log("%s", log: .default, type: .debug, message)
/host/spi-builder-workspace/Sources/Async/Session.swift:84:13: error: cannot find 'os_log' in scope
82 | Logger.default.debug("\(message, privacy: .private)")
83 | } else {
84 | os_log("%s", log: .default, type: .debug, message)
| `- error: cannot find 'os_log' in scope
85 | }
86 |
/host/spi-builder-workspace/Sources/Async/Session.swift:84:32: error: cannot infer contextual base in reference to member 'default'
82 | Logger.default.debug("\(message, privacy: .private)")
83 | } else {
84 | os_log("%s", log: .default, type: .debug, message)
| `- error: cannot infer contextual base in reference to member 'default'
85 | }
86 |
/host/spi-builder-workspace/Sources/Async/Session.swift:84:48: error: cannot infer contextual base in reference to member 'debug'
82 | Logger.default.debug("\(message, privacy: .private)")
83 | } else {
84 | os_log("%s", log: .default, type: .debug, message)
| `- error: cannot infer contextual base in reference to member 'debug'
85 | }
86 |
[28/43] Compiling Endpoints FormEncodedBody.swift
/host/spi-builder-workspace/Sources/Async/AnyClient.swift:19:23: error: cannot find type 'URLRequest' in scope
17 | open func encode(
18 | call: some Call
19 | ) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
20 | var urlRequest = call.request.urlRequest
21 |
/host/spi-builder-workspace/Sources/Async/AnyClient.swift:30:19: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
28 |
29 | open func parse<C>(
30 | response: HTTPURLResponse?,
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
31 | data: Data?,
32 | for call: C
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/Async/AnyClient.swift:42:19: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
40 |
41 | open func validate(
42 | response: HTTPURLResponse?,
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
43 | data: Data?
44 | ) async throws {
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/Async/Client.swift:10:51: error: cannot find type 'URLRequest' in scope
8 | /// Converts a `Call` created for this client's Web API
9 | /// into a `URLRequest`.
10 | func encode<C: Call>(call: C) async throws -> URLRequest
| `- error: cannot find type 'URLRequest' in scope
11 |
12 | /// Converts the `URLSession`s result for a `Call` to
/host/spi-builder-workspace/Sources/Core/URLRequestEncodable.swift:10:21: error: cannot find type 'URLRequest' in scope
8 | public protocol URLRequestEncodable: CustomDebugStringConvertible {
9 | /// Returns an `URLRequest` configured with the data encapsulated by `self`.
10 | var urlRequest: URLRequest { get }
| `- error: cannot find type 'URLRequest' in scope
11 | }
12 |
/host/spi-builder-workspace/Sources/Async/Client.swift:17:19: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
15 | /// - throws: Any `Error` if `result` is considered invalid.
16 | func parse<C: Call>(
17 | response: HTTPURLResponse?,
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
18 | data: Data?,
19 | for call: C
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/Async/Session.swift:11:28: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
9 | public var debug = false
10 |
11 | public var urlSession: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
12 | public let client: CL
13 |
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/Async/Session.swift:16:27: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
14 | public init(
15 | with client: CL,
16 | using urlSession: URLSession = URLSession(
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
17 | configuration: .default,
18 | delegate: URLSessionDelegateHandler(),
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/Async/Session.swift:16:40: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
14 | public init(
15 | with client: CL,
16 | using urlSession: URLSession = URLSession(
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
17 | configuration: .default,
18 | delegate: URLSessionDelegateHandler(),
/host/spi-builder-workspace/Sources/Async/Session.swift:17:29: error: cannot infer contextual base in reference to member 'default'
15 | with client: CL,
16 | using urlSession: URLSession = URLSession(
17 | configuration: .default,
| `- error: cannot infer contextual base in reference to member 'default'
18 | delegate: URLSessionDelegateHandler(),
19 | delegateQueue: nil
/host/spi-builder-workspace/Sources/Async/Session.swift:19:28: error: 'nil' requires a contextual type
17 | configuration: .default,
18 | delegate: URLSessionDelegateHandler(),
19 | delegateQueue: nil
| `- error: 'nil' requires a contextual type
20 | )
21 | ) {
/host/spi-builder-workspace/Sources/Async/Session.swift:27:84: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
25 |
26 | @discardableResult
27 | open func dataTask<C: Call>(for call: C) async throws -> (C.Parser.OutputType, HTTPURLResponse) {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
28 | let urlRequest = try await client.encode(call: call)
29 |
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/Async/Session.swift:76:29: error: cannot find type 'URLRequest' in scope
74 | task: URLSessionTask,
75 | willPerformHTTPRedirection response: HTTPURLResponse,
76 | newRequest request: URLRequest,
| `- error: cannot find type 'URLRequest' in scope
77 | completionHandler: @escaping (URLRequest?) -> Void
78 | ) {
/host/spi-builder-workspace/Sources/Async/Session.swift:77:39: error: cannot find type 'URLRequest' in scope
75 | willPerformHTTPRedirection response: HTTPURLResponse,
76 | newRequest request: URLRequest,
77 | completionHandler: @escaping (URLRequest?) -> Void
| `- error: cannot find type 'URLRequest' in scope
78 | ) {
79 | let message = "\(response.url?.absoluteString ?? "") -> redirected to -> \(request.url?.absoluteString ?? "")"
/host/spi-builder-workspace/Sources/Async/Session.swift:73:20: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
71 | public class URLSessionDelegateHandler: NSObject, URLSessionTaskDelegate {
72 | public func urlSession(
73 | _ session: URLSession,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
74 | task: URLSessionTask,
75 | willPerformHTTPRedirection response: HTTPURLResponse,
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/Async/Session.swift:74:15: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
72 | public func urlSession(
73 | _ session: URLSession,
74 | task: URLSessionTask,
| `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
75 | willPerformHTTPRedirection response: HTTPURLResponse,
76 | newRequest request: URLRequest,
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionTask = AnyObject
| `- note: 'URLSessionTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Async/Session.swift:75:46: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
73 | _ session: URLSession,
74 | task: URLSessionTask,
75 | willPerformHTTPRedirection response: HTTPURLResponse,
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
76 | newRequest request: URLRequest,
77 | completionHandler: @escaping (URLRequest?) -> Void
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/Async/Session.swift:71:51: error: cannot find type 'URLSessionTaskDelegate' in scope
69 | }
70 |
71 | public class URLSessionDelegateHandler: NSObject, URLSessionTaskDelegate {
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
72 | public func urlSession(
73 | _ session: URLSession,
/host/spi-builder-workspace/Sources/Async/Session.swift:30:53: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
28 | let urlRequest = try await client.encode(call: call)
29 |
30 | let (data, response) = try await urlSession.data(for: urlRequest)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
31 |
32 | guard let response = response as? HTTPURLResponse else {
/host/spi-builder-workspace/Sources/Async/Session.swift:34:17: error: cannot find 'Logger' in scope
32 | guard let response = response as? HTTPURLResponse else {
33 | if #available(iOS 14.0, macOS 11.0, tvOS 14.0, watchOS 7.0, visionOS 1.0, *) {
34 | Logger.default.debug("no response.")
| `- error: cannot find 'Logger' in scope
35 | } else {
36 | os_log("no response.", log: .default, type: .debug)
/host/spi-builder-workspace/Sources/Async/Session.swift:36:17: error: cannot find 'os_log' in scope
34 | Logger.default.debug("no response.")
35 | } else {
36 | os_log("no response.", log: .default, type: .debug)
| `- error: cannot find 'os_log' in scope
37 | }
38 | throw EndpointsError(
/host/spi-builder-workspace/Sources/Async/Session.swift:36:46: error: cannot infer contextual base in reference to member 'default'
34 | Logger.default.debug("no response.")
35 | } else {
36 | os_log("no response.", log: .default, type: .debug)
| `- error: cannot infer contextual base in reference to member 'default'
37 | }
38 | throw EndpointsError(
/host/spi-builder-workspace/Sources/Async/Session.swift:36:62: error: cannot infer contextual base in reference to member 'debug'
34 | Logger.default.debug("no response.")
35 | } else {
36 | os_log("no response.", log: .default, type: .debug)
| `- error: cannot infer contextual base in reference to member 'debug'
37 | }
38 | throw EndpointsError(
/host/spi-builder-workspace/Sources/Async/Session.swift:53:17: error: cannot find 'Logger' in scope
51 |
52 | if #available(iOS 14.0, macOS 11.0, tvOS 14.0, watchOS 7.0, visionOS 1.0, *) {
53 | Logger.default.debug("\(message, privacy: .private)")
| `- error: cannot find 'Logger' in scope
54 | } else {
55 | os_log("%s", log: .default, type: .debug, message)
/host/spi-builder-workspace/Sources/Async/Session.swift:53:60: error: extra argument 'privacy' in call
51 |
52 | if #available(iOS 14.0, macOS 11.0, tvOS 14.0, watchOS 7.0, visionOS 1.0, *) {
53 | Logger.default.debug("\(message, privacy: .private)")
| `- error: extra argument 'privacy' in call
54 | } else {
55 | os_log("%s", log: .default, type: .debug, message)
/host/spi-builder-workspace/Sources/Async/Session.swift:53:60: error: cannot infer contextual base in reference to member 'private'
51 |
52 | if #available(iOS 14.0, macOS 11.0, tvOS 14.0, watchOS 7.0, visionOS 1.0, *) {
53 | Logger.default.debug("\(message, privacy: .private)")
| `- error: cannot infer contextual base in reference to member 'private'
54 | } else {
55 | os_log("%s", log: .default, type: .debug, message)
/host/spi-builder-workspace/Sources/Async/Session.swift:55:17: error: cannot find 'os_log' in scope
53 | Logger.default.debug("\(message, privacy: .private)")
54 | } else {
55 | os_log("%s", log: .default, type: .debug, message)
| `- error: cannot find 'os_log' in scope
56 | }
57 | }
/host/spi-builder-workspace/Sources/Async/Session.swift:55:36: error: cannot infer contextual base in reference to member 'default'
53 | Logger.default.debug("\(message, privacy: .private)")
54 | } else {
55 | os_log("%s", log: .default, type: .debug, message)
| `- error: cannot infer contextual base in reference to member 'default'
56 | }
57 | }
/host/spi-builder-workspace/Sources/Async/Session.swift:55:52: error: cannot infer contextual base in reference to member 'debug'
53 | Logger.default.debug("\(message, privacy: .private)")
54 | } else {
55 | os_log("%s", log: .default, type: .debug, message)
| `- error: cannot infer contextual base in reference to member 'debug'
56 | }
57 | }
/host/spi-builder-workspace/Sources/Async/Session.swift:79:35: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'url'
77 | completionHandler: @escaping (URLRequest?) -> Void
78 | ) {
79 | let message = "\(response.url?.absoluteString ?? "") -> redirected to -> \(request.url?.absoluteString ?? "")"
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'url'
80 |
81 | if #available(iOS 14.0, macOS 11.0, tvOS 14.0, watchOS 7.0, visionOS 1.0, *) {
/host/spi-builder-workspace/Sources/Async/Session.swift:82:13: error: cannot find 'Logger' in scope
80 |
81 | if #available(iOS 14.0, macOS 11.0, tvOS 14.0, watchOS 7.0, visionOS 1.0, *) {
82 | Logger.default.debug("\(message, privacy: .private)")
| `- error: cannot find 'Logger' in scope
83 | } else {
84 | os_log("%s", log: .default, type: .debug, message)
/host/spi-builder-workspace/Sources/Async/Session.swift:82:56: error: extra argument 'privacy' in call
80 |
81 | if #available(iOS 14.0, macOS 11.0, tvOS 14.0, watchOS 7.0, visionOS 1.0, *) {
82 | Logger.default.debug("\(message, privacy: .private)")
| `- error: extra argument 'privacy' in call
83 | } else {
84 | os_log("%s", log: .default, type: .debug, message)
/host/spi-builder-workspace/Sources/Async/Session.swift:82:56: error: cannot infer contextual base in reference to member 'private'
80 |
81 | if #available(iOS 14.0, macOS 11.0, tvOS 14.0, watchOS 7.0, visionOS 1.0, *) {
82 | Logger.default.debug("\(message, privacy: .private)")
| `- error: cannot infer contextual base in reference to member 'private'
83 | } else {
84 | os_log("%s", log: .default, type: .debug, message)
/host/spi-builder-workspace/Sources/Async/Session.swift:84:13: error: cannot find 'os_log' in scope
82 | Logger.default.debug("\(message, privacy: .private)")
83 | } else {
84 | os_log("%s", log: .default, type: .debug, message)
| `- error: cannot find 'os_log' in scope
85 | }
86 |
/host/spi-builder-workspace/Sources/Async/Session.swift:84:32: error: cannot infer contextual base in reference to member 'default'
82 | Logger.default.debug("\(message, privacy: .private)")
83 | } else {
84 | os_log("%s", log: .default, type: .debug, message)
| `- error: cannot infer contextual base in reference to member 'default'
85 | }
86 |
/host/spi-builder-workspace/Sources/Async/Session.swift:84:48: error: cannot infer contextual base in reference to member 'debug'
82 | Logger.default.debug("\(message, privacy: .private)")
83 | } else {
84 | os_log("%s", log: .default, type: .debug, message)
| `- error: cannot infer contextual base in reference to member 'debug'
85 | }
86 |
[29/43] Compiling Endpoints ResponseValidator.swift
/host/spi-builder-workspace/Sources/ResponseValidator/ResponseValidator.swift:12:19: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
10 | /// - throws: Any `Error`, if `result` is not valid.
11 | func validate(
12 | response: HTTPURLResponse?,
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
13 | data: Data?
14 | ) async throws
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/ResponseValidator/StatusCodeValidator.swift:15:19: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
13 | /// - throws: `StatusCodeError.unacceptable` with `reason` set to `nil`
14 | public func validate(
15 | response: HTTPURLResponse?,
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
16 | data _: Data?
17 | ) throws {
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/ResponseValidator/StatusCodeValidator.swift:18:33: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
16 | data _: Data?
17 | ) throws {
18 | if let code = response?.statusCode,
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
19 | !isAcceptableStatus(code: code) {
20 | throw StatusCodeError.unacceptable(code: code, reason: nil)
/host/spi-builder-workspace/Sources/Testing/FakeHTTPURLResponse.swift:5:35: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
3 | import Foundation
4 |
5 | public class FakeHTTPURLResponse: HTTPURLResponse {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
6 | public init(
7 | status code: Int = 200,
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/Testing/FakeHTTPURLResponse.swift:12:9: error: 'super' cannot be used in class 'FakeHTTPURLResponse' because it has no superclass
10 | header: Parameters? = nil
11 | ) {
12 | super.init(
| `- error: 'super' cannot be used in class 'FakeHTTPURLResponse' because it has no superclass
13 | url: url,
14 | statusCode: code,
/host/spi-builder-workspace/Sources/Testing/FakeResultProvider.swift:4:54: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
2 |
3 | public protocol FakeResultProvider {
4 | func data<C: Call>(for call: C) async throws -> (URLResponse, Data)
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
5 | }
6 |
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Testing/FakeSession.swift:19:45: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
17 | override public func dataTask<C: Call>(
18 | for call: C
19 | ) async throws -> (C.Parser.OutputType, HTTPURLResponse) {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
20 | let (response, data) = try await resultProvider.data(for: call)
21 |
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/Async/Session.swift:16:40: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
14 | public init(
15 | with client: CL,
16 | using urlSession: URLSession = URLSession(
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
17 | configuration: .default,
18 | delegate: URLSessionDelegateHandler(),
/host/spi-builder-workspace/Sources/Async/Session.swift:17:29: error: cannot infer contextual base in reference to member 'default'
15 | with client: CL,
16 | using urlSession: URLSession = URLSession(
17 | configuration: .default,
| `- error: cannot infer contextual base in reference to member 'default'
18 | delegate: URLSessionDelegateHandler(),
19 | delegateQueue: nil
/host/spi-builder-workspace/Sources/Async/Session.swift:19:28: error: 'nil' requires a contextual type
17 | configuration: .default,
18 | delegate: URLSessionDelegateHandler(),
19 | delegateQueue: nil
| `- error: 'nil' requires a contextual type
20 | )
21 | ) {
/host/spi-builder-workspace/Sources/Testing/FakeSession.swift:22:39: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
20 | let (response, data) = try await resultProvider.data(for: call)
21 |
22 | guard let response = response as? HTTPURLResponse else {
| `- warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
23 | if #available(iOS 14.0, macOS 11.0, tvOS 14.0, watchOS 7.0, visionOS 1.0, *) {
24 | Logger.default.debug("no response.")
/host/spi-builder-workspace/Sources/Testing/FakeSession.swift:22:43: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
20 | let (response, data) = try await resultProvider.data(for: call)
21 |
22 | guard let response = response as? HTTPURLResponse else {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
23 | if #available(iOS 14.0, macOS 11.0, tvOS 14.0, watchOS 7.0, visionOS 1.0, *) {
24 | Logger.default.debug("no response.")
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/Testing/FakeSession.swift:24:17: error: cannot find 'Logger' in scope
22 | guard let response = response as? HTTPURLResponse else {
23 | if #available(iOS 14.0, macOS 11.0, tvOS 14.0, watchOS 7.0, visionOS 1.0, *) {
24 | Logger.default.debug("no response.")
| `- error: cannot find 'Logger' in scope
25 | } else {
26 | os_log("no response.", log: .default, type: .debug)
/host/spi-builder-workspace/Sources/Testing/FakeSession.swift:26:17: error: cannot find 'os_log' in scope
24 | Logger.default.debug("no response.")
25 | } else {
26 | os_log("no response.", log: .default, type: .debug)
| `- error: cannot find 'os_log' in scope
27 | }
28 |
/host/spi-builder-workspace/Sources/Testing/FakeSession.swift:26:46: error: cannot infer contextual base in reference to member 'default'
24 | Logger.default.debug("no response.")
25 | } else {
26 | os_log("no response.", log: .default, type: .debug)
| `- error: cannot infer contextual base in reference to member 'default'
27 | }
28 |
/host/spi-builder-workspace/Sources/Testing/FakeSession.swift:26:62: error: cannot infer contextual base in reference to member 'debug'
24 | Logger.default.debug("no response.")
25 | } else {
26 | os_log("no response.", log: .default, type: .debug)
| `- error: cannot infer contextual base in reference to member 'debug'
27 | }
28 |
/host/spi-builder-workspace/Sources/Testing/FakeSession.swift:40:36: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'debugDescription'
38 | var message = ""
39 | message += "\(call.request.cURLRepresentation)\n"
40 | message += "\(response.debugDescription)\n"
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'debugDescription'
41 | message += "\(data.debugDescription(encoding: response.stringEncoding))"
42 |
/host/spi-builder-workspace/Sources/Testing/FakeSession.swift:41:68: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'stringEncoding'
39 | message += "\(call.request.cURLRepresentation)\n"
40 | message += "\(response.debugDescription)\n"
41 | message += "\(data.debugDescription(encoding: response.stringEncoding))"
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'stringEncoding'
42 |
43 | if #available(iOS 14.0, macOS 11.0, tvOS 14.0, watchOS 7.0, visionOS 1.0, *) {
/host/spi-builder-workspace/Sources/Testing/FakeSession.swift:44:17: error: cannot find 'Logger' in scope
42 |
43 | if #available(iOS 14.0, macOS 11.0, tvOS 14.0, watchOS 7.0, visionOS 1.0, *) {
44 | Logger.default.debug("\(message, privacy: .private)")
| `- error: cannot find 'Logger' in scope
45 | } else {
46 | os_log("%s", log: .default, type: .debug, message)
/host/spi-builder-workspace/Sources/Testing/FakeSession.swift:44:60: error: extra argument 'privacy' in call
42 |
43 | if #available(iOS 14.0, macOS 11.0, tvOS 14.0, watchOS 7.0, visionOS 1.0, *) {
44 | Logger.default.debug("\(message, privacy: .private)")
| `- error: extra argument 'privacy' in call
45 | } else {
46 | os_log("%s", log: .default, type: .debug, message)
/host/spi-builder-workspace/Sources/Testing/FakeSession.swift:44:60: error: cannot infer contextual base in reference to member 'private'
42 |
43 | if #available(iOS 14.0, macOS 11.0, tvOS 14.0, watchOS 7.0, visionOS 1.0, *) {
44 | Logger.default.debug("\(message, privacy: .private)")
| `- error: cannot infer contextual base in reference to member 'private'
45 | } else {
46 | os_log("%s", log: .default, type: .debug, message)
/host/spi-builder-workspace/Sources/Testing/FakeSession.swift:46:17: error: cannot find 'os_log' in scope
44 | Logger.default.debug("\(message, privacy: .private)")
45 | } else {
46 | os_log("%s", log: .default, type: .debug, message)
| `- error: cannot find 'os_log' in scope
47 | }
48 | }
/host/spi-builder-workspace/Sources/Testing/FakeSession.swift:46:36: error: cannot infer contextual base in reference to member 'default'
44 | Logger.default.debug("\(message, privacy: .private)")
45 | } else {
46 | os_log("%s", log: .default, type: .debug, message)
| `- error: cannot infer contextual base in reference to member 'default'
47 | }
48 | }
/host/spi-builder-workspace/Sources/Testing/FakeSession.swift:46:52: error: cannot infer contextual base in reference to member 'debug'
44 | Logger.default.debug("\(message, privacy: .private)")
45 | } else {
46 | os_log("%s", log: .default, type: .debug, message)
| `- error: cannot infer contextual base in reference to member 'debug'
47 | }
48 | }
[30/43] Compiling Endpoints StatusCodeValidator.swift
/host/spi-builder-workspace/Sources/ResponseValidator/ResponseValidator.swift:12:19: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
10 | /// - throws: Any `Error`, if `result` is not valid.
11 | func validate(
12 | response: HTTPURLResponse?,
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
13 | data: Data?
14 | ) async throws
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/ResponseValidator/StatusCodeValidator.swift:15:19: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
13 | /// - throws: `StatusCodeError.unacceptable` with `reason` set to `nil`
14 | public func validate(
15 | response: HTTPURLResponse?,
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
16 | data _: Data?
17 | ) throws {
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/ResponseValidator/StatusCodeValidator.swift:18:33: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
16 | data _: Data?
17 | ) throws {
18 | if let code = response?.statusCode,
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
19 | !isAcceptableStatus(code: code) {
20 | throw StatusCodeError.unacceptable(code: code, reason: nil)
/host/spi-builder-workspace/Sources/Testing/FakeHTTPURLResponse.swift:5:35: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
3 | import Foundation
4 |
5 | public class FakeHTTPURLResponse: HTTPURLResponse {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
6 | public init(
7 | status code: Int = 200,
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/Testing/FakeHTTPURLResponse.swift:12:9: error: 'super' cannot be used in class 'FakeHTTPURLResponse' because it has no superclass
10 | header: Parameters? = nil
11 | ) {
12 | super.init(
| `- error: 'super' cannot be used in class 'FakeHTTPURLResponse' because it has no superclass
13 | url: url,
14 | statusCode: code,
/host/spi-builder-workspace/Sources/Testing/FakeResultProvider.swift:4:54: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
2 |
3 | public protocol FakeResultProvider {
4 | func data<C: Call>(for call: C) async throws -> (URLResponse, Data)
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
5 | }
6 |
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Testing/FakeSession.swift:19:45: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
17 | override public func dataTask<C: Call>(
18 | for call: C
19 | ) async throws -> (C.Parser.OutputType, HTTPURLResponse) {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
20 | let (response, data) = try await resultProvider.data(for: call)
21 |
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/Async/Session.swift:16:40: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
14 | public init(
15 | with client: CL,
16 | using urlSession: URLSession = URLSession(
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
17 | configuration: .default,
18 | delegate: URLSessionDelegateHandler(),
/host/spi-builder-workspace/Sources/Async/Session.swift:17:29: error: cannot infer contextual base in reference to member 'default'
15 | with client: CL,
16 | using urlSession: URLSession = URLSession(
17 | configuration: .default,
| `- error: cannot infer contextual base in reference to member 'default'
18 | delegate: URLSessionDelegateHandler(),
19 | delegateQueue: nil
/host/spi-builder-workspace/Sources/Async/Session.swift:19:28: error: 'nil' requires a contextual type
17 | configuration: .default,
18 | delegate: URLSessionDelegateHandler(),
19 | delegateQueue: nil
| `- error: 'nil' requires a contextual type
20 | )
21 | ) {
/host/spi-builder-workspace/Sources/Testing/FakeSession.swift:22:39: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
20 | let (response, data) = try await resultProvider.data(for: call)
21 |
22 | guard let response = response as? HTTPURLResponse else {
| `- warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
23 | if #available(iOS 14.0, macOS 11.0, tvOS 14.0, watchOS 7.0, visionOS 1.0, *) {
24 | Logger.default.debug("no response.")
/host/spi-builder-workspace/Sources/Testing/FakeSession.swift:22:43: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
20 | let (response, data) = try await resultProvider.data(for: call)
21 |
22 | guard let response = response as? HTTPURLResponse else {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
23 | if #available(iOS 14.0, macOS 11.0, tvOS 14.0, watchOS 7.0, visionOS 1.0, *) {
24 | Logger.default.debug("no response.")
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/Testing/FakeSession.swift:24:17: error: cannot find 'Logger' in scope
22 | guard let response = response as? HTTPURLResponse else {
23 | if #available(iOS 14.0, macOS 11.0, tvOS 14.0, watchOS 7.0, visionOS 1.0, *) {
24 | Logger.default.debug("no response.")
| `- error: cannot find 'Logger' in scope
25 | } else {
26 | os_log("no response.", log: .default, type: .debug)
/host/spi-builder-workspace/Sources/Testing/FakeSession.swift:26:17: error: cannot find 'os_log' in scope
24 | Logger.default.debug("no response.")
25 | } else {
26 | os_log("no response.", log: .default, type: .debug)
| `- error: cannot find 'os_log' in scope
27 | }
28 |
/host/spi-builder-workspace/Sources/Testing/FakeSession.swift:26:46: error: cannot infer contextual base in reference to member 'default'
24 | Logger.default.debug("no response.")
25 | } else {
26 | os_log("no response.", log: .default, type: .debug)
| `- error: cannot infer contextual base in reference to member 'default'
27 | }
28 |
/host/spi-builder-workspace/Sources/Testing/FakeSession.swift:26:62: error: cannot infer contextual base in reference to member 'debug'
24 | Logger.default.debug("no response.")
25 | } else {
26 | os_log("no response.", log: .default, type: .debug)
| `- error: cannot infer contextual base in reference to member 'debug'
27 | }
28 |
/host/spi-builder-workspace/Sources/Testing/FakeSession.swift:40:36: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'debugDescription'
38 | var message = ""
39 | message += "\(call.request.cURLRepresentation)\n"
40 | message += "\(response.debugDescription)\n"
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'debugDescription'
41 | message += "\(data.debugDescription(encoding: response.stringEncoding))"
42 |
/host/spi-builder-workspace/Sources/Testing/FakeSession.swift:41:68: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'stringEncoding'
39 | message += "\(call.request.cURLRepresentation)\n"
40 | message += "\(response.debugDescription)\n"
41 | message += "\(data.debugDescription(encoding: response.stringEncoding))"
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'stringEncoding'
42 |
43 | if #available(iOS 14.0, macOS 11.0, tvOS 14.0, watchOS 7.0, visionOS 1.0, *) {
/host/spi-builder-workspace/Sources/Testing/FakeSession.swift:44:17: error: cannot find 'Logger' in scope
42 |
43 | if #available(iOS 14.0, macOS 11.0, tvOS 14.0, watchOS 7.0, visionOS 1.0, *) {
44 | Logger.default.debug("\(message, privacy: .private)")
| `- error: cannot find 'Logger' in scope
45 | } else {
46 | os_log("%s", log: .default, type: .debug, message)
/host/spi-builder-workspace/Sources/Testing/FakeSession.swift:44:60: error: extra argument 'privacy' in call
42 |
43 | if #available(iOS 14.0, macOS 11.0, tvOS 14.0, watchOS 7.0, visionOS 1.0, *) {
44 | Logger.default.debug("\(message, privacy: .private)")
| `- error: extra argument 'privacy' in call
45 | } else {
46 | os_log("%s", log: .default, type: .debug, message)
/host/spi-builder-workspace/Sources/Testing/FakeSession.swift:44:60: error: cannot infer contextual base in reference to member 'private'
42 |
43 | if #available(iOS 14.0, macOS 11.0, tvOS 14.0, watchOS 7.0, visionOS 1.0, *) {
44 | Logger.default.debug("\(message, privacy: .private)")
| `- error: cannot infer contextual base in reference to member 'private'
45 | } else {
46 | os_log("%s", log: .default, type: .debug, message)
/host/spi-builder-workspace/Sources/Testing/FakeSession.swift:46:17: error: cannot find 'os_log' in scope
44 | Logger.default.debug("\(message, privacy: .private)")
45 | } else {
46 | os_log("%s", log: .default, type: .debug, message)
| `- error: cannot find 'os_log' in scope
47 | }
48 | }
/host/spi-builder-workspace/Sources/Testing/FakeSession.swift:46:36: error: cannot infer contextual base in reference to member 'default'
44 | Logger.default.debug("\(message, privacy: .private)")
45 | } else {
46 | os_log("%s", log: .default, type: .debug, message)
| `- error: cannot infer contextual base in reference to member 'default'
47 | }
48 | }
/host/spi-builder-workspace/Sources/Testing/FakeSession.swift:46:52: error: cannot infer contextual base in reference to member 'debug'
44 | Logger.default.debug("\(message, privacy: .private)")
45 | } else {
46 | os_log("%s", log: .default, type: .debug, message)
| `- error: cannot infer contextual base in reference to member 'debug'
47 | }
48 | }
[31/43] Compiling Endpoints FakeHTTPURLResponse.swift
/host/spi-builder-workspace/Sources/ResponseValidator/ResponseValidator.swift:12:19: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
10 | /// - throws: Any `Error`, if `result` is not valid.
11 | func validate(
12 | response: HTTPURLResponse?,
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
13 | data: Data?
14 | ) async throws
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/ResponseValidator/StatusCodeValidator.swift:15:19: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
13 | /// - throws: `StatusCodeError.unacceptable` with `reason` set to `nil`
14 | public func validate(
15 | response: HTTPURLResponse?,
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
16 | data _: Data?
17 | ) throws {
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/ResponseValidator/StatusCodeValidator.swift:18:33: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
16 | data _: Data?
17 | ) throws {
18 | if let code = response?.statusCode,
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
19 | !isAcceptableStatus(code: code) {
20 | throw StatusCodeError.unacceptable(code: code, reason: nil)
/host/spi-builder-workspace/Sources/Testing/FakeHTTPURLResponse.swift:5:35: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
3 | import Foundation
4 |
5 | public class FakeHTTPURLResponse: HTTPURLResponse {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
6 | public init(
7 | status code: Int = 200,
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/Testing/FakeHTTPURLResponse.swift:12:9: error: 'super' cannot be used in class 'FakeHTTPURLResponse' because it has no superclass
10 | header: Parameters? = nil
11 | ) {
12 | super.init(
| `- error: 'super' cannot be used in class 'FakeHTTPURLResponse' because it has no superclass
13 | url: url,
14 | statusCode: code,
/host/spi-builder-workspace/Sources/Testing/FakeResultProvider.swift:4:54: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
2 |
3 | public protocol FakeResultProvider {
4 | func data<C: Call>(for call: C) async throws -> (URLResponse, Data)
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
5 | }
6 |
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Testing/FakeSession.swift:19:45: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
17 | override public func dataTask<C: Call>(
18 | for call: C
19 | ) async throws -> (C.Parser.OutputType, HTTPURLResponse) {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
20 | let (response, data) = try await resultProvider.data(for: call)
21 |
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/Async/Session.swift:16:40: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
14 | public init(
15 | with client: CL,
16 | using urlSession: URLSession = URLSession(
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
17 | configuration: .default,
18 | delegate: URLSessionDelegateHandler(),
/host/spi-builder-workspace/Sources/Async/Session.swift:17:29: error: cannot infer contextual base in reference to member 'default'
15 | with client: CL,
16 | using urlSession: URLSession = URLSession(
17 | configuration: .default,
| `- error: cannot infer contextual base in reference to member 'default'
18 | delegate: URLSessionDelegateHandler(),
19 | delegateQueue: nil
/host/spi-builder-workspace/Sources/Async/Session.swift:19:28: error: 'nil' requires a contextual type
17 | configuration: .default,
18 | delegate: URLSessionDelegateHandler(),
19 | delegateQueue: nil
| `- error: 'nil' requires a contextual type
20 | )
21 | ) {
/host/spi-builder-workspace/Sources/Testing/FakeSession.swift:22:39: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
20 | let (response, data) = try await resultProvider.data(for: call)
21 |
22 | guard let response = response as? HTTPURLResponse else {
| `- warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
23 | if #available(iOS 14.0, macOS 11.0, tvOS 14.0, watchOS 7.0, visionOS 1.0, *) {
24 | Logger.default.debug("no response.")
/host/spi-builder-workspace/Sources/Testing/FakeSession.swift:22:43: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
20 | let (response, data) = try await resultProvider.data(for: call)
21 |
22 | guard let response = response as? HTTPURLResponse else {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
23 | if #available(iOS 14.0, macOS 11.0, tvOS 14.0, watchOS 7.0, visionOS 1.0, *) {
24 | Logger.default.debug("no response.")
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/Testing/FakeSession.swift:24:17: error: cannot find 'Logger' in scope
22 | guard let response = response as? HTTPURLResponse else {
23 | if #available(iOS 14.0, macOS 11.0, tvOS 14.0, watchOS 7.0, visionOS 1.0, *) {
24 | Logger.default.debug("no response.")
| `- error: cannot find 'Logger' in scope
25 | } else {
26 | os_log("no response.", log: .default, type: .debug)
/host/spi-builder-workspace/Sources/Testing/FakeSession.swift:26:17: error: cannot find 'os_log' in scope
24 | Logger.default.debug("no response.")
25 | } else {
26 | os_log("no response.", log: .default, type: .debug)
| `- error: cannot find 'os_log' in scope
27 | }
28 |
/host/spi-builder-workspace/Sources/Testing/FakeSession.swift:26:46: error: cannot infer contextual base in reference to member 'default'
24 | Logger.default.debug("no response.")
25 | } else {
26 | os_log("no response.", log: .default, type: .debug)
| `- error: cannot infer contextual base in reference to member 'default'
27 | }
28 |
/host/spi-builder-workspace/Sources/Testing/FakeSession.swift:26:62: error: cannot infer contextual base in reference to member 'debug'
24 | Logger.default.debug("no response.")
25 | } else {
26 | os_log("no response.", log: .default, type: .debug)
| `- error: cannot infer contextual base in reference to member 'debug'
27 | }
28 |
/host/spi-builder-workspace/Sources/Testing/FakeSession.swift:40:36: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'debugDescription'
38 | var message = ""
39 | message += "\(call.request.cURLRepresentation)\n"
40 | message += "\(response.debugDescription)\n"
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'debugDescription'
41 | message += "\(data.debugDescription(encoding: response.stringEncoding))"
42 |
/host/spi-builder-workspace/Sources/Testing/FakeSession.swift:41:68: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'stringEncoding'
39 | message += "\(call.request.cURLRepresentation)\n"
40 | message += "\(response.debugDescription)\n"
41 | message += "\(data.debugDescription(encoding: response.stringEncoding))"
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'stringEncoding'
42 |
43 | if #available(iOS 14.0, macOS 11.0, tvOS 14.0, watchOS 7.0, visionOS 1.0, *) {
/host/spi-builder-workspace/Sources/Testing/FakeSession.swift:44:17: error: cannot find 'Logger' in scope
42 |
43 | if #available(iOS 14.0, macOS 11.0, tvOS 14.0, watchOS 7.0, visionOS 1.0, *) {
44 | Logger.default.debug("\(message, privacy: .private)")
| `- error: cannot find 'Logger' in scope
45 | } else {
46 | os_log("%s", log: .default, type: .debug, message)
/host/spi-builder-workspace/Sources/Testing/FakeSession.swift:44:60: error: extra argument 'privacy' in call
42 |
43 | if #available(iOS 14.0, macOS 11.0, tvOS 14.0, watchOS 7.0, visionOS 1.0, *) {
44 | Logger.default.debug("\(message, privacy: .private)")
| `- error: extra argument 'privacy' in call
45 | } else {
46 | os_log("%s", log: .default, type: .debug, message)
/host/spi-builder-workspace/Sources/Testing/FakeSession.swift:44:60: error: cannot infer contextual base in reference to member 'private'
42 |
43 | if #available(iOS 14.0, macOS 11.0, tvOS 14.0, watchOS 7.0, visionOS 1.0, *) {
44 | Logger.default.debug("\(message, privacy: .private)")
| `- error: cannot infer contextual base in reference to member 'private'
45 | } else {
46 | os_log("%s", log: .default, type: .debug, message)
/host/spi-builder-workspace/Sources/Testing/FakeSession.swift:46:17: error: cannot find 'os_log' in scope
44 | Logger.default.debug("\(message, privacy: .private)")
45 | } else {
46 | os_log("%s", log: .default, type: .debug, message)
| `- error: cannot find 'os_log' in scope
47 | }
48 | }
/host/spi-builder-workspace/Sources/Testing/FakeSession.swift:46:36: error: cannot infer contextual base in reference to member 'default'
44 | Logger.default.debug("\(message, privacy: .private)")
45 | } else {
46 | os_log("%s", log: .default, type: .debug, message)
| `- error: cannot infer contextual base in reference to member 'default'
47 | }
48 | }
/host/spi-builder-workspace/Sources/Testing/FakeSession.swift:46:52: error: cannot infer contextual base in reference to member 'debug'
44 | Logger.default.debug("\(message, privacy: .private)")
45 | } else {
46 | os_log("%s", log: .default, type: .debug, message)
| `- error: cannot infer contextual base in reference to member 'debug'
47 | }
48 | }
[32/43] Compiling Endpoints FakeResultProvider.swift
/host/spi-builder-workspace/Sources/ResponseValidator/ResponseValidator.swift:12:19: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
10 | /// - throws: Any `Error`, if `result` is not valid.
11 | func validate(
12 | response: HTTPURLResponse?,
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
13 | data: Data?
14 | ) async throws
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/ResponseValidator/StatusCodeValidator.swift:15:19: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
13 | /// - throws: `StatusCodeError.unacceptable` with `reason` set to `nil`
14 | public func validate(
15 | response: HTTPURLResponse?,
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
16 | data _: Data?
17 | ) throws {
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/ResponseValidator/StatusCodeValidator.swift:18:33: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
16 | data _: Data?
17 | ) throws {
18 | if let code = response?.statusCode,
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
19 | !isAcceptableStatus(code: code) {
20 | throw StatusCodeError.unacceptable(code: code, reason: nil)
/host/spi-builder-workspace/Sources/Testing/FakeHTTPURLResponse.swift:5:35: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
3 | import Foundation
4 |
5 | public class FakeHTTPURLResponse: HTTPURLResponse {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
6 | public init(
7 | status code: Int = 200,
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/Testing/FakeHTTPURLResponse.swift:12:9: error: 'super' cannot be used in class 'FakeHTTPURLResponse' because it has no superclass
10 | header: Parameters? = nil
11 | ) {
12 | super.init(
| `- error: 'super' cannot be used in class 'FakeHTTPURLResponse' because it has no superclass
13 | url: url,
14 | statusCode: code,
/host/spi-builder-workspace/Sources/Testing/FakeResultProvider.swift:4:54: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
2 |
3 | public protocol FakeResultProvider {
4 | func data<C: Call>(for call: C) async throws -> (URLResponse, Data)
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
5 | }
6 |
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Testing/FakeSession.swift:19:45: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
17 | override public func dataTask<C: Call>(
18 | for call: C
19 | ) async throws -> (C.Parser.OutputType, HTTPURLResponse) {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
20 | let (response, data) = try await resultProvider.data(for: call)
21 |
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/Async/Session.swift:16:40: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
14 | public init(
15 | with client: CL,
16 | using urlSession: URLSession = URLSession(
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
17 | configuration: .default,
18 | delegate: URLSessionDelegateHandler(),
/host/spi-builder-workspace/Sources/Async/Session.swift:17:29: error: cannot infer contextual base in reference to member 'default'
15 | with client: CL,
16 | using urlSession: URLSession = URLSession(
17 | configuration: .default,
| `- error: cannot infer contextual base in reference to member 'default'
18 | delegate: URLSessionDelegateHandler(),
19 | delegateQueue: nil
/host/spi-builder-workspace/Sources/Async/Session.swift:19:28: error: 'nil' requires a contextual type
17 | configuration: .default,
18 | delegate: URLSessionDelegateHandler(),
19 | delegateQueue: nil
| `- error: 'nil' requires a contextual type
20 | )
21 | ) {
/host/spi-builder-workspace/Sources/Testing/FakeSession.swift:22:39: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
20 | let (response, data) = try await resultProvider.data(for: call)
21 |
22 | guard let response = response as? HTTPURLResponse else {
| `- warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
23 | if #available(iOS 14.0, macOS 11.0, tvOS 14.0, watchOS 7.0, visionOS 1.0, *) {
24 | Logger.default.debug("no response.")
/host/spi-builder-workspace/Sources/Testing/FakeSession.swift:22:43: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
20 | let (response, data) = try await resultProvider.data(for: call)
21 |
22 | guard let response = response as? HTTPURLResponse else {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
23 | if #available(iOS 14.0, macOS 11.0, tvOS 14.0, watchOS 7.0, visionOS 1.0, *) {
24 | Logger.default.debug("no response.")
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/Testing/FakeSession.swift:24:17: error: cannot find 'Logger' in scope
22 | guard let response = response as? HTTPURLResponse else {
23 | if #available(iOS 14.0, macOS 11.0, tvOS 14.0, watchOS 7.0, visionOS 1.0, *) {
24 | Logger.default.debug("no response.")
| `- error: cannot find 'Logger' in scope
25 | } else {
26 | os_log("no response.", log: .default, type: .debug)
/host/spi-builder-workspace/Sources/Testing/FakeSession.swift:26:17: error: cannot find 'os_log' in scope
24 | Logger.default.debug("no response.")
25 | } else {
26 | os_log("no response.", log: .default, type: .debug)
| `- error: cannot find 'os_log' in scope
27 | }
28 |
/host/spi-builder-workspace/Sources/Testing/FakeSession.swift:26:46: error: cannot infer contextual base in reference to member 'default'
24 | Logger.default.debug("no response.")
25 | } else {
26 | os_log("no response.", log: .default, type: .debug)
| `- error: cannot infer contextual base in reference to member 'default'
27 | }
28 |
/host/spi-builder-workspace/Sources/Testing/FakeSession.swift:26:62: error: cannot infer contextual base in reference to member 'debug'
24 | Logger.default.debug("no response.")
25 | } else {
26 | os_log("no response.", log: .default, type: .debug)
| `- error: cannot infer contextual base in reference to member 'debug'
27 | }
28 |
/host/spi-builder-workspace/Sources/Testing/FakeSession.swift:40:36: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'debugDescription'
38 | var message = ""
39 | message += "\(call.request.cURLRepresentation)\n"
40 | message += "\(response.debugDescription)\n"
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'debugDescription'
41 | message += "\(data.debugDescription(encoding: response.stringEncoding))"
42 |
/host/spi-builder-workspace/Sources/Testing/FakeSession.swift:41:68: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'stringEncoding'
39 | message += "\(call.request.cURLRepresentation)\n"
40 | message += "\(response.debugDescription)\n"
41 | message += "\(data.debugDescription(encoding: response.stringEncoding))"
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'stringEncoding'
42 |
43 | if #available(iOS 14.0, macOS 11.0, tvOS 14.0, watchOS 7.0, visionOS 1.0, *) {
/host/spi-builder-workspace/Sources/Testing/FakeSession.swift:44:17: error: cannot find 'Logger' in scope
42 |
43 | if #available(iOS 14.0, macOS 11.0, tvOS 14.0, watchOS 7.0, visionOS 1.0, *) {
44 | Logger.default.debug("\(message, privacy: .private)")
| `- error: cannot find 'Logger' in scope
45 | } else {
46 | os_log("%s", log: .default, type: .debug, message)
/host/spi-builder-workspace/Sources/Testing/FakeSession.swift:44:60: error: extra argument 'privacy' in call
42 |
43 | if #available(iOS 14.0, macOS 11.0, tvOS 14.0, watchOS 7.0, visionOS 1.0, *) {
44 | Logger.default.debug("\(message, privacy: .private)")
| `- error: extra argument 'privacy' in call
45 | } else {
46 | os_log("%s", log: .default, type: .debug, message)
/host/spi-builder-workspace/Sources/Testing/FakeSession.swift:44:60: error: cannot infer contextual base in reference to member 'private'
42 |
43 | if #available(iOS 14.0, macOS 11.0, tvOS 14.0, watchOS 7.0, visionOS 1.0, *) {
44 | Logger.default.debug("\(message, privacy: .private)")
| `- error: cannot infer contextual base in reference to member 'private'
45 | } else {
46 | os_log("%s", log: .default, type: .debug, message)
/host/spi-builder-workspace/Sources/Testing/FakeSession.swift:46:17: error: cannot find 'os_log' in scope
44 | Logger.default.debug("\(message, privacy: .private)")
45 | } else {
46 | os_log("%s", log: .default, type: .debug, message)
| `- error: cannot find 'os_log' in scope
47 | }
48 | }
/host/spi-builder-workspace/Sources/Testing/FakeSession.swift:46:36: error: cannot infer contextual base in reference to member 'default'
44 | Logger.default.debug("\(message, privacy: .private)")
45 | } else {
46 | os_log("%s", log: .default, type: .debug, message)
| `- error: cannot infer contextual base in reference to member 'default'
47 | }
48 | }
/host/spi-builder-workspace/Sources/Testing/FakeSession.swift:46:52: error: cannot infer contextual base in reference to member 'debug'
44 | Logger.default.debug("\(message, privacy: .private)")
45 | } else {
46 | os_log("%s", log: .default, type: .debug, message)
| `- error: cannot infer contextual base in reference to member 'debug'
47 | }
48 | }
[33/43] Compiling Endpoints FakeSession.swift
/host/spi-builder-workspace/Sources/ResponseValidator/ResponseValidator.swift:12:19: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
10 | /// - throws: Any `Error`, if `result` is not valid.
11 | func validate(
12 | response: HTTPURLResponse?,
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
13 | data: Data?
14 | ) async throws
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/ResponseValidator/StatusCodeValidator.swift:15:19: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
13 | /// - throws: `StatusCodeError.unacceptable` with `reason` set to `nil`
14 | public func validate(
15 | response: HTTPURLResponse?,
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
16 | data _: Data?
17 | ) throws {
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/ResponseValidator/StatusCodeValidator.swift:18:33: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
16 | data _: Data?
17 | ) throws {
18 | if let code = response?.statusCode,
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
19 | !isAcceptableStatus(code: code) {
20 | throw StatusCodeError.unacceptable(code: code, reason: nil)
/host/spi-builder-workspace/Sources/Testing/FakeHTTPURLResponse.swift:5:35: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
3 | import Foundation
4 |
5 | public class FakeHTTPURLResponse: HTTPURLResponse {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
6 | public init(
7 | status code: Int = 200,
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/Testing/FakeHTTPURLResponse.swift:12:9: error: 'super' cannot be used in class 'FakeHTTPURLResponse' because it has no superclass
10 | header: Parameters? = nil
11 | ) {
12 | super.init(
| `- error: 'super' cannot be used in class 'FakeHTTPURLResponse' because it has no superclass
13 | url: url,
14 | statusCode: code,
/host/spi-builder-workspace/Sources/Testing/FakeResultProvider.swift:4:54: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
2 |
3 | public protocol FakeResultProvider {
4 | func data<C: Call>(for call: C) async throws -> (URLResponse, Data)
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
5 | }
6 |
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Testing/FakeSession.swift:19:45: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
17 | override public func dataTask<C: Call>(
18 | for call: C
19 | ) async throws -> (C.Parser.OutputType, HTTPURLResponse) {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
20 | let (response, data) = try await resultProvider.data(for: call)
21 |
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/Async/Session.swift:16:40: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
14 | public init(
15 | with client: CL,
16 | using urlSession: URLSession = URLSession(
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
17 | configuration: .default,
18 | delegate: URLSessionDelegateHandler(),
/host/spi-builder-workspace/Sources/Async/Session.swift:17:29: error: cannot infer contextual base in reference to member 'default'
15 | with client: CL,
16 | using urlSession: URLSession = URLSession(
17 | configuration: .default,
| `- error: cannot infer contextual base in reference to member 'default'
18 | delegate: URLSessionDelegateHandler(),
19 | delegateQueue: nil
/host/spi-builder-workspace/Sources/Async/Session.swift:19:28: error: 'nil' requires a contextual type
17 | configuration: .default,
18 | delegate: URLSessionDelegateHandler(),
19 | delegateQueue: nil
| `- error: 'nil' requires a contextual type
20 | )
21 | ) {
/host/spi-builder-workspace/Sources/Testing/FakeSession.swift:22:39: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
20 | let (response, data) = try await resultProvider.data(for: call)
21 |
22 | guard let response = response as? HTTPURLResponse else {
| `- warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
23 | if #available(iOS 14.0, macOS 11.0, tvOS 14.0, watchOS 7.0, visionOS 1.0, *) {
24 | Logger.default.debug("no response.")
/host/spi-builder-workspace/Sources/Testing/FakeSession.swift:22:43: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
20 | let (response, data) = try await resultProvider.data(for: call)
21 |
22 | guard let response = response as? HTTPURLResponse else {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
23 | if #available(iOS 14.0, macOS 11.0, tvOS 14.0, watchOS 7.0, visionOS 1.0, *) {
24 | Logger.default.debug("no response.")
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/Testing/FakeSession.swift:24:17: error: cannot find 'Logger' in scope
22 | guard let response = response as? HTTPURLResponse else {
23 | if #available(iOS 14.0, macOS 11.0, tvOS 14.0, watchOS 7.0, visionOS 1.0, *) {
24 | Logger.default.debug("no response.")
| `- error: cannot find 'Logger' in scope
25 | } else {
26 | os_log("no response.", log: .default, type: .debug)
/host/spi-builder-workspace/Sources/Testing/FakeSession.swift:26:17: error: cannot find 'os_log' in scope
24 | Logger.default.debug("no response.")
25 | } else {
26 | os_log("no response.", log: .default, type: .debug)
| `- error: cannot find 'os_log' in scope
27 | }
28 |
/host/spi-builder-workspace/Sources/Testing/FakeSession.swift:26:46: error: cannot infer contextual base in reference to member 'default'
24 | Logger.default.debug("no response.")
25 | } else {
26 | os_log("no response.", log: .default, type: .debug)
| `- error: cannot infer contextual base in reference to member 'default'
27 | }
28 |
/host/spi-builder-workspace/Sources/Testing/FakeSession.swift:26:62: error: cannot infer contextual base in reference to member 'debug'
24 | Logger.default.debug("no response.")
25 | } else {
26 | os_log("no response.", log: .default, type: .debug)
| `- error: cannot infer contextual base in reference to member 'debug'
27 | }
28 |
/host/spi-builder-workspace/Sources/Testing/FakeSession.swift:40:36: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'debugDescription'
38 | var message = ""
39 | message += "\(call.request.cURLRepresentation)\n"
40 | message += "\(response.debugDescription)\n"
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'debugDescription'
41 | message += "\(data.debugDescription(encoding: response.stringEncoding))"
42 |
/host/spi-builder-workspace/Sources/Testing/FakeSession.swift:41:68: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'stringEncoding'
39 | message += "\(call.request.cURLRepresentation)\n"
40 | message += "\(response.debugDescription)\n"
41 | message += "\(data.debugDescription(encoding: response.stringEncoding))"
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'stringEncoding'
42 |
43 | if #available(iOS 14.0, macOS 11.0, tvOS 14.0, watchOS 7.0, visionOS 1.0, *) {
/host/spi-builder-workspace/Sources/Testing/FakeSession.swift:44:17: error: cannot find 'Logger' in scope
42 |
43 | if #available(iOS 14.0, macOS 11.0, tvOS 14.0, watchOS 7.0, visionOS 1.0, *) {
44 | Logger.default.debug("\(message, privacy: .private)")
| `- error: cannot find 'Logger' in scope
45 | } else {
46 | os_log("%s", log: .default, type: .debug, message)
/host/spi-builder-workspace/Sources/Testing/FakeSession.swift:44:60: error: extra argument 'privacy' in call
42 |
43 | if #available(iOS 14.0, macOS 11.0, tvOS 14.0, watchOS 7.0, visionOS 1.0, *) {
44 | Logger.default.debug("\(message, privacy: .private)")
| `- error: extra argument 'privacy' in call
45 | } else {
46 | os_log("%s", log: .default, type: .debug, message)
/host/spi-builder-workspace/Sources/Testing/FakeSession.swift:44:60: error: cannot infer contextual base in reference to member 'private'
42 |
43 | if #available(iOS 14.0, macOS 11.0, tvOS 14.0, watchOS 7.0, visionOS 1.0, *) {
44 | Logger.default.debug("\(message, privacy: .private)")
| `- error: cannot infer contextual base in reference to member 'private'
45 | } else {
46 | os_log("%s", log: .default, type: .debug, message)
/host/spi-builder-workspace/Sources/Testing/FakeSession.swift:46:17: error: cannot find 'os_log' in scope
44 | Logger.default.debug("\(message, privacy: .private)")
45 | } else {
46 | os_log("%s", log: .default, type: .debug, message)
| `- error: cannot find 'os_log' in scope
47 | }
48 | }
/host/spi-builder-workspace/Sources/Testing/FakeSession.swift:46:36: error: cannot infer contextual base in reference to member 'default'
44 | Logger.default.debug("\(message, privacy: .private)")
45 | } else {
46 | os_log("%s", log: .default, type: .debug, message)
| `- error: cannot infer contextual base in reference to member 'default'
47 | }
48 | }
/host/spi-builder-workspace/Sources/Testing/FakeSession.swift:46:52: error: cannot infer contextual base in reference to member 'debug'
44 | Logger.default.debug("\(message, privacy: .private)")
45 | } else {
46 | os_log("%s", log: .default, type: .debug, message)
| `- error: cannot infer contextual base in reference to member 'debug'
47 | }
48 | }
[34/43] Compiling Endpoints JSONEncodedBody.swift
[35/43] Compiling Endpoints MultipartBody.swift
[36/43] Compiling Endpoints MultipartBodyPart.swift
[37/43] Compiling Endpoints CodableString.swift
[38/43] Compiling Endpoints Encodable+toJSON.swift
[39/43] Compiling Endpoints URLRequestEncodable.swift
/host/spi-builder-workspace/Sources/Core/URLRequestEncodable.swift:10:21: error: cannot find type 'URLRequest' in scope
8 | public protocol URLRequestEncodable: CustomDebugStringConvertible {
9 | /// Returns an `URLRequest` configured with the data encapsulated by `self`.
10 | var urlRequest: URLRequest { get }
| `- error: cannot find type 'URLRequest' in scope
11 | }
12 |
/host/spi-builder-workspace/Sources/Core/URLSessionTaskResult.swift:11:26: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
9 | /// parameters.
10 | public struct URLSessionTaskResult {
11 | public var response: URLResponse?
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
12 | public var data: Data?
13 | public var error: Error?
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/Core/URLSessionTaskResult.swift:15:27: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
13 | public var error: Error?
14 |
15 | public init(response: URLResponse? = nil, data: Data? = nil, error: Error? = nil) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
16 | self.response = response
17 | self.data = data
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/Core/URLSessionTaskResult.swift:22:30: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
20 |
21 | /// Returns `response` cast to `HTTPURLResponse`.
22 | public var httpResponse: HTTPURLResponse? {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
23 | response as? HTTPURLResponse
24 | }
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/Core/URLSessionTaskResult.swift:23:18: warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
21 | /// Returns `response` cast to `HTTPURLResponse`.
22 | public var httpResponse: HTTPURLResponse? {
23 | response as? HTTPURLResponse
| `- warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
24 | }
25 | }
/host/spi-builder-workspace/Sources/Core/URLSessionTaskResult.swift:23:22: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
21 | /// Returns `response` cast to `HTTPURLResponse`.
22 | public var httpResponse: HTTPURLResponse? {
23 | response as? HTTPURLResponse
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
24 | }
25 | }
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/Error/EndpointsError.swift:9:26: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
7 | public struct EndpointsError: LocalizedError {
8 | public let error: Error
9 | public let response: HTTPURLResponse?
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
10 |
11 | public init(error: Error, response: HTTPURLResponse?) {
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/Error/EndpointsError.swift:11:41: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
9 | public let response: HTTPURLResponse?
10 |
11 | public init(error: Error, response: HTTPURLResponse?) {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
12 | self.error = error
13 | self.response = response
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
[40/43] Compiling Endpoints URLSessionTaskResult.swift
/host/spi-builder-workspace/Sources/Core/URLRequestEncodable.swift:10:21: error: cannot find type 'URLRequest' in scope
8 | public protocol URLRequestEncodable: CustomDebugStringConvertible {
9 | /// Returns an `URLRequest` configured with the data encapsulated by `self`.
10 | var urlRequest: URLRequest { get }
| `- error: cannot find type 'URLRequest' in scope
11 | }
12 |
/host/spi-builder-workspace/Sources/Core/URLSessionTaskResult.swift:11:26: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
9 | /// parameters.
10 | public struct URLSessionTaskResult {
11 | public var response: URLResponse?
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
12 | public var data: Data?
13 | public var error: Error?
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/Core/URLSessionTaskResult.swift:15:27: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
13 | public var error: Error?
14 |
15 | public init(response: URLResponse? = nil, data: Data? = nil, error: Error? = nil) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
16 | self.response = response
17 | self.data = data
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/Core/URLSessionTaskResult.swift:22:30: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
20 |
21 | /// Returns `response` cast to `HTTPURLResponse`.
22 | public var httpResponse: HTTPURLResponse? {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
23 | response as? HTTPURLResponse
24 | }
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/Core/URLSessionTaskResult.swift:23:18: warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
21 | /// Returns `response` cast to `HTTPURLResponse`.
22 | public var httpResponse: HTTPURLResponse? {
23 | response as? HTTPURLResponse
| `- warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
24 | }
25 | }
/host/spi-builder-workspace/Sources/Core/URLSessionTaskResult.swift:23:22: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
21 | /// Returns `response` cast to `HTTPURLResponse`.
22 | public var httpResponse: HTTPURLResponse? {
23 | response as? HTTPURLResponse
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
24 | }
25 | }
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/Error/EndpointsError.swift:9:26: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
7 | public struct EndpointsError: LocalizedError {
8 | public let error: Error
9 | public let response: HTTPURLResponse?
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
10 |
11 | public init(error: Error, response: HTTPURLResponse?) {
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/Error/EndpointsError.swift:11:41: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
9 | public let response: HTTPURLResponse?
10 |
11 | public init(error: Error, response: HTTPURLResponse?) {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
12 | self.error = error
13 | self.response = response
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
[41/43] Compiling Endpoints ContinuationError.swift
/host/spi-builder-workspace/Sources/Core/URLRequestEncodable.swift:10:21: error: cannot find type 'URLRequest' in scope
8 | public protocol URLRequestEncodable: CustomDebugStringConvertible {
9 | /// Returns an `URLRequest` configured with the data encapsulated by `self`.
10 | var urlRequest: URLRequest { get }
| `- error: cannot find type 'URLRequest' in scope
11 | }
12 |
/host/spi-builder-workspace/Sources/Core/URLSessionTaskResult.swift:11:26: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
9 | /// parameters.
10 | public struct URLSessionTaskResult {
11 | public var response: URLResponse?
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
12 | public var data: Data?
13 | public var error: Error?
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/Core/URLSessionTaskResult.swift:15:27: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
13 | public var error: Error?
14 |
15 | public init(response: URLResponse? = nil, data: Data? = nil, error: Error? = nil) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
16 | self.response = response
17 | self.data = data
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/Core/URLSessionTaskResult.swift:22:30: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
20 |
21 | /// Returns `response` cast to `HTTPURLResponse`.
22 | public var httpResponse: HTTPURLResponse? {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
23 | response as? HTTPURLResponse
24 | }
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/Core/URLSessionTaskResult.swift:23:18: warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
21 | /// Returns `response` cast to `HTTPURLResponse`.
22 | public var httpResponse: HTTPURLResponse? {
23 | response as? HTTPURLResponse
| `- warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
24 | }
25 | }
/host/spi-builder-workspace/Sources/Core/URLSessionTaskResult.swift:23:22: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
21 | /// Returns `response` cast to `HTTPURLResponse`.
22 | public var httpResponse: HTTPURLResponse? {
23 | response as? HTTPURLResponse
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
24 | }
25 | }
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/Error/EndpointsError.swift:9:26: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
7 | public struct EndpointsError: LocalizedError {
8 | public let error: Error
9 | public let response: HTTPURLResponse?
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
10 |
11 | public init(error: Error, response: HTTPURLResponse?) {
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/Error/EndpointsError.swift:11:41: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
9 | public let response: HTTPURLResponse?
10 |
11 | public init(error: Error, response: HTTPURLResponse?) {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
12 | self.error = error
13 | self.response = response
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
[42/43] Compiling Endpoints EndpointsError.swift
/host/spi-builder-workspace/Sources/Core/URLRequestEncodable.swift:10:21: error: cannot find type 'URLRequest' in scope
8 | public protocol URLRequestEncodable: CustomDebugStringConvertible {
9 | /// Returns an `URLRequest` configured with the data encapsulated by `self`.
10 | var urlRequest: URLRequest { get }
| `- error: cannot find type 'URLRequest' in scope
11 | }
12 |
/host/spi-builder-workspace/Sources/Core/URLSessionTaskResult.swift:11:26: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
9 | /// parameters.
10 | public struct URLSessionTaskResult {
11 | public var response: URLResponse?
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
12 | public var data: Data?
13 | public var error: Error?
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/Core/URLSessionTaskResult.swift:15:27: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
13 | public var error: Error?
14 |
15 | public init(response: URLResponse? = nil, data: Data? = nil, error: Error? = nil) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
16 | self.response = response
17 | self.data = data
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/Core/URLSessionTaskResult.swift:22:30: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
20 |
21 | /// Returns `response` cast to `HTTPURLResponse`.
22 | public var httpResponse: HTTPURLResponse? {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
23 | response as? HTTPURLResponse
24 | }
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/Core/URLSessionTaskResult.swift:23:18: warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
21 | /// Returns `response` cast to `HTTPURLResponse`.
22 | public var httpResponse: HTTPURLResponse? {
23 | response as? HTTPURLResponse
| `- warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
24 | }
25 | }
/host/spi-builder-workspace/Sources/Core/URLSessionTaskResult.swift:23:22: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
21 | /// Returns `response` cast to `HTTPURLResponse`.
22 | public var httpResponse: HTTPURLResponse? {
23 | response as? HTTPURLResponse
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
24 | }
25 | }
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/Error/EndpointsError.swift:9:26: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
7 | public struct EndpointsError: LocalizedError {
8 | public let error: Error
9 | public let response: HTTPURLResponse?
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
10 |
11 | public init(error: Error, response: HTTPURLResponse?) {
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/Error/EndpointsError.swift:11:41: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
9 | public let response: HTTPURLResponse?
10 |
11 | public init(error: Error, response: HTTPURLResponse?) {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
12 | self.error = error
13 | self.response = response
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
[43/43] Compiling Endpoints EndpointsParsingError.swift
/host/spi-builder-workspace/Sources/Core/URLRequestEncodable.swift:10:21: error: cannot find type 'URLRequest' in scope
8 | public protocol URLRequestEncodable: CustomDebugStringConvertible {
9 | /// Returns an `URLRequest` configured with the data encapsulated by `self`.
10 | var urlRequest: URLRequest { get }
| `- error: cannot find type 'URLRequest' in scope
11 | }
12 |
/host/spi-builder-workspace/Sources/Core/URLSessionTaskResult.swift:11:26: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
9 | /// parameters.
10 | public struct URLSessionTaskResult {
11 | public var response: URLResponse?
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
12 | public var data: Data?
13 | public var error: Error?
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/Core/URLSessionTaskResult.swift:15:27: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
13 | public var error: Error?
14 |
15 | public init(response: URLResponse? = nil, data: Data? = nil, error: Error? = nil) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
16 | self.response = response
17 | self.data = data
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/Core/URLSessionTaskResult.swift:22:30: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
20 |
21 | /// Returns `response` cast to `HTTPURLResponse`.
22 | public var httpResponse: HTTPURLResponse? {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
23 | response as? HTTPURLResponse
24 | }
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/Core/URLSessionTaskResult.swift:23:18: warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
21 | /// Returns `response` cast to `HTTPURLResponse`.
22 | public var httpResponse: HTTPURLResponse? {
23 | response as? HTTPURLResponse
| `- warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
24 | }
25 | }
/host/spi-builder-workspace/Sources/Core/URLSessionTaskResult.swift:23:22: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
21 | /// Returns `response` cast to `HTTPURLResponse`.
22 | public var httpResponse: HTTPURLResponse? {
23 | response as? HTTPURLResponse
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
24 | }
25 | }
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/Error/EndpointsError.swift:9:26: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
7 | public struct EndpointsError: LocalizedError {
8 | public let error: Error
9 | public let response: HTTPURLResponse?
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
10 |
11 | public init(error: Error, response: HTTPURLResponse?) {
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/Error/EndpointsError.swift:11:41: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
9 | public let response: HTTPURLResponse?
10 |
11 | public init(error: Error, response: HTTPURLResponse?) {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
12 | self.error = error
13 | self.response = response
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
BUILD FAILURE 6.1 wasm