Build Information
Failed to build openai-async-image-swiftui with Swift 5.10 for Linux.
Build Command
bash -c docker run --rm -v "checkouts-4606859-0":/host -w "$workDir" registry.gitlab.com/finestructure/spi-images:basic-5.10-latest swift build 2>&1
Build Log
========================================
RunAll
========================================
Builder version: 4.29.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/The-Igor/openai-async-image-swiftui.git
Reference: v1.0.0
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/The-Igor/openai-async-image-swiftui
* tag v1.0.0 -> FETCH_HEAD
HEAD is now at 63843db Update README.md
Cloned https://github.com/The-Igor/openai-async-image-swiftui.git
Revision (git rev-parse @):
63843db27cc9938b1aae11f21a0362fdeab876bb
SUCCESS checkout https://github.com/The-Igor/openai-async-image-swiftui.git at v1.0.0
========================================
Build
========================================
Selected platform: linux
Swift version: 5.10
Building package at path: $workDir
https://github.com/The-Igor/openai-async-image-swiftui.git
Running build ...
bash -c docker run --rm -v "checkouts-4606859-0":/host -w "$workDir" registry.gitlab.com/finestructure/spi-images:basic-5.10-latest swift build 2>&1
Fetching https://github.com/The-Igor/async-http-client.git
[1/864] Fetching async-http-client
Fetched https://github.com/The-Igor/async-http-client.git from cache (0.21s)
Creating working copy for https://github.com/The-Igor/async-http-client.git
Working copy of https://github.com/The-Igor/async-http-client.git resolved at main (9257611)
Building for debugging...
[0/3] Write sources
[2/3] Write swift-version-24593BA9C3E375BF.txt
[4/17] Compiling async_http_client JsonReader.swift
[5/18] Compiling async_http_client JsonWriter.swift
[6/18] Compiling async_http_client HttpMethod.swift
/host/spi-builder-workspace/.build/checkouts/async-http-client/Sources/async-http-client/proxy/http/protocol/ITaskDelegate.swift:11:32: error: cannot find type 'URLSessionTaskDelegate' in scope
public protocol ITaskDelegate: URLSessionTaskDelegate{
^~~~~~~~~~~~~~~~~~~~~~
[7/18] Compiling async_http_client ITaskDelegate.swift
/host/spi-builder-workspace/.build/checkouts/async-http-client/Sources/async-http-client/proxy/http/protocol/ITaskDelegate.swift:11:32: error: cannot find type 'URLSessionTaskDelegate' in scope
public protocol ITaskDelegate: URLSessionTaskDelegate{
^~~~~~~~~~~~~~~~~~~~~~
[8/18] Compiling async_http_client IConfiguration.swift
[9/18] Compiling async_http_client IProxy.swift
[10/18] Compiling async_http_client Http.swift
/host/spi-builder-workspace/.build/checkouts/async-http-client/Sources/async-http-client/proxy/http/Configuration.swift:57:23: error: cannot find type 'URLSessionDelegate' in scope
delegate: URLSessionDelegate? = nil,
^~~~~~~~~~~~~~~~~~
[11/18] Compiling async_http_client Proxy+.swift
/host/spi-builder-workspace/.build/checkouts/async-http-client/Sources/async-http-client/proxy/http/Configuration.swift:57:23: error: cannot find type 'URLSessionDelegate' in scope
delegate: URLSessionDelegate? = nil,
^~~~~~~~~~~~~~~~~~
[12/18] Compiling async_http_client Proxy.swift
/host/spi-builder-workspace/.build/checkouts/async-http-client/Sources/async-http-client/proxy/http/Proxy.swift:129:28: error: cannot find type 'URLRequest' in scope
with request : URLRequest,
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/async-http-client/Sources/async-http-client/proxy/http/Proxy.swift:156:24: error: cannot find type 'URLRequest' in scope
with request : URLRequest,
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/async-http-client/Sources/async-http-client/proxy/http/Proxy.swift:159:30: 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/.build/checkouts/async-http-client/Sources/async-http-client/proxy/http/Proxy.swift:225:17: error: cannot find type 'URLRequest' in scope
) throws -> URLRequest {
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/async-http-client/Sources/async-http-client/proxy/http/Proxy.swift:257:63: error: cannot find type 'URLRequest' in scope
func hasNotContentType(_ session : URLSession,_ request : URLRequest) -> Bool{
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/async-http-client/Sources/async-http-client/proxy/http/Proxy.swift:257:40: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
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/.build/checkouts/async-http-client/Sources/async-http-client/proxy/http/Proxy.swift:72:67: error: cannot infer contextual base in reference to member 'post'
let request = try buildURLRequest(for: path, method: .post, query: query, body: body, headers: headers)
~^~~~
/host/spi-builder-workspace/.build/checkouts/async-http-client/Sources/async-http-client/proxy/http/Proxy.swift:96:67: error: cannot infer contextual base in reference to member 'put'
let request = try buildURLRequest(for: path, method: .put, query: query, body: body, headers: headers)
~^~~
/host/spi-builder-workspace/.build/checkouts/async-http-client/Sources/async-http-client/proxy/http/Proxy.swift:117:67: error: cannot infer contextual base in reference to member 'delete'
let request = try buildURLRequest(for: path, method: .delete, query: query, headers: headers)
~^~~~~~
/host/spi-builder-workspace/.build/checkouts/async-http-client/Sources/async-http-client/proxy/http/Response.swift:48:27: error: cannot find type 'URLRequest' in scope
_ urlRequest: URLRequest)
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/async-http-client/Sources/async-http-client/proxy/http/Proxy.swift:169:46: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
return try await session.data(for: request, delegate: taskDelegate)
~~~~~~~ ^~~~
/host/spi-builder-workspace/.build/checkouts/async-http-client/Sources/async-http-client/proxy/http/Proxy.swift:183:34: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
return try await session.data(for: request, delegate: taskDelegate)
~~~~~~~ ^~~~
/host/spi-builder-workspace/.build/checkouts/async-http-client/Sources/async-http-client/proxy/http/Proxy.swift:229:23: error: cannot find 'URLRequest' in scope
var request = URLRequest(url: url)
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/async-http-client/Sources/async-http-client/proxy/http/Proxy.swift:259:17: error: value of type 'URLSession' (aka 'AnyObject') has no member 'configuration'
session.configuration.httpAdditionalHeaders?["Content-Type"] == nil
~~~~~~~ ^~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/async-http-client/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/.build/checkouts/async-http-client/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/.build/checkouts/async-http-client/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/.build/checkouts/async-http-client/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
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^~~~~~~~~~
[13/18] Compiling async_http_client Response.swift
/host/spi-builder-workspace/.build/checkouts/async-http-client/Sources/async-http-client/proxy/http/Proxy.swift:129:28: error: cannot find type 'URLRequest' in scope
with request : URLRequest,
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/async-http-client/Sources/async-http-client/proxy/http/Proxy.swift:156:24: error: cannot find type 'URLRequest' in scope
with request : URLRequest,
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/async-http-client/Sources/async-http-client/proxy/http/Proxy.swift:159:30: 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/.build/checkouts/async-http-client/Sources/async-http-client/proxy/http/Proxy.swift:225:17: error: cannot find type 'URLRequest' in scope
) throws -> URLRequest {
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/async-http-client/Sources/async-http-client/proxy/http/Proxy.swift:257:63: error: cannot find type 'URLRequest' in scope
func hasNotContentType(_ session : URLSession,_ request : URLRequest) -> Bool{
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/async-http-client/Sources/async-http-client/proxy/http/Proxy.swift:257:40: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
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/.build/checkouts/async-http-client/Sources/async-http-client/proxy/http/Proxy.swift:72:67: error: cannot infer contextual base in reference to member 'post'
let request = try buildURLRequest(for: path, method: .post, query: query, body: body, headers: headers)
~^~~~
/host/spi-builder-workspace/.build/checkouts/async-http-client/Sources/async-http-client/proxy/http/Proxy.swift:96:67: error: cannot infer contextual base in reference to member 'put'
let request = try buildURLRequest(for: path, method: .put, query: query, body: body, headers: headers)
~^~~
/host/spi-builder-workspace/.build/checkouts/async-http-client/Sources/async-http-client/proxy/http/Proxy.swift:117:67: error: cannot infer contextual base in reference to member 'delete'
let request = try buildURLRequest(for: path, method: .delete, query: query, headers: headers)
~^~~~~~
/host/spi-builder-workspace/.build/checkouts/async-http-client/Sources/async-http-client/proxy/http/Response.swift:48:27: error: cannot find type 'URLRequest' in scope
_ urlRequest: URLRequest)
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/async-http-client/Sources/async-http-client/proxy/http/Proxy.swift:169:46: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
return try await session.data(for: request, delegate: taskDelegate)
~~~~~~~ ^~~~
/host/spi-builder-workspace/.build/checkouts/async-http-client/Sources/async-http-client/proxy/http/Proxy.swift:183:34: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
return try await session.data(for: request, delegate: taskDelegate)
~~~~~~~ ^~~~
/host/spi-builder-workspace/.build/checkouts/async-http-client/Sources/async-http-client/proxy/http/Proxy.swift:229:23: error: cannot find 'URLRequest' in scope
var request = URLRequest(url: url)
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/async-http-client/Sources/async-http-client/proxy/http/Proxy.swift:259:17: error: value of type 'URLSession' (aka 'AnyObject') has no member 'configuration'
session.configuration.httpAdditionalHeaders?["Content-Type"] == nil
~~~~~~~ ^~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/async-http-client/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/.build/checkouts/async-http-client/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/.build/checkouts/async-http-client/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/.build/checkouts/async-http-client/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
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^~~~~~~~~~
error: emit-module command failed with exit code 1 (use -v to see invocation)
[14/18] Compiling async_http_client IResponse.swift
[15/18] Compiling async_http_client IReader.swift
[16/18] Emitting module async_http_client
/host/spi-builder-workspace/.build/checkouts/async-http-client/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/.build/checkouts/async-http-client/Sources/async-http-client/proxy/http/Configuration.swift:40:31: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
private let session : URLSession
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/host/spi-builder-workspace/.build/checkouts/async-http-client/Sources/async-http-client/proxy/http/Configuration.swift:57:23: error: cannot find type 'URLSessionDelegate' in scope
delegate: URLSessionDelegate? = nil,
^~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/async-http-client/Sources/async-http-client/proxy/http/Configuration.swift:56: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/.build/checkouts/async-http-client/Sources/async-http-client/proxy/http/Configuration.swift:75: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/.build/checkouts/async-http-client/Sources/async-http-client/proxy/http/Proxy.swift:129:28: error: cannot find type 'URLRequest' in scope
with request : URLRequest,
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/async-http-client/Sources/async-http-client/proxy/http/Proxy.swift:156:24: error: cannot find type 'URLRequest' in scope
with request : URLRequest,
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/async-http-client/Sources/async-http-client/proxy/http/Proxy.swift:159:30: 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/.build/checkouts/async-http-client/Sources/async-http-client/proxy/http/Proxy.swift:225:17: error: cannot find type 'URLRequest' in scope
) throws -> URLRequest {
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/async-http-client/Sources/async-http-client/proxy/http/Proxy.swift:257:63: error: cannot find type 'URLRequest' in scope
func hasNotContentType(_ session : URLSession,_ request : URLRequest) -> Bool{
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/async-http-client/Sources/async-http-client/proxy/http/Proxy.swift:257:40: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
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/.build/checkouts/async-http-client/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/.build/checkouts/async-http-client/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/.build/checkouts/async-http-client/Sources/async-http-client/proxy/http/Response.swift:48:27: error: cannot find type 'URLRequest' in scope
_ urlRequest: URLRequest)
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/async-http-client/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/.build/checkouts/async-http-client/Sources/async-http-client/proxy/http/protocol/ITaskDelegate.swift:11:32: error: cannot find type 'URLSessionTaskDelegate' in scope
public protocol ITaskDelegate: URLSessionTaskDelegate{
^~~~~~~~~~~~~~~~~~~~~~
[17/18] Compiling async_http_client IWriter.swift
/host/spi-builder-workspace/.build/checkouts/async-http-client/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/.build/checkouts/async-http-client/Sources/async-http-client/proxy/http/Configuration.swift:40:31: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
private let session : URLSession
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/host/spi-builder-workspace/.build/checkouts/async-http-client/Sources/async-http-client/proxy/http/Configuration.swift:57:23: error: cannot find type 'URLSessionDelegate' in scope
delegate: URLSessionDelegate? = nil,
^~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/async-http-client/Sources/async-http-client/proxy/http/Configuration.swift:56: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/.build/checkouts/async-http-client/Sources/async-http-client/proxy/http/Configuration.swift:75: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/.build/checkouts/async-http-client/Sources/async-http-client/proxy/http/Configuration.swift:63: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/.build/checkouts/async-http-client/Sources/async-http-client/proxy/http/Configuration.swift:95:35: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
self.session = URLSession.shared
~~~~~~~~~~ ^~~~~~
[18/18] Compiling async_http_client Configuration.swift
/host/spi-builder-workspace/.build/checkouts/async-http-client/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/.build/checkouts/async-http-client/Sources/async-http-client/proxy/http/Configuration.swift:40:31: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
private let session : URLSession
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/host/spi-builder-workspace/.build/checkouts/async-http-client/Sources/async-http-client/proxy/http/Configuration.swift:57:23: error: cannot find type 'URLSessionDelegate' in scope
delegate: URLSessionDelegate? = nil,
^~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/async-http-client/Sources/async-http-client/proxy/http/Configuration.swift:56: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/.build/checkouts/async-http-client/Sources/async-http-client/proxy/http/Configuration.swift:75: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/.build/checkouts/async-http-client/Sources/async-http-client/proxy/http/Configuration.swift:63: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/.build/checkouts/async-http-client/Sources/async-http-client/proxy/http/Configuration.swift:95:35: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
self.session = URLSession.shared
~~~~~~~~~~ ^~~~~~
error: fatalError
[0/1] Planning build
Building for debugging...
[0/1] Write swift-version-24593BA9C3E375BF.txt
[2/9] Compiling async_http_client Response.swift
/host/spi-builder-workspace/.build/checkouts/async-http-client/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/.build/checkouts/async-http-client/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/.build/checkouts/async-http-client/Sources/async-http-client/proxy/http/Response.swift:48:27: error: cannot find type 'URLRequest' in scope
_ urlRequest: URLRequest)
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/async-http-client/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/.build/checkouts/async-http-client/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
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^~~~~~~~~~
[3/10] Compiling async_http_client IWriter.swift
[4/10] Compiling async_http_client Proxy+.swift
/host/spi-builder-workspace/.build/checkouts/async-http-client/Sources/async-http-client/proxy/http/Configuration.swift:57:23: error: cannot find type 'URLSessionDelegate' in scope
delegate: URLSessionDelegate? = nil,
^~~~~~~~~~~~~~~~~~
[5/10] Compiling async_http_client Configuration.swift
/host/spi-builder-workspace/.build/checkouts/async-http-client/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/.build/checkouts/async-http-client/Sources/async-http-client/proxy/http/Configuration.swift:40:31: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
private let session : URLSession
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/host/spi-builder-workspace/.build/checkouts/async-http-client/Sources/async-http-client/proxy/http/Configuration.swift:57:23: error: cannot find type 'URLSessionDelegate' in scope
delegate: URLSessionDelegate? = nil,
^~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/async-http-client/Sources/async-http-client/proxy/http/Configuration.swift:56: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/.build/checkouts/async-http-client/Sources/async-http-client/proxy/http/Configuration.swift:75: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/.build/checkouts/async-http-client/Sources/async-http-client/proxy/http/Configuration.swift:63: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/.build/checkouts/async-http-client/Sources/async-http-client/proxy/http/Configuration.swift:95:35: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
self.session = URLSession.shared
~~~~~~~~~~ ^~~~~~
error: emit-module command failed with exit code 1 (use -v to see invocation)
[6/10] Compiling async_http_client Http.swift
[7/10] Emitting module async_http_client
/host/spi-builder-workspace/.build/checkouts/async-http-client/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/.build/checkouts/async-http-client/Sources/async-http-client/proxy/http/Configuration.swift:40:31: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
private let session : URLSession
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/host/spi-builder-workspace/.build/checkouts/async-http-client/Sources/async-http-client/proxy/http/Configuration.swift:57:23: error: cannot find type 'URLSessionDelegate' in scope
delegate: URLSessionDelegate? = nil,
^~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/async-http-client/Sources/async-http-client/proxy/http/Configuration.swift:56: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/.build/checkouts/async-http-client/Sources/async-http-client/proxy/http/Configuration.swift:75: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/.build/checkouts/async-http-client/Sources/async-http-client/proxy/http/Proxy.swift:129:28: error: cannot find type 'URLRequest' in scope
with request : URLRequest,
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/async-http-client/Sources/async-http-client/proxy/http/Proxy.swift:156:24: error: cannot find type 'URLRequest' in scope
with request : URLRequest,
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/async-http-client/Sources/async-http-client/proxy/http/Proxy.swift:159:30: 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/.build/checkouts/async-http-client/Sources/async-http-client/proxy/http/Proxy.swift:225:17: error: cannot find type 'URLRequest' in scope
) throws -> URLRequest {
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/async-http-client/Sources/async-http-client/proxy/http/Proxy.swift:257:63: error: cannot find type 'URLRequest' in scope
func hasNotContentType(_ session : URLSession,_ request : URLRequest) -> Bool{
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/async-http-client/Sources/async-http-client/proxy/http/Proxy.swift:257:40: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
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/.build/checkouts/async-http-client/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/.build/checkouts/async-http-client/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/.build/checkouts/async-http-client/Sources/async-http-client/proxy/http/Response.swift:48:27: error: cannot find type 'URLRequest' in scope
_ urlRequest: URLRequest)
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/async-http-client/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/.build/checkouts/async-http-client/Sources/async-http-client/proxy/http/protocol/ITaskDelegate.swift:11:32: error: cannot find type 'URLSessionTaskDelegate' in scope
public protocol ITaskDelegate: URLSessionTaskDelegate{
^~~~~~~~~~~~~~~~~~~~~~
[8/13] Compiling async_http_client HttpMethod.swift
[9/13] Compiling async_http_client ITaskDelegate.swift
/host/spi-builder-workspace/.build/checkouts/async-http-client/Sources/async-http-client/proxy/http/protocol/ITaskDelegate.swift:11:32: error: cannot find type 'URLSessionTaskDelegate' in scope
public protocol ITaskDelegate: URLSessionTaskDelegate{
^~~~~~~~~~~~~~~~~~~~~~
[10/13] Compiling async_http_client Proxy.swift
/host/spi-builder-workspace/.build/checkouts/async-http-client/Sources/async-http-client/proxy/http/Proxy.swift:129:28: error: cannot find type 'URLRequest' in scope
with request : URLRequest,
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/async-http-client/Sources/async-http-client/proxy/http/Proxy.swift:156:24: error: cannot find type 'URLRequest' in scope
with request : URLRequest,
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/async-http-client/Sources/async-http-client/proxy/http/Proxy.swift:159:30: 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/.build/checkouts/async-http-client/Sources/async-http-client/proxy/http/Proxy.swift:225:17: error: cannot find type 'URLRequest' in scope
) throws -> URLRequest {
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/async-http-client/Sources/async-http-client/proxy/http/Proxy.swift:257:63: error: cannot find type 'URLRequest' in scope
func hasNotContentType(_ session : URLSession,_ request : URLRequest) -> Bool{
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/async-http-client/Sources/async-http-client/proxy/http/Proxy.swift:257:40: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
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/.build/checkouts/async-http-client/Sources/async-http-client/proxy/http/Proxy.swift:72:67: error: cannot infer contextual base in reference to member 'post'
let request = try buildURLRequest(for: path, method: .post, query: query, body: body, headers: headers)
~^~~~
/host/spi-builder-workspace/.build/checkouts/async-http-client/Sources/async-http-client/proxy/http/Proxy.swift:96:67: error: cannot infer contextual base in reference to member 'put'
let request = try buildURLRequest(for: path, method: .put, query: query, body: body, headers: headers)
~^~~
/host/spi-builder-workspace/.build/checkouts/async-http-client/Sources/async-http-client/proxy/http/Proxy.swift:117:67: error: cannot infer contextual base in reference to member 'delete'
let request = try buildURLRequest(for: path, method: .delete, query: query, headers: headers)
~^~~~~~
/host/spi-builder-workspace/.build/checkouts/async-http-client/Sources/async-http-client/proxy/http/Response.swift:48:27: error: cannot find type 'URLRequest' in scope
_ urlRequest: URLRequest)
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/async-http-client/Sources/async-http-client/proxy/http/Proxy.swift:169:46: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
return try await session.data(for: request, delegate: taskDelegate)
~~~~~~~ ^~~~
/host/spi-builder-workspace/.build/checkouts/async-http-client/Sources/async-http-client/proxy/http/Proxy.swift:183:34: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
return try await session.data(for: request, delegate: taskDelegate)
~~~~~~~ ^~~~
/host/spi-builder-workspace/.build/checkouts/async-http-client/Sources/async-http-client/proxy/http/Proxy.swift:229:23: error: cannot find 'URLRequest' in scope
var request = URLRequest(url: url)
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/async-http-client/Sources/async-http-client/proxy/http/Proxy.swift:259:17: error: value of type 'URLSession' (aka 'AnyObject') has no member 'configuration'
session.configuration.httpAdditionalHeaders?["Content-Type"] == nil
~~~~~~~ ^~~~~~~~~~~~~
[11/13] Compiling async_http_client JsonWriter.swift
[12/13] Compiling async_http_client IProxy.swift
[13/13] Compiling async_http_client IConfiguration.swift
error: fatalError
BUILD FAILURE 5.10 linux
Build Machine: Linux 1