Build Information
Failed to build Hyperspace with Swift 5.9 for Linux.
Build Command
Build command unavailable
Build Log
========================================
RunAll
========================================
Builder version: 4.27.3
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/BottleRocketStudios/iOS-Hyperspace.git
Reference: main
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/BottleRocketStudios/iOS-Hyperspace
* branch main -> FETCH_HEAD
* [new branch] main -> origin/main
HEAD is now at f3bed24 Merge pull request #173 from BottleRocketStudios/release/5.1.0
Cloned https://github.com/BottleRocketStudios/iOS-Hyperspace.git
Revision (git rev-parse @):
f3bed245fa59a7729c1e46eba67dac5dc059d13e
SUCCESS checkout https://github.com/BottleRocketStudios/iOS-Hyperspace.git at main
========================================
Build
========================================
Selected platform: linux
Swift version: 5.9
Building package at path: $PWD/checkout
Running build ...
bash -c docker run --rm -v "checkouts-4606859-0":/host -w "$PWD/checkout" registry.gitlab.com/finestructure/spi-images:basic-5.9-latest swift build 2>&1
warning: 'spi-builder-workspace': found 7 file(s) which are unhandled; explicitly declare them as resources or exclude from the target
/host/spi-builder-workspace/Tests/Helper/JSON/MixedTypeObject.json
/host/spi-builder-workspace/Tests/Helper/JSON/RootKeyIncorrectType.json
/host/spi-builder-workspace/Tests/Helper/JSON/Object.json
/host/spi-builder-workspace/Tests/Helper/JSON/RootKeyObject.json
/host/spi-builder-workspace/Tests/Helper/JSON/DateObject.json
/host/spi-builder-workspace/Tests/Helper/JSON/RootKeyObjectPlus.json
/host/spi-builder-workspace/Tests/Helper/JSON/RootKeyArray.json
Building for debugging...
error: emit-module command failed with exit code 1 (use -v to see invocation)
[1/16] Emitting module Hyperspace
/host/spi-builder-workspace/Sources/HTTP/HTTP.swift:153:33: error: cannot find type 'URLRequest' in scope
public init(urlRequest: URLRequest) {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/HTTP/HTTP.swift:199:61: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
public init(request: HTTP.Request, httpURLResponse: HTTPURLResponse, body: Data? = nil) {
^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
^
/host/spi-builder-workspace/Sources/Request/Request+Decodable.swift:47:23: error: cannot find type 'URLRequest' in scope
cachePolicy: URLRequest.CachePolicy = RequestDefaults.defaultCachePolicy,
^~~~~~~~~~
/host/spi-builder-workspace/Sources/Request/Request+Decodable.swift:58:54: error: cannot find type 'URLRequest' in scope
cachePolicy: URLRequest.CachePolicy = RequestDefaults.defaultCachePolicy,
^~~~~~~~~~
/host/spi-builder-workspace/Sources/Request/Request+EmptyDecodingStrategy.swift:17:48: error: cannot find type 'URLRequest' in scope
cachePolicy: URLRequest.CachePolicy = RequestDefaults.defaultCachePolicy,
^~~~~~~~~~
/host/spi-builder-workspace/Sources/Request/Request.URLRequestCreationStrategy.swift:16:41: error: cannot find type 'URLRequest' in scope
let creationBlock: (Request) -> URLRequest
^~~~~~~~~~
/host/spi-builder-workspace/Sources/Request/Request.URLRequestCreationStrategy.swift:19:52: error: cannot find type 'URLRequest' in scope
func urlRequest(using request: Request) -> URLRequest {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/Request/Request.URLRequestCreationStrategy.swift:24:75: error: cannot find type 'URLRequest' in scope
public static func custom(_ creationBlock: @escaping (Request) -> URLRequest) -> URLRequestCreationStrategy {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/Request/Request.swift:35:29: error: cannot find type 'URLRequest' in scope
public var cachePolicy: URLRequest.CachePolicy
^~~~~~~~~~
/host/spi-builder-workspace/Sources/Request/Request.swift:70:30: error: cannot find type 'URLRequest' in scope
cachePolicy: URLRequest.CachePolicy = RequestDefaults.defaultCachePolicy,
^~~~~~~~~~
/host/spi-builder-workspace/Sources/Request/Request.swift:83:28: error: cannot find type 'URLRequest' in scope
public var urlRequest: URLRequest {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/Request/Request.swift:166:43: error: cannot find type 'URLRequest' in scope
public static var defaultCachePolicy: URLRequest.CachePolicy = .useProtocolCachePolicy
^~~~~~~~~~
/host/spi-builder-workspace/Sources/Service/Transport/Transporting.swift:23:27: error: cannot find type 'URLRequest' in scope
func execute(request: URLRequest) async throws -> TransportSuccess
^~~~~~~~~~
/host/spi-builder-workspace/Sources/Service/Transport/Transporting.swift:30:27: error: cannot find type 'URLRequest' in scope
func execute(request: URLRequest, delegate: TransportTaskDelegate?) async throws -> TransportSuccess
^~~~~~~~~~
/host/spi-builder-workspace/Sources/Service/Transport/TransportSession.swift:11:42: error: cannot find type 'URLSessionTaskDelegate' in scope
public typealias TransportTaskDelegate = URLSessionTaskDelegate
^~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Service/Transport/TransportSession.swift:28:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
extension URLSession: TransportSession {
^ ~~~~~~~~~~
/host/spi-builder-workspace/Sources/Service/Transport/TransportSession.swift:51:8: error: non-nominal type 'TransportSessionConfiguration' (aka 'AnyObject') cannot be extended
public extension TransportSessionConfiguration {
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Service/Transport/TransportSession.swift:10:50: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
public typealias TransportSessionConfiguration = URLSessionConfiguration
^~~~~~~~~~~~~~~~~~~~~~~
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' has been explicitly marked unavailable here
public typealias URLSessionConfiguration = AnyObject
^
/host/spi-builder-workspace/Sources/Service/Transport/TransportSession.swift:21:28: error: cannot find type 'URLRequest' in scope
func data(for request: URLRequest) async throws -> (Data, URLResponse)
^~~~~~~~~~
/host/spi-builder-workspace/Sources/Service/Transport/TransportSession.swift:21:63: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
func data(for request: URLRequest) 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/Service/Transport/TransportSession.swift:24:28: error: cannot find type 'URLRequest' in scope
func data(for request: URLRequest, delegate: TransportTaskDelegate?) async throws -> (Data, URLResponse)
^~~~~~~~~~
/host/spi-builder-workspace/Sources/Service/Transport/TransportSession.swift:24:97: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
func data(for request: URLRequest, delegate: TransportTaskDelegate?) 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/Service/Transport/Transporting.swift:43:56: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
public init(session: TransportSession = URLSession.shared, networkActivityIndicatable: NetworkActivityIndicatable? = nil) {
~~~~~~~~~~ ^~~~~~
/host/spi-builder-workspace/Sources/Service/Transport/Transporting.swift:60:34: error: cannot find type 'URLRequest' in scope
public func execute(request: URLRequest) async throws -> TransportSuccess {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/Service/Transport/Transporting.swift:73:34: error: cannot find type 'URLRequest' in scope
public func execute(request: URLRequest, delegate: TransportTaskDelegate? = nil) async throws -> TransportSuccess {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/Service/Transport/Transporting.swift:49:28: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
self.init(session: URLSession(configuration: sessionConfiguration), networkActivityIndicatable: networkActivityIndicatable)
^~~~~~~~~~
[2/18] Compiling Hyperspace TransportSession.swift
/host/spi-builder-workspace/Sources/Service/Transport/TransportSession.swift:28:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
extension URLSession: TransportSession {
^ ~~~~~~~~~~
/host/spi-builder-workspace/Sources/Service/Transport/TransportSession.swift:51:8: error: non-nominal type 'TransportSessionConfiguration' (aka 'AnyObject') cannot be extended
public extension TransportSessionConfiguration {
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Service/Transport/TransportSession.swift:10:50: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
public typealias TransportSessionConfiguration = URLSessionConfiguration
^~~~~~~~~~~~~~~~~~~~~~~
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' has been explicitly marked unavailable here
public typealias URLSessionConfiguration = AnyObject
^
/host/spi-builder-workspace/Sources/Service/Transport/TransportSession.swift:11:42: error: cannot find type 'URLSessionTaskDelegate' in scope
public typealias TransportTaskDelegate = URLSessionTaskDelegate
^~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Service/Transport/TransportSession.swift:21:28: error: cannot find type 'URLRequest' in scope
func data(for request: URLRequest) async throws -> (Data, URLResponse)
^~~~~~~~~~
/host/spi-builder-workspace/Sources/Service/Transport/TransportSession.swift:21:63: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
func data(for request: URLRequest) 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/Service/Transport/TransportSession.swift:24:28: error: cannot find type 'URLRequest' in scope
func data(for request: URLRequest, delegate: TransportTaskDelegate?) async throws -> (Data, URLResponse)
^~~~~~~~~~
/host/spi-builder-workspace/Sources/Service/Transport/TransportSession.swift:24:97: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
func data(for request: URLRequest, delegate: TransportTaskDelegate?) 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/Service/Transport/Transporting.swift:23:27: error: cannot find type 'URLRequest' in scope
func execute(request: URLRequest) async throws -> TransportSuccess
^~~~~~~~~~
/host/spi-builder-workspace/Sources/Service/Transport/Transporting.swift:30:27: error: cannot find type 'URLRequest' in scope
func execute(request: URLRequest, delegate: TransportTaskDelegate?) async throws -> TransportSuccess
^~~~~~~~~~
/host/spi-builder-workspace/Sources/Service/Transport/Transporting.swift:43:56: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
public init(session: TransportSession = URLSession.shared, networkActivityIndicatable: NetworkActivityIndicatable? = nil) {
~~~~~~~~~~ ^~~~~~
/host/spi-builder-workspace/Sources/Service/Transport/Transporting.swift:60:34: error: cannot find type 'URLRequest' in scope
public func execute(request: URLRequest) async throws -> TransportSuccess {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/Service/Transport/Transporting.swift:73:34: error: cannot find type 'URLRequest' in scope
public func execute(request: URLRequest, delegate: TransportTaskDelegate? = nil) async throws -> TransportSuccess {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/Service/Transport/Transporting.swift:49:28: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
self.init(session: URLSession(configuration: sessionConfiguration), networkActivityIndicatable: networkActivityIndicatable)
^~~~~~~~~~
/host/spi-builder-workspace/Sources/HTTP/HTTP.swift:153:33: error: cannot find type 'URLRequest' in scope
public init(urlRequest: URLRequest) {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/Service/Transport/Transporting.swift:68:65: error: extra argument 'urlRequest' in call
let response = HTTP.Response(request: .init(urlRequest: request), httpURLResponse: httpURLResponse, body: data)
~~~~~~~~~~~~~^~~~~~~~
/host/spi-builder-workspace/Sources/Service/Transport/Transporting.swift:81:65: error: extra argument 'urlRequest' in call
let response = HTTP.Response(request: .init(urlRequest: request), httpURLResponse: httpURLResponse, body: data)
~~~~~~~~~~~~~^~~~~~~~
/host/spi-builder-workspace/Sources/Service/Transport/TransportSession.swift:30:35: error: cannot find type 'URLRequest' in scope
public func data(for request: URLRequest) async throws -> (Data, URLResponse) {
^~~~~~~~~~
[3/18] Compiling Hyperspace Transporting.swift
/host/spi-builder-workspace/Sources/Service/Transport/TransportSession.swift:28:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
extension URLSession: TransportSession {
^ ~~~~~~~~~~
/host/spi-builder-workspace/Sources/Service/Transport/TransportSession.swift:51:8: error: non-nominal type 'TransportSessionConfiguration' (aka 'AnyObject') cannot be extended
public extension TransportSessionConfiguration {
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Service/Transport/TransportSession.swift:10:50: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
public typealias TransportSessionConfiguration = URLSessionConfiguration
^~~~~~~~~~~~~~~~~~~~~~~
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' has been explicitly marked unavailable here
public typealias URLSessionConfiguration = AnyObject
^
/host/spi-builder-workspace/Sources/Service/Transport/TransportSession.swift:11:42: error: cannot find type 'URLSessionTaskDelegate' in scope
public typealias TransportTaskDelegate = URLSessionTaskDelegate
^~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Service/Transport/TransportSession.swift:21:28: error: cannot find type 'URLRequest' in scope
func data(for request: URLRequest) async throws -> (Data, URLResponse)
^~~~~~~~~~
/host/spi-builder-workspace/Sources/Service/Transport/TransportSession.swift:21:63: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
func data(for request: URLRequest) 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/Service/Transport/TransportSession.swift:24:28: error: cannot find type 'URLRequest' in scope
func data(for request: URLRequest, delegate: TransportTaskDelegate?) async throws -> (Data, URLResponse)
^~~~~~~~~~
/host/spi-builder-workspace/Sources/Service/Transport/TransportSession.swift:24:97: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
func data(for request: URLRequest, delegate: TransportTaskDelegate?) 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/Service/Transport/Transporting.swift:23:27: error: cannot find type 'URLRequest' in scope
func execute(request: URLRequest) async throws -> TransportSuccess
^~~~~~~~~~
/host/spi-builder-workspace/Sources/Service/Transport/Transporting.swift:30:27: error: cannot find type 'URLRequest' in scope
func execute(request: URLRequest, delegate: TransportTaskDelegate?) async throws -> TransportSuccess
^~~~~~~~~~
/host/spi-builder-workspace/Sources/Service/Transport/Transporting.swift:43:56: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
public init(session: TransportSession = URLSession.shared, networkActivityIndicatable: NetworkActivityIndicatable? = nil) {
~~~~~~~~~~ ^~~~~~
/host/spi-builder-workspace/Sources/Service/Transport/Transporting.swift:60:34: error: cannot find type 'URLRequest' in scope
public func execute(request: URLRequest) async throws -> TransportSuccess {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/Service/Transport/Transporting.swift:73:34: error: cannot find type 'URLRequest' in scope
public func execute(request: URLRequest, delegate: TransportTaskDelegate? = nil) async throws -> TransportSuccess {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/Service/Transport/Transporting.swift:49:28: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
self.init(session: URLSession(configuration: sessionConfiguration), networkActivityIndicatable: networkActivityIndicatable)
^~~~~~~~~~
/host/spi-builder-workspace/Sources/HTTP/HTTP.swift:153:33: error: cannot find type 'URLRequest' in scope
public init(urlRequest: URLRequest) {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/Service/Transport/Transporting.swift:68:65: error: extra argument 'urlRequest' in call
let response = HTTP.Response(request: .init(urlRequest: request), httpURLResponse: httpURLResponse, body: data)
~~~~~~~~~~~~~^~~~~~~~
/host/spi-builder-workspace/Sources/Service/Transport/Transporting.swift:81:65: error: extra argument 'urlRequest' in call
let response = HTTP.Response(request: .init(urlRequest: request), httpURLResponse: httpURLResponse, body: data)
~~~~~~~~~~~~~^~~~~~~~
/host/spi-builder-workspace/Sources/Service/Transport/TransportSession.swift:30:35: error: cannot find type 'URLRequest' in scope
public func data(for request: URLRequest) async throws -> (Data, URLResponse) {
^~~~~~~~~~
[4/18] Compiling Hyperspace JSONCoder+Container.swift
[5/18] Compiling Hyperspace URL+Additions.swift
[6/18] Compiling Hyperspace HTTP.Body+URLForm.swift
[7/18] Compiling Hyperspace BackendService.swift
/host/spi-builder-workspace/Sources/Service/Transport/Transporting.swift:23:27: error: cannot find type 'URLRequest' in scope
func execute(request: URLRequest) async throws -> TransportSuccess
^~~~~~~~~~
/host/spi-builder-workspace/Sources/Service/Transport/Transporting.swift:30:27: error: cannot find type 'URLRequest' in scope
func execute(request: URLRequest, delegate: TransportTaskDelegate?) async throws -> TransportSuccess
^~~~~~~~~~
/host/spi-builder-workspace/Sources/Service/Transport/TransportSession.swift:11:42: error: cannot find type 'URLSessionTaskDelegate' in scope
public typealias TransportTaskDelegate = URLSessionTaskDelegate
^~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Request/Request.swift:83:28: error: cannot find type 'URLRequest' in scope
public var urlRequest: URLRequest {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/Service/Backend/BackendService.swift:75:113: error: extra argument 'delegate' in call
return try await attemptToRecover(from: transportFailure, executing: preparedRequest, delegate: delegate)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~
/host/spi-builder-workspace/Sources/Service/Backend/BackendService.swift:80:98: error: extra argument 'delegate' in call
return try await attemptToRecover(from: error, executing: preparedRequest, delegate: delegate)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~
/host/spi-builder-workspace/Sources/Service/Backend/BackendServicing.swift:91:110: error: extra argument 'delegate' in call
case .retry(let recoveredRequest): return try await execute(request: recoveredRequest, delegate: delegate)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~
[8/18] Compiling Hyperspace BackendServicing.swift
/host/spi-builder-workspace/Sources/Service/Transport/Transporting.swift:23:27: error: cannot find type 'URLRequest' in scope
func execute(request: URLRequest) async throws -> TransportSuccess
^~~~~~~~~~
/host/spi-builder-workspace/Sources/Service/Transport/Transporting.swift:30:27: error: cannot find type 'URLRequest' in scope
func execute(request: URLRequest, delegate: TransportTaskDelegate?) async throws -> TransportSuccess
^~~~~~~~~~
/host/spi-builder-workspace/Sources/Service/Transport/TransportSession.swift:11:42: error: cannot find type 'URLSessionTaskDelegate' in scope
public typealias TransportTaskDelegate = URLSessionTaskDelegate
^~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Request/Request.swift:83:28: error: cannot find type 'URLRequest' in scope
public var urlRequest: URLRequest {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/Service/Backend/BackendService.swift:75:113: error: extra argument 'delegate' in call
return try await attemptToRecover(from: transportFailure, executing: preparedRequest, delegate: delegate)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~
/host/spi-builder-workspace/Sources/Service/Backend/BackendService.swift:80:98: error: extra argument 'delegate' in call
return try await attemptToRecover(from: error, executing: preparedRequest, delegate: delegate)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~
/host/spi-builder-workspace/Sources/Service/Backend/BackendServicing.swift:91:110: error: extra argument 'delegate' in call
case .retry(let recoveredRequest): return try await execute(request: recoveredRequest, delegate: delegate)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~
[9/18] Compiling Hyperspace NetworkActivityController.swift
[10/18] Compiling Hyperspace PreparationStrategy.swift
[11/18] Compiling Hyperspace RecoveryStrategy.swift
/host/spi-builder-workspace/Sources/Request/Request.swift:35:29: error: cannot find type 'URLRequest' in scope
public var cachePolicy: URLRequest.CachePolicy
^~~~~~~~~~
/host/spi-builder-workspace/Sources/Request/Request.URLRequestCreationStrategy.swift:16:41: error: cannot find type 'URLRequest' in scope
let creationBlock: (Request) -> URLRequest
^~~~~~~~~~
[12/18] Compiling Hyperspace TransportResult.swift
/host/spi-builder-workspace/Sources/Request/Request.swift:35:29: error: cannot find type 'URLRequest' in scope
public var cachePolicy: URLRequest.CachePolicy
^~~~~~~~~~
/host/spi-builder-workspace/Sources/Request/Request.URLRequestCreationStrategy.swift:16:41: error: cannot find type 'URLRequest' in scope
let creationBlock: (Request) -> URLRequest
^~~~~~~~~~
[13/18] Compiling Hyperspace Request.URLRequestCreationStrategy.swift
/host/spi-builder-workspace/Sources/Request/Request.URLRequestCreationStrategy.swift:16:41: error: cannot find type 'URLRequest' in scope
let creationBlock: (Request) -> URLRequest
^~~~~~~~~~
/host/spi-builder-workspace/Sources/Request/Request.URLRequestCreationStrategy.swift:19:52: error: cannot find type 'URLRequest' in scope
func urlRequest(using request: Request) -> URLRequest {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/Request/Request.URLRequestCreationStrategy.swift:24:75: error: cannot find type 'URLRequest' in scope
public static func custom(_ creationBlock: @escaping (Request) -> URLRequest) -> URLRequestCreationStrategy {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/Request/Request.URLRequestCreationStrategy.swift:30:34: error: cannot find 'URLRequest' in scope
var urlRequest = URLRequest(url: request.url, cachePolicy: request.cachePolicy, timeoutInterval: request.timeout)
^~~~~~~~~~
/host/spi-builder-workspace/Sources/Request/Request.URLRequestCreationStrategy.swift:29:60: error: cannot find type 'URLRequest' in scope
return URLRequestCreationStrategy { request -> URLRequest in
^~~~~~~~~~
/host/spi-builder-workspace/Sources/Request/Request.swift:35:29: error: cannot find type 'URLRequest' in scope
public var cachePolicy: URLRequest.CachePolicy
^~~~~~~~~~
/host/spi-builder-workspace/Sources/Request/Request.swift:70:30: error: cannot find type 'URLRequest' in scope
cachePolicy: URLRequest.CachePolicy = RequestDefaults.defaultCachePolicy,
^~~~~~~~~~
/host/spi-builder-workspace/Sources/Request/Request.swift:83:28: error: cannot find type 'URLRequest' in scope
public var urlRequest: URLRequest {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/Request/Request.swift:166:43: error: cannot find type 'URLRequest' in scope
public static var defaultCachePolicy: URLRequest.CachePolicy = .useProtocolCachePolicy
^~~~~~~~~~
/host/spi-builder-workspace/Sources/Request/Request+Decodable.swift:47:23: error: cannot find type 'URLRequest' in scope
cachePolicy: URLRequest.CachePolicy = RequestDefaults.defaultCachePolicy,
^~~~~~~~~~
/host/spi-builder-workspace/Sources/Request/Request+Decodable.swift:58:54: error: cannot find type 'URLRequest' in scope
cachePolicy: URLRequest.CachePolicy = RequestDefaults.defaultCachePolicy,
^~~~~~~~~~
[14/18] Compiling Hyperspace Request.swift
/host/spi-builder-workspace/Sources/Request/Request.URLRequestCreationStrategy.swift:16:41: error: cannot find type 'URLRequest' in scope
let creationBlock: (Request) -> URLRequest
^~~~~~~~~~
/host/spi-builder-workspace/Sources/Request/Request.URLRequestCreationStrategy.swift:19:52: error: cannot find type 'URLRequest' in scope
func urlRequest(using request: Request) -> URLRequest {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/Request/Request.URLRequestCreationStrategy.swift:24:75: error: cannot find type 'URLRequest' in scope
public static func custom(_ creationBlock: @escaping (Request) -> URLRequest) -> URLRequestCreationStrategy {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/Request/Request.URLRequestCreationStrategy.swift:30:34: error: cannot find 'URLRequest' in scope
var urlRequest = URLRequest(url: request.url, cachePolicy: request.cachePolicy, timeoutInterval: request.timeout)
^~~~~~~~~~
/host/spi-builder-workspace/Sources/Request/Request.URLRequestCreationStrategy.swift:29:60: error: cannot find type 'URLRequest' in scope
return URLRequestCreationStrategy { request -> URLRequest in
^~~~~~~~~~
/host/spi-builder-workspace/Sources/Request/Request.swift:35:29: error: cannot find type 'URLRequest' in scope
public var cachePolicy: URLRequest.CachePolicy
^~~~~~~~~~
/host/spi-builder-workspace/Sources/Request/Request.swift:70:30: error: cannot find type 'URLRequest' in scope
cachePolicy: URLRequest.CachePolicy = RequestDefaults.defaultCachePolicy,
^~~~~~~~~~
/host/spi-builder-workspace/Sources/Request/Request.swift:83:28: error: cannot find type 'URLRequest' in scope
public var urlRequest: URLRequest {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/Request/Request.swift:166:43: error: cannot find type 'URLRequest' in scope
public static var defaultCachePolicy: URLRequest.CachePolicy = .useProtocolCachePolicy
^~~~~~~~~~
/host/spi-builder-workspace/Sources/Request/Request+Decodable.swift:47:23: error: cannot find type 'URLRequest' in scope
cachePolicy: URLRequest.CachePolicy = RequestDefaults.defaultCachePolicy,
^~~~~~~~~~
/host/spi-builder-workspace/Sources/Request/Request+Decodable.swift:58:54: error: cannot find type 'URLRequest' in scope
cachePolicy: URLRequest.CachePolicy = RequestDefaults.defaultCachePolicy,
^~~~~~~~~~
[15/18] Compiling Hyperspace HTTP.Body.swift
/host/spi-builder-workspace/Sources/HTTP/HTTP.swift:153:33: error: cannot find type 'URLRequest' in scope
public init(urlRequest: URLRequest) {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/HTTP/HTTP.swift:199:61: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
public init(request: HTTP.Request, httpURLResponse: HTTPURLResponse, body: Data? = nil) {
^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
^
/host/spi-builder-workspace/Sources/HTTP/HTTP.swift:156:82: error: cannot infer contextual base in reference to member 'init'
headers: Dictionary(uniqueKeysWithValues: headers?.map { (.init(rawValue: $0.key), .init(rawValue: $0.value)) } ?? []),
~^~~~
/host/spi-builder-workspace/Sources/HTTP/HTTP.swift:156:107: error: cannot infer contextual base in reference to member 'init'
headers: Dictionary(uniqueKeysWithValues: headers?.map { (.init(rawValue: $0.key), .init(rawValue: $0.value)) } ?? []),
~^~~~
/host/spi-builder-workspace/Sources/HTTP/HTTP.swift:200:43: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
let headers = httpURLResponse.allHeaderFields as? [String: String]
~~~~~~~~~~~~~~~ ^~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/HTTP/HTTP.swift:201:63: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
self.init(request: request, code: httpURLResponse.statusCode, url: httpURLResponse.url,
~~~~~~~~~~~~~~~ ^~~~~~~~~~
/host/spi-builder-workspace/Sources/HTTP/HTTP.swift:201:96: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'url'
self.init(request: request, code: httpURLResponse.statusCode, url: httpURLResponse.url,
~~~~~~~~~~~~~~~ ^~~
/host/spi-builder-workspace/Sources/HTTP/HTTP.swift:202:82: error: cannot infer contextual base in reference to member 'init'
headers: Dictionary(uniqueKeysWithValues: headers?.map { (.init(rawValue: $0.key), .init(rawValue: $0.value)) } ?? []),
~^~~~
/host/spi-builder-workspace/Sources/HTTP/HTTP.swift:202:107: error: cannot infer contextual base in reference to member 'init'
headers: Dictionary(uniqueKeysWithValues: headers?.map { (.init(rawValue: $0.key), .init(rawValue: $0.value)) } ?? []),
~^~~~
/host/spi-builder-workspace/Sources/HTTP/HTTP.swift:214:36: error: type 'HTTPURLResponse' (aka 'AnyObject') has no member 'localizedString'
return HTTPURLResponse.localizedString(forStatusCode: code)
~~~~~~~~~~~~~~~ ^~~~~~~~~~~~~~~
[16/18] Compiling Hyperspace HTTP.swift
/host/spi-builder-workspace/Sources/HTTP/HTTP.swift:153:33: error: cannot find type 'URLRequest' in scope
public init(urlRequest: URLRequest) {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/HTTP/HTTP.swift:199:61: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
public init(request: HTTP.Request, httpURLResponse: HTTPURLResponse, body: Data? = nil) {
^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
^
/host/spi-builder-workspace/Sources/HTTP/HTTP.swift:156:82: error: cannot infer contextual base in reference to member 'init'
headers: Dictionary(uniqueKeysWithValues: headers?.map { (.init(rawValue: $0.key), .init(rawValue: $0.value)) } ?? []),
~^~~~
/host/spi-builder-workspace/Sources/HTTP/HTTP.swift:156:107: error: cannot infer contextual base in reference to member 'init'
headers: Dictionary(uniqueKeysWithValues: headers?.map { (.init(rawValue: $0.key), .init(rawValue: $0.value)) } ?? []),
~^~~~
/host/spi-builder-workspace/Sources/HTTP/HTTP.swift:200:43: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
let headers = httpURLResponse.allHeaderFields as? [String: String]
~~~~~~~~~~~~~~~ ^~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/HTTP/HTTP.swift:201:63: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
self.init(request: request, code: httpURLResponse.statusCode, url: httpURLResponse.url,
~~~~~~~~~~~~~~~ ^~~~~~~~~~
/host/spi-builder-workspace/Sources/HTTP/HTTP.swift:201:96: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'url'
self.init(request: request, code: httpURLResponse.statusCode, url: httpURLResponse.url,
~~~~~~~~~~~~~~~ ^~~
/host/spi-builder-workspace/Sources/HTTP/HTTP.swift:202:82: error: cannot infer contextual base in reference to member 'init'
headers: Dictionary(uniqueKeysWithValues: headers?.map { (.init(rawValue: $0.key), .init(rawValue: $0.value)) } ?? []),
~^~~~
/host/spi-builder-workspace/Sources/HTTP/HTTP.swift:202:107: error: cannot infer contextual base in reference to member 'init'
headers: Dictionary(uniqueKeysWithValues: headers?.map { (.init(rawValue: $0.key), .init(rawValue: $0.value)) } ?? []),
~^~~~
/host/spi-builder-workspace/Sources/HTTP/HTTP.swift:214:36: error: type 'HTTPURLResponse' (aka 'AnyObject') has no member 'localizedString'
return HTTPURLResponse.localizedString(forStatusCode: code)
~~~~~~~~~~~~~~~ ^~~~~~~~~~~~~~~
[17/18] Compiling Hyperspace Request+Decodable.swift
/host/spi-builder-workspace/Sources/Request/Request+Decodable.swift:47:23: error: cannot find type 'URLRequest' in scope
cachePolicy: URLRequest.CachePolicy = RequestDefaults.defaultCachePolicy,
^~~~~~~~~~
/host/spi-builder-workspace/Sources/Request/Request+Decodable.swift:58:54: error: cannot find type 'URLRequest' in scope
cachePolicy: URLRequest.CachePolicy = RequestDefaults.defaultCachePolicy,
^~~~~~~~~~
/host/spi-builder-workspace/Sources/Request/Request.swift:70:30: error: cannot find type 'URLRequest' in scope
cachePolicy: URLRequest.CachePolicy = RequestDefaults.defaultCachePolicy,
^~~~~~~~~~
/host/spi-builder-workspace/Sources/Request/Request+EmptyDecodingStrategy.swift:17:48: error: cannot find type 'URLRequest' in scope
cachePolicy: URLRequest.CachePolicy = RequestDefaults.defaultCachePolicy,
^~~~~~~~~~
[18/18] Compiling Hyperspace Request+EmptyDecodingStrategy.swift
/host/spi-builder-workspace/Sources/Request/Request+Decodable.swift:47:23: error: cannot find type 'URLRequest' in scope
cachePolicy: URLRequest.CachePolicy = RequestDefaults.defaultCachePolicy,
^~~~~~~~~~
/host/spi-builder-workspace/Sources/Request/Request+Decodable.swift:58:54: error: cannot find type 'URLRequest' in scope
cachePolicy: URLRequest.CachePolicy = RequestDefaults.defaultCachePolicy,
^~~~~~~~~~
/host/spi-builder-workspace/Sources/Request/Request.swift:70:30: error: cannot find type 'URLRequest' in scope
cachePolicy: URLRequest.CachePolicy = RequestDefaults.defaultCachePolicy,
^~~~~~~~~~
/host/spi-builder-workspace/Sources/Request/Request+EmptyDecodingStrategy.swift:17:48: error: cannot find type 'URLRequest' in scope
cachePolicy: URLRequest.CachePolicy = RequestDefaults.defaultCachePolicy,
^~~~~~~~~~
error: fatalError
warning: 'spi-builder-workspace': found 7 file(s) which are unhandled; explicitly declare them as resources or exclude from the target
/host/spi-builder-workspace/Tests/Helper/JSON/DateObject.json
/host/spi-builder-workspace/Tests/Helper/JSON/MixedTypeObject.json
/host/spi-builder-workspace/Tests/Helper/JSON/RootKeyIncorrectType.json
/host/spi-builder-workspace/Tests/Helper/JSON/RootKeyObject.json
/host/spi-builder-workspace/Tests/Helper/JSON/RootKeyArray.json
/host/spi-builder-workspace/Tests/Helper/JSON/RootKeyObjectPlus.json
/host/spi-builder-workspace/Tests/Helper/JSON/Object.json
[0/1] Planning build
Building for debugging...
[1/12] Compiling Hyperspace TransportSession.swift
/host/spi-builder-workspace/Sources/Service/Transport/TransportSession.swift:28:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
extension URLSession: TransportSession {
^ ~~~~~~~~~~
/host/spi-builder-workspace/Sources/Service/Transport/TransportSession.swift:51:8: error: non-nominal type 'TransportSessionConfiguration' (aka 'AnyObject') cannot be extended
public extension TransportSessionConfiguration {
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Service/Transport/TransportSession.swift:10:50: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
public typealias TransportSessionConfiguration = URLSessionConfiguration
^~~~~~~~~~~~~~~~~~~~~~~
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' has been explicitly marked unavailable here
public typealias URLSessionConfiguration = AnyObject
^
/host/spi-builder-workspace/Sources/Service/Transport/TransportSession.swift:11:42: error: cannot find type 'URLSessionTaskDelegate' in scope
public typealias TransportTaskDelegate = URLSessionTaskDelegate
^~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Service/Transport/TransportSession.swift:21:28: error: cannot find type 'URLRequest' in scope
func data(for request: URLRequest) async throws -> (Data, URLResponse)
^~~~~~~~~~
/host/spi-builder-workspace/Sources/Service/Transport/TransportSession.swift:21:63: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
func data(for request: URLRequest) 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/Service/Transport/TransportSession.swift:24:28: error: cannot find type 'URLRequest' in scope
func data(for request: URLRequest, delegate: TransportTaskDelegate?) async throws -> (Data, URLResponse)
^~~~~~~~~~
/host/spi-builder-workspace/Sources/Service/Transport/TransportSession.swift:24:97: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
func data(for request: URLRequest, delegate: TransportTaskDelegate?) 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/Service/Transport/TransportSession.swift:30:35: error: cannot find type 'URLRequest' in scope
public func data(for request: URLRequest) async throws -> (Data, URLResponse) {
^~~~~~~~~~
[2/13] Compiling Hyperspace Request.URLRequestCreationStrategy.swift
/host/spi-builder-workspace/Sources/Request/Request.URLRequestCreationStrategy.swift:16:41: error: cannot find type 'URLRequest' in scope
let creationBlock: (Request) -> URLRequest
^~~~~~~~~~
/host/spi-builder-workspace/Sources/Request/Request.URLRequestCreationStrategy.swift:19:52: error: cannot find type 'URLRequest' in scope
func urlRequest(using request: Request) -> URLRequest {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/Request/Request.URLRequestCreationStrategy.swift:24:75: error: cannot find type 'URLRequest' in scope
public static func custom(_ creationBlock: @escaping (Request) -> URLRequest) -> URLRequestCreationStrategy {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/Request/Request.URLRequestCreationStrategy.swift:30:34: error: cannot find 'URLRequest' in scope
var urlRequest = URLRequest(url: request.url, cachePolicy: request.cachePolicy, timeoutInterval: request.timeout)
^~~~~~~~~~
/host/spi-builder-workspace/Sources/Request/Request.URLRequestCreationStrategy.swift:29:60: error: cannot find type 'URLRequest' in scope
return URLRequestCreationStrategy { request -> URLRequest in
^~~~~~~~~~
/host/spi-builder-workspace/Sources/Request/Request.swift:35:29: error: cannot find type 'URLRequest' in scope
public var cachePolicy: URLRequest.CachePolicy
^~~~~~~~~~
/host/spi-builder-workspace/Sources/Request/Request.swift:70:30: error: cannot find type 'URLRequest' in scope
cachePolicy: URLRequest.CachePolicy = RequestDefaults.defaultCachePolicy,
^~~~~~~~~~
/host/spi-builder-workspace/Sources/Request/Request.swift:83:28: error: cannot find type 'URLRequest' in scope
public var urlRequest: URLRequest {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/Request/Request.swift:166:43: error: cannot find type 'URLRequest' in scope
public static var defaultCachePolicy: URLRequest.CachePolicy = .useProtocolCachePolicy
^~~~~~~~~~
/host/spi-builder-workspace/Sources/Request/Request+Decodable.swift:47:23: error: cannot find type 'URLRequest' in scope
cachePolicy: URLRequest.CachePolicy = RequestDefaults.defaultCachePolicy,
^~~~~~~~~~
/host/spi-builder-workspace/Sources/Request/Request+Decodable.swift:58:54: error: cannot find type 'URLRequest' in scope
cachePolicy: URLRequest.CachePolicy = RequestDefaults.defaultCachePolicy,
^~~~~~~~~~
[3/13] Compiling Hyperspace Request.swift
/host/spi-builder-workspace/Sources/Request/Request.URLRequestCreationStrategy.swift:16:41: error: cannot find type 'URLRequest' in scope
let creationBlock: (Request) -> URLRequest
^~~~~~~~~~
/host/spi-builder-workspace/Sources/Request/Request.URLRequestCreationStrategy.swift:19:52: error: cannot find type 'URLRequest' in scope
func urlRequest(using request: Request) -> URLRequest {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/Request/Request.URLRequestCreationStrategy.swift:24:75: error: cannot find type 'URLRequest' in scope
public static func custom(_ creationBlock: @escaping (Request) -> URLRequest) -> URLRequestCreationStrategy {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/Request/Request.URLRequestCreationStrategy.swift:30:34: error: cannot find 'URLRequest' in scope
var urlRequest = URLRequest(url: request.url, cachePolicy: request.cachePolicy, timeoutInterval: request.timeout)
^~~~~~~~~~
/host/spi-builder-workspace/Sources/Request/Request.URLRequestCreationStrategy.swift:29:60: error: cannot find type 'URLRequest' in scope
return URLRequestCreationStrategy { request -> URLRequest in
^~~~~~~~~~
/host/spi-builder-workspace/Sources/Request/Request.swift:35:29: error: cannot find type 'URLRequest' in scope
public var cachePolicy: URLRequest.CachePolicy
^~~~~~~~~~
/host/spi-builder-workspace/Sources/Request/Request.swift:70:30: error: cannot find type 'URLRequest' in scope
cachePolicy: URLRequest.CachePolicy = RequestDefaults.defaultCachePolicy,
^~~~~~~~~~
/host/spi-builder-workspace/Sources/Request/Request.swift:83:28: error: cannot find type 'URLRequest' in scope
public var urlRequest: URLRequest {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/Request/Request.swift:166:43: error: cannot find type 'URLRequest' in scope
public static var defaultCachePolicy: URLRequest.CachePolicy = .useProtocolCachePolicy
^~~~~~~~~~
/host/spi-builder-workspace/Sources/Request/Request+Decodable.swift:47:23: error: cannot find type 'URLRequest' in scope
cachePolicy: URLRequest.CachePolicy = RequestDefaults.defaultCachePolicy,
^~~~~~~~~~
/host/spi-builder-workspace/Sources/Request/Request+Decodable.swift:58:54: error: cannot find type 'URLRequest' in scope
cachePolicy: URLRequest.CachePolicy = RequestDefaults.defaultCachePolicy,
^~~~~~~~~~
[4/13] Compiling Hyperspace BackendService.swift
/host/spi-builder-workspace/Sources/Service/Transport/Transporting.swift:23:27: error: cannot find type 'URLRequest' in scope
func execute(request: URLRequest) async throws -> TransportSuccess
^~~~~~~~~~
/host/spi-builder-workspace/Sources/Service/Transport/Transporting.swift:30:27: error: cannot find type 'URLRequest' in scope
func execute(request: URLRequest, delegate: TransportTaskDelegate?) async throws -> TransportSuccess
^~~~~~~~~~
/host/spi-builder-workspace/Sources/Service/Transport/TransportSession.swift:11:42: error: cannot find type 'URLSessionTaskDelegate' in scope
public typealias TransportTaskDelegate = URLSessionTaskDelegate
^~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Request/Request.swift:83:28: error: cannot find type 'URLRequest' in scope
public var urlRequest: URLRequest {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/Service/Backend/BackendService.swift:75:113: error: extra argument 'delegate' in call
return try await attemptToRecover(from: transportFailure, executing: preparedRequest, delegate: delegate)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~
/host/spi-builder-workspace/Sources/Service/Backend/BackendService.swift:80:98: error: extra argument 'delegate' in call
return try await attemptToRecover(from: error, executing: preparedRequest, delegate: delegate)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~
/host/spi-builder-workspace/Sources/Service/Backend/BackendServicing.swift:91:110: error: extra argument 'delegate' in call
case .retry(let recoveredRequest): return try await execute(request: recoveredRequest, delegate: delegate)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~
[5/13] Compiling Hyperspace BackendServicing.swift
/host/spi-builder-workspace/Sources/Service/Transport/Transporting.swift:23:27: error: cannot find type 'URLRequest' in scope
func execute(request: URLRequest) async throws -> TransportSuccess
^~~~~~~~~~
/host/spi-builder-workspace/Sources/Service/Transport/Transporting.swift:30:27: error: cannot find type 'URLRequest' in scope
func execute(request: URLRequest, delegate: TransportTaskDelegate?) async throws -> TransportSuccess
^~~~~~~~~~
/host/spi-builder-workspace/Sources/Service/Transport/TransportSession.swift:11:42: error: cannot find type 'URLSessionTaskDelegate' in scope
public typealias TransportTaskDelegate = URLSessionTaskDelegate
^~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Request/Request.swift:83:28: error: cannot find type 'URLRequest' in scope
public var urlRequest: URLRequest {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/Service/Backend/BackendService.swift:75:113: error: extra argument 'delegate' in call
return try await attemptToRecover(from: transportFailure, executing: preparedRequest, delegate: delegate)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~
/host/spi-builder-workspace/Sources/Service/Backend/BackendService.swift:80:98: error: extra argument 'delegate' in call
return try await attemptToRecover(from: error, executing: preparedRequest, delegate: delegate)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~
/host/spi-builder-workspace/Sources/Service/Backend/BackendServicing.swift:91:110: error: extra argument 'delegate' in call
case .retry(let recoveredRequest): return try await execute(request: recoveredRequest, delegate: delegate)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~
[6/13] Compiling Hyperspace Request+Decodable.swift
/host/spi-builder-workspace/Sources/Request/Request+Decodable.swift:47:23: error: cannot find type 'URLRequest' in scope
cachePolicy: URLRequest.CachePolicy = RequestDefaults.defaultCachePolicy,
^~~~~~~~~~
/host/spi-builder-workspace/Sources/Request/Request+Decodable.swift:58:54: error: cannot find type 'URLRequest' in scope
cachePolicy: URLRequest.CachePolicy = RequestDefaults.defaultCachePolicy,
^~~~~~~~~~
/host/spi-builder-workspace/Sources/Request/Request.swift:70:30: error: cannot find type 'URLRequest' in scope
cachePolicy: URLRequest.CachePolicy = RequestDefaults.defaultCachePolicy,
^~~~~~~~~~
/host/spi-builder-workspace/Sources/Request/Request+EmptyDecodingStrategy.swift:17:48: error: cannot find type 'URLRequest' in scope
cachePolicy: URLRequest.CachePolicy = RequestDefaults.defaultCachePolicy,
^~~~~~~~~~
[7/13] Compiling Hyperspace Request+EmptyDecodingStrategy.swift
/host/spi-builder-workspace/Sources/Request/Request+Decodable.swift:47:23: error: cannot find type 'URLRequest' in scope
cachePolicy: URLRequest.CachePolicy = RequestDefaults.defaultCachePolicy,
^~~~~~~~~~
/host/spi-builder-workspace/Sources/Request/Request+Decodable.swift:58:54: error: cannot find type 'URLRequest' in scope
cachePolicy: URLRequest.CachePolicy = RequestDefaults.defaultCachePolicy,
^~~~~~~~~~
/host/spi-builder-workspace/Sources/Request/Request.swift:70:30: error: cannot find type 'URLRequest' in scope
cachePolicy: URLRequest.CachePolicy = RequestDefaults.defaultCachePolicy,
^~~~~~~~~~
/host/spi-builder-workspace/Sources/Request/Request+EmptyDecodingStrategy.swift:17:48: error: cannot find type 'URLRequest' in scope
cachePolicy: URLRequest.CachePolicy = RequestDefaults.defaultCachePolicy,
^~~~~~~~~~
[8/13] Compiling Hyperspace TransportResult.swift
[9/13] Compiling Hyperspace RecoveryStrategy.swift
/host/spi-builder-workspace/Sources/Request/Request.swift:35:29: error: cannot find type 'URLRequest' in scope
public var cachePolicy: URLRequest.CachePolicy
^~~~~~~~~~
/host/spi-builder-workspace/Sources/Request/Request.URLRequestCreationStrategy.swift:16:41: error: cannot find type 'URLRequest' in scope
let creationBlock: (Request) -> URLRequest
^~~~~~~~~~
[10/13] Compiling Hyperspace Transporting.swift
/host/spi-builder-workspace/Sources/Service/Transport/Transporting.swift:23:27: error: cannot find type 'URLRequest' in scope
func execute(request: URLRequest) async throws -> TransportSuccess
^~~~~~~~~~
/host/spi-builder-workspace/Sources/Service/Transport/Transporting.swift:30:27: error: cannot find type 'URLRequest' in scope
func execute(request: URLRequest, delegate: TransportTaskDelegate?) async throws -> TransportSuccess
^~~~~~~~~~
/host/spi-builder-workspace/Sources/Service/Transport/TransportSession.swift:11:42: error: cannot find type 'URLSessionTaskDelegate' in scope
public typealias TransportTaskDelegate = URLSessionTaskDelegate
^~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Service/Transport/TransportSession.swift:21:28: error: cannot find type 'URLRequest' in scope
func data(for request: URLRequest) async throws -> (Data, URLResponse)
^~~~~~~~~~
/host/spi-builder-workspace/Sources/Service/Transport/TransportSession.swift:24:28: error: cannot find type 'URLRequest' in scope
func data(for request: URLRequest, delegate: TransportTaskDelegate?) async throws -> (Data, URLResponse)
^~~~~~~~~~
/host/spi-builder-workspace/Sources/Service/Transport/Transporting.swift:43:56: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
public init(session: TransportSession = URLSession.shared, networkActivityIndicatable: NetworkActivityIndicatable? = nil) {
~~~~~~~~~~ ^~~~~~
/host/spi-builder-workspace/Sources/Service/Transport/Transporting.swift:60:34: error: cannot find type 'URLRequest' in scope
public func execute(request: URLRequest) async throws -> TransportSuccess {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/Service/Transport/Transporting.swift:73:34: error: cannot find type 'URLRequest' in scope
public func execute(request: URLRequest, delegate: TransportTaskDelegate? = nil) async throws -> TransportSuccess {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/Service/Transport/Transporting.swift:49:28: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
self.init(session: URLSession(configuration: sessionConfiguration), networkActivityIndicatable: networkActivityIndicatable)
^~~~~~~~~~
/host/spi-builder-workspace/Sources/HTTP/HTTP.swift:153:33: error: cannot find type 'URLRequest' in scope
public init(urlRequest: URLRequest) {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/Service/Transport/Transporting.swift:68:65: error: extra argument 'urlRequest' in call
let response = HTTP.Response(request: .init(urlRequest: request), httpURLResponse: httpURLResponse, body: data)
~~~~~~~~~~~~~^~~~~~~~
/host/spi-builder-workspace/Sources/Service/Transport/Transporting.swift:81:65: error: extra argument 'urlRequest' in call
let response = HTTP.Response(request: .init(urlRequest: request), httpURLResponse: httpURLResponse, body: data)
~~~~~~~~~~~~~^~~~~~~~
error: emit-module command failed with exit code 1 (use -v to see invocation)
[11/13] Emitting module Hyperspace
/host/spi-builder-workspace/Sources/HTTP/HTTP.swift:153:33: error: cannot find type 'URLRequest' in scope
public init(urlRequest: URLRequest) {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/HTTP/HTTP.swift:199:61: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
public init(request: HTTP.Request, httpURLResponse: HTTPURLResponse, body: Data? = nil) {
^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
^
/host/spi-builder-workspace/Sources/Request/Request+Decodable.swift:47:23: error: cannot find type 'URLRequest' in scope
cachePolicy: URLRequest.CachePolicy = RequestDefaults.defaultCachePolicy,
^~~~~~~~~~
/host/spi-builder-workspace/Sources/Request/Request+Decodable.swift:58:54: error: cannot find type 'URLRequest' in scope
cachePolicy: URLRequest.CachePolicy = RequestDefaults.defaultCachePolicy,
^~~~~~~~~~
/host/spi-builder-workspace/Sources/Request/Request+EmptyDecodingStrategy.swift:17:48: error: cannot find type 'URLRequest' in scope
cachePolicy: URLRequest.CachePolicy = RequestDefaults.defaultCachePolicy,
^~~~~~~~~~
/host/spi-builder-workspace/Sources/Request/Request.URLRequestCreationStrategy.swift:16:41: error: cannot find type 'URLRequest' in scope
let creationBlock: (Request) -> URLRequest
^~~~~~~~~~
/host/spi-builder-workspace/Sources/Request/Request.URLRequestCreationStrategy.swift:19:52: error: cannot find type 'URLRequest' in scope
func urlRequest(using request: Request) -> URLRequest {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/Request/Request.URLRequestCreationStrategy.swift:24:75: error: cannot find type 'URLRequest' in scope
public static func custom(_ creationBlock: @escaping (Request) -> URLRequest) -> URLRequestCreationStrategy {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/Request/Request.swift:35:29: error: cannot find type 'URLRequest' in scope
public var cachePolicy: URLRequest.CachePolicy
^~~~~~~~~~
/host/spi-builder-workspace/Sources/Request/Request.swift:70:30: error: cannot find type 'URLRequest' in scope
cachePolicy: URLRequest.CachePolicy = RequestDefaults.defaultCachePolicy,
^~~~~~~~~~
/host/spi-builder-workspace/Sources/Request/Request.swift:83:28: error: cannot find type 'URLRequest' in scope
public var urlRequest: URLRequest {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/Request/Request.swift:166:43: error: cannot find type 'URLRequest' in scope
public static var defaultCachePolicy: URLRequest.CachePolicy = .useProtocolCachePolicy
^~~~~~~~~~
/host/spi-builder-workspace/Sources/Service/Transport/Transporting.swift:23:27: error: cannot find type 'URLRequest' in scope
func execute(request: URLRequest) async throws -> TransportSuccess
^~~~~~~~~~
/host/spi-builder-workspace/Sources/Service/Transport/Transporting.swift:30:27: error: cannot find type 'URLRequest' in scope
func execute(request: URLRequest, delegate: TransportTaskDelegate?) async throws -> TransportSuccess
^~~~~~~~~~
/host/spi-builder-workspace/Sources/Service/Transport/TransportSession.swift:11:42: error: cannot find type 'URLSessionTaskDelegate' in scope
public typealias TransportTaskDelegate = URLSessionTaskDelegate
^~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Service/Transport/TransportSession.swift:28:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
extension URLSession: TransportSession {
^ ~~~~~~~~~~
/host/spi-builder-workspace/Sources/Service/Transport/TransportSession.swift:51:8: error: non-nominal type 'TransportSessionConfiguration' (aka 'AnyObject') cannot be extended
public extension TransportSessionConfiguration {
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Service/Transport/TransportSession.swift:10:50: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
public typealias TransportSessionConfiguration = URLSessionConfiguration
^~~~~~~~~~~~~~~~~~~~~~~
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' has been explicitly marked unavailable here
public typealias URLSessionConfiguration = AnyObject
^
/host/spi-builder-workspace/Sources/Service/Transport/TransportSession.swift:21:28: error: cannot find type 'URLRequest' in scope
func data(for request: URLRequest) async throws -> (Data, URLResponse)
^~~~~~~~~~
/host/spi-builder-workspace/Sources/Service/Transport/TransportSession.swift:21:63: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
func data(for request: URLRequest) 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/Service/Transport/TransportSession.swift:24:28: error: cannot find type 'URLRequest' in scope
func data(for request: URLRequest, delegate: TransportTaskDelegate?) async throws -> (Data, URLResponse)
^~~~~~~~~~
/host/spi-builder-workspace/Sources/Service/Transport/TransportSession.swift:24:97: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
func data(for request: URLRequest, delegate: TransportTaskDelegate?) 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/Service/Transport/Transporting.swift:43:56: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
public init(session: TransportSession = URLSession.shared, networkActivityIndicatable: NetworkActivityIndicatable? = nil) {
~~~~~~~~~~ ^~~~~~
/host/spi-builder-workspace/Sources/Service/Transport/Transporting.swift:60:34: error: cannot find type 'URLRequest' in scope
public func execute(request: URLRequest) async throws -> TransportSuccess {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/Service/Transport/Transporting.swift:73:34: error: cannot find type 'URLRequest' in scope
public func execute(request: URLRequest, delegate: TransportTaskDelegate? = nil) async throws -> TransportSuccess {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/Service/Transport/Transporting.swift:49:28: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
self.init(session: URLSession(configuration: sessionConfiguration), networkActivityIndicatable: networkActivityIndicatable)
^~~~~~~~~~
[12/13] Compiling Hyperspace HTTP.Body.swift
/host/spi-builder-workspace/Sources/HTTP/HTTP.swift:153:33: error: cannot find type 'URLRequest' in scope
public init(urlRequest: URLRequest) {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/HTTP/HTTP.swift:199:61: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
public init(request: HTTP.Request, httpURLResponse: HTTPURLResponse, body: Data? = nil) {
^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
^
/host/spi-builder-workspace/Sources/HTTP/HTTP.swift:156:82: error: cannot infer contextual base in reference to member 'init'
headers: Dictionary(uniqueKeysWithValues: headers?.map { (.init(rawValue: $0.key), .init(rawValue: $0.value)) } ?? []),
~^~~~
/host/spi-builder-workspace/Sources/HTTP/HTTP.swift:156:107: error: cannot infer contextual base in reference to member 'init'
headers: Dictionary(uniqueKeysWithValues: headers?.map { (.init(rawValue: $0.key), .init(rawValue: $0.value)) } ?? []),
~^~~~
/host/spi-builder-workspace/Sources/HTTP/HTTP.swift:200:43: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
let headers = httpURLResponse.allHeaderFields as? [String: String]
~~~~~~~~~~~~~~~ ^~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/HTTP/HTTP.swift:201:63: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
self.init(request: request, code: httpURLResponse.statusCode, url: httpURLResponse.url,
~~~~~~~~~~~~~~~ ^~~~~~~~~~
/host/spi-builder-workspace/Sources/HTTP/HTTP.swift:201:96: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'url'
self.init(request: request, code: httpURLResponse.statusCode, url: httpURLResponse.url,
~~~~~~~~~~~~~~~ ^~~
/host/spi-builder-workspace/Sources/HTTP/HTTP.swift:202:82: error: cannot infer contextual base in reference to member 'init'
headers: Dictionary(uniqueKeysWithValues: headers?.map { (.init(rawValue: $0.key), .init(rawValue: $0.value)) } ?? []),
~^~~~
/host/spi-builder-workspace/Sources/HTTP/HTTP.swift:202:107: error: cannot infer contextual base in reference to member 'init'
headers: Dictionary(uniqueKeysWithValues: headers?.map { (.init(rawValue: $0.key), .init(rawValue: $0.value)) } ?? []),
~^~~~
/host/spi-builder-workspace/Sources/HTTP/HTTP.swift:214:36: error: type 'HTTPURLResponse' (aka 'AnyObject') has no member 'localizedString'
return HTTPURLResponse.localizedString(forStatusCode: code)
~~~~~~~~~~~~~~~ ^~~~~~~~~~~~~~~
[13/13] Compiling Hyperspace HTTP.swift
/host/spi-builder-workspace/Sources/HTTP/HTTP.swift:153:33: error: cannot find type 'URLRequest' in scope
public init(urlRequest: URLRequest) {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/HTTP/HTTP.swift:199:61: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
public init(request: HTTP.Request, httpURLResponse: HTTPURLResponse, body: Data? = nil) {
^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
^
/host/spi-builder-workspace/Sources/HTTP/HTTP.swift:156:82: error: cannot infer contextual base in reference to member 'init'
headers: Dictionary(uniqueKeysWithValues: headers?.map { (.init(rawValue: $0.key), .init(rawValue: $0.value)) } ?? []),
~^~~~
/host/spi-builder-workspace/Sources/HTTP/HTTP.swift:156:107: error: cannot infer contextual base in reference to member 'init'
headers: Dictionary(uniqueKeysWithValues: headers?.map { (.init(rawValue: $0.key), .init(rawValue: $0.value)) } ?? []),
~^~~~
/host/spi-builder-workspace/Sources/HTTP/HTTP.swift:200:43: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
let headers = httpURLResponse.allHeaderFields as? [String: String]
~~~~~~~~~~~~~~~ ^~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/HTTP/HTTP.swift:201:63: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
self.init(request: request, code: httpURLResponse.statusCode, url: httpURLResponse.url,
~~~~~~~~~~~~~~~ ^~~~~~~~~~
/host/spi-builder-workspace/Sources/HTTP/HTTP.swift:201:96: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'url'
self.init(request: request, code: httpURLResponse.statusCode, url: httpURLResponse.url,
~~~~~~~~~~~~~~~ ^~~
/host/spi-builder-workspace/Sources/HTTP/HTTP.swift:202:82: error: cannot infer contextual base in reference to member 'init'
headers: Dictionary(uniqueKeysWithValues: headers?.map { (.init(rawValue: $0.key), .init(rawValue: $0.value)) } ?? []),
~^~~~
/host/spi-builder-workspace/Sources/HTTP/HTTP.swift:202:107: error: cannot infer contextual base in reference to member 'init'
headers: Dictionary(uniqueKeysWithValues: headers?.map { (.init(rawValue: $0.key), .init(rawValue: $0.value)) } ?? []),
~^~~~
/host/spi-builder-workspace/Sources/HTTP/HTTP.swift:214:36: error: type 'HTTPURLResponse' (aka 'AnyObject') has no member 'localizedString'
return HTTPURLResponse.localizedString(forStatusCode: code)
~~~~~~~~~~~~~~~ ^~~~~~~~~~~~~~~
error: fatalError
BUILD FAILURE 5.9 linux