The Swift Package Index logo.Swift Package Index

Build Information

Failed to build EZNetworking, reference main (ecfed1), with Swift 6.3 for Linux on 11 Aug 2026 12:33:05 UTC.

Build Command

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

Build Log

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/EZNetworking/Core/Session/SessionDelegate+Extensions/SessionDelegate+URLSessionTaskDelegate.swift:27:38: error: cannot find type 'URLSessionTaskMetrics' in scope
25 |         _ session: URLSession,
26 |         task: URLSessionTask,
27 |         didFinishCollecting metrics: URLSessionTaskMetrics
   |                                      `- error: cannot find type 'URLSessionTaskMetrics' in scope
28 |     ) {
29 |         metricsInterceptor?.urlSession(session, task: task, didFinishCollecting: metrics)
/host/spi-builder-workspace/Sources/EZNetworking/Core/Session/SessionDelegate+Extensions/SessionDelegate+URLSessionTaskDelegate.swift:25:20: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
23 |     // Metrics Interception
24 |     public func urlSession(
25 |         _ session: URLSession,
   |                    `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
26 |         task: URLSessionTask,
27 |         didFinishCollecting metrics: URLSessionTaskMetrics
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/EZNetworking/Core/Session/SessionDelegate+Extensions/SessionDelegate+URLSessionTaskDelegate.swift:26:15: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
24 |     public func urlSession(
25 |         _ session: URLSession,
26 |         task: URLSessionTask,
   |               `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
27 |         didFinishCollecting metrics: URLSessionTaskMetrics
28 |     ) {
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
/host/spi-builder-workspace/Sources/EZNetworking/Core/Session/SessionDelegate+Extensions/SessionDelegate+URLSessionTaskDelegate.swift:34:20: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
32 |     // Task Lifecycle Interception
33 |     public func urlSession(
34 |         _ session: URLSession,
   |                    `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
35 |         task: URLSessionTask,
36 |         didCompleteWithError error: Error?
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/EZNetworking/Core/Session/SessionDelegate+Extensions/SessionDelegate+URLSessionTaskDelegate.swift:35:15: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
33 |     public func urlSession(
34 |         _ session: URLSession,
35 |         task: URLSessionTask,
   |               `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
36 |         didCompleteWithError error: Error?
37 |     ) {
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
/host/spi-builder-workspace/Sources/EZNetworking/Core/Session/SessionDelegate+Extensions/SessionDelegate+URLSessionTaskDelegate.swift:55:20: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
53 |
54 |     public func urlSession(
55 |         _ session: URLSession,
   |                    `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
56 |         taskIsWaitingForConnectivity task: URLSessionTask
57 |     ) {
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/EZNetworking/Core/Session/SessionDelegate+Extensions/SessionDelegate+URLSessionTaskDelegate.swift:56:44: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
54 |     public func urlSession(
55 |         _ session: URLSession,
56 |         taskIsWaitingForConnectivity task: URLSessionTask
   |                                            `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
57 |     ) {
58 |         taskLifecycleInterceptor?.urlSession(session, taskIsWaitingForConnectivity: task)
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
/host/spi-builder-workspace/Sources/EZNetworking/Core/Session/SessionDelegate+Extensions/SessionDelegate+URLSessionTaskDelegate.swift:62:20: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
60 |
61 |     public func urlSession(
62 |         _ session: URLSession,
   |                    `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
63 |         task: URLSessionTask,
64 |         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/EZNetworking/Core/Session/SessionDelegate+Extensions/SessionDelegate+URLSessionTaskDelegate.swift:63:15: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
61 |     public func urlSession(
62 |         _ session: URLSession,
63 |         task: URLSessionTask,
   |               `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
64 |         didSendBodyData bytesSent: Int64,
65 |         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
/host/spi-builder-workspace/Sources/EZNetworking/Core/Session/SessionDelegate+Extensions/SessionDelegate+URLSessionTaskDelegate.swift:10:102: error: cannot infer contextual base in reference to member 'performDefaultHandling'
 8 |         didReceive challenge: URLAuthenticationChallenge
 9 |     ) async -> (URLSession.AuthChallengeDisposition, URLCredential?) {
10 |         await authenticationInterceptor?.urlSession(session, task: task, didReceive: challenge) ?? (.performDefaultHandling, nil)
   |                                                                                                      `- error: cannot infer contextual base in reference to member 'performDefaultHandling'
11 |     }
12 |
/host/spi-builder-workspace/Sources/EZNetworking/Core/Session/SessionDelegate+Extensions/SessionDelegate+URLSessionTaskDelegate.swift:10:126: error: 'nil' requires a contextual type
 8 |         didReceive challenge: URLAuthenticationChallenge
 9 |     ) async -> (URLSession.AuthChallengeDisposition, URLCredential?) {
10 |         await authenticationInterceptor?.urlSession(session, task: task, didReceive: challenge) ?? (.performDefaultHandling, nil)
   |                                                                                                                              `- error: 'nil' requires a contextual type
11 |     }
12 |
/host/spi-builder-workspace/Sources/EZNetworking/Core/Session/Interceptors/Protocols/RedirectInterceptor.swift:6:161: error: cannot find type 'URLRequest' in scope
4 | public protocol RedirectInterceptor: AnyObject {
5 |     /// Intercepts URL redirection before the request is performed.
6 |     func urlSession(_ session: URLSession, task: URLSessionTask, willPerformHTTPRedirection response: HTTPURLResponse, newRequest request: URLRequest) async -> URLRequest?
  |                                                                                                                                                                 `- error: cannot find type 'URLRequest' in scope
7 | }
8 |
/host/spi-builder-workspace/Sources/EZNetworking/Core/Session/Interceptors/Protocols/RedirectInterceptor.swift:6:140: error: cannot find type 'URLRequest' in scope
4 | public protocol RedirectInterceptor: AnyObject {
5 |     /// Intercepts URL redirection before the request is performed.
6 |     func urlSession(_ session: URLSession, task: URLSessionTask, willPerformHTTPRedirection response: HTTPURLResponse, newRequest request: URLRequest) async -> URLRequest?
  |                                                                                                                                            `- error: cannot find type 'URLRequest' in scope
7 | }
8 |
/host/spi-builder-workspace/Sources/EZNetworking/Core/Session/Interceptors/Protocols/MetricsInterceptor.swift:6:95: error: cannot find type 'URLSessionTaskMetrics' in scope
4 | public protocol MetricsInterceptor: AnyObject {
5 |     /// Intercepts metrics after task completion.
6 |     func urlSession(_ session: URLSession, task: URLSessionTask, didFinishCollecting metrics: URLSessionTaskMetrics)
  |                                                                                               `- error: cannot find type 'URLSessionTaskMetrics' in scope
7 | }
8 |
/host/spi-builder-workspace/Sources/EZNetworking/Core/Session/SessionDelegate+Extensions/SessionDelegate+URLSessionTaskDelegate.swift:41:14: warning: 'is' test is always true
39 |
40 |         switch task {
41 |         case is URLSessionUploadTask:
   |              `- warning: 'is' test is always true
42 |             uploadTaskInterceptor?.urlSession(session, task: task, didCompleteWithError: error)
43 |         case is URLSessionDownloadTask:
/host/spi-builder-workspace/Sources/EZNetworking/Core/Session/SessionDelegate+Extensions/SessionDelegate+URLSessionTaskDelegate.swift:43:14: warning: 'is' test is always true
41 |         case is URLSessionUploadTask:
42 |             uploadTaskInterceptor?.urlSession(session, task: task, didCompleteWithError: error)
43 |         case is URLSessionDownloadTask:
   |              `- warning: 'is' test is always true
44 |             guard let error else { return }
45 |             downloadTaskInterceptor?.urlSession(session, task: task, didCompleteWithError: error)
/host/spi-builder-workspace/Sources/EZNetworking/Core/Session/SessionDelegate+Extensions/SessionDelegate+URLSessionTaskDelegate.swift:46:17: error: cannot find type 'URLSessionWebSocketTask' in scope
44 |             guard let error else { return }
45 |             downloadTaskInterceptor?.urlSession(session, task: task, didCompleteWithError: error)
46 |         case is URLSessionWebSocketTask:
   |                 `- error: cannot find type 'URLSessionWebSocketTask' in scope
47 |             guard let error else { return }
48 |             webSocketTaskInterceptor?.urlSession(session, task: task, didCompleteWithError: error)
/host/spi-builder-workspace/Sources/EZNetworking/Core/Session/SessionDelegate+Extensions/SessionDelegate+URLSessionTaskDelegate.swift:41:17: error: 'URLSessionUploadTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
39 |
40 |         switch task {
41 |         case is URLSessionUploadTask:
   |                 `- error: 'URLSessionUploadTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
42 |             uploadTaskInterceptor?.urlSession(session, task: task, didCompleteWithError: error)
43 |         case is URLSessionDownloadTask:
Foundation.URLSessionUploadTask:2:18: note: 'URLSessionUploadTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionUploadTask = AnyObject
  |                  `- note: 'URLSessionUploadTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/EZNetworking/Core/Session/SessionDelegate+Extensions/SessionDelegate+URLSessionTaskDelegate.swift:41:17: error: 'URLSessionUploadTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
39 |
40 |         switch task {
41 |         case is URLSessionUploadTask:
   |                 `- error: 'URLSessionUploadTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
42 |             uploadTaskInterceptor?.urlSession(session, task: task, didCompleteWithError: error)
43 |         case is URLSessionDownloadTask:
Foundation.URLSessionUploadTask:2:18: note: 'URLSessionUploadTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionUploadTask = AnyObject
  |                  `- note: 'URLSessionUploadTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/EZNetworking/Core/Session/SessionDelegate+Extensions/SessionDelegate+URLSessionTaskDelegate.swift:43:17: error: 'URLSessionDownloadTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
41 |         case is URLSessionUploadTask:
42 |             uploadTaskInterceptor?.urlSession(session, task: task, didCompleteWithError: error)
43 |         case is URLSessionDownloadTask:
   |                 `- error: 'URLSessionDownloadTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
44 |             guard let error else { return }
45 |             downloadTaskInterceptor?.urlSession(session, task: task, didCompleteWithError: error)
Foundation.URLSessionDownloadTask:2:18: note: 'URLSessionDownloadTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionDownloadTask = AnyObject
  |                  `- note: 'URLSessionDownloadTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/EZNetworking/Core/Session/SessionDelegate+Extensions/SessionDelegate+URLSessionTaskDelegate.swift:43:17: error: 'URLSessionDownloadTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
41 |         case is URLSessionUploadTask:
42 |             uploadTaskInterceptor?.urlSession(session, task: task, didCompleteWithError: error)
43 |         case is URLSessionDownloadTask:
   |                 `- error: 'URLSessionDownloadTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
44 |             guard let error else { return }
45 |             downloadTaskInterceptor?.urlSession(session, task: task, didCompleteWithError: error)
Foundation.URLSessionDownloadTask:2:18: note: 'URLSessionDownloadTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionDownloadTask = AnyObject
  |                  `- note: 'URLSessionDownloadTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/EZNetworking/Core/Session/Interceptors/Protocols/WebSocketTaskInterceptor.swift:8:59: error: cannot find type 'URLSessionWebSocketTask' in scope
 6 |
 7 |     /// Intercepts when a WebSocket task opens with a protocol.
 8 |     func urlSession(_ session: URLSession, webSocketTask: URLSessionWebSocketTask, didOpenWithProtocol protocol: String?)
   |                                                           `- error: cannot find type 'URLSessionWebSocketTask' in scope
 9 |
10 |     /// Intercepts when a WebSocket task closes with a code and reason.
/host/spi-builder-workspace/Sources/EZNetworking/Core/Session/Interceptors/Protocols/WebSocketTaskInterceptor.swift:11:59: error: cannot find type 'URLSessionWebSocketTask' in scope
 9 |
10 |     /// Intercepts when a WebSocket task closes with a code and reason.
11 |     func urlSession(_ session: URLSession, webSocketTask: URLSessionWebSocketTask, didCloseWith closeCode: URLSessionWebSocketTask.CloseCode, reason: Data?)
   |                                                           `- error: cannot find type 'URLSessionWebSocketTask' in scope
12 |
13 |     /// Intercepts when a task completes with  an error.
/host/spi-builder-workspace/Sources/EZNetworking/Core/Session/Interceptors/Protocols/WebSocketTaskInterceptor.swift:11:108: error: cannot find type 'URLSessionWebSocketTask' in scope
 9 |
10 |     /// Intercepts when a WebSocket task closes with a code and reason.
11 |     func urlSession(_ session: URLSession, webSocketTask: URLSessionWebSocketTask, didCloseWith closeCode: URLSessionWebSocketTask.CloseCode, reason: Data?)
   |                                                                                                            `- error: cannot find type 'URLSessionWebSocketTask' in scope
12 |
13 |     /// Intercepts when a task completes with  an error.
/host/spi-builder-workspace/Sources/EZNetworking/Core/Session/SessionDelegate+Extensions/SessionDelegate+URLSessionWebSocketDelegate.swift:3:28: error: cannot find type 'URLSessionWebSocketDelegate' in scope
 1 | import Foundation
 2 |
 3 | extension SessionDelegate: URLSessionWebSocketDelegate {
   |                            `- error: cannot find type 'URLSessionWebSocketDelegate' in scope
 4 |     public func urlSession(
 5 |         _ session: URLSession,
/host/spi-builder-workspace/Sources/EZNetworking/Core/Session/SessionDelegate+Extensions/SessionDelegate+URLSessionWebSocketDelegate.swift:6:24: error: cannot find type 'URLSessionWebSocketTask' in scope
 4 |     public func urlSession(
 5 |         _ session: URLSession,
 6 |         webSocketTask: URLSessionWebSocketTask,
   |                        `- error: cannot find type 'URLSessionWebSocketTask' in scope
 7 |         didOpenWithProtocol protocol: String?
 8 |     ) {
/host/spi-builder-workspace/Sources/EZNetworking/Core/Session/SessionDelegate+Extensions/SessionDelegate+URLSessionWebSocketDelegate.swift:5:20: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 3 | extension SessionDelegate: URLSessionWebSocketDelegate {
 4 |     public func urlSession(
 5 |         _ session: URLSession,
   |                    `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 6 |         webSocketTask: URLSessionWebSocketTask,
 7 |         didOpenWithProtocol protocol: String?
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/EZNetworking/Core/Session/SessionDelegate+Extensions/SessionDelegate+URLSessionWebSocketDelegate.swift:14:24: error: cannot find type 'URLSessionWebSocketTask' in scope
12 |     public func urlSession(
13 |         _ session: URLSession,
14 |         webSocketTask: URLSessionWebSocketTask,
   |                        `- error: cannot find type 'URLSessionWebSocketTask' in scope
15 |         didCloseWith closeCode: URLSessionWebSocketTask.CloseCode,
16 |         reason: Data?
/host/spi-builder-workspace/Sources/EZNetworking/Core/Session/SessionDelegate+Extensions/SessionDelegate+URLSessionWebSocketDelegate.swift:15:33: error: cannot find type 'URLSessionWebSocketTask' in scope
13 |         _ session: URLSession,
14 |         webSocketTask: URLSessionWebSocketTask,
15 |         didCloseWith closeCode: URLSessionWebSocketTask.CloseCode,
   |                                 `- error: cannot find type 'URLSessionWebSocketTask' in scope
16 |         reason: Data?
17 |     ) {
/host/spi-builder-workspace/Sources/EZNetworking/Core/Session/SessionDelegate+Extensions/SessionDelegate+URLSessionWebSocketDelegate.swift:13:20: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
11 |
12 |     public func urlSession(
13 |         _ session: URLSession,
   |                    `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
14 |         webSocketTask: URLSessionWebSocketTask,
15 |         didCloseWith closeCode: URLSessionWebSocketTask.CloseCode,
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/EZNetworking/Core/Session/SessionDelegate+Extensions/SessionDelegate+URLSessionWebSocketDelegate.swift:9:45: error: incorrect argument labels in call (have '_:webSocketTask:didOpenWithProtocol:', expected '_:task:didCompleteWithError:')
 7 |         didOpenWithProtocol protocol: String?
 8 |     ) {
 9 |         webSocketTaskInterceptor?.urlSession(session, webSocketTask: webSocketTask, didOpenWithProtocol: `protocol`)
   |                                             `- error: incorrect argument labels in call (have '_:webSocketTask:didOpenWithProtocol:', expected '_:task:didCompleteWithError:')
10 |     }
11 |
/host/spi-builder-workspace/Sources/EZNetworking/Core/Session/SessionDelegate+Extensions/SessionDelegate+URLSessionWebSocketDelegate.swift:9:106: error: argument type 'String?' does not conform to expected type 'Error'
 7 |         didOpenWithProtocol protocol: String?
 8 |     ) {
 9 |         webSocketTaskInterceptor?.urlSession(session, webSocketTask: webSocketTask, didOpenWithProtocol: `protocol`)
   |                                                                                                          `- error: argument type 'String?' does not conform to expected type 'Error'
10 |     }
11 |
/host/spi-builder-workspace/Sources/EZNetworking/Core/Session/SessionDelegate+Extensions/SessionDelegate+URLSessionWebSocketDelegate.swift:18:45: error: extra arguments at positions #2, #3, #4 in call
16 |         reason: Data?
17 |     ) {
18 |         webSocketTaskInterceptor?.urlSession(session, webSocketTask: webSocketTask, didCloseWith: closeCode, reason: reason)
   |                                             `- error: extra arguments at positions #2, #3, #4 in call
19 |     }
20 | }
/host/spi-builder-workspace/Sources/EZNetworking/Core/Session/Interceptors/Protocols/WebSocketTaskInterceptor.swift:14:10: note: 'urlSession(_:task:didCompleteWithError:)' declared here
12 |
13 |     /// Intercepts when a task completes with  an error.
14 |     func urlSession(_ session: URLSession, task: URLSessionTask, didCompleteWithError error: Error)
   |          `- note: 'urlSession(_:task:didCompleteWithError:)' declared here
15 | }
16 |
/host/spi-builder-workspace/Sources/EZNetworking/Core/Session/SessionDelegate+Extensions/SessionDelegate+URLSessionWebSocketDelegate.swift:18:45: error: missing arguments for parameters 'task', 'didCompleteWithError' in call
16 |         reason: Data?
17 |     ) {
18 |         webSocketTaskInterceptor?.urlSession(session, webSocketTask: webSocketTask, didCloseWith: closeCode, reason: reason)
   |                                             `- error: missing arguments for parameters 'task', 'didCompleteWithError' in call
19 |     }
20 | }
/host/spi-builder-workspace/Sources/EZNetworking/Core/Session/Interceptors/Protocols/WebSocketTaskInterceptor.swift:14:10: note: 'urlSession(_:task:didCompleteWithError:)' declared here
12 |
13 |     /// Intercepts when a task completes with  an error.
14 |     func urlSession(_ session: URLSession, task: URLSessionTask, didCompleteWithError error: Error)
   |          `- note: 'urlSession(_:task:didCompleteWithError:)' declared here
15 | }
16 |
/host/spi-builder-workspace/Sources/EZNetworking/Core/Session/Interceptors/Protocols/DataTaskInterceptor.swift:15:128: error: 'ResponseDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
13 |
14 |     /// Intercepts the response for a data task before it is processed.
15 |     func urlSession(_ session: URLSession, dataTask: URLSessionDataTask, didReceive response: URLResponse) async -> URLSession.ResponseDisposition
   |                                                                                                                                `- error: 'ResponseDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
16 | }
17 |
/host/spi-builder-workspace/Sources/EZNetworking/Core/Session/URLSessionProtocols/URLSessionDownloadTaskProtocol.swift:9:1: error: non-nominal type 'URLSessionDownloadTask' (aka 'AnyObject') cannot be extended [#NominalTypes]
 7 | }
 8 |
 9 | extension URLSessionDownloadTask: URLSessionDownloadTaskProtocol {}
   | `- error: non-nominal type 'URLSessionDownloadTask' (aka 'AnyObject') cannot be extended [#NominalTypes]
10 |
/host/spi-builder-workspace/Sources/EZNetworking/Core/Session/URLSessionProtocols/URLSessionProtocol.swift:4:28: error: cannot find type 'URLRequest' in scope
 2 |
 3 | public protocol URLSessionProtocol {
 4 |     func data(for request: URLRequest) async throws -> (Data, URLResponse)
   |                            `- error: cannot find type 'URLRequest' in scope
 5 |
 6 |     func webSocketTaskInspectable(with request: URLRequest) -> URLSessionWebSocketTaskProtocol
/host/spi-builder-workspace/Sources/EZNetworking/Core/Session/URLSessionProtocols/URLSessionProtocol.swift:4:63: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 2 |
 3 | public protocol URLSessionProtocol {
 4 |     func data(for request: URLRequest) async throws -> (Data, URLResponse)
   |                                                               `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 5 |
 6 |     func webSocketTaskInspectable(with request: URLRequest) -> URLSessionWebSocketTaskProtocol
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/EZNetworking/Core/Session/URLSessionProtocols/URLSessionProtocol.swift:6:49: error: cannot find type 'URLRequest' in scope
 4 |     func data(for request: URLRequest) async throws -> (Data, URLResponse)
 5 |
 6 |     func webSocketTaskInspectable(with request: URLRequest) -> URLSessionWebSocketTaskProtocol
   |                                                 `- error: cannot find type 'URLRequest' in scope
 7 |
 8 |     func bytes(for request: URLRequest) async throws -> (AsyncThrowingStream<UInt8, Error>, URLResponse)
/host/spi-builder-workspace/Sources/EZNetworking/Core/Session/URLSessionProtocols/URLSessionProtocol.swift:8:29: error: cannot find type 'URLRequest' in scope
 6 |     func webSocketTaskInspectable(with request: URLRequest) -> URLSessionWebSocketTaskProtocol
 7 |
 8 |     func bytes(for request: URLRequest) async throws -> (AsyncThrowingStream<UInt8, Error>, URLResponse)
   |                             `- error: cannot find type 'URLRequest' in scope
 9 |
10 |     func downloadTaskInspectable(with request: URLRequest) -> URLSessionDownloadTaskProtocol
/host/spi-builder-workspace/Sources/EZNetworking/Core/Session/URLSessionProtocols/URLSessionProtocol.swift:8:93: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 6 |     func webSocketTaskInspectable(with request: URLRequest) -> URLSessionWebSocketTaskProtocol
 7 |
 8 |     func bytes(for request: URLRequest) async throws -> (AsyncThrowingStream<UInt8, Error>, URLResponse)
   |                                                                                             `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 9 |
10 |     func downloadTaskInspectable(with request: URLRequest) -> URLSessionDownloadTaskProtocol
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/EZNetworking/Core/Session/URLSessionProtocols/URLSessionProtocol.swift:10:48: error: cannot find type 'URLRequest' in scope
 8 |     func bytes(for request: URLRequest) async throws -> (AsyncThrowingStream<UInt8, Error>, URLResponse)
 9 |
10 |     func downloadTaskInspectable(with request: URLRequest) -> URLSessionDownloadTaskProtocol
   |                                                `- error: cannot find type 'URLRequest' in scope
11 |     func downloadTaskInspectable(withResumeData resumeData: Data) -> URLSessionDownloadTaskProtocol
12 |
/host/spi-builder-workspace/Sources/EZNetworking/Core/Session/URLSessionProtocols/URLSessionProtocol.swift:13:46: error: cannot find type 'URLRequest' in scope
11 |     func downloadTaskInspectable(withResumeData resumeData: Data) -> URLSessionDownloadTaskProtocol
12 |
13 |     func uploadTaskInspectable(with request: URLRequest, fromFile fileURL: URL) -> URLSessionUploadTaskProtocol
   |                                              `- error: cannot find type 'URLRequest' in scope
14 |     func uploadTaskInspectable(withResumeData resumeData: Data) -> URLSessionUploadTaskProtocol
15 | }
/host/spi-builder-workspace/Sources/EZNetworking/Core/Session/URLSessionProtocols/URLSessionProtocol.swift:17:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
15 | }
16 |
17 | extension URLSession: URLSessionProtocol {
   | `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
18 |     public func downloadTaskInspectable(with request: URLRequest) -> URLSessionDownloadTaskProtocol {
19 |         let task: URLSessionDownloadTask = downloadTask(with: request)
/host/spi-builder-workspace/Sources/EZNetworking/Core/Session/URLSessionProtocols/URLSessionUploadTaskProtocol.swift:9:1: error: non-nominal type 'URLSessionUploadTask' (aka 'AnyObject') cannot be extended [#NominalTypes]
 7 | }
 8 |
 9 | extension URLSessionUploadTask: URLSessionUploadTaskProtocol {}
   | `- error: non-nominal type 'URLSessionUploadTask' (aka 'AnyObject') cannot be extended [#NominalTypes]
10 |
/host/spi-builder-workspace/Sources/EZNetworking/Core/Session/URLSessionProtocols/URLSessionWebSocketTaskProtocol.swift:6:33: error: cannot find type 'URLSessionWebSocketTask' in scope
 4 | public protocol URLSessionWebSocketTaskProtocol {
 5 |     func resume()
 6 |     func cancel(with closeCode: URLSessionWebSocketTask.CloseCode, reason: Data?)
   |                                 `- error: cannot find type 'URLSessionWebSocketTask' in scope
 7 |
 8 |     func sendPing() async throws
/host/spi-builder-workspace/Sources/EZNetworking/Core/Session/URLSessionProtocols/URLSessionWebSocketTaskProtocol.swift:11:26: error: cannot find type 'URLSessionWebSocketTask' in scope
 9 |     func sendPing(pongReceiveHandler: @escaping @Sendable ((any Error)?) -> Void)
10 |
11 |     func send(_ message: URLSessionWebSocketTask.Message) async throws
   |                          `- error: cannot find type 'URLSessionWebSocketTask' in scope
12 |     func send(_ message: URLSessionWebSocketTask.Message, completionHandler: @escaping @Sendable (Error?) -> Void)
13 |
/host/spi-builder-workspace/Sources/EZNetworking/Core/Session/URLSessionProtocols/URLSessionWebSocketTaskProtocol.swift:12:26: error: cannot find type 'URLSessionWebSocketTask' in scope
10 |
11 |     func send(_ message: URLSessionWebSocketTask.Message) async throws
12 |     func send(_ message: URLSessionWebSocketTask.Message, completionHandler: @escaping @Sendable (Error?) -> Void)
   |                          `- error: cannot find type 'URLSessionWebSocketTask' in scope
13 |
14 |     func receive() async throws -> URLSessionWebSocketTask.Message
/host/spi-builder-workspace/Sources/EZNetworking/Core/Session/URLSessionProtocols/URLSessionWebSocketTaskProtocol.swift:14:36: error: cannot find type 'URLSessionWebSocketTask' in scope
12 |     func send(_ message: URLSessionWebSocketTask.Message, completionHandler: @escaping @Sendable (Error?) -> Void)
13 |
14 |     func receive() async throws -> URLSessionWebSocketTask.Message
   |                                    `- error: cannot find type 'URLSessionWebSocketTask' in scope
15 |     func receive(completionHandler: @escaping @Sendable (Result<URLSessionWebSocketTask.Message, Error>) -> Void)
16 |
/host/spi-builder-workspace/Sources/EZNetworking/Core/Session/URLSessionProtocols/URLSessionWebSocketTaskProtocol.swift:15:65: error: cannot find type 'URLSessionWebSocketTask' in scope
13 |
14 |     func receive() async throws -> URLSessionWebSocketTask.Message
15 |     func receive(completionHandler: @escaping @Sendable (Result<URLSessionWebSocketTask.Message, Error>) -> Void)
   |                                                                 `- error: cannot find type 'URLSessionWebSocketTask' in scope
16 |
17 |     var closeCode: URLSessionWebSocketTask.CloseCode { get }
/host/spi-builder-workspace/Sources/EZNetworking/Core/Session/URLSessionProtocols/URLSessionWebSocketTaskProtocol.swift:17:20: error: cannot find type 'URLSessionWebSocketTask' in scope
15 |     func receive(completionHandler: @escaping @Sendable (Result<URLSessionWebSocketTask.Message, Error>) -> Void)
16 |
17 |     var closeCode: URLSessionWebSocketTask.CloseCode { get }
   |                    `- error: cannot find type 'URLSessionWebSocketTask' in scope
18 |     var closeReason: Data? { get }
19 | }
/host/spi-builder-workspace/Sources/EZNetworking/Core/Session/URLSessionProtocols/URLSessionWebSocketTaskProtocol.swift:35:11: error: cannot find type 'URLSessionWebSocketTask' in scope
33 | }
34 |
35 | extension URLSessionWebSocketTask: URLSessionWebSocketTaskProtocol {}
   |           `- error: cannot find type 'URLSessionWebSocketTask' in scope
36 |
/host/spi-builder-workspace/Sources/EZNetworking/Core/Validator/ResponseValidator.swift:4:43: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 2 |
 3 | public protocol ResponseValidator {
 4 |     func validateStatus(from urlResponse: URLResponse?) throws
   |                                           `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 5 | }
 6 |
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/EZNetworking/Core/Validator/ResponseValidator.swift:14:50: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
12 |     }
13 |
14 |     public func validateStatus(from urlResponse: URLResponse?) throws {
   |                                                  `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
15 |         guard let urlResponse else {
16 |             throw NetworkingError.responseValidationFailed(reason: .noURLResponse)
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/EZNetworking/Core/Validator/ResponseValidator.swift:32:45: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
30 |     }
31 |
32 |     private func convert(_ httpURLResponse: HTTPURLResponse) -> HTTPResponse {
   |                                             `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
33 |         // Convert headers from [AnyHashable: Any] to [String: String]
34 |         let headers = httpURLResponse.allHeaderFields.reduce(into: [String: String]()) { result, pair in
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/EZNetworking/Core/Validator/ResponseValidator.swift:18:49: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
16 |             throw NetworkingError.responseValidationFailed(reason: .noURLResponse)
17 |         }
18 |         guard let httpURLResponse = urlResponse as? HTTPURLResponse else {
   |                                                 `- warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
19 |             throw NetworkingError.responseValidationFailed(reason: .noHTTPURLResponse)
20 |         }
/host/spi-builder-workspace/Sources/EZNetworking/Core/Validator/ResponseValidator.swift:18:53: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
16 |             throw NetworkingError.responseValidationFailed(reason: .noURLResponse)
17 |         }
18 |         guard let httpURLResponse = urlResponse as? HTTPURLResponse else {
   |                                                     `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
19 |             throw NetworkingError.responseValidationFailed(reason: .noHTTPURLResponse)
20 |         }
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/EZNetworking/Core/Validator/ResponseValidator.swift:34:39: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
32 |     private func convert(_ httpURLResponse: HTTPURLResponse) -> HTTPResponse {
33 |         // Convert headers from [AnyHashable: Any] to [String: String]
34 |         let headers = httpURLResponse.allHeaderFields.reduce(into: [String: String]()) { result, pair in
   |                                       `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
35 |             if let key = pair.key as? String, let value = pair.value as? String {
36 |                 result[key] = value
/host/spi-builder-workspace/Sources/EZNetworking/Core/Validator/ResponseValidator.swift:39:57: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
37 |             }
38 |         }
39 |         return HTTPResponse(statusCode: httpURLResponse.statusCode, headers: headers)
   |                                                         `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
40 |     }
41 |
/host/spi-builder-workspace/Sources/EZNetworking/Core/Session/URLSessionProtocols/URLSessionProtocol.swift:18:55: error: cannot find type 'URLRequest' in scope
16 |
17 | extension URLSession: URLSessionProtocol {
18 |     public func downloadTaskInspectable(with request: URLRequest) -> URLSessionDownloadTaskProtocol {
   |                                                       `- error: cannot find type 'URLRequest' in scope
19 |         let task: URLSessionDownloadTask = downloadTask(with: request)
20 |         return task as URLSessionDownloadTaskProtocol
/host/spi-builder-workspace/Sources/EZNetworking/Core/Session/URLSessionProtocols/URLSessionProtocol.swift:28:53: error: cannot find type 'URLRequest' in scope
26 |     }
27 |
28 |     public func uploadTaskInspectable(with request: URLRequest, fromFile fileURL: URL) -> URLSessionUploadTaskProtocol {
   |                                                     `- error: cannot find type 'URLRequest' in scope
29 |         let task: URLSessionUploadTask = uploadTask(with: request, fromFile: fileURL)
30 |         return task as URLSessionUploadTaskProtocol
/host/spi-builder-workspace/Sources/EZNetworking/Core/Session/URLSessionProtocols/URLSessionProtocol.swift:38:56: error: cannot find type 'URLRequest' in scope
36 |     }
37 |
38 |     public func webSocketTaskInspectable(with request: URLRequest) -> URLSessionWebSocketTaskProtocol {
   |                                                        `- error: cannot find type 'URLRequest' in scope
39 |         let task: URLSessionWebSocketTask = webSocketTask(with: request)
40 |         return task as URLSessionWebSocketTaskProtocol
/host/spi-builder-workspace/Sources/EZNetworking/Core/Session/URLSessionProtocols/URLSessionProtocol.swift:54:36: error: cannot find type 'URLRequest' in scope
52 |     ///
53 |     /// - Note: Cancelling the stream propagates cancellation to the underlying `URLSessionTask`.
54 |     public func bytes(for request: URLRequest) async throws -> (AsyncThrowingStream<UInt8, Error>, URLResponse) {
   |                                    `- error: cannot find type 'URLRequest' in scope
55 |         let (bytes, response) = try await self.bytes(for: request, delegate: nil)
56 |
[#NominalTypes]: <https://docs.swift.org/compiler/documentation/diagnostics/nominal-types>
[88/89] Compiling EZNetworking URLSessionWebSocketTaskProtocol.swift
/host/spi-builder-workspace/Sources/EZNetworking/Core/Session/SessionDelegate+Extensions/SessionDelegate+URLSessionDelegate.swift:3:28: error: cannot find type 'URLSessionDelegate' in scope
 1 | import Foundation
 2 |
 3 | extension SessionDelegate: URLSessionDelegate {
   |                            `- error: cannot find type 'URLSessionDelegate' in scope
 4 |     public func urlSession(
 5 |         _ session: URLSession,
/host/spi-builder-workspace/Sources/EZNetworking/Core/Session/SessionDelegate+Extensions/SessionDelegate+URLSessionDelegate.swift:7:28: error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
 5 |         _ session: URLSession,
 6 |         didReceive challenge: URLAuthenticationChallenge
 7 |     ) async -> (URLSession.AuthChallengeDisposition, URLCredential?) {
   |                            `- error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
 8 |         await authenticationInterceptor?.urlSession(session, didReceive: challenge) ?? (.performDefaultHandling, nil)
 9 |     }
/host/spi-builder-workspace/Sources/EZNetworking/Core/Session/SessionDelegate+Extensions/SessionDelegate+URLSessionDelegate.swift:5:20: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 3 | extension SessionDelegate: URLSessionDelegate {
 4 |     public func urlSession(
 5 |         _ session: URLSession,
   |                    `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 6 |         didReceive challenge: URLAuthenticationChallenge
 7 |     ) async -> (URLSession.AuthChallengeDisposition, URLCredential?) {
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/EZNetworking/Core/Session/SessionDelegate+Extensions/SessionDelegate+URLSessionDelegate.swift:6:31: error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 4 |     public func urlSession(
 5 |         _ session: URLSession,
 6 |         didReceive challenge: URLAuthenticationChallenge
   |                               `- error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 7 |     ) async -> (URLSession.AuthChallengeDisposition, URLCredential?) {
 8 |         await authenticationInterceptor?.urlSession(session, didReceive: challenge) ?? (.performDefaultHandling, nil)
Foundation.URLAuthenticationChallenge:2:18: note: 'URLAuthenticationChallenge' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLAuthenticationChallenge = AnyObject
  |                  `- note: 'URLAuthenticationChallenge' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/EZNetworking/Core/Session/SessionDelegate+Extensions/SessionDelegate+URLSessionDelegate.swift:11:39: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 9 |     }
10 |
11 |     public func urlSession(_ session: URLSession, didCreateTask task: URLSessionTask) {
   |                                       `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
12 |         taskLifecycleInterceptor?.urlSession(session, didCreateTask: task)
13 |     }
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/EZNetworking/Core/Session/SessionDelegate+Extensions/SessionDelegate+URLSessionDelegate.swift:11:71: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 9 |     }
10 |
11 |     public func urlSession(_ session: URLSession, didCreateTask task: URLSessionTask) {
   |                                                                       `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
12 |         taskLifecycleInterceptor?.urlSession(session, didCreateTask: task)
13 |     }
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
/host/spi-builder-workspace/Sources/EZNetworking/Core/Session/Interceptors/Protocols/AuthenticationInterceptor.swift:6:137: error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
 4 | public protocol AuthenticationInterceptor: AnyObject {
 5 |     /// Intercepts authentication challenges for a specific URLSession task.
 6 |     func urlSession(_ session: URLSession, task: URLSessionTask, didReceive challenge: URLAuthenticationChallenge) async -> (URLSession.AuthChallengeDisposition, URLCredential?)
   |                                                                                                                                         `- error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
 7 |
 8 |     /// Intercepts authentication challenges for the entire URLSession.
/host/spi-builder-workspace/Sources/EZNetworking/Core/Session/Interceptors/Protocols/AuthenticationInterceptor.swift:9:115: error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
 7 |
 8 |     /// Intercepts authentication challenges for the entire URLSession.
 9 |     func urlSession(_ session: URLSession, didReceive challenge: URLAuthenticationChallenge) async -> (URLSession.AuthChallengeDisposition, URLCredential?)
   |                                                                                                                   `- error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
10 | }
11 |
/host/spi-builder-workspace/Sources/EZNetworking/Core/Session/SessionDelegate+Extensions/SessionDelegate+URLSessionDelegate.swift:8:90: error: cannot infer contextual base in reference to member 'performDefaultHandling'
 6 |         didReceive challenge: URLAuthenticationChallenge
 7 |     ) async -> (URLSession.AuthChallengeDisposition, URLCredential?) {
 8 |         await authenticationInterceptor?.urlSession(session, didReceive: challenge) ?? (.performDefaultHandling, nil)
   |                                                                                          `- error: cannot infer contextual base in reference to member 'performDefaultHandling'
 9 |     }
10 |
/host/spi-builder-workspace/Sources/EZNetworking/Core/Session/SessionDelegate+Extensions/SessionDelegate+URLSessionDelegate.swift:8:114: error: 'nil' requires a contextual type
 6 |         didReceive challenge: URLAuthenticationChallenge
 7 |     ) async -> (URLSession.AuthChallengeDisposition, URLCredential?) {
 8 |         await authenticationInterceptor?.urlSession(session, didReceive: challenge) ?? (.performDefaultHandling, nil)
   |                                                                                                                  `- error: 'nil' requires a contextual type
 9 |     }
10 |
/host/spi-builder-workspace/Sources/EZNetworking/Core/Session/SessionDelegate+Extensions/SessionDelegate+URLSessionDownloadDelegate.swift:3:28: error: cannot find type 'URLSessionDownloadDelegate' in scope
 1 | import Foundation
 2 |
 3 | extension SessionDelegate: URLSessionDownloadDelegate {
   |                            `- error: cannot find type 'URLSessionDownloadDelegate' in scope
 4 |     public func urlSession(
 5 |         _ session: URLSession,
/host/spi-builder-workspace/Sources/EZNetworking/Core/Session/SessionDelegate+Extensions/SessionDelegate+URLSessionDownloadDelegate.swift:5:20: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 3 | extension SessionDelegate: URLSessionDownloadDelegate {
 4 |     public func urlSession(
 5 |         _ session: URLSession,
   |                    `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 6 |         downloadTask: URLSessionDownloadTask,
 7 |         didFinishDownloadingTo location: URL
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/EZNetworking/Core/Session/SessionDelegate+Extensions/SessionDelegate+URLSessionDownloadDelegate.swift:6:23: error: 'URLSessionDownloadTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 4 |     public func urlSession(
 5 |         _ session: URLSession,
 6 |         downloadTask: URLSessionDownloadTask,
   |                       `- error: 'URLSessionDownloadTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 7 |         didFinishDownloadingTo location: URL
 8 |     ) {
Foundation.URLSessionDownloadTask:2:18: note: 'URLSessionDownloadTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionDownloadTask = AnyObject
  |                  `- note: 'URLSessionDownloadTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/EZNetworking/Core/Session/SessionDelegate+Extensions/SessionDelegate+URLSessionDownloadDelegate.swift:13:20: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
11 |
12 |     public func urlSession(
13 |         _ session: URLSession,
   |                    `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
14 |         downloadTask: URLSessionDownloadTask,
15 |         didWriteData bytesWritten: 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/EZNetworking/Core/Session/SessionDelegate+Extensions/SessionDelegate+URLSessionDownloadDelegate.swift:14:23: error: 'URLSessionDownloadTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
12 |     public func urlSession(
13 |         _ session: URLSession,
14 |         downloadTask: URLSessionDownloadTask,
   |                       `- error: 'URLSessionDownloadTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
15 |         didWriteData bytesWritten: Int64,
16 |         totalBytesWritten: Int64,
Foundation.URLSessionDownloadTask:2:18: note: 'URLSessionDownloadTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionDownloadTask = AnyObject
  |                  `- note: 'URLSessionDownloadTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/EZNetworking/Core/Session/SessionDelegate+Extensions/SessionDelegate+URLSessionDownloadDelegate.swift:23:20: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
21 |
22 |     public func urlSession(
23 |         _ session: URLSession,
   |                    `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
24 |         downloadTask: URLSessionDownloadTask,
25 |         didResumeAtOffset fileOffset: 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/EZNetworking/Core/Session/SessionDelegate+Extensions/SessionDelegate+URLSessionDownloadDelegate.swift:24:23: error: 'URLSessionDownloadTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
22 |     public func urlSession(
23 |         _ session: URLSession,
24 |         downloadTask: URLSessionDownloadTask,
   |                       `- error: 'URLSessionDownloadTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
25 |         didResumeAtOffset fileOffset: Int64,
26 |         expectedTotalBytes: Int64
Foundation.URLSessionDownloadTask:2:18: note: 'URLSessionDownloadTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionDownloadTask = AnyObject
  |                  `- note: 'URLSessionDownloadTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/EZNetworking/Core/Session/SessionDelegate+Extensions/SessionDelegate+URLSessionStreamDelegate.swift:3:28: error: cannot find type 'URLSessionStreamDelegate' in scope
 1 | import Foundation
 2 |
 3 | extension SessionDelegate: URLSessionStreamDelegate {
   |                            `- error: cannot find type 'URLSessionStreamDelegate' in scope
 4 |     public func urlSession(
 5 |         _ session: URLSession,
/host/spi-builder-workspace/Sources/EZNetworking/Core/Session/SessionDelegate+Extensions/SessionDelegate+URLSessionStreamDelegate.swift:5:20: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 3 | extension SessionDelegate: URLSessionStreamDelegate {
 4 |     public func urlSession(
 5 |         _ session: URLSession,
   |                    `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 6 |         readClosedFor streamTask: URLSessionStreamTask
 7 |     ) {
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/EZNetworking/Core/Session/SessionDelegate+Extensions/SessionDelegate+URLSessionStreamDelegate.swift:6:35: error: 'URLSessionStreamTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 4 |     public func urlSession(
 5 |         _ session: URLSession,
 6 |         readClosedFor streamTask: URLSessionStreamTask
   |                                   `- error: 'URLSessionStreamTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 7 |     ) {
 8 |         streamTaskInterceptor?.urlSession(session, readClosedFor: streamTask)
Foundation.URLSessionStreamTask:2:18: note: 'URLSessionStreamTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionStreamTask = AnyObject
  |                  `- note: 'URLSessionStreamTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/EZNetworking/Core/Session/SessionDelegate+Extensions/SessionDelegate+URLSessionStreamDelegate.swift:12:20: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
10 |
11 |     public func urlSession(
12 |         _ session: URLSession,
   |                    `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
13 |         writeClosedFor streamTask: URLSessionStreamTask
14 |     ) {
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/EZNetworking/Core/Session/SessionDelegate+Extensions/SessionDelegate+URLSessionStreamDelegate.swift:13:36: error: 'URLSessionStreamTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
11 |     public func urlSession(
12 |         _ session: URLSession,
13 |         writeClosedFor streamTask: URLSessionStreamTask
   |                                    `- error: 'URLSessionStreamTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
14 |     ) {
15 |         streamTaskInterceptor?.urlSession(session, writeClosedFor: streamTask)
Foundation.URLSessionStreamTask:2:18: note: 'URLSessionStreamTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionStreamTask = AnyObject
  |                  `- note: 'URLSessionStreamTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/EZNetworking/Core/Session/SessionDelegate+Extensions/SessionDelegate+URLSessionStreamDelegate.swift:19:20: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
17 |
18 |     public func urlSession(
19 |         _ session: URLSession,
   |                    `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
20 |         betterRouteDiscoveredFor streamTask: URLSessionStreamTask
21 |     ) {
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/EZNetworking/Core/Session/SessionDelegate+Extensions/SessionDelegate+URLSessionStreamDelegate.swift:20:46: error: 'URLSessionStreamTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
18 |     public func urlSession(
19 |         _ session: URLSession,
20 |         betterRouteDiscoveredFor streamTask: URLSessionStreamTask
   |                                              `- error: 'URLSessionStreamTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
21 |     ) {
22 |         streamTaskInterceptor?.urlSession(session, betterRouteDiscoveredFor: streamTask)
Foundation.URLSessionStreamTask:2:18: note: 'URLSessionStreamTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionStreamTask = AnyObject
  |                  `- note: 'URLSessionStreamTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/EZNetworking/Core/Session/SessionDelegate+Extensions/SessionDelegate+URLSessionStreamDelegate.swift:26:20: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
24 |
25 |     public func urlSession(
26 |         _ session: URLSession,
   |                    `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
27 |         streamTask: URLSessionStreamTask,
28 |         didBecome inputStream: InputStream,
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/EZNetworking/Core/Session/SessionDelegate+Extensions/SessionDelegate+URLSessionStreamDelegate.swift:27:21: error: 'URLSessionStreamTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
25 |     public func urlSession(
26 |         _ session: URLSession,
27 |         streamTask: URLSessionStreamTask,
   |                     `- error: 'URLSessionStreamTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
28 |         didBecome inputStream: InputStream,
29 |         outputStream: OutputStream
Foundation.URLSessionStreamTask:2:18: note: 'URLSessionStreamTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionStreamTask = AnyObject
  |                  `- note: 'URLSessionStreamTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/EZNetworking/Core/Session/SessionDelegate+Extensions/SessionDelegate+URLSessionTaskDelegate.swift:3:28: error: cannot find type 'URLSessionTaskDelegate' in scope
 1 | import Foundation
 2 |
 3 | extension SessionDelegate: URLSessionTaskDelegate {
   |                            `- error: cannot find type 'URLSessionTaskDelegate' in scope
 4 |     // Async authentication
 5 |     public func urlSession(
/host/spi-builder-workspace/Sources/EZNetworking/Core/Session/SessionDelegate+Extensions/SessionDelegate+URLSessionTaskDelegate.swift:9:28: error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
 7 |         task: URLSessionTask,
 8 |         didReceive challenge: URLAuthenticationChallenge
 9 |     ) async -> (URLSession.AuthChallengeDisposition, URLCredential?) {
   |                            `- error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
10 |         await authenticationInterceptor?.urlSession(session, task: task, didReceive: challenge) ?? (.performDefaultHandling, nil)
11 |     }
/host/spi-builder-workspace/Sources/EZNetworking/Core/Session/SessionDelegate+Extensions/SessionDelegate+URLSessionTaskDelegate.swift:6:20: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 4 |     // Async authentication
 5 |     public func urlSession(
 6 |         _ session: URLSession,
   |                    `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 7 |         task: URLSessionTask,
 8 |         didReceive challenge: URLAuthenticationChallenge
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/EZNetworking/Core/Session/SessionDelegate+Extensions/SessionDelegate+URLSessionTaskDelegate.swift:7:15: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 5 |     public func urlSession(
 6 |         _ session: URLSession,
 7 |         task: URLSessionTask,
   |               `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 8 |         didReceive challenge: URLAuthenticationChallenge
 9 |     ) async -> (URLSession.AuthChallengeDisposition, URLCredential?) {
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
/host/spi-builder-workspace/Sources/EZNetworking/Core/Session/SessionDelegate+Extensions/SessionDelegate+URLSessionTaskDelegate.swift:8:31: error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 6 |         _ session: URLSession,
 7 |         task: URLSessionTask,
 8 |         didReceive challenge: URLAuthenticationChallenge
   |                               `- error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 9 |     ) async -> (URLSession.AuthChallengeDisposition, URLCredential?) {
10 |         await authenticationInterceptor?.urlSession(session, task: task, didReceive: challenge) ?? (.performDefaultHandling, nil)
Foundation.URLAuthenticationChallenge:2:18: note: 'URLAuthenticationChallenge' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLAuthenticationChallenge = AnyObject
  |                  `- note: 'URLAuthenticationChallenge' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/EZNetworking/Core/Session/SessionDelegate+Extensions/SessionDelegate+URLSessionTaskDelegate.swift:19:16: error: cannot find type 'URLRequest' in scope
17 |         willPerformHTTPRedirection response: HTTPURLResponse,
18 |         newRequest request: URLRequest
19 |     ) async -> URLRequest? {
   |                `- error: cannot find type 'URLRequest' in scope
20 |         await redirectInterceptor?.urlSession(session, task: task, willPerformHTTPRedirection: response, newRequest: request) ?? request
21 |     }
/host/spi-builder-workspace/Sources/EZNetworking/Core/Session/SessionDelegate+Extensions/SessionDelegate+URLSessionTaskDelegate.swift:18:29: error: cannot find type 'URLRequest' in scope
16 |         task: URLSessionTask,
17 |         willPerformHTTPRedirection response: HTTPURLResponse,
18 |         newRequest request: URLRequest
   |                             `- error: cannot find type 'URLRequest' in scope
19 |     ) async -> URLRequest? {
20 |         await redirectInterceptor?.urlSession(session, task: task, willPerformHTTPRedirection: response, newRequest: request) ?? request
/host/spi-builder-workspace/Sources/EZNetworking/Core/Session/SessionDelegate+Extensions/SessionDelegate+URLSessionTaskDelegate.swift:15:20: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
13 |     // Redirect Interception
14 |     public func urlSession(
15 |         _ session: URLSession,
   |                    `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
16 |         task: URLSessionTask,
17 |         willPerformHTTPRedirection response: HTTPURLResponse,
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/EZNetworking/Core/Session/SessionDelegate+Extensions/SessionDelegate+URLSessionTaskDelegate.swift:16:15: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
14 |     public func urlSession(
15 |         _ session: URLSession,
16 |         task: URLSessionTask,
   |               `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
17 |         willPerformHTTPRedirection response: HTTPURLResponse,
18 |         newRequest request: URLRequest
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
/host/spi-builder-workspace/Sources/EZNetworking/Core/Session/SessionDelegate+Extensions/SessionDelegate+URLSessionTaskDelegate.swift:17:46: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
15 |         _ session: URLSession,
16 |         task: URLSessionTask,
17 |         willPerformHTTPRedirection response: HTTPURLResponse,
   |                                              `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
18 |         newRequest request: URLRequest
19 |     ) async -> URLRequest? {
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/EZNetworking/Core/Session/SessionDelegate+Extensions/SessionDelegate+URLSessionTaskDelegate.swift:27:38: error: cannot find type 'URLSessionTaskMetrics' in scope
25 |         _ session: URLSession,
26 |         task: URLSessionTask,
27 |         didFinishCollecting metrics: URLSessionTaskMetrics
   |                                      `- error: cannot find type 'URLSessionTaskMetrics' in scope
28 |     ) {
29 |         metricsInterceptor?.urlSession(session, task: task, didFinishCollecting: metrics)
/host/spi-builder-workspace/Sources/EZNetworking/Core/Session/SessionDelegate+Extensions/SessionDelegate+URLSessionTaskDelegate.swift:25:20: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
23 |     // Metrics Interception
24 |     public func urlSession(
25 |         _ session: URLSession,
   |                    `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
26 |         task: URLSessionTask,
27 |         didFinishCollecting metrics: URLSessionTaskMetrics
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/EZNetworking/Core/Session/SessionDelegate+Extensions/SessionDelegate+URLSessionTaskDelegate.swift:26:15: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
24 |     public func urlSession(
25 |         _ session: URLSession,
26 |         task: URLSessionTask,
   |               `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
27 |         didFinishCollecting metrics: URLSessionTaskMetrics
28 |     ) {
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
/host/spi-builder-workspace/Sources/EZNetworking/Core/Session/SessionDelegate+Extensions/SessionDelegate+URLSessionTaskDelegate.swift:34:20: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
32 |     // Task Lifecycle Interception
33 |     public func urlSession(
34 |         _ session: URLSession,
   |                    `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
35 |         task: URLSessionTask,
36 |         didCompleteWithError error: Error?
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/EZNetworking/Core/Session/SessionDelegate+Extensions/SessionDelegate+URLSessionTaskDelegate.swift:35:15: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
33 |     public func urlSession(
34 |         _ session: URLSession,
35 |         task: URLSessionTask,
   |               `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
36 |         didCompleteWithError error: Error?
37 |     ) {
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
/host/spi-builder-workspace/Sources/EZNetworking/Core/Session/SessionDelegate+Extensions/SessionDelegate+URLSessionTaskDelegate.swift:55:20: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
53 |
54 |     public func urlSession(
55 |         _ session: URLSession,
   |                    `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
56 |         taskIsWaitingForConnectivity task: URLSessionTask
57 |     ) {
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/EZNetworking/Core/Session/SessionDelegate+Extensions/SessionDelegate+URLSessionTaskDelegate.swift:56:44: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
54 |     public func urlSession(
55 |         _ session: URLSession,
56 |         taskIsWaitingForConnectivity task: URLSessionTask
   |                                            `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
57 |     ) {
58 |         taskLifecycleInterceptor?.urlSession(session, taskIsWaitingForConnectivity: task)
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
/host/spi-builder-workspace/Sources/EZNetworking/Core/Session/SessionDelegate+Extensions/SessionDelegate+URLSessionTaskDelegate.swift:62:20: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
60 |
61 |     public func urlSession(
62 |         _ session: URLSession,
   |                    `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
63 |         task: URLSessionTask,
64 |         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/EZNetworking/Core/Session/SessionDelegate+Extensions/SessionDelegate+URLSessionTaskDelegate.swift:63:15: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
61 |     public func urlSession(
62 |         _ session: URLSession,
63 |         task: URLSessionTask,
   |               `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
64 |         didSendBodyData bytesSent: Int64,
65 |         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
/host/spi-builder-workspace/Sources/EZNetworking/Core/Session/SessionDelegate+Extensions/SessionDelegate+URLSessionTaskDelegate.swift:10:102: error: cannot infer contextual base in reference to member 'performDefaultHandling'
 8 |         didReceive challenge: URLAuthenticationChallenge
 9 |     ) async -> (URLSession.AuthChallengeDisposition, URLCredential?) {
10 |         await authenticationInterceptor?.urlSession(session, task: task, didReceive: challenge) ?? (.performDefaultHandling, nil)
   |                                                                                                      `- error: cannot infer contextual base in reference to member 'performDefaultHandling'
11 |     }
12 |
/host/spi-builder-workspace/Sources/EZNetworking/Core/Session/SessionDelegate+Extensions/SessionDelegate+URLSessionTaskDelegate.swift:10:126: error: 'nil' requires a contextual type
 8 |         didReceive challenge: URLAuthenticationChallenge
 9 |     ) async -> (URLSession.AuthChallengeDisposition, URLCredential?) {
10 |         await authenticationInterceptor?.urlSession(session, task: task, didReceive: challenge) ?? (.performDefaultHandling, nil)
   |                                                                                                                              `- error: 'nil' requires a contextual type
11 |     }
12 |
/host/spi-builder-workspace/Sources/EZNetworking/Core/Session/Interceptors/Protocols/RedirectInterceptor.swift:6:161: error: cannot find type 'URLRequest' in scope
4 | public protocol RedirectInterceptor: AnyObject {
5 |     /// Intercepts URL redirection before the request is performed.
6 |     func urlSession(_ session: URLSession, task: URLSessionTask, willPerformHTTPRedirection response: HTTPURLResponse, newRequest request: URLRequest) async -> URLRequest?
  |                                                                                                                                                                 `- error: cannot find type 'URLRequest' in scope
7 | }
8 |
/host/spi-builder-workspace/Sources/EZNetworking/Core/Session/Interceptors/Protocols/RedirectInterceptor.swift:6:140: error: cannot find type 'URLRequest' in scope
4 | public protocol RedirectInterceptor: AnyObject {
5 |     /// Intercepts URL redirection before the request is performed.
6 |     func urlSession(_ session: URLSession, task: URLSessionTask, willPerformHTTPRedirection response: HTTPURLResponse, newRequest request: URLRequest) async -> URLRequest?
  |                                                                                                                                            `- error: cannot find type 'URLRequest' in scope
7 | }
8 |
/host/spi-builder-workspace/Sources/EZNetworking/Core/Session/Interceptors/Protocols/MetricsInterceptor.swift:6:95: error: cannot find type 'URLSessionTaskMetrics' in scope
4 | public protocol MetricsInterceptor: AnyObject {
5 |     /// Intercepts metrics after task completion.
6 |     func urlSession(_ session: URLSession, task: URLSessionTask, didFinishCollecting metrics: URLSessionTaskMetrics)
  |                                                                                               `- error: cannot find type 'URLSessionTaskMetrics' in scope
7 | }
8 |
/host/spi-builder-workspace/Sources/EZNetworking/Core/Session/SessionDelegate+Extensions/SessionDelegate+URLSessionTaskDelegate.swift:41:14: warning: 'is' test is always true
39 |
40 |         switch task {
41 |         case is URLSessionUploadTask:
   |              `- warning: 'is' test is always true
42 |             uploadTaskInterceptor?.urlSession(session, task: task, didCompleteWithError: error)
43 |         case is URLSessionDownloadTask:
/host/spi-builder-workspace/Sources/EZNetworking/Core/Session/SessionDelegate+Extensions/SessionDelegate+URLSessionTaskDelegate.swift:43:14: warning: 'is' test is always true
41 |         case is URLSessionUploadTask:
42 |             uploadTaskInterceptor?.urlSession(session, task: task, didCompleteWithError: error)
43 |         case is URLSessionDownloadTask:
   |              `- warning: 'is' test is always true
44 |             guard let error else { return }
45 |             downloadTaskInterceptor?.urlSession(session, task: task, didCompleteWithError: error)
/host/spi-builder-workspace/Sources/EZNetworking/Core/Session/SessionDelegate+Extensions/SessionDelegate+URLSessionTaskDelegate.swift:46:17: error: cannot find type 'URLSessionWebSocketTask' in scope
44 |             guard let error else { return }
45 |             downloadTaskInterceptor?.urlSession(session, task: task, didCompleteWithError: error)
46 |         case is URLSessionWebSocketTask:
   |                 `- error: cannot find type 'URLSessionWebSocketTask' in scope
47 |             guard let error else { return }
48 |             webSocketTaskInterceptor?.urlSession(session, task: task, didCompleteWithError: error)
/host/spi-builder-workspace/Sources/EZNetworking/Core/Session/SessionDelegate+Extensions/SessionDelegate+URLSessionTaskDelegate.swift:41:17: error: 'URLSessionUploadTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
39 |
40 |         switch task {
41 |         case is URLSessionUploadTask:
   |                 `- error: 'URLSessionUploadTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
42 |             uploadTaskInterceptor?.urlSession(session, task: task, didCompleteWithError: error)
43 |         case is URLSessionDownloadTask:
Foundation.URLSessionUploadTask:2:18: note: 'URLSessionUploadTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionUploadTask = AnyObject
  |                  `- note: 'URLSessionUploadTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/EZNetworking/Core/Session/SessionDelegate+Extensions/SessionDelegate+URLSessionTaskDelegate.swift:41:17: error: 'URLSessionUploadTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
39 |
40 |         switch task {
41 |         case is URLSessionUploadTask:
   |                 `- error: 'URLSessionUploadTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
42 |             uploadTaskInterceptor?.urlSession(session, task: task, didCompleteWithError: error)
43 |         case is URLSessionDownloadTask:
Foundation.URLSessionUploadTask:2:18: note: 'URLSessionUploadTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionUploadTask = AnyObject
  |                  `- note: 'URLSessionUploadTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/EZNetworking/Core/Session/SessionDelegate+Extensions/SessionDelegate+URLSessionTaskDelegate.swift:43:17: error: 'URLSessionDownloadTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
41 |         case is URLSessionUploadTask:
42 |             uploadTaskInterceptor?.urlSession(session, task: task, didCompleteWithError: error)
43 |         case is URLSessionDownloadTask:
   |                 `- error: 'URLSessionDownloadTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
44 |             guard let error else { return }
45 |             downloadTaskInterceptor?.urlSession(session, task: task, didCompleteWithError: error)
Foundation.URLSessionDownloadTask:2:18: note: 'URLSessionDownloadTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionDownloadTask = AnyObject
  |                  `- note: 'URLSessionDownloadTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/EZNetworking/Core/Session/SessionDelegate+Extensions/SessionDelegate+URLSessionTaskDelegate.swift:43:17: error: 'URLSessionDownloadTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
41 |         case is URLSessionUploadTask:
42 |             uploadTaskInterceptor?.urlSession(session, task: task, didCompleteWithError: error)
43 |         case is URLSessionDownloadTask:
   |                 `- error: 'URLSessionDownloadTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
44 |             guard let error else { return }
45 |             downloadTaskInterceptor?.urlSession(session, task: task, didCompleteWithError: error)
Foundation.URLSessionDownloadTask:2:18: note: 'URLSessionDownloadTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionDownloadTask = AnyObject
  |                  `- note: 'URLSessionDownloadTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/EZNetworking/Core/Session/Interceptors/Protocols/WebSocketTaskInterceptor.swift:8:59: error: cannot find type 'URLSessionWebSocketTask' in scope
 6 |
 7 |     /// Intercepts when a WebSocket task opens with a protocol.
 8 |     func urlSession(_ session: URLSession, webSocketTask: URLSessionWebSocketTask, didOpenWithProtocol protocol: String?)
   |                                                           `- error: cannot find type 'URLSessionWebSocketTask' in scope
 9 |
10 |     /// Intercepts when a WebSocket task closes with a code and reason.
/host/spi-builder-workspace/Sources/EZNetworking/Core/Session/Interceptors/Protocols/WebSocketTaskInterceptor.swift:11:59: error: cannot find type 'URLSessionWebSocketTask' in scope
 9 |
10 |     /// Intercepts when a WebSocket task closes with a code and reason.
11 |     func urlSession(_ session: URLSession, webSocketTask: URLSessionWebSocketTask, didCloseWith closeCode: URLSessionWebSocketTask.CloseCode, reason: Data?)
   |                                                           `- error: cannot find type 'URLSessionWebSocketTask' in scope
12 |
13 |     /// Intercepts when a task completes with  an error.
/host/spi-builder-workspace/Sources/EZNetworking/Core/Session/Interceptors/Protocols/WebSocketTaskInterceptor.swift:11:108: error: cannot find type 'URLSessionWebSocketTask' in scope
 9 |
10 |     /// Intercepts when a WebSocket task closes with a code and reason.
11 |     func urlSession(_ session: URLSession, webSocketTask: URLSessionWebSocketTask, didCloseWith closeCode: URLSessionWebSocketTask.CloseCode, reason: Data?)
   |                                                                                                            `- error: cannot find type 'URLSessionWebSocketTask' in scope
12 |
13 |     /// Intercepts when a task completes with  an error.
/host/spi-builder-workspace/Sources/EZNetworking/Core/Session/SessionDelegate+Extensions/SessionDelegate+URLSessionWebSocketDelegate.swift:3:28: error: cannot find type 'URLSessionWebSocketDelegate' in scope
 1 | import Foundation
 2 |
 3 | extension SessionDelegate: URLSessionWebSocketDelegate {
   |                            `- error: cannot find type 'URLSessionWebSocketDelegate' in scope
 4 |     public func urlSession(
 5 |         _ session: URLSession,
/host/spi-builder-workspace/Sources/EZNetworking/Core/Session/SessionDelegate+Extensions/SessionDelegate+URLSessionWebSocketDelegate.swift:6:24: error: cannot find type 'URLSessionWebSocketTask' in scope
 4 |     public func urlSession(
 5 |         _ session: URLSession,
 6 |         webSocketTask: URLSessionWebSocketTask,
   |                        `- error: cannot find type 'URLSessionWebSocketTask' in scope
 7 |         didOpenWithProtocol protocol: String?
 8 |     ) {
/host/spi-builder-workspace/Sources/EZNetworking/Core/Session/SessionDelegate+Extensions/SessionDelegate+URLSessionWebSocketDelegate.swift:5:20: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 3 | extension SessionDelegate: URLSessionWebSocketDelegate {
 4 |     public func urlSession(
 5 |         _ session: URLSession,
   |                    `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 6 |         webSocketTask: URLSessionWebSocketTask,
 7 |         didOpenWithProtocol protocol: String?
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/EZNetworking/Core/Session/SessionDelegate+Extensions/SessionDelegate+URLSessionWebSocketDelegate.swift:14:24: error: cannot find type 'URLSessionWebSocketTask' in scope
12 |     public func urlSession(
13 |         _ session: URLSession,
14 |         webSocketTask: URLSessionWebSocketTask,
   |                        `- error: cannot find type 'URLSessionWebSocketTask' in scope
15 |         didCloseWith closeCode: URLSessionWebSocketTask.CloseCode,
16 |         reason: Data?
/host/spi-builder-workspace/Sources/EZNetworking/Core/Session/SessionDelegate+Extensions/SessionDelegate+URLSessionWebSocketDelegate.swift:15:33: error: cannot find type 'URLSessionWebSocketTask' in scope
13 |         _ session: URLSession,
14 |         webSocketTask: URLSessionWebSocketTask,
15 |         didCloseWith closeCode: URLSessionWebSocketTask.CloseCode,
   |                                 `- error: cannot find type 'URLSessionWebSocketTask' in scope
16 |         reason: Data?
17 |     ) {
/host/spi-builder-workspace/Sources/EZNetworking/Core/Session/SessionDelegate+Extensions/SessionDelegate+URLSessionWebSocketDelegate.swift:13:20: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
11 |
12 |     public func urlSession(
13 |         _ session: URLSession,
   |                    `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
14 |         webSocketTask: URLSessionWebSocketTask,
15 |         didCloseWith closeCode: URLSessionWebSocketTask.CloseCode,
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/EZNetworking/Core/Session/SessionDelegate+Extensions/SessionDelegate+URLSessionWebSocketDelegate.swift:9:45: error: incorrect argument labels in call (have '_:webSocketTask:didOpenWithProtocol:', expected '_:task:didCompleteWithError:')
 7 |         didOpenWithProtocol protocol: String?
 8 |     ) {
 9 |         webSocketTaskInterceptor?.urlSession(session, webSocketTask: webSocketTask, didOpenWithProtocol: `protocol`)
   |                                             `- error: incorrect argument labels in call (have '_:webSocketTask:didOpenWithProtocol:', expected '_:task:didCompleteWithError:')
10 |     }
11 |
/host/spi-builder-workspace/Sources/EZNetworking/Core/Session/SessionDelegate+Extensions/SessionDelegate+URLSessionWebSocketDelegate.swift:9:106: error: argument type 'String?' does not conform to expected type 'Error'
 7 |         didOpenWithProtocol protocol: String?
 8 |     ) {
 9 |         webSocketTaskInterceptor?.urlSession(session, webSocketTask: webSocketTask, didOpenWithProtocol: `protocol`)
   |                                                                                                          `- error: argument type 'String?' does not conform to expected type 'Error'
10 |     }
11 |
/host/spi-builder-workspace/Sources/EZNetworking/Core/Session/SessionDelegate+Extensions/SessionDelegate+URLSessionWebSocketDelegate.swift:18:45: error: extra arguments at positions #2, #3, #4 in call
16 |         reason: Data?
17 |     ) {
18 |         webSocketTaskInterceptor?.urlSession(session, webSocketTask: webSocketTask, didCloseWith: closeCode, reason: reason)
   |                                             `- error: extra arguments at positions #2, #3, #4 in call
19 |     }
20 | }
/host/spi-builder-workspace/Sources/EZNetworking/Core/Session/Interceptors/Protocols/WebSocketTaskInterceptor.swift:14:10: note: 'urlSession(_:task:didCompleteWithError:)' declared here
12 |
13 |     /// Intercepts when a task completes with  an error.
14 |     func urlSession(_ session: URLSession, task: URLSessionTask, didCompleteWithError error: Error)
   |          `- note: 'urlSession(_:task:didCompleteWithError:)' declared here
15 | }
16 |
/host/spi-builder-workspace/Sources/EZNetworking/Core/Session/SessionDelegate+Extensions/SessionDelegate+URLSessionWebSocketDelegate.swift:18:45: error: missing arguments for parameters 'task', 'didCompleteWithError' in call
16 |         reason: Data?
17 |     ) {
18 |         webSocketTaskInterceptor?.urlSession(session, webSocketTask: webSocketTask, didCloseWith: closeCode, reason: reason)
   |                                             `- error: missing arguments for parameters 'task', 'didCompleteWithError' in call
19 |     }
20 | }
/host/spi-builder-workspace/Sources/EZNetworking/Core/Session/Interceptors/Protocols/WebSocketTaskInterceptor.swift:14:10: note: 'urlSession(_:task:didCompleteWithError:)' declared here
12 |
13 |     /// Intercepts when a task completes with  an error.
14 |     func urlSession(_ session: URLSession, task: URLSessionTask, didCompleteWithError error: Error)
   |          `- note: 'urlSession(_:task:didCompleteWithError:)' declared here
15 | }
16 |
/host/spi-builder-workspace/Sources/EZNetworking/Core/Session/Interceptors/Protocols/DataTaskInterceptor.swift:15:128: error: 'ResponseDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
13 |
14 |     /// Intercepts the response for a data task before it is processed.
15 |     func urlSession(_ session: URLSession, dataTask: URLSessionDataTask, didReceive response: URLResponse) async -> URLSession.ResponseDisposition
   |                                                                                                                                `- error: 'ResponseDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
16 | }
17 |
/host/spi-builder-workspace/Sources/EZNetworking/Core/Session/URLSessionProtocols/URLSessionDownloadTaskProtocol.swift:9:1: error: non-nominal type 'URLSessionDownloadTask' (aka 'AnyObject') cannot be extended [#NominalTypes]
 7 | }
 8 |
 9 | extension URLSessionDownloadTask: URLSessionDownloadTaskProtocol {}
   | `- error: non-nominal type 'URLSessionDownloadTask' (aka 'AnyObject') cannot be extended [#NominalTypes]
10 |
/host/spi-builder-workspace/Sources/EZNetworking/Core/Session/URLSessionProtocols/URLSessionProtocol.swift:4:28: error: cannot find type 'URLRequest' in scope
 2 |
 3 | public protocol URLSessionProtocol {
 4 |     func data(for request: URLRequest) async throws -> (Data, URLResponse)
   |                            `- error: cannot find type 'URLRequest' in scope
 5 |
 6 |     func webSocketTaskInspectable(with request: URLRequest) -> URLSessionWebSocketTaskProtocol
/host/spi-builder-workspace/Sources/EZNetworking/Core/Session/URLSessionProtocols/URLSessionProtocol.swift:4:63: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 2 |
 3 | public protocol URLSessionProtocol {
 4 |     func data(for request: URLRequest) async throws -> (Data, URLResponse)
   |                                                               `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 5 |
 6 |     func webSocketTaskInspectable(with request: URLRequest) -> URLSessionWebSocketTaskProtocol
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/EZNetworking/Core/Session/URLSessionProtocols/URLSessionProtocol.swift:6:49: error: cannot find type 'URLRequest' in scope
 4 |     func data(for request: URLRequest) async throws -> (Data, URLResponse)
 5 |
 6 |     func webSocketTaskInspectable(with request: URLRequest) -> URLSessionWebSocketTaskProtocol
   |                                                 `- error: cannot find type 'URLRequest' in scope
 7 |
 8 |     func bytes(for request: URLRequest) async throws -> (AsyncThrowingStream<UInt8, Error>, URLResponse)
/host/spi-builder-workspace/Sources/EZNetworking/Core/Session/URLSessionProtocols/URLSessionProtocol.swift:8:29: error: cannot find type 'URLRequest' in scope
 6 |     func webSocketTaskInspectable(with request: URLRequest) -> URLSessionWebSocketTaskProtocol
 7 |
 8 |     func bytes(for request: URLRequest) async throws -> (AsyncThrowingStream<UInt8, Error>, URLResponse)
   |                             `- error: cannot find type 'URLRequest' in scope
 9 |
10 |     func downloadTaskInspectable(with request: URLRequest) -> URLSessionDownloadTaskProtocol
/host/spi-builder-workspace/Sources/EZNetworking/Core/Session/URLSessionProtocols/URLSessionProtocol.swift:8:93: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 6 |     func webSocketTaskInspectable(with request: URLRequest) -> URLSessionWebSocketTaskProtocol
 7 |
 8 |     func bytes(for request: URLRequest) async throws -> (AsyncThrowingStream<UInt8, Error>, URLResponse)
   |                                                                                             `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 9 |
10 |     func downloadTaskInspectable(with request: URLRequest) -> URLSessionDownloadTaskProtocol
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/EZNetworking/Core/Session/URLSessionProtocols/URLSessionProtocol.swift:10:48: error: cannot find type 'URLRequest' in scope
 8 |     func bytes(for request: URLRequest) async throws -> (AsyncThrowingStream<UInt8, Error>, URLResponse)
 9 |
10 |     func downloadTaskInspectable(with request: URLRequest) -> URLSessionDownloadTaskProtocol
   |                                                `- error: cannot find type 'URLRequest' in scope
11 |     func downloadTaskInspectable(withResumeData resumeData: Data) -> URLSessionDownloadTaskProtocol
12 |
/host/spi-builder-workspace/Sources/EZNetworking/Core/Session/URLSessionProtocols/URLSessionProtocol.swift:13:46: error: cannot find type 'URLRequest' in scope
11 |     func downloadTaskInspectable(withResumeData resumeData: Data) -> URLSessionDownloadTaskProtocol
12 |
13 |     func uploadTaskInspectable(with request: URLRequest, fromFile fileURL: URL) -> URLSessionUploadTaskProtocol
   |                                              `- error: cannot find type 'URLRequest' in scope
14 |     func uploadTaskInspectable(withResumeData resumeData: Data) -> URLSessionUploadTaskProtocol
15 | }
/host/spi-builder-workspace/Sources/EZNetworking/Core/Session/URLSessionProtocols/URLSessionProtocol.swift:17:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
15 | }
16 |
17 | extension URLSession: URLSessionProtocol {
   | `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
18 |     public func downloadTaskInspectable(with request: URLRequest) -> URLSessionDownloadTaskProtocol {
19 |         let task: URLSessionDownloadTask = downloadTask(with: request)
/host/spi-builder-workspace/Sources/EZNetworking/Core/Session/URLSessionProtocols/URLSessionUploadTaskProtocol.swift:9:1: error: non-nominal type 'URLSessionUploadTask' (aka 'AnyObject') cannot be extended [#NominalTypes]
 7 | }
 8 |
 9 | extension URLSessionUploadTask: URLSessionUploadTaskProtocol {}
   | `- error: non-nominal type 'URLSessionUploadTask' (aka 'AnyObject') cannot be extended [#NominalTypes]
10 |
/host/spi-builder-workspace/Sources/EZNetworking/Core/Session/URLSessionProtocols/URLSessionWebSocketTaskProtocol.swift:6:33: error: cannot find type 'URLSessionWebSocketTask' in scope
 4 | public protocol URLSessionWebSocketTaskProtocol {
 5 |     func resume()
 6 |     func cancel(with closeCode: URLSessionWebSocketTask.CloseCode, reason: Data?)
   |                                 `- error: cannot find type 'URLSessionWebSocketTask' in scope
 7 |
 8 |     func sendPing() async throws
/host/spi-builder-workspace/Sources/EZNetworking/Core/Session/URLSessionProtocols/URLSessionWebSocketTaskProtocol.swift:11:26: error: cannot find type 'URLSessionWebSocketTask' in scope
 9 |     func sendPing(pongReceiveHandler: @escaping @Sendable ((any Error)?) -> Void)
10 |
11 |     func send(_ message: URLSessionWebSocketTask.Message) async throws
   |                          `- error: cannot find type 'URLSessionWebSocketTask' in scope
12 |     func send(_ message: URLSessionWebSocketTask.Message, completionHandler: @escaping @Sendable (Error?) -> Void)
13 |
/host/spi-builder-workspace/Sources/EZNetworking/Core/Session/URLSessionProtocols/URLSessionWebSocketTaskProtocol.swift:12:26: error: cannot find type 'URLSessionWebSocketTask' in scope
10 |
11 |     func send(_ message: URLSessionWebSocketTask.Message) async throws
12 |     func send(_ message: URLSessionWebSocketTask.Message, completionHandler: @escaping @Sendable (Error?) -> Void)
   |                          `- error: cannot find type 'URLSessionWebSocketTask' in scope
13 |
14 |     func receive() async throws -> URLSessionWebSocketTask.Message
/host/spi-builder-workspace/Sources/EZNetworking/Core/Session/URLSessionProtocols/URLSessionWebSocketTaskProtocol.swift:14:36: error: cannot find type 'URLSessionWebSocketTask' in scope
12 |     func send(_ message: URLSessionWebSocketTask.Message, completionHandler: @escaping @Sendable (Error?) -> Void)
13 |
14 |     func receive() async throws -> URLSessionWebSocketTask.Message
   |                                    `- error: cannot find type 'URLSessionWebSocketTask' in scope
15 |     func receive(completionHandler: @escaping @Sendable (Result<URLSessionWebSocketTask.Message, Error>) -> Void)
16 |
/host/spi-builder-workspace/Sources/EZNetworking/Core/Session/URLSessionProtocols/URLSessionWebSocketTaskProtocol.swift:15:65: error: cannot find type 'URLSessionWebSocketTask' in scope
13 |
14 |     func receive() async throws -> URLSessionWebSocketTask.Message
15 |     func receive(completionHandler: @escaping @Sendable (Result<URLSessionWebSocketTask.Message, Error>) -> Void)
   |                                                                 `- error: cannot find type 'URLSessionWebSocketTask' in scope
16 |
17 |     var closeCode: URLSessionWebSocketTask.CloseCode { get }
/host/spi-builder-workspace/Sources/EZNetworking/Core/Session/URLSessionProtocols/URLSessionWebSocketTaskProtocol.swift:17:20: error: cannot find type 'URLSessionWebSocketTask' in scope
15 |     func receive(completionHandler: @escaping @Sendable (Result<URLSessionWebSocketTask.Message, Error>) -> Void)
16 |
17 |     var closeCode: URLSessionWebSocketTask.CloseCode { get }
   |                    `- error: cannot find type 'URLSessionWebSocketTask' in scope
18 |     var closeReason: Data? { get }
19 | }
/host/spi-builder-workspace/Sources/EZNetworking/Core/Session/URLSessionProtocols/URLSessionWebSocketTaskProtocol.swift:35:11: error: cannot find type 'URLSessionWebSocketTask' in scope
33 | }
34 |
35 | extension URLSessionWebSocketTask: URLSessionWebSocketTaskProtocol {}
   |           `- error: cannot find type 'URLSessionWebSocketTask' in scope
36 |
/host/spi-builder-workspace/Sources/EZNetworking/Core/Validator/ResponseValidator.swift:4:43: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 2 |
 3 | public protocol ResponseValidator {
 4 |     func validateStatus(from urlResponse: URLResponse?) throws
   |                                           `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 5 | }
 6 |
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/EZNetworking/Core/Validator/ResponseValidator.swift:14:50: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
12 |     }
13 |
14 |     public func validateStatus(from urlResponse: URLResponse?) throws {
   |                                                  `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
15 |         guard let urlResponse else {
16 |             throw NetworkingError.responseValidationFailed(reason: .noURLResponse)
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/EZNetworking/Core/Validator/ResponseValidator.swift:32:45: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
30 |     }
31 |
32 |     private func convert(_ httpURLResponse: HTTPURLResponse) -> HTTPResponse {
   |                                             `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
33 |         // Convert headers from [AnyHashable: Any] to [String: String]
34 |         let headers = httpURLResponse.allHeaderFields.reduce(into: [String: String]()) { result, pair in
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/EZNetworking/Core/Validator/ResponseValidator.swift:18:49: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
16 |             throw NetworkingError.responseValidationFailed(reason: .noURLResponse)
17 |         }
18 |         guard let httpURLResponse = urlResponse as? HTTPURLResponse else {
   |                                                 `- warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
19 |             throw NetworkingError.responseValidationFailed(reason: .noHTTPURLResponse)
20 |         }
/host/spi-builder-workspace/Sources/EZNetworking/Core/Validator/ResponseValidator.swift:18:53: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
16 |             throw NetworkingError.responseValidationFailed(reason: .noURLResponse)
17 |         }
18 |         guard let httpURLResponse = urlResponse as? HTTPURLResponse else {
   |                                                     `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
19 |             throw NetworkingError.responseValidationFailed(reason: .noHTTPURLResponse)
20 |         }
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/EZNetworking/Core/Validator/ResponseValidator.swift:34:39: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
32 |     private func convert(_ httpURLResponse: HTTPURLResponse) -> HTTPResponse {
33 |         // Convert headers from [AnyHashable: Any] to [String: String]
34 |         let headers = httpURLResponse.allHeaderFields.reduce(into: [String: String]()) { result, pair in
   |                                       `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
35 |             if let key = pair.key as? String, let value = pair.value as? String {
36 |                 result[key] = value
/host/spi-builder-workspace/Sources/EZNetworking/Core/Validator/ResponseValidator.swift:39:57: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
37 |             }
38 |         }
39 |         return HTTPResponse(statusCode: httpURLResponse.statusCode, headers: headers)
   |                                                         `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
40 |     }
41 |
/host/spi-builder-workspace/Sources/EZNetworking/Core/Session/URLSessionProtocols/URLSessionProtocol.swift:18:55: error: cannot find type 'URLRequest' in scope
16 |
17 | extension URLSession: URLSessionProtocol {
18 |     public func downloadTaskInspectable(with request: URLRequest) -> URLSessionDownloadTaskProtocol {
   |                                                       `- error: cannot find type 'URLRequest' in scope
19 |         let task: URLSessionDownloadTask = downloadTask(with: request)
20 |         return task as URLSessionDownloadTaskProtocol
/host/spi-builder-workspace/Sources/EZNetworking/Core/Session/URLSessionProtocols/URLSessionProtocol.swift:28:53: error: cannot find type 'URLRequest' in scope
26 |     }
27 |
28 |     public func uploadTaskInspectable(with request: URLRequest, fromFile fileURL: URL) -> URLSessionUploadTaskProtocol {
   |                                                     `- error: cannot find type 'URLRequest' in scope
29 |         let task: URLSessionUploadTask = uploadTask(with: request, fromFile: fileURL)
30 |         return task as URLSessionUploadTaskProtocol
/host/spi-builder-workspace/Sources/EZNetworking/Core/Session/URLSessionProtocols/URLSessionProtocol.swift:38:56: error: cannot find type 'URLRequest' in scope
36 |     }
37 |
38 |     public func webSocketTaskInspectable(with request: URLRequest) -> URLSessionWebSocketTaskProtocol {
   |                                                        `- error: cannot find type 'URLRequest' in scope
39 |         let task: URLSessionWebSocketTask = webSocketTask(with: request)
40 |         return task as URLSessionWebSocketTaskProtocol
/host/spi-builder-workspace/Sources/EZNetworking/Core/Session/URLSessionProtocols/URLSessionProtocol.swift:54:36: error: cannot find type 'URLRequest' in scope
52 |     ///
53 |     /// - Note: Cancelling the stream propagates cancellation to the underlying `URLSessionTask`.
54 |     public func bytes(for request: URLRequest) async throws -> (AsyncThrowingStream<UInt8, Error>, URLResponse) {
   |                                    `- error: cannot find type 'URLRequest' in scope
55 |         let (bytes, response) = try await self.bytes(for: request, delegate: nil)
56 |
[#NominalTypes]: <https://docs.swift.org/compiler/documentation/diagnostics/nominal-types>
[89/89] Compiling EZNetworking ResponseValidator.swift
/host/spi-builder-workspace/Sources/EZNetworking/Core/Session/SessionDelegate+Extensions/SessionDelegate+URLSessionDelegate.swift:3:28: error: cannot find type 'URLSessionDelegate' in scope
 1 | import Foundation
 2 |
 3 | extension SessionDelegate: URLSessionDelegate {
   |                            `- error: cannot find type 'URLSessionDelegate' in scope
 4 |     public func urlSession(
 5 |         _ session: URLSession,
/host/spi-builder-workspace/Sources/EZNetworking/Core/Session/SessionDelegate+Extensions/SessionDelegate+URLSessionDelegate.swift:7:28: error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
 5 |         _ session: URLSession,
 6 |         didReceive challenge: URLAuthenticationChallenge
 7 |     ) async -> (URLSession.AuthChallengeDisposition, URLCredential?) {
   |                            `- error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
 8 |         await authenticationInterceptor?.urlSession(session, didReceive: challenge) ?? (.performDefaultHandling, nil)
 9 |     }
/host/spi-builder-workspace/Sources/EZNetworking/Core/Session/SessionDelegate+Extensions/SessionDelegate+URLSessionDelegate.swift:5:20: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 3 | extension SessionDelegate: URLSessionDelegate {
 4 |     public func urlSession(
 5 |         _ session: URLSession,
   |                    `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 6 |         didReceive challenge: URLAuthenticationChallenge
 7 |     ) async -> (URLSession.AuthChallengeDisposition, URLCredential?) {
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/EZNetworking/Core/Session/SessionDelegate+Extensions/SessionDelegate+URLSessionDelegate.swift:6:31: error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 4 |     public func urlSession(
 5 |         _ session: URLSession,
 6 |         didReceive challenge: URLAuthenticationChallenge
   |                               `- error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 7 |     ) async -> (URLSession.AuthChallengeDisposition, URLCredential?) {
 8 |         await authenticationInterceptor?.urlSession(session, didReceive: challenge) ?? (.performDefaultHandling, nil)
Foundation.URLAuthenticationChallenge:2:18: note: 'URLAuthenticationChallenge' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLAuthenticationChallenge = AnyObject
  |                  `- note: 'URLAuthenticationChallenge' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/EZNetworking/Core/Session/SessionDelegate+Extensions/SessionDelegate+URLSessionDelegate.swift:11:39: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 9 |     }
10 |
11 |     public func urlSession(_ session: URLSession, didCreateTask task: URLSessionTask) {
   |                                       `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
12 |         taskLifecycleInterceptor?.urlSession(session, didCreateTask: task)
13 |     }
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/EZNetworking/Core/Session/SessionDelegate+Extensions/SessionDelegate+URLSessionDelegate.swift:11:71: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 9 |     }
10 |
11 |     public func urlSession(_ session: URLSession, didCreateTask task: URLSessionTask) {
   |                                                                       `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
12 |         taskLifecycleInterceptor?.urlSession(session, didCreateTask: task)
13 |     }
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
/host/spi-builder-workspace/Sources/EZNetworking/Core/Session/Interceptors/Protocols/AuthenticationInterceptor.swift:6:137: error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
 4 | public protocol AuthenticationInterceptor: AnyObject {
 5 |     /// Intercepts authentication challenges for a specific URLSession task.
 6 |     func urlSession(_ session: URLSession, task: URLSessionTask, didReceive challenge: URLAuthenticationChallenge) async -> (URLSession.AuthChallengeDisposition, URLCredential?)
   |                                                                                                                                         `- error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
 7 |
 8 |     /// Intercepts authentication challenges for the entire URLSession.
/host/spi-builder-workspace/Sources/EZNetworking/Core/Session/Interceptors/Protocols/AuthenticationInterceptor.swift:9:115: error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
 7 |
 8 |     /// Intercepts authentication challenges for the entire URLSession.
 9 |     func urlSession(_ session: URLSession, didReceive challenge: URLAuthenticationChallenge) async -> (URLSession.AuthChallengeDisposition, URLCredential?)
   |                                                                                                                   `- error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
10 | }
11 |
/host/spi-builder-workspace/Sources/EZNetworking/Core/Session/SessionDelegate+Extensions/SessionDelegate+URLSessionDelegate.swift:8:90: error: cannot infer contextual base in reference to member 'performDefaultHandling'
 6 |         didReceive challenge: URLAuthenticationChallenge
 7 |     ) async -> (URLSession.AuthChallengeDisposition, URLCredential?) {
 8 |         await authenticationInterceptor?.urlSession(session, didReceive: challenge) ?? (.performDefaultHandling, nil)
   |                                                                                          `- error: cannot infer contextual base in reference to member 'performDefaultHandling'
 9 |     }
10 |
/host/spi-builder-workspace/Sources/EZNetworking/Core/Session/SessionDelegate+Extensions/SessionDelegate+URLSessionDelegate.swift:8:114: error: 'nil' requires a contextual type
 6 |         didReceive challenge: URLAuthenticationChallenge
 7 |     ) async -> (URLSession.AuthChallengeDisposition, URLCredential?) {
 8 |         await authenticationInterceptor?.urlSession(session, didReceive: challenge) ?? (.performDefaultHandling, nil)
   |                                                                                                                  `- error: 'nil' requires a contextual type
 9 |     }
10 |
/host/spi-builder-workspace/Sources/EZNetworking/Core/Session/SessionDelegate+Extensions/SessionDelegate+URLSessionDownloadDelegate.swift:3:28: error: cannot find type 'URLSessionDownloadDelegate' in scope
 1 | import Foundation
 2 |
 3 | extension SessionDelegate: URLSessionDownloadDelegate {
   |                            `- error: cannot find type 'URLSessionDownloadDelegate' in scope
 4 |     public func urlSession(
 5 |         _ session: URLSession,
/host/spi-builder-workspace/Sources/EZNetworking/Core/Session/SessionDelegate+Extensions/SessionDelegate+URLSessionDownloadDelegate.swift:5:20: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 3 | extension SessionDelegate: URLSessionDownloadDelegate {
 4 |     public func urlSession(
 5 |         _ session: URLSession,
   |                    `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 6 |         downloadTask: URLSessionDownloadTask,
 7 |         didFinishDownloadingTo location: URL
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/EZNetworking/Core/Session/SessionDelegate+Extensions/SessionDelegate+URLSessionDownloadDelegate.swift:6:23: error: 'URLSessionDownloadTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 4 |     public func urlSession(
 5 |         _ session: URLSession,
 6 |         downloadTask: URLSessionDownloadTask,
   |                       `- error: 'URLSessionDownloadTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 7 |         didFinishDownloadingTo location: URL
 8 |     ) {
Foundation.URLSessionDownloadTask:2:18: note: 'URLSessionDownloadTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionDownloadTask = AnyObject
  |                  `- note: 'URLSessionDownloadTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/EZNetworking/Core/Session/SessionDelegate+Extensions/SessionDelegate+URLSessionDownloadDelegate.swift:13:20: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
11 |
12 |     public func urlSession(
13 |         _ session: URLSession,
   |                    `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
14 |         downloadTask: URLSessionDownloadTask,
15 |         didWriteData bytesWritten: 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/EZNetworking/Core/Session/SessionDelegate+Extensions/SessionDelegate+URLSessionDownloadDelegate.swift:14:23: error: 'URLSessionDownloadTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
12 |     public func urlSession(
13 |         _ session: URLSession,
14 |         downloadTask: URLSessionDownloadTask,
   |                       `- error: 'URLSessionDownloadTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
15 |         didWriteData bytesWritten: Int64,
16 |         totalBytesWritten: Int64,
Foundation.URLSessionDownloadTask:2:18: note: 'URLSessionDownloadTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionDownloadTask = AnyObject
  |                  `- note: 'URLSessionDownloadTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/EZNetworking/Core/Session/SessionDelegate+Extensions/SessionDelegate+URLSessionDownloadDelegate.swift:23:20: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
21 |
22 |     public func urlSession(
23 |         _ session: URLSession,
   |                    `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
24 |         downloadTask: URLSessionDownloadTask,
25 |         didResumeAtOffset fileOffset: 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/EZNetworking/Core/Session/SessionDelegate+Extensions/SessionDelegate+URLSessionDownloadDelegate.swift:24:23: error: 'URLSessionDownloadTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
22 |     public func urlSession(
23 |         _ session: URLSession,
24 |         downloadTask: URLSessionDownloadTask,
   |                       `- error: 'URLSessionDownloadTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
25 |         didResumeAtOffset fileOffset: Int64,
26 |         expectedTotalBytes: Int64
Foundation.URLSessionDownloadTask:2:18: note: 'URLSessionDownloadTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionDownloadTask = AnyObject
  |                  `- note: 'URLSessionDownloadTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/EZNetworking/Core/Session/SessionDelegate+Extensions/SessionDelegate+URLSessionStreamDelegate.swift:3:28: error: cannot find type 'URLSessionStreamDelegate' in scope
 1 | import Foundation
 2 |
 3 | extension SessionDelegate: URLSessionStreamDelegate {
   |                            `- error: cannot find type 'URLSessionStreamDelegate' in scope
 4 |     public func urlSession(
 5 |         _ session: URLSession,
/host/spi-builder-workspace/Sources/EZNetworking/Core/Session/SessionDelegate+Extensions/SessionDelegate+URLSessionStreamDelegate.swift:5:20: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 3 | extension SessionDelegate: URLSessionStreamDelegate {
 4 |     public func urlSession(
 5 |         _ session: URLSession,
   |                    `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 6 |         readClosedFor streamTask: URLSessionStreamTask
 7 |     ) {
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/EZNetworking/Core/Session/SessionDelegate+Extensions/SessionDelegate+URLSessionStreamDelegate.swift:6:35: error: 'URLSessionStreamTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 4 |     public func urlSession(
 5 |         _ session: URLSession,
 6 |         readClosedFor streamTask: URLSessionStreamTask
   |                                   `- error: 'URLSessionStreamTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 7 |     ) {
 8 |         streamTaskInterceptor?.urlSession(session, readClosedFor: streamTask)
Foundation.URLSessionStreamTask:2:18: note: 'URLSessionStreamTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionStreamTask = AnyObject
  |                  `- note: 'URLSessionStreamTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/EZNetworking/Core/Session/SessionDelegate+Extensions/SessionDelegate+URLSessionStreamDelegate.swift:12:20: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
10 |
11 |     public func urlSession(
12 |         _ session: URLSession,
   |                    `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
13 |         writeClosedFor streamTask: URLSessionStreamTask
14 |     ) {
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/EZNetworking/Core/Session/SessionDelegate+Extensions/SessionDelegate+URLSessionStreamDelegate.swift:13:36: error: 'URLSessionStreamTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
11 |     public func urlSession(
12 |         _ session: URLSession,
13 |         writeClosedFor streamTask: URLSessionStreamTask
   |                                    `- error: 'URLSessionStreamTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
14 |     ) {
15 |         streamTaskInterceptor?.urlSession(session, writeClosedFor: streamTask)
Foundation.URLSessionStreamTask:2:18: note: 'URLSessionStreamTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionStreamTask = AnyObject
  |                  `- note: 'URLSessionStreamTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/EZNetworking/Core/Session/SessionDelegate+Extensions/SessionDelegate+URLSessionStreamDelegate.swift:19:20: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
17 |
18 |     public func urlSession(
19 |         _ session: URLSession,
   |                    `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
20 |         betterRouteDiscoveredFor streamTask: URLSessionStreamTask
21 |     ) {
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/EZNetworking/Core/Session/SessionDelegate+Extensions/SessionDelegate+URLSessionStreamDelegate.swift:20:46: error: 'URLSessionStreamTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
18 |     public func urlSession(
19 |         _ session: URLSession,
20 |         betterRouteDiscoveredFor streamTask: URLSessionStreamTask
   |                                              `- error: 'URLSessionStreamTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
21 |     ) {
22 |         streamTaskInterceptor?.urlSession(session, betterRouteDiscoveredFor: streamTask)
Foundation.URLSessionStreamTask:2:18: note: 'URLSessionStreamTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionStreamTask = AnyObject
  |                  `- note: 'URLSessionStreamTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/EZNetworking/Core/Session/SessionDelegate+Extensions/SessionDelegate+URLSessionStreamDelegate.swift:26:20: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
24 |
25 |     public func urlSession(
26 |         _ session: URLSession,
   |                    `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
27 |         streamTask: URLSessionStreamTask,
28 |         didBecome inputStream: InputStream,
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/EZNetworking/Core/Session/SessionDelegate+Extensions/SessionDelegate+URLSessionStreamDelegate.swift:27:21: error: 'URLSessionStreamTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
25 |     public func urlSession(
26 |         _ session: URLSession,
27 |         streamTask: URLSessionStreamTask,
   |                     `- error: 'URLSessionStreamTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
28 |         didBecome inputStream: InputStream,
29 |         outputStream: OutputStream
Foundation.URLSessionStreamTask:2:18: note: 'URLSessionStreamTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionStreamTask = AnyObject
  |                  `- note: 'URLSessionStreamTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/EZNetworking/Core/Session/SessionDelegate+Extensions/SessionDelegate+URLSessionTaskDelegate.swift:3:28: error: cannot find type 'URLSessionTaskDelegate' in scope
 1 | import Foundation
 2 |
 3 | extension SessionDelegate: URLSessionTaskDelegate {
   |                            `- error: cannot find type 'URLSessionTaskDelegate' in scope
 4 |     // Async authentication
 5 |     public func urlSession(
/host/spi-builder-workspace/Sources/EZNetworking/Core/Session/SessionDelegate+Extensions/SessionDelegate+URLSessionTaskDelegate.swift:9:28: error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
 7 |         task: URLSessionTask,
 8 |         didReceive challenge: URLAuthenticationChallenge
 9 |     ) async -> (URLSession.AuthChallengeDisposition, URLCredential?) {
   |                            `- error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
10 |         await authenticationInterceptor?.urlSession(session, task: task, didReceive: challenge) ?? (.performDefaultHandling, nil)
11 |     }
/host/spi-builder-workspace/Sources/EZNetworking/Core/Session/SessionDelegate+Extensions/SessionDelegate+URLSessionTaskDelegate.swift:6:20: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 4 |     // Async authentication
 5 |     public func urlSession(
 6 |         _ session: URLSession,
   |                    `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 7 |         task: URLSessionTask,
 8 |         didReceive challenge: URLAuthenticationChallenge
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/EZNetworking/Core/Session/SessionDelegate+Extensions/SessionDelegate+URLSessionTaskDelegate.swift:7:15: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 5 |     public func urlSession(
 6 |         _ session: URLSession,
 7 |         task: URLSessionTask,
   |               `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 8 |         didReceive challenge: URLAuthenticationChallenge
 9 |     ) async -> (URLSession.AuthChallengeDisposition, URLCredential?) {
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
/host/spi-builder-workspace/Sources/EZNetworking/Core/Session/SessionDelegate+Extensions/SessionDelegate+URLSessionTaskDelegate.swift:8:31: error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 6 |         _ session: URLSession,
 7 |         task: URLSessionTask,
 8 |         didReceive challenge: URLAuthenticationChallenge
   |                               `- error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 9 |     ) async -> (URLSession.AuthChallengeDisposition, URLCredential?) {
10 |         await authenticationInterceptor?.urlSession(session, task: task, didReceive: challenge) ?? (.performDefaultHandling, nil)
Foundation.URLAuthenticationChallenge:2:18: note: 'URLAuthenticationChallenge' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLAuthenticationChallenge = AnyObject
  |                  `- note: 'URLAuthenticationChallenge' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/EZNetworking/Core/Session/SessionDelegate+Extensions/SessionDelegate+URLSessionTaskDelegate.swift:19:16: error: cannot find type 'URLRequest' in scope
17 |         willPerformHTTPRedirection response: HTTPURLResponse,
18 |         newRequest request: URLRequest
19 |     ) async -> URLRequest? {
   |                `- error: cannot find type 'URLRequest' in scope
20 |         await redirectInterceptor?.urlSession(session, task: task, willPerformHTTPRedirection: response, newRequest: request) ?? request
21 |     }
/host/spi-builder-workspace/Sources/EZNetworking/Core/Session/SessionDelegate+Extensions/SessionDelegate+URLSessionTaskDelegate.swift:18:29: error: cannot find type 'URLRequest' in scope
16 |         task: URLSessionTask,
17 |         willPerformHTTPRedirection response: HTTPURLResponse,
18 |         newRequest request: URLRequest
   |                             `- error: cannot find type 'URLRequest' in scope
19 |     ) async -> URLRequest? {
20 |         await redirectInterceptor?.urlSession(session, task: task, willPerformHTTPRedirection: response, newRequest: request) ?? request
/host/spi-builder-workspace/Sources/EZNetworking/Core/Session/SessionDelegate+Extensions/SessionDelegate+URLSessionTaskDelegate.swift:15:20: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
13 |     // Redirect Interception
14 |     public func urlSession(
15 |         _ session: URLSession,
   |                    `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
16 |         task: URLSessionTask,
17 |         willPerformHTTPRedirection response: HTTPURLResponse,
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/EZNetworking/Core/Session/SessionDelegate+Extensions/SessionDelegate+URLSessionTaskDelegate.swift:16:15: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
14 |     public func urlSession(
15 |         _ session: URLSession,
16 |         task: URLSessionTask,
   |               `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
17 |         willPerformHTTPRedirection response: HTTPURLResponse,
18 |         newRequest request: URLRequest
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
/host/spi-builder-workspace/Sources/EZNetworking/Core/Session/SessionDelegate+Extensions/SessionDelegate+URLSessionTaskDelegate.swift:17:46: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
15 |         _ session: URLSession,
16 |         task: URLSessionTask,
17 |         willPerformHTTPRedirection response: HTTPURLResponse,
   |                                              `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
18 |         newRequest request: URLRequest
19 |     ) async -> URLRequest? {
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/EZNetworking/Core/Session/SessionDelegate+Extensions/SessionDelegate+URLSessionTaskDelegate.swift:27:38: error: cannot find type 'URLSessionTaskMetrics' in scope
25 |         _ session: URLSession,
26 |         task: URLSessionTask,
27 |         didFinishCollecting metrics: URLSessionTaskMetrics
   |                                      `- error: cannot find type 'URLSessionTaskMetrics' in scope
28 |     ) {
29 |         metricsInterceptor?.urlSession(session, task: task, didFinishCollecting: metrics)
/host/spi-builder-workspace/Sources/EZNetworking/Core/Session/SessionDelegate+Extensions/SessionDelegate+URLSessionTaskDelegate.swift:25:20: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
23 |     // Metrics Interception
24 |     public func urlSession(
25 |         _ session: URLSession,
   |                    `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
26 |         task: URLSessionTask,
27 |         didFinishCollecting metrics: URLSessionTaskMetrics
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/EZNetworking/Core/Session/SessionDelegate+Extensions/SessionDelegate+URLSessionTaskDelegate.swift:26:15: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
24 |     public func urlSession(
25 |         _ session: URLSession,
26 |         task: URLSessionTask,
   |               `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
27 |         didFinishCollecting metrics: URLSessionTaskMetrics
28 |     ) {
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
/host/spi-builder-workspace/Sources/EZNetworking/Core/Session/SessionDelegate+Extensions/SessionDelegate+URLSessionTaskDelegate.swift:34:20: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
32 |     // Task Lifecycle Interception
33 |     public func urlSession(
34 |         _ session: URLSession,
   |                    `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
35 |         task: URLSessionTask,
36 |         didCompleteWithError error: Error?
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/EZNetworking/Core/Session/SessionDelegate+Extensions/SessionDelegate+URLSessionTaskDelegate.swift:35:15: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
33 |     public func urlSession(
34 |         _ session: URLSession,
35 |         task: URLSessionTask,
   |               `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
36 |         didCompleteWithError error: Error?
37 |     ) {
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
/host/spi-builder-workspace/Sources/EZNetworking/Core/Session/SessionDelegate+Extensions/SessionDelegate+URLSessionTaskDelegate.swift:55:20: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
53 |
54 |     public func urlSession(
55 |         _ session: URLSession,
   |                    `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
56 |         taskIsWaitingForConnectivity task: URLSessionTask
57 |     ) {
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/EZNetworking/Core/Session/SessionDelegate+Extensions/SessionDelegate+URLSessionTaskDelegate.swift:56:44: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
54 |     public func urlSession(
55 |         _ session: URLSession,
56 |         taskIsWaitingForConnectivity task: URLSessionTask
   |                                            `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
57 |     ) {
58 |         taskLifecycleInterceptor?.urlSession(session, taskIsWaitingForConnectivity: task)
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
/host/spi-builder-workspace/Sources/EZNetworking/Core/Session/SessionDelegate+Extensions/SessionDelegate+URLSessionTaskDelegate.swift:62:20: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
60 |
61 |     public func urlSession(
62 |         _ session: URLSession,
   |                    `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
63 |         task: URLSessionTask,
64 |         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/EZNetworking/Core/Session/SessionDelegate+Extensions/SessionDelegate+URLSessionTaskDelegate.swift:63:15: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
61 |     public func urlSession(
62 |         _ session: URLSession,
63 |         task: URLSessionTask,
   |               `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
64 |         didSendBodyData bytesSent: Int64,
65 |         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
/host/spi-builder-workspace/Sources/EZNetworking/Core/Session/SessionDelegate+Extensions/SessionDelegate+URLSessionTaskDelegate.swift:10:102: error: cannot infer contextual base in reference to member 'performDefaultHandling'
 8 |         didReceive challenge: URLAuthenticationChallenge
 9 |     ) async -> (URLSession.AuthChallengeDisposition, URLCredential?) {
10 |         await authenticationInterceptor?.urlSession(session, task: task, didReceive: challenge) ?? (.performDefaultHandling, nil)
   |                                                                                                      `- error: cannot infer contextual base in reference to member 'performDefaultHandling'
11 |     }
12 |
/host/spi-builder-workspace/Sources/EZNetworking/Core/Session/SessionDelegate+Extensions/SessionDelegate+URLSessionTaskDelegate.swift:10:126: error: 'nil' requires a contextual type
 8 |         didReceive challenge: URLAuthenticationChallenge
 9 |     ) async -> (URLSession.AuthChallengeDisposition, URLCredential?) {
10 |         await authenticationInterceptor?.urlSession(session, task: task, didReceive: challenge) ?? (.performDefaultHandling, nil)
   |                                                                                                                              `- error: 'nil' requires a contextual type
11 |     }
12 |
/host/spi-builder-workspace/Sources/EZNetworking/Core/Session/Interceptors/Protocols/RedirectInterceptor.swift:6:161: error: cannot find type 'URLRequest' in scope
4 | public protocol RedirectInterceptor: AnyObject {
5 |     /// Intercepts URL redirection before the request is performed.
6 |     func urlSession(_ session: URLSession, task: URLSessionTask, willPerformHTTPRedirection response: HTTPURLResponse, newRequest request: URLRequest) async -> URLRequest?
  |                                                                                                                                                                 `- error: cannot find type 'URLRequest' in scope
7 | }
8 |
/host/spi-builder-workspace/Sources/EZNetworking/Core/Session/Interceptors/Protocols/RedirectInterceptor.swift:6:140: error: cannot find type 'URLRequest' in scope
4 | public protocol RedirectInterceptor: AnyObject {
5 |     /// Intercepts URL redirection before the request is performed.
6 |     func urlSession(_ session: URLSession, task: URLSessionTask, willPerformHTTPRedirection response: HTTPURLResponse, newRequest request: URLRequest) async -> URLRequest?
  |                                                                                                                                            `- error: cannot find type 'URLRequest' in scope
7 | }
8 |
/host/spi-builder-workspace/Sources/EZNetworking/Core/Session/Interceptors/Protocols/MetricsInterceptor.swift:6:95: error: cannot find type 'URLSessionTaskMetrics' in scope
4 | public protocol MetricsInterceptor: AnyObject {
5 |     /// Intercepts metrics after task completion.
6 |     func urlSession(_ session: URLSession, task: URLSessionTask, didFinishCollecting metrics: URLSessionTaskMetrics)
  |                                                                                               `- error: cannot find type 'URLSessionTaskMetrics' in scope
7 | }
8 |
/host/spi-builder-workspace/Sources/EZNetworking/Core/Session/SessionDelegate+Extensions/SessionDelegate+URLSessionTaskDelegate.swift:41:14: warning: 'is' test is always true
39 |
40 |         switch task {
41 |         case is URLSessionUploadTask:
   |              `- warning: 'is' test is always true
42 |             uploadTaskInterceptor?.urlSession(session, task: task, didCompleteWithError: error)
43 |         case is URLSessionDownloadTask:
/host/spi-builder-workspace/Sources/EZNetworking/Core/Session/SessionDelegate+Extensions/SessionDelegate+URLSessionTaskDelegate.swift:43:14: warning: 'is' test is always true
41 |         case is URLSessionUploadTask:
42 |             uploadTaskInterceptor?.urlSession(session, task: task, didCompleteWithError: error)
43 |         case is URLSessionDownloadTask:
   |              `- warning: 'is' test is always true
44 |             guard let error else { return }
45 |             downloadTaskInterceptor?.urlSession(session, task: task, didCompleteWithError: error)
/host/spi-builder-workspace/Sources/EZNetworking/Core/Session/SessionDelegate+Extensions/SessionDelegate+URLSessionTaskDelegate.swift:46:17: error: cannot find type 'URLSessionWebSocketTask' in scope
44 |             guard let error else { return }
45 |             downloadTaskInterceptor?.urlSession(session, task: task, didCompleteWithError: error)
46 |         case is URLSessionWebSocketTask:
   |                 `- error: cannot find type 'URLSessionWebSocketTask' in scope
47 |             guard let error else { return }
48 |             webSocketTaskInterceptor?.urlSession(session, task: task, didCompleteWithError: error)
/host/spi-builder-workspace/Sources/EZNetworking/Core/Session/SessionDelegate+Extensions/SessionDelegate+URLSessionTaskDelegate.swift:41:17: error: 'URLSessionUploadTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
39 |
40 |         switch task {
41 |         case is URLSessionUploadTask:
   |                 `- error: 'URLSessionUploadTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
42 |             uploadTaskInterceptor?.urlSession(session, task: task, didCompleteWithError: error)
43 |         case is URLSessionDownloadTask:
Foundation.URLSessionUploadTask:2:18: note: 'URLSessionUploadTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionUploadTask = AnyObject
  |                  `- note: 'URLSessionUploadTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/EZNetworking/Core/Session/SessionDelegate+Extensions/SessionDelegate+URLSessionTaskDelegate.swift:41:17: error: 'URLSessionUploadTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
39 |
40 |         switch task {
41 |         case is URLSessionUploadTask:
   |                 `- error: 'URLSessionUploadTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
42 |             uploadTaskInterceptor?.urlSession(session, task: task, didCompleteWithError: error)
43 |         case is URLSessionDownloadTask:
Foundation.URLSessionUploadTask:2:18: note: 'URLSessionUploadTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionUploadTask = AnyObject
  |                  `- note: 'URLSessionUploadTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/EZNetworking/Core/Session/SessionDelegate+Extensions/SessionDelegate+URLSessionTaskDelegate.swift:43:17: error: 'URLSessionDownloadTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
41 |         case is URLSessionUploadTask:
42 |             uploadTaskInterceptor?.urlSession(session, task: task, didCompleteWithError: error)
43 |         case is URLSessionDownloadTask:
   |                 `- error: 'URLSessionDownloadTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
44 |             guard let error else { return }
45 |             downloadTaskInterceptor?.urlSession(session, task: task, didCompleteWithError: error)
Foundation.URLSessionDownloadTask:2:18: note: 'URLSessionDownloadTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionDownloadTask = AnyObject
  |                  `- note: 'URLSessionDownloadTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/EZNetworking/Core/Session/SessionDelegate+Extensions/SessionDelegate+URLSessionTaskDelegate.swift:43:17: error: 'URLSessionDownloadTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
41 |         case is URLSessionUploadTask:
42 |             uploadTaskInterceptor?.urlSession(session, task: task, didCompleteWithError: error)
43 |         case is URLSessionDownloadTask:
   |                 `- error: 'URLSessionDownloadTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
44 |             guard let error else { return }
45 |             downloadTaskInterceptor?.urlSession(session, task: task, didCompleteWithError: error)
Foundation.URLSessionDownloadTask:2:18: note: 'URLSessionDownloadTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionDownloadTask = AnyObject
  |                  `- note: 'URLSessionDownloadTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/EZNetworking/Core/Session/Interceptors/Protocols/WebSocketTaskInterceptor.swift:8:59: error: cannot find type 'URLSessionWebSocketTask' in scope
 6 |
 7 |     /// Intercepts when a WebSocket task opens with a protocol.
 8 |     func urlSession(_ session: URLSession, webSocketTask: URLSessionWebSocketTask, didOpenWithProtocol protocol: String?)
   |                                                           `- error: cannot find type 'URLSessionWebSocketTask' in scope
 9 |
10 |     /// Intercepts when a WebSocket task closes with a code and reason.
/host/spi-builder-workspace/Sources/EZNetworking/Core/Session/Interceptors/Protocols/WebSocketTaskInterceptor.swift:11:59: error: cannot find type 'URLSessionWebSocketTask' in scope
 9 |
10 |     /// Intercepts when a WebSocket task closes with a code and reason.
11 |     func urlSession(_ session: URLSession, webSocketTask: URLSessionWebSocketTask, didCloseWith closeCode: URLSessionWebSocketTask.CloseCode, reason: Data?)
   |                                                           `- error: cannot find type 'URLSessionWebSocketTask' in scope
12 |
13 |     /// Intercepts when a task completes with  an error.
/host/spi-builder-workspace/Sources/EZNetworking/Core/Session/Interceptors/Protocols/WebSocketTaskInterceptor.swift:11:108: error: cannot find type 'URLSessionWebSocketTask' in scope
 9 |
10 |     /// Intercepts when a WebSocket task closes with a code and reason.
11 |     func urlSession(_ session: URLSession, webSocketTask: URLSessionWebSocketTask, didCloseWith closeCode: URLSessionWebSocketTask.CloseCode, reason: Data?)
   |                                                                                                            `- error: cannot find type 'URLSessionWebSocketTask' in scope
12 |
13 |     /// Intercepts when a task completes with  an error.
/host/spi-builder-workspace/Sources/EZNetworking/Core/Session/SessionDelegate+Extensions/SessionDelegate+URLSessionWebSocketDelegate.swift:3:28: error: cannot find type 'URLSessionWebSocketDelegate' in scope
 1 | import Foundation
 2 |
 3 | extension SessionDelegate: URLSessionWebSocketDelegate {
   |                            `- error: cannot find type 'URLSessionWebSocketDelegate' in scope
 4 |     public func urlSession(
 5 |         _ session: URLSession,
/host/spi-builder-workspace/Sources/EZNetworking/Core/Session/SessionDelegate+Extensions/SessionDelegate+URLSessionWebSocketDelegate.swift:6:24: error: cannot find type 'URLSessionWebSocketTask' in scope
 4 |     public func urlSession(
 5 |         _ session: URLSession,
 6 |         webSocketTask: URLSessionWebSocketTask,
   |                        `- error: cannot find type 'URLSessionWebSocketTask' in scope
 7 |         didOpenWithProtocol protocol: String?
 8 |     ) {
/host/spi-builder-workspace/Sources/EZNetworking/Core/Session/SessionDelegate+Extensions/SessionDelegate+URLSessionWebSocketDelegate.swift:5:20: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 3 | extension SessionDelegate: URLSessionWebSocketDelegate {
 4 |     public func urlSession(
 5 |         _ session: URLSession,
   |                    `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 6 |         webSocketTask: URLSessionWebSocketTask,
 7 |         didOpenWithProtocol protocol: String?
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/EZNetworking/Core/Session/SessionDelegate+Extensions/SessionDelegate+URLSessionWebSocketDelegate.swift:14:24: error: cannot find type 'URLSessionWebSocketTask' in scope
12 |     public func urlSession(
13 |         _ session: URLSession,
14 |         webSocketTask: URLSessionWebSocketTask,
   |                        `- error: cannot find type 'URLSessionWebSocketTask' in scope
15 |         didCloseWith closeCode: URLSessionWebSocketTask.CloseCode,
16 |         reason: Data?
/host/spi-builder-workspace/Sources/EZNetworking/Core/Session/SessionDelegate+Extensions/SessionDelegate+URLSessionWebSocketDelegate.swift:15:33: error: cannot find type 'URLSessionWebSocketTask' in scope
13 |         _ session: URLSession,
14 |         webSocketTask: URLSessionWebSocketTask,
15 |         didCloseWith closeCode: URLSessionWebSocketTask.CloseCode,
   |                                 `- error: cannot find type 'URLSessionWebSocketTask' in scope
16 |         reason: Data?
17 |     ) {
/host/spi-builder-workspace/Sources/EZNetworking/Core/Session/SessionDelegate+Extensions/SessionDelegate+URLSessionWebSocketDelegate.swift:13:20: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
11 |
12 |     public func urlSession(
13 |         _ session: URLSession,
   |                    `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
14 |         webSocketTask: URLSessionWebSocketTask,
15 |         didCloseWith closeCode: URLSessionWebSocketTask.CloseCode,
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/EZNetworking/Core/Session/SessionDelegate+Extensions/SessionDelegate+URLSessionWebSocketDelegate.swift:9:45: error: incorrect argument labels in call (have '_:webSocketTask:didOpenWithProtocol:', expected '_:task:didCompleteWithError:')
 7 |         didOpenWithProtocol protocol: String?
 8 |     ) {
 9 |         webSocketTaskInterceptor?.urlSession(session, webSocketTask: webSocketTask, didOpenWithProtocol: `protocol`)
   |                                             `- error: incorrect argument labels in call (have '_:webSocketTask:didOpenWithProtocol:', expected '_:task:didCompleteWithError:')
10 |     }
11 |
/host/spi-builder-workspace/Sources/EZNetworking/Core/Session/SessionDelegate+Extensions/SessionDelegate+URLSessionWebSocketDelegate.swift:9:106: error: argument type 'String?' does not conform to expected type 'Error'
 7 |         didOpenWithProtocol protocol: String?
 8 |     ) {
 9 |         webSocketTaskInterceptor?.urlSession(session, webSocketTask: webSocketTask, didOpenWithProtocol: `protocol`)
   |                                                                                                          `- error: argument type 'String?' does not conform to expected type 'Error'
10 |     }
11 |
/host/spi-builder-workspace/Sources/EZNetworking/Core/Session/SessionDelegate+Extensions/SessionDelegate+URLSessionWebSocketDelegate.swift:18:45: error: extra arguments at positions #2, #3, #4 in call
16 |         reason: Data?
17 |     ) {
18 |         webSocketTaskInterceptor?.urlSession(session, webSocketTask: webSocketTask, didCloseWith: closeCode, reason: reason)
   |                                             `- error: extra arguments at positions #2, #3, #4 in call
19 |     }
20 | }
/host/spi-builder-workspace/Sources/EZNetworking/Core/Session/Interceptors/Protocols/WebSocketTaskInterceptor.swift:14:10: note: 'urlSession(_:task:didCompleteWithError:)' declared here
12 |
13 |     /// Intercepts when a task completes with  an error.
14 |     func urlSession(_ session: URLSession, task: URLSessionTask, didCompleteWithError error: Error)
   |          `- note: 'urlSession(_:task:didCompleteWithError:)' declared here
15 | }
16 |
/host/spi-builder-workspace/Sources/EZNetworking/Core/Session/SessionDelegate+Extensions/SessionDelegate+URLSessionWebSocketDelegate.swift:18:45: error: missing arguments for parameters 'task', 'didCompleteWithError' in call
16 |         reason: Data?
17 |     ) {
18 |         webSocketTaskInterceptor?.urlSession(session, webSocketTask: webSocketTask, didCloseWith: closeCode, reason: reason)
   |                                             `- error: missing arguments for parameters 'task', 'didCompleteWithError' in call
19 |     }
20 | }
/host/spi-builder-workspace/Sources/EZNetworking/Core/Session/Interceptors/Protocols/WebSocketTaskInterceptor.swift:14:10: note: 'urlSession(_:task:didCompleteWithError:)' declared here
12 |
13 |     /// Intercepts when a task completes with  an error.
14 |     func urlSession(_ session: URLSession, task: URLSessionTask, didCompleteWithError error: Error)
   |          `- note: 'urlSession(_:task:didCompleteWithError:)' declared here
15 | }
16 |
/host/spi-builder-workspace/Sources/EZNetworking/Core/Session/Interceptors/Protocols/DataTaskInterceptor.swift:15:128: error: 'ResponseDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
13 |
14 |     /// Intercepts the response for a data task before it is processed.
15 |     func urlSession(_ session: URLSession, dataTask: URLSessionDataTask, didReceive response: URLResponse) async -> URLSession.ResponseDisposition
   |                                                                                                                                `- error: 'ResponseDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
16 | }
17 |
/host/spi-builder-workspace/Sources/EZNetworking/Core/Session/URLSessionProtocols/URLSessionDownloadTaskProtocol.swift:9:1: error: non-nominal type 'URLSessionDownloadTask' (aka 'AnyObject') cannot be extended [#NominalTypes]
 7 | }
 8 |
 9 | extension URLSessionDownloadTask: URLSessionDownloadTaskProtocol {}
   | `- error: non-nominal type 'URLSessionDownloadTask' (aka 'AnyObject') cannot be extended [#NominalTypes]
10 |
/host/spi-builder-workspace/Sources/EZNetworking/Core/Session/URLSessionProtocols/URLSessionProtocol.swift:4:28: error: cannot find type 'URLRequest' in scope
 2 |
 3 | public protocol URLSessionProtocol {
 4 |     func data(for request: URLRequest) async throws -> (Data, URLResponse)
   |                            `- error: cannot find type 'URLRequest' in scope
 5 |
 6 |     func webSocketTaskInspectable(with request: URLRequest) -> URLSessionWebSocketTaskProtocol
/host/spi-builder-workspace/Sources/EZNetworking/Core/Session/URLSessionProtocols/URLSessionProtocol.swift:4:63: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 2 |
 3 | public protocol URLSessionProtocol {
 4 |     func data(for request: URLRequest) async throws -> (Data, URLResponse)
   |                                                               `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 5 |
 6 |     func webSocketTaskInspectable(with request: URLRequest) -> URLSessionWebSocketTaskProtocol
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/EZNetworking/Core/Session/URLSessionProtocols/URLSessionProtocol.swift:6:49: error: cannot find type 'URLRequest' in scope
 4 |     func data(for request: URLRequest) async throws -> (Data, URLResponse)
 5 |
 6 |     func webSocketTaskInspectable(with request: URLRequest) -> URLSessionWebSocketTaskProtocol
   |                                                 `- error: cannot find type 'URLRequest' in scope
 7 |
 8 |     func bytes(for request: URLRequest) async throws -> (AsyncThrowingStream<UInt8, Error>, URLResponse)
/host/spi-builder-workspace/Sources/EZNetworking/Core/Session/URLSessionProtocols/URLSessionProtocol.swift:8:29: error: cannot find type 'URLRequest' in scope
 6 |     func webSocketTaskInspectable(with request: URLRequest) -> URLSessionWebSocketTaskProtocol
 7 |
 8 |     func bytes(for request: URLRequest) async throws -> (AsyncThrowingStream<UInt8, Error>, URLResponse)
   |                             `- error: cannot find type 'URLRequest' in scope
 9 |
10 |     func downloadTaskInspectable(with request: URLRequest) -> URLSessionDownloadTaskProtocol
/host/spi-builder-workspace/Sources/EZNetworking/Core/Session/URLSessionProtocols/URLSessionProtocol.swift:8:93: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 6 |     func webSocketTaskInspectable(with request: URLRequest) -> URLSessionWebSocketTaskProtocol
 7 |
 8 |     func bytes(for request: URLRequest) async throws -> (AsyncThrowingStream<UInt8, Error>, URLResponse)
   |                                                                                             `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 9 |
10 |     func downloadTaskInspectable(with request: URLRequest) -> URLSessionDownloadTaskProtocol
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/EZNetworking/Core/Session/URLSessionProtocols/URLSessionProtocol.swift:10:48: error: cannot find type 'URLRequest' in scope
 8 |     func bytes(for request: URLRequest) async throws -> (AsyncThrowingStream<UInt8, Error>, URLResponse)
 9 |
10 |     func downloadTaskInspectable(with request: URLRequest) -> URLSessionDownloadTaskProtocol
   |                                                `- error: cannot find type 'URLRequest' in scope
11 |     func downloadTaskInspectable(withResumeData resumeData: Data) -> URLSessionDownloadTaskProtocol
12 |
/host/spi-builder-workspace/Sources/EZNetworking/Core/Session/URLSessionProtocols/URLSessionProtocol.swift:13:46: error: cannot find type 'URLRequest' in scope
11 |     func downloadTaskInspectable(withResumeData resumeData: Data) -> URLSessionDownloadTaskProtocol
12 |
13 |     func uploadTaskInspectable(with request: URLRequest, fromFile fileURL: URL) -> URLSessionUploadTaskProtocol
   |                                              `- error: cannot find type 'URLRequest' in scope
14 |     func uploadTaskInspectable(withResumeData resumeData: Data) -> URLSessionUploadTaskProtocol
15 | }
/host/spi-builder-workspace/Sources/EZNetworking/Core/Session/URLSessionProtocols/URLSessionProtocol.swift:17:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
15 | }
16 |
17 | extension URLSession: URLSessionProtocol {
   | `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
18 |     public func downloadTaskInspectable(with request: URLRequest) -> URLSessionDownloadTaskProtocol {
19 |         let task: URLSessionDownloadTask = downloadTask(with: request)
/host/spi-builder-workspace/Sources/EZNetworking/Core/Session/URLSessionProtocols/URLSessionUploadTaskProtocol.swift:9:1: error: non-nominal type 'URLSessionUploadTask' (aka 'AnyObject') cannot be extended [#NominalTypes]
 7 | }
 8 |
 9 | extension URLSessionUploadTask: URLSessionUploadTaskProtocol {}
   | `- error: non-nominal type 'URLSessionUploadTask' (aka 'AnyObject') cannot be extended [#NominalTypes]
10 |
/host/spi-builder-workspace/Sources/EZNetworking/Core/Session/URLSessionProtocols/URLSessionWebSocketTaskProtocol.swift:6:33: error: cannot find type 'URLSessionWebSocketTask' in scope
 4 | public protocol URLSessionWebSocketTaskProtocol {
 5 |     func resume()
 6 |     func cancel(with closeCode: URLSessionWebSocketTask.CloseCode, reason: Data?)
   |                                 `- error: cannot find type 'URLSessionWebSocketTask' in scope
 7 |
 8 |     func sendPing() async throws
/host/spi-builder-workspace/Sources/EZNetworking/Core/Session/URLSessionProtocols/URLSessionWebSocketTaskProtocol.swift:11:26: error: cannot find type 'URLSessionWebSocketTask' in scope
 9 |     func sendPing(pongReceiveHandler: @escaping @Sendable ((any Error)?) -> Void)
10 |
11 |     func send(_ message: URLSessionWebSocketTask.Message) async throws
   |                          `- error: cannot find type 'URLSessionWebSocketTask' in scope
12 |     func send(_ message: URLSessionWebSocketTask.Message, completionHandler: @escaping @Sendable (Error?) -> Void)
13 |
/host/spi-builder-workspace/Sources/EZNetworking/Core/Session/URLSessionProtocols/URLSessionWebSocketTaskProtocol.swift:12:26: error: cannot find type 'URLSessionWebSocketTask' in scope
10 |
11 |     func send(_ message: URLSessionWebSocketTask.Message) async throws
12 |     func send(_ message: URLSessionWebSocketTask.Message, completionHandler: @escaping @Sendable (Error?) -> Void)
   |                          `- error: cannot find type 'URLSessionWebSocketTask' in scope
13 |
14 |     func receive() async throws -> URLSessionWebSocketTask.Message
/host/spi-builder-workspace/Sources/EZNetworking/Core/Session/URLSessionProtocols/URLSessionWebSocketTaskProtocol.swift:14:36: error: cannot find type 'URLSessionWebSocketTask' in scope
12 |     func send(_ message: URLSessionWebSocketTask.Message, completionHandler: @escaping @Sendable (Error?) -> Void)
13 |
14 |     func receive() async throws -> URLSessionWebSocketTask.Message
   |                                    `- error: cannot find type 'URLSessionWebSocketTask' in scope
15 |     func receive(completionHandler: @escaping @Sendable (Result<URLSessionWebSocketTask.Message, Error>) -> Void)
16 |
/host/spi-builder-workspace/Sources/EZNetworking/Core/Session/URLSessionProtocols/URLSessionWebSocketTaskProtocol.swift:15:65: error: cannot find type 'URLSessionWebSocketTask' in scope
13 |
14 |     func receive() async throws -> URLSessionWebSocketTask.Message
15 |     func receive(completionHandler: @escaping @Sendable (Result<URLSessionWebSocketTask.Message, Error>) -> Void)
   |                                                                 `- error: cannot find type 'URLSessionWebSocketTask' in scope
16 |
17 |     var closeCode: URLSessionWebSocketTask.CloseCode { get }
/host/spi-builder-workspace/Sources/EZNetworking/Core/Session/URLSessionProtocols/URLSessionWebSocketTaskProtocol.swift:17:20: error: cannot find type 'URLSessionWebSocketTask' in scope
15 |     func receive(completionHandler: @escaping @Sendable (Result<URLSessionWebSocketTask.Message, Error>) -> Void)
16 |
17 |     var closeCode: URLSessionWebSocketTask.CloseCode { get }
   |                    `- error: cannot find type 'URLSessionWebSocketTask' in scope
18 |     var closeReason: Data? { get }
19 | }
/host/spi-builder-workspace/Sources/EZNetworking/Core/Session/URLSessionProtocols/URLSessionWebSocketTaskProtocol.swift:35:11: error: cannot find type 'URLSessionWebSocketTask' in scope
33 | }
34 |
35 | extension URLSessionWebSocketTask: URLSessionWebSocketTaskProtocol {}
   |           `- error: cannot find type 'URLSessionWebSocketTask' in scope
36 |
/host/spi-builder-workspace/Sources/EZNetworking/Core/Validator/ResponseValidator.swift:4:43: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 2 |
 3 | public protocol ResponseValidator {
 4 |     func validateStatus(from urlResponse: URLResponse?) throws
   |                                           `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 5 | }
 6 |
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/EZNetworking/Core/Validator/ResponseValidator.swift:14:50: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
12 |     }
13 |
14 |     public func validateStatus(from urlResponse: URLResponse?) throws {
   |                                                  `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
15 |         guard let urlResponse else {
16 |             throw NetworkingError.responseValidationFailed(reason: .noURLResponse)
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/EZNetworking/Core/Validator/ResponseValidator.swift:32:45: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
30 |     }
31 |
32 |     private func convert(_ httpURLResponse: HTTPURLResponse) -> HTTPResponse {
   |                                             `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
33 |         // Convert headers from [AnyHashable: Any] to [String: String]
34 |         let headers = httpURLResponse.allHeaderFields.reduce(into: [String: String]()) { result, pair in
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/EZNetworking/Core/Validator/ResponseValidator.swift:18:49: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
16 |             throw NetworkingError.responseValidationFailed(reason: .noURLResponse)
17 |         }
18 |         guard let httpURLResponse = urlResponse as? HTTPURLResponse else {
   |                                                 `- warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
19 |             throw NetworkingError.responseValidationFailed(reason: .noHTTPURLResponse)
20 |         }
/host/spi-builder-workspace/Sources/EZNetworking/Core/Validator/ResponseValidator.swift:18:53: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
16 |             throw NetworkingError.responseValidationFailed(reason: .noURLResponse)
17 |         }
18 |         guard let httpURLResponse = urlResponse as? HTTPURLResponse else {
   |                                                     `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
19 |             throw NetworkingError.responseValidationFailed(reason: .noHTTPURLResponse)
20 |         }
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/EZNetworking/Core/Validator/ResponseValidator.swift:34:39: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
32 |     private func convert(_ httpURLResponse: HTTPURLResponse) -> HTTPResponse {
33 |         // Convert headers from [AnyHashable: Any] to [String: String]
34 |         let headers = httpURLResponse.allHeaderFields.reduce(into: [String: String]()) { result, pair in
   |                                       `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
35 |             if let key = pair.key as? String, let value = pair.value as? String {
36 |                 result[key] = value
/host/spi-builder-workspace/Sources/EZNetworking/Core/Validator/ResponseValidator.swift:39:57: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
37 |             }
38 |         }
39 |         return HTTPResponse(statusCode: httpURLResponse.statusCode, headers: headers)
   |                                                         `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
40 |     }
41 |
/host/spi-builder-workspace/Sources/EZNetworking/Core/Session/URLSessionProtocols/URLSessionProtocol.swift:18:55: error: cannot find type 'URLRequest' in scope
16 |
17 | extension URLSession: URLSessionProtocol {
18 |     public func downloadTaskInspectable(with request: URLRequest) -> URLSessionDownloadTaskProtocol {
   |                                                       `- error: cannot find type 'URLRequest' in scope
19 |         let task: URLSessionDownloadTask = downloadTask(with: request)
20 |         return task as URLSessionDownloadTaskProtocol
/host/spi-builder-workspace/Sources/EZNetworking/Core/Session/URLSessionProtocols/URLSessionProtocol.swift:28:53: error: cannot find type 'URLRequest' in scope
26 |     }
27 |
28 |     public func uploadTaskInspectable(with request: URLRequest, fromFile fileURL: URL) -> URLSessionUploadTaskProtocol {
   |                                                     `- error: cannot find type 'URLRequest' in scope
29 |         let task: URLSessionUploadTask = uploadTask(with: request, fromFile: fileURL)
30 |         return task as URLSessionUploadTaskProtocol
/host/spi-builder-workspace/Sources/EZNetworking/Core/Session/URLSessionProtocols/URLSessionProtocol.swift:38:56: error: cannot find type 'URLRequest' in scope
36 |     }
37 |
38 |     public func webSocketTaskInspectable(with request: URLRequest) -> URLSessionWebSocketTaskProtocol {
   |                                                        `- error: cannot find type 'URLRequest' in scope
39 |         let task: URLSessionWebSocketTask = webSocketTask(with: request)
40 |         return task as URLSessionWebSocketTaskProtocol
/host/spi-builder-workspace/Sources/EZNetworking/Core/Session/URLSessionProtocols/URLSessionProtocol.swift:54:36: error: cannot find type 'URLRequest' in scope
52 |     ///
53 |     /// - Note: Cancelling the stream propagates cancellation to the underlying `URLSessionTask`.
54 |     public func bytes(for request: URLRequest) async throws -> (AsyncThrowingStream<UInt8, Error>, URLResponse) {
   |                                    `- error: cannot find type 'URLRequest' in scope
55 |         let (bytes, response) = try await self.bytes(for: request, delegate: nil)
56 |
[#NominalTypes]: <https://docs.swift.org/compiler/documentation/diagnostics/nominal-types>
BUILD FAILURE 6.3 linux