The Swift Package Index logo.Swift Package Index

Track the adoption of Swift 6 strict concurrency checks for data race safety. How many packages are Ready for Swift 6?

Build Information

Failed to build EagleNet, reference main (7409c3), with Swift 6.0 for Linux on 3 Apr 2025 11:11:55 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.0-latest swift build --triple x86_64-unknown-linux-gnu 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.60.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/AnbalaganD/EagleNet.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/AnbalaganD/EagleNet
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at 7409c37 update readme
Cloned https://github.com/AnbalaganD/EagleNet.git
Revision (git rev-parse @):
7409c3773dd6617087329b20b2061927a619ab17
SUCCESS checkout https://github.com/AnbalaganD/EagleNet.git at main
========================================
Build
========================================
Selected platform:         linux
Swift version:             6.0
Building package at path:  $PWD
https://github.com/AnbalaganD/EagleNet.git
https://github.com/AnbalaganD/EagleNet.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
  "dependencies" : [
  ],
  "manifest_display_name" : "EagleNet",
  "name" : "EagleNet",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "ios",
      "version" : "15.0"
    },
    {
      "name" : "macos",
      "version" : "12.0"
    },
    {
      "name" : "tvos",
      "version" : "15.0"
    }
  ],
  "products" : [
    {
      "name" : "EagleNet",
      "targets" : [
        "EagleNet"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "EagleNetTests",
      "module_type" : "SwiftTarget",
      "name" : "EagleNetTests",
      "path" : "Tests/EagleNetTests",
      "sources" : [
        "EagleNetTests.swift"
      ],
      "target_dependencies" : [
        "EagleNet"
      ],
      "type" : "test"
    },
    {
      "c99name" : "EagleNet",
      "module_type" : "SwiftTarget",
      "name" : "EagleNet",
      "path" : "Sources/EagleNet",
      "product_memberships" : [
        "EagleNet"
      ],
      "sources" : [
        "DataRequest.swift",
        "EagleNet.swift",
        "Extensions/ArrayExtension.swift",
        "Extensions/DataExtension.swift",
        "Extensions/HTTPURLResponseExtension.swift",
        "HTTPContentType.swift",
        "HTTPMethod.swift",
        "Interceptor/RequestInterceptor.swift",
        "Interceptor/ResponseInterceptor.swift",
        "Misc.swift",
        "MultipartParameter.swift",
        "MultipartRequest.swift",
        "NetworkError.swift",
        "NetworkService+Delete.swift",
        "NetworkService+Get.swift",
        "NetworkService+Post.swift",
        "NetworkService+Put.swift",
        "NetworkService+Upload.swift",
        "NetworkService.swift",
        "Protocol/BodyConvertible.swift",
        "Protocol/NetworkRequestable.swift",
        "Protocol/URLConvertible.swift",
        "SessionDelegate.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.9"
}
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.0-latest swift build --triple x86_64-unknown-linux-gnu -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures 2>&1
basic-6.0-latest: Pulling from finestructure/spi-images
Digest: sha256:081dcf4fb829aea9d08447f4790431afbdfbcc335bfeed728ca69c6f181ae2aa
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.0-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/24] Emitting module EagleNet
/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/Extensions/HTTPURLResponseExtension.swift:10:1: error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended
 8 | import Foundation
 9 |
10 | extension HTTPURLResponse {
   | `- error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended
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 NetworkServiceImpl: 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: 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:187:19: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
185 |     private func handleResponse<Response: Decodable>(
186 |         data: Data,
187 |         response: URLResponse
    |                   `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
188 |     ) throws -> Response {
189 |         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
[4/26] Compiling EagleNet NetworkService+Post.swift
[5/26] Compiling EagleNet NetworkService+Put.swift
[6/26] Compiling EagleNet NetworkService+Upload.swift
[7/26] 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
[8/26] 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
[9/26] 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
 8 | import Foundation
 9 |
10 | extension HTTPURLResponse {
   | `- error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended
11 |     /// Convenience property for checking if an `HTTPURLResponse` is successful.
12 |     ///
[10/26] 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
 8 | import Foundation
 9 |
10 | extension HTTPURLResponse {
   | `- error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended
11 |     /// Convenience property for checking if an `HTTPURLResponse` is successful.
12 |     ///
[11/26] Compiling EagleNet HTTPContentType.swift
/host/spi-builder-workspace/Sources/EagleNet/Extensions/HTTPURLResponseExtension.swift:10:1: error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended
 8 | import Foundation
 9 |
10 | extension HTTPURLResponse {
   | `- error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended
11 |     /// Convenience property for checking if an `HTTPURLResponse` is successful.
12 |     ///
[12/26] Compiling EagleNet DataRequest.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()
[13/26] 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()
[14/26] Compiling EagleNet ArrayExtension.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()
[15/26] Compiling EagleNet NetworkError.swift
[16/26] Compiling EagleNet NetworkService+Delete.swift
[17/26] Compiling EagleNet NetworkService+Get.swift
[18/26] Compiling EagleNet Misc.swift
[19/26] Compiling EagleNet MultipartParameter.swift
[20/26] Compiling EagleNet MultipartRequest.swift
[21/26] 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 |
/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
[22/26] 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 |
/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
[23/26] Compiling EagleNet ResponseInterceptor.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 |
/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
[24/26] 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/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:71:29: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 69 |
 70 | final class NetworkServiceImpl: 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:139:17: error: cannot find type 'URLRequest' in scope
137 |     private func buildRequest(
138 |         from request: 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:187:19: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
185 |     private func handleResponse<Response: Decodable>(
186 |         data: Data,
187 |         response: URLResponse
    |                   `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
188 |     ) throws -> Response {
189 |         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/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:189:43: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
187 |         response: URLResponse
188 |     ) throws -> Response {
189 |         if let httpURLResponse = response as? HTTPURLResponse,
    |                                           `- warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
190 |               !httpURLResponse.isSuccess {
191 |             throw NetworkError.general(
/host/spi-builder-workspace/Sources/EagleNet/NetworkService.swift:189:47: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
187 |         response: URLResponse
188 |     ) throws -> Response {
189 |         if let httpURLResponse = response as? HTTPURLResponse,
    |                                               `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
190 |               !httpURLResponse.isSuccess {
191 |             throw NetworkError.general(
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:190:32: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'isSuccess'
188 |     ) throws -> Response {
189 |         if let httpURLResponse = response as? HTTPURLResponse,
190 |               !httpURLResponse.isSuccess {
    |                                `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'isSuccess'
191 |             throw NetworkError.general(
192 |                 message: httpURLResponse.description,
/host/spi-builder-workspace/Sources/EagleNet/NetworkService.swift:192:42: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'description'
190 |               !httpURLResponse.isSuccess {
191 |             throw NetworkError.general(
192 |                 message: httpURLResponse.description,
    |                                          `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'description'
193 |                 statusCode: httpURLResponse.statusCode
194 |             )
/host/spi-builder-workspace/Sources/EagleNet/NetworkService.swift:193:45: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
191 |             throw NetworkError.general(
192 |                 message: httpURLResponse.description,
193 |                 statusCode: httpURLResponse.statusCode
    |                                             `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
194 |             )
195 |         }
[25/26] Compiling EagleNet BodyConvertible.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/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:71:29: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 69 |
 70 | final class NetworkServiceImpl: 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:139:17: error: cannot find type 'URLRequest' in scope
137 |     private func buildRequest(
138 |         from request: 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:187:19: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
185 |     private func handleResponse<Response: Decodable>(
186 |         data: Data,
187 |         response: URLResponse
    |                   `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
188 |     ) throws -> Response {
189 |         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/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:189:43: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
187 |         response: URLResponse
188 |     ) throws -> Response {
189 |         if let httpURLResponse = response as? HTTPURLResponse,
    |                                           `- warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
190 |               !httpURLResponse.isSuccess {
191 |             throw NetworkError.general(
/host/spi-builder-workspace/Sources/EagleNet/NetworkService.swift:189:47: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
187 |         response: URLResponse
188 |     ) throws -> Response {
189 |         if let httpURLResponse = response as? HTTPURLResponse,
    |                                               `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
190 |               !httpURLResponse.isSuccess {
191 |             throw NetworkError.general(
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:190:32: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'isSuccess'
188 |     ) throws -> Response {
189 |         if let httpURLResponse = response as? HTTPURLResponse,
190 |               !httpURLResponse.isSuccess {
    |                                `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'isSuccess'
191 |             throw NetworkError.general(
192 |                 message: httpURLResponse.description,
/host/spi-builder-workspace/Sources/EagleNet/NetworkService.swift:192:42: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'description'
190 |               !httpURLResponse.isSuccess {
191 |             throw NetworkError.general(
192 |                 message: httpURLResponse.description,
    |                                          `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'description'
193 |                 statusCode: httpURLResponse.statusCode
194 |             )
/host/spi-builder-workspace/Sources/EagleNet/NetworkService.swift:193:45: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
191 |             throw NetworkError.general(
192 |                 message: httpURLResponse.description,
193 |                 statusCode: httpURLResponse.statusCode
    |                                             `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
194 |             )
195 |         }
[26/26] Compiling EagleNet NetworkRequestable.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/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:71:29: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 69 |
 70 | final class NetworkServiceImpl: 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:139:17: error: cannot find type 'URLRequest' in scope
137 |     private func buildRequest(
138 |         from request: 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:187:19: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
185 |     private func handleResponse<Response: Decodable>(
186 |         data: Data,
187 |         response: URLResponse
    |                   `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
188 |     ) throws -> Response {
189 |         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/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:189:43: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
187 |         response: URLResponse
188 |     ) throws -> Response {
189 |         if let httpURLResponse = response as? HTTPURLResponse,
    |                                           `- warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
190 |               !httpURLResponse.isSuccess {
191 |             throw NetworkError.general(
/host/spi-builder-workspace/Sources/EagleNet/NetworkService.swift:189:47: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
187 |         response: URLResponse
188 |     ) throws -> Response {
189 |         if let httpURLResponse = response as? HTTPURLResponse,
    |                                               `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
190 |               !httpURLResponse.isSuccess {
191 |             throw NetworkError.general(
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:190:32: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'isSuccess'
188 |     ) throws -> Response {
189 |         if let httpURLResponse = response as? HTTPURLResponse,
190 |               !httpURLResponse.isSuccess {
    |                                `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'isSuccess'
191 |             throw NetworkError.general(
192 |                 message: httpURLResponse.description,
/host/spi-builder-workspace/Sources/EagleNet/NetworkService.swift:192:42: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'description'
190 |               !httpURLResponse.isSuccess {
191 |             throw NetworkError.general(
192 |                 message: httpURLResponse.description,
    |                                          `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'description'
193 |                 statusCode: httpURLResponse.statusCode
194 |             )
/host/spi-builder-workspace/Sources/EagleNet/NetworkService.swift:193:45: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
191 |             throw NetworkError.general(
192 |                 message: httpURLResponse.description,
193 |                 statusCode: httpURLResponse.statusCode
    |                                             `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
194 |             )
195 |         }
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.0-latest swift build --triple x86_64-unknown-linux-gnu 2>&1
basic-6.0-latest: Pulling from finestructure/spi-images
Digest: sha256:081dcf4fb829aea9d08447f4790431afbdfbcc335bfeed728ca69c6f181ae2aa
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.0-latest
[0/1] Planning build
Building for debugging...
[0/1] Write swift-version-24593BA9C3E375BF.txt
[2/23] Compiling EagleNet DataRequest.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()
[3/23] 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()
[4/23] Compiling EagleNet ArrayExtension.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()
error: emit-module command failed with exit code 1 (use -v to see invocation)
[5/25] Emitting module EagleNet
/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/Extensions/HTTPURLResponseExtension.swift:10:1: error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended
 8 | import Foundation
 9 |
10 | extension HTTPURLResponse {
   | `- error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended
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 NetworkServiceImpl: 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: 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:187:19: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
185 |     private func handleResponse<Response: Decodable>(
186 |         data: Data,
187 |         response: URLResponse
    |                   `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
188 |     ) throws -> Response {
189 |         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
[6/25] 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 |
/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
[7/25] 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 |
/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/25] Compiling EagleNet ResponseInterceptor.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 |
/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/25] 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/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:71:29: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 69 |
 70 | final class NetworkServiceImpl: 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:139:17: error: cannot find type 'URLRequest' in scope
137 |     private func buildRequest(
138 |         from request: 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:187:19: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
185 |     private func handleResponse<Response: Decodable>(
186 |         data: Data,
187 |         response: URLResponse
    |                   `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
188 |     ) throws -> Response {
189 |         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/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:189:43: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
187 |         response: URLResponse
188 |     ) throws -> Response {
189 |         if let httpURLResponse = response as? HTTPURLResponse,
    |                                           `- warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
190 |               !httpURLResponse.isSuccess {
191 |             throw NetworkError.general(
/host/spi-builder-workspace/Sources/EagleNet/NetworkService.swift:189:47: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
187 |         response: URLResponse
188 |     ) throws -> Response {
189 |         if let httpURLResponse = response as? HTTPURLResponse,
    |                                               `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
190 |               !httpURLResponse.isSuccess {
191 |             throw NetworkError.general(
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:190:32: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'isSuccess'
188 |     ) throws -> Response {
189 |         if let httpURLResponse = response as? HTTPURLResponse,
190 |               !httpURLResponse.isSuccess {
    |                                `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'isSuccess'
191 |             throw NetworkError.general(
192 |                 message: httpURLResponse.description,
/host/spi-builder-workspace/Sources/EagleNet/NetworkService.swift:192:42: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'description'
190 |               !httpURLResponse.isSuccess {
191 |             throw NetworkError.general(
192 |                 message: httpURLResponse.description,
    |                                          `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'description'
193 |                 statusCode: httpURLResponse.statusCode
194 |             )
/host/spi-builder-workspace/Sources/EagleNet/NetworkService.swift:193:45: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
191 |             throw NetworkError.general(
192 |                 message: httpURLResponse.description,
193 |                 statusCode: httpURLResponse.statusCode
    |                                             `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
194 |             )
195 |         }
[10/25] Compiling EagleNet BodyConvertible.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/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:71:29: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 69 |
 70 | final class NetworkServiceImpl: 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:139:17: error: cannot find type 'URLRequest' in scope
137 |     private func buildRequest(
138 |         from request: 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:187:19: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
185 |     private func handleResponse<Response: Decodable>(
186 |         data: Data,
187 |         response: URLResponse
    |                   `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
188 |     ) throws -> Response {
189 |         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/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:189:43: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
187 |         response: URLResponse
188 |     ) throws -> Response {
189 |         if let httpURLResponse = response as? HTTPURLResponse,
    |                                           `- warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
190 |               !httpURLResponse.isSuccess {
191 |             throw NetworkError.general(
/host/spi-builder-workspace/Sources/EagleNet/NetworkService.swift:189:47: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
187 |         response: URLResponse
188 |     ) throws -> Response {
189 |         if let httpURLResponse = response as? HTTPURLResponse,
    |                                               `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
190 |               !httpURLResponse.isSuccess {
191 |             throw NetworkError.general(
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:190:32: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'isSuccess'
188 |     ) throws -> Response {
189 |         if let httpURLResponse = response as? HTTPURLResponse,
190 |               !httpURLResponse.isSuccess {
    |                                `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'isSuccess'
191 |             throw NetworkError.general(
192 |                 message: httpURLResponse.description,
/host/spi-builder-workspace/Sources/EagleNet/NetworkService.swift:192:42: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'description'
190 |               !httpURLResponse.isSuccess {
191 |             throw NetworkError.general(
192 |                 message: httpURLResponse.description,
    |                                          `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'description'
193 |                 statusCode: httpURLResponse.statusCode
194 |             )
/host/spi-builder-workspace/Sources/EagleNet/NetworkService.swift:193:45: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
191 |             throw NetworkError.general(
192 |                 message: httpURLResponse.description,
193 |                 statusCode: httpURLResponse.statusCode
    |                                             `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
194 |             )
195 |         }
[11/25] Compiling EagleNet NetworkRequestable.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/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:71:29: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 69 |
 70 | final class NetworkServiceImpl: 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:139:17: error: cannot find type 'URLRequest' in scope
137 |     private func buildRequest(
138 |         from request: 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:187:19: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
185 |     private func handleResponse<Response: Decodable>(
186 |         data: Data,
187 |         response: URLResponse
    |                   `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
188 |     ) throws -> Response {
189 |         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/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:189:43: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
187 |         response: URLResponse
188 |     ) throws -> Response {
189 |         if let httpURLResponse = response as? HTTPURLResponse,
    |                                           `- warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
190 |               !httpURLResponse.isSuccess {
191 |             throw NetworkError.general(
/host/spi-builder-workspace/Sources/EagleNet/NetworkService.swift:189:47: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
187 |         response: URLResponse
188 |     ) throws -> Response {
189 |         if let httpURLResponse = response as? HTTPURLResponse,
    |                                               `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
190 |               !httpURLResponse.isSuccess {
191 |             throw NetworkError.general(
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:190:32: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'isSuccess'
188 |     ) throws -> Response {
189 |         if let httpURLResponse = response as? HTTPURLResponse,
190 |               !httpURLResponse.isSuccess {
    |                                `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'isSuccess'
191 |             throw NetworkError.general(
192 |                 message: httpURLResponse.description,
/host/spi-builder-workspace/Sources/EagleNet/NetworkService.swift:192:42: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'description'
190 |               !httpURLResponse.isSuccess {
191 |             throw NetworkError.general(
192 |                 message: httpURLResponse.description,
    |                                          `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'description'
193 |                 statusCode: httpURLResponse.statusCode
194 |             )
/host/spi-builder-workspace/Sources/EagleNet/NetworkService.swift:193:45: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
191 |             throw NetworkError.general(
192 |                 message: httpURLResponse.description,
193 |                 statusCode: httpURLResponse.statusCode
    |                                             `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
194 |             )
195 |         }
[12/25] Compiling EagleNet NetworkError.swift
[13/25] Compiling EagleNet NetworkService+Delete.swift
[14/25] Compiling EagleNet NetworkService+Get.swift
[15/25] Compiling EagleNet NetworkService+Post.swift
[16/25] Compiling EagleNet NetworkService+Put.swift
[17/25] Compiling EagleNet NetworkService+Upload.swift
[18/25] Compiling EagleNet Misc.swift
[19/25] Compiling EagleNet MultipartParameter.swift
[20/25] Compiling EagleNet MultipartRequest.swift
[21/25] 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
 8 | import Foundation
 9 |
10 | extension HTTPURLResponse {
   | `- error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended
11 |     /// Convenience property for checking if an `HTTPURLResponse` is successful.
12 |     ///
[22/25] 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
 8 | import Foundation
 9 |
10 | extension HTTPURLResponse {
   | `- error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended
11 |     /// Convenience property for checking if an `HTTPURLResponse` is successful.
12 |     ///
[23/25] Compiling EagleNet HTTPContentType.swift
/host/spi-builder-workspace/Sources/EagleNet/Extensions/HTTPURLResponseExtension.swift:10:1: error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended
 8 | import Foundation
 9 |
10 | extension HTTPURLResponse {
   | `- error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended
11 |     /// Convenience property for checking if an `HTTPURLResponse` is successful.
12 |     ///
[24/25] 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
[25/25] 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
BUILD FAILURE 6.0 linux