Build Information
Failed to build NetworkLayer, reference dev (bbb342
), with Swift 6.1 for Linux on 28 Apr 2025 01:58:35 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4609320-1":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.1-latest swift build --triple x86_64-unknown-linux-gnu 2>&1
Build Log
========================================
RunAll
========================================
Builder version: 4.61.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/space-code/network-layer.git
Reference: dev
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
* branch dev -> FETCH_HEAD
* [new branch] dev -> origin/dev
HEAD is now at bbb342f Remove `Package.resolved` (#6)
Cloned https://github.com/space-code/network-layer.git
Revision (git rev-parse @):
bbb342f0a01ce8f124ef32f597566ea55cb7b542
SUCCESS checkout https://github.com/space-code/network-layer.git at dev
========================================
Build
========================================
Selected platform: linux
Swift version: 6.1
Building package at path: $PWD
https://github.com/space-code/network-layer.git
https://github.com/space-code/network-layer.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
"dependencies" : [
{
"identity" : "atomic",
"requirement" : {
"exact" : [
"1.1.0"
]
},
"type" : "sourceControl",
"url" : "https://github.com/space-code/atomic"
},
{
"identity" : "typhoon",
"requirement" : {
"exact" : [
"1.2.1"
]
},
"type" : "sourceControl",
"url" : "https://github.com/space-code/typhoon"
},
{
"identity" : "mocker",
"requirement" : {
"exact" : [
"3.0.1"
]
},
"type" : "sourceControl",
"url" : "https://github.com/WeTransfer/Mocker"
}
],
"manifest_display_name" : "NetworkLayer",
"name" : "NetworkLayer",
"path" : "/host/spi-builder-workspace",
"platforms" : [
{
"name" : "macos",
"version" : "10.15"
},
{
"name" : "ios",
"version" : "13.0"
},
{
"name" : "watchos",
"version" : "7.0"
},
{
"name" : "tvos",
"version" : "13.0"
},
{
"name" : "visionos",
"version" : "1.0"
}
],
"products" : [
{
"name" : "NetworkLayer",
"targets" : [
"NetworkLayer"
],
"type" : {
"library" : [
"automatic"
]
}
},
{
"name" : "NetworkLayerInterfaces",
"targets" : [
"NetworkLayerInterfaces"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "NetworkLayerTests",
"module_type" : "SwiftTarget",
"name" : "NetworkLayerTests",
"path" : "Tests/NetworkLayerTests",
"product_dependencies" : [
"Mocker",
"Typhoon"
],
"resources" : [
{
"path" : "/host/spi-builder-workspace/Tests/NetworkLayerTests/Resources/JSONs/user.json",
"rule" : {
"process" : {
}
}
}
],
"sources" : [
"Classes/Helpers/Fakes/HTTPURLResponse+Fake.swift",
"Classes/Helpers/Fakes/URLRequest+Fake.swift",
"Classes/Helpers/Fakes/URLSessionDataTask+Fake.swift",
"Classes/Helpers/Fakes/URLSessionTask+Fake.swift",
"Classes/Helpers/Helpers/DynamicStubs.swift",
"Classes/Helpers/Helpers/RequestProcessor+Mock.swift",
"Classes/Helpers/Mocks/AuthenticatorMock.swift",
"Classes/Helpers/Mocks/AuthentificatorInterceptorMock.swift",
"Classes/Helpers/Mocks/DataRequestHandlerMock.swift",
"Classes/Helpers/Mocks/RequestBodyEncoderMock.swift",
"Classes/Helpers/Mocks/RequestBuilderMock.swift",
"Classes/Helpers/Mocks/RequestMock.swift",
"Classes/Helpers/Mocks/RequestParametersEncoderMock.swift",
"Classes/Helpers/Mocks/RequestProcessorDelegateMock.swift",
"Classes/Helpers/Mocks/URLSessionDelegateMock.swift",
"Classes/Helpers/Stubs/AuthenticationCredentialStub.swift",
"Classes/Helpers/Stubs/RequestStub.swift",
"Classes/Helpers/Stubs/StubResponse.swift",
"Classes/Models/MockedData.swift",
"Classes/Models/User.swift",
"Classes/Tests/IntegrationTests/RequestProcessorAuthenticationTests.swift",
"Classes/Tests/IntegrationTests/RequestProcessorRequestTests.swift",
"Classes/Tests/UnitTests/AuthenticationInterceptorTests.swift",
"Classes/Tests/UnitTests/DataRequestHanderTests.swift",
"Classes/Tests/UnitTests/RequestBodyEncoderTests.swift",
"Classes/Tests/UnitTests/RequestBuilderTests.swift",
"Classes/Tests/UnitTests/RequestParametersEncoderTests.swift",
"Classes/Tests/UnitTests/RequestProcessorTests.swift"
],
"target_dependencies" : [
"NetworkLayer"
],
"type" : "test"
},
{
"c99name" : "NetworkLayerInterfaces",
"module_type" : "SwiftTarget",
"name" : "NetworkLayerInterfaces",
"path" : "Sources/NetworkLayerInterfaces",
"product_dependencies" : [
"Typhoon"
],
"product_memberships" : [
"NetworkLayer",
"NetworkLayerInterfaces"
],
"sources" : [
"Classes/Core/Authenticator/AuthenticatorInterceptorError.swift",
"Classes/Core/Authenticator/IAuthenticationCredential.swift",
"Classes/Core/Authenticator/IAuthenticationInterceptor.swift",
"Classes/Core/Authenticator/IAuthenticator.swift",
"Classes/Core/Models/Configuration.swift",
"Classes/Core/Models/HTTPMethod.swift",
"Classes/Core/Models/IRequest.swift",
"Classes/Core/Models/NetworkLayerError.swift",
"Classes/Core/Models/RequestBody.swift",
"Classes/Core/Models/Response.swift",
"Classes/Core/Services/IDataRequestHandler.swift",
"Classes/Core/Services/IRequestBuilder.swift",
"Classes/Core/Services/IRequestProcessor.swift",
"Classes/Core/Services/RequestProcessorDelegate.swift",
"Classes/DI/INetworkLayerAssembly.swift"
],
"type" : "library"
},
{
"c99name" : "NetworkLayer",
"module_type" : "SwiftTarget",
"name" : "NetworkLayer",
"path" : "Sources/NetworkLayer",
"product_dependencies" : [
"Atomic",
"Typhoon"
],
"product_memberships" : [
"NetworkLayer"
],
"sources" : [
"Classes/Core/Authentification/AuthenticationInterceptor.swift",
"Classes/Core/Builders/RequestBuilder/RequestBodyEncoder/IRequestBodyEncoder.swift",
"Classes/Core/Builders/RequestBuilder/RequestBodyEncoder/RequestBodyEncoder.swift",
"Classes/Core/Builders/RequestBuilder/RequestBuilder.swift",
"Classes/Core/Builders/RequestBuilder/RequestParameterEncoder/IRequestParametersEncoder.swift",
"Classes/Core/Builders/RequestBuilder/RequestParameterEncoder/RequestParametersEncoder.swift",
"Classes/Core/Services/DataRequestHandler/DataRequestHandler.swift",
"Classes/Core/Services/RequestProcessor/Models/SafeRequestProcessorDelegate.swift",
"Classes/Core/Services/RequestProcessor/RequestProcessor.swift",
"Classes/DI/NetworkLayerAssembly.swift",
"Classes/Extensions/IRequest+.swift",
"Classes/Extensions/Response+Map.swift"
],
"target_dependencies" : [
"NetworkLayerInterfaces"
],
"type" : "library"
}
],
"tools_version" : "6.0"
}
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-1":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.1-latest swift build --triple x86_64-unknown-linux-gnu -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats 2>&1
basic-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:3bdcac04179f4ed3e5b8e9dbd6e74bbf5ebc0f4fde48bbaad7d1e5c757e65bcb
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.1-latest
Fetching https://github.com/WeTransfer/Mocker
Fetching https://github.com/space-code/atomic
Fetching https://github.com/space-code/typhoon
[1/227] Fetching atomic
[181/483] Fetching atomic, typhoon
[292/2374] Fetching atomic, typhoon, mocker
Fetched https://github.com/space-code/atomic from cache (0.21s)
[1788/2147] Fetching typhoon, mocker
Fetched https://github.com/space-code/typhoon from cache (0.22s)
Fetched https://github.com/WeTransfer/Mocker from cache (0.26s)
Computing version for https://github.com/WeTransfer/Mocker
Computed https://github.com/WeTransfer/Mocker at 3.0.1 (2.12s)
Computing version for https://github.com/space-code/typhoon
Computed https://github.com/space-code/typhoon at 1.2.1 (0.46s)
Computing version for https://github.com/space-code/atomic
warning: 'atomic': /Package.swift:12:16: warning: 'v11' is deprecated: tvOS 12.0 is the oldest supported version
10 | .iOS(.v13),
11 | .watchOS(.v6),
12 | .tvOS(.v11),
| `- warning: 'v11' is deprecated: tvOS 12.0 is the oldest supported version
13 | .visionOS(.v1),
14 | ],
Computed https://github.com/space-code/atomic at 1.1.0 (0.43s)
Creating working copy for https://github.com/space-code/typhoon
Working copy of https://github.com/space-code/typhoon resolved at 1.2.1
Creating working copy for https://github.com/space-code/atomic
Working copy of https://github.com/space-code/atomic resolved at 1.1.0
Creating working copy for https://github.com/WeTransfer/Mocker
Working copy of https://github.com/WeTransfer/Mocker resolved at 3.0.1
warning: 'atomic': /host/spi-builder-workspace/.build/checkouts/atomic/Package.swift:12:16: warning: 'v11' is deprecated: tvOS 12.0 is the oldest supported version
10 | .iOS(.v13),
11 | .watchOS(.v6),
12 | .tvOS(.v11),
| `- warning: 'v11' is deprecated: tvOS 12.0 is the oldest supported version
13 | .visionOS(.v1),
14 | ],
Building for debugging...
[0/5] Write sources
[4/5] Write swift-version-24593BA9C3E375BF.txt
[6/17] Compiling Typhoon RetryIterator.swift
[7/17] Compiling Typhoon DispatchTimeInterval+Double.swift
[8/17] Emitting module Typhoon
[9/17] Compiling Typhoon RetrySequence.swift
[10/17] Compiling Typhoon RetryPolicyStrategy.swift
[11/17] Compiling Typhoon IRetryPolicyService.swift
[12/17] Compiling Typhoon RetryPolicyError.swift
[13/17] Compiling Typhoon RetryPolicyService.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[15/18] Compiling Atomic ILock.swift
[16/18] 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
13 |
14 | /// The underlying `os_unfair_lock` used for synchronization.
15 | private let unfairLock: os_unfair_lock_t
| `- error: cannot find type 'os_unfair_lock_t' in scope
16 |
17 | // MARK: Initialization
[17/18] 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
13 |
14 | /// The underlying `os_unfair_lock` used for synchronization.
15 | private let unfairLock: os_unfair_lock_t
| `- error: cannot find type 'os_unfair_lock_t' in scope
16 |
17 | // MARK: Initialization
[18/18] 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
13 |
14 | /// The underlying `os_unfair_lock` used for synchronization.
15 | private let unfairLock: os_unfair_lock_t
| `- error: cannot find type 'os_unfair_lock_t' in scope
16 |
17 | // MARK: Initialization
/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'
19 | /// Initializes an UnfairLock instance.
20 | init() {
21 | unfairLock = .allocate(capacity: 1)
| `- error: cannot infer contextual base in reference to member 'allocate'
22 | unfairLock.initialize(to: os_unfair_lock())
23 | }
/host/spi-builder-workspace/.build/checkouts/atomic/Sources/Atomic/Classes/Helpers/Lock/UnfairLock.swift:22:35: error: cannot find 'os_unfair_lock' in scope
20 | init() {
21 | unfairLock = .allocate(capacity: 1)
22 | unfairLock.initialize(to: os_unfair_lock())
| `- error: cannot find 'os_unfair_lock' in scope
23 | }
24 |
/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
33 | extension UnfairLock: ILock {
34 | func lock() {
35 | os_unfair_lock_lock(unfairLock)
| `- error: cannot find 'os_unfair_lock_lock' in scope
36 | }
37 |
/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
37 |
38 | func unlock() {
39 | os_unfair_lock_unlock(unfairLock)
| `- error: cannot find 'os_unfair_lock_unlock' in scope
40 | }
41 | }
[19/33] Compiling NetworkLayerInterfaces RequestBody.swift
/host/spi-builder-workspace/Sources/NetworkLayerInterfaces/Classes/Core/Models/Response.swift:16:26: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
14 |
15 | /// The URL response received.
16 | public let response: URLResponse
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
17 |
18 | /// The URLSessionTask associated with the response.
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/NetworkLayerInterfaces/Classes/Core/Models/Response.swift:19:22: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
17 |
18 | /// The URLSessionTask associated with the response.
19 | public let task: URLSessionTask
| `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
20 |
21 | /// The HTTP status code of the response, if available.
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionTask = AnyObject
| `- note: 'URLSessionTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/NetworkLayerInterfaces/Classes/Core/Models/Response.swift:30:36: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
28 | /// - response: The URL response received.
29 | /// - task: The URLSessionTask associated with the response.
30 | public init(data: T, response: URLResponse, task: URLSessionTask) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
31 | self.data = data
32 | self.response = response
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/NetworkLayerInterfaces/Classes/Core/Models/Response.swift:30:55: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
28 | /// - response: The URL response received.
29 | /// - task: The URLSessionTask associated with the response.
30 | public init(data: T, response: URLResponse, task: URLSessionTask) {
| `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
31 | self.data = data
32 | self.response = response
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionTask = AnyObject
| `- note: 'URLSessionTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/NetworkLayerInterfaces/Classes/Core/Models/Response.swift:33:32: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
31 | self.data = data
32 | self.response = response
33 | statusCode = (response as? HTTPURLResponse)?.statusCode
| `- warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
34 | self.task = task
35 | }
/host/spi-builder-workspace/Sources/NetworkLayerInterfaces/Classes/Core/Models/Response.swift:33:54: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
31 | self.data = data
32 | self.response = response
33 | statusCode = (response as? HTTPURLResponse)?.statusCode
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
34 | self.task = task
35 | }
[20/33] Compiling NetworkLayerInterfaces Response.swift
/host/spi-builder-workspace/Sources/NetworkLayerInterfaces/Classes/Core/Models/Response.swift:16:26: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
14 |
15 | /// The URL response received.
16 | public let response: URLResponse
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
17 |
18 | /// The URLSessionTask associated with the response.
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/NetworkLayerInterfaces/Classes/Core/Models/Response.swift:19:22: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
17 |
18 | /// The URLSessionTask associated with the response.
19 | public let task: URLSessionTask
| `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
20 |
21 | /// The HTTP status code of the response, if available.
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionTask = AnyObject
| `- note: 'URLSessionTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/NetworkLayerInterfaces/Classes/Core/Models/Response.swift:30:36: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
28 | /// - response: The URL response received.
29 | /// - task: The URLSessionTask associated with the response.
30 | public init(data: T, response: URLResponse, task: URLSessionTask) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
31 | self.data = data
32 | self.response = response
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/NetworkLayerInterfaces/Classes/Core/Models/Response.swift:30:55: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
28 | /// - response: The URL response received.
29 | /// - task: The URLSessionTask associated with the response.
30 | public init(data: T, response: URLResponse, task: URLSessionTask) {
| `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
31 | self.data = data
32 | self.response = response
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionTask = AnyObject
| `- note: 'URLSessionTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/NetworkLayerInterfaces/Classes/Core/Models/Response.swift:33:32: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
31 | self.data = data
32 | self.response = response
33 | statusCode = (response as? HTTPURLResponse)?.statusCode
| `- warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
34 | self.task = task
35 | }
/host/spi-builder-workspace/Sources/NetworkLayerInterfaces/Classes/Core/Models/Response.swift:33:54: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
31 | self.data = data
32 | self.response = response
33 | statusCode = (response as? HTTPURLResponse)?.statusCode
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
34 | self.task = task
35 | }
[21/33] 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.
11 |
12 | /// A configuration object that defines behavior and policies for a URL session.
13 | public let sessionConfiguration: URLSessionConfiguration
| `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
14 | /// A protocol that defines methods that URL session instances call on their delegates
15 | /// to handle session-level events, like session life cycle changes.
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionConfiguration = AnyObject
| `- note: 'URLSessionConfiguration' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/NetworkLayerInterfaces/Classes/Core/Models/Configuration.swift:16:33: error: cannot find type 'URLSessionDelegate' in scope
14 | /// A protocol that defines methods that URL session instances call on their delegates
15 | /// to handle session-level events, like session life cycle changes.
16 | public let sessionDelegate: URLSessionDelegate?
| `- error: cannot find type 'URLSessionDelegate' in scope
17 | /// A queue that regulates the execution of operations.
18 | public let sessionDelegateQueue: OperationQueue?
/host/spi-builder-workspace/Sources/NetworkLayerInterfaces/Classes/Core/Models/Configuration.swift:34:26: error: cannot find type 'URLSessionDelegate' in scope
32 | public init(
33 | sessionConfiguration: URLSessionConfiguration,
34 | sessionDelegate: URLSessionDelegate?,
| `- error: cannot find type 'URLSessionDelegate' in scope
35 | sessionDelegateQueue: OperationQueue?,
36 | jsonDecoder: JSONDecoder
/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.
31 | /// - jsonDecoder: An object that decodes instances of a data type from JSON objects.
32 | public init(
33 | sessionConfiguration: URLSessionConfiguration,
| `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
34 | sessionDelegate: URLSessionDelegate?,
35 | sessionDelegateQueue: OperationQueue?,
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionConfiguration = AnyObject
| `- note: 'URLSessionConfiguration' has been explicitly marked unavailable here
[22/33] 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.
11 |
12 | /// A configuration object that defines behavior and policies for a URL session.
13 | public let sessionConfiguration: URLSessionConfiguration
| `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
14 | /// A protocol that defines methods that URL session instances call on their delegates
15 | /// to handle session-level events, like session life cycle changes.
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionConfiguration = AnyObject
| `- note: 'URLSessionConfiguration' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/NetworkLayerInterfaces/Classes/Core/Models/Configuration.swift:16:33: error: cannot find type 'URLSessionDelegate' in scope
14 | /// A protocol that defines methods that URL session instances call on their delegates
15 | /// to handle session-level events, like session life cycle changes.
16 | public let sessionDelegate: URLSessionDelegate?
| `- error: cannot find type 'URLSessionDelegate' in scope
17 | /// A queue that regulates the execution of operations.
18 | public let sessionDelegateQueue: OperationQueue?
/host/spi-builder-workspace/Sources/NetworkLayerInterfaces/Classes/Core/Models/Configuration.swift:34:26: error: cannot find type 'URLSessionDelegate' in scope
32 | public init(
33 | sessionConfiguration: URLSessionConfiguration,
34 | sessionDelegate: URLSessionDelegate?,
| `- error: cannot find type 'URLSessionDelegate' in scope
35 | sessionDelegateQueue: OperationQueue?,
36 | jsonDecoder: JSONDecoder
/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.
31 | /// - jsonDecoder: An object that decodes instances of a data type from JSON objects.
32 | public init(
33 | sessionConfiguration: URLSessionConfiguration,
| `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
34 | sessionDelegate: URLSessionDelegate?,
35 | sessionDelegateQueue: OperationQueue?,
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionConfiguration = AnyObject
| `- note: 'URLSessionConfiguration' has been explicitly marked unavailable here
[23/33] Compiling NetworkLayerInterfaces IAuthenticationInterceptor.swift
/host/spi-builder-workspace/Sources/NetworkLayerInterfaces/Classes/Core/Authenticator/IAuthenticationInterceptor.swift:15:31: error: cannot find type 'URLRequest' in scope
13 | /// - request: The URLRequest to be adapted.
14 | /// - session: The URLSession for which the request is being adapted.
15 | func adapt(request: inout URLRequest, for session: URLSession) async throws
| `- error: cannot find type 'URLRequest' in scope
16 |
17 | /// Refreshes credential for the request.
/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.
13 | /// - request: The URLRequest to be adapted.
14 | /// - session: The URLSession for which the request is being adapted.
15 | func adapt(request: inout URLRequest, for session: URLSession) async throws
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
16 |
17 | /// Refreshes credential for the request.
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/NetworkLayerInterfaces/Classes/Core/Authenticator/IAuthenticationInterceptor.swift:22:29: error: cannot find type 'URLRequest' in scope
20 | /// - request: The URLRequest to be refreshed.
21 | /// - session: The URLSession for which the request is being refreshed.
22 | func refresh(_ request: URLRequest, with response: HTTPURLResponse, for session: URLSession) async throws
| `- error: cannot find type 'URLRequest' in scope
23 |
24 | /// Determines whether a request requires a credential refresh.
/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.
20 | /// - request: The URLRequest to be refreshed.
21 | /// - session: The URLSession for which the request is being refreshed.
22 | func refresh(_ request: URLRequest, with response: HTTPURLResponse, for session: URLSession) async throws
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
23 |
24 | /// Determines whether a request requires a credential refresh.
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/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.
20 | /// - request: The URLRequest to be refreshed.
21 | /// - session: The URLSession for which the request is being refreshed.
22 | func refresh(_ request: URLRequest, with response: HTTPURLResponse, for session: URLSession) async throws
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
23 |
24 | /// Determines whether a request requires a credential refresh.
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/NetworkLayerInterfaces/Classes/Core/Authenticator/IAuthenticationInterceptor.swift:31:38: error: cannot find type 'URLRequest' in scope
29 | ///
30 | /// - Returns: A boolean indicating whether a credential refresh is required.
31 | func isRequireRefresh(_ request: URLRequest, response: HTTPURLResponse) -> Bool
| `- error: cannot find type 'URLRequest' in scope
32 | }
33 |
/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.
29 | ///
30 | /// - Returns: A boolean indicating whether a credential refresh is required.
31 | func isRequireRefresh(_ request: URLRequest, response: HTTPURLResponse) -> Bool
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
32 | }
33 |
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/NetworkLayerInterfaces/Classes/Core/Authenticator/IAuthenticator.swift:17:63: error: cannot find type 'URLRequest' in scope
15 | /// - credential: The `Credential`.
16 | /// - urlRequest: The `URLRequest`.
17 | func apply(_ credential: Credential, to urlRequest: inout URLRequest) async throws
| `- error: cannot find type 'URLRequest' in scope
18 |
19 | /// Refreshes the `Credential`.
/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.
22 | /// - credential: The `Credential` to refresh.
23 | /// - session: The `URLSession` requiring the refresh.
24 | func refresh(_ credential: Credential, for session: URLSession) async throws -> Credential
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
25 |
26 | /// Determines whether the `URLRequest` failed due to an authentication error based on the `HTTPURLResponse`.
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/NetworkLayerInterfaces/Classes/Core/Authenticator/IAuthenticator.swift:33:35: error: cannot find type 'URLRequest' in scope
31 | ///
32 | /// - Returns: `true` if the `URLRequest` failed due to an authentication error, `false` otherwise.
33 | func didRequest(_ urlRequest: URLRequest, with response: HTTPURLResponse) -> Bool
| `- error: cannot find type 'URLRequest' in scope
34 |
35 | /// Determines whether the `URLRequest` is authenticated with the `Credential`.
/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.
31 | ///
32 | /// - Returns: `true` if the `URLRequest` failed due to an authentication error, `false` otherwise.
33 | func didRequest(_ urlRequest: URLRequest, with response: HTTPURLResponse) -> Bool
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
34 |
35 | /// Determines whether the `URLRequest` is authenticated with the `Credential`.
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/NetworkLayerInterfaces/Classes/Core/Authenticator/IAuthenticator.swift:42:34: error: cannot find type 'URLRequest' in scope
40 | ///
41 | /// - Returns: `true` if the `URLRequest` is authenticated with the `Credential`, `false` otherwise.
42 | func isRequest(_ urlRequest: URLRequest, authenticatedWith credential: Credential) -> Bool
| `- error: cannot find type 'URLRequest' in scope
43 | }
44 |
[24/33] Compiling NetworkLayerInterfaces IAuthenticator.swift
/host/spi-builder-workspace/Sources/NetworkLayerInterfaces/Classes/Core/Authenticator/IAuthenticationInterceptor.swift:15:31: error: cannot find type 'URLRequest' in scope
13 | /// - request: The URLRequest to be adapted.
14 | /// - session: The URLSession for which the request is being adapted.
15 | func adapt(request: inout URLRequest, for session: URLSession) async throws
| `- error: cannot find type 'URLRequest' in scope
16 |
17 | /// Refreshes credential for the request.
/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.
13 | /// - request: The URLRequest to be adapted.
14 | /// - session: The URLSession for which the request is being adapted.
15 | func adapt(request: inout URLRequest, for session: URLSession) async throws
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
16 |
17 | /// Refreshes credential for the request.
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/NetworkLayerInterfaces/Classes/Core/Authenticator/IAuthenticationInterceptor.swift:22:29: error: cannot find type 'URLRequest' in scope
20 | /// - request: The URLRequest to be refreshed.
21 | /// - session: The URLSession for which the request is being refreshed.
22 | func refresh(_ request: URLRequest, with response: HTTPURLResponse, for session: URLSession) async throws
| `- error: cannot find type 'URLRequest' in scope
23 |
24 | /// Determines whether a request requires a credential refresh.
/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.
20 | /// - request: The URLRequest to be refreshed.
21 | /// - session: The URLSession for which the request is being refreshed.
22 | func refresh(_ request: URLRequest, with response: HTTPURLResponse, for session: URLSession) async throws
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
23 |
24 | /// Determines whether a request requires a credential refresh.
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/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.
20 | /// - request: The URLRequest to be refreshed.
21 | /// - session: The URLSession for which the request is being refreshed.
22 | func refresh(_ request: URLRequest, with response: HTTPURLResponse, for session: URLSession) async throws
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
23 |
24 | /// Determines whether a request requires a credential refresh.
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/NetworkLayerInterfaces/Classes/Core/Authenticator/IAuthenticationInterceptor.swift:31:38: error: cannot find type 'URLRequest' in scope
29 | ///
30 | /// - Returns: A boolean indicating whether a credential refresh is required.
31 | func isRequireRefresh(_ request: URLRequest, response: HTTPURLResponse) -> Bool
| `- error: cannot find type 'URLRequest' in scope
32 | }
33 |
/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.
29 | ///
30 | /// - Returns: A boolean indicating whether a credential refresh is required.
31 | func isRequireRefresh(_ request: URLRequest, response: HTTPURLResponse) -> Bool
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
32 | }
33 |
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/NetworkLayerInterfaces/Classes/Core/Authenticator/IAuthenticator.swift:17:63: error: cannot find type 'URLRequest' in scope
15 | /// - credential: The `Credential`.
16 | /// - urlRequest: The `URLRequest`.
17 | func apply(_ credential: Credential, to urlRequest: inout URLRequest) async throws
| `- error: cannot find type 'URLRequest' in scope
18 |
19 | /// Refreshes the `Credential`.
/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.
22 | /// - credential: The `Credential` to refresh.
23 | /// - session: The `URLSession` requiring the refresh.
24 | func refresh(_ credential: Credential, for session: URLSession) async throws -> Credential
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
25 |
26 | /// Determines whether the `URLRequest` failed due to an authentication error based on the `HTTPURLResponse`.
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/NetworkLayerInterfaces/Classes/Core/Authenticator/IAuthenticator.swift:33:35: error: cannot find type 'URLRequest' in scope
31 | ///
32 | /// - Returns: `true` if the `URLRequest` failed due to an authentication error, `false` otherwise.
33 | func didRequest(_ urlRequest: URLRequest, with response: HTTPURLResponse) -> Bool
| `- error: cannot find type 'URLRequest' in scope
34 |
35 | /// Determines whether the `URLRequest` is authenticated with the `Credential`.
/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.
31 | ///
32 | /// - Returns: `true` if the `URLRequest` failed due to an authentication error, `false` otherwise.
33 | func didRequest(_ urlRequest: URLRequest, with response: HTTPURLResponse) -> Bool
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
34 |
35 | /// Determines whether the `URLRequest` is authenticated with the `Credential`.
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/NetworkLayerInterfaces/Classes/Core/Authenticator/IAuthenticator.swift:42:34: error: cannot find type 'URLRequest' in scope
40 | ///
41 | /// - Returns: `true` if the `URLRequest` is authenticated with the `Credential`, `false` otherwise.
42 | func isRequest(_ urlRequest: URLRequest, authenticatedWith credential: Credential) -> Bool
| `- error: cannot find type 'URLRequest' in scope
43 | }
44 |
[25/33] Compiling NetworkLayerInterfaces IRequest.swift
/host/spi-builder-workspace/Sources/NetworkLayerInterfaces/Classes/Core/Models/IRequest.swift:37:22: error: cannot find type 'URLRequest' in scope
35 |
36 | /// An alias for the cache policy.
37 | var cachePolicy: URLRequest.CachePolicy { get }
| `- error: cannot find type 'URLRequest' in scope
38 | }
39 |
/host/spi-builder-workspace/Sources/NetworkLayerInterfaces/Classes/Core/Models/IRequest.swift:67:22: error: cannot find type 'URLRequest' in scope
65 |
66 | /// An alias for the cache policy.
67 | var cachePolicy: URLRequest.CachePolicy {
| `- error: cannot find type 'URLRequest' in scope
68 | .useProtocolCachePolicy
69 | }
[26/33] Compiling NetworkLayerInterfaces NetworkLayerError.swift
/host/spi-builder-workspace/Sources/NetworkLayerInterfaces/Classes/Core/Models/IRequest.swift:37:22: error: cannot find type 'URLRequest' in scope
35 |
36 | /// An alias for the cache policy.
37 | var cachePolicy: URLRequest.CachePolicy { get }
| `- error: cannot find type 'URLRequest' in scope
38 | }
39 |
/host/spi-builder-workspace/Sources/NetworkLayerInterfaces/Classes/Core/Models/IRequest.swift:67:22: error: cannot find type 'URLRequest' in scope
65 |
66 | /// An alias for the cache policy.
67 | var cachePolicy: URLRequest.CachePolicy {
| `- error: cannot find type 'URLRequest' in scope
68 | .useProtocolCachePolicy
69 | }
[27/34] Compiling NetworkLayerInterfaces IRequestProcessor.swift
/host/spi-builder-workspace/Sources/NetworkLayerInterfaces/Classes/Core/Services/IRequestProcessor.swift:24:19: error: cannot find type 'URLSessionDelegate' in scope
22 | _ request: T,
23 | strategy: RetryPolicyStrategy?,
24 | delegate: URLSessionDelegate?,
| `- error: cannot find type 'URLSessionDelegate' in scope
25 | configure: (@Sendable (inout URLRequest) throws -> Void)?
26 | ) async throws -> Response<M>
/host/spi-builder-workspace/Sources/NetworkLayerInterfaces/Classes/Core/Services/IRequestProcessor.swift:25:38: error: cannot find type 'URLRequest' in scope
23 | strategy: RetryPolicyStrategy?,
24 | delegate: URLSessionDelegate?,
25 | configure: (@Sendable (inout URLRequest) throws -> Void)?
| `- error: cannot find type 'URLRequest' in scope
26 | ) async throws -> Response<M>
27 | }
/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>'
36 | strategy: RetryPolicyStrategy?
37 | ) async throws -> Response<M> {
38 | try await send(request, strategy: strategy, delegate: nil, configure: nil)
| `- error: cannot convert return expression of type 'Int' to return type 'Response<M>'
39 | }
40 | }
/host/spi-builder-workspace/Sources/NetworkLayerInterfaces/Classes/Core/Services/IRequestProcessor.swift:38:23: error: extraneous argument labels 'strategy:delegate:configure:' in call
36 | strategy: RetryPolicyStrategy?
37 | ) async throws -> Response<M> {
38 | try await send(request, strategy: strategy, delegate: nil, configure: nil)
| `- error: extraneous argument labels 'strategy:delegate:configure:' in call
39 | }
40 | }
/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'
36 | strategy: RetryPolicyStrategy?
37 | ) async throws -> Response<M> {
38 | try await send(request, strategy: strategy, delegate: nil, configure: nil)
| `- error: cannot convert value of type 'T' to expected argument type 'Int32'
39 | }
40 | }
/host/spi-builder-workspace/Sources/NetworkLayerInterfaces/Classes/Core/Services/IRequestProcessor.swift:38:63: error: 'nil' is not compatible with expected argument type 'Int'
36 | strategy: RetryPolicyStrategy?
37 | ) async throws -> Response<M> {
38 | try await send(request, strategy: strategy, delegate: nil, configure: nil)
| `- error: 'nil' is not compatible with expected argument type 'Int'
39 | }
40 | }
/host/spi-builder-workspace/Sources/NetworkLayerInterfaces/Classes/Core/Services/IRequestProcessor.swift:38:79: error: 'nil' is not compatible with expected argument type 'Int32'
36 | strategy: RetryPolicyStrategy?
37 | ) async throws -> Response<M> {
38 | try await send(request, strategy: strategy, delegate: nil, configure: nil)
| `- error: 'nil' is not compatible with expected argument type 'Int32'
39 | }
40 | }
/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?'
36 | strategy: RetryPolicyStrategy?
37 | ) async throws -> Response<M> {
38 | try await send(request, strategy: strategy, delegate: nil, configure: nil)
| `- error: cannot convert value of type 'RetryPolicyStrategy?' to expected argument type 'UnsafeRawPointer?'
39 | }
40 | }
/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'
36 | strategy: RetryPolicyStrategy?
37 | ) async throws -> Response<M> {
38 | try await send(request, strategy: strategy, delegate: nil, configure: nil)
| |- error: use of 'send' refers to instance method rather than global function 'send' in module 'SwiftGlibc'
| `- note: use 'SwiftGlibc.' to reference the global function in module 'SwiftGlibc'
39 | }
40 | }
/usr/include/x86_64-linux-gnu/sys/socket.h:138:16: note: 'send' declared here
136 | This function is a cancellation point and therefore not marked with
137 | __THROW. */
138 | extern ssize_t send (int __fd, const void *__buf, size_t __n, int __flags);
| `- note: 'send' declared here
139 |
140 | /* Read N bytes into BUF from socket FD.
/host/spi-builder-workspace/Sources/NetworkLayerInterfaces/Classes/Core/Services/RequestProcessorDelegate.swift:17:91: error: cannot find type 'URLRequest' in scope
15 | /// - requestProcessor: The request processor responsible for handling the request.
16 | /// - request: The URLRequest about to be sent.
17 | func requestProcessor(_ requestProcessor: IRequestProcessor, willSendRequest request: URLRequest) async throws
| `- error: cannot find type 'URLRequest' in scope
18 |
19 | /// Notifies the delegate that the request processor received a response and provides an opportunity to validate it.
/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.
26 | func requestProcessor(
27 | _ requestProcessor: IRequestProcessor,
28 | validateResponse response: HTTPURLResponse,
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
29 | data: Data,
30 | task: URLSessionTask
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/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.
28 | validateResponse response: HTTPURLResponse,
29 | data: Data,
30 | task: URLSessionTask
| `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
31 | ) throws
32 | }
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionTask = AnyObject
| `- note: 'URLSessionTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/NetworkLayerInterfaces/Classes/Core/Services/RequestProcessorDelegate.swift:35:68: error: cannot find type 'URLRequest' in scope
33 |
34 | public extension RequestProcessorDelegate {
35 | func requestProcessor(_: IRequestProcessor, willSendRequest _: URLRequest) async throws {}
| `- error: cannot find type 'URLRequest' in scope
36 | }
37 |
[28/34] Compiling NetworkLayerInterfaces RequestProcessorDelegate.swift
/host/spi-builder-workspace/Sources/NetworkLayerInterfaces/Classes/Core/Services/IRequestProcessor.swift:24:19: error: cannot find type 'URLSessionDelegate' in scope
22 | _ request: T,
23 | strategy: RetryPolicyStrategy?,
24 | delegate: URLSessionDelegate?,
| `- error: cannot find type 'URLSessionDelegate' in scope
25 | configure: (@Sendable (inout URLRequest) throws -> Void)?
26 | ) async throws -> Response<M>
/host/spi-builder-workspace/Sources/NetworkLayerInterfaces/Classes/Core/Services/IRequestProcessor.swift:25:38: error: cannot find type 'URLRequest' in scope
23 | strategy: RetryPolicyStrategy?,
24 | delegate: URLSessionDelegate?,
25 | configure: (@Sendable (inout URLRequest) throws -> Void)?
| `- error: cannot find type 'URLRequest' in scope
26 | ) async throws -> Response<M>
27 | }
/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>'
36 | strategy: RetryPolicyStrategy?
37 | ) async throws -> Response<M> {
38 | try await send(request, strategy: strategy, delegate: nil, configure: nil)
| `- error: cannot convert return expression of type 'Int' to return type 'Response<M>'
39 | }
40 | }
/host/spi-builder-workspace/Sources/NetworkLayerInterfaces/Classes/Core/Services/IRequestProcessor.swift:38:23: error: extraneous argument labels 'strategy:delegate:configure:' in call
36 | strategy: RetryPolicyStrategy?
37 | ) async throws -> Response<M> {
38 | try await send(request, strategy: strategy, delegate: nil, configure: nil)
| `- error: extraneous argument labels 'strategy:delegate:configure:' in call
39 | }
40 | }
/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'
36 | strategy: RetryPolicyStrategy?
37 | ) async throws -> Response<M> {
38 | try await send(request, strategy: strategy, delegate: nil, configure: nil)
| `- error: cannot convert value of type 'T' to expected argument type 'Int32'
39 | }
40 | }
/host/spi-builder-workspace/Sources/NetworkLayerInterfaces/Classes/Core/Services/IRequestProcessor.swift:38:63: error: 'nil' is not compatible with expected argument type 'Int'
36 | strategy: RetryPolicyStrategy?
37 | ) async throws -> Response<M> {
38 | try await send(request, strategy: strategy, delegate: nil, configure: nil)
| `- error: 'nil' is not compatible with expected argument type 'Int'
39 | }
40 | }
/host/spi-builder-workspace/Sources/NetworkLayerInterfaces/Classes/Core/Services/IRequestProcessor.swift:38:79: error: 'nil' is not compatible with expected argument type 'Int32'
36 | strategy: RetryPolicyStrategy?
37 | ) async throws -> Response<M> {
38 | try await send(request, strategy: strategy, delegate: nil, configure: nil)
| `- error: 'nil' is not compatible with expected argument type 'Int32'
39 | }
40 | }
/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?'
36 | strategy: RetryPolicyStrategy?
37 | ) async throws -> Response<M> {
38 | try await send(request, strategy: strategy, delegate: nil, configure: nil)
| `- error: cannot convert value of type 'RetryPolicyStrategy?' to expected argument type 'UnsafeRawPointer?'
39 | }
40 | }
/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'
36 | strategy: RetryPolicyStrategy?
37 | ) async throws -> Response<M> {
38 | try await send(request, strategy: strategy, delegate: nil, configure: nil)
| |- error: use of 'send' refers to instance method rather than global function 'send' in module 'SwiftGlibc'
| `- note: use 'SwiftGlibc.' to reference the global function in module 'SwiftGlibc'
39 | }
40 | }
/usr/include/x86_64-linux-gnu/sys/socket.h:138:16: note: 'send' declared here
136 | This function is a cancellation point and therefore not marked with
137 | __THROW. */
138 | extern ssize_t send (int __fd, const void *__buf, size_t __n, int __flags);
| `- note: 'send' declared here
139 |
140 | /* Read N bytes into BUF from socket FD.
/host/spi-builder-workspace/Sources/NetworkLayerInterfaces/Classes/Core/Services/RequestProcessorDelegate.swift:17:91: error: cannot find type 'URLRequest' in scope
15 | /// - requestProcessor: The request processor responsible for handling the request.
16 | /// - request: The URLRequest about to be sent.
17 | func requestProcessor(_ requestProcessor: IRequestProcessor, willSendRequest request: URLRequest) async throws
| `- error: cannot find type 'URLRequest' in scope
18 |
19 | /// Notifies the delegate that the request processor received a response and provides an opportunity to validate it.
/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.
26 | func requestProcessor(
27 | _ requestProcessor: IRequestProcessor,
28 | validateResponse response: HTTPURLResponse,
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
29 | data: Data,
30 | task: URLSessionTask
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/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.
28 | validateResponse response: HTTPURLResponse,
29 | data: Data,
30 | task: URLSessionTask
| `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
31 | ) throws
32 | }
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionTask = AnyObject
| `- note: 'URLSessionTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/NetworkLayerInterfaces/Classes/Core/Services/RequestProcessorDelegate.swift:35:68: error: cannot find type 'URLRequest' in scope
33 |
34 | public extension RequestProcessorDelegate {
35 | func requestProcessor(_: IRequestProcessor, willSendRequest _: URLRequest) async throws {}
| `- error: cannot find type 'URLRequest' in scope
36 | }
37 |
[29/34] Compiling NetworkLayerInterfaces IDataRequestHandler.swift
/host/spi-builder-workspace/Sources/NetworkLayerInterfaces/Classes/Core/Services/IDataRequestHandler.swift:9:38: error: cannot find type 'URLSessionTaskDelegate' in scope
7 |
8 | /// A protocol for handling data requests.
9 | public protocol IDataRequestHandler: URLSessionTaskDelegate & URLSessionDataDelegate {
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
10 | var urlSessionDelegate: URLSessionDelegate? { get set }
11 |
/host/spi-builder-workspace/Sources/NetworkLayerInterfaces/Classes/Core/Services/IDataRequestHandler.swift:10:29: error: cannot find type 'URLSessionDelegate' in scope
8 | /// A protocol for handling data requests.
9 | public protocol IDataRequestHandler: URLSessionTaskDelegate & URLSessionDataDelegate {
10 | var urlSessionDelegate: URLSessionDelegate? { get set }
| `- error: cannot find type 'URLSessionDelegate' in scope
11 |
12 | /// Starts a data task for handling network requests.
/host/spi-builder-workspace/Sources/NetworkLayerInterfaces/Classes/Core/Services/IDataRequestHandler.swift:21:19: error: cannot find type 'URLSessionDelegate' in scope
19 | func startDataTask(
20 | _ task: URLSessionDataTask,
21 | delegate: URLSessionDelegate?
| `- error: cannot find type 'URLSessionDelegate' in scope
22 | ) async throws -> Response<Data>
23 | }
/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.
18 | /// - Returns: An asynchronous task that will result in a Response object containing data when the request is completed.
19 | func startDataTask(
20 | _ task: URLSessionDataTask,
| `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
21 | delegate: URLSessionDelegate?
22 | ) async throws -> Response<Data>
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionDataTask = AnyObject
| `- note: 'URLSessionDataTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/NetworkLayerInterfaces/Classes/Core/Services/IRequestBuilder.swift:15:98: error: cannot find type 'URLRequest' in scope
13 | ///
14 | /// - Returns: A `URLRequest` constructed based on the given data.
15 | func build(_ request: IRequest, _ configure: ((inout URLRequest) throws -> Void)?) throws -> URLRequest?
| `- error: cannot find type 'URLRequest' in scope
16 | }
17 |
/host/spi-builder-workspace/Sources/NetworkLayerInterfaces/Classes/Core/Services/IRequestBuilder.swift:15:58: error: cannot find type 'URLRequest' in scope
13 | ///
14 | /// - Returns: A `URLRequest` constructed based on the given data.
15 | func build(_ request: IRequest, _ configure: ((inout URLRequest) throws -> Void)?) throws -> URLRequest?
| `- error: cannot find type 'URLRequest' in scope
16 | }
17 |
[30/34] Compiling NetworkLayerInterfaces IRequestBuilder.swift
/host/spi-builder-workspace/Sources/NetworkLayerInterfaces/Classes/Core/Services/IDataRequestHandler.swift:9:38: error: cannot find type 'URLSessionTaskDelegate' in scope
7 |
8 | /// A protocol for handling data requests.
9 | public protocol IDataRequestHandler: URLSessionTaskDelegate & URLSessionDataDelegate {
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
10 | var urlSessionDelegate: URLSessionDelegate? { get set }
11 |
/host/spi-builder-workspace/Sources/NetworkLayerInterfaces/Classes/Core/Services/IDataRequestHandler.swift:10:29: error: cannot find type 'URLSessionDelegate' in scope
8 | /// A protocol for handling data requests.
9 | public protocol IDataRequestHandler: URLSessionTaskDelegate & URLSessionDataDelegate {
10 | var urlSessionDelegate: URLSessionDelegate? { get set }
| `- error: cannot find type 'URLSessionDelegate' in scope
11 |
12 | /// Starts a data task for handling network requests.
/host/spi-builder-workspace/Sources/NetworkLayerInterfaces/Classes/Core/Services/IDataRequestHandler.swift:21:19: error: cannot find type 'URLSessionDelegate' in scope
19 | func startDataTask(
20 | _ task: URLSessionDataTask,
21 | delegate: URLSessionDelegate?
| `- error: cannot find type 'URLSessionDelegate' in scope
22 | ) async throws -> Response<Data>
23 | }
/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.
18 | /// - Returns: An asynchronous task that will result in a Response object containing data when the request is completed.
19 | func startDataTask(
20 | _ task: URLSessionDataTask,
| `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
21 | delegate: URLSessionDelegate?
22 | ) async throws -> Response<Data>
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionDataTask = AnyObject
| `- note: 'URLSessionDataTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/NetworkLayerInterfaces/Classes/Core/Services/IRequestBuilder.swift:15:98: error: cannot find type 'URLRequest' in scope
13 | ///
14 | /// - Returns: A `URLRequest` constructed based on the given data.
15 | func build(_ request: IRequest, _ configure: ((inout URLRequest) throws -> Void)?) throws -> URLRequest?
| `- error: cannot find type 'URLRequest' in scope
16 | }
17 |
/host/spi-builder-workspace/Sources/NetworkLayerInterfaces/Classes/Core/Services/IRequestBuilder.swift:15:58: error: cannot find type 'URLRequest' in scope
13 | ///
14 | /// - Returns: A `URLRequest` constructed based on the given data.
15 | func build(_ request: IRequest, _ configure: ((inout URLRequest) throws -> Void)?) throws -> URLRequest?
| `- error: cannot find type 'URLRequest' in scope
16 | }
17 |
error: emit-module command failed with exit code 1 (use -v to see invocation)
[31/34] Compiling NetworkLayerInterfaces AuthenticatorInterceptorError.swift
[32/34] Compiling NetworkLayerInterfaces IAuthenticationCredential.swift
[33/34] Emitting module NetworkLayerInterfaces
/host/spi-builder-workspace/Sources/NetworkLayerInterfaces/Classes/Core/Authenticator/IAuthenticationInterceptor.swift:15:31: error: cannot find type 'URLRequest' in scope
13 | /// - request: The URLRequest to be adapted.
14 | /// - session: The URLSession for which the request is being adapted.
15 | func adapt(request: inout URLRequest, for session: URLSession) async throws
| `- error: cannot find type 'URLRequest' in scope
16 |
17 | /// Refreshes credential for the request.
/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.
13 | /// - request: The URLRequest to be adapted.
14 | /// - session: The URLSession for which the request is being adapted.
15 | func adapt(request: inout URLRequest, for session: URLSession) async throws
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
16 |
17 | /// Refreshes credential for the request.
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/NetworkLayerInterfaces/Classes/Core/Authenticator/IAuthenticationInterceptor.swift:22:29: error: cannot find type 'URLRequest' in scope
20 | /// - request: The URLRequest to be refreshed.
21 | /// - session: The URLSession for which the request is being refreshed.
22 | func refresh(_ request: URLRequest, with response: HTTPURLResponse, for session: URLSession) async throws
| `- error: cannot find type 'URLRequest' in scope
23 |
24 | /// Determines whether a request requires a credential refresh.
/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.
20 | /// - request: The URLRequest to be refreshed.
21 | /// - session: The URLSession for which the request is being refreshed.
22 | func refresh(_ request: URLRequest, with response: HTTPURLResponse, for session: URLSession) async throws
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
23 |
24 | /// Determines whether a request requires a credential refresh.
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/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.
20 | /// - request: The URLRequest to be refreshed.
21 | /// - session: The URLSession for which the request is being refreshed.
22 | func refresh(_ request: URLRequest, with response: HTTPURLResponse, for session: URLSession) async throws
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
23 |
24 | /// Determines whether a request requires a credential refresh.
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/NetworkLayerInterfaces/Classes/Core/Authenticator/IAuthenticationInterceptor.swift:31:38: error: cannot find type 'URLRequest' in scope
29 | ///
30 | /// - Returns: A boolean indicating whether a credential refresh is required.
31 | func isRequireRefresh(_ request: URLRequest, response: HTTPURLResponse) -> Bool
| `- error: cannot find type 'URLRequest' in scope
32 | }
33 |
/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.
29 | ///
30 | /// - Returns: A boolean indicating whether a credential refresh is required.
31 | func isRequireRefresh(_ request: URLRequest, response: HTTPURLResponse) -> Bool
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
32 | }
33 |
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/NetworkLayerInterfaces/Classes/Core/Authenticator/IAuthenticator.swift:17:63: error: cannot find type 'URLRequest' in scope
15 | /// - credential: The `Credential`.
16 | /// - urlRequest: The `URLRequest`.
17 | func apply(_ credential: Credential, to urlRequest: inout URLRequest) async throws
| `- error: cannot find type 'URLRequest' in scope
18 |
19 | /// Refreshes the `Credential`.
/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.
22 | /// - credential: The `Credential` to refresh.
23 | /// - session: The `URLSession` requiring the refresh.
24 | func refresh(_ credential: Credential, for session: URLSession) async throws -> Credential
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
25 |
26 | /// Determines whether the `URLRequest` failed due to an authentication error based on the `HTTPURLResponse`.
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/NetworkLayerInterfaces/Classes/Core/Authenticator/IAuthenticator.swift:33:35: error: cannot find type 'URLRequest' in scope
31 | ///
32 | /// - Returns: `true` if the `URLRequest` failed due to an authentication error, `false` otherwise.
33 | func didRequest(_ urlRequest: URLRequest, with response: HTTPURLResponse) -> Bool
| `- error: cannot find type 'URLRequest' in scope
34 |
35 | /// Determines whether the `URLRequest` is authenticated with the `Credential`.
/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.
31 | ///
32 | /// - Returns: `true` if the `URLRequest` failed due to an authentication error, `false` otherwise.
33 | func didRequest(_ urlRequest: URLRequest, with response: HTTPURLResponse) -> Bool
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
34 |
35 | /// Determines whether the `URLRequest` is authenticated with the `Credential`.
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/NetworkLayerInterfaces/Classes/Core/Authenticator/IAuthenticator.swift:42:34: error: cannot find type 'URLRequest' in scope
40 | ///
41 | /// - Returns: `true` if the `URLRequest` is authenticated with the `Credential`, `false` otherwise.
42 | func isRequest(_ urlRequest: URLRequest, authenticatedWith credential: Credential) -> Bool
| `- error: cannot find type 'URLRequest' in scope
43 | }
44 |
/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.
11 |
12 | /// A configuration object that defines behavior and policies for a URL session.
13 | public let sessionConfiguration: URLSessionConfiguration
| `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
14 | /// A protocol that defines methods that URL session instances call on their delegates
15 | /// to handle session-level events, like session life cycle changes.
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionConfiguration = AnyObject
| `- note: 'URLSessionConfiguration' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/NetworkLayerInterfaces/Classes/Core/Models/Configuration.swift:16:33: error: cannot find type 'URLSessionDelegate' in scope
14 | /// A protocol that defines methods that URL session instances call on their delegates
15 | /// to handle session-level events, like session life cycle changes.
16 | public let sessionDelegate: URLSessionDelegate?
| `- error: cannot find type 'URLSessionDelegate' in scope
17 | /// A queue that regulates the execution of operations.
18 | public let sessionDelegateQueue: OperationQueue?
/host/spi-builder-workspace/Sources/NetworkLayerInterfaces/Classes/Core/Models/Configuration.swift:34:26: error: cannot find type 'URLSessionDelegate' in scope
32 | public init(
33 | sessionConfiguration: URLSessionConfiguration,
34 | sessionDelegate: URLSessionDelegate?,
| `- error: cannot find type 'URLSessionDelegate' in scope
35 | sessionDelegateQueue: OperationQueue?,
36 | jsonDecoder: JSONDecoder
/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.
31 | /// - jsonDecoder: An object that decodes instances of a data type from JSON objects.
32 | public init(
33 | sessionConfiguration: URLSessionConfiguration,
| `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
34 | sessionDelegate: URLSessionDelegate?,
35 | sessionDelegateQueue: OperationQueue?,
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionConfiguration = AnyObject
| `- note: 'URLSessionConfiguration' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/NetworkLayerInterfaces/Classes/Core/Models/IRequest.swift:37:22: error: cannot find type 'URLRequest' in scope
35 |
36 | /// An alias for the cache policy.
37 | var cachePolicy: URLRequest.CachePolicy { get }
| `- error: cannot find type 'URLRequest' in scope
38 | }
39 |
/host/spi-builder-workspace/Sources/NetworkLayerInterfaces/Classes/Core/Models/IRequest.swift:67:22: error: cannot find type 'URLRequest' in scope
65 |
66 | /// An alias for the cache policy.
67 | var cachePolicy: URLRequest.CachePolicy {
| `- error: cannot find type 'URLRequest' in scope
68 | .useProtocolCachePolicy
69 | }
/host/spi-builder-workspace/Sources/NetworkLayerInterfaces/Classes/Core/Models/Response.swift:16:26: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
14 |
15 | /// The URL response received.
16 | public let response: URLResponse
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
17 |
18 | /// The URLSessionTask associated with the response.
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/NetworkLayerInterfaces/Classes/Core/Models/Response.swift:19:22: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
17 |
18 | /// The URLSessionTask associated with the response.
19 | public let task: URLSessionTask
| `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
20 |
21 | /// The HTTP status code of the response, if available.
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionTask = AnyObject
| `- note: 'URLSessionTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/NetworkLayerInterfaces/Classes/Core/Models/Response.swift:30:36: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
28 | /// - response: The URL response received.
29 | /// - task: The URLSessionTask associated with the response.
30 | public init(data: T, response: URLResponse, task: URLSessionTask) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
31 | self.data = data
32 | self.response = response
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/NetworkLayerInterfaces/Classes/Core/Models/Response.swift:30:55: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
28 | /// - response: The URL response received.
29 | /// - task: The URLSessionTask associated with the response.
30 | public init(data: T, response: URLResponse, task: URLSessionTask) {
| `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
31 | self.data = data
32 | self.response = response
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionTask = AnyObject
| `- note: 'URLSessionTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/NetworkLayerInterfaces/Classes/Core/Services/IDataRequestHandler.swift:9:38: error: cannot find type 'URLSessionTaskDelegate' in scope
7 |
8 | /// A protocol for handling data requests.
9 | public protocol IDataRequestHandler: URLSessionTaskDelegate & URLSessionDataDelegate {
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
10 | var urlSessionDelegate: URLSessionDelegate? { get set }
11 |
/host/spi-builder-workspace/Sources/NetworkLayerInterfaces/Classes/Core/Services/IDataRequestHandler.swift:10:29: error: cannot find type 'URLSessionDelegate' in scope
8 | /// A protocol for handling data requests.
9 | public protocol IDataRequestHandler: URLSessionTaskDelegate & URLSessionDataDelegate {
10 | var urlSessionDelegate: URLSessionDelegate? { get set }
| `- error: cannot find type 'URLSessionDelegate' in scope
11 |
12 | /// Starts a data task for handling network requests.
/host/spi-builder-workspace/Sources/NetworkLayerInterfaces/Classes/Core/Services/IDataRequestHandler.swift:21:19: error: cannot find type 'URLSessionDelegate' in scope
19 | func startDataTask(
20 | _ task: URLSessionDataTask,
21 | delegate: URLSessionDelegate?
| `- error: cannot find type 'URLSessionDelegate' in scope
22 | ) async throws -> Response<Data>
23 | }
/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.
18 | /// - Returns: An asynchronous task that will result in a Response object containing data when the request is completed.
19 | func startDataTask(
20 | _ task: URLSessionDataTask,
| `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
21 | delegate: URLSessionDelegate?
22 | ) async throws -> Response<Data>
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionDataTask = AnyObject
| `- note: 'URLSessionDataTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/NetworkLayerInterfaces/Classes/Core/Services/IRequestBuilder.swift:15:98: error: cannot find type 'URLRequest' in scope
13 | ///
14 | /// - Returns: A `URLRequest` constructed based on the given data.
15 | func build(_ request: IRequest, _ configure: ((inout URLRequest) throws -> Void)?) throws -> URLRequest?
| `- error: cannot find type 'URLRequest' in scope
16 | }
17 |
/host/spi-builder-workspace/Sources/NetworkLayerInterfaces/Classes/Core/Services/IRequestBuilder.swift:15:58: error: cannot find type 'URLRequest' in scope
13 | ///
14 | /// - Returns: A `URLRequest` constructed based on the given data.
15 | func build(_ request: IRequest, _ configure: ((inout URLRequest) throws -> Void)?) throws -> URLRequest?
| `- error: cannot find type 'URLRequest' in scope
16 | }
17 |
/host/spi-builder-workspace/Sources/NetworkLayerInterfaces/Classes/Core/Services/IRequestProcessor.swift:24:19: error: cannot find type 'URLSessionDelegate' in scope
22 | _ request: T,
23 | strategy: RetryPolicyStrategy?,
24 | delegate: URLSessionDelegate?,
| `- error: cannot find type 'URLSessionDelegate' in scope
25 | configure: (@Sendable (inout URLRequest) throws -> Void)?
26 | ) async throws -> Response<M>
/host/spi-builder-workspace/Sources/NetworkLayerInterfaces/Classes/Core/Services/IRequestProcessor.swift:25:38: error: cannot find type 'URLRequest' in scope
23 | strategy: RetryPolicyStrategy?,
24 | delegate: URLSessionDelegate?,
25 | configure: (@Sendable (inout URLRequest) throws -> Void)?
| `- error: cannot find type 'URLRequest' in scope
26 | ) async throws -> Response<M>
27 | }
/host/spi-builder-workspace/Sources/NetworkLayerInterfaces/Classes/Core/Services/RequestProcessorDelegate.swift:17:91: error: cannot find type 'URLRequest' in scope
15 | /// - requestProcessor: The request processor responsible for handling the request.
16 | /// - request: The URLRequest about to be sent.
17 | func requestProcessor(_ requestProcessor: IRequestProcessor, willSendRequest request: URLRequest) async throws
| `- error: cannot find type 'URLRequest' in scope
18 |
19 | /// Notifies the delegate that the request processor received a response and provides an opportunity to validate it.
/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.
26 | func requestProcessor(
27 | _ requestProcessor: IRequestProcessor,
28 | validateResponse response: HTTPURLResponse,
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
29 | data: Data,
30 | task: URLSessionTask
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/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.
28 | validateResponse response: HTTPURLResponse,
29 | data: Data,
30 | task: URLSessionTask
| `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
31 | ) throws
32 | }
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionTask = AnyObject
| `- note: 'URLSessionTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/NetworkLayerInterfaces/Classes/Core/Services/RequestProcessorDelegate.swift:35:68: error: cannot find type 'URLRequest' in scope
33 |
34 | public extension RequestProcessorDelegate {
35 | func requestProcessor(_: IRequestProcessor, willSendRequest _: URLRequest) async throws {}
| `- error: cannot find type 'URLRequest' in scope
36 | }
37 |
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-1":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.1-latest swift build --triple x86_64-unknown-linux-gnu 2>&1
basic-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:3bdcac04179f4ed3e5b8e9dbd6e74bbf5ebc0f4fde48bbaad7d1e5c757e65bcb
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.1-latest
warning: 'atomic': /host/spi-builder-workspace/.build/checkouts/atomic/Package.swift:12:16: warning: 'v11' is deprecated: tvOS 12.0 is the oldest supported version
10 | .iOS(.v13),
11 | .watchOS(.v6),
12 | .tvOS(.v11),
| `- warning: 'v11' is deprecated: tvOS 12.0 is the oldest supported version
13 | .visionOS(.v1),
14 | ],
[0/1] Planning build
Building for debugging...
[0/1] Write swift-version-24593BA9C3E375BF.txt
[2/13] Emitting module Typhoon
[3/13] 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
13 |
14 | /// The underlying `os_unfair_lock` used for synchronization.
15 | private let unfairLock: os_unfair_lock_t
| `- error: cannot find type 'os_unfair_lock_t' in scope
16 |
17 | // MARK: Initialization
/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'
19 | /// Initializes an UnfairLock instance.
20 | init() {
21 | unfairLock = .allocate(capacity: 1)
| `- error: cannot infer contextual base in reference to member 'allocate'
22 | unfairLock.initialize(to: os_unfair_lock())
23 | }
/host/spi-builder-workspace/.build/checkouts/atomic/Sources/Atomic/Classes/Helpers/Lock/UnfairLock.swift:22:35: error: cannot find 'os_unfair_lock' in scope
20 | init() {
21 | unfairLock = .allocate(capacity: 1)
22 | unfairLock.initialize(to: os_unfair_lock())
| `- error: cannot find 'os_unfair_lock' in scope
23 | }
24 |
/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
33 | extension UnfairLock: ILock {
34 | func lock() {
35 | os_unfair_lock_lock(unfairLock)
| `- error: cannot find 'os_unfair_lock_lock' in scope
36 | }
37 |
/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
37 |
38 | func unlock() {
39 | os_unfair_lock_unlock(unfairLock)
| `- error: cannot find 'os_unfair_lock_unlock' in scope
40 | }
41 | }
[4/13] Compiling Typhoon DispatchTimeInterval+Double.swift
[5/13] Compiling Atomic ILock.swift
[6/13] Compiling Typhoon RetryPolicyStrategy.swift
[7/13] Compiling Typhoon RetrySequence.swift
[8/13] Compiling Typhoon RetryIterator.swift
[9/13] Compiling Typhoon RetryPolicyError.swift
[10/13] Compiling Typhoon IRetryPolicyService.swift
[11/13] Compiling Typhoon RetryPolicyService.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[12/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
13 |
14 | /// The underlying `os_unfair_lock` used for synchronization.
15 | private let unfairLock: os_unfair_lock_t
| `- error: cannot find type 'os_unfair_lock_t' in scope
16 |
17 | // MARK: Initialization
[13/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
13 |
14 | /// The underlying `os_unfair_lock` used for synchronization.
15 | private let unfairLock: os_unfair_lock_t
| `- error: cannot find type 'os_unfair_lock_t' in scope
16 |
17 | // MARK: Initialization
BUILD FAILURE 6.1 linux