The Swift Package Index logo.Swift Package Index

Build Information

Failed to build HPNetwork, reference main (900a84), with Swift 6.1 for Android on 20 Mar 2026 20:19:52 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/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:android-6.1-latest swift build --swift-sdk aarch64-unknown-linux-android24 2>&1

Build 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:         android
Swift version:             6.1
Building package at path:  $PWD
https://github.com/henrik-dmg/HPNetwork.git
https://github.com/henrik-dmg/HPNetwork.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
  "dependencies" : [
    {
      "identity" : "swift-http-types",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "1.0.0",
            "upper_bound" : "2.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/apple/swift-http-types.git"
    }
  ],
  "manifest_display_name" : "HPNetwork",
  "name" : "HPNetwork",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "ios",
      "version" : "15.0"
    },
    {
      "name" : "tvos",
      "version" : "15.0"
    },
    {
      "name" : "watchos",
      "version" : "6.0"
    },
    {
      "name" : "macos",
      "version" : "12.0"
    }
  ],
  "products" : [
    {
      "name" : "HPNetwork",
      "targets" : [
        "HPNetwork"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    },
    {
      "name" : "HPNetworkMock",
      "targets" : [
        "HPNetworkMock"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "HPNetworkTests",
      "module_type" : "SwiftTarget",
      "name" : "HPNetworkTests",
      "path" : "Tests/HPNetworkTests",
      "sources" : [
        "AuthorizationTests.swift",
        "HTTPFieldBuilderTests.swift",
        "Helpers/BasicDataRequest.swift",
        "Helpers/FaultyRequest.swift",
        "NetworkRequestTests.swift"
      ],
      "target_dependencies" : [
        "HPNetwork"
      ],
      "type" : "test"
    },
    {
      "c99name" : "HPNetworkMockTests",
      "module_type" : "SwiftTarget",
      "name" : "HPNetworkMockTests",
      "path" : "Tests/HPNetworkMockTests",
      "sources" : [
        "DataRequestTests.swift",
        "DownloadRequestTests.swift",
        "Helpers/BasicDecodableRequest.swift",
        "Helpers/BasicDownloadRequest.swift",
        "NetworkClientMockTests.swift"
      ],
      "target_dependencies" : [
        "HPNetwork",
        "HPNetworkMock"
      ],
      "type" : "test"
    },
    {
      "c99name" : "HPNetworkMock",
      "module_type" : "SwiftTarget",
      "name" : "HPNetworkMock",
      "path" : "Sources/HPNetworkMock",
      "product_memberships" : [
        "HPNetworkMock"
      ],
      "sources" : [
        "MockedNetworkRequestFilter.swift",
        "NetworkClientMock.swift",
        "NetworkRequestMockStore.swift",
        "URLRequestMockStore.swift",
        "URLSessionMock.swift"
      ],
      "target_dependencies" : [
        "HPNetwork"
      ],
      "type" : "library"
    },
    {
      "c99name" : "HPNetwork",
      "module_type" : "SwiftTarget",
      "name" : "HPNetwork",
      "path" : "Sources/HPNetwork",
      "product_dependencies" : [
        "HTTPTypes",
        "HTTPTypesFoundation"
      ],
      "product_memberships" : [
        "HPNetwork",
        "HPNetworkMock"
      ],
      "sources" : [
        "Authorization/Authorization.swift",
        "Authorization/BasicAuthorization.swift",
        "Authorization/BearerAuthorization.swift",
        "HTTPTypes+Proxy.swift",
        "Header Fields/ContentType+HTTPField.swift",
        "Header Fields/HTTPFieldBuilder.swift",
        "NetworkClient.swift",
        "Requests/DataRequest.swift",
        "Requests/DecodableRequest.swift",
        "Requests/DownloadRequest.swift",
        "Requests/NetworkRequest.swift",
        "Responses/NetworkResponse.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "6.0"
}
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/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:android-6.1-latest swift build --swift-sdk aarch64-unknown-linux-android24 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats 2>&1
android-6.1-latest: Pulling from swiftpackageindex/spi-images
Digest: sha256:4aaa9704d9ec48004f0d4dbd1faa76d47dfce67570c934d5c9f7c1557cee5c73
Status: Image is up to date for registry.gitlab.com/swiftpackageindex/spi-images:android-6.1-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.63s)
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 HTTPFields.swift
[13/15] Emitting module HTTPTypes
[14/15] Compiling HTTPTypes HTTPField.swift
[15/15] Compiling HTTPTypes HTTPFieldName.swift
[17/22] Emitting module HTTPTypesFoundation
[18/22] Compiling HTTPTypesFoundation HTTPTypes+ISOLatin1.swift
[19/22] Compiling HTTPTypesFoundation URLSession+HTTPTypes.swift
[20/22] Compiling HTTPTypesFoundation URLResponse+HTTPTypes.swift
[21/22] Compiling HTTPTypesFoundation URLRequest+HTTPTypes.swift
[22/22] Compiling HTTPTypesFoundation HTTPTypesFoundation.swift
[24/35] 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.
[25/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 |
[26/36] Compiling HPNetwork BearerAuthorization.swift
[27/36] Compiling HPNetwork HTTPTypes+Proxy.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[28/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 |     }
[29/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 |     }
[30/36] Compiling HPNetwork ContentType+HTTPField.swift
[31/36] Compiling HPNetwork HTTPFieldBuilder.swift
[32/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
[33/36] Compiling HPNetwork DecodableRequest.swift
[34/36] Compiling HPNetwork Authorization.swift
[35/36] Compiling HPNetwork BasicAuthorization.swift
[36/36] Compiling HPNetwork NetworkResponse.swift
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/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:android-6.1-latest swift build --swift-sdk aarch64-unknown-linux-android24 2>&1
android-6.1-latest: Pulling from swiftpackageindex/spi-images
Digest: sha256:4aaa9704d9ec48004f0d4dbd1faa76d47dfce67570c934d5c9f7c1557cee5c73
Status: Image is up to date for registry.gitlab.com/swiftpackageindex/spi-images:android-6.1-latest
[0/1] Planning build
Building for debugging...
[0/1] Write swift-version-24593BA9C3E375BF.txt
[2/10] Compiling HTTPTypes HTTPRequest+URL.swift
[3/11] Compiling HTTPTypes ISOLatin1String.swift
[4/11] Compiling HTTPTypes HTTPResponse.swift
[5/11] Emitting module HTTPTypes
[6/11] Compiling HTTPTypes HTTPField.swift
[7/11] Compiling HTTPTypes HTTPFieldName.swift
[8/11] Compiling HTTPTypes HTTPFields.swift
[9/11] Compiling HTTPTypes HTTPParsedFields.swift
[10/11] Compiling HTTPTypes HTTPRequest.swift
[11/11] Compiling HTTPTypes NIOLock.swift
[13/18] Emitting module HTTPTypesFoundation
[14/18] Compiling HTTPTypesFoundation HTTPTypes+ISOLatin1.swift
[15/18] Compiling HTTPTypesFoundation URLSession+HTTPTypes.swift
[16/18] Compiling HTTPTypesFoundation URLResponse+HTTPTypes.swift
[17/18] Compiling HTTPTypesFoundation HTTPTypesFoundation.swift
[18/18] Compiling HTTPTypesFoundation URLRequest+HTTPTypes.swift
[20/31] 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 |
[21/32] Compiling HPNetwork NetworkResponse.swift
[22/32] Compiling HPNetwork BearerAuthorization.swift
[23/32] Compiling HPNetwork HTTPTypes+Proxy.swift
[24/32] Compiling HPNetwork DecodableRequest.swift
[25/32] 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.
error: emit-module command failed with exit code 1 (use -v to see invocation)
[26/32] 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
[27/32] 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 |     }
[28/32] 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 |     }
[29/32] Compiling HPNetwork ContentType+HTTPField.swift
[30/32] Compiling HPNetwork HTTPFieldBuilder.swift
[31/32] Compiling HPNetwork Authorization.swift
[32/32] Compiling HPNetwork BasicAuthorization.swift
BUILD FAILURE 6.1 android