Build Information
Failed to build Endpoints with Swift 5.9 for Linux.
Build Command
bash -c docker run --rm -v "checkouts-4606859-1":/host -w "$workDir" registry.gitlab.com/finestructure/spi-images:basic-5.9-latest swift build --triple x86_64-unknown-linux-gnu 2>&1
Build Log
func parse(response: HTTPURLResponse, data: Data) throws -> OutputType {
^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
^
/host/spi-builder-workspace/Sources/Parsing/ResponseParser/ResponseParser.swift:15:50: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'stringEncoding'
try parse(data: data, encoding: response.stringEncoding)
~~~~~~~~ ^~~~~~~~~~~~~~
[27/42] Compiling Endpoints StringParser.swift
/host/spi-builder-workspace/Sources/Parsing/ResponseParser/NoContentParser.swift:12:35: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
public func parse(response _: HTTPURLResponse, data _: Data) throws -> OutputType {
^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
^
/host/spi-builder-workspace/Sources/Parsing/ResponseParser/ResponseParser.swift:8:26: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
func parse(response: HTTPURLResponse, data: Data) throws -> OutputType
^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
^
/host/spi-builder-workspace/Sources/Parsing/ResponseParser/ResponseParser.swift:14:26: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
func parse(response: HTTPURLResponse, data: Data) throws -> OutputType {
^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
^
/host/spi-builder-workspace/Sources/Parsing/ResponseParser/ResponseParser.swift:15:50: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'stringEncoding'
try parse(data: data, encoding: response.stringEncoding)
~~~~~~~~ ^~~~~~~~~~~~~~
[28/42] Compiling Endpoints Call.swift
/host/spi-builder-workspace/Sources/Core/Logger.swift:9:62: warning: unrecognized platform name 'visionOS'
@available(iOS 14.0, macOS 11.0, tvOS 14.0, watchOS 7.0, visionOS 1.0, *)
^
/host/spi-builder-workspace/Sources/Core/URLRequestEncodable.swift:10:21: error: cannot find type 'URLRequest' in scope
var urlRequest: URLRequest { get }
^~~~~~~~~~
/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.
response _: HTTPURLResponse?,
^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
^
/host/spi-builder-workspace/Sources/Core/Debugging.swift:70:8: error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended
public extension HTTPURLResponse {
^ ~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Core/Debugging.swift:51:35: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
var description = "\(resp.statusCode)\n"
~~~~ ^~~~~~~~~~
/host/spi-builder-workspace/Sources/Core/Debugging.swift:53:23: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
httpResponse?.allHeaderFields.forEach {
~~~~~~~~~~~~~ ^~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Core/Debugging.swift:57:69: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'stringEncoding'
if let data, let string = String(data: data, encoding: resp.stringEncoding) {
~~~~ ^~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Core/Request.swift:38:28: error: cannot find type 'URLRequest' in scope
public var urlRequest: URLRequest {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/Core/Request.swift:39:26: error: cannot find 'URLRequest' in scope
var urlRequest = URLRequest(url: url)
^~~~~~~~~~
[29/42] Compiling Endpoints Debugging.swift
/host/spi-builder-workspace/Sources/Core/Logger.swift:9:62: warning: unrecognized platform name 'visionOS'
@available(iOS 14.0, macOS 11.0, tvOS 14.0, watchOS 7.0, visionOS 1.0, *)
^
/host/spi-builder-workspace/Sources/Core/URLRequestEncodable.swift:10:21: error: cannot find type 'URLRequest' in scope
var urlRequest: URLRequest { get }
^~~~~~~~~~
/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.
response _: HTTPURLResponse?,
^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
^
/host/spi-builder-workspace/Sources/Core/Debugging.swift:70:8: error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended
public extension HTTPURLResponse {
^ ~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Core/Debugging.swift:51:35: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
var description = "\(resp.statusCode)\n"
~~~~ ^~~~~~~~~~
/host/spi-builder-workspace/Sources/Core/Debugging.swift:53:23: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
httpResponse?.allHeaderFields.forEach {
~~~~~~~~~~~~~ ^~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Core/Debugging.swift:57:69: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'stringEncoding'
if let data, let string = String(data: data, encoding: resp.stringEncoding) {
~~~~ ^~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Core/Request.swift:38:28: error: cannot find type 'URLRequest' in scope
public var urlRequest: URLRequest {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/Core/Request.swift:39:26: error: cannot find 'URLRequest' in scope
var urlRequest = URLRequest(url: url)
^~~~~~~~~~
[30/42] Compiling Endpoints HTTPMethod.swift
/host/spi-builder-workspace/Sources/Core/Logger.swift:9:62: warning: unrecognized platform name 'visionOS'
@available(iOS 14.0, macOS 11.0, tvOS 14.0, watchOS 7.0, visionOS 1.0, *)
^
/host/spi-builder-workspace/Sources/Core/URLRequestEncodable.swift:10:21: error: cannot find type 'URLRequest' in scope
var urlRequest: URLRequest { get }
^~~~~~~~~~
/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.
response _: HTTPURLResponse?,
^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
^
/host/spi-builder-workspace/Sources/Core/Debugging.swift:70:8: error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended
public extension HTTPURLResponse {
^ ~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Core/Debugging.swift:51:35: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
var description = "\(resp.statusCode)\n"
~~~~ ^~~~~~~~~~
/host/spi-builder-workspace/Sources/Core/Debugging.swift:53:23: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
httpResponse?.allHeaderFields.forEach {
~~~~~~~~~~~~~ ^~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Core/Debugging.swift:57:69: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'stringEncoding'
if let data, let string = String(data: data, encoding: resp.stringEncoding) {
~~~~ ^~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Core/Request.swift:38:28: error: cannot find type 'URLRequest' in scope
public var urlRequest: URLRequest {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/Core/Request.swift:39:26: error: cannot find 'URLRequest' in scope
var urlRequest = URLRequest(url: url)
^~~~~~~~~~
[31/42] Compiling Endpoints Logger.swift
/host/spi-builder-workspace/Sources/Core/Logger.swift:9:62: warning: unrecognized platform name 'visionOS'
@available(iOS 14.0, macOS 11.0, tvOS 14.0, watchOS 7.0, visionOS 1.0, *)
^
/host/spi-builder-workspace/Sources/Core/URLRequestEncodable.swift:10:21: error: cannot find type 'URLRequest' in scope
var urlRequest: URLRequest { get }
^~~~~~~~~~
/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.
response _: HTTPURLResponse?,
^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
^
/host/spi-builder-workspace/Sources/Core/Debugging.swift:70:8: error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended
public extension HTTPURLResponse {
^ ~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Core/Debugging.swift:51:35: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
var description = "\(resp.statusCode)\n"
~~~~ ^~~~~~~~~~
/host/spi-builder-workspace/Sources/Core/Debugging.swift:53:23: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
httpResponse?.allHeaderFields.forEach {
~~~~~~~~~~~~~ ^~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Core/Debugging.swift:57:69: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'stringEncoding'
if let data, let string = String(data: data, encoding: resp.stringEncoding) {
~~~~ ^~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Core/Request.swift:38:28: error: cannot find type 'URLRequest' in scope
public var urlRequest: URLRequest {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/Core/Request.swift:39:26: error: cannot find 'URLRequest' in scope
var urlRequest = URLRequest(url: url)
^~~~~~~~~~
[32/42] Compiling Endpoints Request.swift
/host/spi-builder-workspace/Sources/Core/Logger.swift:9:62: warning: unrecognized platform name 'visionOS'
@available(iOS 14.0, macOS 11.0, tvOS 14.0, watchOS 7.0, visionOS 1.0, *)
^
/host/spi-builder-workspace/Sources/Core/URLRequestEncodable.swift:10:21: error: cannot find type 'URLRequest' in scope
var urlRequest: URLRequest { get }
^~~~~~~~~~
/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.
response _: HTTPURLResponse?,
^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
^
/host/spi-builder-workspace/Sources/Core/Debugging.swift:70:8: error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended
public extension HTTPURLResponse {
^ ~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Core/Debugging.swift:51:35: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
var description = "\(resp.statusCode)\n"
~~~~ ^~~~~~~~~~
/host/spi-builder-workspace/Sources/Core/Debugging.swift:53:23: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
httpResponse?.allHeaderFields.forEach {
~~~~~~~~~~~~~ ^~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Core/Debugging.swift:57:69: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'stringEncoding'
if let data, let string = String(data: data, encoding: resp.stringEncoding) {
~~~~ ^~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Core/Request.swift:38:28: error: cannot find type 'URLRequest' in scope
public var urlRequest: URLRequest {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/Core/Request.swift:39:26: error: cannot find 'URLRequest' in scope
var urlRequest = URLRequest(url: url)
^~~~~~~~~~
[33/42] Compiling Endpoints URLRequestEncodable.swift
/host/spi-builder-workspace/Sources/Core/URLRequestEncodable.swift:10:21: error: cannot find type 'URLRequest' in scope
var urlRequest: URLRequest { get }
^~~~~~~~~~
/host/spi-builder-workspace/Sources/Core/URLSessionTaskResult.swift:11:26: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
public var response: URLResponse?
^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
^
/host/spi-builder-workspace/Sources/Core/URLSessionTaskResult.swift:15:27: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
public init(response: URLResponse? = nil, data: Data? = nil, error: Error? = nil) {
^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
^
/host/spi-builder-workspace/Sources/Core/URLSessionTaskResult.swift:22:30: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
public var httpResponse: HTTPURLResponse? {
^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
^
/host/spi-builder-workspace/Sources/Core/URLSessionTaskResult.swift:23:18: warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
response as? HTTPURLResponse
~~~~~~~~~^~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Core/URLSessionTaskResult.swift:23:22: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
response as? HTTPURLResponse
^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
^
/host/spi-builder-workspace/Sources/Error/EndpointsError.swift:9:26: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
public let response: HTTPURLResponse?
^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
^
/host/spi-builder-workspace/Sources/Error/EndpointsError.swift:11:41: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
public init(error: Error, response: HTTPURLResponse?) {
^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
^
[34/42] Compiling Endpoints URLSessionTaskResult.swift
/host/spi-builder-workspace/Sources/Core/URLRequestEncodable.swift:10:21: error: cannot find type 'URLRequest' in scope
var urlRequest: URLRequest { get }
^~~~~~~~~~
/host/spi-builder-workspace/Sources/Core/URLSessionTaskResult.swift:11:26: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
public var response: URLResponse?
^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
^
/host/spi-builder-workspace/Sources/Core/URLSessionTaskResult.swift:15:27: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
public init(response: URLResponse? = nil, data: Data? = nil, error: Error? = nil) {
^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
^
/host/spi-builder-workspace/Sources/Core/URLSessionTaskResult.swift:22:30: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
public var httpResponse: HTTPURLResponse? {
^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
^
/host/spi-builder-workspace/Sources/Core/URLSessionTaskResult.swift:23:18: warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
response as? HTTPURLResponse
~~~~~~~~~^~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Core/URLSessionTaskResult.swift:23:22: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
response as? HTTPURLResponse
^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
^
/host/spi-builder-workspace/Sources/Error/EndpointsError.swift:9:26: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
public let response: HTTPURLResponse?
^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
^
/host/spi-builder-workspace/Sources/Error/EndpointsError.swift:11:41: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
public init(error: Error, response: HTTPURLResponse?) {
^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
^
[35/42] Compiling Endpoints ContinuationError.swift
/host/spi-builder-workspace/Sources/Core/URLRequestEncodable.swift:10:21: error: cannot find type 'URLRequest' in scope
var urlRequest: URLRequest { get }
^~~~~~~~~~
/host/spi-builder-workspace/Sources/Core/URLSessionTaskResult.swift:11:26: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
public var response: URLResponse?
^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
^
/host/spi-builder-workspace/Sources/Core/URLSessionTaskResult.swift:15:27: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
public init(response: URLResponse? = nil, data: Data? = nil, error: Error? = nil) {
^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
^
/host/spi-builder-workspace/Sources/Core/URLSessionTaskResult.swift:22:30: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
public var httpResponse: HTTPURLResponse? {
^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
^
/host/spi-builder-workspace/Sources/Core/URLSessionTaskResult.swift:23:18: warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
response as? HTTPURLResponse
~~~~~~~~~^~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Core/URLSessionTaskResult.swift:23:22: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
response as? HTTPURLResponse
^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
^
/host/spi-builder-workspace/Sources/Error/EndpointsError.swift:9:26: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
public let response: HTTPURLResponse?
^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
^
/host/spi-builder-workspace/Sources/Error/EndpointsError.swift:11:41: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
public init(error: Error, response: HTTPURLResponse?) {
^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
^
[36/42] Compiling Endpoints EndpointsError.swift
/host/spi-builder-workspace/Sources/Core/URLRequestEncodable.swift:10:21: error: cannot find type 'URLRequest' in scope
var urlRequest: URLRequest { get }
^~~~~~~~~~
/host/spi-builder-workspace/Sources/Core/URLSessionTaskResult.swift:11:26: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
public var response: URLResponse?
^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
^
/host/spi-builder-workspace/Sources/Core/URLSessionTaskResult.swift:15:27: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
public init(response: URLResponse? = nil, data: Data? = nil, error: Error? = nil) {
^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
^
/host/spi-builder-workspace/Sources/Core/URLSessionTaskResult.swift:22:30: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
public var httpResponse: HTTPURLResponse? {
^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
^
/host/spi-builder-workspace/Sources/Core/URLSessionTaskResult.swift:23:18: warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
response as? HTTPURLResponse
~~~~~~~~~^~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Core/URLSessionTaskResult.swift:23:22: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
response as? HTTPURLResponse
^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
^
/host/spi-builder-workspace/Sources/Error/EndpointsError.swift:9:26: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
public let response: HTTPURLResponse?
^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
^
/host/spi-builder-workspace/Sources/Error/EndpointsError.swift:11:41: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
public init(error: Error, response: HTTPURLResponse?) {
^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
^
[37/42] Compiling Endpoints EndpointsParsingError.swift
/host/spi-builder-workspace/Sources/Core/URLRequestEncodable.swift:10:21: error: cannot find type 'URLRequest' in scope
var urlRequest: URLRequest { get }
^~~~~~~~~~
/host/spi-builder-workspace/Sources/Core/URLSessionTaskResult.swift:11:26: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
public var response: URLResponse?
^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
^
/host/spi-builder-workspace/Sources/Core/URLSessionTaskResult.swift:15:27: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
public init(response: URLResponse? = nil, data: Data? = nil, error: Error? = nil) {
^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
^
/host/spi-builder-workspace/Sources/Core/URLSessionTaskResult.swift:22:30: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
public var httpResponse: HTTPURLResponse? {
^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
^
/host/spi-builder-workspace/Sources/Core/URLSessionTaskResult.swift:23:18: warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
response as? HTTPURLResponse
~~~~~~~~~^~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Core/URLSessionTaskResult.swift:23:22: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
response as? HTTPURLResponse
^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
^
/host/spi-builder-workspace/Sources/Error/EndpointsError.swift:9:26: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
public let response: HTTPURLResponse?
^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
^
/host/spi-builder-workspace/Sources/Error/EndpointsError.swift:11:41: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
public init(error: Error, response: HTTPURLResponse?) {
^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
^
[38/42] Compiling Endpoints ResponseValidator.swift
/host/spi-builder-workspace/Sources/Testing/FakeSession.swift:23:73: warning: unrecognized platform name 'visionOS'
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:43:73: warning: unrecognized platform name 'visionOS'
if #available(iOS 14.0, macOS 11.0, tvOS 14.0, watchOS 7.0, visionOS 1.0, *) {
^
/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.
response: HTTPURLResponse?,
^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
^
/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.
response: HTTPURLResponse?,
^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
^
/host/spi-builder-workspace/Sources/ResponseValidator/StatusCodeValidator.swift:18:33: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
if let code = response?.statusCode,
~~~~~~~~~ ^~~~~~~~~~
/host/spi-builder-workspace/Sources/Testing/FakeHTTPURLResponse.swift:5:14: error: only protocols can inherit from 'AnyObject'
public class FakeHTTPURLResponse: HTTPURLResponse {
^
/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.
public class FakeHTTPURLResponse: HTTPURLResponse {
^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
^
/host/spi-builder-workspace/Sources/Testing/FakeHTTPURLResponse.swift:12:9: error: 'super' members cannot be referenced in a root class
super.init(
^
/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.
func data<C: Call>(for call: C) async throws -> (URLResponse, Data)
^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
^
/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.
) async throws -> (C.Parser.OutputType, HTTPURLResponse) {
^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
^
/host/spi-builder-workspace/Sources/Testing/FakeSession.swift:22:39: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
guard let response = response as? HTTPURLResponse else {
^
/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.
guard let response = response as? HTTPURLResponse else {
^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
^
/host/spi-builder-workspace/Sources/Testing/FakeSession.swift:24:17: error: cannot find 'Logger' in scope
Logger.default.debug("no response.")
^~~~~~
/host/spi-builder-workspace/Sources/Testing/FakeSession.swift:26:17: error: cannot find 'os_log' in scope
os_log("no response.", log: .default, type: .debug)
^~~~~~
/host/spi-builder-workspace/Sources/Testing/FakeSession.swift:26:46: error: cannot infer contextual base in reference to member 'default'
os_log("no response.", log: .default, type: .debug)
~^~~~~~~
/host/spi-builder-workspace/Sources/Testing/FakeSession.swift:26:62: error: cannot infer contextual base in reference to member 'debug'
os_log("no response.", log: .default, type: .debug)
~^~~~~
/host/spi-builder-workspace/Sources/Testing/FakeSession.swift:40:36: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'debugDescription'
message += "\(response.debugDescription)\n"
~~~~~~~~ ^~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Testing/FakeSession.swift:41:68: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'stringEncoding'
message += "\(data.debugDescription(encoding: response.stringEncoding))"
~~~~~~~~ ^~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Testing/FakeSession.swift:44:17: error: cannot find 'Logger' in scope
Logger.default.debug("\(message, privacy: .private)")
^~~~~~
/host/spi-builder-workspace/Sources/Testing/FakeSession.swift:46:17: error: cannot find 'os_log' in scope
os_log("%s", log: .default, type: .debug, message)
^~~~~~
/host/spi-builder-workspace/Sources/Testing/FakeSession.swift:46:36: error: cannot infer contextual base in reference to member 'default'
os_log("%s", log: .default, type: .debug, message)
~^~~~~~~
/host/spi-builder-workspace/Sources/Testing/FakeSession.swift:46:52: error: cannot infer contextual base in reference to member 'debug'
os_log("%s", log: .default, type: .debug, message)
~^~~~~
[39/42] Compiling Endpoints StatusCodeValidator.swift
/host/spi-builder-workspace/Sources/Testing/FakeSession.swift:23:73: warning: unrecognized platform name 'visionOS'
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:43:73: warning: unrecognized platform name 'visionOS'
if #available(iOS 14.0, macOS 11.0, tvOS 14.0, watchOS 7.0, visionOS 1.0, *) {
^
/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.
response: HTTPURLResponse?,
^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
^
/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.
response: HTTPURLResponse?,
^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
^
/host/spi-builder-workspace/Sources/ResponseValidator/StatusCodeValidator.swift:18:33: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
if let code = response?.statusCode,
~~~~~~~~~ ^~~~~~~~~~
/host/spi-builder-workspace/Sources/Testing/FakeHTTPURLResponse.swift:5:14: error: only protocols can inherit from 'AnyObject'
public class FakeHTTPURLResponse: HTTPURLResponse {
^
/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.
public class FakeHTTPURLResponse: HTTPURLResponse {
^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
^
/host/spi-builder-workspace/Sources/Testing/FakeHTTPURLResponse.swift:12:9: error: 'super' members cannot be referenced in a root class
super.init(
^
/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.
func data<C: Call>(for call: C) async throws -> (URLResponse, Data)
^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
^
/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.
) async throws -> (C.Parser.OutputType, HTTPURLResponse) {
^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
^
/host/spi-builder-workspace/Sources/Testing/FakeSession.swift:22:39: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
guard let response = response as? HTTPURLResponse else {
^
/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.
guard let response = response as? HTTPURLResponse else {
^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
^
/host/spi-builder-workspace/Sources/Testing/FakeSession.swift:24:17: error: cannot find 'Logger' in scope
Logger.default.debug("no response.")
^~~~~~
/host/spi-builder-workspace/Sources/Testing/FakeSession.swift:26:17: error: cannot find 'os_log' in scope
os_log("no response.", log: .default, type: .debug)
^~~~~~
/host/spi-builder-workspace/Sources/Testing/FakeSession.swift:26:46: error: cannot infer contextual base in reference to member 'default'
os_log("no response.", log: .default, type: .debug)
~^~~~~~~
/host/spi-builder-workspace/Sources/Testing/FakeSession.swift:26:62: error: cannot infer contextual base in reference to member 'debug'
os_log("no response.", log: .default, type: .debug)
~^~~~~
/host/spi-builder-workspace/Sources/Testing/FakeSession.swift:40:36: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'debugDescription'
message += "\(response.debugDescription)\n"
~~~~~~~~ ^~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Testing/FakeSession.swift:41:68: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'stringEncoding'
message += "\(data.debugDescription(encoding: response.stringEncoding))"
~~~~~~~~ ^~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Testing/FakeSession.swift:44:17: error: cannot find 'Logger' in scope
Logger.default.debug("\(message, privacy: .private)")
^~~~~~
/host/spi-builder-workspace/Sources/Testing/FakeSession.swift:46:17: error: cannot find 'os_log' in scope
os_log("%s", log: .default, type: .debug, message)
^~~~~~
/host/spi-builder-workspace/Sources/Testing/FakeSession.swift:46:36: error: cannot infer contextual base in reference to member 'default'
os_log("%s", log: .default, type: .debug, message)
~^~~~~~~
/host/spi-builder-workspace/Sources/Testing/FakeSession.swift:46:52: error: cannot infer contextual base in reference to member 'debug'
os_log("%s", log: .default, type: .debug, message)
~^~~~~
[40/42] Compiling Endpoints FakeHTTPURLResponse.swift
/host/spi-builder-workspace/Sources/Testing/FakeSession.swift:23:73: warning: unrecognized platform name 'visionOS'
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:43:73: warning: unrecognized platform name 'visionOS'
if #available(iOS 14.0, macOS 11.0, tvOS 14.0, watchOS 7.0, visionOS 1.0, *) {
^
/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.
response: HTTPURLResponse?,
^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
^
/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.
response: HTTPURLResponse?,
^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
^
/host/spi-builder-workspace/Sources/ResponseValidator/StatusCodeValidator.swift:18:33: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
if let code = response?.statusCode,
~~~~~~~~~ ^~~~~~~~~~
/host/spi-builder-workspace/Sources/Testing/FakeHTTPURLResponse.swift:5:14: error: only protocols can inherit from 'AnyObject'
public class FakeHTTPURLResponse: HTTPURLResponse {
^
/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.
public class FakeHTTPURLResponse: HTTPURLResponse {
^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
^
/host/spi-builder-workspace/Sources/Testing/FakeHTTPURLResponse.swift:12:9: error: 'super' members cannot be referenced in a root class
super.init(
^
/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.
func data<C: Call>(for call: C) async throws -> (URLResponse, Data)
^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
^
/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.
) async throws -> (C.Parser.OutputType, HTTPURLResponse) {
^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
^
/host/spi-builder-workspace/Sources/Testing/FakeSession.swift:22:39: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
guard let response = response as? HTTPURLResponse else {
^
/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.
guard let response = response as? HTTPURLResponse else {
^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
^
/host/spi-builder-workspace/Sources/Testing/FakeSession.swift:24:17: error: cannot find 'Logger' in scope
Logger.default.debug("no response.")
^~~~~~
/host/spi-builder-workspace/Sources/Testing/FakeSession.swift:26:17: error: cannot find 'os_log' in scope
os_log("no response.", log: .default, type: .debug)
^~~~~~
/host/spi-builder-workspace/Sources/Testing/FakeSession.swift:26:46: error: cannot infer contextual base in reference to member 'default'
os_log("no response.", log: .default, type: .debug)
~^~~~~~~
/host/spi-builder-workspace/Sources/Testing/FakeSession.swift:26:62: error: cannot infer contextual base in reference to member 'debug'
os_log("no response.", log: .default, type: .debug)
~^~~~~
/host/spi-builder-workspace/Sources/Testing/FakeSession.swift:40:36: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'debugDescription'
message += "\(response.debugDescription)\n"
~~~~~~~~ ^~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Testing/FakeSession.swift:41:68: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'stringEncoding'
message += "\(data.debugDescription(encoding: response.stringEncoding))"
~~~~~~~~ ^~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Testing/FakeSession.swift:44:17: error: cannot find 'Logger' in scope
Logger.default.debug("\(message, privacy: .private)")
^~~~~~
/host/spi-builder-workspace/Sources/Testing/FakeSession.swift:46:17: error: cannot find 'os_log' in scope
os_log("%s", log: .default, type: .debug, message)
^~~~~~
/host/spi-builder-workspace/Sources/Testing/FakeSession.swift:46:36: error: cannot infer contextual base in reference to member 'default'
os_log("%s", log: .default, type: .debug, message)
~^~~~~~~
/host/spi-builder-workspace/Sources/Testing/FakeSession.swift:46:52: error: cannot infer contextual base in reference to member 'debug'
os_log("%s", log: .default, type: .debug, message)
~^~~~~
[41/42] Compiling Endpoints FakeResultProvider.swift
/host/spi-builder-workspace/Sources/Testing/FakeSession.swift:23:73: warning: unrecognized platform name 'visionOS'
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:43:73: warning: unrecognized platform name 'visionOS'
if #available(iOS 14.0, macOS 11.0, tvOS 14.0, watchOS 7.0, visionOS 1.0, *) {
^
/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.
response: HTTPURLResponse?,
^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
^
/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.
response: HTTPURLResponse?,
^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
^
/host/spi-builder-workspace/Sources/ResponseValidator/StatusCodeValidator.swift:18:33: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
if let code = response?.statusCode,
~~~~~~~~~ ^~~~~~~~~~
/host/spi-builder-workspace/Sources/Testing/FakeHTTPURLResponse.swift:5:14: error: only protocols can inherit from 'AnyObject'
public class FakeHTTPURLResponse: HTTPURLResponse {
^
/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.
public class FakeHTTPURLResponse: HTTPURLResponse {
^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
^
/host/spi-builder-workspace/Sources/Testing/FakeHTTPURLResponse.swift:12:9: error: 'super' members cannot be referenced in a root class
super.init(
^
/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.
func data<C: Call>(for call: C) async throws -> (URLResponse, Data)
^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
^
/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.
) async throws -> (C.Parser.OutputType, HTTPURLResponse) {
^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
^
/host/spi-builder-workspace/Sources/Testing/FakeSession.swift:22:39: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
guard let response = response as? HTTPURLResponse else {
^
/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.
guard let response = response as? HTTPURLResponse else {
^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
^
/host/spi-builder-workspace/Sources/Testing/FakeSession.swift:24:17: error: cannot find 'Logger' in scope
Logger.default.debug("no response.")
^~~~~~
/host/spi-builder-workspace/Sources/Testing/FakeSession.swift:26:17: error: cannot find 'os_log' in scope
os_log("no response.", log: .default, type: .debug)
^~~~~~
/host/spi-builder-workspace/Sources/Testing/FakeSession.swift:26:46: error: cannot infer contextual base in reference to member 'default'
os_log("no response.", log: .default, type: .debug)
~^~~~~~~
/host/spi-builder-workspace/Sources/Testing/FakeSession.swift:26:62: error: cannot infer contextual base in reference to member 'debug'
os_log("no response.", log: .default, type: .debug)
~^~~~~
/host/spi-builder-workspace/Sources/Testing/FakeSession.swift:40:36: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'debugDescription'
message += "\(response.debugDescription)\n"
~~~~~~~~ ^~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Testing/FakeSession.swift:41:68: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'stringEncoding'
message += "\(data.debugDescription(encoding: response.stringEncoding))"
~~~~~~~~ ^~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Testing/FakeSession.swift:44:17: error: cannot find 'Logger' in scope
Logger.default.debug("\(message, privacy: .private)")
^~~~~~
/host/spi-builder-workspace/Sources/Testing/FakeSession.swift:46:17: error: cannot find 'os_log' in scope
os_log("%s", log: .default, type: .debug, message)
^~~~~~
/host/spi-builder-workspace/Sources/Testing/FakeSession.swift:46:36: error: cannot infer contextual base in reference to member 'default'
os_log("%s", log: .default, type: .debug, message)
~^~~~~~~
/host/spi-builder-workspace/Sources/Testing/FakeSession.swift:46:52: error: cannot infer contextual base in reference to member 'debug'
os_log("%s", log: .default, type: .debug, message)
~^~~~~
[42/42] Compiling Endpoints FakeSession.swift
/host/spi-builder-workspace/Sources/Testing/FakeSession.swift:23:73: warning: unrecognized platform name 'visionOS'
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:43:73: warning: unrecognized platform name 'visionOS'
if #available(iOS 14.0, macOS 11.0, tvOS 14.0, watchOS 7.0, visionOS 1.0, *) {
^
/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.
response: HTTPURLResponse?,
^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
^
/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.
response: HTTPURLResponse?,
^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
^
/host/spi-builder-workspace/Sources/ResponseValidator/StatusCodeValidator.swift:18:33: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
if let code = response?.statusCode,
~~~~~~~~~ ^~~~~~~~~~
/host/spi-builder-workspace/Sources/Testing/FakeHTTPURLResponse.swift:5:14: error: only protocols can inherit from 'AnyObject'
public class FakeHTTPURLResponse: HTTPURLResponse {
^
/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.
public class FakeHTTPURLResponse: HTTPURLResponse {
^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
^
/host/spi-builder-workspace/Sources/Testing/FakeHTTPURLResponse.swift:12:9: error: 'super' members cannot be referenced in a root class
super.init(
^
/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.
func data<C: Call>(for call: C) async throws -> (URLResponse, Data)
^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
^
/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.
) async throws -> (C.Parser.OutputType, HTTPURLResponse) {
^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
^
/host/spi-builder-workspace/Sources/Testing/FakeSession.swift:22:39: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
guard let response = response as? HTTPURLResponse else {
^
/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.
guard let response = response as? HTTPURLResponse else {
^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
^
/host/spi-builder-workspace/Sources/Testing/FakeSession.swift:24:17: error: cannot find 'Logger' in scope
Logger.default.debug("no response.")
^~~~~~
/host/spi-builder-workspace/Sources/Testing/FakeSession.swift:26:17: error: cannot find 'os_log' in scope
os_log("no response.", log: .default, type: .debug)
^~~~~~
/host/spi-builder-workspace/Sources/Testing/FakeSession.swift:26:46: error: cannot infer contextual base in reference to member 'default'
os_log("no response.", log: .default, type: .debug)
~^~~~~~~
/host/spi-builder-workspace/Sources/Testing/FakeSession.swift:26:62: error: cannot infer contextual base in reference to member 'debug'
os_log("no response.", log: .default, type: .debug)
~^~~~~
/host/spi-builder-workspace/Sources/Testing/FakeSession.swift:40:36: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'debugDescription'
message += "\(response.debugDescription)\n"
~~~~~~~~ ^~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Testing/FakeSession.swift:41:68: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'stringEncoding'
message += "\(data.debugDescription(encoding: response.stringEncoding))"
~~~~~~~~ ^~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Testing/FakeSession.swift:44:17: error: cannot find 'Logger' in scope
Logger.default.debug("\(message, privacy: .private)")
^~~~~~
/host/spi-builder-workspace/Sources/Testing/FakeSession.swift:46:17: error: cannot find 'os_log' in scope
os_log("%s", log: .default, type: .debug, message)
^~~~~~
/host/spi-builder-workspace/Sources/Testing/FakeSession.swift:46:36: error: cannot infer contextual base in reference to member 'default'
os_log("%s", log: .default, type: .debug, message)
~^~~~~~~
/host/spi-builder-workspace/Sources/Testing/FakeSession.swift:46:52: error: cannot infer contextual base in reference to member 'debug'
os_log("%s", log: .default, type: .debug, message)
~^~~~~
error: fatalError
[0/1] Planning build
[1/1] Compiling plugin SwiftFormatPlugin
Building for debugging...
error: emit-module command failed with exit code 1 (use -v to see invocation)
[2/33] Emitting module Endpoints
/host/spi-builder-workspace/Sources/Core/Logger.swift:9:62: warning: unrecognized platform name 'visionOS'
@available(iOS 14.0, macOS 11.0, tvOS 14.0, watchOS 7.0, visionOS 1.0, *)
^
/host/spi-builder-workspace/Sources/Async/AnyClient.swift:19:23: error: cannot find type 'URLRequest' in scope
) async throws -> URLRequest {
^~~~~~~~~~
/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.
response: HTTPURLResponse?,
^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
^
/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.
response: HTTPURLResponse?,
^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
^
/host/spi-builder-workspace/Sources/Async/Client.swift:10:51: error: cannot find type 'URLRequest' in scope
func encode<C: Call>(call: C) async throws -> URLRequest
^~~~~~~~~~
/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.
response: HTTPURLResponse?,
^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
^
/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.
public var urlSession: URLSession
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/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.
using urlSession: URLSession = URLSession(
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/host/spi-builder-workspace/Sources/Async/Session.swift:16:40: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
using urlSession: URLSession = URLSession(
^~~~~~~~~~
/host/spi-builder-workspace/Sources/Async/Session.swift:17:29: error: cannot infer contextual base in reference to member 'default'
configuration: .default,
~^~~~~~~
/host/spi-builder-workspace/Sources/Async/Session.swift:19:28: error: 'nil' requires a contextual type
delegateQueue: nil
^
/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.
open func dataTask<C: Call>(for call: C) async throws -> (C.Parser.OutputType, HTTPURLResponse) {
^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
^
/host/spi-builder-workspace/Sources/Async/Session.swift:76:29: error: cannot find type 'URLRequest' in scope
newRequest request: URLRequest,
^~~~~~~~~~
/host/spi-builder-workspace/Sources/Async/Session.swift:77:39: error: cannot find type 'URLRequest' in scope
completionHandler: @escaping (URLRequest?) -> Void
^~~~~~~~~~
/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.
_ session: URLSession,
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/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.
task: URLSessionTask,
^~~~~~~~~~~~~~
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
public typealias URLSessionTask = AnyObject
^
/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.
willPerformHTTPRedirection response: HTTPURLResponse,
^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
^
/host/spi-builder-workspace/Sources/Async/Session.swift:71:51: error: cannot find type 'URLSessionTaskDelegate' in scope
public class URLSessionDelegateHandler: NSObject, URLSessionTaskDelegate {
^~~~~~~~~~~~~~~~~~~~~~
/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.
public typealias ValidationBlock = (HTTPURLResponse?, Data?) throws -> Void
^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
^
/host/spi-builder-workspace/Sources/Core/URLRequestEncodable.swift:10:21: error: cannot find type 'URLRequest' in scope
var urlRequest: URLRequest { get }
^~~~~~~~~~
/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.
response: HTTPURLResponse?,
^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
^
/host/spi-builder-workspace/Sources/Convenience/HTTPURLResponse+Encoding.swift:5:8: error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended
public extension HTTPURLResponse {
^ ~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Convenience/URL+URLRequestEncodable.swift:6:28: error: cannot find type 'URLRequest' in scope
public var urlRequest: URLRequest {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/Convenience/URLRequest+Extensions.swift:5:11: error: cannot find type 'URLRequest' in scope
extension URLRequest: URLRequestEncodable {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/Convenience/URLRequest+Extensions.swift:11:18: error: cannot find type 'URLRequest' in scope
public extension URLRequest {
^~~~~~~~~~
/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.
response _: HTTPURLResponse?,
^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
^
/host/spi-builder-workspace/Sources/Core/Debugging.swift:70:8: error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended
public extension HTTPURLResponse {
^ ~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Core/Request.swift:38:28: error: cannot find type 'URLRequest' in scope
public var urlRequest: URLRequest {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/Core/URLSessionTaskResult.swift:11:26: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
public var response: URLResponse?
^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
^
/host/spi-builder-workspace/Sources/Core/URLSessionTaskResult.swift:15:27: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
public init(response: URLResponse? = nil, data: Data? = nil, error: Error? = nil) {
^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
^
/host/spi-builder-workspace/Sources/Core/URLSessionTaskResult.swift:22:30: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
public var httpResponse: HTTPURLResponse? {
^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
^
/host/spi-builder-workspace/Sources/Error/EndpointsError.swift:9:26: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
public let response: HTTPURLResponse?
^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
^
/host/spi-builder-workspace/Sources/Error/EndpointsError.swift:11:41: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
public init(error: Error, response: HTTPURLResponse?) {
^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
^
/host/spi-builder-workspace/Sources/Parsing/ResponseParser/NoContentParser.swift:12:35: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
public func parse(response _: HTTPURLResponse, data _: Data) throws -> OutputType {
^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
^
/host/spi-builder-workspace/Sources/Parsing/ResponseParser/ResponseParser.swift:8:26: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
func parse(response: HTTPURLResponse, data: Data) throws -> OutputType
^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
^
/host/spi-builder-workspace/Sources/Parsing/ResponseParser/ResponseParser.swift:14:26: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
func parse(response: HTTPURLResponse, data: Data) throws -> OutputType {
^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
^
/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.
response: HTTPURLResponse?,
^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
^
/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.
response: HTTPURLResponse?,
^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
^
/host/spi-builder-workspace/Sources/Testing/FakeHTTPURLResponse.swift:5:14: error: only protocols can inherit from 'AnyObject'
public class FakeHTTPURLResponse: HTTPURLResponse {
^
/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.
public class FakeHTTPURLResponse: HTTPURLResponse {
^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
^
/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.
func data<C: Call>(for call: C) async throws -> (URLResponse, Data)
^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
^
/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.
) async throws -> (C.Parser.OutputType, HTTPURLResponse) {
^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
^
[3/37] Compiling Endpoints AnyClient.swift
/host/spi-builder-workspace/Sources/Async/Session.swift:33:73: warning: unrecognized platform name 'visionOS'
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:52:73: warning: unrecognized platform name 'visionOS'
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:81:69: warning: unrecognized platform name 'visionOS'
if #available(iOS 14.0, macOS 11.0, tvOS 14.0, watchOS 7.0, visionOS 1.0, *) {
^
/host/spi-builder-workspace/Sources/Async/AnyClient.swift:19:23: error: cannot find type 'URLRequest' in scope
) async throws -> URLRequest {
^~~~~~~~~~
/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.
response: HTTPURLResponse?,
^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
^
/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.
response: HTTPURLResponse?,
^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
^
/host/spi-builder-workspace/Sources/Async/Client.swift:10:51: error: cannot find type 'URLRequest' in scope
func encode<C: Call>(call: C) async throws -> URLRequest
^~~~~~~~~~
/host/spi-builder-workspace/Sources/Core/URLRequestEncodable.swift:10:21: error: cannot find type 'URLRequest' in scope
var urlRequest: URLRequest { get }
^~~~~~~~~~
/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.
response: HTTPURLResponse?,
^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
^
/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.
public var urlSession: URLSession
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/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.
using urlSession: URLSession = URLSession(
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/host/spi-builder-workspace/Sources/Async/Session.swift:16:40: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
using urlSession: URLSession = URLSession(
^~~~~~~~~~
/host/spi-builder-workspace/Sources/Async/Session.swift:17:29: error: cannot infer contextual base in reference to member 'default'
configuration: .default,
~^~~~~~~
/host/spi-builder-workspace/Sources/Async/Session.swift:19:28: error: 'nil' requires a contextual type
delegateQueue: nil
^
/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.
open func dataTask<C: Call>(for call: C) async throws -> (C.Parser.OutputType, HTTPURLResponse) {
^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
^
/host/spi-builder-workspace/Sources/Async/Session.swift:76:29: error: cannot find type 'URLRequest' in scope
newRequest request: URLRequest,
^~~~~~~~~~
/host/spi-builder-workspace/Sources/Async/Session.swift:77:39: error: cannot find type 'URLRequest' in scope
completionHandler: @escaping (URLRequest?) -> Void
^~~~~~~~~~
/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.
_ session: URLSession,
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/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.
task: URLSessionTask,
^~~~~~~~~~~~~~
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
public typealias URLSessionTask = AnyObject
^
/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.
willPerformHTTPRedirection response: HTTPURLResponse,
^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
^
/host/spi-builder-workspace/Sources/Async/Session.swift:71:51: error: cannot find type 'URLSessionTaskDelegate' in scope
public class URLSessionDelegateHandler: NSObject, URLSessionTaskDelegate {
^~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Async/Session.swift:30:53: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
let (data, response) = try await urlSession.data(for: urlRequest)
~~~~~~~~~~ ^~~~
/host/spi-builder-workspace/Sources/Async/Session.swift:34:17: error: cannot find 'Logger' in scope
Logger.default.debug("no response.")
^~~~~~
/host/spi-builder-workspace/Sources/Async/Session.swift:36:17: error: cannot find 'os_log' in scope
os_log("no response.", log: .default, type: .debug)
^~~~~~
/host/spi-builder-workspace/Sources/Async/Session.swift:36:46: error: cannot infer contextual base in reference to member 'default'
os_log("no response.", log: .default, type: .debug)
~^~~~~~~
/host/spi-builder-workspace/Sources/Async/Session.swift:36:62: error: cannot infer contextual base in reference to member 'debug'
os_log("no response.", log: .default, type: .debug)
~^~~~~
/host/spi-builder-workspace/Sources/Async/Session.swift:53:17: error: cannot find 'Logger' in scope
Logger.default.debug("\(message, privacy: .private)")
^~~~~~
/host/spi-builder-workspace/Sources/Async/Session.swift:55:17: error: cannot find 'os_log' in scope
os_log("%s", log: .default, type: .debug, message)
^~~~~~
/host/spi-builder-workspace/Sources/Async/Session.swift:55:36: error: cannot infer contextual base in reference to member 'default'
os_log("%s", log: .default, type: .debug, message)
~^~~~~~~
/host/spi-builder-workspace/Sources/Async/Session.swift:55:52: error: cannot infer contextual base in reference to member 'debug'
os_log("%s", log: .default, type: .debug, message)
~^~~~~
/host/spi-builder-workspace/Sources/Async/Session.swift:79:35: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'url'
let message = "\(response.url?.absoluteString ?? "") -> redirected to -> \(request.url?.absoluteString ?? "")"
~~~~~~~~ ^~~
/host/spi-builder-workspace/Sources/Async/Session.swift:82:13: error: cannot find 'Logger' in scope
Logger.default.debug("\(message, privacy: .private)")
^~~~~~
/host/spi-builder-workspace/Sources/Async/Session.swift:84:13: error: cannot find 'os_log' in scope
os_log("%s", log: .default, type: .debug, message)
^~~~~~
/host/spi-builder-workspace/Sources/Async/Session.swift:84:32: error: cannot infer contextual base in reference to member 'default'
os_log("%s", log: .default, type: .debug, message)
~^~~~~~~
/host/spi-builder-workspace/Sources/Async/Session.swift:84:48: error: cannot infer contextual base in reference to member 'debug'
os_log("%s", log: .default, type: .debug, message)
~^~~~~
[4/37] Compiling Endpoints Client.swift
/host/spi-builder-workspace/Sources/Async/Session.swift:33:73: warning: unrecognized platform name 'visionOS'
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:52:73: warning: unrecognized platform name 'visionOS'
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:81:69: warning: unrecognized platform name 'visionOS'
if #available(iOS 14.0, macOS 11.0, tvOS 14.0, watchOS 7.0, visionOS 1.0, *) {
^
/host/spi-builder-workspace/Sources/Async/AnyClient.swift:19:23: error: cannot find type 'URLRequest' in scope
) async throws -> URLRequest {
^~~~~~~~~~
/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.
response: HTTPURLResponse?,
^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
^
/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.
response: HTTPURLResponse?,
^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
^
/host/spi-builder-workspace/Sources/Async/Client.swift:10:51: error: cannot find type 'URLRequest' in scope
func encode<C: Call>(call: C) async throws -> URLRequest
^~~~~~~~~~
/host/spi-builder-workspace/Sources/Core/URLRequestEncodable.swift:10:21: error: cannot find type 'URLRequest' in scope
var urlRequest: URLRequest { get }
^~~~~~~~~~
/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.
response: HTTPURLResponse?,
^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
^
/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.
public var urlSession: URLSession
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/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.
using urlSession: URLSession = URLSession(
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/host/spi-builder-workspace/Sources/Async/Session.swift:16:40: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
using urlSession: URLSession = URLSession(
^~~~~~~~~~
/host/spi-builder-workspace/Sources/Async/Session.swift:17:29: error: cannot infer contextual base in reference to member 'default'
configuration: .default,
~^~~~~~~
/host/spi-builder-workspace/Sources/Async/Session.swift:19:28: error: 'nil' requires a contextual type
delegateQueue: nil
^
/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.
open func dataTask<C: Call>(for call: C) async throws -> (C.Parser.OutputType, HTTPURLResponse) {
^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
^
/host/spi-builder-workspace/Sources/Async/Session.swift:76:29: error: cannot find type 'URLRequest' in scope
newRequest request: URLRequest,
^~~~~~~~~~
/host/spi-builder-workspace/Sources/Async/Session.swift:77:39: error: cannot find type 'URLRequest' in scope
completionHandler: @escaping (URLRequest?) -> Void
^~~~~~~~~~
/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.
_ session: URLSession,
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/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.
task: URLSessionTask,
^~~~~~~~~~~~~~
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
public typealias URLSessionTask = AnyObject
^
/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.
willPerformHTTPRedirection response: HTTPURLResponse,
^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
^
/host/spi-builder-workspace/Sources/Async/Session.swift:71:51: error: cannot find type 'URLSessionTaskDelegate' in scope
public class URLSessionDelegateHandler: NSObject, URLSessionTaskDelegate {
^~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Async/Session.swift:30:53: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
let (data, response) = try await urlSession.data(for: urlRequest)
~~~~~~~~~~ ^~~~
/host/spi-builder-workspace/Sources/Async/Session.swift:34:17: error: cannot find 'Logger' in scope
Logger.default.debug("no response.")
^~~~~~
/host/spi-builder-workspace/Sources/Async/Session.swift:36:17: error: cannot find 'os_log' in scope
os_log("no response.", log: .default, type: .debug)
^~~~~~
/host/spi-builder-workspace/Sources/Async/Session.swift:36:46: error: cannot infer contextual base in reference to member 'default'
os_log("no response.", log: .default, type: .debug)
~^~~~~~~
/host/spi-builder-workspace/Sources/Async/Session.swift:36:62: error: cannot infer contextual base in reference to member 'debug'
os_log("no response.", log: .default, type: .debug)
~^~~~~
/host/spi-builder-workspace/Sources/Async/Session.swift:53:17: error: cannot find 'Logger' in scope
Logger.default.debug("\(message, privacy: .private)")
^~~~~~
/host/spi-builder-workspace/Sources/Async/Session.swift:55:17: error: cannot find 'os_log' in scope
os_log("%s", log: .default, type: .debug, message)
^~~~~~
/host/spi-builder-workspace/Sources/Async/Session.swift:55:36: error: cannot infer contextual base in reference to member 'default'
os_log("%s", log: .default, type: .debug, message)
~^~~~~~~
/host/spi-builder-workspace/Sources/Async/Session.swift:55:52: error: cannot infer contextual base in reference to member 'debug'
os_log("%s", log: .default, type: .debug, message)
~^~~~~
/host/spi-builder-workspace/Sources/Async/Session.swift:79:35: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'url'
let message = "\(response.url?.absoluteString ?? "") -> redirected to -> \(request.url?.absoluteString ?? "")"
~~~~~~~~ ^~~
/host/spi-builder-workspace/Sources/Async/Session.swift:82:13: error: cannot find 'Logger' in scope
Logger.default.debug("\(message, privacy: .private)")
^~~~~~
/host/spi-builder-workspace/Sources/Async/Session.swift:84:13: error: cannot find 'os_log' in scope
os_log("%s", log: .default, type: .debug, message)
^~~~~~
/host/spi-builder-workspace/Sources/Async/Session.swift:84:32: error: cannot infer contextual base in reference to member 'default'
os_log("%s", log: .default, type: .debug, message)
~^~~~~~~
/host/spi-builder-workspace/Sources/Async/Session.swift:84:48: error: cannot infer contextual base in reference to member 'debug'
os_log("%s", log: .default, type: .debug, message)
~^~~~~
[5/37] Compiling Endpoints Session.swift
/host/spi-builder-workspace/Sources/Async/Session.swift:33:73: warning: unrecognized platform name 'visionOS'
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:52:73: warning: unrecognized platform name 'visionOS'
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:81:69: warning: unrecognized platform name 'visionOS'
if #available(iOS 14.0, macOS 11.0, tvOS 14.0, watchOS 7.0, visionOS 1.0, *) {
^
/host/spi-builder-workspace/Sources/Async/AnyClient.swift:19:23: error: cannot find type 'URLRequest' in scope
) async throws -> URLRequest {
^~~~~~~~~~
/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.
response: HTTPURLResponse?,
^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
^
/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.
response: HTTPURLResponse?,
^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
^
/host/spi-builder-workspace/Sources/Async/Client.swift:10:51: error: cannot find type 'URLRequest' in scope
func encode<C: Call>(call: C) async throws -> URLRequest
^~~~~~~~~~
/host/spi-builder-workspace/Sources/Core/URLRequestEncodable.swift:10:21: error: cannot find type 'URLRequest' in scope
var urlRequest: URLRequest { get }
^~~~~~~~~~
/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.
response: HTTPURLResponse?,
^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
^
/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.
public var urlSession: URLSession
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/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.
using urlSession: URLSession = URLSession(
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/host/spi-builder-workspace/Sources/Async/Session.swift:16:40: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
using urlSession: URLSession = URLSession(
^~~~~~~~~~
/host/spi-builder-workspace/Sources/Async/Session.swift:17:29: error: cannot infer contextual base in reference to member 'default'
configuration: .default,
~^~~~~~~
/host/spi-builder-workspace/Sources/Async/Session.swift:19:28: error: 'nil' requires a contextual type
delegateQueue: nil
^
/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.
open func dataTask<C: Call>(for call: C) async throws -> (C.Parser.OutputType, HTTPURLResponse) {
^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
^
/host/spi-builder-workspace/Sources/Async/Session.swift:76:29: error: cannot find type 'URLRequest' in scope
newRequest request: URLRequest,
^~~~~~~~~~
/host/spi-builder-workspace/Sources/Async/Session.swift:77:39: error: cannot find type 'URLRequest' in scope
completionHandler: @escaping (URLRequest?) -> Void
^~~~~~~~~~
/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.
_ session: URLSession,
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/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.
task: URLSessionTask,
^~~~~~~~~~~~~~
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
public typealias URLSessionTask = AnyObject
^
/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.
willPerformHTTPRedirection response: HTTPURLResponse,
^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
^
/host/spi-builder-workspace/Sources/Async/Session.swift:71:51: error: cannot find type 'URLSessionTaskDelegate' in scope
public class URLSessionDelegateHandler: NSObject, URLSessionTaskDelegate {
^~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Async/Session.swift:30:53: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
let (data, response) = try await urlSession.data(for: urlRequest)
~~~~~~~~~~ ^~~~
/host/spi-builder-workspace/Sources/Async/Session.swift:34:17: error: cannot find 'Logger' in scope
Logger.default.debug("no response.")
^~~~~~
/host/spi-builder-workspace/Sources/Async/Session.swift:36:17: error: cannot find 'os_log' in scope
os_log("no response.", log: .default, type: .debug)
^~~~~~
/host/spi-builder-workspace/Sources/Async/Session.swift:36:46: error: cannot infer contextual base in reference to member 'default'
os_log("no response.", log: .default, type: .debug)
~^~~~~~~
/host/spi-builder-workspace/Sources/Async/Session.swift:36:62: error: cannot infer contextual base in reference to member 'debug'
os_log("no response.", log: .default, type: .debug)
~^~~~~
/host/spi-builder-workspace/Sources/Async/Session.swift:53:17: error: cannot find 'Logger' in scope
Logger.default.debug("\(message, privacy: .private)")
^~~~~~
/host/spi-builder-workspace/Sources/Async/Session.swift:55:17: error: cannot find 'os_log' in scope
os_log("%s", log: .default, type: .debug, message)
^~~~~~
/host/spi-builder-workspace/Sources/Async/Session.swift:55:36: error: cannot infer contextual base in reference to member 'default'
os_log("%s", log: .default, type: .debug, message)
~^~~~~~~
/host/spi-builder-workspace/Sources/Async/Session.swift:55:52: error: cannot infer contextual base in reference to member 'debug'
os_log("%s", log: .default, type: .debug, message)
~^~~~~
/host/spi-builder-workspace/Sources/Async/Session.swift:79:35: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'url'
let message = "\(response.url?.absoluteString ?? "") -> redirected to -> \(request.url?.absoluteString ?? "")"
~~~~~~~~ ^~~
/host/spi-builder-workspace/Sources/Async/Session.swift:82:13: error: cannot find 'Logger' in scope
Logger.default.debug("\(message, privacy: .private)")
^~~~~~
/host/spi-builder-workspace/Sources/Async/Session.swift:84:13: error: cannot find 'os_log' in scope
os_log("%s", log: .default, type: .debug, message)
^~~~~~
/host/spi-builder-workspace/Sources/Async/Session.swift:84:32: error: cannot infer contextual base in reference to member 'default'
os_log("%s", log: .default, type: .debug, message)
~^~~~~~~
/host/spi-builder-workspace/Sources/Async/Session.swift:84:48: error: cannot infer contextual base in reference to member 'debug'
os_log("%s", log: .default, type: .debug, message)
~^~~~~
[6/37] Compiling Endpoints Body.swift
/host/spi-builder-workspace/Sources/Async/Session.swift:33:73: warning: unrecognized platform name 'visionOS'
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:52:73: warning: unrecognized platform name 'visionOS'
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:81:69: warning: unrecognized platform name 'visionOS'
if #available(iOS 14.0, macOS 11.0, tvOS 14.0, watchOS 7.0, visionOS 1.0, *) {
^
/host/spi-builder-workspace/Sources/Async/AnyClient.swift:19:23: error: cannot find type 'URLRequest' in scope
) async throws -> URLRequest {
^~~~~~~~~~
/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.
response: HTTPURLResponse?,
^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
^
/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.
response: HTTPURLResponse?,
^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
^
/host/spi-builder-workspace/Sources/Async/Client.swift:10:51: error: cannot find type 'URLRequest' in scope
func encode<C: Call>(call: C) async throws -> URLRequest
^~~~~~~~~~
/host/spi-builder-workspace/Sources/Core/URLRequestEncodable.swift:10:21: error: cannot find type 'URLRequest' in scope
var urlRequest: URLRequest { get }
^~~~~~~~~~
/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.
response: HTTPURLResponse?,
^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
^
/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.
public var urlSession: URLSession
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/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.
using urlSession: URLSession = URLSession(
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/host/spi-builder-workspace/Sources/Async/Session.swift:16:40: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
using urlSession: URLSession = URLSession(
^~~~~~~~~~
/host/spi-builder-workspace/Sources/Async/Session.swift:17:29: error: cannot infer contextual base in reference to member 'default'
configuration: .default,
~^~~~~~~
/host/spi-builder-workspace/Sources/Async/Session.swift:19:28: error: 'nil' requires a contextual type
delegateQueue: nil
^
/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.
open func dataTask<C: Call>(for call: C) async throws -> (C.Parser.OutputType, HTTPURLResponse) {
^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
^
/host/spi-builder-workspace/Sources/Async/Session.swift:76:29: error: cannot find type 'URLRequest' in scope
newRequest request: URLRequest,
^~~~~~~~~~
/host/spi-builder-workspace/Sources/Async/Session.swift:77:39: error: cannot find type 'URLRequest' in scope
completionHandler: @escaping (URLRequest?) -> Void
^~~~~~~~~~
/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.
_ session: URLSession,
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/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.
task: URLSessionTask,
^~~~~~~~~~~~~~
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
public typealias URLSessionTask = AnyObject
^
/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.
willPerformHTTPRedirection response: HTTPURLResponse,
^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
^
/host/spi-builder-workspace/Sources/Async/Session.swift:71:51: error: cannot find type 'URLSessionTaskDelegate' in scope
public class URLSessionDelegateHandler: NSObject, URLSessionTaskDelegate {
^~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Async/Session.swift:30:53: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
let (data, response) = try await urlSession.data(for: urlRequest)
~~~~~~~~~~ ^~~~
/host/spi-builder-workspace/Sources/Async/Session.swift:34:17: error: cannot find 'Logger' in scope
Logger.default.debug("no response.")
^~~~~~
/host/spi-builder-workspace/Sources/Async/Session.swift:36:17: error: cannot find 'os_log' in scope
os_log("no response.", log: .default, type: .debug)
^~~~~~
/host/spi-builder-workspace/Sources/Async/Session.swift:36:46: error: cannot infer contextual base in reference to member 'default'
os_log("no response.", log: .default, type: .debug)
~^~~~~~~
/host/spi-builder-workspace/Sources/Async/Session.swift:36:62: error: cannot infer contextual base in reference to member 'debug'
os_log("no response.", log: .default, type: .debug)
~^~~~~
/host/spi-builder-workspace/Sources/Async/Session.swift:53:17: error: cannot find 'Logger' in scope
Logger.default.debug("\(message, privacy: .private)")
^~~~~~
/host/spi-builder-workspace/Sources/Async/Session.swift:55:17: error: cannot find 'os_log' in scope
os_log("%s", log: .default, type: .debug, message)
^~~~~~
/host/spi-builder-workspace/Sources/Async/Session.swift:55:36: error: cannot infer contextual base in reference to member 'default'
os_log("%s", log: .default, type: .debug, message)
~^~~~~~~
/host/spi-builder-workspace/Sources/Async/Session.swift:55:52: error: cannot infer contextual base in reference to member 'debug'
os_log("%s", log: .default, type: .debug, message)
~^~~~~
/host/spi-builder-workspace/Sources/Async/Session.swift:79:35: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'url'
let message = "\(response.url?.absoluteString ?? "") -> redirected to -> \(request.url?.absoluteString ?? "")"
~~~~~~~~ ^~~
/host/spi-builder-workspace/Sources/Async/Session.swift:82:13: error: cannot find 'Logger' in scope
Logger.default.debug("\(message, privacy: .private)")
^~~~~~
/host/spi-builder-workspace/Sources/Async/Session.swift:84:13: error: cannot find 'os_log' in scope
os_log("%s", log: .default, type: .debug, message)
^~~~~~
/host/spi-builder-workspace/Sources/Async/Session.swift:84:32: error: cannot infer contextual base in reference to member 'default'
os_log("%s", log: .default, type: .debug, message)
~^~~~~~~
/host/spi-builder-workspace/Sources/Async/Session.swift:84:48: error: cannot infer contextual base in reference to member 'debug'
os_log("%s", log: .default, type: .debug, message)
~^~~~~
[7/37] Compiling Endpoints FormEncodedBody.swift
/host/spi-builder-workspace/Sources/Async/Session.swift:33:73: warning: unrecognized platform name 'visionOS'
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:52:73: warning: unrecognized platform name 'visionOS'
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:81:69: warning: unrecognized platform name 'visionOS'
if #available(iOS 14.0, macOS 11.0, tvOS 14.0, watchOS 7.0, visionOS 1.0, *) {
^
/host/spi-builder-workspace/Sources/Async/AnyClient.swift:19:23: error: cannot find type 'URLRequest' in scope
) async throws -> URLRequest {
^~~~~~~~~~
/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.
response: HTTPURLResponse?,
^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
^
/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.
response: HTTPURLResponse?,
^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
^
/host/spi-builder-workspace/Sources/Async/Client.swift:10:51: error: cannot find type 'URLRequest' in scope
func encode<C: Call>(call: C) async throws -> URLRequest
^~~~~~~~~~
/host/spi-builder-workspace/Sources/Core/URLRequestEncodable.swift:10:21: error: cannot find type 'URLRequest' in scope
var urlRequest: URLRequest { get }
^~~~~~~~~~
/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.
response: HTTPURLResponse?,
^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
^
/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.
public var urlSession: URLSession
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/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.
using urlSession: URLSession = URLSession(
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/host/spi-builder-workspace/Sources/Async/Session.swift:16:40: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
using urlSession: URLSession = URLSession(
^~~~~~~~~~
/host/spi-builder-workspace/Sources/Async/Session.swift:17:29: error: cannot infer contextual base in reference to member 'default'
configuration: .default,
~^~~~~~~
/host/spi-builder-workspace/Sources/Async/Session.swift:19:28: error: 'nil' requires a contextual type
delegateQueue: nil
^
/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.
open func dataTask<C: Call>(for call: C) async throws -> (C.Parser.OutputType, HTTPURLResponse) {
^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
^
/host/spi-builder-workspace/Sources/Async/Session.swift:76:29: error: cannot find type 'URLRequest' in scope
newRequest request: URLRequest,
^~~~~~~~~~
/host/spi-builder-workspace/Sources/Async/Session.swift:77:39: error: cannot find type 'URLRequest' in scope
completionHandler: @escaping (URLRequest?) -> Void
^~~~~~~~~~
/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.
_ session: URLSession,
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/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.
task: URLSessionTask,
^~~~~~~~~~~~~~
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
public typealias URLSessionTask = AnyObject
^
/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.
willPerformHTTPRedirection response: HTTPURLResponse,
^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
^
/host/spi-builder-workspace/Sources/Async/Session.swift:71:51: error: cannot find type 'URLSessionTaskDelegate' in scope
public class URLSessionDelegateHandler: NSObject, URLSessionTaskDelegate {
^~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Async/Session.swift:30:53: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
let (data, response) = try await urlSession.data(for: urlRequest)
~~~~~~~~~~ ^~~~
/host/spi-builder-workspace/Sources/Async/Session.swift:34:17: error: cannot find 'Logger' in scope
Logger.default.debug("no response.")
^~~~~~
/host/spi-builder-workspace/Sources/Async/Session.swift:36:17: error: cannot find 'os_log' in scope
os_log("no response.", log: .default, type: .debug)
^~~~~~
/host/spi-builder-workspace/Sources/Async/Session.swift:36:46: error: cannot infer contextual base in reference to member 'default'
os_log("no response.", log: .default, type: .debug)
~^~~~~~~
/host/spi-builder-workspace/Sources/Async/Session.swift:36:62: error: cannot infer contextual base in reference to member 'debug'
os_log("no response.", log: .default, type: .debug)
~^~~~~
/host/spi-builder-workspace/Sources/Async/Session.swift:53:17: error: cannot find 'Logger' in scope
Logger.default.debug("\(message, privacy: .private)")
^~~~~~
/host/spi-builder-workspace/Sources/Async/Session.swift:55:17: error: cannot find 'os_log' in scope
os_log("%s", log: .default, type: .debug, message)
^~~~~~
/host/spi-builder-workspace/Sources/Async/Session.swift:55:36: error: cannot infer contextual base in reference to member 'default'
os_log("%s", log: .default, type: .debug, message)
~^~~~~~~
/host/spi-builder-workspace/Sources/Async/Session.swift:55:52: error: cannot infer contextual base in reference to member 'debug'
os_log("%s", log: .default, type: .debug, message)
~^~~~~
/host/spi-builder-workspace/Sources/Async/Session.swift:79:35: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'url'
let message = "\(response.url?.absoluteString ?? "") -> redirected to -> \(request.url?.absoluteString ?? "")"
~~~~~~~~ ^~~
/host/spi-builder-workspace/Sources/Async/Session.swift:82:13: error: cannot find 'Logger' in scope
Logger.default.debug("\(message, privacy: .private)")
^~~~~~
/host/spi-builder-workspace/Sources/Async/Session.swift:84:13: error: cannot find 'os_log' in scope
os_log("%s", log: .default, type: .debug, message)
^~~~~~
/host/spi-builder-workspace/Sources/Async/Session.swift:84:32: error: cannot infer contextual base in reference to member 'default'
os_log("%s", log: .default, type: .debug, message)
~^~~~~~~
/host/spi-builder-workspace/Sources/Async/Session.swift:84:48: error: cannot infer contextual base in reference to member 'debug'
os_log("%s", log: .default, type: .debug, message)
~^~~~~
[8/37] 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.
public typealias ValidationBlock = (HTTPURLResponse?, Data?) throws -> Void
^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
^
/host/spi-builder-workspace/Sources/Core/URLRequestEncodable.swift:10:21: error: cannot find type 'URLRequest' in scope
var urlRequest: URLRequest { get }
^~~~~~~~~~
/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.
response: HTTPURLResponse?,
^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
^
/host/spi-builder-workspace/Sources/Convenience/HTTPURLResponse+Encoding.swift:5:8: error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended
public extension HTTPURLResponse {
^ ~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Convenience/URL+URLRequestEncodable.swift:6:28: error: cannot find type 'URLRequest' in scope
public var urlRequest: URLRequest {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/Convenience/URLRequest+Extensions.swift:5:11: error: cannot find type 'URLRequest' in scope
extension URLRequest: URLRequestEncodable {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/Convenience/URLRequest+Extensions.swift:11:18: error: cannot find type 'URLRequest' in scope
public extension URLRequest {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/Convenience/URLRequest+Extensions.swift:6:28: error: cannot find type 'URLRequest' in scope
public var urlRequest: URLRequest {
^~~~~~~~~~
[9/37] 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.
public typealias ValidationBlock = (HTTPURLResponse?, Data?) throws -> Void
^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
^
/host/spi-builder-workspace/Sources/Core/URLRequestEncodable.swift:10:21: error: cannot find type 'URLRequest' in scope
var urlRequest: URLRequest { get }
^~~~~~~~~~
/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.
response: HTTPURLResponse?,
^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
^
/host/spi-builder-workspace/Sources/Convenience/HTTPURLResponse+Encoding.swift:5:8: error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended
public extension HTTPURLResponse {
^ ~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Convenience/URL+URLRequestEncodable.swift:6:28: error: cannot find type 'URLRequest' in scope
public var urlRequest: URLRequest {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/Convenience/URLRequest+Extensions.swift:5:11: error: cannot find type 'URLRequest' in scope
extension URLRequest: URLRequestEncodable {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/Convenience/URLRequest+Extensions.swift:11:18: error: cannot find type 'URLRequest' in scope
public extension URLRequest {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/Convenience/URLRequest+Extensions.swift:6:28: error: cannot find type 'URLRequest' in scope
public var urlRequest: URLRequest {
^~~~~~~~~~
[10/37] 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.
public typealias ValidationBlock = (HTTPURLResponse?, Data?) throws -> Void
^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
^
/host/spi-builder-workspace/Sources/Core/URLRequestEncodable.swift:10:21: error: cannot find type 'URLRequest' in scope
var urlRequest: URLRequest { get }
^~~~~~~~~~
/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.
response: HTTPURLResponse?,
^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
^
/host/spi-builder-workspace/Sources/Convenience/HTTPURLResponse+Encoding.swift:5:8: error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended
public extension HTTPURLResponse {
^ ~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Convenience/URL+URLRequestEncodable.swift:6:28: error: cannot find type 'URLRequest' in scope
public var urlRequest: URLRequest {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/Convenience/URLRequest+Extensions.swift:5:11: error: cannot find type 'URLRequest' in scope
extension URLRequest: URLRequestEncodable {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/Convenience/URLRequest+Extensions.swift:11:18: error: cannot find type 'URLRequest' in scope
public extension URLRequest {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/Convenience/URLRequest+Extensions.swift:6:28: error: cannot find type 'URLRequest' in scope
public var urlRequest: URLRequest {
^~~~~~~~~~
[11/37] 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.
public typealias ValidationBlock = (HTTPURLResponse?, Data?) throws -> Void
^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
^
/host/spi-builder-workspace/Sources/Core/URLRequestEncodable.swift:10:21: error: cannot find type 'URLRequest' in scope
var urlRequest: URLRequest { get }
^~~~~~~~~~
/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.
response: HTTPURLResponse?,
^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
^
/host/spi-builder-workspace/Sources/Convenience/HTTPURLResponse+Encoding.swift:5:8: error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended
public extension HTTPURLResponse {
^ ~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Convenience/URL+URLRequestEncodable.swift:6:28: error: cannot find type 'URLRequest' in scope
public var urlRequest: URLRequest {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/Convenience/URLRequest+Extensions.swift:5:11: error: cannot find type 'URLRequest' in scope
extension URLRequest: URLRequestEncodable {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/Convenience/URLRequest+Extensions.swift:11:18: error: cannot find type 'URLRequest' in scope
public extension URLRequest {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/Convenience/URLRequest+Extensions.swift:6:28: error: cannot find type 'URLRequest' in scope
public var urlRequest: URLRequest {
^~~~~~~~~~
[12/37] 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.
public typealias ValidationBlock = (HTTPURLResponse?, Data?) throws -> Void
^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
^
/host/spi-builder-workspace/Sources/Core/URLRequestEncodable.swift:10:21: error: cannot find type 'URLRequest' in scope
var urlRequest: URLRequest { get }
^~~~~~~~~~
/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.
response: HTTPURLResponse?,
^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
^
/host/spi-builder-workspace/Sources/Convenience/HTTPURLResponse+Encoding.swift:5:8: error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended
public extension HTTPURLResponse {
^ ~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Convenience/URL+URLRequestEncodable.swift:6:28: error: cannot find type 'URLRequest' in scope
public var urlRequest: URLRequest {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/Convenience/URLRequest+Extensions.swift:5:11: error: cannot find type 'URLRequest' in scope
extension URLRequest: URLRequestEncodable {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/Convenience/URLRequest+Extensions.swift:11:18: error: cannot find type 'URLRequest' in scope
public extension URLRequest {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/Convenience/URLRequest+Extensions.swift:6:28: error: cannot find type 'URLRequest' in scope
public var urlRequest: URLRequest {
^~~~~~~~~~
[13/37] Compiling Endpoints ResponseParser.swift
/host/spi-builder-workspace/Sources/Parsing/ResponseParser/ResponseParser.swift:8:26: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
func parse(response: HTTPURLResponse, data: Data) throws -> OutputType
^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
^
/host/spi-builder-workspace/Sources/Parsing/ResponseParser/ResponseParser.swift:14:26: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
func parse(response: HTTPURLResponse, data: Data) throws -> OutputType {
^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
^
/host/spi-builder-workspace/Sources/Parsing/ResponseParser/ResponseParser.swift:15:50: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'stringEncoding'
try parse(data: data, encoding: response.stringEncoding)
~~~~~~~~ ^~~~~~~~~~~~~~
/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.
response: HTTPURLResponse?,
^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
^
[14/37] Compiling Endpoints StringConvertibleParser.swift
/host/spi-builder-workspace/Sources/Parsing/ResponseParser/ResponseParser.swift:8:26: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
func parse(response: HTTPURLResponse, data: Data) throws -> OutputType
^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
^
/host/spi-builder-workspace/Sources/Parsing/ResponseParser/ResponseParser.swift:14:26: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
func parse(response: HTTPURLResponse, data: Data) throws -> OutputType {
^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
^
/host/spi-builder-workspace/Sources/Parsing/ResponseParser/ResponseParser.swift:15:50: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'stringEncoding'
try parse(data: data, encoding: response.stringEncoding)
~~~~~~~~ ^~~~~~~~~~~~~~
/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.
response: HTTPURLResponse?,
^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
^
[15/37] Compiling Endpoints StringParser.swift
/host/spi-builder-workspace/Sources/Parsing/ResponseParser/ResponseParser.swift:8:26: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
func parse(response: HTTPURLResponse, data: Data) throws -> OutputType
^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
^
/host/spi-builder-workspace/Sources/Parsing/ResponseParser/ResponseParser.swift:14:26: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
func parse(response: HTTPURLResponse, data: Data) throws -> OutputType {
^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
^
/host/spi-builder-workspace/Sources/Parsing/ResponseParser/ResponseParser.swift:15:50: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'stringEncoding'
try parse(data: data, encoding: response.stringEncoding)
~~~~~~~~ ^~~~~~~~~~~~~~
/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.
response: HTTPURLResponse?,
^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
^
[16/37] Compiling Endpoints ResponseValidator.swift
/host/spi-builder-workspace/Sources/Parsing/ResponseParser/ResponseParser.swift:8:26: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
func parse(response: HTTPURLResponse, data: Data) throws -> OutputType
^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
^
/host/spi-builder-workspace/Sources/Parsing/ResponseParser/ResponseParser.swift:14:26: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
func parse(response: HTTPURLResponse, data: Data) throws -> OutputType {
^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
^
/host/spi-builder-workspace/Sources/Parsing/ResponseParser/ResponseParser.swift:15:50: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'stringEncoding'
try parse(data: data, encoding: response.stringEncoding)
~~~~~~~~ ^~~~~~~~~~~~~~
/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.
response: HTTPURLResponse?,
^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
^
[17/37] Compiling Endpoints EndpointsParsingError.swift
/host/spi-builder-workspace/Sources/Error/StatusCodeError.swift:16:39: error: type 'HTTPURLResponse' (aka 'AnyObject') has no member 'localizedString'
reason ?? HTTPURLResponse.localizedString(forStatusCode: code)
~~~~~~~~~~~~~~~ ^~~~~~~~~~~~~~~
[18/37] Compiling Endpoints EndpointsSessionError.swift
/host/spi-builder-workspace/Sources/Error/StatusCodeError.swift:16:39: error: type 'HTTPURLResponse' (aka 'AnyObject') has no member 'localizedString'
reason ?? HTTPURLResponse.localizedString(forStatusCode: code)
~~~~~~~~~~~~~~~ ^~~~~~~~~~~~~~~
[19/37] Compiling Endpoints StatusCodeError.swift
/host/spi-builder-workspace/Sources/Error/StatusCodeError.swift:16:39: error: type 'HTTPURLResponse' (aka 'AnyObject') has no member 'localizedString'
reason ?? HTTPURLResponse.localizedString(forStatusCode: code)
~~~~~~~~~~~~~~~ ^~~~~~~~~~~~~~~
[20/37] Compiling Endpoints DataParser.swift
/host/spi-builder-workspace/Sources/Error/StatusCodeError.swift:16:39: error: type 'HTTPURLResponse' (aka 'AnyObject') has no member 'localizedString'
reason ?? HTTPURLResponse.localizedString(forStatusCode: code)
~~~~~~~~~~~~~~~ ^~~~~~~~~~~~~~~
[21/37] Compiling Endpoints URLRequestEncodable.swift
/host/spi-builder-workspace/Sources/Core/URLRequestEncodable.swift:10:21: error: cannot find type 'URLRequest' in scope
var urlRequest: URLRequest { get }
^~~~~~~~~~
/host/spi-builder-workspace/Sources/Core/URLSessionTaskResult.swift:11:26: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
public var response: URLResponse?
^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
^
/host/spi-builder-workspace/Sources/Core/URLSessionTaskResult.swift:15:27: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
public init(response: URLResponse? = nil, data: Data? = nil, error: Error? = nil) {
^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
^
/host/spi-builder-workspace/Sources/Core/URLSessionTaskResult.swift:22:30: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
public var httpResponse: HTTPURLResponse? {
^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
^
/host/spi-builder-workspace/Sources/Core/URLSessionTaskResult.swift:23:18: warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
response as? HTTPURLResponse
~~~~~~~~~^~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Core/URLSessionTaskResult.swift:23:22: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
response as? HTTPURLResponse
^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
^
/host/spi-builder-workspace/Sources/Error/EndpointsError.swift:9:26: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
public let response: HTTPURLResponse?
^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
^
/host/spi-builder-workspace/Sources/Error/EndpointsError.swift:11:41: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
public init(error: Error, response: HTTPURLResponse?) {
^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
^
[22/37] Compiling Endpoints URLSessionTaskResult.swift
/host/spi-builder-workspace/Sources/Core/URLRequestEncodable.swift:10:21: error: cannot find type 'URLRequest' in scope
var urlRequest: URLRequest { get }
^~~~~~~~~~
/host/spi-builder-workspace/Sources/Core/URLSessionTaskResult.swift:11:26: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
public var response: URLResponse?
^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
^
/host/spi-builder-workspace/Sources/Core/URLSessionTaskResult.swift:15:27: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
public init(response: URLResponse? = nil, data: Data? = nil, error: Error? = nil) {
^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
^
/host/spi-builder-workspace/Sources/Core/URLSessionTaskResult.swift:22:30: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
public var httpResponse: HTTPURLResponse? {
^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
^
/host/spi-builder-workspace/Sources/Core/URLSessionTaskResult.swift:23:18: warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
response as? HTTPURLResponse
~~~~~~~~~^~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Core/URLSessionTaskResult.swift:23:22: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
response as? HTTPURLResponse
^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
^
/host/spi-builder-workspace/Sources/Error/EndpointsError.swift:9:26: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
public let response: HTTPURLResponse?
^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
^
/host/spi-builder-workspace/Sources/Error/EndpointsError.swift:11:41: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
public init(error: Error, response: HTTPURLResponse?) {
^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
^
[23/37] Compiling Endpoints ContinuationError.swift
/host/spi-builder-workspace/Sources/Core/URLRequestEncodable.swift:10:21: error: cannot find type 'URLRequest' in scope
var urlRequest: URLRequest { get }
^~~~~~~~~~
/host/spi-builder-workspace/Sources/Core/URLSessionTaskResult.swift:11:26: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
public var response: URLResponse?
^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
^
/host/spi-builder-workspace/Sources/Core/URLSessionTaskResult.swift:15:27: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
public init(response: URLResponse? = nil, data: Data? = nil, error: Error? = nil) {
^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
^
/host/spi-builder-workspace/Sources/Core/URLSessionTaskResult.swift:22:30: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
public var httpResponse: HTTPURLResponse? {
^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
^
/host/spi-builder-workspace/Sources/Core/URLSessionTaskResult.swift:23:18: warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
response as? HTTPURLResponse
~~~~~~~~~^~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Core/URLSessionTaskResult.swift:23:22: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
response as? HTTPURLResponse
^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
^
/host/spi-builder-workspace/Sources/Error/EndpointsError.swift:9:26: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
public let response: HTTPURLResponse?
^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
^
/host/spi-builder-workspace/Sources/Error/EndpointsError.swift:11:41: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
public init(error: Error, response: HTTPURLResponse?) {
^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
^
[24/37] Compiling Endpoints EndpointsError.swift
/host/spi-builder-workspace/Sources/Core/URLRequestEncodable.swift:10:21: error: cannot find type 'URLRequest' in scope
var urlRequest: URLRequest { get }
^~~~~~~~~~
/host/spi-builder-workspace/Sources/Core/URLSessionTaskResult.swift:11:26: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
public var response: URLResponse?
^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
^
/host/spi-builder-workspace/Sources/Core/URLSessionTaskResult.swift:15:27: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
public init(response: URLResponse? = nil, data: Data? = nil, error: Error? = nil) {
^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
^
/host/spi-builder-workspace/Sources/Core/URLSessionTaskResult.swift:22:30: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
public var httpResponse: HTTPURLResponse? {
^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
^
/host/spi-builder-workspace/Sources/Core/URLSessionTaskResult.swift:23:18: warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
response as? HTTPURLResponse
~~~~~~~~~^~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Core/URLSessionTaskResult.swift:23:22: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
response as? HTTPURLResponse
^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
^
/host/spi-builder-workspace/Sources/Error/EndpointsError.swift:9:26: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
public let response: HTTPURLResponse?
^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
^
/host/spi-builder-workspace/Sources/Error/EndpointsError.swift:11:41: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
public init(error: Error, response: HTTPURLResponse?) {
^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
^
[25/37] Compiling Endpoints DataResponseParser.swift
/host/spi-builder-workspace/Sources/Parsing/ResponseParser/NoContentParser.swift:12:35: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
public func parse(response _: HTTPURLResponse, data _: Data) throws -> OutputType {
^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
^
[26/37] Compiling Endpoints DictionaryParser.swift
/host/spi-builder-workspace/Sources/Parsing/ResponseParser/NoContentParser.swift:12:35: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
public func parse(response _: HTTPURLResponse, data _: Data) throws -> OutputType {
^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
^
[27/37] Compiling Endpoints JSONParser.swift
/host/spi-builder-workspace/Sources/Parsing/ResponseParser/NoContentParser.swift:12:35: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
public func parse(response _: HTTPURLResponse, data _: Data) throws -> OutputType {
^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
^
[28/37] Compiling Endpoints NoContentParser.swift
/host/spi-builder-workspace/Sources/Parsing/ResponseParser/NoContentParser.swift:12:35: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
public func parse(response _: HTTPURLResponse, data _: Data) throws -> OutputType {
^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
^
[29/37] Compiling Endpoints Call.swift
/host/spi-builder-workspace/Sources/Core/Logger.swift:9:62: warning: unrecognized platform name 'visionOS'
@available(iOS 14.0, macOS 11.0, tvOS 14.0, watchOS 7.0, visionOS 1.0, *)
^
/host/spi-builder-workspace/Sources/Core/URLRequestEncodable.swift:10:21: error: cannot find type 'URLRequest' in scope
var urlRequest: URLRequest { get }
^~~~~~~~~~
/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.
response _: HTTPURLResponse?,
^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
^
/host/spi-builder-workspace/Sources/Core/Debugging.swift:70:8: error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended
public extension HTTPURLResponse {
^ ~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Core/Debugging.swift:51:35: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
var description = "\(resp.statusCode)\n"
~~~~ ^~~~~~~~~~
/host/spi-builder-workspace/Sources/Core/Debugging.swift:53:23: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
httpResponse?.allHeaderFields.forEach {
~~~~~~~~~~~~~ ^~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Core/Debugging.swift:57:69: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'stringEncoding'
if let data, let string = String(data: data, encoding: resp.stringEncoding) {
~~~~ ^~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Core/Request.swift:38:28: error: cannot find type 'URLRequest' in scope
public var urlRequest: URLRequest {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/Core/Request.swift:39:26: error: cannot find 'URLRequest' in scope
var urlRequest = URLRequest(url: url)
^~~~~~~~~~
[30/37] Compiling Endpoints Debugging.swift
/host/spi-builder-workspace/Sources/Core/Logger.swift:9:62: warning: unrecognized platform name 'visionOS'
@available(iOS 14.0, macOS 11.0, tvOS 14.0, watchOS 7.0, visionOS 1.0, *)
^
/host/spi-builder-workspace/Sources/Core/URLRequestEncodable.swift:10:21: error: cannot find type 'URLRequest' in scope
var urlRequest: URLRequest { get }
^~~~~~~~~~
/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.
response _: HTTPURLResponse?,
^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
^
/host/spi-builder-workspace/Sources/Core/Debugging.swift:70:8: error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended
public extension HTTPURLResponse {
^ ~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Core/Debugging.swift:51:35: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
var description = "\(resp.statusCode)\n"
~~~~ ^~~~~~~~~~
/host/spi-builder-workspace/Sources/Core/Debugging.swift:53:23: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
httpResponse?.allHeaderFields.forEach {
~~~~~~~~~~~~~ ^~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Core/Debugging.swift:57:69: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'stringEncoding'
if let data, let string = String(data: data, encoding: resp.stringEncoding) {
~~~~ ^~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Core/Request.swift:38:28: error: cannot find type 'URLRequest' in scope
public var urlRequest: URLRequest {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/Core/Request.swift:39:26: error: cannot find 'URLRequest' in scope
var urlRequest = URLRequest(url: url)
^~~~~~~~~~
[31/37] Compiling Endpoints HTTPMethod.swift
/host/spi-builder-workspace/Sources/Core/Logger.swift:9:62: warning: unrecognized platform name 'visionOS'
@available(iOS 14.0, macOS 11.0, tvOS 14.0, watchOS 7.0, visionOS 1.0, *)
^
/host/spi-builder-workspace/Sources/Core/URLRequestEncodable.swift:10:21: error: cannot find type 'URLRequest' in scope
var urlRequest: URLRequest { get }
^~~~~~~~~~
/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.
response _: HTTPURLResponse?,
^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
^
/host/spi-builder-workspace/Sources/Core/Debugging.swift:70:8: error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended
public extension HTTPURLResponse {
^ ~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Core/Debugging.swift:51:35: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
var description = "\(resp.statusCode)\n"
~~~~ ^~~~~~~~~~
/host/spi-builder-workspace/Sources/Core/Debugging.swift:53:23: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
httpResponse?.allHeaderFields.forEach {
~~~~~~~~~~~~~ ^~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Core/Debugging.swift:57:69: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'stringEncoding'
if let data, let string = String(data: data, encoding: resp.stringEncoding) {
~~~~ ^~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Core/Request.swift:38:28: error: cannot find type 'URLRequest' in scope
public var urlRequest: URLRequest {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/Core/Request.swift:39:26: error: cannot find 'URLRequest' in scope
var urlRequest = URLRequest(url: url)
^~~~~~~~~~
[32/37] Compiling Endpoints Logger.swift
/host/spi-builder-workspace/Sources/Core/Logger.swift:9:62: warning: unrecognized platform name 'visionOS'
@available(iOS 14.0, macOS 11.0, tvOS 14.0, watchOS 7.0, visionOS 1.0, *)
^
/host/spi-builder-workspace/Sources/Core/URLRequestEncodable.swift:10:21: error: cannot find type 'URLRequest' in scope
var urlRequest: URLRequest { get }
^~~~~~~~~~
/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.
response _: HTTPURLResponse?,
^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
^
/host/spi-builder-workspace/Sources/Core/Debugging.swift:70:8: error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended
public extension HTTPURLResponse {
^ ~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Core/Debugging.swift:51:35: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
var description = "\(resp.statusCode)\n"
~~~~ ^~~~~~~~~~
/host/spi-builder-workspace/Sources/Core/Debugging.swift:53:23: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
httpResponse?.allHeaderFields.forEach {
~~~~~~~~~~~~~ ^~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Core/Debugging.swift:57:69: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'stringEncoding'
if let data, let string = String(data: data, encoding: resp.stringEncoding) {
~~~~ ^~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Core/Request.swift:38:28: error: cannot find type 'URLRequest' in scope
public var urlRequest: URLRequest {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/Core/Request.swift:39:26: error: cannot find 'URLRequest' in scope
var urlRequest = URLRequest(url: url)
^~~~~~~~~~
[33/37] Compiling Endpoints Request.swift
/host/spi-builder-workspace/Sources/Core/Logger.swift:9:62: warning: unrecognized platform name 'visionOS'
@available(iOS 14.0, macOS 11.0, tvOS 14.0, watchOS 7.0, visionOS 1.0, *)
^
/host/spi-builder-workspace/Sources/Core/URLRequestEncodable.swift:10:21: error: cannot find type 'URLRequest' in scope
var urlRequest: URLRequest { get }
^~~~~~~~~~
/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.
response _: HTTPURLResponse?,
^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
^
/host/spi-builder-workspace/Sources/Core/Debugging.swift:70:8: error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended
public extension HTTPURLResponse {
^ ~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Core/Debugging.swift:51:35: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
var description = "\(resp.statusCode)\n"
~~~~ ^~~~~~~~~~
/host/spi-builder-workspace/Sources/Core/Debugging.swift:53:23: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
httpResponse?.allHeaderFields.forEach {
~~~~~~~~~~~~~ ^~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Core/Debugging.swift:57:69: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'stringEncoding'
if let data, let string = String(data: data, encoding: resp.stringEncoding) {
~~~~ ^~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Core/Request.swift:38:28: error: cannot find type 'URLRequest' in scope
public var urlRequest: URLRequest {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/Core/Request.swift:39:26: error: cannot find 'URLRequest' in scope
var urlRequest = URLRequest(url: url)
^~~~~~~~~~
[34/37] Compiling Endpoints StatusCodeValidator.swift
/host/spi-builder-workspace/Sources/Testing/FakeSession.swift:23:73: warning: unrecognized platform name 'visionOS'
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:43:73: warning: unrecognized platform name 'visionOS'
if #available(iOS 14.0, macOS 11.0, tvOS 14.0, watchOS 7.0, visionOS 1.0, *) {
^
/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.
response: HTTPURLResponse?,
^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
^
/host/spi-builder-workspace/Sources/ResponseValidator/StatusCodeValidator.swift:18:33: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
if let code = response?.statusCode,
~~~~~~~~~ ^~~~~~~~~~
/host/spi-builder-workspace/Sources/Testing/FakeHTTPURLResponse.swift:5:14: error: only protocols can inherit from 'AnyObject'
public class FakeHTTPURLResponse: HTTPURLResponse {
^
/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.
public class FakeHTTPURLResponse: HTTPURLResponse {
^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
^
/host/spi-builder-workspace/Sources/Testing/FakeHTTPURLResponse.swift:12:9: error: 'super' members cannot be referenced in a root class
super.init(
^
/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.
func data<C: Call>(for call: C) async throws -> (URLResponse, Data)
^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
^
/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.
) async throws -> (C.Parser.OutputType, HTTPURLResponse) {
^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
^
/host/spi-builder-workspace/Sources/Testing/FakeSession.swift:22:39: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
guard let response = response as? HTTPURLResponse else {
^
/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.
guard let response = response as? HTTPURLResponse else {
^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
^
/host/spi-builder-workspace/Sources/Testing/FakeSession.swift:24:17: error: cannot find 'Logger' in scope
Logger.default.debug("no response.")
^~~~~~
/host/spi-builder-workspace/Sources/Testing/FakeSession.swift:26:17: error: cannot find 'os_log' in scope
os_log("no response.", log: .default, type: .debug)
^~~~~~
/host/spi-builder-workspace/Sources/Testing/FakeSession.swift:26:46: error: cannot infer contextual base in reference to member 'default'
os_log("no response.", log: .default, type: .debug)
~^~~~~~~
/host/spi-builder-workspace/Sources/Testing/FakeSession.swift:26:62: error: cannot infer contextual base in reference to member 'debug'
os_log("no response.", log: .default, type: .debug)
~^~~~~
/host/spi-builder-workspace/Sources/Testing/FakeSession.swift:40:36: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'debugDescription'
message += "\(response.debugDescription)\n"
~~~~~~~~ ^~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Testing/FakeSession.swift:41:68: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'stringEncoding'
message += "\(data.debugDescription(encoding: response.stringEncoding))"
~~~~~~~~ ^~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Testing/FakeSession.swift:44:17: error: cannot find 'Logger' in scope
Logger.default.debug("\(message, privacy: .private)")
^~~~~~
/host/spi-builder-workspace/Sources/Testing/FakeSession.swift:46:17: error: cannot find 'os_log' in scope
os_log("%s", log: .default, type: .debug, message)
^~~~~~
/host/spi-builder-workspace/Sources/Testing/FakeSession.swift:46:36: error: cannot infer contextual base in reference to member 'default'
os_log("%s", log: .default, type: .debug, message)
~^~~~~~~
/host/spi-builder-workspace/Sources/Testing/FakeSession.swift:46:52: error: cannot infer contextual base in reference to member 'debug'
os_log("%s", log: .default, type: .debug, message)
~^~~~~
[35/37] Compiling Endpoints FakeHTTPURLResponse.swift
/host/spi-builder-workspace/Sources/Testing/FakeSession.swift:23:73: warning: unrecognized platform name 'visionOS'
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:43:73: warning: unrecognized platform name 'visionOS'
if #available(iOS 14.0, macOS 11.0, tvOS 14.0, watchOS 7.0, visionOS 1.0, *) {
^
/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.
response: HTTPURLResponse?,
^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
^
/host/spi-builder-workspace/Sources/ResponseValidator/StatusCodeValidator.swift:18:33: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
if let code = response?.statusCode,
~~~~~~~~~ ^~~~~~~~~~
/host/spi-builder-workspace/Sources/Testing/FakeHTTPURLResponse.swift:5:14: error: only protocols can inherit from 'AnyObject'
public class FakeHTTPURLResponse: HTTPURLResponse {
^
/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.
public class FakeHTTPURLResponse: HTTPURLResponse {
^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
^
/host/spi-builder-workspace/Sources/Testing/FakeHTTPURLResponse.swift:12:9: error: 'super' members cannot be referenced in a root class
super.init(
^
/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.
func data<C: Call>(for call: C) async throws -> (URLResponse, Data)
^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
^
/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.
) async throws -> (C.Parser.OutputType, HTTPURLResponse) {
^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
^
/host/spi-builder-workspace/Sources/Testing/FakeSession.swift:22:39: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
guard let response = response as? HTTPURLResponse else {
^
/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.
guard let response = response as? HTTPURLResponse else {
^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
^
/host/spi-builder-workspace/Sources/Testing/FakeSession.swift:24:17: error: cannot find 'Logger' in scope
Logger.default.debug("no response.")
^~~~~~
/host/spi-builder-workspace/Sources/Testing/FakeSession.swift:26:17: error: cannot find 'os_log' in scope
os_log("no response.", log: .default, type: .debug)
^~~~~~
/host/spi-builder-workspace/Sources/Testing/FakeSession.swift:26:46: error: cannot infer contextual base in reference to member 'default'
os_log("no response.", log: .default, type: .debug)
~^~~~~~~
/host/spi-builder-workspace/Sources/Testing/FakeSession.swift:26:62: error: cannot infer contextual base in reference to member 'debug'
os_log("no response.", log: .default, type: .debug)
~^~~~~
/host/spi-builder-workspace/Sources/Testing/FakeSession.swift:40:36: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'debugDescription'
message += "\(response.debugDescription)\n"
~~~~~~~~ ^~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Testing/FakeSession.swift:41:68: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'stringEncoding'
message += "\(data.debugDescription(encoding: response.stringEncoding))"
~~~~~~~~ ^~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Testing/FakeSession.swift:44:17: error: cannot find 'Logger' in scope
Logger.default.debug("\(message, privacy: .private)")
^~~~~~
/host/spi-builder-workspace/Sources/Testing/FakeSession.swift:46:17: error: cannot find 'os_log' in scope
os_log("%s", log: .default, type: .debug, message)
^~~~~~
/host/spi-builder-workspace/Sources/Testing/FakeSession.swift:46:36: error: cannot infer contextual base in reference to member 'default'
os_log("%s", log: .default, type: .debug, message)
~^~~~~~~
/host/spi-builder-workspace/Sources/Testing/FakeSession.swift:46:52: error: cannot infer contextual base in reference to member 'debug'
os_log("%s", log: .default, type: .debug, message)
~^~~~~
[36/37] Compiling Endpoints FakeResultProvider.swift
/host/spi-builder-workspace/Sources/Testing/FakeSession.swift:23:73: warning: unrecognized platform name 'visionOS'
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:43:73: warning: unrecognized platform name 'visionOS'
if #available(iOS 14.0, macOS 11.0, tvOS 14.0, watchOS 7.0, visionOS 1.0, *) {
^
/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.
response: HTTPURLResponse?,
^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
^
/host/spi-builder-workspace/Sources/ResponseValidator/StatusCodeValidator.swift:18:33: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
if let code = response?.statusCode,
~~~~~~~~~ ^~~~~~~~~~
/host/spi-builder-workspace/Sources/Testing/FakeHTTPURLResponse.swift:5:14: error: only protocols can inherit from 'AnyObject'
public class FakeHTTPURLResponse: HTTPURLResponse {
^
/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.
public class FakeHTTPURLResponse: HTTPURLResponse {
^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
^
/host/spi-builder-workspace/Sources/Testing/FakeHTTPURLResponse.swift:12:9: error: 'super' members cannot be referenced in a root class
super.init(
^
/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.
func data<C: Call>(for call: C) async throws -> (URLResponse, Data)
^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
^
/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.
) async throws -> (C.Parser.OutputType, HTTPURLResponse) {
^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
^
/host/spi-builder-workspace/Sources/Testing/FakeSession.swift:22:39: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
guard let response = response as? HTTPURLResponse else {
^
/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.
guard let response = response as? HTTPURLResponse else {
^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
^
/host/spi-builder-workspace/Sources/Testing/FakeSession.swift:24:17: error: cannot find 'Logger' in scope
Logger.default.debug("no response.")
^~~~~~
/host/spi-builder-workspace/Sources/Testing/FakeSession.swift:26:17: error: cannot find 'os_log' in scope
os_log("no response.", log: .default, type: .debug)
^~~~~~
/host/spi-builder-workspace/Sources/Testing/FakeSession.swift:26:46: error: cannot infer contextual base in reference to member 'default'
os_log("no response.", log: .default, type: .debug)
~^~~~~~~
/host/spi-builder-workspace/Sources/Testing/FakeSession.swift:26:62: error: cannot infer contextual base in reference to member 'debug'
os_log("no response.", log: .default, type: .debug)
~^~~~~
/host/spi-builder-workspace/Sources/Testing/FakeSession.swift:40:36: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'debugDescription'
message += "\(response.debugDescription)\n"
~~~~~~~~ ^~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Testing/FakeSession.swift:41:68: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'stringEncoding'
message += "\(data.debugDescription(encoding: response.stringEncoding))"
~~~~~~~~ ^~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Testing/FakeSession.swift:44:17: error: cannot find 'Logger' in scope
Logger.default.debug("\(message, privacy: .private)")
^~~~~~
/host/spi-builder-workspace/Sources/Testing/FakeSession.swift:46:17: error: cannot find 'os_log' in scope
os_log("%s", log: .default, type: .debug, message)
^~~~~~
/host/spi-builder-workspace/Sources/Testing/FakeSession.swift:46:36: error: cannot infer contextual base in reference to member 'default'
os_log("%s", log: .default, type: .debug, message)
~^~~~~~~
/host/spi-builder-workspace/Sources/Testing/FakeSession.swift:46:52: error: cannot infer contextual base in reference to member 'debug'
os_log("%s", log: .default, type: .debug, message)
~^~~~~
[37/37] Compiling Endpoints FakeSession.swift
/host/spi-builder-workspace/Sources/Testing/FakeSession.swift:23:73: warning: unrecognized platform name 'visionOS'
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:43:73: warning: unrecognized platform name 'visionOS'
if #available(iOS 14.0, macOS 11.0, tvOS 14.0, watchOS 7.0, visionOS 1.0, *) {
^
/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.
response: HTTPURLResponse?,
^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
^
/host/spi-builder-workspace/Sources/ResponseValidator/StatusCodeValidator.swift:18:33: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
if let code = response?.statusCode,
~~~~~~~~~ ^~~~~~~~~~
/host/spi-builder-workspace/Sources/Testing/FakeHTTPURLResponse.swift:5:14: error: only protocols can inherit from 'AnyObject'
public class FakeHTTPURLResponse: HTTPURLResponse {
^
/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.
public class FakeHTTPURLResponse: HTTPURLResponse {
^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
^
/host/spi-builder-workspace/Sources/Testing/FakeHTTPURLResponse.swift:12:9: error: 'super' members cannot be referenced in a root class
super.init(
^
/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.
func data<C: Call>(for call: C) async throws -> (URLResponse, Data)
^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
^
/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.
) async throws -> (C.Parser.OutputType, HTTPURLResponse) {
^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
^
/host/spi-builder-workspace/Sources/Testing/FakeSession.swift:22:39: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
guard let response = response as? HTTPURLResponse else {
^
/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.
guard let response = response as? HTTPURLResponse else {
^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
^
/host/spi-builder-workspace/Sources/Testing/FakeSession.swift:24:17: error: cannot find 'Logger' in scope
Logger.default.debug("no response.")
^~~~~~
/host/spi-builder-workspace/Sources/Testing/FakeSession.swift:26:17: error: cannot find 'os_log' in scope
os_log("no response.", log: .default, type: .debug)
^~~~~~
/host/spi-builder-workspace/Sources/Testing/FakeSession.swift:26:46: error: cannot infer contextual base in reference to member 'default'
os_log("no response.", log: .default, type: .debug)
~^~~~~~~
/host/spi-builder-workspace/Sources/Testing/FakeSession.swift:26:62: error: cannot infer contextual base in reference to member 'debug'
os_log("no response.", log: .default, type: .debug)
~^~~~~
/host/spi-builder-workspace/Sources/Testing/FakeSession.swift:40:36: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'debugDescription'
message += "\(response.debugDescription)\n"
~~~~~~~~ ^~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Testing/FakeSession.swift:41:68: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'stringEncoding'
message += "\(data.debugDescription(encoding: response.stringEncoding))"
~~~~~~~~ ^~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Testing/FakeSession.swift:44:17: error: cannot find 'Logger' in scope
Logger.default.debug("\(message, privacy: .private)")
^~~~~~
/host/spi-builder-workspace/Sources/Testing/FakeSession.swift:46:17: error: cannot find 'os_log' in scope
os_log("%s", log: .default, type: .debug, message)
^~~~~~
/host/spi-builder-workspace/Sources/Testing/FakeSession.swift:46:36: error: cannot infer contextual base in reference to member 'default'
os_log("%s", log: .default, type: .debug, message)
~^~~~~~~
/host/spi-builder-workspace/Sources/Testing/FakeSession.swift:46:52: error: cannot infer contextual base in reference to member 'debug'
os_log("%s", log: .default, type: .debug, message)
~^~~~~
error: fatalError
BUILD FAILURE 5.9 linux