Build Information
Failed to build HPNetwork, reference main (900a84), with Swift 6.0 for Linux on 20 Mar 2026 20:20:32 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4609320-1":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/swiftpackageindex/spi-images:basic-6.0-latest swift build --triple x86_64-unknown-linux-gnu 2>&1Build Log
========================================
RunAll
========================================
Builder version: 4.69.2
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/henrik-dmg/HPNetwork.git
Reference: main
Initialized empty Git repository in /host/spi-builder-workspace/.git/
hint: Using 'master' as the name for the initial branch. This default branch name
hint: is subject to change. To configure the initial branch name to use in all
hint: of your new repositories, which will suppress this warning, call:
hint:
hint: git config --global init.defaultBranch <name>
hint:
hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and
hint: 'development'. The just-created branch can be renamed via this command:
hint:
hint: git branch -m <name>
From https://github.com/henrik-dmg/HPNetwork
* branch main -> FETCH_HEAD
* [new branch] main -> origin/main
HEAD is now at 900a845 Migrate to swift-testing
Cloned https://github.com/henrik-dmg/HPNetwork.git
Revision (git rev-parse @):
900a845b98f1ccd78c80c24bf68e4f5fc4de12e1
SUCCESS checkout https://github.com/henrik-dmg/HPNetwork.git at main
========================================
Build
========================================
Selected platform: linux
Swift version: 6.0
Building package at path: $PWD
https://github.com/henrik-dmg/HPNetwork.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-1":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/swiftpackageindex/spi-images:basic-6.0-latest swift build --triple x86_64-unknown-linux-gnu 2>&1
basic-6.0-latest: Pulling from swiftpackageindex/spi-images
Digest: sha256:ece747c77e94bae4930a5e18230daf779deb87c9e35c56d75daa73885bd2cdd2
Status: Image is up to date for registry.gitlab.com/swiftpackageindex/spi-images:basic-6.0-latest
Fetching https://github.com/apple/swift-http-types.git
[1/951] Fetching swift-http-types
Fetched https://github.com/apple/swift-http-types.git from cache (0.47s)
Computing version for https://github.com/apple/swift-http-types.git
Computed https://github.com/apple/swift-http-types.git at 1.5.1 (1.30s)
Creating working copy for https://github.com/apple/swift-http-types.git
Working copy of https://github.com/apple/swift-http-types.git resolved at 1.5.1
Building for debugging...
[0/5] Write sources
[4/5] Write swift-version-24593BA9C3E375BF.txt
[6/14] Compiling HTTPTypes ISOLatin1String.swift
[7/15] Compiling HTTPTypes HTTPParsedFields.swift
[8/15] Compiling HTTPTypes HTTPRequest.swift
[9/15] Compiling HTTPTypes HTTPResponse.swift
[10/15] Compiling HTTPTypes NIOLock.swift
[11/15] Compiling HTTPTypes HTTPRequest+URL.swift
[12/15] Compiling HTTPTypes HTTPField.swift
[13/15] Compiling HTTPTypes HTTPFieldName.swift
[14/15] Emitting module HTTPTypes
[15/15] Compiling HTTPTypes HTTPFields.swift
[17/22] Compiling HTTPTypesFoundation HTTPTypesFoundation.swift
[18/22] Emitting module HTTPTypesFoundation
[19/22] Compiling HTTPTypesFoundation HTTPTypes+ISOLatin1.swift
[20/22] Compiling HTTPTypesFoundation URLRequest+HTTPTypes.swift
[21/22] Compiling HTTPTypesFoundation URLResponse+HTTPTypes.swift
[22/22] Compiling HTTPTypesFoundation URLSession+HTTPTypes.swift
[24/35] Compiling HPNetwork BearerAuthorization.swift
[25/35] Compiling HPNetwork HTTPTypes+Proxy.swift
[26/35] Compiling HPNetwork Authorization.swift
[27/35] Compiling HPNetwork BasicAuthorization.swift
[28/36] Compiling HPNetwork ContentType+HTTPField.swift
[29/36] Compiling HPNetwork HTTPFieldBuilder.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[30/36] Emitting module HPNetwork
/host/spi-builder-workspace/Sources/HPNetwork/NetworkClient.swift:8:24: error: cannot find type 'URLSessionTaskDelegate' in scope
6 | func response<Request: NetworkRequest>(
7 | _ request: Request,
8 | delegate: (any URLSessionTaskDelegate)?
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
9 | ) async throws -> NetworkResponse<Request.Output>
10 |
/host/spi-builder-workspace/Sources/HPNetwork/NetworkClient.swift:13:24: error: cannot find type 'URLSessionTaskDelegate' in scope
11 | func result<Request: NetworkRequest>(
12 | _ request: Request,
13 | delegate: (any URLSessionTaskDelegate)?
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
14 | ) async -> Request.NetworkResult
15 |
/host/spi-builder-workspace/Sources/HPNetwork/NetworkClient.swift:18:24: error: cannot find type 'URLSessionTaskDelegate' in scope
16 | func schedule<Request: NetworkRequest>(
17 | _ request: Request,
18 | delegate: (any URLSessionTaskDelegate)?
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
19 | ) -> Request.NetworkTask
20 |
/host/spi-builder-workspace/Sources/HPNetwork/NetworkClient.swift:27:29: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
25 |
26 | /// The `URLSession` instance that will be used to execute network requests.
27 | private let urlSession: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
28 |
29 | /// Creates a new network client.
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/HPNetwork/NetworkClient.swift:31:29: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
29 | /// Creates a new network client.
30 | /// - Parameter urlSession: The `URLSession` instance that will be used to execute network requests
31 | public init(urlSession: URLSession) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
32 | self.urlSession = urlSession
33 | }
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/HPNetwork/NetworkClient.swift:37:24: error: cannot find type 'URLSessionTaskDelegate' in scope
35 | public func response<Request: NetworkRequest>(
36 | _ request: Request,
37 | delegate: (any URLSessionTaskDelegate)? = nil
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
38 | ) async throws -> NetworkResponse<Request.Output> {
39 | try await request.response(urlSession: urlSession, delegate: delegate)
/host/spi-builder-workspace/Sources/HPNetwork/NetworkClient.swift:44:24: error: cannot find type 'URLSessionTaskDelegate' in scope
42 | public func result<Request: NetworkRequest>(
43 | _ request: Request,
44 | delegate: (any URLSessionTaskDelegate)? = nil
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
45 | ) async -> Request.NetworkResult {
46 | await request.result(urlSession: urlSession, delegate: delegate)
/host/spi-builder-workspace/Sources/HPNetwork/NetworkClient.swift:51:24: error: cannot find type 'URLSessionTaskDelegate' in scope
49 | public func schedule<Request: NetworkRequest>(
50 | _ request: Request,
51 | delegate: (any URLSessionTaskDelegate)? = nil
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
52 | ) -> Request.NetworkTask where Request.Output: Sendable {
53 | request.schedule(urlSession: urlSession, delegate: delegate)
/host/spi-builder-workspace/Sources/HPNetwork/Requests/DataRequest.swift:27:58: error: cannot find type 'URLSessionTaskDelegate' in scope
25 | /// - Returns: The network response containing the converted output along with some metadata
26 | /// - Throws: If the networking failed or converting the response to the desired output type failed
27 | func response(urlSession: URLSession, delegate: (any URLSessionTaskDelegate)?) async throws -> Response
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
28 |
29 | /// Executes the request and returns the result.
/host/spi-builder-workspace/Sources/HPNetwork/Requests/DataRequest.swift:27:31: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
25 | /// - Returns: The network response containing the converted output along with some metadata
26 | /// - Throws: If the networking failed or converting the response to the desired output type failed
27 | func response(urlSession: URLSession, delegate: (any URLSessionTaskDelegate)?) async throws -> Response
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
28 |
29 | /// Executes the request and returns the result.
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/HPNetwork/Requests/DataRequest.swift:34:56: error: cannot find type 'URLSessionTaskDelegate' in scope
32 | /// - delegate: The delegate to use
33 | /// - Returns: The result of the network request
34 | func result(urlSession: URLSession, delegate: (any URLSessionTaskDelegate)?) async -> NetworkResult
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
35 |
36 | /// Executes the request and calls the completion handler with the result.
/host/spi-builder-workspace/Sources/HPNetwork/Requests/DataRequest.swift:34:29: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
32 | /// - delegate: The delegate to use
33 | /// - Returns: The result of the network request
34 | func result(urlSession: URLSession, delegate: (any URLSessionTaskDelegate)?) async -> NetworkResult
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
35 |
36 | /// Executes the request and calls the completion handler with the result.
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/HPNetwork/Requests/DataRequest.swift:41:58: error: cannot find type 'URLSessionTaskDelegate' in scope
39 | /// - delegate: The delegate to use
40 | /// - Returns: A cancellable `Task` instance
41 | func schedule(urlSession: URLSession, delegate: (any URLSessionTaskDelegate)?) -> NetworkTask
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
42 |
43 | }
/host/spi-builder-workspace/Sources/HPNetwork/Requests/DataRequest.swift:41:31: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
39 | /// - delegate: The delegate to use
40 | /// - Returns: A cancellable `Task` instance
41 | func schedule(urlSession: URLSession, delegate: (any URLSessionTaskDelegate)?) -> NetworkTask
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
42 |
43 | }
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/HPNetwork/Requests/DataRequest.swift:50:65: error: cannot find type 'URLSessionTaskDelegate' in scope
48 |
49 | @discardableResult
50 | public func response(urlSession: URLSession, delegate: (any URLSessionTaskDelegate)?) async throws -> Response {
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
51 | // Make request
52 | let request = try makeRequest()
/host/spi-builder-workspace/Sources/HPNetwork/Requests/DataRequest.swift:50:38: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
48 |
49 | @discardableResult
50 | public func response(urlSession: URLSession, delegate: (any URLSessionTaskDelegate)?) async throws -> Response {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
51 | // Make request
52 | let request = try makeRequest()
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/HPNetwork/Requests/DataRequest.swift:91:63: error: cannot find type 'URLSessionTaskDelegate' in scope
89 |
90 | @discardableResult
91 | public func result(urlSession: URLSession, delegate: (any URLSessionTaskDelegate)?) async -> NetworkResult {
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
92 | do {
93 | let result = try await response(urlSession: urlSession, delegate: delegate)
/host/spi-builder-workspace/Sources/HPNetwork/Requests/DataRequest.swift:91:36: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
89 |
90 | @discardableResult
91 | public func result(urlSession: URLSession, delegate: (any URLSessionTaskDelegate)?) async -> NetworkResult {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
92 | do {
93 | let result = try await response(urlSession: urlSession, delegate: delegate)
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/HPNetwork/Requests/DataRequest.swift:101:65: error: cannot find type 'URLSessionTaskDelegate' in scope
99 |
100 | @discardableResult
101 | public func schedule(urlSession: URLSession, delegate: (any URLSessionTaskDelegate)?) -> NetworkTask where Output: Sendable {
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
102 | NetworkTask {
103 | try await response(urlSession: urlSession, delegate: delegate)
/host/spi-builder-workspace/Sources/HPNetwork/Requests/DataRequest.swift:101:38: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
99 |
100 | @discardableResult
101 | public func schedule(urlSession: URLSession, delegate: (any URLSessionTaskDelegate)?) -> NetworkTask where Output: Sendable {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
102 | NetworkTask {
103 | try await response(urlSession: urlSession, delegate: delegate)
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/HPNetwork/Requests/DownloadRequest.swift:19:65: error: cannot find type 'URLSessionTaskDelegate' in scope
17 |
18 | @discardableResult
19 | public func response(urlSession: URLSession, delegate: (any URLSessionTaskDelegate)?) async throws -> Response {
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
20 | let request = try makeRequest()
21 | let startTime = DispatchTime.now()
/host/spi-builder-workspace/Sources/HPNetwork/Requests/DownloadRequest.swift:19:38: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
17 |
18 | @discardableResult
19 | public func response(urlSession: URLSession, delegate: (any URLSessionTaskDelegate)?) async throws -> Response {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
20 | let request = try makeRequest()
21 | let startTime = DispatchTime.now()
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/HPNetwork/Requests/DownloadRequest.swift:60:63: error: cannot find type 'URLSessionTaskDelegate' in scope
58 |
59 | @discardableResult
60 | public func result(urlSession: URLSession, delegate: (any URLSessionTaskDelegate)?) async -> NetworkResult {
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
61 | do {
62 | let result = try await response(urlSession: urlSession, delegate: delegate)
/host/spi-builder-workspace/Sources/HPNetwork/Requests/DownloadRequest.swift:60:36: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
58 |
59 | @discardableResult
60 | public func result(urlSession: URLSession, delegate: (any URLSessionTaskDelegate)?) async -> NetworkResult {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
61 | do {
62 | let result = try await response(urlSession: urlSession, delegate: delegate)
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/HPNetwork/Requests/DownloadRequest.swift:70:65: error: cannot find type 'URLSessionTaskDelegate' in scope
68 |
69 | @discardableResult
70 | public func schedule(urlSession: URLSession, delegate: (any URLSessionTaskDelegate)?) -> NetworkTask where Output: Sendable {
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
71 | NetworkTask {
72 | try await response(urlSession: urlSession, delegate: delegate)
/host/spi-builder-workspace/Sources/HPNetwork/Requests/DownloadRequest.swift:70:38: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
68 |
69 | @discardableResult
70 | public func schedule(urlSession: URLSession, delegate: (any URLSessionTaskDelegate)?) -> NetworkTask where Output: Sendable {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
71 | NetworkTask {
72 | try await response(urlSession: urlSession, delegate: delegate)
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/HPNetwork/Requests/NetworkRequest.swift:51:58: error: cannot find type 'URLSessionTaskDelegate' in scope
49 | /// - Returns: a wrapper object containing an instance of ``Output`` along with the elapsed time for both networking and processing in seconds
50 | /// - Throws: Throws an error when anything went wrong while executing the network request
51 | func response(urlSession: URLSession, delegate: (any URLSessionTaskDelegate)?) async throws -> Response
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
52 |
53 | /// Uses all the provided information to create a `URLRequest` and handles that request's result accordingly.
/host/spi-builder-workspace/Sources/HPNetwork/Requests/NetworkRequest.swift:51:31: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
49 | /// - Returns: a wrapper object containing an instance of ``Output`` along with the elapsed time for both networking and processing in seconds
50 | /// - Throws: Throws an error when anything went wrong while executing the network request
51 | func response(urlSession: URLSession, delegate: (any URLSessionTaskDelegate)?) async throws -> Response
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
52 |
53 | /// Uses all the provided information to create a `URLRequest` and handles that request's result accordingly.
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/HPNetwork/Requests/NetworkRequest.swift:59:56: error: cannot find type 'URLSessionTaskDelegate' in scope
57 | /// - Returns: a result with either a wrapper object containing an instance of ``Output`` along with the elapsed time for
58 | /// both networking and processing in seconds or an error
59 | func result(urlSession: URLSession, delegate: (any URLSessionTaskDelegate)?) async -> NetworkResult
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
60 |
61 | /// Uses all the provided information to create a `URLRequest` and schedules that request.
/host/spi-builder-workspace/Sources/HPNetwork/Requests/NetworkRequest.swift:59:29: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
57 | /// - Returns: a result with either a wrapper object containing an instance of ``Output`` along with the elapsed time for
58 | /// both networking and processing in seconds or an error
59 | func result(urlSession: URLSession, delegate: (any URLSessionTaskDelegate)?) async -> NetworkResult
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
60 |
61 | /// Uses all the provided information to create a `URLRequest` and schedules that 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/HPNetwork/Requests/NetworkRequest.swift:66:58: error: cannot find type 'URLSessionTaskDelegate' in scope
64 | /// - delegate: The delegate that can be used to inspect and react to the network traffic while the request is running
65 | /// - Returns: A task that wraps the running network request
66 | func schedule(urlSession: URLSession, delegate: (any URLSessionTaskDelegate)?) -> NetworkTask
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
67 |
68 | /// A method that can be used to validate the response of a network request before any further processing will be attempted.
/host/spi-builder-workspace/Sources/HPNetwork/Requests/NetworkRequest.swift:66:31: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
64 | /// - delegate: The delegate that can be used to inspect and react to the network traffic while the request is running
65 | /// - Returns: A task that wraps the running network request
66 | func schedule(urlSession: URLSession, delegate: (any URLSessionTaskDelegate)?) -> NetworkTask
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
67 |
68 | /// A method that can be used to validate the response of a network request before any further processing will be attempted.
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/HPNetwork/Requests/NetworkRequest.swift:80:41: error: cannot find type 'URLRequest' in scope
78 | /// Constructs a `URLRequest` from the provided values.
79 | /// - Returns: a new `URLRequest` instance
80 | public func makeRequest() throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
81 | let url = try makeURL()
82 |
/host/spi-builder-workspace/Sources/HPNetwork/Requests/NetworkRequest.swift:149:38: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
147 | /// - Throws: Throws an error when anything went wrong while executing the network request
148 | @discardableResult
149 | public func response(urlSession: URLSession) async throws -> Response {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
150 | try await response(urlSession: urlSession, delegate: nil)
151 | }
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/HPNetwork/Requests/NetworkRequest.swift:158:36: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
156 | /// both networking and processing in seconds or an error
157 | @discardableResult
158 | public func result(urlSession: URLSession) async -> NetworkResult {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
159 | await result(urlSession: urlSession, delegate: nil)
160 | }
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/HPNetwork/Requests/NetworkRequest.swift:166:38: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
164 | /// - Returns: A task that wraps the running network request
165 | @discardableResult
166 | public func schedule(urlSession: URLSession) -> NetworkTask {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
167 | schedule(urlSession: urlSession, delegate: nil)
168 | }
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
[31/36] Compiling HPNetwork NetworkClient.swift
/host/spi-builder-workspace/Sources/HPNetwork/NetworkClient.swift:8:24: error: cannot find type 'URLSessionTaskDelegate' in scope
6 | func response<Request: NetworkRequest>(
7 | _ request: Request,
8 | delegate: (any URLSessionTaskDelegate)?
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
9 | ) async throws -> NetworkResponse<Request.Output>
10 |
/host/spi-builder-workspace/Sources/HPNetwork/NetworkClient.swift:13:24: error: cannot find type 'URLSessionTaskDelegate' in scope
11 | func result<Request: NetworkRequest>(
12 | _ request: Request,
13 | delegate: (any URLSessionTaskDelegate)?
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
14 | ) async -> Request.NetworkResult
15 |
/host/spi-builder-workspace/Sources/HPNetwork/NetworkClient.swift:18:24: error: cannot find type 'URLSessionTaskDelegate' in scope
16 | func schedule<Request: NetworkRequest>(
17 | _ request: Request,
18 | delegate: (any URLSessionTaskDelegate)?
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
19 | ) -> Request.NetworkTask
20 |
/host/spi-builder-workspace/Sources/HPNetwork/NetworkClient.swift:27:29: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
25 |
26 | /// The `URLSession` instance that will be used to execute network requests.
27 | private let urlSession: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
28 |
29 | /// Creates a new network client.
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/HPNetwork/NetworkClient.swift:31:29: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
29 | /// Creates a new network client.
30 | /// - Parameter urlSession: The `URLSession` instance that will be used to execute network requests
31 | public init(urlSession: URLSession) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
32 | self.urlSession = urlSession
33 | }
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/HPNetwork/NetworkClient.swift:37:24: error: cannot find type 'URLSessionTaskDelegate' in scope
35 | public func response<Request: NetworkRequest>(
36 | _ request: Request,
37 | delegate: (any URLSessionTaskDelegate)? = nil
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
38 | ) async throws -> NetworkResponse<Request.Output> {
39 | try await request.response(urlSession: urlSession, delegate: delegate)
/host/spi-builder-workspace/Sources/HPNetwork/NetworkClient.swift:44:24: error: cannot find type 'URLSessionTaskDelegate' in scope
42 | public func result<Request: NetworkRequest>(
43 | _ request: Request,
44 | delegate: (any URLSessionTaskDelegate)? = nil
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
45 | ) async -> Request.NetworkResult {
46 | await request.result(urlSession: urlSession, delegate: delegate)
/host/spi-builder-workspace/Sources/HPNetwork/NetworkClient.swift:51:24: error: cannot find type 'URLSessionTaskDelegate' in scope
49 | public func schedule<Request: NetworkRequest>(
50 | _ request: Request,
51 | delegate: (any URLSessionTaskDelegate)? = nil
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
52 | ) -> Request.NetworkTask where Request.Output: Sendable {
53 | request.schedule(urlSession: urlSession, delegate: delegate)
/host/spi-builder-workspace/Sources/HPNetwork/Requests/NetworkRequest.swift:51:58: error: cannot find type 'URLSessionTaskDelegate' in scope
49 | /// - Returns: a wrapper object containing an instance of ``Output`` along with the elapsed time for both networking and processing in seconds
50 | /// - Throws: Throws an error when anything went wrong while executing the network request
51 | func response(urlSession: URLSession, delegate: (any URLSessionTaskDelegate)?) async throws -> Response
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
52 |
53 | /// Uses all the provided information to create a `URLRequest` and handles that request's result accordingly.
/host/spi-builder-workspace/Sources/HPNetwork/NetworkClient.swift:39:70: error: extra argument 'delegate' in call
37 | delegate: (any URLSessionTaskDelegate)? = nil
38 | ) async throws -> NetworkResponse<Request.Output> {
39 | try await request.response(urlSession: urlSession, delegate: delegate)
| `- error: extra argument 'delegate' in call
40 | }
41 |
/host/spi-builder-workspace/Sources/HPNetwork/Requests/NetworkRequest.swift:59:56: error: cannot find type 'URLSessionTaskDelegate' in scope
57 | /// - Returns: a result with either a wrapper object containing an instance of ``Output`` along with the elapsed time for
58 | /// both networking and processing in seconds or an error
59 | func result(urlSession: URLSession, delegate: (any URLSessionTaskDelegate)?) async -> NetworkResult
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
60 |
61 | /// Uses all the provided information to create a `URLRequest` and schedules that request.
/host/spi-builder-workspace/Sources/HPNetwork/NetworkClient.swift:46:64: error: extra argument 'delegate' in call
44 | delegate: (any URLSessionTaskDelegate)? = nil
45 | ) async -> Request.NetworkResult {
46 | await request.result(urlSession: urlSession, delegate: delegate)
| `- error: extra argument 'delegate' in call
47 | }
48 |
/host/spi-builder-workspace/Sources/HPNetwork/Requests/NetworkRequest.swift:66:58: error: cannot find type 'URLSessionTaskDelegate' in scope
64 | /// - delegate: The delegate that can be used to inspect and react to the network traffic while the request is running
65 | /// - Returns: A task that wraps the running network request
66 | func schedule(urlSession: URLSession, delegate: (any URLSessionTaskDelegate)?) -> NetworkTask
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
67 |
68 | /// A method that can be used to validate the response of a network request before any further processing will be attempted.
/host/spi-builder-workspace/Sources/HPNetwork/NetworkClient.swift:53:60: error: extra argument 'delegate' in call
51 | delegate: (any URLSessionTaskDelegate)? = nil
52 | ) -> Request.NetworkTask where Request.Output: Sendable {
53 | request.schedule(urlSession: urlSession, delegate: delegate)
| `- error: extra argument 'delegate' in call
54 | }
55 |
/host/spi-builder-workspace/Sources/HPNetwork/Requests/DataRequest.swift:27:58: error: cannot find type 'URLSessionTaskDelegate' in scope
25 | /// - Returns: The network response containing the converted output along with some metadata
26 | /// - Throws: If the networking failed or converting the response to the desired output type failed
27 | func response(urlSession: URLSession, delegate: (any URLSessionTaskDelegate)?) async throws -> Response
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
28 |
29 | /// Executes the request and returns the result.
/host/spi-builder-workspace/Sources/HPNetwork/Requests/DataRequest.swift:27:31: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
25 | /// - Returns: The network response containing the converted output along with some metadata
26 | /// - Throws: If the networking failed or converting the response to the desired output type failed
27 | func response(urlSession: URLSession, delegate: (any URLSessionTaskDelegate)?) async throws -> Response
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
28 |
29 | /// Executes the request and returns the result.
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/HPNetwork/Requests/DataRequest.swift:34:56: error: cannot find type 'URLSessionTaskDelegate' in scope
32 | /// - delegate: The delegate to use
33 | /// - Returns: The result of the network request
34 | func result(urlSession: URLSession, delegate: (any URLSessionTaskDelegate)?) async -> NetworkResult
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
35 |
36 | /// Executes the request and calls the completion handler with the result.
/host/spi-builder-workspace/Sources/HPNetwork/Requests/DataRequest.swift:34:29: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
32 | /// - delegate: The delegate to use
33 | /// - Returns: The result of the network request
34 | func result(urlSession: URLSession, delegate: (any URLSessionTaskDelegate)?) async -> NetworkResult
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
35 |
36 | /// Executes the request and calls the completion handler with the result.
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/HPNetwork/Requests/DataRequest.swift:41:58: error: cannot find type 'URLSessionTaskDelegate' in scope
39 | /// - delegate: The delegate to use
40 | /// - Returns: A cancellable `Task` instance
41 | func schedule(urlSession: URLSession, delegate: (any URLSessionTaskDelegate)?) -> NetworkTask
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
42 |
43 | }
/host/spi-builder-workspace/Sources/HPNetwork/Requests/DataRequest.swift:41:31: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
39 | /// - delegate: The delegate to use
40 | /// - Returns: A cancellable `Task` instance
41 | func schedule(urlSession: URLSession, delegate: (any URLSessionTaskDelegate)?) -> NetworkTask
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
42 |
43 | }
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/HPNetwork/Requests/DataRequest.swift:50:65: error: cannot find type 'URLSessionTaskDelegate' in scope
48 |
49 | @discardableResult
50 | public func response(urlSession: URLSession, delegate: (any URLSessionTaskDelegate)?) async throws -> Response {
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
51 | // Make request
52 | let request = try makeRequest()
/host/spi-builder-workspace/Sources/HPNetwork/Requests/DataRequest.swift:50:38: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
48 |
49 | @discardableResult
50 | public func response(urlSession: URLSession, delegate: (any URLSessionTaskDelegate)?) async throws -> Response {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
51 | // Make request
52 | let request = try makeRequest()
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/HPNetwork/Requests/DataRequest.swift:91:63: error: cannot find type 'URLSessionTaskDelegate' in scope
89 |
90 | @discardableResult
91 | public func result(urlSession: URLSession, delegate: (any URLSessionTaskDelegate)?) async -> NetworkResult {
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
92 | do {
93 | let result = try await response(urlSession: urlSession, delegate: delegate)
/host/spi-builder-workspace/Sources/HPNetwork/Requests/DataRequest.swift:91:36: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
89 |
90 | @discardableResult
91 | public func result(urlSession: URLSession, delegate: (any URLSessionTaskDelegate)?) async -> NetworkResult {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
92 | do {
93 | let result = try await response(urlSession: urlSession, delegate: delegate)
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/HPNetwork/Requests/DataRequest.swift:101:65: error: cannot find type 'URLSessionTaskDelegate' in scope
99 |
100 | @discardableResult
101 | public func schedule(urlSession: URLSession, delegate: (any URLSessionTaskDelegate)?) -> NetworkTask where Output: Sendable {
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
102 | NetworkTask {
103 | try await response(urlSession: urlSession, delegate: delegate)
/host/spi-builder-workspace/Sources/HPNetwork/Requests/DataRequest.swift:101:38: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
99 |
100 | @discardableResult
101 | public func schedule(urlSession: URLSession, delegate: (any URLSessionTaskDelegate)?) -> NetworkTask where Output: Sendable {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
102 | NetworkTask {
103 | try await response(urlSession: urlSession, delegate: delegate)
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/HPNetwork/Requests/NetworkRequest.swift:80:41: error: cannot find type 'URLRequest' in scope
78 | /// Constructs a `URLRequest` from the provided values.
79 | /// - Returns: a new `URLRequest` instance
80 | public func makeRequest() throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
81 | let url = try makeURL()
82 |
/host/spi-builder-workspace/Sources/HPNetwork/Requests/DataRequest.swift:58:53: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
56 | try Task.checkCancellation()
57 | // Actually execute network request
58 | let (data, response) = try await urlSession.data(for: request, delegate: delegate)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
59 | // Check for cancellation
60 | try Task.checkCancellation()
/host/spi-builder-workspace/Sources/HPNetwork/Requests/DataRequest.swift:93:79: error: extra argument 'delegate' in call
91 | public func result(urlSession: URLSession, delegate: (any URLSessionTaskDelegate)?) async -> NetworkResult {
92 | do {
93 | let result = try await response(urlSession: urlSession, delegate: delegate)
| `- error: extra argument 'delegate' in call
94 | return .success(result)
95 | } catch {
/host/spi-builder-workspace/Sources/HPNetwork/Requests/DataRequest.swift:103:66: error: extra argument 'delegate' in call
101 | public func schedule(urlSession: URLSession, delegate: (any URLSessionTaskDelegate)?) -> NetworkTask where Output: Sendable {
102 | NetworkTask {
103 | try await response(urlSession: urlSession, delegate: delegate)
| `- error: extra argument 'delegate' in call
104 | }
105 | }
[32/36] Compiling HPNetwork DataRequest.swift
/host/spi-builder-workspace/Sources/HPNetwork/NetworkClient.swift:8:24: error: cannot find type 'URLSessionTaskDelegate' in scope
6 | func response<Request: NetworkRequest>(
7 | _ request: Request,
8 | delegate: (any URLSessionTaskDelegate)?
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
9 | ) async throws -> NetworkResponse<Request.Output>
10 |
/host/spi-builder-workspace/Sources/HPNetwork/NetworkClient.swift:13:24: error: cannot find type 'URLSessionTaskDelegate' in scope
11 | func result<Request: NetworkRequest>(
12 | _ request: Request,
13 | delegate: (any URLSessionTaskDelegate)?
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
14 | ) async -> Request.NetworkResult
15 |
/host/spi-builder-workspace/Sources/HPNetwork/NetworkClient.swift:18:24: error: cannot find type 'URLSessionTaskDelegate' in scope
16 | func schedule<Request: NetworkRequest>(
17 | _ request: Request,
18 | delegate: (any URLSessionTaskDelegate)?
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
19 | ) -> Request.NetworkTask
20 |
/host/spi-builder-workspace/Sources/HPNetwork/NetworkClient.swift:27:29: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
25 |
26 | /// The `URLSession` instance that will be used to execute network requests.
27 | private let urlSession: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
28 |
29 | /// Creates a new network client.
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/HPNetwork/NetworkClient.swift:31:29: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
29 | /// Creates a new network client.
30 | /// - Parameter urlSession: The `URLSession` instance that will be used to execute network requests
31 | public init(urlSession: URLSession) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
32 | self.urlSession = urlSession
33 | }
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/HPNetwork/NetworkClient.swift:37:24: error: cannot find type 'URLSessionTaskDelegate' in scope
35 | public func response<Request: NetworkRequest>(
36 | _ request: Request,
37 | delegate: (any URLSessionTaskDelegate)? = nil
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
38 | ) async throws -> NetworkResponse<Request.Output> {
39 | try await request.response(urlSession: urlSession, delegate: delegate)
/host/spi-builder-workspace/Sources/HPNetwork/NetworkClient.swift:44:24: error: cannot find type 'URLSessionTaskDelegate' in scope
42 | public func result<Request: NetworkRequest>(
43 | _ request: Request,
44 | delegate: (any URLSessionTaskDelegate)? = nil
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
45 | ) async -> Request.NetworkResult {
46 | await request.result(urlSession: urlSession, delegate: delegate)
/host/spi-builder-workspace/Sources/HPNetwork/NetworkClient.swift:51:24: error: cannot find type 'URLSessionTaskDelegate' in scope
49 | public func schedule<Request: NetworkRequest>(
50 | _ request: Request,
51 | delegate: (any URLSessionTaskDelegate)? = nil
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
52 | ) -> Request.NetworkTask where Request.Output: Sendable {
53 | request.schedule(urlSession: urlSession, delegate: delegate)
/host/spi-builder-workspace/Sources/HPNetwork/Requests/NetworkRequest.swift:51:58: error: cannot find type 'URLSessionTaskDelegate' in scope
49 | /// - Returns: a wrapper object containing an instance of ``Output`` along with the elapsed time for both networking and processing in seconds
50 | /// - Throws: Throws an error when anything went wrong while executing the network request
51 | func response(urlSession: URLSession, delegate: (any URLSessionTaskDelegate)?) async throws -> Response
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
52 |
53 | /// Uses all the provided information to create a `URLRequest` and handles that request's result accordingly.
/host/spi-builder-workspace/Sources/HPNetwork/NetworkClient.swift:39:70: error: extra argument 'delegate' in call
37 | delegate: (any URLSessionTaskDelegate)? = nil
38 | ) async throws -> NetworkResponse<Request.Output> {
39 | try await request.response(urlSession: urlSession, delegate: delegate)
| `- error: extra argument 'delegate' in call
40 | }
41 |
/host/spi-builder-workspace/Sources/HPNetwork/Requests/NetworkRequest.swift:59:56: error: cannot find type 'URLSessionTaskDelegate' in scope
57 | /// - Returns: a result with either a wrapper object containing an instance of ``Output`` along with the elapsed time for
58 | /// both networking and processing in seconds or an error
59 | func result(urlSession: URLSession, delegate: (any URLSessionTaskDelegate)?) async -> NetworkResult
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
60 |
61 | /// Uses all the provided information to create a `URLRequest` and schedules that request.
/host/spi-builder-workspace/Sources/HPNetwork/NetworkClient.swift:46:64: error: extra argument 'delegate' in call
44 | delegate: (any URLSessionTaskDelegate)? = nil
45 | ) async -> Request.NetworkResult {
46 | await request.result(urlSession: urlSession, delegate: delegate)
| `- error: extra argument 'delegate' in call
47 | }
48 |
/host/spi-builder-workspace/Sources/HPNetwork/Requests/NetworkRequest.swift:66:58: error: cannot find type 'URLSessionTaskDelegate' in scope
64 | /// - delegate: The delegate that can be used to inspect and react to the network traffic while the request is running
65 | /// - Returns: A task that wraps the running network request
66 | func schedule(urlSession: URLSession, delegate: (any URLSessionTaskDelegate)?) -> NetworkTask
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
67 |
68 | /// A method that can be used to validate the response of a network request before any further processing will be attempted.
/host/spi-builder-workspace/Sources/HPNetwork/NetworkClient.swift:53:60: error: extra argument 'delegate' in call
51 | delegate: (any URLSessionTaskDelegate)? = nil
52 | ) -> Request.NetworkTask where Request.Output: Sendable {
53 | request.schedule(urlSession: urlSession, delegate: delegate)
| `- error: extra argument 'delegate' in call
54 | }
55 |
/host/spi-builder-workspace/Sources/HPNetwork/Requests/DataRequest.swift:27:58: error: cannot find type 'URLSessionTaskDelegate' in scope
25 | /// - Returns: The network response containing the converted output along with some metadata
26 | /// - Throws: If the networking failed or converting the response to the desired output type failed
27 | func response(urlSession: URLSession, delegate: (any URLSessionTaskDelegate)?) async throws -> Response
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
28 |
29 | /// Executes the request and returns the result.
/host/spi-builder-workspace/Sources/HPNetwork/Requests/DataRequest.swift:27:31: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
25 | /// - Returns: The network response containing the converted output along with some metadata
26 | /// - Throws: If the networking failed or converting the response to the desired output type failed
27 | func response(urlSession: URLSession, delegate: (any URLSessionTaskDelegate)?) async throws -> Response
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
28 |
29 | /// Executes the request and returns the result.
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/HPNetwork/Requests/DataRequest.swift:34:56: error: cannot find type 'URLSessionTaskDelegate' in scope
32 | /// - delegate: The delegate to use
33 | /// - Returns: The result of the network request
34 | func result(urlSession: URLSession, delegate: (any URLSessionTaskDelegate)?) async -> NetworkResult
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
35 |
36 | /// Executes the request and calls the completion handler with the result.
/host/spi-builder-workspace/Sources/HPNetwork/Requests/DataRequest.swift:34:29: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
32 | /// - delegate: The delegate to use
33 | /// - Returns: The result of the network request
34 | func result(urlSession: URLSession, delegate: (any URLSessionTaskDelegate)?) async -> NetworkResult
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
35 |
36 | /// Executes the request and calls the completion handler with the result.
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/HPNetwork/Requests/DataRequest.swift:41:58: error: cannot find type 'URLSessionTaskDelegate' in scope
39 | /// - delegate: The delegate to use
40 | /// - Returns: A cancellable `Task` instance
41 | func schedule(urlSession: URLSession, delegate: (any URLSessionTaskDelegate)?) -> NetworkTask
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
42 |
43 | }
/host/spi-builder-workspace/Sources/HPNetwork/Requests/DataRequest.swift:41:31: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
39 | /// - delegate: The delegate to use
40 | /// - Returns: A cancellable `Task` instance
41 | func schedule(urlSession: URLSession, delegate: (any URLSessionTaskDelegate)?) -> NetworkTask
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
42 |
43 | }
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/HPNetwork/Requests/DataRequest.swift:50:65: error: cannot find type 'URLSessionTaskDelegate' in scope
48 |
49 | @discardableResult
50 | public func response(urlSession: URLSession, delegate: (any URLSessionTaskDelegate)?) async throws -> Response {
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
51 | // Make request
52 | let request = try makeRequest()
/host/spi-builder-workspace/Sources/HPNetwork/Requests/DataRequest.swift:50:38: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
48 |
49 | @discardableResult
50 | public func response(urlSession: URLSession, delegate: (any URLSessionTaskDelegate)?) async throws -> Response {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
51 | // Make request
52 | let request = try makeRequest()
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/HPNetwork/Requests/DataRequest.swift:91:63: error: cannot find type 'URLSessionTaskDelegate' in scope
89 |
90 | @discardableResult
91 | public func result(urlSession: URLSession, delegate: (any URLSessionTaskDelegate)?) async -> NetworkResult {
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
92 | do {
93 | let result = try await response(urlSession: urlSession, delegate: delegate)
/host/spi-builder-workspace/Sources/HPNetwork/Requests/DataRequest.swift:91:36: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
89 |
90 | @discardableResult
91 | public func result(urlSession: URLSession, delegate: (any URLSessionTaskDelegate)?) async -> NetworkResult {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
92 | do {
93 | let result = try await response(urlSession: urlSession, delegate: delegate)
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/HPNetwork/Requests/DataRequest.swift:101:65: error: cannot find type 'URLSessionTaskDelegate' in scope
99 |
100 | @discardableResult
101 | public func schedule(urlSession: URLSession, delegate: (any URLSessionTaskDelegate)?) -> NetworkTask where Output: Sendable {
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
102 | NetworkTask {
103 | try await response(urlSession: urlSession, delegate: delegate)
/host/spi-builder-workspace/Sources/HPNetwork/Requests/DataRequest.swift:101:38: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
99 |
100 | @discardableResult
101 | public func schedule(urlSession: URLSession, delegate: (any URLSessionTaskDelegate)?) -> NetworkTask where Output: Sendable {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
102 | NetworkTask {
103 | try await response(urlSession: urlSession, delegate: delegate)
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/HPNetwork/Requests/NetworkRequest.swift:80:41: error: cannot find type 'URLRequest' in scope
78 | /// Constructs a `URLRequest` from the provided values.
79 | /// - Returns: a new `URLRequest` instance
80 | public func makeRequest() throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
81 | let url = try makeURL()
82 |
/host/spi-builder-workspace/Sources/HPNetwork/Requests/DataRequest.swift:58:53: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
56 | try Task.checkCancellation()
57 | // Actually execute network request
58 | let (data, response) = try await urlSession.data(for: request, delegate: delegate)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
59 | // Check for cancellation
60 | try Task.checkCancellation()
/host/spi-builder-workspace/Sources/HPNetwork/Requests/DataRequest.swift:93:79: error: extra argument 'delegate' in call
91 | public func result(urlSession: URLSession, delegate: (any URLSessionTaskDelegate)?) async -> NetworkResult {
92 | do {
93 | let result = try await response(urlSession: urlSession, delegate: delegate)
| `- error: extra argument 'delegate' in call
94 | return .success(result)
95 | } catch {
/host/spi-builder-workspace/Sources/HPNetwork/Requests/DataRequest.swift:103:66: error: extra argument 'delegate' in call
101 | public func schedule(urlSession: URLSession, delegate: (any URLSessionTaskDelegate)?) -> NetworkTask where Output: Sendable {
102 | NetworkTask {
103 | try await response(urlSession: urlSession, delegate: delegate)
| `- error: extra argument 'delegate' in call
104 | }
105 | }
[33/36] Compiling HPNetwork DecodableRequest.swift
[34/36] Compiling HPNetwork DownloadRequest.swift
/host/spi-builder-workspace/Sources/HPNetwork/Requests/DownloadRequest.swift:19:65: error: cannot find type 'URLSessionTaskDelegate' in scope
17 |
18 | @discardableResult
19 | public func response(urlSession: URLSession, delegate: (any URLSessionTaskDelegate)?) async throws -> Response {
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
20 | let request = try makeRequest()
21 | let startTime = DispatchTime.now()
/host/spi-builder-workspace/Sources/HPNetwork/Requests/DownloadRequest.swift:19:38: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
17 |
18 | @discardableResult
19 | public func response(urlSession: URLSession, delegate: (any URLSessionTaskDelegate)?) async throws -> Response {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
20 | let request = try makeRequest()
21 | let startTime = DispatchTime.now()
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/HPNetwork/Requests/DownloadRequest.swift:60:63: error: cannot find type 'URLSessionTaskDelegate' in scope
58 |
59 | @discardableResult
60 | public func result(urlSession: URLSession, delegate: (any URLSessionTaskDelegate)?) async -> NetworkResult {
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
61 | do {
62 | let result = try await response(urlSession: urlSession, delegate: delegate)
/host/spi-builder-workspace/Sources/HPNetwork/Requests/DownloadRequest.swift:60:36: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
58 |
59 | @discardableResult
60 | public func result(urlSession: URLSession, delegate: (any URLSessionTaskDelegate)?) async -> NetworkResult {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
61 | do {
62 | let result = try await response(urlSession: urlSession, delegate: delegate)
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/HPNetwork/Requests/DownloadRequest.swift:70:65: error: cannot find type 'URLSessionTaskDelegate' in scope
68 |
69 | @discardableResult
70 | public func schedule(urlSession: URLSession, delegate: (any URLSessionTaskDelegate)?) -> NetworkTask where Output: Sendable {
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
71 | NetworkTask {
72 | try await response(urlSession: urlSession, delegate: delegate)
/host/spi-builder-workspace/Sources/HPNetwork/Requests/DownloadRequest.swift:70:38: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
68 |
69 | @discardableResult
70 | public func schedule(urlSession: URLSession, delegate: (any URLSessionTaskDelegate)?) -> NetworkTask where Output: Sendable {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
71 | NetworkTask {
72 | try await response(urlSession: urlSession, delegate: delegate)
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/HPNetwork/Requests/NetworkRequest.swift:80:41: error: cannot find type 'URLRequest' in scope
78 | /// Constructs a `URLRequest` from the provided values.
79 | /// - Returns: a new `URLRequest` instance
80 | public func makeRequest() throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
81 | let url = try makeURL()
82 |
/host/spi-builder-workspace/Sources/HPNetwork/Requests/DownloadRequest.swift:26:52: error: value of type 'URLSession' (aka 'AnyObject') has no member 'download'
24 | try Task.checkCancellation()
25 |
26 | let (url, response) = try await urlSession.download(for: request, delegate: delegate)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'download'
27 | let networkingEndTime = DispatchTime.now()
28 |
/host/spi-builder-workspace/Sources/HPNetwork/Requests/NetworkRequest.swift:51:58: error: cannot find type 'URLSessionTaskDelegate' in scope
49 | /// - Returns: a wrapper object containing an instance of ``Output`` along with the elapsed time for both networking and processing in seconds
50 | /// - Throws: Throws an error when anything went wrong while executing the network request
51 | func response(urlSession: URLSession, delegate: (any URLSessionTaskDelegate)?) async throws -> Response
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
52 |
53 | /// Uses all the provided information to create a `URLRequest` and handles that request's result accordingly.
/host/spi-builder-workspace/Sources/HPNetwork/Requests/DownloadRequest.swift:62:79: error: extra argument 'delegate' in call
60 | public func result(urlSession: URLSession, delegate: (any URLSessionTaskDelegate)?) async -> NetworkResult {
61 | do {
62 | let result = try await response(urlSession: urlSession, delegate: delegate)
| `- error: extra argument 'delegate' in call
63 | return .success(result)
64 | } catch {
/host/spi-builder-workspace/Sources/HPNetwork/Requests/DownloadRequest.swift:72:66: error: extra argument 'delegate' in call
70 | public func schedule(urlSession: URLSession, delegate: (any URLSessionTaskDelegate)?) -> NetworkTask where Output: Sendable {
71 | NetworkTask {
72 | try await response(urlSession: urlSession, delegate: delegate)
| `- error: extra argument 'delegate' in call
73 | }
74 | }
/host/spi-builder-workspace/Sources/HPNetwork/Requests/NetworkRequest.swift:59:56: error: cannot find type 'URLSessionTaskDelegate' in scope
57 | /// - Returns: a result with either a wrapper object containing an instance of ``Output`` along with the elapsed time for
58 | /// both networking and processing in seconds or an error
59 | func result(urlSession: URLSession, delegate: (any URLSessionTaskDelegate)?) async -> NetworkResult
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
60 |
61 | /// Uses all the provided information to create a `URLRequest` and schedules that request.
/host/spi-builder-workspace/Sources/HPNetwork/Requests/NetworkRequest.swift:66:58: error: cannot find type 'URLSessionTaskDelegate' in scope
64 | /// - delegate: The delegate that can be used to inspect and react to the network traffic while the request is running
65 | /// - Returns: A task that wraps the running network request
66 | func schedule(urlSession: URLSession, delegate: (any URLSessionTaskDelegate)?) -> NetworkTask
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
67 |
68 | /// A method that can be used to validate the response of a network request before any further processing will be attempted.
[35/36] Compiling HPNetwork NetworkRequest.swift
/host/spi-builder-workspace/Sources/HPNetwork/Requests/NetworkRequest.swift:51:58: error: cannot find type 'URLSessionTaskDelegate' in scope
49 | /// - Returns: a wrapper object containing an instance of ``Output`` along with the elapsed time for both networking and processing in seconds
50 | /// - Throws: Throws an error when anything went wrong while executing the network request
51 | func response(urlSession: URLSession, delegate: (any URLSessionTaskDelegate)?) async throws -> Response
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
52 |
53 | /// Uses all the provided information to create a `URLRequest` and handles that request's result accordingly.
/host/spi-builder-workspace/Sources/HPNetwork/Requests/NetworkRequest.swift:51:31: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
49 | /// - Returns: a wrapper object containing an instance of ``Output`` along with the elapsed time for both networking and processing in seconds
50 | /// - Throws: Throws an error when anything went wrong while executing the network request
51 | func response(urlSession: URLSession, delegate: (any URLSessionTaskDelegate)?) async throws -> Response
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
52 |
53 | /// Uses all the provided information to create a `URLRequest` and handles that request's result accordingly.
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/HPNetwork/Requests/NetworkRequest.swift:59:56: error: cannot find type 'URLSessionTaskDelegate' in scope
57 | /// - Returns: a result with either a wrapper object containing an instance of ``Output`` along with the elapsed time for
58 | /// both networking and processing in seconds or an error
59 | func result(urlSession: URLSession, delegate: (any URLSessionTaskDelegate)?) async -> NetworkResult
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
60 |
61 | /// Uses all the provided information to create a `URLRequest` and schedules that request.
/host/spi-builder-workspace/Sources/HPNetwork/Requests/NetworkRequest.swift:59:29: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
57 | /// - Returns: a result with either a wrapper object containing an instance of ``Output`` along with the elapsed time for
58 | /// both networking and processing in seconds or an error
59 | func result(urlSession: URLSession, delegate: (any URLSessionTaskDelegate)?) async -> NetworkResult
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
60 |
61 | /// Uses all the provided information to create a `URLRequest` and schedules that 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/HPNetwork/Requests/NetworkRequest.swift:66:58: error: cannot find type 'URLSessionTaskDelegate' in scope
64 | /// - delegate: The delegate that can be used to inspect and react to the network traffic while the request is running
65 | /// - Returns: A task that wraps the running network request
66 | func schedule(urlSession: URLSession, delegate: (any URLSessionTaskDelegate)?) -> NetworkTask
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
67 |
68 | /// A method that can be used to validate the response of a network request before any further processing will be attempted.
/host/spi-builder-workspace/Sources/HPNetwork/Requests/NetworkRequest.swift:66:31: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
64 | /// - delegate: The delegate that can be used to inspect and react to the network traffic while the request is running
65 | /// - Returns: A task that wraps the running network request
66 | func schedule(urlSession: URLSession, delegate: (any URLSessionTaskDelegate)?) -> NetworkTask
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
67 |
68 | /// A method that can be used to validate the response of a network request before any further processing will be attempted.
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/HPNetwork/Requests/NetworkRequest.swift:80:41: error: cannot find type 'URLRequest' in scope
78 | /// Constructs a `URLRequest` from the provided values.
79 | /// - Returns: a new `URLRequest` instance
80 | public func makeRequest() throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
81 | let url = try makeURL()
82 |
/host/spi-builder-workspace/Sources/HPNetwork/Requests/NetworkRequest.swift:149:38: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
147 | /// - Throws: Throws an error when anything went wrong while executing the network request
148 | @discardableResult
149 | public func response(urlSession: URLSession) async throws -> Response {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
150 | try await response(urlSession: urlSession, delegate: nil)
151 | }
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/HPNetwork/Requests/NetworkRequest.swift:158:36: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
156 | /// both networking and processing in seconds or an error
157 | @discardableResult
158 | public func result(urlSession: URLSession) async -> NetworkResult {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
159 | await result(urlSession: urlSession, delegate: nil)
160 | }
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/HPNetwork/Requests/NetworkRequest.swift:166:38: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
164 | /// - Returns: A task that wraps the running network request
165 | @discardableResult
166 | public func schedule(urlSession: URLSession) -> NetworkTask {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
167 | schedule(urlSession: urlSession, delegate: nil)
168 | }
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/HPNetwork/Requests/NetworkRequest.swift:93:32: error: cannot find 'URLRequest' in scope
91 | }
92 |
93 | guard var urlRequest = URLRequest(httpRequest: request) else {
| `- error: cannot find 'URLRequest' in scope
94 | // Should theoretically never throw because we verify beforehand that `URL` is not nil
95 | throw NetworkRequestConversionError.failedToConvertHTTPRequestToURLRequest
/host/spi-builder-workspace/Sources/HPNetwork/Requests/NetworkRequest.swift:105:28: error: value of optional type 'URLError.Code?' must be unwrapped to a value of type 'URLError.Code'
103 | switch response.status.kind {
104 | case .clientError, .invalid, .redirection, .serverError:
105 | throw URLError(URLError.Code(rawValue: response.status.code))
| |- error: value of optional type 'URLError.Code?' must be unwrapped to a value of type 'URLError.Code'
| |- note: coalesce using '??' to provide a default when the optional value contains 'nil'
| `- note: force-unwrap using '!' to abort execution if the optional value contains 'nil'
106 | case .informational, .successful:
107 | break
/host/spi-builder-workspace/Sources/HPNetwork/Requests/NetworkRequest.swift:150:62: error: extra argument 'delegate' in call
148 | @discardableResult
149 | public func response(urlSession: URLSession) async throws -> Response {
150 | try await response(urlSession: urlSession, delegate: nil)
| `- error: extra argument 'delegate' in call
151 | }
152 |
/host/spi-builder-workspace/Sources/HPNetwork/Requests/NetworkRequest.swift:150:62: error: 'nil' requires a contextual type
148 | @discardableResult
149 | public func response(urlSession: URLSession) async throws -> Response {
150 | try await response(urlSession: urlSession, delegate: nil)
| `- error: 'nil' requires a contextual type
151 | }
152 |
/host/spi-builder-workspace/Sources/HPNetwork/Requests/NetworkRequest.swift:159:56: error: extra argument 'delegate' in call
157 | @discardableResult
158 | public func result(urlSession: URLSession) async -> NetworkResult {
159 | await result(urlSession: urlSession, delegate: nil)
| `- error: extra argument 'delegate' in call
160 | }
161 |
/host/spi-builder-workspace/Sources/HPNetwork/Requests/NetworkRequest.swift:159:56: error: 'nil' requires a contextual type
157 | @discardableResult
158 | public func result(urlSession: URLSession) async -> NetworkResult {
159 | await result(urlSession: urlSession, delegate: nil)
| `- error: 'nil' requires a contextual type
160 | }
161 |
/host/spi-builder-workspace/Sources/HPNetwork/Requests/NetworkRequest.swift:167:52: error: extra argument 'delegate' in call
165 | @discardableResult
166 | public func schedule(urlSession: URLSession) -> NetworkTask {
167 | schedule(urlSession: urlSession, delegate: nil)
| `- error: extra argument 'delegate' in call
168 | }
169 |
/host/spi-builder-workspace/Sources/HPNetwork/Requests/NetworkRequest.swift:167:52: error: 'nil' requires a contextual type
165 | @discardableResult
166 | public func schedule(urlSession: URLSession) -> NetworkTask {
167 | schedule(urlSession: urlSession, delegate: nil)
| `- error: 'nil' requires a contextual type
168 | }
169 |
[36/36] Compiling HPNetwork NetworkResponse.swift
BUILD FAILURE 6.0 linux