The Swift Package Index logo.Swift Package Index

Track the adoption of Swift 6 strict concurrency checks for data race safety. How many packages are Ready for Swift 6?

Build Information

Failed to build Endpoints, reference develop (c3b213), with Swift 6.1 for Linux on 28 Apr 2025 14:51:01 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4606859-1":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.1-latest swift build --triple x86_64-unknown-linux-gnu 2>&1

Build Log

   |                 `- 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 |         }
[20/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 |         }
[21/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 |         }
[22/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 |         }
[23/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 |         }
[24/43] Compiling Endpoints Call.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/Call.swift:51:21: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
49 |     /// No-Op. Override to perform call-specific validation
50 |     func validate(
51 |         response _: HTTPURLResponse?,
   |                     `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
52 |         data _: Data?
53 |     ) throws { /* no validation by default */ }
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/Debugging.swift:70:8: error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended
68 | }
69 |
70 | public extension HTTPURLResponse {
   |        `- error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended
71 |     override var debugDescription: String {
72 |         var description = "\(statusCode)\n"
/host/spi-builder-workspace/Sources/Core/Debugging.swift:51:35: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
49 |         }
50 |
51 |         var description = "\(resp.statusCode)\n"
   |                                   `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
52 |
53 |         httpResponse?.allHeaderFields.forEach {
/host/spi-builder-workspace/Sources/Core/Debugging.swift:53:23: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
51 |         var description = "\(resp.statusCode)\n"
52 |
53 |         httpResponse?.allHeaderFields.forEach {
   |                       `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
54 |             description.append("-\($0): \($1)\n")
55 |         }
/host/spi-builder-workspace/Sources/Core/Debugging.swift:57:69: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'stringEncoding'
55 |         }
56 |
57 |         if let data, let string = String(data: data, encoding: resp.stringEncoding) {
   |                                                                     `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'stringEncoding'
58 |             if string.isEmpty {
59 |                 description.append("<empty>")
/host/spi-builder-workspace/Sources/Core/Request.swift:38:28: error: cannot find type 'URLRequest' in scope
36 |     }
37 |
38 |     public var urlRequest: URLRequest {
   |                            `- error: cannot find type 'URLRequest' in scope
39 |         var urlRequest = URLRequest(url: url)
40 |
/host/spi-builder-workspace/Sources/Core/Request.swift:39:26: error: cannot find 'URLRequest' in scope
37 |
38 |     public var urlRequest: URLRequest {
39 |         var urlRequest = URLRequest(url: url)
   |                          `- error: cannot find 'URLRequest' in scope
40 |
41 |         urlRequest.httpMethod = method.rawValue
[25/43] Compiling Endpoints Debugging.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/Call.swift:51:21: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
49 |     /// No-Op. Override to perform call-specific validation
50 |     func validate(
51 |         response _: HTTPURLResponse?,
   |                     `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
52 |         data _: Data?
53 |     ) throws { /* no validation by default */ }
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/Debugging.swift:70:8: error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended
68 | }
69 |
70 | public extension HTTPURLResponse {
   |        `- error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended
71 |     override var debugDescription: String {
72 |         var description = "\(statusCode)\n"
/host/spi-builder-workspace/Sources/Core/Debugging.swift:51:35: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
49 |         }
50 |
51 |         var description = "\(resp.statusCode)\n"
   |                                   `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
52 |
53 |         httpResponse?.allHeaderFields.forEach {
/host/spi-builder-workspace/Sources/Core/Debugging.swift:53:23: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
51 |         var description = "\(resp.statusCode)\n"
52 |
53 |         httpResponse?.allHeaderFields.forEach {
   |                       `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
54 |             description.append("-\($0): \($1)\n")
55 |         }
/host/spi-builder-workspace/Sources/Core/Debugging.swift:57:69: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'stringEncoding'
55 |         }
56 |
57 |         if let data, let string = String(data: data, encoding: resp.stringEncoding) {
   |                                                                     `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'stringEncoding'
58 |             if string.isEmpty {
59 |                 description.append("<empty>")
/host/spi-builder-workspace/Sources/Core/Request.swift:38:28: error: cannot find type 'URLRequest' in scope
36 |     }
37 |
38 |     public var urlRequest: URLRequest {
   |                            `- error: cannot find type 'URLRequest' in scope
39 |         var urlRequest = URLRequest(url: url)
40 |
/host/spi-builder-workspace/Sources/Core/Request.swift:39:26: error: cannot find 'URLRequest' in scope
37 |
38 |     public var urlRequest: URLRequest {
39 |         var urlRequest = URLRequest(url: url)
   |                          `- error: cannot find 'URLRequest' in scope
40 |
41 |         urlRequest.httpMethod = method.rawValue
[26/43] Compiling Endpoints HTTPMethod.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/Call.swift:51:21: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
49 |     /// No-Op. Override to perform call-specific validation
50 |     func validate(
51 |         response _: HTTPURLResponse?,
   |                     `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
52 |         data _: Data?
53 |     ) throws { /* no validation by default */ }
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/Debugging.swift:70:8: error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended
68 | }
69 |
70 | public extension HTTPURLResponse {
   |        `- error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended
71 |     override var debugDescription: String {
72 |         var description = "\(statusCode)\n"
/host/spi-builder-workspace/Sources/Core/Debugging.swift:51:35: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
49 |         }
50 |
51 |         var description = "\(resp.statusCode)\n"
   |                                   `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
52 |
53 |         httpResponse?.allHeaderFields.forEach {
/host/spi-builder-workspace/Sources/Core/Debugging.swift:53:23: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
51 |         var description = "\(resp.statusCode)\n"
52 |
53 |         httpResponse?.allHeaderFields.forEach {
   |                       `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
54 |             description.append("-\($0): \($1)\n")
55 |         }
/host/spi-builder-workspace/Sources/Core/Debugging.swift:57:69: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'stringEncoding'
55 |         }
56 |
57 |         if let data, let string = String(data: data, encoding: resp.stringEncoding) {
   |                                                                     `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'stringEncoding'
58 |             if string.isEmpty {
59 |                 description.append("<empty>")
/host/spi-builder-workspace/Sources/Core/Request.swift:38:28: error: cannot find type 'URLRequest' in scope
36 |     }
37 |
38 |     public var urlRequest: URLRequest {
   |                            `- error: cannot find type 'URLRequest' in scope
39 |         var urlRequest = URLRequest(url: url)
40 |
/host/spi-builder-workspace/Sources/Core/Request.swift:39:26: error: cannot find 'URLRequest' in scope
37 |
38 |     public var urlRequest: URLRequest {
39 |         var urlRequest = URLRequest(url: url)
   |                          `- error: cannot find 'URLRequest' in scope
40 |
41 |         urlRequest.httpMethod = method.rawValue
[27/43] Compiling Endpoints Logger.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/Call.swift:51:21: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
49 |     /// No-Op. Override to perform call-specific validation
50 |     func validate(
51 |         response _: HTTPURLResponse?,
   |                     `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
52 |         data _: Data?
53 |     ) throws { /* no validation by default */ }
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/Debugging.swift:70:8: error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended
68 | }
69 |
70 | public extension HTTPURLResponse {
   |        `- error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended
71 |     override var debugDescription: String {
72 |         var description = "\(statusCode)\n"
/host/spi-builder-workspace/Sources/Core/Debugging.swift:51:35: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
49 |         }
50 |
51 |         var description = "\(resp.statusCode)\n"
   |                                   `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
52 |
53 |         httpResponse?.allHeaderFields.forEach {
/host/spi-builder-workspace/Sources/Core/Debugging.swift:53:23: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
51 |         var description = "\(resp.statusCode)\n"
52 |
53 |         httpResponse?.allHeaderFields.forEach {
   |                       `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
54 |             description.append("-\($0): \($1)\n")
55 |         }
/host/spi-builder-workspace/Sources/Core/Debugging.swift:57:69: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'stringEncoding'
55 |         }
56 |
57 |         if let data, let string = String(data: data, encoding: resp.stringEncoding) {
   |                                                                     `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'stringEncoding'
58 |             if string.isEmpty {
59 |                 description.append("<empty>")
/host/spi-builder-workspace/Sources/Core/Request.swift:38:28: error: cannot find type 'URLRequest' in scope
36 |     }
37 |
38 |     public var urlRequest: URLRequest {
   |                            `- error: cannot find type 'URLRequest' in scope
39 |         var urlRequest = URLRequest(url: url)
40 |
/host/spi-builder-workspace/Sources/Core/Request.swift:39:26: error: cannot find 'URLRequest' in scope
37 |
38 |     public var urlRequest: URLRequest {
39 |         var urlRequest = URLRequest(url: url)
   |                          `- error: cannot find 'URLRequest' in scope
40 |
41 |         urlRequest.httpMethod = method.rawValue
[28/43] Compiling Endpoints Request.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/Call.swift:51:21: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
49 |     /// No-Op. Override to perform call-specific validation
50 |     func validate(
51 |         response _: HTTPURLResponse?,
   |                     `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
52 |         data _: Data?
53 |     ) throws { /* no validation by default */ }
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/Debugging.swift:70:8: error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended
68 | }
69 |
70 | public extension HTTPURLResponse {
   |        `- error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended
71 |     override var debugDescription: String {
72 |         var description = "\(statusCode)\n"
/host/spi-builder-workspace/Sources/Core/Debugging.swift:51:35: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
49 |         }
50 |
51 |         var description = "\(resp.statusCode)\n"
   |                                   `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
52 |
53 |         httpResponse?.allHeaderFields.forEach {
/host/spi-builder-workspace/Sources/Core/Debugging.swift:53:23: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
51 |         var description = "\(resp.statusCode)\n"
52 |
53 |         httpResponse?.allHeaderFields.forEach {
   |                       `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
54 |             description.append("-\($0): \($1)\n")
55 |         }
/host/spi-builder-workspace/Sources/Core/Debugging.swift:57:69: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'stringEncoding'
55 |         }
56 |
57 |         if let data, let string = String(data: data, encoding: resp.stringEncoding) {
   |                                                                     `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'stringEncoding'
58 |             if string.isEmpty {
59 |                 description.append("<empty>")
/host/spi-builder-workspace/Sources/Core/Request.swift:38:28: error: cannot find type 'URLRequest' in scope
36 |     }
37 |
38 |     public var urlRequest: URLRequest {
   |                            `- error: cannot find type 'URLRequest' in scope
39 |         var urlRequest = URLRequest(url: url)
40 |
/host/spi-builder-workspace/Sources/Core/Request.swift:39:26: error: cannot find 'URLRequest' in scope
37 |
38 |     public var urlRequest: URLRequest {
39 |         var urlRequest = URLRequest(url: url)
   |                          `- error: cannot find 'URLRequest' in scope
40 |
41 |         urlRequest.httpMethod = method.rawValue
[29/43] Compiling Endpoints AnyCall.swift
/host/spi-builder-workspace/Sources/Convenience/AnyCall.swift:8:41: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 6 |     public typealias Parser = Parser
 7 |
 8 |     public typealias ValidationBlock = (HTTPURLResponse?, Data?) throws -> Void
   |                                         `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 9 |
10 |     public var request: URLRequestEncodable
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/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/Convenience/AnyCall.swift:23:19: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
21 |
22 |     public func validate(
23 |         response: HTTPURLResponse?,
   |                   `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
24 |         data: Data?
25 |     ) 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/Convenience/HTTPURLResponse+Encoding.swift:5:8: error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended
 3 | import Foundation
 4 |
 5 | public extension HTTPURLResponse {
   |        `- error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended
 6 |     /// Returns the `textEncodingName`s corresponding `String.Encoding`
 7 |     /// or `utf8`, if this is not possible.
/host/spi-builder-workspace/Sources/Convenience/URL+URLRequestEncodable.swift:6:28: error: cannot find type 'URLRequest' in scope
 4 |
 5 | extension URL: URLRequestEncodable {
 6 |     public var urlRequest: URLRequest {
   |                            `- error: cannot find type 'URLRequest' in scope
 7 |         URLRequest(url: self)
 8 |     }
/host/spi-builder-workspace/Sources/Convenience/URLRequest+Extensions.swift:5:11: error: cannot find type 'URLRequest' in scope
 3 | import Foundation
 4 |
 5 | extension URLRequest: URLRequestEncodable {
   |           `- error: cannot find type 'URLRequest' in scope
 6 |     public var urlRequest: URLRequest {
 7 |         self
/host/spi-builder-workspace/Sources/Convenience/URLRequest+Extensions.swift:11:18: error: cannot find type 'URLRequest' in scope
 9 | }
10 |
11 | public extension URLRequest {
   |                  `- error: cannot find type 'URLRequest' in scope
12 |     /// Adds or replaces all header fields with the given values.
13 |     ///
/host/spi-builder-workspace/Sources/Convenience/URLRequest+Extensions.swift:6:28: error: cannot find type 'URLRequest' in scope
 4 |
 5 | extension URLRequest: URLRequestEncodable {
 6 |     public var urlRequest: URLRequest {
   |                            `- error: cannot find type 'URLRequest' in scope
 7 |         self
 8 |     }
[30/43] Compiling Endpoints BasicAuthorization.swift
/host/spi-builder-workspace/Sources/Convenience/AnyCall.swift:8:41: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 6 |     public typealias Parser = Parser
 7 |
 8 |     public typealias ValidationBlock = (HTTPURLResponse?, Data?) throws -> Void
   |                                         `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 9 |
10 |     public var request: URLRequestEncodable
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/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/Convenience/AnyCall.swift:23:19: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
21 |
22 |     public func validate(
23 |         response: HTTPURLResponse?,
   |                   `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
24 |         data: Data?
25 |     ) 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/Convenience/HTTPURLResponse+Encoding.swift:5:8: error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended
 3 | import Foundation
 4 |
 5 | public extension HTTPURLResponse {
   |        `- error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended
 6 |     /// Returns the `textEncodingName`s corresponding `String.Encoding`
 7 |     /// or `utf8`, if this is not possible.
/host/spi-builder-workspace/Sources/Convenience/URL+URLRequestEncodable.swift:6:28: error: cannot find type 'URLRequest' in scope
 4 |
 5 | extension URL: URLRequestEncodable {
 6 |     public var urlRequest: URLRequest {
   |                            `- error: cannot find type 'URLRequest' in scope
 7 |         URLRequest(url: self)
 8 |     }
/host/spi-builder-workspace/Sources/Convenience/URLRequest+Extensions.swift:5:11: error: cannot find type 'URLRequest' in scope
 3 | import Foundation
 4 |
 5 | extension URLRequest: URLRequestEncodable {
   |           `- error: cannot find type 'URLRequest' in scope
 6 |     public var urlRequest: URLRequest {
 7 |         self
/host/spi-builder-workspace/Sources/Convenience/URLRequest+Extensions.swift:11:18: error: cannot find type 'URLRequest' in scope
 9 | }
10 |
11 | public extension URLRequest {
   |                  `- error: cannot find type 'URLRequest' in scope
12 |     /// Adds or replaces all header fields with the given values.
13 |     ///
/host/spi-builder-workspace/Sources/Convenience/URLRequest+Extensions.swift:6:28: error: cannot find type 'URLRequest' in scope
 4 |
 5 | extension URLRequest: URLRequestEncodable {
 6 |     public var urlRequest: URLRequest {
   |                            `- error: cannot find type 'URLRequest' in scope
 7 |         self
 8 |     }
[31/43] Compiling Endpoints HTTPURLResponse+Encoding.swift
/host/spi-builder-workspace/Sources/Convenience/AnyCall.swift:8:41: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 6 |     public typealias Parser = Parser
 7 |
 8 |     public typealias ValidationBlock = (HTTPURLResponse?, Data?) throws -> Void
   |                                         `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 9 |
10 |     public var request: URLRequestEncodable
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/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/Convenience/AnyCall.swift:23:19: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
21 |
22 |     public func validate(
23 |         response: HTTPURLResponse?,
   |                   `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
24 |         data: Data?
25 |     ) 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/Convenience/HTTPURLResponse+Encoding.swift:5:8: error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended
 3 | import Foundation
 4 |
 5 | public extension HTTPURLResponse {
   |        `- error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended
 6 |     /// Returns the `textEncodingName`s corresponding `String.Encoding`
 7 |     /// or `utf8`, if this is not possible.
/host/spi-builder-workspace/Sources/Convenience/URL+URLRequestEncodable.swift:6:28: error: cannot find type 'URLRequest' in scope
 4 |
 5 | extension URL: URLRequestEncodable {
 6 |     public var urlRequest: URLRequest {
   |                            `- error: cannot find type 'URLRequest' in scope
 7 |         URLRequest(url: self)
 8 |     }
/host/spi-builder-workspace/Sources/Convenience/URLRequest+Extensions.swift:5:11: error: cannot find type 'URLRequest' in scope
 3 | import Foundation
 4 |
 5 | extension URLRequest: URLRequestEncodable {
   |           `- error: cannot find type 'URLRequest' in scope
 6 |     public var urlRequest: URLRequest {
 7 |         self
/host/spi-builder-workspace/Sources/Convenience/URLRequest+Extensions.swift:11:18: error: cannot find type 'URLRequest' in scope
 9 | }
10 |
11 | public extension URLRequest {
   |                  `- error: cannot find type 'URLRequest' in scope
12 |     /// Adds or replaces all header fields with the given values.
13 |     ///
/host/spi-builder-workspace/Sources/Convenience/URLRequest+Extensions.swift:6:28: error: cannot find type 'URLRequest' in scope
 4 |
 5 | extension URLRequest: URLRequestEncodable {
 6 |     public var urlRequest: URLRequest {
   |                            `- error: cannot find type 'URLRequest' in scope
 7 |         self
 8 |     }
[32/43] Compiling Endpoints URL+URLRequestEncodable.swift
/host/spi-builder-workspace/Sources/Convenience/AnyCall.swift:8:41: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 6 |     public typealias Parser = Parser
 7 |
 8 |     public typealias ValidationBlock = (HTTPURLResponse?, Data?) throws -> Void
   |                                         `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 9 |
10 |     public var request: URLRequestEncodable
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/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/Convenience/AnyCall.swift:23:19: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
21 |
22 |     public func validate(
23 |         response: HTTPURLResponse?,
   |                   `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
24 |         data: Data?
25 |     ) 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/Convenience/HTTPURLResponse+Encoding.swift:5:8: error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended
 3 | import Foundation
 4 |
 5 | public extension HTTPURLResponse {
   |        `- error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended
 6 |     /// Returns the `textEncodingName`s corresponding `String.Encoding`
 7 |     /// or `utf8`, if this is not possible.
/host/spi-builder-workspace/Sources/Convenience/URL+URLRequestEncodable.swift:6:28: error: cannot find type 'URLRequest' in scope
 4 |
 5 | extension URL: URLRequestEncodable {
 6 |     public var urlRequest: URLRequest {
   |                            `- error: cannot find type 'URLRequest' in scope
 7 |         URLRequest(url: self)
 8 |     }
/host/spi-builder-workspace/Sources/Convenience/URLRequest+Extensions.swift:5:11: error: cannot find type 'URLRequest' in scope
 3 | import Foundation
 4 |
 5 | extension URLRequest: URLRequestEncodable {
   |           `- error: cannot find type 'URLRequest' in scope
 6 |     public var urlRequest: URLRequest {
 7 |         self
/host/spi-builder-workspace/Sources/Convenience/URLRequest+Extensions.swift:11:18: error: cannot find type 'URLRequest' in scope
 9 | }
10 |
11 | public extension URLRequest {
   |                  `- error: cannot find type 'URLRequest' in scope
12 |     /// Adds or replaces all header fields with the given values.
13 |     ///
/host/spi-builder-workspace/Sources/Convenience/URLRequest+Extensions.swift:6:28: error: cannot find type 'URLRequest' in scope
 4 |
 5 | extension URLRequest: URLRequestEncodable {
 6 |     public var urlRequest: URLRequest {
   |                            `- error: cannot find type 'URLRequest' in scope
 7 |         self
 8 |     }
[33/43] Compiling Endpoints URLRequest+Extensions.swift
/host/spi-builder-workspace/Sources/Convenience/AnyCall.swift:8:41: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 6 |     public typealias Parser = Parser
 7 |
 8 |     public typealias ValidationBlock = (HTTPURLResponse?, Data?) throws -> Void
   |                                         `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 9 |
10 |     public var request: URLRequestEncodable
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/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/Convenience/AnyCall.swift:23:19: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
21 |
22 |     public func validate(
23 |         response: HTTPURLResponse?,
   |                   `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
24 |         data: Data?
25 |     ) 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/Convenience/HTTPURLResponse+Encoding.swift:5:8: error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended
 3 | import Foundation
 4 |
 5 | public extension HTTPURLResponse {
   |        `- error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended
 6 |     /// Returns the `textEncodingName`s corresponding `String.Encoding`
 7 |     /// or `utf8`, if this is not possible.
/host/spi-builder-workspace/Sources/Convenience/URL+URLRequestEncodable.swift:6:28: error: cannot find type 'URLRequest' in scope
 4 |
 5 | extension URL: URLRequestEncodable {
 6 |     public var urlRequest: URLRequest {
   |                            `- error: cannot find type 'URLRequest' in scope
 7 |         URLRequest(url: self)
 8 |     }
/host/spi-builder-workspace/Sources/Convenience/URLRequest+Extensions.swift:5:11: error: cannot find type 'URLRequest' in scope
 3 | import Foundation
 4 |
 5 | extension URLRequest: URLRequestEncodable {
   |           `- error: cannot find type 'URLRequest' in scope
 6 |     public var urlRequest: URLRequest {
 7 |         self
/host/spi-builder-workspace/Sources/Convenience/URLRequest+Extensions.swift:11:18: error: cannot find type 'URLRequest' in scope
 9 | }
10 |
11 | public extension URLRequest {
   |                  `- error: cannot find type 'URLRequest' in scope
12 |     /// Adds or replaces all header fields with the given values.
13 |     ///
/host/spi-builder-workspace/Sources/Convenience/URLRequest+Extensions.swift:6:28: error: cannot find type 'URLRequest' in scope
 4 |
 5 | extension URLRequest: URLRequestEncodable {
 6 |     public var urlRequest: URLRequest {
   |                            `- error: cannot find type 'URLRequest' in scope
 7 |         self
 8 |     }
[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 AnyClient.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 |
[40/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 |
[41/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 |
[42/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 |
[43/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 |
BUILD FAILURE 6.1 linux