Build Information
Failed to build EagleNet, reference main (77fb89), with Swift 6.1 for Wasm on 29 Oct 2025 20:16:39 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4606859-2":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1Build Log
========================================
RunAll
========================================
Builder version: 4.68.0
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 77fb899 Add Linux support.
Cloned https://github.com/AnbalaganD/EagleNet.git
Revision (git rev-parse @):
77fb899fa02caae812332175093cd623b8d29960
SPI manifest file found: $PWD/.spi.yml
SUCCESS checkout https://github.com/AnbalaganD/EagleNet.git at main
========================================
Build
========================================
Selected platform: wasm
Swift version: 6.1
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+Custom.swift",
"EagleNet+Delete.swift",
"EagleNet+Get.swift",
"EagleNet+Interceptor.swift",
"EagleNet+Post.swift",
"EagleNet+Put.swift",
"EagleNet+Upload.swift",
"EagleNet.swift",
"EagleNetActor.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.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-4606859-2":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi -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
wasm-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:062e4aaff76454b333ce7957a8e87c3beb342f1dedb64399abb81cdea021b526
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-24593BA9C3E375BF.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[3/25] Emitting module EagleNet
/host/spi-builder-workspace/Sources/EagleNet/NetworkService.swift:82:35: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
80 |
81 | required init(
82 | urlSession: URLSession = .shared,
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
83 | jsonEncoder: JSONEncoder = .init(),
84 | jsonDecoder: JSONDecoder = .init()
/host/spi-builder-workspace/Sources/EagleNet/EagleNet.swift:133:21: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
131 | /// ```
132 | public static func defaultService(
133 | urlSession: URLSession = .shared,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
134 | jsonEncoder: JSONEncoder = .init(),
135 | jsonDecoder: JSONDecoder = .init()
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/EagleNet/EagleNet.swift:133:35: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
131 | /// ```
132 | public static func defaultService(
133 | urlSession: URLSession = .shared,
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
134 | jsonEncoder: JSONEncoder = .init(),
135 | jsonDecoder: JSONDecoder = .init()
/host/spi-builder-workspace/Sources/EagleNet/Extensions/HTTPURLResponseExtension.swift:13:1: error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended
11 | #endif
12 |
13 | extension HTTPURLResponse {
| `- error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended
14 | /// Convenience property for checking if an `HTTPURLResponse` is successful.
15 | ///
/host/spi-builder-workspace/Sources/EagleNet/Interceptor/RequestInterceptor.swift:27:54: error: cannot find type 'URLRequest' in scope
25 | /// ```
26 | public protocol RequestInterceptor: Sendable {
27 | func modify(request: URLRequest) async throws -> URLRequest
| `- error: cannot find type 'URLRequest' in scope
28 | }
29 |
/host/spi-builder-workspace/Sources/EagleNet/Interceptor/RequestInterceptor.swift:27:26: error: cannot find type 'URLRequest' in scope
25 | /// ```
26 | public protocol RequestInterceptor: Sendable {
27 | func modify(request: URLRequest) async throws -> URLRequest
| `- error: cannot find type 'URLRequest' in scope
28 | }
29 |
/host/spi-builder-workspace/Sources/EagleNet/Interceptor/ResponseInterceptor.swift:27:22: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
25 | func modify(
26 | data: Data,
27 | urlResponse: URLResponse
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
28 | ) async throws -> (Data, URLResponse)
29 | }
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:28:30: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
26 | data: Data,
27 | urlResponse: URLResponse
28 | ) async throws -> (Data, URLResponse)
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
29 | }
30 |
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:42:21: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
40 | /// - jsonDecoder: Decoder for response deserialization
41 | init(
42 | urlSession: URLSession,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
43 | jsonEncoder: JSONEncoder,
44 | 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:74:29: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
72 |
73 | final class DefaultNetworkService: NetworkService, @unchecked Sendable {
74 | private let urlSession: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
75 | private let jsonEncoder: JSONEncoder
76 | 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:82:21: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
80 |
81 | required init(
82 | urlSession: URLSession = .shared,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
83 | jsonEncoder: JSONEncoder = .init(),
84 | 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:142:17: error: cannot find type 'URLRequest' in scope
140 | private func buildRequest(
141 | from request: any NetworkRequestable
142 | ) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
143 | let url = try getRequestURL(request)
144 |
/host/spi-builder-workspace/Sources/EagleNet/NetworkService.swift:194:19: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
192 | private func handleResponse<Response: Decodable>(
193 | data: Data,
194 | response: URLResponse
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
195 | ) throws -> Response {
196 | 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:13:40: error: cannot find type 'URLSessionTaskDelegate' in scope
11 | #endif
12 |
13 | final class SessionDelegate: NSObject, URLSessionTaskDelegate {
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
14 | private let progress: ProgressHandler?
15 | init(progress: ProgressHandler?) {
/host/spi-builder-workspace/Sources/EagleNet/SessionDelegate.swift:20:20: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
18 |
19 | func urlSession(
20 | _ session: URLSession,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
21 | task: URLSessionTask,
22 | 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:21:15: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
19 | func urlSession(
20 | _ session: URLSession,
21 | task: URLSessionTask,
| `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
22 | didSendBodyData bytesSent: Int64,
23 | 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/28] Compiling EagleNet DataRequest.swift
[5/28] Compiling EagleNet EagleNet+Custom.swift
[6/28] Compiling EagleNet EagleNet+Delete.swift
[7/28] Compiling EagleNet EagleNet+Get.swift
[8/28] Compiling EagleNet ResponseInterceptor.swift
/host/spi-builder-workspace/Sources/EagleNet/Interceptor/ResponseInterceptor.swift:27:22: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
25 | func modify(
26 | data: Data,
27 | urlResponse: URLResponse
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
28 | ) async throws -> (Data, URLResponse)
29 | }
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:28:30: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
26 | data: Data,
27 | urlResponse: URLResponse
28 | ) async throws -> (Data, URLResponse)
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
29 | }
30 |
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
[9/28] Compiling EagleNet Misc.swift
/host/spi-builder-workspace/Sources/EagleNet/Interceptor/ResponseInterceptor.swift:27:22: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
25 | func modify(
26 | data: Data,
27 | urlResponse: URLResponse
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
28 | ) async throws -> (Data, URLResponse)
29 | }
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:28:30: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
26 | data: Data,
27 | urlResponse: URLResponse
28 | ) async throws -> (Data, URLResponse)
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
29 | }
30 |
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
[10/28] Compiling EagleNet MultipartParameter.swift
/host/spi-builder-workspace/Sources/EagleNet/Interceptor/ResponseInterceptor.swift:27:22: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
25 | func modify(
26 | data: Data,
27 | urlResponse: URLResponse
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
28 | ) async throws -> (Data, URLResponse)
29 | }
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:28:30: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
26 | data: Data,
27 | urlResponse: URLResponse
28 | ) async throws -> (Data, URLResponse)
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
29 | }
30 |
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
[11/28] Compiling EagleNet HTTPContentType.swift
/host/spi-builder-workspace/Sources/EagleNet/Interceptor/RequestInterceptor.swift:27:54: error: cannot find type 'URLRequest' in scope
25 | /// ```
26 | public protocol RequestInterceptor: Sendable {
27 | func modify(request: URLRequest) async throws -> URLRequest
| `- error: cannot find type 'URLRequest' in scope
28 | }
29 |
/host/spi-builder-workspace/Sources/EagleNet/Interceptor/RequestInterceptor.swift:27:26: error: cannot find type 'URLRequest' in scope
25 | /// ```
26 | public protocol RequestInterceptor: Sendable {
27 | func modify(request: URLRequest) async throws -> URLRequest
| `- error: cannot find type 'URLRequest' in scope
28 | }
29 |
[12/28] Compiling EagleNet HTTPMethod.swift
/host/spi-builder-workspace/Sources/EagleNet/Interceptor/RequestInterceptor.swift:27:54: error: cannot find type 'URLRequest' in scope
25 | /// ```
26 | public protocol RequestInterceptor: Sendable {
27 | func modify(request: URLRequest) async throws -> URLRequest
| `- error: cannot find type 'URLRequest' in scope
28 | }
29 |
/host/spi-builder-workspace/Sources/EagleNet/Interceptor/RequestInterceptor.swift:27:26: error: cannot find type 'URLRequest' in scope
25 | /// ```
26 | public protocol RequestInterceptor: Sendable {
27 | func modify(request: URLRequest) async throws -> URLRequest
| `- error: cannot find type 'URLRequest' in scope
28 | }
29 |
[13/28] Compiling EagleNet RequestInterceptor.swift
/host/spi-builder-workspace/Sources/EagleNet/Interceptor/RequestInterceptor.swift:27:54: error: cannot find type 'URLRequest' in scope
25 | /// ```
26 | public protocol RequestInterceptor: Sendable {
27 | func modify(request: URLRequest) async throws -> URLRequest
| `- error: cannot find type 'URLRequest' in scope
28 | }
29 |
/host/spi-builder-workspace/Sources/EagleNet/Interceptor/RequestInterceptor.swift:27:26: error: cannot find type 'URLRequest' in scope
25 | /// ```
26 | public protocol RequestInterceptor: Sendable {
27 | func modify(request: URLRequest) async throws -> URLRequest
| `- error: cannot find type 'URLRequest' in scope
28 | }
29 |
[14/28] Compiling EagleNet EagleNet+Upload.swift
/host/spi-builder-workspace/Sources/EagleNet/NetworkService.swift:82:35: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
80 |
81 | required init(
82 | urlSession: URLSession = .shared,
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
83 | jsonEncoder: JSONEncoder = .init(),
84 | jsonDecoder: JSONDecoder = .init()
/host/spi-builder-workspace/Sources/EagleNet/EagleNet.swift:133:21: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
131 | /// ```
132 | public static func defaultService(
133 | urlSession: URLSession = .shared,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
134 | jsonEncoder: JSONEncoder = .init(),
135 | jsonDecoder: JSONDecoder = .init()
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/EagleNet/EagleNet.swift:133:35: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
131 | /// ```
132 | public static func defaultService(
133 | urlSession: URLSession = .shared,
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
134 | jsonEncoder: JSONEncoder = .init(),
135 | jsonDecoder: JSONDecoder = .init()
[15/28] Compiling EagleNet EagleNet.swift
/host/spi-builder-workspace/Sources/EagleNet/NetworkService.swift:82:35: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
80 |
81 | required init(
82 | urlSession: URLSession = .shared,
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
83 | jsonEncoder: JSONEncoder = .init(),
84 | jsonDecoder: JSONDecoder = .init()
/host/spi-builder-workspace/Sources/EagleNet/EagleNet.swift:133:21: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
131 | /// ```
132 | public static func defaultService(
133 | urlSession: URLSession = .shared,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
134 | jsonEncoder: JSONEncoder = .init(),
135 | jsonDecoder: JSONDecoder = .init()
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/EagleNet/EagleNet.swift:133:35: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
131 | /// ```
132 | public static func defaultService(
133 | urlSession: URLSession = .shared,
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
134 | jsonEncoder: JSONEncoder = .init(),
135 | jsonDecoder: JSONDecoder = .init()
[16/28] Compiling EagleNet EagleNetActor.swift
/host/spi-builder-workspace/Sources/EagleNet/NetworkService.swift:82:35: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
80 |
81 | required init(
82 | urlSession: URLSession = .shared,
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
83 | jsonEncoder: JSONEncoder = .init(),
84 | jsonDecoder: JSONDecoder = .init()
/host/spi-builder-workspace/Sources/EagleNet/EagleNet.swift:133:21: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
131 | /// ```
132 | public static func defaultService(
133 | urlSession: URLSession = .shared,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
134 | jsonEncoder: JSONEncoder = .init(),
135 | jsonDecoder: JSONDecoder = .init()
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/EagleNet/EagleNet.swift:133:35: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
131 | /// ```
132 | public static func defaultService(
133 | urlSession: URLSession = .shared,
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
134 | jsonEncoder: JSONEncoder = .init(),
135 | jsonDecoder: JSONDecoder = .init()
[17/28] Compiling EagleNet ArrayExtension.swift
/host/spi-builder-workspace/Sources/EagleNet/Extensions/HTTPURLResponseExtension.swift:13:1: error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended
11 | #endif
12 |
13 | extension HTTPURLResponse {
| `- error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended
14 | /// Convenience property for checking if an `HTTPURLResponse` is successful.
15 | ///
[18/28] Compiling EagleNet DataExtension.swift
/host/spi-builder-workspace/Sources/EagleNet/Extensions/HTTPURLResponseExtension.swift:13:1: error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended
11 | #endif
12 |
13 | extension HTTPURLResponse {
| `- error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended
14 | /// Convenience property for checking if an `HTTPURLResponse` is successful.
15 | ///
[19/28] Compiling EagleNet HTTPURLResponseExtension.swift
/host/spi-builder-workspace/Sources/EagleNet/Extensions/HTTPURLResponseExtension.swift:13:1: error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended
11 | #endif
12 |
13 | extension HTTPURLResponse {
| `- error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended
14 | /// Convenience property for checking if an `HTTPURLResponse` is successful.
15 | ///
[20/28] Compiling EagleNet NetworkRequestable.swift
/host/spi-builder-workspace/Sources/EagleNet/SessionDelegate.swift:13:40: error: cannot find type 'URLSessionTaskDelegate' in scope
11 | #endif
12 |
13 | final class SessionDelegate: NSObject, URLSessionTaskDelegate {
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
14 | private let progress: ProgressHandler?
15 | init(progress: ProgressHandler?) {
/host/spi-builder-workspace/Sources/EagleNet/SessionDelegate.swift:20:20: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
18 |
19 | func urlSession(
20 | _ session: URLSession,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
21 | task: URLSessionTask,
22 | 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:21:15: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
19 | func urlSession(
20 | _ session: URLSession,
21 | task: URLSessionTask,
| `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
22 | didSendBodyData bytesSent: Int64,
23 | 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
[21/28] Compiling EagleNet URLConvertible.swift
/host/spi-builder-workspace/Sources/EagleNet/SessionDelegate.swift:13:40: error: cannot find type 'URLSessionTaskDelegate' in scope
11 | #endif
12 |
13 | final class SessionDelegate: NSObject, URLSessionTaskDelegate {
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
14 | private let progress: ProgressHandler?
15 | init(progress: ProgressHandler?) {
/host/spi-builder-workspace/Sources/EagleNet/SessionDelegate.swift:20:20: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
18 |
19 | func urlSession(
20 | _ session: URLSession,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
21 | task: URLSessionTask,
22 | 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:21:15: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
19 | func urlSession(
20 | _ session: URLSession,
21 | task: URLSessionTask,
| `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
22 | didSendBodyData bytesSent: Int64,
23 | 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
[22/28] Compiling EagleNet SessionDelegate.swift
/host/spi-builder-workspace/Sources/EagleNet/SessionDelegate.swift:13:40: error: cannot find type 'URLSessionTaskDelegate' in scope
11 | #endif
12 |
13 | final class SessionDelegate: NSObject, URLSessionTaskDelegate {
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
14 | private let progress: ProgressHandler?
15 | init(progress: ProgressHandler?) {
/host/spi-builder-workspace/Sources/EagleNet/SessionDelegate.swift:20:20: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
18 |
19 | func urlSession(
20 | _ session: URLSession,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
21 | task: URLSessionTask,
22 | 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:21:15: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
19 | func urlSession(
20 | _ session: URLSession,
21 | task: URLSessionTask,
| `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
22 | didSendBodyData bytesSent: Int64,
23 | 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
[23/28] Compiling EagleNet EagleNet+Interceptor.swift
[24/28] Compiling EagleNet EagleNet+Post.swift
[25/28] Compiling EagleNet EagleNet+Put.swift
[26/28] Compiling EagleNet MultipartRequest.swift
/host/spi-builder-workspace/Sources/EagleNet/NetworkService.swift:42:21: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
40 | /// - jsonDecoder: Decoder for response deserialization
41 | init(
42 | urlSession: URLSession,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
43 | jsonEncoder: JSONEncoder,
44 | 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:74:29: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
72 |
73 | final class DefaultNetworkService: NetworkService, @unchecked Sendable {
74 | private let urlSession: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
75 | private let jsonEncoder: JSONEncoder
76 | 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:82:21: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
80 |
81 | required init(
82 | urlSession: URLSession = .shared,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
83 | jsonEncoder: JSONEncoder = .init(),
84 | 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:82:35: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
80 |
81 | required init(
82 | urlSession: URLSession = .shared,
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
83 | jsonEncoder: JSONEncoder = .init(),
84 | jsonDecoder: JSONDecoder = .init()
/host/spi-builder-workspace/Sources/EagleNet/NetworkService.swift:142:17: error: cannot find type 'URLRequest' in scope
140 | private func buildRequest(
141 | from request: any NetworkRequestable
142 | ) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
143 | let url = try getRequestURL(request)
144 |
/host/spi-builder-workspace/Sources/EagleNet/NetworkService.swift:194:19: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
192 | private func handleResponse<Response: Decodable>(
193 | data: Data,
194 | response: URLResponse
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
195 | ) throws -> Response {
196 | if let httpURLResponse = response as? HTTPURLResponse,
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/EagleNet/Interceptor/RequestInterceptor.swift:27:54: error: cannot find type 'URLRequest' in scope
25 | /// ```
26 | public protocol RequestInterceptor: Sendable {
27 | func modify(request: URLRequest) async throws -> URLRequest
| `- error: cannot find type 'URLRequest' in scope
28 | }
29 |
/host/spi-builder-workspace/Sources/EagleNet/Interceptor/RequestInterceptor.swift:27:26: error: cannot find type 'URLRequest' in scope
25 | /// ```
26 | public protocol RequestInterceptor: Sendable {
27 | func modify(request: URLRequest) async throws -> URLRequest
| `- error: cannot find type 'URLRequest' in scope
28 | }
29 |
/host/spi-builder-workspace/Sources/EagleNet/NetworkService.swift:98:43: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
96 | }
97 |
98 | let result = try await urlSession.data(for: urlRequest)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
99 |
100 | let (data, urlResponse) = try await responseInterceptors.reduce(result) { result, interceptor in
/host/spi-builder-workspace/Sources/EagleNet/NetworkService.swift:119:43: error: value of type 'URLSession' (aka 'AnyObject') has no member 'upload'
117 | let bodyData = urlRequest.httpBody ?? Data()
118 | urlRequest.httpBody = nil
119 | let result = try await urlSession.upload(
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'upload'
120 | for: urlRequest,
121 | from: bodyData,
/host/spi-builder-workspace/Sources/EagleNet/NetworkService.swift:145:26: error: cannot find 'URLRequest' in scope
143 | let url = try getRequestURL(request)
144 |
145 | var urlRequest = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
146 | urlRequest.httpMethod = request.httpMethod.rawValue
147 |
/host/spi-builder-workspace/Sources/EagleNet/NetworkService.swift:196:43: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
194 | response: URLResponse
195 | ) throws -> Response {
196 | if let httpURLResponse = response as? HTTPURLResponse,
| `- warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
197 | !httpURLResponse.isSuccess {
198 | throw NetworkError.failure(
/host/spi-builder-workspace/Sources/EagleNet/NetworkService.swift:196:47: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
194 | response: URLResponse
195 | ) throws -> Response {
196 | if let httpURLResponse = response as? HTTPURLResponse,
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
197 | !httpURLResponse.isSuccess {
198 | throw NetworkError.failure(
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/EagleNet/NetworkService.swift:197:32: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'isSuccess'
195 | ) throws -> Response {
196 | if let httpURLResponse = response as? HTTPURLResponse,
197 | !httpURLResponse.isSuccess {
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'isSuccess'
198 | throw NetworkError.failure(
199 | message: httpURLResponse.description,
/host/spi-builder-workspace/Sources/EagleNet/NetworkService.swift:199:42: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'description'
197 | !httpURLResponse.isSuccess {
198 | throw NetworkError.failure(
199 | message: httpURLResponse.description,
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'description'
200 | statusCode: httpURLResponse.statusCode,
201 | data: data
/host/spi-builder-workspace/Sources/EagleNet/NetworkService.swift:200:45: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
198 | throw NetworkError.failure(
199 | message: httpURLResponse.description,
200 | statusCode: httpURLResponse.statusCode,
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
201 | data: data
202 | )
[27/28] Compiling EagleNet NetworkError.swift
/host/spi-builder-workspace/Sources/EagleNet/NetworkService.swift:42:21: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
40 | /// - jsonDecoder: Decoder for response deserialization
41 | init(
42 | urlSession: URLSession,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
43 | jsonEncoder: JSONEncoder,
44 | 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:74:29: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
72 |
73 | final class DefaultNetworkService: NetworkService, @unchecked Sendable {
74 | private let urlSession: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
75 | private let jsonEncoder: JSONEncoder
76 | 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:82:21: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
80 |
81 | required init(
82 | urlSession: URLSession = .shared,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
83 | jsonEncoder: JSONEncoder = .init(),
84 | 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:82:35: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
80 |
81 | required init(
82 | urlSession: URLSession = .shared,
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
83 | jsonEncoder: JSONEncoder = .init(),
84 | jsonDecoder: JSONDecoder = .init()
/host/spi-builder-workspace/Sources/EagleNet/NetworkService.swift:142:17: error: cannot find type 'URLRequest' in scope
140 | private func buildRequest(
141 | from request: any NetworkRequestable
142 | ) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
143 | let url = try getRequestURL(request)
144 |
/host/spi-builder-workspace/Sources/EagleNet/NetworkService.swift:194:19: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
192 | private func handleResponse<Response: Decodable>(
193 | data: Data,
194 | response: URLResponse
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
195 | ) throws -> Response {
196 | if let httpURLResponse = response as? HTTPURLResponse,
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/EagleNet/Interceptor/RequestInterceptor.swift:27:54: error: cannot find type 'URLRequest' in scope
25 | /// ```
26 | public protocol RequestInterceptor: Sendable {
27 | func modify(request: URLRequest) async throws -> URLRequest
| `- error: cannot find type 'URLRequest' in scope
28 | }
29 |
/host/spi-builder-workspace/Sources/EagleNet/Interceptor/RequestInterceptor.swift:27:26: error: cannot find type 'URLRequest' in scope
25 | /// ```
26 | public protocol RequestInterceptor: Sendable {
27 | func modify(request: URLRequest) async throws -> URLRequest
| `- error: cannot find type 'URLRequest' in scope
28 | }
29 |
/host/spi-builder-workspace/Sources/EagleNet/NetworkService.swift:98:43: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
96 | }
97 |
98 | let result = try await urlSession.data(for: urlRequest)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
99 |
100 | let (data, urlResponse) = try await responseInterceptors.reduce(result) { result, interceptor in
/host/spi-builder-workspace/Sources/EagleNet/NetworkService.swift:119:43: error: value of type 'URLSession' (aka 'AnyObject') has no member 'upload'
117 | let bodyData = urlRequest.httpBody ?? Data()
118 | urlRequest.httpBody = nil
119 | let result = try await urlSession.upload(
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'upload'
120 | for: urlRequest,
121 | from: bodyData,
/host/spi-builder-workspace/Sources/EagleNet/NetworkService.swift:145:26: error: cannot find 'URLRequest' in scope
143 | let url = try getRequestURL(request)
144 |
145 | var urlRequest = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
146 | urlRequest.httpMethod = request.httpMethod.rawValue
147 |
/host/spi-builder-workspace/Sources/EagleNet/NetworkService.swift:196:43: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
194 | response: URLResponse
195 | ) throws -> Response {
196 | if let httpURLResponse = response as? HTTPURLResponse,
| `- warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
197 | !httpURLResponse.isSuccess {
198 | throw NetworkError.failure(
/host/spi-builder-workspace/Sources/EagleNet/NetworkService.swift:196:47: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
194 | response: URLResponse
195 | ) throws -> Response {
196 | if let httpURLResponse = response as? HTTPURLResponse,
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
197 | !httpURLResponse.isSuccess {
198 | throw NetworkError.failure(
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/EagleNet/NetworkService.swift:197:32: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'isSuccess'
195 | ) throws -> Response {
196 | if let httpURLResponse = response as? HTTPURLResponse,
197 | !httpURLResponse.isSuccess {
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'isSuccess'
198 | throw NetworkError.failure(
199 | message: httpURLResponse.description,
/host/spi-builder-workspace/Sources/EagleNet/NetworkService.swift:199:42: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'description'
197 | !httpURLResponse.isSuccess {
198 | throw NetworkError.failure(
199 | message: httpURLResponse.description,
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'description'
200 | statusCode: httpURLResponse.statusCode,
201 | data: data
/host/spi-builder-workspace/Sources/EagleNet/NetworkService.swift:200:45: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
198 | throw NetworkError.failure(
199 | message: httpURLResponse.description,
200 | statusCode: httpURLResponse.statusCode,
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
201 | data: data
202 | )
[28/28] Compiling EagleNet NetworkService.swift
/host/spi-builder-workspace/Sources/EagleNet/NetworkService.swift:42:21: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
40 | /// - jsonDecoder: Decoder for response deserialization
41 | init(
42 | urlSession: URLSession,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
43 | jsonEncoder: JSONEncoder,
44 | 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:74:29: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
72 |
73 | final class DefaultNetworkService: NetworkService, @unchecked Sendable {
74 | private let urlSession: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
75 | private let jsonEncoder: JSONEncoder
76 | 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:82:21: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
80 |
81 | required init(
82 | urlSession: URLSession = .shared,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
83 | jsonEncoder: JSONEncoder = .init(),
84 | 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:82:35: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
80 |
81 | required init(
82 | urlSession: URLSession = .shared,
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
83 | jsonEncoder: JSONEncoder = .init(),
84 | jsonDecoder: JSONDecoder = .init()
/host/spi-builder-workspace/Sources/EagleNet/NetworkService.swift:142:17: error: cannot find type 'URLRequest' in scope
140 | private func buildRequest(
141 | from request: any NetworkRequestable
142 | ) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
143 | let url = try getRequestURL(request)
144 |
/host/spi-builder-workspace/Sources/EagleNet/NetworkService.swift:194:19: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
192 | private func handleResponse<Response: Decodable>(
193 | data: Data,
194 | response: URLResponse
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
195 | ) throws -> Response {
196 | if let httpURLResponse = response as? HTTPURLResponse,
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/EagleNet/Interceptor/RequestInterceptor.swift:27:54: error: cannot find type 'URLRequest' in scope
25 | /// ```
26 | public protocol RequestInterceptor: Sendable {
27 | func modify(request: URLRequest) async throws -> URLRequest
| `- error: cannot find type 'URLRequest' in scope
28 | }
29 |
/host/spi-builder-workspace/Sources/EagleNet/Interceptor/RequestInterceptor.swift:27:26: error: cannot find type 'URLRequest' in scope
25 | /// ```
26 | public protocol RequestInterceptor: Sendable {
27 | func modify(request: URLRequest) async throws -> URLRequest
| `- error: cannot find type 'URLRequest' in scope
28 | }
29 |
/host/spi-builder-workspace/Sources/EagleNet/NetworkService.swift:98:43: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
96 | }
97 |
98 | let result = try await urlSession.data(for: urlRequest)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
99 |
100 | let (data, urlResponse) = try await responseInterceptors.reduce(result) { result, interceptor in
/host/spi-builder-workspace/Sources/EagleNet/NetworkService.swift:119:43: error: value of type 'URLSession' (aka 'AnyObject') has no member 'upload'
117 | let bodyData = urlRequest.httpBody ?? Data()
118 | urlRequest.httpBody = nil
119 | let result = try await urlSession.upload(
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'upload'
120 | for: urlRequest,
121 | from: bodyData,
/host/spi-builder-workspace/Sources/EagleNet/NetworkService.swift:145:26: error: cannot find 'URLRequest' in scope
143 | let url = try getRequestURL(request)
144 |
145 | var urlRequest = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
146 | urlRequest.httpMethod = request.httpMethod.rawValue
147 |
/host/spi-builder-workspace/Sources/EagleNet/NetworkService.swift:196:43: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
194 | response: URLResponse
195 | ) throws -> Response {
196 | if let httpURLResponse = response as? HTTPURLResponse,
| `- warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
197 | !httpURLResponse.isSuccess {
198 | throw NetworkError.failure(
/host/spi-builder-workspace/Sources/EagleNet/NetworkService.swift:196:47: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
194 | response: URLResponse
195 | ) throws -> Response {
196 | if let httpURLResponse = response as? HTTPURLResponse,
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
197 | !httpURLResponse.isSuccess {
198 | throw NetworkError.failure(
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/EagleNet/NetworkService.swift:197:32: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'isSuccess'
195 | ) throws -> Response {
196 | if let httpURLResponse = response as? HTTPURLResponse,
197 | !httpURLResponse.isSuccess {
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'isSuccess'
198 | throw NetworkError.failure(
199 | message: httpURLResponse.description,
/host/spi-builder-workspace/Sources/EagleNet/NetworkService.swift:199:42: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'description'
197 | !httpURLResponse.isSuccess {
198 | throw NetworkError.failure(
199 | message: httpURLResponse.description,
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'description'
200 | statusCode: httpURLResponse.statusCode,
201 | data: data
/host/spi-builder-workspace/Sources/EagleNet/NetworkService.swift:200:45: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
198 | throw NetworkError.failure(
199 | message: httpURLResponse.description,
200 | statusCode: httpURLResponse.statusCode,
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
201 | data: data
202 | )
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-2":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1
wasm-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:062e4aaff76454b333ce7957a8e87c3beb342f1dedb64399abb81cdea021b526
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest
[0/1] Planning build
Building for debugging...
[0/1] Write swift-version-24593BA9C3E375BF.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[2/24] Emitting module EagleNet
/host/spi-builder-workspace/Sources/EagleNet/NetworkService.swift:82:35: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
80 |
81 | required init(
82 | urlSession: URLSession = .shared,
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
83 | jsonEncoder: JSONEncoder = .init(),
84 | jsonDecoder: JSONDecoder = .init()
/host/spi-builder-workspace/Sources/EagleNet/EagleNet.swift:133:21: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
131 | /// ```
132 | public static func defaultService(
133 | urlSession: URLSession = .shared,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
134 | jsonEncoder: JSONEncoder = .init(),
135 | jsonDecoder: JSONDecoder = .init()
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/EagleNet/EagleNet.swift:133:35: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
131 | /// ```
132 | public static func defaultService(
133 | urlSession: URLSession = .shared,
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
134 | jsonEncoder: JSONEncoder = .init(),
135 | jsonDecoder: JSONDecoder = .init()
/host/spi-builder-workspace/Sources/EagleNet/Extensions/HTTPURLResponseExtension.swift:13:1: error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended
11 | #endif
12 |
13 | extension HTTPURLResponse {
| `- error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended
14 | /// Convenience property for checking if an `HTTPURLResponse` is successful.
15 | ///
/host/spi-builder-workspace/Sources/EagleNet/Interceptor/RequestInterceptor.swift:27:54: error: cannot find type 'URLRequest' in scope
25 | /// ```
26 | public protocol RequestInterceptor: Sendable {
27 | func modify(request: URLRequest) async throws -> URLRequest
| `- error: cannot find type 'URLRequest' in scope
28 | }
29 |
/host/spi-builder-workspace/Sources/EagleNet/Interceptor/RequestInterceptor.swift:27:26: error: cannot find type 'URLRequest' in scope
25 | /// ```
26 | public protocol RequestInterceptor: Sendable {
27 | func modify(request: URLRequest) async throws -> URLRequest
| `- error: cannot find type 'URLRequest' in scope
28 | }
29 |
/host/spi-builder-workspace/Sources/EagleNet/Interceptor/ResponseInterceptor.swift:27:22: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
25 | func modify(
26 | data: Data,
27 | urlResponse: URLResponse
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
28 | ) async throws -> (Data, URLResponse)
29 | }
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:28:30: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
26 | data: Data,
27 | urlResponse: URLResponse
28 | ) async throws -> (Data, URLResponse)
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
29 | }
30 |
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:42:21: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
40 | /// - jsonDecoder: Decoder for response deserialization
41 | init(
42 | urlSession: URLSession,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
43 | jsonEncoder: JSONEncoder,
44 | 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:74:29: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
72 |
73 | final class DefaultNetworkService: NetworkService, @unchecked Sendable {
74 | private let urlSession: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
75 | private let jsonEncoder: JSONEncoder
76 | 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:82:21: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
80 |
81 | required init(
82 | urlSession: URLSession = .shared,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
83 | jsonEncoder: JSONEncoder = .init(),
84 | 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:142:17: error: cannot find type 'URLRequest' in scope
140 | private func buildRequest(
141 | from request: any NetworkRequestable
142 | ) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
143 | let url = try getRequestURL(request)
144 |
/host/spi-builder-workspace/Sources/EagleNet/NetworkService.swift:194:19: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
192 | private func handleResponse<Response: Decodable>(
193 | data: Data,
194 | response: URLResponse
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
195 | ) throws -> Response {
196 | 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:13:40: error: cannot find type 'URLSessionTaskDelegate' in scope
11 | #endif
12 |
13 | final class SessionDelegate: NSObject, URLSessionTaskDelegate {
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
14 | private let progress: ProgressHandler?
15 | init(progress: ProgressHandler?) {
/host/spi-builder-workspace/Sources/EagleNet/SessionDelegate.swift:20:20: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
18 |
19 | func urlSession(
20 | _ session: URLSession,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
21 | task: URLSessionTask,
22 | 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:21:15: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
19 | func urlSession(
20 | _ session: URLSession,
21 | task: URLSessionTask,
| `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
22 | didSendBodyData bytesSent: Int64,
23 | 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
[3/27] Compiling EagleNet NetworkRequestable.swift
/host/spi-builder-workspace/Sources/EagleNet/SessionDelegate.swift:13:40: error: cannot find type 'URLSessionTaskDelegate' in scope
11 | #endif
12 |
13 | final class SessionDelegate: NSObject, URLSessionTaskDelegate {
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
14 | private let progress: ProgressHandler?
15 | init(progress: ProgressHandler?) {
/host/spi-builder-workspace/Sources/EagleNet/SessionDelegate.swift:20:20: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
18 |
19 | func urlSession(
20 | _ session: URLSession,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
21 | task: URLSessionTask,
22 | 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:21:15: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
19 | func urlSession(
20 | _ session: URLSession,
21 | task: URLSessionTask,
| `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
22 | didSendBodyData bytesSent: Int64,
23 | 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/27] Compiling EagleNet URLConvertible.swift
/host/spi-builder-workspace/Sources/EagleNet/SessionDelegate.swift:13:40: error: cannot find type 'URLSessionTaskDelegate' in scope
11 | #endif
12 |
13 | final class SessionDelegate: NSObject, URLSessionTaskDelegate {
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
14 | private let progress: ProgressHandler?
15 | init(progress: ProgressHandler?) {
/host/spi-builder-workspace/Sources/EagleNet/SessionDelegate.swift:20:20: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
18 |
19 | func urlSession(
20 | _ session: URLSession,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
21 | task: URLSessionTask,
22 | 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:21:15: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
19 | func urlSession(
20 | _ session: URLSession,
21 | task: URLSessionTask,
| `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
22 | didSendBodyData bytesSent: Int64,
23 | 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
[5/27] Compiling EagleNet SessionDelegate.swift
/host/spi-builder-workspace/Sources/EagleNet/SessionDelegate.swift:13:40: error: cannot find type 'URLSessionTaskDelegate' in scope
11 | #endif
12 |
13 | final class SessionDelegate: NSObject, URLSessionTaskDelegate {
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
14 | private let progress: ProgressHandler?
15 | init(progress: ProgressHandler?) {
/host/spi-builder-workspace/Sources/EagleNet/SessionDelegate.swift:20:20: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
18 |
19 | func urlSession(
20 | _ session: URLSession,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
21 | task: URLSessionTask,
22 | 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:21:15: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
19 | func urlSession(
20 | _ session: URLSession,
21 | task: URLSessionTask,
| `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
22 | didSendBodyData bytesSent: Int64,
23 | 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/27] Compiling EagleNet ResponseInterceptor.swift
/host/spi-builder-workspace/Sources/EagleNet/Interceptor/ResponseInterceptor.swift:27:22: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
25 | func modify(
26 | data: Data,
27 | urlResponse: URLResponse
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
28 | ) async throws -> (Data, URLResponse)
29 | }
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:28:30: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
26 | data: Data,
27 | urlResponse: URLResponse
28 | ) async throws -> (Data, URLResponse)
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
29 | }
30 |
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/27] Compiling EagleNet Misc.swift
/host/spi-builder-workspace/Sources/EagleNet/Interceptor/ResponseInterceptor.swift:27:22: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
25 | func modify(
26 | data: Data,
27 | urlResponse: URLResponse
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
28 | ) async throws -> (Data, URLResponse)
29 | }
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:28:30: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
26 | data: Data,
27 | urlResponse: URLResponse
28 | ) async throws -> (Data, URLResponse)
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
29 | }
30 |
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/27] Compiling EagleNet MultipartParameter.swift
/host/spi-builder-workspace/Sources/EagleNet/Interceptor/ResponseInterceptor.swift:27:22: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
25 | func modify(
26 | data: Data,
27 | urlResponse: URLResponse
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
28 | ) async throws -> (Data, URLResponse)
29 | }
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:28:30: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
26 | data: Data,
27 | urlResponse: URLResponse
28 | ) async throws -> (Data, URLResponse)
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
29 | }
30 |
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/27] Compiling EagleNet HTTPContentType.swift
/host/spi-builder-workspace/Sources/EagleNet/Interceptor/RequestInterceptor.swift:27:54: error: cannot find type 'URLRequest' in scope
25 | /// ```
26 | public protocol RequestInterceptor: Sendable {
27 | func modify(request: URLRequest) async throws -> URLRequest
| `- error: cannot find type 'URLRequest' in scope
28 | }
29 |
/host/spi-builder-workspace/Sources/EagleNet/Interceptor/RequestInterceptor.swift:27:26: error: cannot find type 'URLRequest' in scope
25 | /// ```
26 | public protocol RequestInterceptor: Sendable {
27 | func modify(request: URLRequest) async throws -> URLRequest
| `- error: cannot find type 'URLRequest' in scope
28 | }
29 |
[10/27] Compiling EagleNet HTTPMethod.swift
/host/spi-builder-workspace/Sources/EagleNet/Interceptor/RequestInterceptor.swift:27:54: error: cannot find type 'URLRequest' in scope
25 | /// ```
26 | public protocol RequestInterceptor: Sendable {
27 | func modify(request: URLRequest) async throws -> URLRequest
| `- error: cannot find type 'URLRequest' in scope
28 | }
29 |
/host/spi-builder-workspace/Sources/EagleNet/Interceptor/RequestInterceptor.swift:27:26: error: cannot find type 'URLRequest' in scope
25 | /// ```
26 | public protocol RequestInterceptor: Sendable {
27 | func modify(request: URLRequest) async throws -> URLRequest
| `- error: cannot find type 'URLRequest' in scope
28 | }
29 |
[11/27] Compiling EagleNet RequestInterceptor.swift
/host/spi-builder-workspace/Sources/EagleNet/Interceptor/RequestInterceptor.swift:27:54: error: cannot find type 'URLRequest' in scope
25 | /// ```
26 | public protocol RequestInterceptor: Sendable {
27 | func modify(request: URLRequest) async throws -> URLRequest
| `- error: cannot find type 'URLRequest' in scope
28 | }
29 |
/host/spi-builder-workspace/Sources/EagleNet/Interceptor/RequestInterceptor.swift:27:26: error: cannot find type 'URLRequest' in scope
25 | /// ```
26 | public protocol RequestInterceptor: Sendable {
27 | func modify(request: URLRequest) async throws -> URLRequest
| `- error: cannot find type 'URLRequest' in scope
28 | }
29 |
[12/27] Compiling EagleNet MultipartRequest.swift
/host/spi-builder-workspace/Sources/EagleNet/NetworkService.swift:42:21: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
40 | /// - jsonDecoder: Decoder for response deserialization
41 | init(
42 | urlSession: URLSession,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
43 | jsonEncoder: JSONEncoder,
44 | 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:74:29: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
72 |
73 | final class DefaultNetworkService: NetworkService, @unchecked Sendable {
74 | private let urlSession: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
75 | private let jsonEncoder: JSONEncoder
76 | 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:82:21: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
80 |
81 | required init(
82 | urlSession: URLSession = .shared,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
83 | jsonEncoder: JSONEncoder = .init(),
84 | 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:82:35: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
80 |
81 | required init(
82 | urlSession: URLSession = .shared,
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
83 | jsonEncoder: JSONEncoder = .init(),
84 | jsonDecoder: JSONDecoder = .init()
/host/spi-builder-workspace/Sources/EagleNet/NetworkService.swift:142:17: error: cannot find type 'URLRequest' in scope
140 | private func buildRequest(
141 | from request: any NetworkRequestable
142 | ) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
143 | let url = try getRequestURL(request)
144 |
/host/spi-builder-workspace/Sources/EagleNet/NetworkService.swift:194:19: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
192 | private func handleResponse<Response: Decodable>(
193 | data: Data,
194 | response: URLResponse
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
195 | ) throws -> Response {
196 | if let httpURLResponse = response as? HTTPURLResponse,
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/EagleNet/Interceptor/RequestInterceptor.swift:27:54: error: cannot find type 'URLRequest' in scope
25 | /// ```
26 | public protocol RequestInterceptor: Sendable {
27 | func modify(request: URLRequest) async throws -> URLRequest
| `- error: cannot find type 'URLRequest' in scope
28 | }
29 |
/host/spi-builder-workspace/Sources/EagleNet/Interceptor/RequestInterceptor.swift:27:26: error: cannot find type 'URLRequest' in scope
25 | /// ```
26 | public protocol RequestInterceptor: Sendable {
27 | func modify(request: URLRequest) async throws -> URLRequest
| `- error: cannot find type 'URLRequest' in scope
28 | }
29 |
/host/spi-builder-workspace/Sources/EagleNet/NetworkService.swift:98:43: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
96 | }
97 |
98 | let result = try await urlSession.data(for: urlRequest)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
99 |
100 | let (data, urlResponse) = try await responseInterceptors.reduce(result) { result, interceptor in
/host/spi-builder-workspace/Sources/EagleNet/NetworkService.swift:119:43: error: value of type 'URLSession' (aka 'AnyObject') has no member 'upload'
117 | let bodyData = urlRequest.httpBody ?? Data()
118 | urlRequest.httpBody = nil
119 | let result = try await urlSession.upload(
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'upload'
120 | for: urlRequest,
121 | from: bodyData,
/host/spi-builder-workspace/Sources/EagleNet/NetworkService.swift:145:26: error: cannot find 'URLRequest' in scope
143 | let url = try getRequestURL(request)
144 |
145 | var urlRequest = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
146 | urlRequest.httpMethod = request.httpMethod.rawValue
147 |
/host/spi-builder-workspace/Sources/EagleNet/NetworkService.swift:196:43: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
194 | response: URLResponse
195 | ) throws -> Response {
196 | if let httpURLResponse = response as? HTTPURLResponse,
| `- warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
197 | !httpURLResponse.isSuccess {
198 | throw NetworkError.failure(
/host/spi-builder-workspace/Sources/EagleNet/NetworkService.swift:196:47: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
194 | response: URLResponse
195 | ) throws -> Response {
196 | if let httpURLResponse = response as? HTTPURLResponse,
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
197 | !httpURLResponse.isSuccess {
198 | throw NetworkError.failure(
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/EagleNet/NetworkService.swift:197:32: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'isSuccess'
195 | ) throws -> Response {
196 | if let httpURLResponse = response as? HTTPURLResponse,
197 | !httpURLResponse.isSuccess {
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'isSuccess'
198 | throw NetworkError.failure(
199 | message: httpURLResponse.description,
/host/spi-builder-workspace/Sources/EagleNet/NetworkService.swift:199:42: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'description'
197 | !httpURLResponse.isSuccess {
198 | throw NetworkError.failure(
199 | message: httpURLResponse.description,
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'description'
200 | statusCode: httpURLResponse.statusCode,
201 | data: data
/host/spi-builder-workspace/Sources/EagleNet/NetworkService.swift:200:45: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
198 | throw NetworkError.failure(
199 | message: httpURLResponse.description,
200 | statusCode: httpURLResponse.statusCode,
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
201 | data: data
202 | )
[13/27] Compiling EagleNet NetworkError.swift
/host/spi-builder-workspace/Sources/EagleNet/NetworkService.swift:42:21: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
40 | /// - jsonDecoder: Decoder for response deserialization
41 | init(
42 | urlSession: URLSession,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
43 | jsonEncoder: JSONEncoder,
44 | 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:74:29: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
72 |
73 | final class DefaultNetworkService: NetworkService, @unchecked Sendable {
74 | private let urlSession: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
75 | private let jsonEncoder: JSONEncoder
76 | 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:82:21: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
80 |
81 | required init(
82 | urlSession: URLSession = .shared,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
83 | jsonEncoder: JSONEncoder = .init(),
84 | 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:82:35: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
80 |
81 | required init(
82 | urlSession: URLSession = .shared,
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
83 | jsonEncoder: JSONEncoder = .init(),
84 | jsonDecoder: JSONDecoder = .init()
/host/spi-builder-workspace/Sources/EagleNet/NetworkService.swift:142:17: error: cannot find type 'URLRequest' in scope
140 | private func buildRequest(
141 | from request: any NetworkRequestable
142 | ) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
143 | let url = try getRequestURL(request)
144 |
/host/spi-builder-workspace/Sources/EagleNet/NetworkService.swift:194:19: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
192 | private func handleResponse<Response: Decodable>(
193 | data: Data,
194 | response: URLResponse
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
195 | ) throws -> Response {
196 | if let httpURLResponse = response as? HTTPURLResponse,
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/EagleNet/Interceptor/RequestInterceptor.swift:27:54: error: cannot find type 'URLRequest' in scope
25 | /// ```
26 | public protocol RequestInterceptor: Sendable {
27 | func modify(request: URLRequest) async throws -> URLRequest
| `- error: cannot find type 'URLRequest' in scope
28 | }
29 |
/host/spi-builder-workspace/Sources/EagleNet/Interceptor/RequestInterceptor.swift:27:26: error: cannot find type 'URLRequest' in scope
25 | /// ```
26 | public protocol RequestInterceptor: Sendable {
27 | func modify(request: URLRequest) async throws -> URLRequest
| `- error: cannot find type 'URLRequest' in scope
28 | }
29 |
/host/spi-builder-workspace/Sources/EagleNet/NetworkService.swift:98:43: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
96 | }
97 |
98 | let result = try await urlSession.data(for: urlRequest)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
99 |
100 | let (data, urlResponse) = try await responseInterceptors.reduce(result) { result, interceptor in
/host/spi-builder-workspace/Sources/EagleNet/NetworkService.swift:119:43: error: value of type 'URLSession' (aka 'AnyObject') has no member 'upload'
117 | let bodyData = urlRequest.httpBody ?? Data()
118 | urlRequest.httpBody = nil
119 | let result = try await urlSession.upload(
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'upload'
120 | for: urlRequest,
121 | from: bodyData,
/host/spi-builder-workspace/Sources/EagleNet/NetworkService.swift:145:26: error: cannot find 'URLRequest' in scope
143 | let url = try getRequestURL(request)
144 |
145 | var urlRequest = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
146 | urlRequest.httpMethod = request.httpMethod.rawValue
147 |
/host/spi-builder-workspace/Sources/EagleNet/NetworkService.swift:196:43: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
194 | response: URLResponse
195 | ) throws -> Response {
196 | if let httpURLResponse = response as? HTTPURLResponse,
| `- warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
197 | !httpURLResponse.isSuccess {
198 | throw NetworkError.failure(
/host/spi-builder-workspace/Sources/EagleNet/NetworkService.swift:196:47: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
194 | response: URLResponse
195 | ) throws -> Response {
196 | if let httpURLResponse = response as? HTTPURLResponse,
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
197 | !httpURLResponse.isSuccess {
198 | throw NetworkError.failure(
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/EagleNet/NetworkService.swift:197:32: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'isSuccess'
195 | ) throws -> Response {
196 | if let httpURLResponse = response as? HTTPURLResponse,
197 | !httpURLResponse.isSuccess {
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'isSuccess'
198 | throw NetworkError.failure(
199 | message: httpURLResponse.description,
/host/spi-builder-workspace/Sources/EagleNet/NetworkService.swift:199:42: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'description'
197 | !httpURLResponse.isSuccess {
198 | throw NetworkError.failure(
199 | message: httpURLResponse.description,
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'description'
200 | statusCode: httpURLResponse.statusCode,
201 | data: data
/host/spi-builder-workspace/Sources/EagleNet/NetworkService.swift:200:45: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
198 | throw NetworkError.failure(
199 | message: httpURLResponse.description,
200 | statusCode: httpURLResponse.statusCode,
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
201 | data: data
202 | )
[14/27] Compiling EagleNet NetworkService.swift
/host/spi-builder-workspace/Sources/EagleNet/NetworkService.swift:42:21: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
40 | /// - jsonDecoder: Decoder for response deserialization
41 | init(
42 | urlSession: URLSession,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
43 | jsonEncoder: JSONEncoder,
44 | 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:74:29: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
72 |
73 | final class DefaultNetworkService: NetworkService, @unchecked Sendable {
74 | private let urlSession: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
75 | private let jsonEncoder: JSONEncoder
76 | 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:82:21: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
80 |
81 | required init(
82 | urlSession: URLSession = .shared,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
83 | jsonEncoder: JSONEncoder = .init(),
84 | 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:82:35: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
80 |
81 | required init(
82 | urlSession: URLSession = .shared,
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
83 | jsonEncoder: JSONEncoder = .init(),
84 | jsonDecoder: JSONDecoder = .init()
/host/spi-builder-workspace/Sources/EagleNet/NetworkService.swift:142:17: error: cannot find type 'URLRequest' in scope
140 | private func buildRequest(
141 | from request: any NetworkRequestable
142 | ) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
143 | let url = try getRequestURL(request)
144 |
/host/spi-builder-workspace/Sources/EagleNet/NetworkService.swift:194:19: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
192 | private func handleResponse<Response: Decodable>(
193 | data: Data,
194 | response: URLResponse
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
195 | ) throws -> Response {
196 | if let httpURLResponse = response as? HTTPURLResponse,
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/EagleNet/Interceptor/RequestInterceptor.swift:27:54: error: cannot find type 'URLRequest' in scope
25 | /// ```
26 | public protocol RequestInterceptor: Sendable {
27 | func modify(request: URLRequest) async throws -> URLRequest
| `- error: cannot find type 'URLRequest' in scope
28 | }
29 |
/host/spi-builder-workspace/Sources/EagleNet/Interceptor/RequestInterceptor.swift:27:26: error: cannot find type 'URLRequest' in scope
25 | /// ```
26 | public protocol RequestInterceptor: Sendable {
27 | func modify(request: URLRequest) async throws -> URLRequest
| `- error: cannot find type 'URLRequest' in scope
28 | }
29 |
/host/spi-builder-workspace/Sources/EagleNet/NetworkService.swift:98:43: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
96 | }
97 |
98 | let result = try await urlSession.data(for: urlRequest)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
99 |
100 | let (data, urlResponse) = try await responseInterceptors.reduce(result) { result, interceptor in
/host/spi-builder-workspace/Sources/EagleNet/NetworkService.swift:119:43: error: value of type 'URLSession' (aka 'AnyObject') has no member 'upload'
117 | let bodyData = urlRequest.httpBody ?? Data()
118 | urlRequest.httpBody = nil
119 | let result = try await urlSession.upload(
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'upload'
120 | for: urlRequest,
121 | from: bodyData,
/host/spi-builder-workspace/Sources/EagleNet/NetworkService.swift:145:26: error: cannot find 'URLRequest' in scope
143 | let url = try getRequestURL(request)
144 |
145 | var urlRequest = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
146 | urlRequest.httpMethod = request.httpMethod.rawValue
147 |
/host/spi-builder-workspace/Sources/EagleNet/NetworkService.swift:196:43: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
194 | response: URLResponse
195 | ) throws -> Response {
196 | if let httpURLResponse = response as? HTTPURLResponse,
| `- warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
197 | !httpURLResponse.isSuccess {
198 | throw NetworkError.failure(
/host/spi-builder-workspace/Sources/EagleNet/NetworkService.swift:196:47: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
194 | response: URLResponse
195 | ) throws -> Response {
196 | if let httpURLResponse = response as? HTTPURLResponse,
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
197 | !httpURLResponse.isSuccess {
198 | throw NetworkError.failure(
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/EagleNet/NetworkService.swift:197:32: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'isSuccess'
195 | ) throws -> Response {
196 | if let httpURLResponse = response as? HTTPURLResponse,
197 | !httpURLResponse.isSuccess {
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'isSuccess'
198 | throw NetworkError.failure(
199 | message: httpURLResponse.description,
/host/spi-builder-workspace/Sources/EagleNet/NetworkService.swift:199:42: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'description'
197 | !httpURLResponse.isSuccess {
198 | throw NetworkError.failure(
199 | message: httpURLResponse.description,
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'description'
200 | statusCode: httpURLResponse.statusCode,
201 | data: data
/host/spi-builder-workspace/Sources/EagleNet/NetworkService.swift:200:45: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
198 | throw NetworkError.failure(
199 | message: httpURLResponse.description,
200 | statusCode: httpURLResponse.statusCode,
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
201 | data: data
202 | )
[15/27] Compiling EagleNet EagleNet+Interceptor.swift
[16/27] Compiling EagleNet EagleNet+Post.swift
[17/27] Compiling EagleNet EagleNet+Put.swift
[18/27] Compiling EagleNet EagleNet+Upload.swift
/host/spi-builder-workspace/Sources/EagleNet/NetworkService.swift:82:35: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
80 |
81 | required init(
82 | urlSession: URLSession = .shared,
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
83 | jsonEncoder: JSONEncoder = .init(),
84 | jsonDecoder: JSONDecoder = .init()
/host/spi-builder-workspace/Sources/EagleNet/EagleNet.swift:133:21: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
131 | /// ```
132 | public static func defaultService(
133 | urlSession: URLSession = .shared,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
134 | jsonEncoder: JSONEncoder = .init(),
135 | jsonDecoder: JSONDecoder = .init()
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/EagleNet/EagleNet.swift:133:35: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
131 | /// ```
132 | public static func defaultService(
133 | urlSession: URLSession = .shared,
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
134 | jsonEncoder: JSONEncoder = .init(),
135 | jsonDecoder: JSONDecoder = .init()
[19/27] Compiling EagleNet EagleNet.swift
/host/spi-builder-workspace/Sources/EagleNet/NetworkService.swift:82:35: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
80 |
81 | required init(
82 | urlSession: URLSession = .shared,
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
83 | jsonEncoder: JSONEncoder = .init(),
84 | jsonDecoder: JSONDecoder = .init()
/host/spi-builder-workspace/Sources/EagleNet/EagleNet.swift:133:21: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
131 | /// ```
132 | public static func defaultService(
133 | urlSession: URLSession = .shared,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
134 | jsonEncoder: JSONEncoder = .init(),
135 | jsonDecoder: JSONDecoder = .init()
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/EagleNet/EagleNet.swift:133:35: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
131 | /// ```
132 | public static func defaultService(
133 | urlSession: URLSession = .shared,
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
134 | jsonEncoder: JSONEncoder = .init(),
135 | jsonDecoder: JSONDecoder = .init()
[20/27] Compiling EagleNet EagleNetActor.swift
/host/spi-builder-workspace/Sources/EagleNet/NetworkService.swift:82:35: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
80 |
81 | required init(
82 | urlSession: URLSession = .shared,
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
83 | jsonEncoder: JSONEncoder = .init(),
84 | jsonDecoder: JSONDecoder = .init()
/host/spi-builder-workspace/Sources/EagleNet/EagleNet.swift:133:21: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
131 | /// ```
132 | public static func defaultService(
133 | urlSession: URLSession = .shared,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
134 | jsonEncoder: JSONEncoder = .init(),
135 | jsonDecoder: JSONDecoder = .init()
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/EagleNet/EagleNet.swift:133:35: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
131 | /// ```
132 | public static func defaultService(
133 | urlSession: URLSession = .shared,
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
134 | jsonEncoder: JSONEncoder = .init(),
135 | jsonDecoder: JSONDecoder = .init()
[21/27] Compiling EagleNet ArrayExtension.swift
/host/spi-builder-workspace/Sources/EagleNet/Extensions/HTTPURLResponseExtension.swift:13:1: error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended
11 | #endif
12 |
13 | extension HTTPURLResponse {
| `- error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended
14 | /// Convenience property for checking if an `HTTPURLResponse` is successful.
15 | ///
[22/27] Compiling EagleNet DataExtension.swift
/host/spi-builder-workspace/Sources/EagleNet/Extensions/HTTPURLResponseExtension.swift:13:1: error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended
11 | #endif
12 |
13 | extension HTTPURLResponse {
| `- error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended
14 | /// Convenience property for checking if an `HTTPURLResponse` is successful.
15 | ///
[23/27] Compiling EagleNet HTTPURLResponseExtension.swift
/host/spi-builder-workspace/Sources/EagleNet/Extensions/HTTPURLResponseExtension.swift:13:1: error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended
11 | #endif
12 |
13 | extension HTTPURLResponse {
| `- error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended
14 | /// Convenience property for checking if an `HTTPURLResponse` is successful.
15 | ///
[24/27] Compiling EagleNet DataRequest.swift
[25/27] Compiling EagleNet EagleNet+Custom.swift
[26/27] Compiling EagleNet EagleNet+Delete.swift
[27/27] Compiling EagleNet EagleNet+Get.swift
BUILD FAILURE 6.1 wasm