The Swift Package Index logo.Swift Package Index

Has it really been five years since Swift Package Index launched? Read our anniversary blog post!

Build Information

Failed to build EagleNet, reference 2.0.0 (e47828), with Swift 6.2 for Linux on 8 Oct 2025 13:57:50 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4606859-3":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/finestructure/spi-images:basic-6.2-latest swift build --triple x86_64-unknown-linux-gnu 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.68.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/AnbalaganD/EagleNet.git
Reference: 2.0.0
Initialized empty Git repository in /host/spi-builder-workspace/.git/
hint: Using 'master' as the name for the initial branch. This default branch name
hint: is subject to change. To configure the initial branch name to use in all
hint: of your new repositories, which will suppress this warning, call:
hint:
hint: 	git config --global init.defaultBranch <name>
hint:
hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and
hint: 'development'. The just-created branch can be renamed via this command:
hint:
hint: 	git branch -m <name>
From https://github.com/AnbalaganD/EagleNet
 * tag               2.0.0      -> FETCH_HEAD
HEAD is now at e47828a Refactor the request body handling to use the typealias `Body` instead of `BodyConvertible`.
Cloned https://github.com/AnbalaganD/EagleNet.git
Revision (git rev-parse @):
e47828a30203e4bbb07ec2f9bd56961aea9d660a
SPI manifest file found: $PWD/.spi.yml
SUCCESS checkout https://github.com/AnbalaganD/EagleNet.git at 2.0.0
========================================
Build
========================================
Selected platform:         linux
Swift version:             6.2
Building package at path:  $PWD
https://github.com/AnbalaganD/EagleNet.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-3":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/finestructure/spi-images:basic-6.2-latest swift build --triple x86_64-unknown-linux-gnu 2>&1
basic-6.2-latest: Pulling from finestructure/spi-images
Digest: sha256:b3eaa5734a03a9b8084848018342ef6c4e4ec1a618756d8de460b693a5f488ea
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.2-latest
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-24593BA9C3E375BF.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[3/25] Emitting module EagleNet
/host/spi-builder-workspace/Sources/EagleNet/NetworkService.swift:79:35: error: value of type '_' expected to be instance of class or class-constrained type
 77 |
 78 |     required init(
 79 |         urlSession: URLSession = .shared,
    |                                   `- error: value of type '_' expected to be instance of class or class-constrained type
 80 |         jsonEncoder: JSONEncoder = .init(),
 81 |         jsonDecoder: JSONDecoder = .init()
/host/spi-builder-workspace/Sources/EagleNet/NetworkService.swift:79:35: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 77 |
 78 |     required init(
 79 |         urlSession: URLSession = .shared,
    |                                   `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 80 |         jsonEncoder: JSONEncoder = .init(),
 81 |         jsonDecoder: JSONDecoder = .init()
/host/spi-builder-workspace/Sources/EagleNet/EagleNet.swift:130:21: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
128 |     /// ```
129 |     public static func defaultService(
130 |         urlSession: URLSession = .shared,
    |                     `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
131 |         jsonEncoder: JSONEncoder = .init(),
132 |         jsonDecoder: JSONDecoder = .init()
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/EagleNet/EagleNet.swift:130:35: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
128 |     /// ```
129 |     public static func defaultService(
130 |         urlSession: URLSession = .shared,
    |                                   `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
131 |         jsonEncoder: JSONEncoder = .init(),
132 |         jsonDecoder: JSONDecoder = .init()
/host/spi-builder-workspace/Sources/EagleNet/EagleNet.swift:130:35: error: value of type '_' expected to be instance of class or class-constrained type
128 |     /// ```
129 |     public static func defaultService(
130 |         urlSession: URLSession = .shared,
    |                                   `- error: value of type '_' expected to be instance of class or class-constrained type
131 |         jsonEncoder: JSONEncoder = .init(),
132 |         jsonDecoder: JSONDecoder = .init()
/host/spi-builder-workspace/Sources/EagleNet/Extensions/HTTPURLResponseExtension.swift:10:1: error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended [#NominalTypes]
 8 | import Foundation
 9 |
10 | extension HTTPURLResponse {
   | `- error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended [#NominalTypes]
11 |     /// Convenience property for checking if an `HTTPURLResponse` is successful.
12 |     ///
/host/spi-builder-workspace/Sources/EagleNet/Interceptor/RequestInterceptor.swift:24:54: error: cannot find type 'URLRequest' in scope
22 | /// ```
23 | public protocol RequestInterceptor: Sendable {
24 |     func modify(request: URLRequest) async throws -> URLRequest
   |                                                      `- error: cannot find type 'URLRequest' in scope
25 | }
26 |
/host/spi-builder-workspace/Sources/EagleNet/Interceptor/RequestInterceptor.swift:24:26: error: cannot find type 'URLRequest' in scope
22 | /// ```
23 | public protocol RequestInterceptor: Sendable {
24 |     func modify(request: URLRequest) async throws -> URLRequest
   |                          `- error: cannot find type 'URLRequest' in scope
25 | }
26 |
/host/spi-builder-workspace/Sources/EagleNet/Interceptor/ResponseInterceptor.swift:24:22: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
22 |     func modify(
23 |         data: Data,
24 |         urlResponse: URLResponse
   |                      `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
25 |     ) async throws -> (Data, URLResponse)
26 | }
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/EagleNet/Interceptor/ResponseInterceptor.swift:25:30: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
23 |         data: Data,
24 |         urlResponse: URLResponse
25 |     ) async throws -> (Data, URLResponse)
   |                              `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
26 | }
27 |
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/EagleNet/NetworkService.swift:39:21: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 37 |     ///   - jsonDecoder: Decoder for response deserialization
 38 |     init(
 39 |         urlSession: URLSession,
    |                     `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 40 |         jsonEncoder: JSONEncoder,
 41 |         jsonDecoder: JSONDecoder
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/EagleNet/NetworkService.swift:71:29: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 69 |
 70 | final class DefaultNetworkService: NetworkService, @unchecked Sendable {
 71 |     private let urlSession: URLSession
    |                             `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 72 |     private let jsonEncoder: JSONEncoder
 73 |     private let jsonDecoder: JSONDecoder
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/EagleNet/NetworkService.swift:79:21: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 77 |
 78 |     required init(
 79 |         urlSession: URLSession = .shared,
    |                     `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 80 |         jsonEncoder: JSONEncoder = .init(),
 81 |         jsonDecoder: JSONDecoder = .init()
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/EagleNet/NetworkService.swift:139:17: error: cannot find type 'URLRequest' in scope
137 |     private func buildRequest(
138 |         from request: any NetworkRequestable
139 |     ) throws -> URLRequest {
    |                 `- error: cannot find type 'URLRequest' in scope
140 |         let url = try getRequestURL(request)
141 |
/host/spi-builder-workspace/Sources/EagleNet/NetworkService.swift:191:19: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
189 |     private func handleResponse<Response: Decodable>(
190 |         data: Data,
191 |         response: URLResponse
    |                   `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
192 |     ) throws -> Response {
193 |         if let httpURLResponse = response as? HTTPURLResponse,
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/EagleNet/SessionDelegate.swift:10:40: error: cannot find type 'URLSessionTaskDelegate' in scope
 8 | import Foundation
 9 |
10 | final class SessionDelegate: NSObject, URLSessionTaskDelegate {
   |                                        `- error: cannot find type 'URLSessionTaskDelegate' in scope
11 |     private let progress: ProgressHandler?
12 |     init(progress: ProgressHandler?) {
/host/spi-builder-workspace/Sources/EagleNet/SessionDelegate.swift:17:20: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
15 |
16 |     func urlSession(
17 |         _ session: URLSession,
   |                    `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
18 |         task: URLSessionTask,
19 |         didSendBodyData bytesSent: Int64,
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/EagleNet/SessionDelegate.swift:18:15: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
16 |     func urlSession(
17 |         _ session: URLSession,
18 |         task: URLSessionTask,
   |               `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
19 |         didSendBodyData bytesSent: Int64,
20 |         totalBytesSent: Int64,
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionTask = AnyObject
  |                  `- note: 'URLSessionTask' has been explicitly marked unavailable here
[#NominalTypes]: <https://docs.swift.org/compiler/documentation/diagnostics/nominal-types>
[4/28] Compiling EagleNet MultipartRequest.swift
/host/spi-builder-workspace/Sources/EagleNet/NetworkService.swift:39:21: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 37 |     ///   - jsonDecoder: Decoder for response deserialization
 38 |     init(
 39 |         urlSession: URLSession,
    |                     `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 40 |         jsonEncoder: JSONEncoder,
 41 |         jsonDecoder: JSONDecoder
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/EagleNet/NetworkService.swift:71:29: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 69 |
 70 | final class DefaultNetworkService: NetworkService, @unchecked Sendable {
 71 |     private let urlSession: URLSession
    |                             `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 72 |     private let jsonEncoder: JSONEncoder
 73 |     private let jsonDecoder: JSONDecoder
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/EagleNet/NetworkService.swift:79:21: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 77 |
 78 |     required init(
 79 |         urlSession: URLSession = .shared,
    |                     `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 80 |         jsonEncoder: JSONEncoder = .init(),
 81 |         jsonDecoder: JSONDecoder = .init()
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/EagleNet/NetworkService.swift:79:35: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 77 |
 78 |     required init(
 79 |         urlSession: URLSession = .shared,
    |                                   `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 80 |         jsonEncoder: JSONEncoder = .init(),
 81 |         jsonDecoder: JSONDecoder = .init()
/host/spi-builder-workspace/Sources/EagleNet/NetworkService.swift:79:35: error: value of type '_' expected to be instance of class or class-constrained type
 77 |
 78 |     required init(
 79 |         urlSession: URLSession = .shared,
    |                                   `- error: value of type '_' expected to be instance of class or class-constrained type
 80 |         jsonEncoder: JSONEncoder = .init(),
 81 |         jsonDecoder: JSONDecoder = .init()
/host/spi-builder-workspace/Sources/EagleNet/NetworkService.swift:139:17: error: cannot find type 'URLRequest' in scope
137 |     private func buildRequest(
138 |         from request: any NetworkRequestable
139 |     ) throws -> URLRequest {
    |                 `- error: cannot find type 'URLRequest' in scope
140 |         let url = try getRequestURL(request)
141 |
/host/spi-builder-workspace/Sources/EagleNet/NetworkService.swift:191:19: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
189 |     private func handleResponse<Response: Decodable>(
190 |         data: Data,
191 |         response: URLResponse
    |                   `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
192 |     ) throws -> Response {
193 |         if let httpURLResponse = response as? HTTPURLResponse,
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/EagleNet/Interceptor/RequestInterceptor.swift:24:54: error: cannot find type 'URLRequest' in scope
22 | /// ```
23 | public protocol RequestInterceptor: Sendable {
24 |     func modify(request: URLRequest) async throws -> URLRequest
   |                                                      `- error: cannot find type 'URLRequest' in scope
25 | }
26 |
/host/spi-builder-workspace/Sources/EagleNet/Interceptor/RequestInterceptor.swift:24:26: error: cannot find type 'URLRequest' in scope
22 | /// ```
23 | public protocol RequestInterceptor: Sendable {
24 |     func modify(request: URLRequest) async throws -> URLRequest
   |                          `- error: cannot find type 'URLRequest' in scope
25 | }
26 |
/host/spi-builder-workspace/Sources/EagleNet/NetworkService.swift:95:43: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
 93 |         }
 94 |
 95 |         let result = try await urlSession.data(for: urlRequest)
    |                                           `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
 96 |
 97 |         let (data, urlResponse) = try await responseInterceptors.reduce(result) { result, interceptor in
/host/spi-builder-workspace/Sources/EagleNet/NetworkService.swift:116:43: error: value of type 'URLSession' (aka 'AnyObject') has no member 'upload'
114 |         let bodyData = urlRequest.httpBody ?? Data()
115 |         urlRequest.httpBody = nil
116 |         let result = try await urlSession.upload(
    |                                           `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'upload'
117 |             for: urlRequest,
118 |             from: bodyData,
/host/spi-builder-workspace/Sources/EagleNet/NetworkService.swift:142:26: error: cannot find 'URLRequest' in scope
140 |         let url = try getRequestURL(request)
141 |
142 |         var urlRequest = URLRequest(url: url)
    |                          `- error: cannot find 'URLRequest' in scope
143 |         urlRequest.httpMethod = request.httpMethod.rawValue
144 |
/host/spi-builder-workspace/Sources/EagleNet/NetworkService.swift:193:43: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
191 |         response: URLResponse
192 |     ) throws -> Response {
193 |         if let httpURLResponse = response as? HTTPURLResponse,
    |                                           `- warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
194 |               !httpURLResponse.isSuccess {
195 |             throw NetworkError.failure(
/host/spi-builder-workspace/Sources/EagleNet/NetworkService.swift:193:47: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
191 |         response: URLResponse
192 |     ) throws -> Response {
193 |         if let httpURLResponse = response as? HTTPURLResponse,
    |                                               `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
194 |               !httpURLResponse.isSuccess {
195 |             throw NetworkError.failure(
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
  |                  `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/EagleNet/NetworkService.swift:194:32: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'isSuccess'
192 |     ) throws -> Response {
193 |         if let httpURLResponse = response as? HTTPURLResponse,
194 |               !httpURLResponse.isSuccess {
    |                                `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'isSuccess'
195 |             throw NetworkError.failure(
196 |                 message: httpURLResponse.description,
/host/spi-builder-workspace/Sources/EagleNet/NetworkService.swift:196:42: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'description'
194 |               !httpURLResponse.isSuccess {
195 |             throw NetworkError.failure(
196 |                 message: httpURLResponse.description,
    |                                          `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'description'
197 |                 statusCode: httpURLResponse.statusCode,
198 |                 data: data
/host/spi-builder-workspace/Sources/EagleNet/NetworkService.swift:197:45: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
195 |             throw NetworkError.failure(
196 |                 message: httpURLResponse.description,
197 |                 statusCode: httpURLResponse.statusCode,
    |                                             `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
198 |                 data: data
199 |             )
[5/28] Compiling EagleNet NetworkError.swift
/host/spi-builder-workspace/Sources/EagleNet/NetworkService.swift:39:21: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 37 |     ///   - jsonDecoder: Decoder for response deserialization
 38 |     init(
 39 |         urlSession: URLSession,
    |                     `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 40 |         jsonEncoder: JSONEncoder,
 41 |         jsonDecoder: JSONDecoder
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/EagleNet/NetworkService.swift:71:29: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 69 |
 70 | final class DefaultNetworkService: NetworkService, @unchecked Sendable {
 71 |     private let urlSession: URLSession
    |                             `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 72 |     private let jsonEncoder: JSONEncoder
 73 |     private let jsonDecoder: JSONDecoder
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/EagleNet/NetworkService.swift:79:21: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 77 |
 78 |     required init(
 79 |         urlSession: URLSession = .shared,
    |                     `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 80 |         jsonEncoder: JSONEncoder = .init(),
 81 |         jsonDecoder: JSONDecoder = .init()
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/EagleNet/NetworkService.swift:79:35: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 77 |
 78 |     required init(
 79 |         urlSession: URLSession = .shared,
    |                                   `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 80 |         jsonEncoder: JSONEncoder = .init(),
 81 |         jsonDecoder: JSONDecoder = .init()
/host/spi-builder-workspace/Sources/EagleNet/NetworkService.swift:79:35: error: value of type '_' expected to be instance of class or class-constrained type
 77 |
 78 |     required init(
 79 |         urlSession: URLSession = .shared,
    |                                   `- error: value of type '_' expected to be instance of class or class-constrained type
 80 |         jsonEncoder: JSONEncoder = .init(),
 81 |         jsonDecoder: JSONDecoder = .init()
/host/spi-builder-workspace/Sources/EagleNet/NetworkService.swift:139:17: error: cannot find type 'URLRequest' in scope
137 |     private func buildRequest(
138 |         from request: any NetworkRequestable
139 |     ) throws -> URLRequest {
    |                 `- error: cannot find type 'URLRequest' in scope
140 |         let url = try getRequestURL(request)
141 |
/host/spi-builder-workspace/Sources/EagleNet/NetworkService.swift:191:19: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
189 |     private func handleResponse<Response: Decodable>(
190 |         data: Data,
191 |         response: URLResponse
    |                   `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
192 |     ) throws -> Response {
193 |         if let httpURLResponse = response as? HTTPURLResponse,
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/EagleNet/Interceptor/RequestInterceptor.swift:24:54: error: cannot find type 'URLRequest' in scope
22 | /// ```
23 | public protocol RequestInterceptor: Sendable {
24 |     func modify(request: URLRequest) async throws -> URLRequest
   |                                                      `- error: cannot find type 'URLRequest' in scope
25 | }
26 |
/host/spi-builder-workspace/Sources/EagleNet/Interceptor/RequestInterceptor.swift:24:26: error: cannot find type 'URLRequest' in scope
22 | /// ```
23 | public protocol RequestInterceptor: Sendable {
24 |     func modify(request: URLRequest) async throws -> URLRequest
   |                          `- error: cannot find type 'URLRequest' in scope
25 | }
26 |
/host/spi-builder-workspace/Sources/EagleNet/NetworkService.swift:95:43: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
 93 |         }
 94 |
 95 |         let result = try await urlSession.data(for: urlRequest)
    |                                           `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
 96 |
 97 |         let (data, urlResponse) = try await responseInterceptors.reduce(result) { result, interceptor in
/host/spi-builder-workspace/Sources/EagleNet/NetworkService.swift:116:43: error: value of type 'URLSession' (aka 'AnyObject') has no member 'upload'
114 |         let bodyData = urlRequest.httpBody ?? Data()
115 |         urlRequest.httpBody = nil
116 |         let result = try await urlSession.upload(
    |                                           `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'upload'
117 |             for: urlRequest,
118 |             from: bodyData,
/host/spi-builder-workspace/Sources/EagleNet/NetworkService.swift:142:26: error: cannot find 'URLRequest' in scope
140 |         let url = try getRequestURL(request)
141 |
142 |         var urlRequest = URLRequest(url: url)
    |                          `- error: cannot find 'URLRequest' in scope
143 |         urlRequest.httpMethod = request.httpMethod.rawValue
144 |
/host/spi-builder-workspace/Sources/EagleNet/NetworkService.swift:193:43: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
191 |         response: URLResponse
192 |     ) throws -> Response {
193 |         if let httpURLResponse = response as? HTTPURLResponse,
    |                                           `- warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
194 |               !httpURLResponse.isSuccess {
195 |             throw NetworkError.failure(
/host/spi-builder-workspace/Sources/EagleNet/NetworkService.swift:193:47: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
191 |         response: URLResponse
192 |     ) throws -> Response {
193 |         if let httpURLResponse = response as? HTTPURLResponse,
    |                                               `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
194 |               !httpURLResponse.isSuccess {
195 |             throw NetworkError.failure(
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
  |                  `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/EagleNet/NetworkService.swift:194:32: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'isSuccess'
192 |     ) throws -> Response {
193 |         if let httpURLResponse = response as? HTTPURLResponse,
194 |               !httpURLResponse.isSuccess {
    |                                `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'isSuccess'
195 |             throw NetworkError.failure(
196 |                 message: httpURLResponse.description,
/host/spi-builder-workspace/Sources/EagleNet/NetworkService.swift:196:42: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'description'
194 |               !httpURLResponse.isSuccess {
195 |             throw NetworkError.failure(
196 |                 message: httpURLResponse.description,
    |                                          `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'description'
197 |                 statusCode: httpURLResponse.statusCode,
198 |                 data: data
/host/spi-builder-workspace/Sources/EagleNet/NetworkService.swift:197:45: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
195 |             throw NetworkError.failure(
196 |                 message: httpURLResponse.description,
197 |                 statusCode: httpURLResponse.statusCode,
    |                                             `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
198 |                 data: data
199 |             )
[6/28] Compiling EagleNet NetworkService.swift
/host/spi-builder-workspace/Sources/EagleNet/NetworkService.swift:39:21: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 37 |     ///   - jsonDecoder: Decoder for response deserialization
 38 |     init(
 39 |         urlSession: URLSession,
    |                     `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 40 |         jsonEncoder: JSONEncoder,
 41 |         jsonDecoder: JSONDecoder
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/EagleNet/NetworkService.swift:71:29: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 69 |
 70 | final class DefaultNetworkService: NetworkService, @unchecked Sendable {
 71 |     private let urlSession: URLSession
    |                             `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 72 |     private let jsonEncoder: JSONEncoder
 73 |     private let jsonDecoder: JSONDecoder
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/EagleNet/NetworkService.swift:79:21: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 77 |
 78 |     required init(
 79 |         urlSession: URLSession = .shared,
    |                     `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 80 |         jsonEncoder: JSONEncoder = .init(),
 81 |         jsonDecoder: JSONDecoder = .init()
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/EagleNet/NetworkService.swift:79:35: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 77 |
 78 |     required init(
 79 |         urlSession: URLSession = .shared,
    |                                   `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 80 |         jsonEncoder: JSONEncoder = .init(),
 81 |         jsonDecoder: JSONDecoder = .init()
/host/spi-builder-workspace/Sources/EagleNet/NetworkService.swift:79:35: error: value of type '_' expected to be instance of class or class-constrained type
 77 |
 78 |     required init(
 79 |         urlSession: URLSession = .shared,
    |                                   `- error: value of type '_' expected to be instance of class or class-constrained type
 80 |         jsonEncoder: JSONEncoder = .init(),
 81 |         jsonDecoder: JSONDecoder = .init()
/host/spi-builder-workspace/Sources/EagleNet/NetworkService.swift:139:17: error: cannot find type 'URLRequest' in scope
137 |     private func buildRequest(
138 |         from request: any NetworkRequestable
139 |     ) throws -> URLRequest {
    |                 `- error: cannot find type 'URLRequest' in scope
140 |         let url = try getRequestURL(request)
141 |
/host/spi-builder-workspace/Sources/EagleNet/NetworkService.swift:191:19: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
189 |     private func handleResponse<Response: Decodable>(
190 |         data: Data,
191 |         response: URLResponse
    |                   `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
192 |     ) throws -> Response {
193 |         if let httpURLResponse = response as? HTTPURLResponse,
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/EagleNet/Interceptor/RequestInterceptor.swift:24:54: error: cannot find type 'URLRequest' in scope
22 | /// ```
23 | public protocol RequestInterceptor: Sendable {
24 |     func modify(request: URLRequest) async throws -> URLRequest
   |                                                      `- error: cannot find type 'URLRequest' in scope
25 | }
26 |
/host/spi-builder-workspace/Sources/EagleNet/Interceptor/RequestInterceptor.swift:24:26: error: cannot find type 'URLRequest' in scope
22 | /// ```
23 | public protocol RequestInterceptor: Sendable {
24 |     func modify(request: URLRequest) async throws -> URLRequest
   |                          `- error: cannot find type 'URLRequest' in scope
25 | }
26 |
/host/spi-builder-workspace/Sources/EagleNet/NetworkService.swift:95:43: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
 93 |         }
 94 |
 95 |         let result = try await urlSession.data(for: urlRequest)
    |                                           `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
 96 |
 97 |         let (data, urlResponse) = try await responseInterceptors.reduce(result) { result, interceptor in
/host/spi-builder-workspace/Sources/EagleNet/NetworkService.swift:116:43: error: value of type 'URLSession' (aka 'AnyObject') has no member 'upload'
114 |         let bodyData = urlRequest.httpBody ?? Data()
115 |         urlRequest.httpBody = nil
116 |         let result = try await urlSession.upload(
    |                                           `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'upload'
117 |             for: urlRequest,
118 |             from: bodyData,
/host/spi-builder-workspace/Sources/EagleNet/NetworkService.swift:142:26: error: cannot find 'URLRequest' in scope
140 |         let url = try getRequestURL(request)
141 |
142 |         var urlRequest = URLRequest(url: url)
    |                          `- error: cannot find 'URLRequest' in scope
143 |         urlRequest.httpMethod = request.httpMethod.rawValue
144 |
/host/spi-builder-workspace/Sources/EagleNet/NetworkService.swift:193:43: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
191 |         response: URLResponse
192 |     ) throws -> Response {
193 |         if let httpURLResponse = response as? HTTPURLResponse,
    |                                           `- warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
194 |               !httpURLResponse.isSuccess {
195 |             throw NetworkError.failure(
/host/spi-builder-workspace/Sources/EagleNet/NetworkService.swift:193:47: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
191 |         response: URLResponse
192 |     ) throws -> Response {
193 |         if let httpURLResponse = response as? HTTPURLResponse,
    |                                               `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
194 |               !httpURLResponse.isSuccess {
195 |             throw NetworkError.failure(
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
  |                  `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/EagleNet/NetworkService.swift:194:32: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'isSuccess'
192 |     ) throws -> Response {
193 |         if let httpURLResponse = response as? HTTPURLResponse,
194 |               !httpURLResponse.isSuccess {
    |                                `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'isSuccess'
195 |             throw NetworkError.failure(
196 |                 message: httpURLResponse.description,
/host/spi-builder-workspace/Sources/EagleNet/NetworkService.swift:196:42: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'description'
194 |               !httpURLResponse.isSuccess {
195 |             throw NetworkError.failure(
196 |                 message: httpURLResponse.description,
    |                                          `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'description'
197 |                 statusCode: httpURLResponse.statusCode,
198 |                 data: data
/host/spi-builder-workspace/Sources/EagleNet/NetworkService.swift:197:45: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
195 |             throw NetworkError.failure(
196 |                 message: httpURLResponse.description,
197 |                 statusCode: httpURLResponse.statusCode,
    |                                             `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
198 |                 data: data
199 |             )
[7/28] Compiling EagleNet ResponseInterceptor.swift
/host/spi-builder-workspace/Sources/EagleNet/Interceptor/ResponseInterceptor.swift:24:22: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
22 |     func modify(
23 |         data: Data,
24 |         urlResponse: URLResponse
   |                      `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
25 |     ) async throws -> (Data, URLResponse)
26 | }
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/EagleNet/Interceptor/ResponseInterceptor.swift:25:30: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
23 |         data: Data,
24 |         urlResponse: URLResponse
25 |     ) async throws -> (Data, URLResponse)
   |                              `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
26 | }
27 |
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
[8/28] Compiling EagleNet Misc.swift
/host/spi-builder-workspace/Sources/EagleNet/Interceptor/ResponseInterceptor.swift:24:22: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
22 |     func modify(
23 |         data: Data,
24 |         urlResponse: URLResponse
   |                      `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
25 |     ) async throws -> (Data, URLResponse)
26 | }
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/EagleNet/Interceptor/ResponseInterceptor.swift:25:30: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
23 |         data: Data,
24 |         urlResponse: URLResponse
25 |     ) async throws -> (Data, URLResponse)
   |                              `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
26 | }
27 |
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
[9/28] Compiling EagleNet MultipartParameter.swift
/host/spi-builder-workspace/Sources/EagleNet/Interceptor/ResponseInterceptor.swift:24:22: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
22 |     func modify(
23 |         data: Data,
24 |         urlResponse: URLResponse
   |                      `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
25 |     ) async throws -> (Data, URLResponse)
26 | }
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/EagleNet/Interceptor/ResponseInterceptor.swift:25:30: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
23 |         data: Data,
24 |         urlResponse: URLResponse
25 |     ) async throws -> (Data, URLResponse)
   |                              `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
26 | }
27 |
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
[10/28] Compiling EagleNet NetworkRequestable.swift
/host/spi-builder-workspace/Sources/EagleNet/SessionDelegate.swift:10:40: error: cannot find type 'URLSessionTaskDelegate' in scope
 8 | import Foundation
 9 |
10 | final class SessionDelegate: NSObject, URLSessionTaskDelegate {
   |                                        `- error: cannot find type 'URLSessionTaskDelegate' in scope
11 |     private let progress: ProgressHandler?
12 |     init(progress: ProgressHandler?) {
/host/spi-builder-workspace/Sources/EagleNet/SessionDelegate.swift:17:20: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
15 |
16 |     func urlSession(
17 |         _ session: URLSession,
   |                    `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
18 |         task: URLSessionTask,
19 |         didSendBodyData bytesSent: Int64,
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/EagleNet/SessionDelegate.swift:18:15: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
16 |     func urlSession(
17 |         _ session: URLSession,
18 |         task: URLSessionTask,
   |               `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
19 |         didSendBodyData bytesSent: Int64,
20 |         totalBytesSent: Int64,
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionTask = AnyObject
  |                  `- note: 'URLSessionTask' has been explicitly marked unavailable here
[11/28] Compiling EagleNet URLConvertible.swift
/host/spi-builder-workspace/Sources/EagleNet/SessionDelegate.swift:10:40: error: cannot find type 'URLSessionTaskDelegate' in scope
 8 | import Foundation
 9 |
10 | final class SessionDelegate: NSObject, URLSessionTaskDelegate {
   |                                        `- error: cannot find type 'URLSessionTaskDelegate' in scope
11 |     private let progress: ProgressHandler?
12 |     init(progress: ProgressHandler?) {
/host/spi-builder-workspace/Sources/EagleNet/SessionDelegate.swift:17:20: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
15 |
16 |     func urlSession(
17 |         _ session: URLSession,
   |                    `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
18 |         task: URLSessionTask,
19 |         didSendBodyData bytesSent: Int64,
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/EagleNet/SessionDelegate.swift:18:15: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
16 |     func urlSession(
17 |         _ session: URLSession,
18 |         task: URLSessionTask,
   |               `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
19 |         didSendBodyData bytesSent: Int64,
20 |         totalBytesSent: Int64,
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionTask = AnyObject
  |                  `- note: 'URLSessionTask' has been explicitly marked unavailable here
[12/28] Compiling EagleNet SessionDelegate.swift
/host/spi-builder-workspace/Sources/EagleNet/SessionDelegate.swift:10:40: error: cannot find type 'URLSessionTaskDelegate' in scope
 8 | import Foundation
 9 |
10 | final class SessionDelegate: NSObject, URLSessionTaskDelegate {
   |                                        `- error: cannot find type 'URLSessionTaskDelegate' in scope
11 |     private let progress: ProgressHandler?
12 |     init(progress: ProgressHandler?) {
/host/spi-builder-workspace/Sources/EagleNet/SessionDelegate.swift:17:20: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
15 |
16 |     func urlSession(
17 |         _ session: URLSession,
   |                    `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
18 |         task: URLSessionTask,
19 |         didSendBodyData bytesSent: Int64,
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/EagleNet/SessionDelegate.swift:18:15: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
16 |     func urlSession(
17 |         _ session: URLSession,
18 |         task: URLSessionTask,
   |               `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
19 |         didSendBodyData bytesSent: Int64,
20 |         totalBytesSent: Int64,
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionTask = AnyObject
  |                  `- note: 'URLSessionTask' has been explicitly marked unavailable here
[13/28] Compiling EagleNet ArrayExtension.swift
/host/spi-builder-workspace/Sources/EagleNet/Extensions/HTTPURLResponseExtension.swift:10:1: error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended [#NominalTypes]
 8 | import Foundation
 9 |
10 | extension HTTPURLResponse {
   | `- error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended [#NominalTypes]
11 |     /// Convenience property for checking if an `HTTPURLResponse` is successful.
12 |     ///
[#NominalTypes]: <https://docs.swift.org/compiler/documentation/diagnostics/nominal-types>
[14/28] Compiling EagleNet DataExtension.swift
/host/spi-builder-workspace/Sources/EagleNet/Extensions/HTTPURLResponseExtension.swift:10:1: error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended [#NominalTypes]
 8 | import Foundation
 9 |
10 | extension HTTPURLResponse {
   | `- error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended [#NominalTypes]
11 |     /// Convenience property for checking if an `HTTPURLResponse` is successful.
12 |     ///
[#NominalTypes]: <https://docs.swift.org/compiler/documentation/diagnostics/nominal-types>
[15/28] Compiling EagleNet HTTPURLResponseExtension.swift
/host/spi-builder-workspace/Sources/EagleNet/Extensions/HTTPURLResponseExtension.swift:10:1: error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended [#NominalTypes]
 8 | import Foundation
 9 |
10 | extension HTTPURLResponse {
   | `- error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended [#NominalTypes]
11 |     /// Convenience property for checking if an `HTTPURLResponse` is successful.
12 |     ///
[#NominalTypes]: <https://docs.swift.org/compiler/documentation/diagnostics/nominal-types>
[16/28] Compiling EagleNet HTTPContentType.swift
/host/spi-builder-workspace/Sources/EagleNet/Interceptor/RequestInterceptor.swift:24:54: error: cannot find type 'URLRequest' in scope
22 | /// ```
23 | public protocol RequestInterceptor: Sendable {
24 |     func modify(request: URLRequest) async throws -> URLRequest
   |                                                      `- error: cannot find type 'URLRequest' in scope
25 | }
26 |
/host/spi-builder-workspace/Sources/EagleNet/Interceptor/RequestInterceptor.swift:24:26: error: cannot find type 'URLRequest' in scope
22 | /// ```
23 | public protocol RequestInterceptor: Sendable {
24 |     func modify(request: URLRequest) async throws -> URLRequest
   |                          `- error: cannot find type 'URLRequest' in scope
25 | }
26 |
[17/28] Compiling EagleNet HTTPMethod.swift
/host/spi-builder-workspace/Sources/EagleNet/Interceptor/RequestInterceptor.swift:24:54: error: cannot find type 'URLRequest' in scope
22 | /// ```
23 | public protocol RequestInterceptor: Sendable {
24 |     func modify(request: URLRequest) async throws -> URLRequest
   |                                                      `- error: cannot find type 'URLRequest' in scope
25 | }
26 |
/host/spi-builder-workspace/Sources/EagleNet/Interceptor/RequestInterceptor.swift:24:26: error: cannot find type 'URLRequest' in scope
22 | /// ```
23 | public protocol RequestInterceptor: Sendable {
24 |     func modify(request: URLRequest) async throws -> URLRequest
   |                          `- error: cannot find type 'URLRequest' in scope
25 | }
26 |
[18/28] Compiling EagleNet RequestInterceptor.swift
/host/spi-builder-workspace/Sources/EagleNet/Interceptor/RequestInterceptor.swift:24:54: error: cannot find type 'URLRequest' in scope
22 | /// ```
23 | public protocol RequestInterceptor: Sendable {
24 |     func modify(request: URLRequest) async throws -> URLRequest
   |                                                      `- error: cannot find type 'URLRequest' in scope
25 | }
26 |
/host/spi-builder-workspace/Sources/EagleNet/Interceptor/RequestInterceptor.swift:24:26: error: cannot find type 'URLRequest' in scope
22 | /// ```
23 | public protocol RequestInterceptor: Sendable {
24 |     func modify(request: URLRequest) async throws -> URLRequest
   |                          `- error: cannot find type 'URLRequest' in scope
25 | }
26 |
[19/28] Compiling EagleNet EagleNet+Interceptor.swift
[20/28] Compiling EagleNet EagleNet+Post.swift
[21/28] Compiling EagleNet EagleNet+Put.swift
[22/28] Compiling EagleNet DataRequest.swift
[23/28] Compiling EagleNet EagleNet+Custom.swift
[24/28] Compiling EagleNet EagleNet+Delete.swift
[25/28] Compiling EagleNet EagleNet+Get.swift
[26/28] Compiling EagleNet EagleNet+Upload.swift
/host/spi-builder-workspace/Sources/EagleNet/NetworkService.swift:79:35: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 77 |
 78 |     required init(
 79 |         urlSession: URLSession = .shared,
    |                                   `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 80 |         jsonEncoder: JSONEncoder = .init(),
 81 |         jsonDecoder: JSONDecoder = .init()
/host/spi-builder-workspace/Sources/EagleNet/NetworkService.swift:79:35: error: value of type '_' expected to be instance of class or class-constrained type
 77 |
 78 |     required init(
 79 |         urlSession: URLSession = .shared,
    |                                   `- error: value of type '_' expected to be instance of class or class-constrained type
 80 |         jsonEncoder: JSONEncoder = .init(),
 81 |         jsonDecoder: JSONDecoder = .init()
/host/spi-builder-workspace/Sources/EagleNet/EagleNet.swift:130:21: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
128 |     /// ```
129 |     public static func defaultService(
130 |         urlSession: URLSession = .shared,
    |                     `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
131 |         jsonEncoder: JSONEncoder = .init(),
132 |         jsonDecoder: JSONDecoder = .init()
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/EagleNet/EagleNet.swift:130:35: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
128 |     /// ```
129 |     public static func defaultService(
130 |         urlSession: URLSession = .shared,
    |                                   `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
131 |         jsonEncoder: JSONEncoder = .init(),
132 |         jsonDecoder: JSONDecoder = .init()
/host/spi-builder-workspace/Sources/EagleNet/EagleNet.swift:130:35: error: value of type '_' expected to be instance of class or class-constrained type
128 |     /// ```
129 |     public static func defaultService(
130 |         urlSession: URLSession = .shared,
    |                                   `- error: value of type '_' expected to be instance of class or class-constrained type
131 |         jsonEncoder: JSONEncoder = .init(),
132 |         jsonDecoder: JSONDecoder = .init()
[27/28] Compiling EagleNet EagleNet.swift
/host/spi-builder-workspace/Sources/EagleNet/NetworkService.swift:79:35: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 77 |
 78 |     required init(
 79 |         urlSession: URLSession = .shared,
    |                                   `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 80 |         jsonEncoder: JSONEncoder = .init(),
 81 |         jsonDecoder: JSONDecoder = .init()
/host/spi-builder-workspace/Sources/EagleNet/NetworkService.swift:79:35: error: value of type '_' expected to be instance of class or class-constrained type
 77 |
 78 |     required init(
 79 |         urlSession: URLSession = .shared,
    |                                   `- error: value of type '_' expected to be instance of class or class-constrained type
 80 |         jsonEncoder: JSONEncoder = .init(),
 81 |         jsonDecoder: JSONDecoder = .init()
/host/spi-builder-workspace/Sources/EagleNet/EagleNet.swift:130:21: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
128 |     /// ```
129 |     public static func defaultService(
130 |         urlSession: URLSession = .shared,
    |                     `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
131 |         jsonEncoder: JSONEncoder = .init(),
132 |         jsonDecoder: JSONDecoder = .init()
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/EagleNet/EagleNet.swift:130:35: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
128 |     /// ```
129 |     public static func defaultService(
130 |         urlSession: URLSession = .shared,
    |                                   `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
131 |         jsonEncoder: JSONEncoder = .init(),
132 |         jsonDecoder: JSONDecoder = .init()
/host/spi-builder-workspace/Sources/EagleNet/EagleNet.swift:130:35: error: value of type '_' expected to be instance of class or class-constrained type
128 |     /// ```
129 |     public static func defaultService(
130 |         urlSession: URLSession = .shared,
    |                                   `- error: value of type '_' expected to be instance of class or class-constrained type
131 |         jsonEncoder: JSONEncoder = .init(),
132 |         jsonDecoder: JSONDecoder = .init()
[28/28] Compiling EagleNet EagleNetActor.swift
/host/spi-builder-workspace/Sources/EagleNet/NetworkService.swift:79:35: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 77 |
 78 |     required init(
 79 |         urlSession: URLSession = .shared,
    |                                   `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 80 |         jsonEncoder: JSONEncoder = .init(),
 81 |         jsonDecoder: JSONDecoder = .init()
/host/spi-builder-workspace/Sources/EagleNet/NetworkService.swift:79:35: error: value of type '_' expected to be instance of class or class-constrained type
 77 |
 78 |     required init(
 79 |         urlSession: URLSession = .shared,
    |                                   `- error: value of type '_' expected to be instance of class or class-constrained type
 80 |         jsonEncoder: JSONEncoder = .init(),
 81 |         jsonDecoder: JSONDecoder = .init()
/host/spi-builder-workspace/Sources/EagleNet/EagleNet.swift:130:21: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
128 |     /// ```
129 |     public static func defaultService(
130 |         urlSession: URLSession = .shared,
    |                     `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
131 |         jsonEncoder: JSONEncoder = .init(),
132 |         jsonDecoder: JSONDecoder = .init()
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/EagleNet/EagleNet.swift:130:35: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
128 |     /// ```
129 |     public static func defaultService(
130 |         urlSession: URLSession = .shared,
    |                                   `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
131 |         jsonEncoder: JSONEncoder = .init(),
132 |         jsonDecoder: JSONDecoder = .init()
/host/spi-builder-workspace/Sources/EagleNet/EagleNet.swift:130:35: error: value of type '_' expected to be instance of class or class-constrained type
128 |     /// ```
129 |     public static func defaultService(
130 |         urlSession: URLSession = .shared,
    |                                   `- error: value of type '_' expected to be instance of class or class-constrained type
131 |         jsonEncoder: JSONEncoder = .init(),
132 |         jsonDecoder: JSONDecoder = .init()
BUILD FAILURE 6.2 linux