Build Information
Failed to build async-http-client, reference v1.4.6 (9a5624
), with Swift 5.10 for Linux on 22 Aug 2024 08:42:45 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4606859-0":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-5.10-latest swift build --triple x86_64-unknown-linux-gnu 2>&1
Build Log
========================================
RunAll
========================================
Builder version: 4.52.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/igor11191708/async-http-client.git
Reference: v1.4.6
Initialized empty Git repository in /host/spi-builder-workspace/.git/
hint: Using 'master' as the name for the initial branch. This default branch name
hint: is subject to change. To configure the initial branch name to use in all
hint: of your new repositories, which will suppress this warning, call:
hint:
hint: git config --global init.defaultBranch <name>
hint:
hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and
hint: 'development'. The just-created branch can be renamed via this command:
hint:
hint: git branch -m <name>
From https://github.com/igor11191708/async-http-client
* tag v1.4.6 -> FETCH_HEAD
HEAD is now at 9a56240 support for new retry
Cloned https://github.com/igor11191708/async-http-client.git
Revision (git rev-parse @):
9a56240b21baff71f5399194a1f2af9ab8c4c076
SUCCESS checkout https://github.com/igor11191708/async-http-client.git at v1.4.6
========================================
Build
========================================
Selected platform: linux
Swift version: 5.10
Building package at path: $PWD
https://github.com/igor11191708/async-http-client.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-0":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-5.10-latest swift build --triple x86_64-unknown-linux-gnu 2>&1
basic-5.10-latest: Pulling from finestructure/spi-images
Digest: sha256:a70f701911643a3a4293839e0e79d56dcc32eed4840549b67640dc1034af7f44
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-5.10-latest
Fetching https://github.com/The-Igor/retry-policy-service.git
[1/89] Fetching retry-policy-service
Fetched https://github.com/The-Igor/retry-policy-service.git from cache (0.16s)
Computing version for https://github.com/The-Igor/retry-policy-service.git
Computed https://github.com/The-Igor/retry-policy-service.git at 1.0.1 (0.38s)
Creating working copy for https://github.com/The-Igor/retry-policy-service.git
Working copy of https://github.com/The-Igor/retry-policy-service.git resolved at 1.0.1
Building for debugging...
[0/3] Write sources
[2/3] Write swift-version-24593BA9C3E375BF.txt
[4/7] Compiling retry_policy_service Strategy.swift
[5/7] Compiling retry_policy_service RetryService.swift
[6/7] Emitting module retry_policy_service
[7/7] Compiling retry_policy_service DispatchTimeInterval.swift
[9/29] Compiling async_http_client HttpMethod.swift
/host/spi-builder-workspace/Sources/async-http-client/proxy/http/error/Errors.swift:13:27: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
case status(Int?, URLResponse, Data?)
^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
^
/host/spi-builder-workspace/Sources/async-http-client/proxy/http/protocol/ITaskDelegate.swift:11:32: error: cannot find type 'URLSessionTaskDelegate' in scope
public protocol ITaskDelegate: URLSessionTaskDelegate{
^~~~~~~~~~~~~~~~~~~~~~
[10/29] Compiling async_http_client Errors.swift
/host/spi-builder-workspace/Sources/async-http-client/proxy/http/error/Errors.swift:13:27: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
case status(Int?, URLResponse, Data?)
^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
^
/host/spi-builder-workspace/Sources/async-http-client/proxy/http/protocol/ITaskDelegate.swift:11:32: error: cannot find type 'URLSessionTaskDelegate' in scope
public protocol ITaskDelegate: URLSessionTaskDelegate{
^~~~~~~~~~~~~~~~~~~~~~
[11/29] Compiling async_http_client ITaskDelegate.swift
/host/spi-builder-workspace/Sources/async-http-client/proxy/http/error/Errors.swift:13:27: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
case status(Int?, URLResponse, Data?)
^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
^
/host/spi-builder-workspace/Sources/async-http-client/proxy/http/protocol/ITaskDelegate.swift:11:32: error: cannot find type 'URLSessionTaskDelegate' in scope
public protocol ITaskDelegate: URLSessionTaskDelegate{
^~~~~~~~~~~~~~~~~~~~~~
[12/31] Compiling async_http_client Configuration.swift
/host/spi-builder-workspace/Sources/async-http-client/proxy/http/Configuration.swift:23:32: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
public var getSession: URLSession {
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/host/spi-builder-workspace/Sources/async-http-client/proxy/http/Configuration.swift:40:30: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
public let session : URLSession
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/host/spi-builder-workspace/Sources/async-http-client/proxy/http/Configuration.swift:56:23: error: cannot find type 'URLSessionDelegate' in scope
delegate: URLSessionDelegate? = nil,
^~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/async-http-client/proxy/http/Configuration.swift:55:35: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
sessionConfiguration: URLSessionConfiguration,
^~~~~~~~~~~~~~~~~~~~~~~
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' has been explicitly marked unavailable here
public typealias URLSessionConfiguration = AnyObject
^
/host/spi-builder-workspace/Sources/async-http-client/proxy/http/Configuration.swift:74:23: 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-http-client/proxy/http/Configuration.swift:105:20: error: cannot find type 'URLSessionDelegate' in scope
delegate: URLSessionDelegate? = nil,
^~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/async-http-client/proxy/http/Configuration.swift:104:32: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
sessionConfiguration: URLSessionConfiguration,
^~~~~~~~~~~~~~~~~~~~~~~
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' has been explicitly marked unavailable here
public typealias URLSessionConfiguration = AnyObject
^
/host/spi-builder-workspace/Sources/async-http-client/proxy/http/Configuration.swift:62:28: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
self.session = URLSession(configuration: sessionConfiguration, delegate: delegate, delegateQueue: queue)
^~~~~~~~~~
/host/spi-builder-workspace/Sources/async-http-client/proxy/http/Configuration.swift:94:35: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
self.session = URLSession.shared
~~~~~~~~~~ ^~~~~~
/host/spi-builder-workspace/Sources/async-http-client/proxy/http/Configuration.swift:111:24: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
self.session = URLSession(configuration: sessionConfiguration, delegate: delegate, delegateQueue: queue)
^~~~~~~~~~
/host/spi-builder-workspace/Sources/async-http-client/proxy/http/Direct.swift:28:34: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
) async throws -> (Data, URLResponse){
^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
^
/host/spi-builder-workspace/Sources/async-http-client/proxy/http/Direct.swift:52:34: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
) async throws -> (Data, URLResponse){
^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
^
/host/spi-builder-workspace/Sources/async-http-client/proxy/http/Direct.swift:76:34: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
) async throws -> (Data, URLResponse){
^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
^
/host/spi-builder-workspace/Sources/async-http-client/proxy/http/Direct.swift:99:34: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
) async throws -> (Data, URLResponse){
^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
^
/host/spi-builder-workspace/Sources/async-http-client/proxy/helper/RequestHelper.swift:26:13: error: cannot find type 'URLRequest' in scope
) throws -> URLRequest {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/async-http-client/proxy/helper/RequestHelper.swift:64:13: error: cannot find type 'URLRequest' in scope
) throws -> URLRequest {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/async-http-client/proxy/helper/SendHelper.swift:16:20: error: cannot find type 'URLRequest' in scope
with request : URLRequest,
^~~~~~~~~~
[13/31] Compiling async_http_client Direct.swift
/host/spi-builder-workspace/Sources/async-http-client/proxy/http/Configuration.swift:23:32: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
public var getSession: URLSession {
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/host/spi-builder-workspace/Sources/async-http-client/proxy/http/Configuration.swift:40:30: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
public let session : URLSession
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/host/spi-builder-workspace/Sources/async-http-client/proxy/http/Configuration.swift:56:23: error: cannot find type 'URLSessionDelegate' in scope
delegate: URLSessionDelegate? = nil,
^~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/async-http-client/proxy/http/Configuration.swift:55:35: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
sessionConfiguration: URLSessionConfiguration,
^~~~~~~~~~~~~~~~~~~~~~~
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' has been explicitly marked unavailable here
public typealias URLSessionConfiguration = AnyObject
^
/host/spi-builder-workspace/Sources/async-http-client/proxy/http/Configuration.swift:74:23: 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-http-client/proxy/http/Configuration.swift:105:20: error: cannot find type 'URLSessionDelegate' in scope
delegate: URLSessionDelegate? = nil,
^~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/async-http-client/proxy/http/Configuration.swift:104:32: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
sessionConfiguration: URLSessionConfiguration,
^~~~~~~~~~~~~~~~~~~~~~~
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' has been explicitly marked unavailable here
public typealias URLSessionConfiguration = AnyObject
^
/host/spi-builder-workspace/Sources/async-http-client/proxy/http/Configuration.swift:62:28: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
self.session = URLSession(configuration: sessionConfiguration, delegate: delegate, delegateQueue: queue)
^~~~~~~~~~
/host/spi-builder-workspace/Sources/async-http-client/proxy/http/Configuration.swift:94:35: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
self.session = URLSession.shared
~~~~~~~~~~ ^~~~~~
/host/spi-builder-workspace/Sources/async-http-client/proxy/http/Configuration.swift:111:24: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
self.session = URLSession(configuration: sessionConfiguration, delegate: delegate, delegateQueue: queue)
^~~~~~~~~~
/host/spi-builder-workspace/Sources/async-http-client/proxy/http/Direct.swift:28:34: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
) async throws -> (Data, URLResponse){
^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
^
/host/spi-builder-workspace/Sources/async-http-client/proxy/http/Direct.swift:52:34: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
) async throws -> (Data, URLResponse){
^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
^
/host/spi-builder-workspace/Sources/async-http-client/proxy/http/Direct.swift:76:34: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
) async throws -> (Data, URLResponse){
^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
^
/host/spi-builder-workspace/Sources/async-http-client/proxy/http/Direct.swift:99:34: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
) async throws -> (Data, URLResponse){
^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
^
/host/spi-builder-workspace/Sources/async-http-client/proxy/helper/RequestHelper.swift:26:13: error: cannot find type 'URLRequest' in scope
) throws -> URLRequest {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/async-http-client/proxy/helper/RequestHelper.swift:64:13: error: cannot find type 'URLRequest' in scope
) throws -> URLRequest {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/async-http-client/proxy/helper/SendHelper.swift:16:20: error: cannot find type 'URLRequest' in scope
with request : URLRequest,
^~~~~~~~~~
[14/31] Compiling async_http_client Http.swift
/host/spi-builder-workspace/Sources/async-http-client/proxy/http/Configuration.swift:23:32: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
public var getSession: URLSession {
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/host/spi-builder-workspace/Sources/async-http-client/proxy/http/Configuration.swift:40:30: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
public let session : URLSession
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/host/spi-builder-workspace/Sources/async-http-client/proxy/http/Configuration.swift:56:23: error: cannot find type 'URLSessionDelegate' in scope
delegate: URLSessionDelegate? = nil,
^~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/async-http-client/proxy/http/Configuration.swift:55:35: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
sessionConfiguration: URLSessionConfiguration,
^~~~~~~~~~~~~~~~~~~~~~~
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' has been explicitly marked unavailable here
public typealias URLSessionConfiguration = AnyObject
^
/host/spi-builder-workspace/Sources/async-http-client/proxy/http/Configuration.swift:74:23: 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-http-client/proxy/http/Configuration.swift:105:20: error: cannot find type 'URLSessionDelegate' in scope
delegate: URLSessionDelegate? = nil,
^~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/async-http-client/proxy/http/Configuration.swift:104:32: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
sessionConfiguration: URLSessionConfiguration,
^~~~~~~~~~~~~~~~~~~~~~~
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' has been explicitly marked unavailable here
public typealias URLSessionConfiguration = AnyObject
^
/host/spi-builder-workspace/Sources/async-http-client/proxy/http/Configuration.swift:62:28: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
self.session = URLSession(configuration: sessionConfiguration, delegate: delegate, delegateQueue: queue)
^~~~~~~~~~
/host/spi-builder-workspace/Sources/async-http-client/proxy/http/Configuration.swift:94:35: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
self.session = URLSession.shared
~~~~~~~~~~ ^~~~~~
/host/spi-builder-workspace/Sources/async-http-client/proxy/http/Configuration.swift:111:24: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
self.session = URLSession(configuration: sessionConfiguration, delegate: delegate, delegateQueue: queue)
^~~~~~~~~~
/host/spi-builder-workspace/Sources/async-http-client/proxy/http/Direct.swift:28:34: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
) async throws -> (Data, URLResponse){
^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
^
/host/spi-builder-workspace/Sources/async-http-client/proxy/http/Direct.swift:52:34: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
) async throws -> (Data, URLResponse){
^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
^
/host/spi-builder-workspace/Sources/async-http-client/proxy/http/Direct.swift:76:34: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
) async throws -> (Data, URLResponse){
^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
^
/host/spi-builder-workspace/Sources/async-http-client/proxy/http/Direct.swift:99:34: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
) async throws -> (Data, URLResponse){
^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
^
/host/spi-builder-workspace/Sources/async-http-client/proxy/helper/RequestHelper.swift:26:13: error: cannot find type 'URLRequest' in scope
) throws -> URLRequest {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/async-http-client/proxy/helper/RequestHelper.swift:64:13: error: cannot find type 'URLRequest' in scope
) throws -> URLRequest {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/async-http-client/proxy/helper/SendHelper.swift:16:20: error: cannot find type 'URLRequest' in scope
with request : URLRequest,
^~~~~~~~~~
[15/31] Compiling async_http_client IConfiguration.swift
[16/31] Compiling async_http_client IProxy.swift
[17/31] Compiling async_http_client IResponse.swift
[18/31] Compiling async_http_client RequestHelper.swift
/host/spi-builder-workspace/Sources/async-http-client/proxy/helper/RequestHelper.swift:26:13: error: cannot find type 'URLRequest' in scope
) throws -> URLRequest {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/async-http-client/proxy/helper/RequestHelper.swift:64:13: error: cannot find type 'URLRequest' in scope
) throws -> URLRequest {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/async-http-client/proxy/helper/RequestHelper.swift:30:19: error: cannot find 'URLRequest' in scope
var request = URLRequest(url: url)
^~~~~~~~~~
/host/spi-builder-workspace/Sources/async-http-client/proxy/helper/RequestHelper.swift:66:19: error: cannot find 'URLRequest' in scope
var request = URLRequest(url: url)
^~~~~~~~~~
/host/spi-builder-workspace/Sources/async-http-client/proxy/helper/SendHelper.swift:16:20: error: cannot find type 'URLRequest' in scope
with request : URLRequest,
^~~~~~~~~~
/host/spi-builder-workspace/Sources/async-http-client/proxy/helper/SendHelper.swift:19:17: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
_ session : URLSession = .shared
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/host/spi-builder-workspace/Sources/async-http-client/proxy/helper/SendHelper.swift:20:26: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
) async throws -> (Data, URLResponse)
^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
^
/host/spi-builder-workspace/Sources/async-http-client/proxy/helper/SendHelper.swift:19:31: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
_ session : URLSession = .shared
~^~~~~~
/host/spi-builder-workspace/Sources/async-http-client/proxy/helper/SendHelper.swift:26:38: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
return try await session.data(for: request, delegate: taskDelegate)
~~~~~~~ ^~~~
/host/spi-builder-workspace/Sources/async-http-client/proxy/helper/SendHelper.swift:41:30: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
return try await session.data(for: request, delegate: taskDelegate)
~~~~~~~ ^~~~
[19/31] Compiling async_http_client SendHelper.swift
/host/spi-builder-workspace/Sources/async-http-client/proxy/helper/RequestHelper.swift:26:13: error: cannot find type 'URLRequest' in scope
) throws -> URLRequest {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/async-http-client/proxy/helper/RequestHelper.swift:64:13: error: cannot find type 'URLRequest' in scope
) throws -> URLRequest {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/async-http-client/proxy/helper/RequestHelper.swift:30:19: error: cannot find 'URLRequest' in scope
var request = URLRequest(url: url)
^~~~~~~~~~
/host/spi-builder-workspace/Sources/async-http-client/proxy/helper/RequestHelper.swift:66:19: error: cannot find 'URLRequest' in scope
var request = URLRequest(url: url)
^~~~~~~~~~
/host/spi-builder-workspace/Sources/async-http-client/proxy/helper/SendHelper.swift:16:20: error: cannot find type 'URLRequest' in scope
with request : URLRequest,
^~~~~~~~~~
/host/spi-builder-workspace/Sources/async-http-client/proxy/helper/SendHelper.swift:19:17: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
_ session : URLSession = .shared
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/host/spi-builder-workspace/Sources/async-http-client/proxy/helper/SendHelper.swift:20:26: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
) async throws -> (Data, URLResponse)
^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
^
/host/spi-builder-workspace/Sources/async-http-client/proxy/helper/SendHelper.swift:19:31: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
_ session : URLSession = .shared
~^~~~~~
/host/spi-builder-workspace/Sources/async-http-client/proxy/helper/SendHelper.swift:26:38: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
return try await session.data(for: request, delegate: taskDelegate)
~~~~~~~ ^~~~
/host/spi-builder-workspace/Sources/async-http-client/proxy/helper/SendHelper.swift:41:30: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
return try await session.data(for: request, delegate: taskDelegate)
~~~~~~~ ^~~~
[20/31] Compiling async_http_client UrlHelper.swift
/host/spi-builder-workspace/Sources/async-http-client/proxy/helper/RequestHelper.swift:26:13: error: cannot find type 'URLRequest' in scope
) throws -> URLRequest {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/async-http-client/proxy/helper/RequestHelper.swift:64:13: error: cannot find type 'URLRequest' in scope
) throws -> URLRequest {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/async-http-client/proxy/helper/RequestHelper.swift:30:19: error: cannot find 'URLRequest' in scope
var request = URLRequest(url: url)
^~~~~~~~~~
/host/spi-builder-workspace/Sources/async-http-client/proxy/helper/RequestHelper.swift:66:19: error: cannot find 'URLRequest' in scope
var request = URLRequest(url: url)
^~~~~~~~~~
/host/spi-builder-workspace/Sources/async-http-client/proxy/helper/SendHelper.swift:16:20: error: cannot find type 'URLRequest' in scope
with request : URLRequest,
^~~~~~~~~~
/host/spi-builder-workspace/Sources/async-http-client/proxy/helper/SendHelper.swift:19:17: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
_ session : URLSession = .shared
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/host/spi-builder-workspace/Sources/async-http-client/proxy/helper/SendHelper.swift:20:26: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
) async throws -> (Data, URLResponse)
^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
^
/host/spi-builder-workspace/Sources/async-http-client/proxy/helper/SendHelper.swift:19:31: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
_ session : URLSession = .shared
~^~~~~~
/host/spi-builder-workspace/Sources/async-http-client/proxy/helper/SendHelper.swift:26:38: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
return try await session.data(for: request, delegate: taskDelegate)
~~~~~~~ ^~~~
/host/spi-builder-workspace/Sources/async-http-client/proxy/helper/SendHelper.swift:41:30: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
return try await session.data(for: request, delegate: taskDelegate)
~~~~~~~ ^~~~
[21/31] Compiling async_http_client JsonReader.swift
[22/31] Compiling async_http_client Validate.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[23/31] Emitting module async_http_client
/host/spi-builder-workspace/Sources/async-http-client/protocol/validate/IValidate.swift:17:32: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
func validate(_ response : URLResponse, with data : Data?) throws
^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
^
/host/spi-builder-workspace/Sources/async-http-client/proxy/helper/RequestHelper.swift:26:13: error: cannot find type 'URLRequest' in scope
) throws -> URLRequest {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/async-http-client/proxy/helper/RequestHelper.swift:64:13: error: cannot find type 'URLRequest' in scope
) throws -> URLRequest {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/async-http-client/proxy/helper/SendHelper.swift:16:20: error: cannot find type 'URLRequest' in scope
with request : URLRequest,
^~~~~~~~~~
/host/spi-builder-workspace/Sources/async-http-client/proxy/helper/SendHelper.swift:19:17: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
_ session : URLSession = .shared
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/host/spi-builder-workspace/Sources/async-http-client/proxy/helper/SendHelper.swift:20:26: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
) async throws -> (Data, URLResponse)
^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
^
/host/spi-builder-workspace/Sources/async-http-client/proxy/helper/SendHelper.swift:19:31: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
_ session : URLSession = .shared
~^~~~~~
/host/spi-builder-workspace/Sources/async-http-client/proxy/http/Configuration.swift:23:32: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
public var getSession: URLSession {
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/host/spi-builder-workspace/Sources/async-http-client/proxy/http/Configuration.swift:40:30: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
public let session : URLSession
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/host/spi-builder-workspace/Sources/async-http-client/proxy/http/Configuration.swift:56:23: error: cannot find type 'URLSessionDelegate' in scope
delegate: URLSessionDelegate? = nil,
^~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/async-http-client/proxy/http/Configuration.swift:55:35: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
sessionConfiguration: URLSessionConfiguration,
^~~~~~~~~~~~~~~~~~~~~~~
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' has been explicitly marked unavailable here
public typealias URLSessionConfiguration = AnyObject
^
/host/spi-builder-workspace/Sources/async-http-client/proxy/http/Configuration.swift:74:23: 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-http-client/proxy/http/Configuration.swift:105:20: error: cannot find type 'URLSessionDelegate' in scope
delegate: URLSessionDelegate? = nil,
^~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/async-http-client/proxy/http/Configuration.swift:104:32: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
sessionConfiguration: URLSessionConfiguration,
^~~~~~~~~~~~~~~~~~~~~~~
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' has been explicitly marked unavailable here
public typealias URLSessionConfiguration = AnyObject
^
/host/spi-builder-workspace/Sources/async-http-client/proxy/http/Direct.swift:28:34: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
) async throws -> (Data, URLResponse){
^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
^
/host/spi-builder-workspace/Sources/async-http-client/proxy/http/Direct.swift:52:34: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
) async throws -> (Data, URLResponse){
^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
^
/host/spi-builder-workspace/Sources/async-http-client/proxy/http/Direct.swift:76:34: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
) async throws -> (Data, URLResponse){
^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
^
/host/spi-builder-workspace/Sources/async-http-client/proxy/http/Direct.swift:99:34: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
) async throws -> (Data, URLResponse){
^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
^
/host/spi-builder-workspace/Sources/async-http-client/proxy/http/Proxy.swift:176:28: error: cannot find type 'URLRequest' in scope
with request : URLRequest,
^~~~~~~~~~
/host/spi-builder-workspace/Sources/async-http-client/proxy/http/Proxy.swift:208:71: error: cannot find type 'URLRequest' in scope
fileprivate func hasNotContentType(_ session : URLSession,_ request : URLRequest) -> Bool{
^~~~~~~~~~
/host/spi-builder-workspace/Sources/async-http-client/proxy/http/Proxy.swift:208:48: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
fileprivate func hasNotContentType(_ session : URLSession,_ request : URLRequest) -> Bool{
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/host/spi-builder-workspace/Sources/async-http-client/proxy/http/Response.swift:30:33: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
public let urlResponse: URLResponse
^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
^
/host/spi-builder-workspace/Sources/async-http-client/proxy/http/Response.swift:33:32: error: cannot find type 'URLRequest' in scope
public let urlRequest: URLRequest
^~~~~~~~~~
/host/spi-builder-workspace/Sources/async-http-client/proxy/http/Response.swift:48:27: error: cannot find type 'URLRequest' in scope
_ urlRequest: URLRequest)
^~~~~~~~~~
/host/spi-builder-workspace/Sources/async-http-client/proxy/http/Response.swift:47:29: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
_ urlRresponse: URLResponse,
^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
^
/host/spi-builder-workspace/Sources/async-http-client/proxy/http/Response.swift:30:20: warning: stored property 'urlResponse' of 'Sendable'-conforming generic struct 'Response' has non-sendable type 'URLResponse' (aka 'AnyObject')
public let urlResponse: URLResponse
^
/host/spi-builder-workspace/Sources/async-http-client/proxy/http/Response.swift:33:20: warning: stored property 'urlRequest' of 'Sendable'-conforming generic struct 'Response' has non-sendable type '<<error type>>'
public let urlRequest: URLRequest
^
/host/spi-builder-workspace/Sources/async-http-client/proxy/http/error/Errors.swift:13:27: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
case status(Int?, URLResponse, Data?)
^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
^
/host/spi-builder-workspace/Sources/async-http-client/proxy/http/protocol/ITaskDelegate.swift:11:32: error: cannot find type 'URLSessionTaskDelegate' in scope
public protocol ITaskDelegate: URLSessionTaskDelegate{
^~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/async-http-client/validate/type/Status.swift:18:53: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
public typealias ErrorFn = @Sendable (Int, URLResponse, Data?) -> Error?
^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
^
/host/spi-builder-workspace/Sources/async-http-client/validate/type/Status.swift:54:32: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
func validate(_ response : URLResponse, with data : Data?) throws{
^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
^
/host/spi-builder-workspace/Sources/async-http-client/validate/type/Status.swift:83:18: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
_ response : URLResponse,
^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
^
/host/spi-builder-workspace/Sources/async-http-client/validate/type/Status.swift:100:18: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
_ response : URLResponse,
^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
^
/host/spi-builder-workspace/Sources/async-http-client/validate/type/Status.swift:112:34: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
_ status: Int?, _ response : URLResponse, with data : Data?
^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
^
[24/31] Compiling async_http_client Proxy+.swift
/host/spi-builder-workspace/Sources/async-http-client/proxy/http/Configuration.swift:56:23: error: cannot find type 'URLSessionDelegate' in scope
delegate: URLSessionDelegate? = nil,
^~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/async-http-client/proxy/http/Configuration.swift:105:20: error: cannot find type 'URLSessionDelegate' in scope
delegate: URLSessionDelegate? = nil,
^~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/async-http-client/proxy/http/Proxy.swift:176:28: error: cannot find type 'URLRequest' in scope
with request : URLRequest,
^~~~~~~~~~
/host/spi-builder-workspace/Sources/async-http-client/proxy/http/Proxy.swift:208:71: error: cannot find type 'URLRequest' in scope
fileprivate func hasNotContentType(_ session : URLSession,_ request : URLRequest) -> Bool{
^~~~~~~~~~
/host/spi-builder-workspace/Sources/async-http-client/proxy/http/Proxy.swift:208:48: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
fileprivate func hasNotContentType(_ session : URLSession,_ request : URLRequest) -> Bool{
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/host/spi-builder-workspace/Sources/async-http-client/proxy/helper/RequestHelper.swift:26:13: error: cannot find type 'URLRequest' in scope
) throws -> URLRequest {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/async-http-client/proxy/helper/RequestHelper.swift:64:13: error: cannot find type 'URLRequest' in scope
) throws -> URLRequest {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/async-http-client/proxy/helper/SendHelper.swift:16:20: error: cannot find type 'URLRequest' in scope
with request : URLRequest,
^~~~~~~~~~
/host/spi-builder-workspace/Sources/async-http-client/proxy/http/Response.swift:48:27: error: cannot find type 'URLRequest' in scope
_ urlRequest: URLRequest)
^~~~~~~~~~
/host/spi-builder-workspace/Sources/async-http-client/proxy/http/Proxy.swift:210:13: error: value of type 'URLSession' (aka 'AnyObject') has no member 'configuration'
session.configuration.httpAdditionalHeaders?["Content-Type"] == nil
~~~~~~~ ^~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/async-http-client/proxy/http/Response.swift:30:33: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
public let urlResponse: URLResponse
^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
^
/host/spi-builder-workspace/Sources/async-http-client/proxy/http/Response.swift:33:32: error: cannot find type 'URLRequest' in scope
public let urlRequest: URLRequest
^~~~~~~~~~
/host/spi-builder-workspace/Sources/async-http-client/proxy/http/Response.swift:47:29: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
_ urlRresponse: URLResponse,
^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
^
/host/spi-builder-workspace/Sources/async-http-client/proxy/http/Response.swift:30:20: warning: stored property 'urlResponse' of 'Sendable'-conforming generic struct 'Response' has non-sendable type 'URLResponse' (aka 'AnyObject')
public let urlResponse: URLResponse
^
/host/spi-builder-workspace/Sources/async-http-client/proxy/http/Response.swift:33:20: warning: stored property 'urlRequest' of 'Sendable'-conforming generic struct 'Response' has non-sendable type '<<error type>>'
public let urlRequest: URLRequest
^
/host/spi-builder-workspace/Sources/async-http-client/proxy/http/Response.swift:18:26: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
(urlResponse as? HTTPURLResponse)?.statusCode
^
/host/spi-builder-workspace/Sources/async-http-client/proxy/http/Response.swift:18:48: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
(urlResponse as? HTTPURLResponse)?.statusCode
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^~~~~~~~~~
[25/31] Compiling async_http_client Proxy.swift
/host/spi-builder-workspace/Sources/async-http-client/proxy/http/Configuration.swift:56:23: error: cannot find type 'URLSessionDelegate' in scope
delegate: URLSessionDelegate? = nil,
^~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/async-http-client/proxy/http/Configuration.swift:105:20: error: cannot find type 'URLSessionDelegate' in scope
delegate: URLSessionDelegate? = nil,
^~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/async-http-client/proxy/http/Proxy.swift:176:28: error: cannot find type 'URLRequest' in scope
with request : URLRequest,
^~~~~~~~~~
/host/spi-builder-workspace/Sources/async-http-client/proxy/http/Proxy.swift:208:71: error: cannot find type 'URLRequest' in scope
fileprivate func hasNotContentType(_ session : URLSession,_ request : URLRequest) -> Bool{
^~~~~~~~~~
/host/spi-builder-workspace/Sources/async-http-client/proxy/http/Proxy.swift:208:48: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
fileprivate func hasNotContentType(_ session : URLSession,_ request : URLRequest) -> Bool{
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/host/spi-builder-workspace/Sources/async-http-client/proxy/helper/RequestHelper.swift:26:13: error: cannot find type 'URLRequest' in scope
) throws -> URLRequest {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/async-http-client/proxy/helper/RequestHelper.swift:64:13: error: cannot find type 'URLRequest' in scope
) throws -> URLRequest {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/async-http-client/proxy/helper/SendHelper.swift:16:20: error: cannot find type 'URLRequest' in scope
with request : URLRequest,
^~~~~~~~~~
/host/spi-builder-workspace/Sources/async-http-client/proxy/http/Response.swift:48:27: error: cannot find type 'URLRequest' in scope
_ urlRequest: URLRequest)
^~~~~~~~~~
/host/spi-builder-workspace/Sources/async-http-client/proxy/http/Proxy.swift:210:13: error: value of type 'URLSession' (aka 'AnyObject') has no member 'configuration'
session.configuration.httpAdditionalHeaders?["Content-Type"] == nil
~~~~~~~ ^~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/async-http-client/proxy/http/Response.swift:30:33: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
public let urlResponse: URLResponse
^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
^
/host/spi-builder-workspace/Sources/async-http-client/proxy/http/Response.swift:33:32: error: cannot find type 'URLRequest' in scope
public let urlRequest: URLRequest
^~~~~~~~~~
/host/spi-builder-workspace/Sources/async-http-client/proxy/http/Response.swift:47:29: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
_ urlRresponse: URLResponse,
^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
^
/host/spi-builder-workspace/Sources/async-http-client/proxy/http/Response.swift:30:20: warning: stored property 'urlResponse' of 'Sendable'-conforming generic struct 'Response' has non-sendable type 'URLResponse' (aka 'AnyObject')
public let urlResponse: URLResponse
^
/host/spi-builder-workspace/Sources/async-http-client/proxy/http/Response.swift:33:20: warning: stored property 'urlRequest' of 'Sendable'-conforming generic struct 'Response' has non-sendable type '<<error type>>'
public let urlRequest: URLRequest
^
/host/spi-builder-workspace/Sources/async-http-client/proxy/http/Response.swift:18:26: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
(urlResponse as? HTTPURLResponse)?.statusCode
^
/host/spi-builder-workspace/Sources/async-http-client/proxy/http/Response.swift:18:48: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
(urlResponse as? HTTPURLResponse)?.statusCode
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^~~~~~~~~~
[26/31] Compiling async_http_client Response.swift
/host/spi-builder-workspace/Sources/async-http-client/proxy/http/Configuration.swift:56:23: error: cannot find type 'URLSessionDelegate' in scope
delegate: URLSessionDelegate? = nil,
^~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/async-http-client/proxy/http/Configuration.swift:105:20: error: cannot find type 'URLSessionDelegate' in scope
delegate: URLSessionDelegate? = nil,
^~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/async-http-client/proxy/http/Proxy.swift:176:28: error: cannot find type 'URLRequest' in scope
with request : URLRequest,
^~~~~~~~~~
/host/spi-builder-workspace/Sources/async-http-client/proxy/http/Proxy.swift:208:71: error: cannot find type 'URLRequest' in scope
fileprivate func hasNotContentType(_ session : URLSession,_ request : URLRequest) -> Bool{
^~~~~~~~~~
/host/spi-builder-workspace/Sources/async-http-client/proxy/http/Proxy.swift:208:48: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
fileprivate func hasNotContentType(_ session : URLSession,_ request : URLRequest) -> Bool{
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/host/spi-builder-workspace/Sources/async-http-client/proxy/helper/RequestHelper.swift:26:13: error: cannot find type 'URLRequest' in scope
) throws -> URLRequest {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/async-http-client/proxy/helper/RequestHelper.swift:64:13: error: cannot find type 'URLRequest' in scope
) throws -> URLRequest {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/async-http-client/proxy/helper/SendHelper.swift:16:20: error: cannot find type 'URLRequest' in scope
with request : URLRequest,
^~~~~~~~~~
/host/spi-builder-workspace/Sources/async-http-client/proxy/http/Response.swift:48:27: error: cannot find type 'URLRequest' in scope
_ urlRequest: URLRequest)
^~~~~~~~~~
/host/spi-builder-workspace/Sources/async-http-client/proxy/http/Proxy.swift:210:13: error: value of type 'URLSession' (aka 'AnyObject') has no member 'configuration'
session.configuration.httpAdditionalHeaders?["Content-Type"] == nil
~~~~~~~ ^~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/async-http-client/proxy/http/Response.swift:30:33: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
public let urlResponse: URLResponse
^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
^
/host/spi-builder-workspace/Sources/async-http-client/proxy/http/Response.swift:33:32: error: cannot find type 'URLRequest' in scope
public let urlRequest: URLRequest
^~~~~~~~~~
/host/spi-builder-workspace/Sources/async-http-client/proxy/http/Response.swift:47:29: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
_ urlRresponse: URLResponse,
^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
^
/host/spi-builder-workspace/Sources/async-http-client/proxy/http/Response.swift:30:20: warning: stored property 'urlResponse' of 'Sendable'-conforming generic struct 'Response' has non-sendable type 'URLResponse' (aka 'AnyObject')
public let urlResponse: URLResponse
^
/host/spi-builder-workspace/Sources/async-http-client/proxy/http/Response.swift:33:20: warning: stored property 'urlRequest' of 'Sendable'-conforming generic struct 'Response' has non-sendable type '<<error type>>'
public let urlRequest: URLRequest
^
/host/spi-builder-workspace/Sources/async-http-client/proxy/http/Response.swift:18:26: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
(urlResponse as? HTTPURLResponse)?.statusCode
^
/host/spi-builder-workspace/Sources/async-http-client/proxy/http/Response.swift:18:48: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
(urlResponse as? HTTPURLResponse)?.statusCode
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^~~~~~~~~~
[27/31] Compiling async_http_client IReader.swift
/host/spi-builder-workspace/Sources/async-http-client/protocol/validate/IValidate.swift:17:32: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
func validate(_ response : URLResponse, with data : Data?) throws
^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
^
[28/31] Compiling async_http_client IWriter.swift
/host/spi-builder-workspace/Sources/async-http-client/protocol/validate/IValidate.swift:17:32: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
func validate(_ response : URLResponse, with data : Data?) throws
^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
^
[29/31] Compiling async_http_client IValidate.swift
/host/spi-builder-workspace/Sources/async-http-client/protocol/validate/IValidate.swift:17:32: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
func validate(_ response : URLResponse, with data : Data?) throws
^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
^
[30/31] Compiling async_http_client Status.swift
/host/spi-builder-workspace/Sources/async-http-client/validate/type/Status.swift:18:53: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
public typealias ErrorFn = @Sendable (Int, URLResponse, Data?) -> Error?
^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
^
/host/spi-builder-workspace/Sources/async-http-client/validate/type/Status.swift:54:32: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
func validate(_ response : URLResponse, with data : Data?) throws{
^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
^
/host/spi-builder-workspace/Sources/async-http-client/validate/type/Status.swift:83:18: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
_ response : URLResponse,
^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
^
/host/spi-builder-workspace/Sources/async-http-client/validate/type/Status.swift:100:18: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
_ response : URLResponse,
^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
^
/host/spi-builder-workspace/Sources/async-http-client/validate/type/Status.swift:112:34: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
_ status: Int?, _ response : URLResponse, with data : Data?
^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
^
/host/spi-builder-workspace/Sources/async-http-client/validate/type/Status.swift:56:38: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
guard let status = (response as? HTTPURLResponse)?.statusCode else{ return try err(nil, response, with: data) }
^
/host/spi-builder-workspace/Sources/async-http-client/validate/type/Status.swift:56:60: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
guard let status = (response as? HTTPURLResponse)?.statusCode else{ return try err(nil, response, with: data) }
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^~~~~~~~~~
[31/31] Compiling async_http_client JsonWriter.swift
/host/spi-builder-workspace/Sources/async-http-client/validate/type/Status.swift:18:53: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
public typealias ErrorFn = @Sendable (Int, URLResponse, Data?) -> Error?
^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
^
/host/spi-builder-workspace/Sources/async-http-client/validate/type/Status.swift:54:32: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
func validate(_ response : URLResponse, with data : Data?) throws{
^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
^
/host/spi-builder-workspace/Sources/async-http-client/validate/type/Status.swift:83:18: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
_ response : URLResponse,
^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
^
/host/spi-builder-workspace/Sources/async-http-client/validate/type/Status.swift:100:18: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
_ response : URLResponse,
^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
^
/host/spi-builder-workspace/Sources/async-http-client/validate/type/Status.swift:112:34: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
_ status: Int?, _ response : URLResponse, with data : Data?
^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
^
/host/spi-builder-workspace/Sources/async-http-client/validate/type/Status.swift:56:38: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
guard let status = (response as? HTTPURLResponse)?.statusCode else{ return try err(nil, response, with: data) }
^
/host/spi-builder-workspace/Sources/async-http-client/validate/type/Status.swift:56:60: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
guard let status = (response as? HTTPURLResponse)?.statusCode else{ return try err(nil, response, with: data) }
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^~~~~~~~~~
error: fatalError
BUILD FAILURE 5.10 linux