Build Information
Failed to build NetworkLayer with Swift 5.9 for Linux.
Build Command
Build command unavailable
Build Log
========================================
RunAll
========================================
Builder version: 4.27.2
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/space-code/network-layer.git
Reference: 1.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/space-code/network-layer
* tag 1.0.0 -> FETCH_HEAD
HEAD is now at dfb2ee4 Implement `network-layer` package (#1)
Cloned https://github.com/space-code/network-layer.git
Revision (git rev-parse @):
dfb2ee4beaa55a5e10551d7ef3e20d0362c9c27d
SUCCESS checkout https://github.com/space-code/network-layer.git at 1.0.0
========================================
Build
========================================
Selected platform: linux
Swift version: 5.9
Building package at path: $PWD/checkout
Running build ...
bash -c docker run --rm -v "checkouts-4609320-1":/host -w "$PWD/checkout" registry.gitlab.com/finestructure/spi-images:basic-5.9-latest swift build 2>&1
Fetching https://github.com/space-code/typhoon
Fetching https://github.com/WeTransfer/Mocker
Fetching https://github.com/space-code/atomic
[1/1810] Fetching mocker
[237/1914] Fetching mocker, typhoon
[295/2068] Fetching mocker, typhoon, atomic
Fetched https://github.com/space-code/typhoon (0.52s)
Fetched https://github.com/WeTransfer/Mocker (0.52s)
Fetched https://github.com/space-code/atomic (0.52s)
Computing version for https://github.com/WeTransfer/Mocker
Computed https://github.com/WeTransfer/Mocker at 3.0.1 (1.46s)
Computing version for https://github.com/space-code/typhoon
Computed https://github.com/space-code/typhoon at 1.0.0 (0.35s)
Computing version for https://github.com/space-code/atomic
Computed https://github.com/space-code/atomic at 1.0.0 (0.45s)
Creating working copy for https://github.com/WeTransfer/Mocker
Working copy of https://github.com/WeTransfer/Mocker resolved at 3.0.1
Creating working copy for https://github.com/space-code/typhoon
Working copy of https://github.com/space-code/typhoon resolved at 1.0.0
Creating working copy for https://github.com/space-code/atomic
Working copy of https://github.com/space-code/atomic resolved at 1.0.0
Building for debugging...
[1/12] Compiling Atomic UnfairLock.swift
/host/spi-builder-workspace/.build/checkouts/atomic/Sources/Atomic/Classes/Helpers/Lock/UnfairLock.swift:15:29: error: cannot find type 'os_unfair_lock_t' in scope
private let unfairLock: os_unfair_lock_t
^~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/atomic/Sources/Atomic/Classes/Helpers/Lock/UnfairLock.swift:21:23: error: cannot infer contextual base in reference to member 'allocate'
unfairLock = .allocate(capacity: 1)
~^~~~~~~~
/host/spi-builder-workspace/.build/checkouts/atomic/Sources/Atomic/Classes/Helpers/Lock/UnfairLock.swift:22:35: error: cannot find 'os_unfair_lock' in scope
unfairLock.initialize(to: os_unfair_lock())
^~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/atomic/Sources/Atomic/Classes/Helpers/Lock/UnfairLock.swift:35:9: error: cannot find 'os_unfair_lock_lock' in scope
os_unfair_lock_lock(unfairLock)
^~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/atomic/Sources/Atomic/Classes/Helpers/Lock/UnfairLock.swift:39:9: error: cannot find 'os_unfair_lock_unlock' in scope
os_unfair_lock_unlock(unfairLock)
^~~~~~~~~~~~~~~~~~~~~
[2/12] Compiling Typhoon RetryPolicyService.swift
[3/12] Compiling Typhoon RetryPolicyError.swift
[4/12] Compiling Typhoon RetrySequence.swift
[5/12] Compiling Typhoon IRetryPolicyService.swift
[6/12] Compiling Typhoon RetryIterator.swift
[7/12] Compiling Typhoon RetryPolicyStrategy.swift
[8/12] Emitting module Typhoon
[9/12] Compiling Typhoon DispatchTimeInterval+Double.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[12/14] Compiling Atomic ILock.swift
[13/14] Emitting module Atomic
/host/spi-builder-workspace/.build/checkouts/atomic/Sources/Atomic/Classes/Helpers/Lock/UnfairLock.swift:15:29: error: cannot find type 'os_unfair_lock_t' in scope
private let unfairLock: os_unfair_lock_t
^~~~~~~~~~~~~~~~
[14/14] Compiling Atomic Atomic.swift
/host/spi-builder-workspace/.build/checkouts/atomic/Sources/Atomic/Classes/Helpers/Lock/UnfairLock.swift:15:29: error: cannot find type 'os_unfair_lock_t' in scope
private let unfairLock: os_unfair_lock_t
^~~~~~~~~~~~~~~~
error: fatalError
[0/1] Planning build
Building for debugging...
[1/16] Compiling NetworkLayerInterfaces RequestBody.swift
/host/spi-builder-workspace/Sources/NetworkLayerInterfaces/Classes/Core/Models/Response.swift:14:26: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
public let response: URLResponse
^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
^
/host/spi-builder-workspace/Sources/NetworkLayerInterfaces/Classes/Core/Models/Response.swift:17:22: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
public let task: URLSessionTask
^~~~~~~~~~~~~~
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
public typealias URLSessionTask = AnyObject
^
/host/spi-builder-workspace/Sources/NetworkLayerInterfaces/Classes/Core/Models/Response.swift:28:36: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
public init(data: T, response: URLResponse, task: URLSessionTask) {
^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
^
/host/spi-builder-workspace/Sources/NetworkLayerInterfaces/Classes/Core/Models/Response.swift:28:55: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
public init(data: T, response: URLResponse, task: URLSessionTask) {
^~~~~~~~~~~~~~
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
public typealias URLSessionTask = AnyObject
^
/host/spi-builder-workspace/Sources/NetworkLayerInterfaces/Classes/Core/Models/Response.swift:31:32: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
statusCode = (response as? HTTPURLResponse)?.statusCode
^
/host/spi-builder-workspace/Sources/NetworkLayerInterfaces/Classes/Core/Models/Response.swift:31:54: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
statusCode = (response as? HTTPURLResponse)?.statusCode
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^~~~~~~~~~
[2/16] Compiling NetworkLayerInterfaces Response.swift
/host/spi-builder-workspace/Sources/NetworkLayerInterfaces/Classes/Core/Models/Response.swift:14:26: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
public let response: URLResponse
^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
^
/host/spi-builder-workspace/Sources/NetworkLayerInterfaces/Classes/Core/Models/Response.swift:17:22: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
public let task: URLSessionTask
^~~~~~~~~~~~~~
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
public typealias URLSessionTask = AnyObject
^
/host/spi-builder-workspace/Sources/NetworkLayerInterfaces/Classes/Core/Models/Response.swift:28:36: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
public init(data: T, response: URLResponse, task: URLSessionTask) {
^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
^
/host/spi-builder-workspace/Sources/NetworkLayerInterfaces/Classes/Core/Models/Response.swift:28:55: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
public init(data: T, response: URLResponse, task: URLSessionTask) {
^~~~~~~~~~~~~~
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
public typealias URLSessionTask = AnyObject
^
/host/spi-builder-workspace/Sources/NetworkLayerInterfaces/Classes/Core/Models/Response.swift:31:32: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
statusCode = (response as? HTTPURLResponse)?.statusCode
^
/host/spi-builder-workspace/Sources/NetworkLayerInterfaces/Classes/Core/Models/Response.swift:31:54: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
statusCode = (response as? HTTPURLResponse)?.statusCode
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^~~~~~~~~~
error: emit-module command failed with exit code 1 (use -v to see invocation)
[3/18] Emitting module NetworkLayerInterfaces
/host/spi-builder-workspace/Sources/NetworkLayerInterfaces/Classes/Core/Authenticator/IAuthenticationInterceptor.swift:15:31: error: cannot find type 'URLRequest' in scope
func adapt(request: inout URLRequest, for session: URLSession) async throws
^~~~~~~~~~
/host/spi-builder-workspace/Sources/NetworkLayerInterfaces/Classes/Core/Authenticator/IAuthenticationInterceptor.swift:15:56: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
func adapt(request: inout URLRequest, for session: URLSession) async throws
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/host/spi-builder-workspace/Sources/NetworkLayerInterfaces/Classes/Core/Authenticator/IAuthenticationInterceptor.swift:22:29: error: cannot find type 'URLRequest' in scope
func refresh(_ request: URLRequest, with response: HTTPURLResponse, for session: URLSession) async throws
^~~~~~~~~~
/host/spi-builder-workspace/Sources/NetworkLayerInterfaces/Classes/Core/Authenticator/IAuthenticationInterceptor.swift:22:56: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
func refresh(_ request: URLRequest, with response: HTTPURLResponse, for session: URLSession) async throws
^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
^
/host/spi-builder-workspace/Sources/NetworkLayerInterfaces/Classes/Core/Authenticator/IAuthenticationInterceptor.swift:22:86: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
func refresh(_ request: URLRequest, with response: HTTPURLResponse, for session: URLSession) async throws
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/host/spi-builder-workspace/Sources/NetworkLayerInterfaces/Classes/Core/Authenticator/IAuthenticationInterceptor.swift:31:38: error: cannot find type 'URLRequest' in scope
func isRequireRefresh(_ request: URLRequest, response: HTTPURLResponse) -> Bool
^~~~~~~~~~
/host/spi-builder-workspace/Sources/NetworkLayerInterfaces/Classes/Core/Authenticator/IAuthenticationInterceptor.swift:31:60: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
func isRequireRefresh(_ request: URLRequest, response: HTTPURLResponse) -> Bool
^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
^
/host/spi-builder-workspace/Sources/NetworkLayerInterfaces/Classes/Core/Authenticator/IAuthenticator.swift:17:57: error: cannot find type 'URLRequest' in scope
func apply(_ credential: Credential, to urlRequest: URLRequest) async throws
^~~~~~~~~~
/host/spi-builder-workspace/Sources/NetworkLayerInterfaces/Classes/Core/Authenticator/IAuthenticator.swift:24:57: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
func refresh(_ credential: Credential, for session: URLSession) async throws -> Credential
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/host/spi-builder-workspace/Sources/NetworkLayerInterfaces/Classes/Core/Authenticator/IAuthenticator.swift:33:35: error: cannot find type 'URLRequest' in scope
func didRequest(_ urlRequest: URLRequest, with response: HTTPURLResponse) -> Bool
^~~~~~~~~~
/host/spi-builder-workspace/Sources/NetworkLayerInterfaces/Classes/Core/Authenticator/IAuthenticator.swift:33:62: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
func didRequest(_ urlRequest: URLRequest, with response: HTTPURLResponse) -> Bool
^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
^
/host/spi-builder-workspace/Sources/NetworkLayerInterfaces/Classes/Core/Authenticator/IAuthenticator.swift:42:34: error: cannot find type 'URLRequest' in scope
func isRequest(_ urlRequest: URLRequest, authenticatedWith credential: Credential) -> Bool
^~~~~~~~~~
/host/spi-builder-workspace/Sources/NetworkLayerInterfaces/Classes/Core/Models/Configuration.swift:13:38: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
public let sessionConfiguration: URLSessionConfiguration
^~~~~~~~~~~~~~~~~~~~~~~
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' has been explicitly marked unavailable here
public typealias URLSessionConfiguration = AnyObject
^
/host/spi-builder-workspace/Sources/NetworkLayerInterfaces/Classes/Core/Models/Configuration.swift:16:33: error: cannot find type 'URLSessionDelegate' in scope
public let sessionDelegate: URLSessionDelegate?
^~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/NetworkLayerInterfaces/Classes/Core/Models/Configuration.swift:34:26: error: cannot find type 'URLSessionDelegate' in scope
sessionDelegate: URLSessionDelegate?,
^~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/NetworkLayerInterfaces/Classes/Core/Models/Configuration.swift:33:31: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
sessionConfiguration: URLSessionConfiguration,
^~~~~~~~~~~~~~~~~~~~~~~
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' has been explicitly marked unavailable here
public typealias URLSessionConfiguration = AnyObject
^
/host/spi-builder-workspace/Sources/NetworkLayerInterfaces/Classes/Core/Models/IRequest.swift:37:22: error: cannot find type 'URLRequest' in scope
var cachePolicy: URLRequest.CachePolicy { get }
^~~~~~~~~~
/host/spi-builder-workspace/Sources/NetworkLayerInterfaces/Classes/Core/Models/IRequest.swift:67:22: error: cannot find type 'URLRequest' in scope
var cachePolicy: URLRequest.CachePolicy {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/NetworkLayerInterfaces/Classes/Core/Models/Response.swift:14:26: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
public let response: URLResponse
^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
^
/host/spi-builder-workspace/Sources/NetworkLayerInterfaces/Classes/Core/Models/Response.swift:17:22: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
public let task: URLSessionTask
^~~~~~~~~~~~~~
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
public typealias URLSessionTask = AnyObject
^
/host/spi-builder-workspace/Sources/NetworkLayerInterfaces/Classes/Core/Models/Response.swift:28:36: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
public init(data: T, response: URLResponse, task: URLSessionTask) {
^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
^
/host/spi-builder-workspace/Sources/NetworkLayerInterfaces/Classes/Core/Models/Response.swift:28:55: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
public init(data: T, response: URLResponse, task: URLSessionTask) {
^~~~~~~~~~~~~~
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
public typealias URLSessionTask = AnyObject
^
/host/spi-builder-workspace/Sources/NetworkLayerInterfaces/Classes/Core/Services/IDataRequestHandler.swift:9:38: error: cannot find type 'URLSessionTaskDelegate' in scope
public protocol IDataRequestHandler: URLSessionTaskDelegate & URLSessionDataDelegate {
^~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/NetworkLayerInterfaces/Classes/Core/Services/IDataRequestHandler.swift:10:29: error: cannot find type 'URLSessionDelegate' in scope
var urlSessionDelegate: URLSessionDelegate? { get set }
^~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/NetworkLayerInterfaces/Classes/Core/Services/IDataRequestHandler.swift:21:19: error: cannot find type 'URLSessionDelegate' in scope
delegate: URLSessionDelegate?
^~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/NetworkLayerInterfaces/Classes/Core/Services/IDataRequestHandler.swift:20:17: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
_ task: URLSessionDataTask,
^~~~~~~~~~~~~~~~~~
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' has been explicitly marked unavailable here
public typealias URLSessionDataTask = AnyObject
^
/host/spi-builder-workspace/Sources/NetworkLayerInterfaces/Classes/Core/Services/IRequestBuilder.swift:15:98: error: cannot find type 'URLRequest' in scope
func build(_ request: IRequest, _ configure: ((inout URLRequest) throws -> Void)?) throws -> URLRequest?
^~~~~~~~~~
/host/spi-builder-workspace/Sources/NetworkLayerInterfaces/Classes/Core/Services/IRequestBuilder.swift:15:58: error: cannot find type 'URLRequest' in scope
func build(_ request: IRequest, _ configure: ((inout URLRequest) throws -> Void)?) throws -> URLRequest?
^~~~~~~~~~
/host/spi-builder-workspace/Sources/NetworkLayerInterfaces/Classes/Core/Services/IRequestProcessor.swift:24:19: error: cannot find type 'URLSessionDelegate' in scope
delegate: URLSessionDelegate?,
^~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/NetworkLayerInterfaces/Classes/Core/Services/IRequestProcessor.swift:25:28: error: cannot find type 'URLRequest' in scope
configure: ((inout URLRequest) throws -> Void)?
^~~~~~~~~~
/host/spi-builder-workspace/Sources/NetworkLayerInterfaces/Classes/Core/Services/RequestProcessorDelegate.swift:17:91: error: cannot find type 'URLRequest' in scope
func requestProcessor(_ requestProcessor: IRequestProcessor, willSendRequest request: URLRequest) async throws
^~~~~~~~~~
/host/spi-builder-workspace/Sources/NetworkLayerInterfaces/Classes/Core/Services/RequestProcessorDelegate.swift:28:36: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
validateResponse response: HTTPURLResponse,
^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
^
/host/spi-builder-workspace/Sources/NetworkLayerInterfaces/Classes/Core/Services/RequestProcessorDelegate.swift:30:15: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
task: URLSessionTask
^~~~~~~~~~~~~~
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
public typealias URLSessionTask = AnyObject
^
/host/spi-builder-workspace/Sources/NetworkLayerInterfaces/Classes/Core/Services/RequestProcessorDelegate.swift:35:68: error: cannot find type 'URLRequest' in scope
func requestProcessor(_: IRequestProcessor, willSendRequest _: URLRequest) async throws {}
^~~~~~~~~~
[4/19] Compiling NetworkLayerInterfaces IAuthenticationInterceptor.swift
/host/spi-builder-workspace/Sources/NetworkLayerInterfaces/Classes/Core/Authenticator/IAuthenticationInterceptor.swift:15:31: error: cannot find type 'URLRequest' in scope
func adapt(request: inout URLRequest, for session: URLSession) async throws
^~~~~~~~~~
/host/spi-builder-workspace/Sources/NetworkLayerInterfaces/Classes/Core/Authenticator/IAuthenticationInterceptor.swift:15:56: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
func adapt(request: inout URLRequest, for session: URLSession) async throws
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/host/spi-builder-workspace/Sources/NetworkLayerInterfaces/Classes/Core/Authenticator/IAuthenticationInterceptor.swift:22:29: error: cannot find type 'URLRequest' in scope
func refresh(_ request: URLRequest, with response: HTTPURLResponse, for session: URLSession) async throws
^~~~~~~~~~
/host/spi-builder-workspace/Sources/NetworkLayerInterfaces/Classes/Core/Authenticator/IAuthenticationInterceptor.swift:22:56: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
func refresh(_ request: URLRequest, with response: HTTPURLResponse, for session: URLSession) async throws
^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
^
/host/spi-builder-workspace/Sources/NetworkLayerInterfaces/Classes/Core/Authenticator/IAuthenticationInterceptor.swift:22:86: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
func refresh(_ request: URLRequest, with response: HTTPURLResponse, for session: URLSession) async throws
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/host/spi-builder-workspace/Sources/NetworkLayerInterfaces/Classes/Core/Authenticator/IAuthenticationInterceptor.swift:31:38: error: cannot find type 'URLRequest' in scope
func isRequireRefresh(_ request: URLRequest, response: HTTPURLResponse) -> Bool
^~~~~~~~~~
/host/spi-builder-workspace/Sources/NetworkLayerInterfaces/Classes/Core/Authenticator/IAuthenticationInterceptor.swift:31:60: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
func isRequireRefresh(_ request: URLRequest, response: HTTPURLResponse) -> Bool
^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
^
/host/spi-builder-workspace/Sources/NetworkLayerInterfaces/Classes/Core/Authenticator/IAuthenticator.swift:17:57: error: cannot find type 'URLRequest' in scope
func apply(_ credential: Credential, to urlRequest: URLRequest) async throws
^~~~~~~~~~
/host/spi-builder-workspace/Sources/NetworkLayerInterfaces/Classes/Core/Authenticator/IAuthenticator.swift:24:57: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
func refresh(_ credential: Credential, for session: URLSession) async throws -> Credential
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/host/spi-builder-workspace/Sources/NetworkLayerInterfaces/Classes/Core/Authenticator/IAuthenticator.swift:33:35: error: cannot find type 'URLRequest' in scope
func didRequest(_ urlRequest: URLRequest, with response: HTTPURLResponse) -> Bool
^~~~~~~~~~
/host/spi-builder-workspace/Sources/NetworkLayerInterfaces/Classes/Core/Authenticator/IAuthenticator.swift:33:62: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
func didRequest(_ urlRequest: URLRequest, with response: HTTPURLResponse) -> Bool
^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
^
/host/spi-builder-workspace/Sources/NetworkLayerInterfaces/Classes/Core/Authenticator/IAuthenticator.swift:42:34: error: cannot find type 'URLRequest' in scope
func isRequest(_ urlRequest: URLRequest, authenticatedWith credential: Credential) -> Bool
^~~~~~~~~~
[5/19] Compiling NetworkLayerInterfaces IAuthenticator.swift
/host/spi-builder-workspace/Sources/NetworkLayerInterfaces/Classes/Core/Authenticator/IAuthenticationInterceptor.swift:15:31: error: cannot find type 'URLRequest' in scope
func adapt(request: inout URLRequest, for session: URLSession) async throws
^~~~~~~~~~
/host/spi-builder-workspace/Sources/NetworkLayerInterfaces/Classes/Core/Authenticator/IAuthenticationInterceptor.swift:15:56: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
func adapt(request: inout URLRequest, for session: URLSession) async throws
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/host/spi-builder-workspace/Sources/NetworkLayerInterfaces/Classes/Core/Authenticator/IAuthenticationInterceptor.swift:22:29: error: cannot find type 'URLRequest' in scope
func refresh(_ request: URLRequest, with response: HTTPURLResponse, for session: URLSession) async throws
^~~~~~~~~~
/host/spi-builder-workspace/Sources/NetworkLayerInterfaces/Classes/Core/Authenticator/IAuthenticationInterceptor.swift:22:56: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
func refresh(_ request: URLRequest, with response: HTTPURLResponse, for session: URLSession) async throws
^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
^
/host/spi-builder-workspace/Sources/NetworkLayerInterfaces/Classes/Core/Authenticator/IAuthenticationInterceptor.swift:22:86: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
func refresh(_ request: URLRequest, with response: HTTPURLResponse, for session: URLSession) async throws
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/host/spi-builder-workspace/Sources/NetworkLayerInterfaces/Classes/Core/Authenticator/IAuthenticationInterceptor.swift:31:38: error: cannot find type 'URLRequest' in scope
func isRequireRefresh(_ request: URLRequest, response: HTTPURLResponse) -> Bool
^~~~~~~~~~
/host/spi-builder-workspace/Sources/NetworkLayerInterfaces/Classes/Core/Authenticator/IAuthenticationInterceptor.swift:31:60: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
func isRequireRefresh(_ request: URLRequest, response: HTTPURLResponse) -> Bool
^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
^
/host/spi-builder-workspace/Sources/NetworkLayerInterfaces/Classes/Core/Authenticator/IAuthenticator.swift:17:57: error: cannot find type 'URLRequest' in scope
func apply(_ credential: Credential, to urlRequest: URLRequest) async throws
^~~~~~~~~~
/host/spi-builder-workspace/Sources/NetworkLayerInterfaces/Classes/Core/Authenticator/IAuthenticator.swift:24:57: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
func refresh(_ credential: Credential, for session: URLSession) async throws -> Credential
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/host/spi-builder-workspace/Sources/NetworkLayerInterfaces/Classes/Core/Authenticator/IAuthenticator.swift:33:35: error: cannot find type 'URLRequest' in scope
func didRequest(_ urlRequest: URLRequest, with response: HTTPURLResponse) -> Bool
^~~~~~~~~~
/host/spi-builder-workspace/Sources/NetworkLayerInterfaces/Classes/Core/Authenticator/IAuthenticator.swift:33:62: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
func didRequest(_ urlRequest: URLRequest, with response: HTTPURLResponse) -> Bool
^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
^
/host/spi-builder-workspace/Sources/NetworkLayerInterfaces/Classes/Core/Authenticator/IAuthenticator.swift:42:34: error: cannot find type 'URLRequest' in scope
func isRequest(_ urlRequest: URLRequest, authenticatedWith credential: Credential) -> Bool
^~~~~~~~~~
[6/19] Compiling NetworkLayerInterfaces Configuration.swift
/host/spi-builder-workspace/Sources/NetworkLayerInterfaces/Classes/Core/Models/Configuration.swift:13:38: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
public let sessionConfiguration: URLSessionConfiguration
^~~~~~~~~~~~~~~~~~~~~~~
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' has been explicitly marked unavailable here
public typealias URLSessionConfiguration = AnyObject
^
/host/spi-builder-workspace/Sources/NetworkLayerInterfaces/Classes/Core/Models/Configuration.swift:16:33: error: cannot find type 'URLSessionDelegate' in scope
public let sessionDelegate: URLSessionDelegate?
^~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/NetworkLayerInterfaces/Classes/Core/Models/Configuration.swift:34:26: error: cannot find type 'URLSessionDelegate' in scope
sessionDelegate: URLSessionDelegate?,
^~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/NetworkLayerInterfaces/Classes/Core/Models/Configuration.swift:33:31: 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
^
[7/19] Compiling NetworkLayerInterfaces HTTPMethod.swift
/host/spi-builder-workspace/Sources/NetworkLayerInterfaces/Classes/Core/Models/Configuration.swift:13:38: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
public let sessionConfiguration: URLSessionConfiguration
^~~~~~~~~~~~~~~~~~~~~~~
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' has been explicitly marked unavailable here
public typealias URLSessionConfiguration = AnyObject
^
/host/spi-builder-workspace/Sources/NetworkLayerInterfaces/Classes/Core/Models/Configuration.swift:16:33: error: cannot find type 'URLSessionDelegate' in scope
public let sessionDelegate: URLSessionDelegate?
^~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/NetworkLayerInterfaces/Classes/Core/Models/Configuration.swift:34:26: error: cannot find type 'URLSessionDelegate' in scope
sessionDelegate: URLSessionDelegate?,
^~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/NetworkLayerInterfaces/Classes/Core/Models/Configuration.swift:33:31: 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
^
[8/19] Compiling NetworkLayerInterfaces AuthenticatorInterceptorError.swift
[9/19] Compiling NetworkLayerInterfaces IAuthenticationCredential.swift
[10/19] Compiling NetworkLayerInterfaces IRequest.swift
/host/spi-builder-workspace/Sources/NetworkLayerInterfaces/Classes/Core/Models/IRequest.swift:37:22: error: cannot find type 'URLRequest' in scope
var cachePolicy: URLRequest.CachePolicy { get }
^~~~~~~~~~
/host/spi-builder-workspace/Sources/NetworkLayerInterfaces/Classes/Core/Models/IRequest.swift:67:22: error: cannot find type 'URLRequest' in scope
var cachePolicy: URLRequest.CachePolicy {
^~~~~~~~~~
[11/19] Compiling NetworkLayerInterfaces NetworkLayerError.swift
/host/spi-builder-workspace/Sources/NetworkLayerInterfaces/Classes/Core/Models/IRequest.swift:37:22: error: cannot find type 'URLRequest' in scope
var cachePolicy: URLRequest.CachePolicy { get }
^~~~~~~~~~
/host/spi-builder-workspace/Sources/NetworkLayerInterfaces/Classes/Core/Models/IRequest.swift:67:22: error: cannot find type 'URLRequest' in scope
var cachePolicy: URLRequest.CachePolicy {
^~~~~~~~~~
[12/19] Compiling NetworkLayerInterfaces IDataRequestHandler.swift
/host/spi-builder-workspace/Sources/NetworkLayerInterfaces/Classes/Core/Services/IDataRequestHandler.swift:9:38: error: cannot find type 'URLSessionTaskDelegate' in scope
public protocol IDataRequestHandler: URLSessionTaskDelegate & URLSessionDataDelegate {
^~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/NetworkLayerInterfaces/Classes/Core/Services/IDataRequestHandler.swift:10:29: error: cannot find type 'URLSessionDelegate' in scope
var urlSessionDelegate: URLSessionDelegate? { get set }
^~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/NetworkLayerInterfaces/Classes/Core/Services/IDataRequestHandler.swift:21:19: error: cannot find type 'URLSessionDelegate' in scope
delegate: URLSessionDelegate?
^~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/NetworkLayerInterfaces/Classes/Core/Services/IDataRequestHandler.swift:20:17: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
_ task: URLSessionDataTask,
^~~~~~~~~~~~~~~~~~
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' has been explicitly marked unavailable here
public typealias URLSessionDataTask = AnyObject
^
/host/spi-builder-workspace/Sources/NetworkLayerInterfaces/Classes/Core/Services/IRequestBuilder.swift:15:98: error: cannot find type 'URLRequest' in scope
func build(_ request: IRequest, _ configure: ((inout URLRequest) throws -> Void)?) throws -> URLRequest?
^~~~~~~~~~
/host/spi-builder-workspace/Sources/NetworkLayerInterfaces/Classes/Core/Services/IRequestBuilder.swift:15:58: error: cannot find type 'URLRequest' in scope
func build(_ request: IRequest, _ configure: ((inout URLRequest) throws -> Void)?) throws -> URLRequest?
^~~~~~~~~~
[13/19] Compiling NetworkLayerInterfaces IRequestBuilder.swift
/host/spi-builder-workspace/Sources/NetworkLayerInterfaces/Classes/Core/Services/IDataRequestHandler.swift:9:38: error: cannot find type 'URLSessionTaskDelegate' in scope
public protocol IDataRequestHandler: URLSessionTaskDelegate & URLSessionDataDelegate {
^~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/NetworkLayerInterfaces/Classes/Core/Services/IDataRequestHandler.swift:10:29: error: cannot find type 'URLSessionDelegate' in scope
var urlSessionDelegate: URLSessionDelegate? { get set }
^~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/NetworkLayerInterfaces/Classes/Core/Services/IDataRequestHandler.swift:21:19: error: cannot find type 'URLSessionDelegate' in scope
delegate: URLSessionDelegate?
^~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/NetworkLayerInterfaces/Classes/Core/Services/IDataRequestHandler.swift:20:17: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
_ task: URLSessionDataTask,
^~~~~~~~~~~~~~~~~~
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' has been explicitly marked unavailable here
public typealias URLSessionDataTask = AnyObject
^
/host/spi-builder-workspace/Sources/NetworkLayerInterfaces/Classes/Core/Services/IRequestBuilder.swift:15:98: error: cannot find type 'URLRequest' in scope
func build(_ request: IRequest, _ configure: ((inout URLRequest) throws -> Void)?) throws -> URLRequest?
^~~~~~~~~~
/host/spi-builder-workspace/Sources/NetworkLayerInterfaces/Classes/Core/Services/IRequestBuilder.swift:15:58: error: cannot find type 'URLRequest' in scope
func build(_ request: IRequest, _ configure: ((inout URLRequest) throws -> Void)?) throws -> URLRequest?
^~~~~~~~~~
[14/19] Compiling NetworkLayerInterfaces IRequestProcessor.swift
/host/spi-builder-workspace/Sources/NetworkLayerInterfaces/Classes/Core/Services/IRequestProcessor.swift:24:19: error: cannot find type 'URLSessionDelegate' in scope
delegate: URLSessionDelegate?,
^~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/NetworkLayerInterfaces/Classes/Core/Services/IRequestProcessor.swift:25:28: error: cannot find type 'URLRequest' in scope
configure: ((inout URLRequest) throws -> Void)?
^~~~~~~~~~
/host/spi-builder-workspace/Sources/NetworkLayerInterfaces/Classes/Core/Services/IRequestProcessor.swift:38:13: error: cannot convert return expression of type 'Int' to return type 'Response<M>'
try await send(request, strategy: strategy, delegate: nil, configure: nil)
~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/NetworkLayerInterfaces/Classes/Core/Services/IRequestProcessor.swift:38:23: error: extraneous argument labels 'strategy:delegate:configure:' in call
try await send(request, strategy: strategy, delegate: nil, configure: nil)
^ ~~~~~~~~~~ ~~~~~~~~~~ ~~~~~~~~~~~
/host/spi-builder-workspace/Sources/NetworkLayerInterfaces/Classes/Core/Services/IRequestProcessor.swift:38:24: error: cannot convert value of type 'T' to expected argument type 'Int32'
try await send(request, strategy: strategy, delegate: nil, configure: nil)
^
as! Int32
/host/spi-builder-workspace/Sources/NetworkLayerInterfaces/Classes/Core/Services/IRequestProcessor.swift:38:63: error: 'nil' is not compatible with expected argument type 'Int'
try await send(request, strategy: strategy, delegate: nil, configure: nil)
^
/host/spi-builder-workspace/Sources/NetworkLayerInterfaces/Classes/Core/Services/IRequestProcessor.swift:38:79: error: 'nil' is not compatible with expected argument type 'Int32'
try await send(request, strategy: strategy, delegate: nil, configure: nil)
^
/host/spi-builder-workspace/Sources/NetworkLayerInterfaces/Classes/Core/Services/IRequestProcessor.swift:38:43: error: cannot convert value of type 'RetryPolicyStrategy?' to expected argument type 'UnsafeRawPointer?'
try await send(request, strategy: strategy, delegate: nil, configure: nil)
^
/host/spi-builder-workspace/Sources/NetworkLayerInterfaces/Classes/Core/Services/IRequestProcessor.swift:38:19: error: use of 'send' refers to instance method rather than global function 'send' in module 'SwiftGlibc'
try await send(request, strategy: strategy, delegate: nil, configure: nil)
^
/host/spi-builder-workspace/Sources/NetworkLayerInterfaces/Classes/Core/Services/IRequestProcessor.swift:38:19: note: use 'SwiftGlibc.' to reference the global function in module 'SwiftGlibc'
try await send(request, strategy: strategy, delegate: nil, configure: nil)
^
SwiftGlibc.
SwiftGlibc.send:1:13: note: 'send' declared here
public func send(_ __fd: Int32, _ __buf: UnsafeRawPointer!, _ __n: Int, _ __flags: Int32) -> Int
^
/host/spi-builder-workspace/Sources/NetworkLayerInterfaces/Classes/Core/Services/RequestProcessorDelegate.swift:17:91: error: cannot find type 'URLRequest' in scope
func requestProcessor(_ requestProcessor: IRequestProcessor, willSendRequest request: URLRequest) async throws
^~~~~~~~~~
/host/spi-builder-workspace/Sources/NetworkLayerInterfaces/Classes/Core/Services/RequestProcessorDelegate.swift:28:36: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
validateResponse response: HTTPURLResponse,
^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
^
/host/spi-builder-workspace/Sources/NetworkLayerInterfaces/Classes/Core/Services/RequestProcessorDelegate.swift:30:15: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
task: URLSessionTask
^~~~~~~~~~~~~~
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
public typealias URLSessionTask = AnyObject
^
/host/spi-builder-workspace/Sources/NetworkLayerInterfaces/Classes/Core/Services/RequestProcessorDelegate.swift:35:68: error: cannot find type 'URLRequest' in scope
func requestProcessor(_: IRequestProcessor, willSendRequest _: URLRequest) async throws {}
^~~~~~~~~~
[15/19] Compiling NetworkLayerInterfaces RequestProcessorDelegate.swift
/host/spi-builder-workspace/Sources/NetworkLayerInterfaces/Classes/Core/Services/IRequestProcessor.swift:24:19: error: cannot find type 'URLSessionDelegate' in scope
delegate: URLSessionDelegate?,
^~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/NetworkLayerInterfaces/Classes/Core/Services/IRequestProcessor.swift:25:28: error: cannot find type 'URLRequest' in scope
configure: ((inout URLRequest) throws -> Void)?
^~~~~~~~~~
/host/spi-builder-workspace/Sources/NetworkLayerInterfaces/Classes/Core/Services/IRequestProcessor.swift:38:13: error: cannot convert return expression of type 'Int' to return type 'Response<M>'
try await send(request, strategy: strategy, delegate: nil, configure: nil)
~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/NetworkLayerInterfaces/Classes/Core/Services/IRequestProcessor.swift:38:23: error: extraneous argument labels 'strategy:delegate:configure:' in call
try await send(request, strategy: strategy, delegate: nil, configure: nil)
^ ~~~~~~~~~~ ~~~~~~~~~~ ~~~~~~~~~~~
/host/spi-builder-workspace/Sources/NetworkLayerInterfaces/Classes/Core/Services/IRequestProcessor.swift:38:24: error: cannot convert value of type 'T' to expected argument type 'Int32'
try await send(request, strategy: strategy, delegate: nil, configure: nil)
^
as! Int32
/host/spi-builder-workspace/Sources/NetworkLayerInterfaces/Classes/Core/Services/IRequestProcessor.swift:38:63: error: 'nil' is not compatible with expected argument type 'Int'
try await send(request, strategy: strategy, delegate: nil, configure: nil)
^
/host/spi-builder-workspace/Sources/NetworkLayerInterfaces/Classes/Core/Services/IRequestProcessor.swift:38:79: error: 'nil' is not compatible with expected argument type 'Int32'
try await send(request, strategy: strategy, delegate: nil, configure: nil)
^
/host/spi-builder-workspace/Sources/NetworkLayerInterfaces/Classes/Core/Services/IRequestProcessor.swift:38:43: error: cannot convert value of type 'RetryPolicyStrategy?' to expected argument type 'UnsafeRawPointer?'
try await send(request, strategy: strategy, delegate: nil, configure: nil)
^
/host/spi-builder-workspace/Sources/NetworkLayerInterfaces/Classes/Core/Services/IRequestProcessor.swift:38:19: error: use of 'send' refers to instance method rather than global function 'send' in module 'SwiftGlibc'
try await send(request, strategy: strategy, delegate: nil, configure: nil)
^
/host/spi-builder-workspace/Sources/NetworkLayerInterfaces/Classes/Core/Services/IRequestProcessor.swift:38:19: note: use 'SwiftGlibc.' to reference the global function in module 'SwiftGlibc'
try await send(request, strategy: strategy, delegate: nil, configure: nil)
^
SwiftGlibc.
SwiftGlibc.send:1:13: note: 'send' declared here
public func send(_ __fd: Int32, _ __buf: UnsafeRawPointer!, _ __n: Int, _ __flags: Int32) -> Int
^
/host/spi-builder-workspace/Sources/NetworkLayerInterfaces/Classes/Core/Services/RequestProcessorDelegate.swift:17:91: error: cannot find type 'URLRequest' in scope
func requestProcessor(_ requestProcessor: IRequestProcessor, willSendRequest request: URLRequest) async throws
^~~~~~~~~~
/host/spi-builder-workspace/Sources/NetworkLayerInterfaces/Classes/Core/Services/RequestProcessorDelegate.swift:28:36: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
validateResponse response: HTTPURLResponse,
^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
^
/host/spi-builder-workspace/Sources/NetworkLayerInterfaces/Classes/Core/Services/RequestProcessorDelegate.swift:30:15: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
task: URLSessionTask
^~~~~~~~~~~~~~
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
public typealias URLSessionTask = AnyObject
^
/host/spi-builder-workspace/Sources/NetworkLayerInterfaces/Classes/Core/Services/RequestProcessorDelegate.swift:35:68: error: cannot find type 'URLRequest' in scope
func requestProcessor(_: IRequestProcessor, willSendRequest _: URLRequest) async throws {}
^~~~~~~~~~
[16/19] Compiling Atomic UnfairLock.swift
/host/spi-builder-workspace/.build/checkouts/atomic/Sources/Atomic/Classes/Helpers/Lock/UnfairLock.swift:15:29: error: cannot find type 'os_unfair_lock_t' in scope
private let unfairLock: os_unfair_lock_t
^~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/atomic/Sources/Atomic/Classes/Helpers/Lock/UnfairLock.swift:21:23: error: cannot infer contextual base in reference to member 'allocate'
unfairLock = .allocate(capacity: 1)
~^~~~~~~~
/host/spi-builder-workspace/.build/checkouts/atomic/Sources/Atomic/Classes/Helpers/Lock/UnfairLock.swift:22:35: error: cannot find 'os_unfair_lock' in scope
unfairLock.initialize(to: os_unfair_lock())
^~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/atomic/Sources/Atomic/Classes/Helpers/Lock/UnfairLock.swift:35:9: error: cannot find 'os_unfair_lock_lock' in scope
os_unfair_lock_lock(unfairLock)
^~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/atomic/Sources/Atomic/Classes/Helpers/Lock/UnfairLock.swift:39:9: error: cannot find 'os_unfair_lock_unlock' in scope
os_unfair_lock_unlock(unfairLock)
^~~~~~~~~~~~~~~~~~~~~
[17/19] Compiling NetworkLayerInterfaces INetworkLayerAssembly.swift
/host/spi-builder-workspace/Sources/NetworkLayerInterfaces/Classes/Core/Services/RequestProcessorDelegate.swift:17:91: error: cannot find type 'URLRequest' in scope
func requestProcessor(_ requestProcessor: IRequestProcessor, willSendRequest request: URLRequest) async throws
^~~~~~~~~~
/host/spi-builder-workspace/Sources/NetworkLayerInterfaces/Classes/Core/Authenticator/IAuthenticationInterceptor.swift:15:31: error: cannot find type 'URLRequest' in scope
func adapt(request: inout URLRequest, for session: URLSession) async throws
^~~~~~~~~~
/host/spi-builder-workspace/Sources/NetworkLayerInterfaces/Classes/Core/Authenticator/IAuthenticationInterceptor.swift:22:29: error: cannot find type 'URLRequest' in scope
func refresh(_ request: URLRequest, with response: HTTPURLResponse, for session: URLSession) async throws
^~~~~~~~~~
/host/spi-builder-workspace/Sources/NetworkLayerInterfaces/Classes/Core/Authenticator/IAuthenticationInterceptor.swift:31:38: error: cannot find type 'URLRequest' in scope
func isRequireRefresh(_ request: URLRequest, response: HTTPURLResponse) -> Bool
^~~~~~~~~~
/host/spi-builder-workspace/Sources/NetworkLayerInterfaces/Classes/Core/Services/IRequestProcessor.swift:24:19: error: cannot find type 'URLSessionDelegate' in scope
delegate: URLSessionDelegate?,
^~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/NetworkLayerInterfaces/Classes/Core/Services/IRequestProcessor.swift:25:28: error: cannot find type 'URLRequest' in scope
configure: ((inout URLRequest) throws -> Void)?
^~~~~~~~~~
error: emit-module command failed with exit code 1 (use -v to see invocation)
[18/19] Emitting module Atomic
/host/spi-builder-workspace/.build/checkouts/atomic/Sources/Atomic/Classes/Helpers/Lock/UnfairLock.swift:15:29: error: cannot find type 'os_unfair_lock_t' in scope
private let unfairLock: os_unfair_lock_t
^~~~~~~~~~~~~~~~
[19/19] Compiling Atomic Atomic.swift
/host/spi-builder-workspace/.build/checkouts/atomic/Sources/Atomic/Classes/Helpers/Lock/UnfairLock.swift:15:29: error: cannot find type 'os_unfair_lock_t' in scope
private let unfairLock: os_unfair_lock_t
^~~~~~~~~~~~~~~~
error: fatalError
BUILD FAILURE 5.9 linux