Build Information
Failed to build EZNetworking, reference main (ecfed1), with Swift 6.2 for Android on 11 Aug 2026 16:34:55 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-53886769-1":/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:android-6.2-latest swift build --swift-sdk aarch64-unknown-linux-android28 2>&1Build Log
28 | defer { receivedData.removeAll(keepingCapacity: false) }
29 | if let error {
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/DefaultInterceptors/DefaultUploadTaskInterceptor.swift:37:53: error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'response'
35 | }
36 | do {
37 | try validator.validateStatus(from: task.response)
| `- error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'response'
38 | onEvent(.onUploadCompleted(receivedData))
39 | } catch {
/host/spi-builder-workspace/Sources/EZNetworking/Core/Session/Interceptors/DefaultInterceptors/DefaultWebSocketTaskInterceptor.swift:10:59: error: cannot find type 'URLSessionWebSocketTask' in scope
8 | }
9 |
10 | func urlSession(_ session: URLSession, webSocketTask: URLSessionWebSocketTask, didOpenWithProtocol protocol: String?) {
| `- error: cannot find type 'URLSessionWebSocketTask' in scope
11 | onEvent?(.didOpenWithProtocol(protocolStr: `protocol`))
12 | }
/host/spi-builder-workspace/Sources/EZNetworking/Core/Session/Interceptors/DefaultInterceptors/DefaultWebSocketTaskInterceptor.swift:10:32: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
8 | }
9 |
10 | func urlSession(_ session: URLSession, webSocketTask: URLSessionWebSocketTask, didOpenWithProtocol protocol: String?) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
11 | onEvent?(.didOpenWithProtocol(protocolStr: `protocol`))
12 | }
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/Interceptors/DefaultInterceptors/DefaultWebSocketTaskInterceptor.swift:14:32: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
12 | }
13 |
14 | func urlSession(_ session: URLSession, task: URLSessionTask, didCompleteWithError error: any Error) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
15 | onEvent?(.didOpenWithError(error: error.asSendableError))
16 | }
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/Interceptors/DefaultInterceptors/DefaultWebSocketTaskInterceptor.swift:14:50: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
12 | }
13 |
14 | func urlSession(_ session: URLSession, task: URLSessionTask, didCompleteWithError error: any Error) {
| `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
15 | onEvent?(.didOpenWithError(error: error.asSendableError))
16 | }
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/DefaultInterceptors/DefaultWebSocketTaskInterceptor.swift:18:59: error: cannot find type 'URLSessionWebSocketTask' in scope
16 | }
17 |
18 | func urlSession(_ session: URLSession, webSocketTask: URLSessionWebSocketTask, didCloseWith closeCode: URLSessionWebSocketTask.CloseCode, reason: Data?) {
| `- error: cannot find type 'URLSessionWebSocketTask' in scope
19 | onEvent?(.didClose(code: closeCode, reason: reason))
20 | }
/host/spi-builder-workspace/Sources/EZNetworking/Core/Session/Interceptors/DefaultInterceptors/DefaultWebSocketTaskInterceptor.swift:18:108: error: cannot find type 'URLSessionWebSocketTask' in scope
16 | }
17 |
18 | func urlSession(_ session: URLSession, webSocketTask: URLSessionWebSocketTask, didCloseWith closeCode: URLSessionWebSocketTask.CloseCode, reason: Data?) {
| `- error: cannot find type 'URLSessionWebSocketTask' in scope
19 | onEvent?(.didClose(code: closeCode, reason: reason))
20 | }
/host/spi-builder-workspace/Sources/EZNetworking/Core/Session/Interceptors/DefaultInterceptors/DefaultWebSocketTaskInterceptor.swift:18:32: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
16 | }
17 |
18 | func urlSession(_ session: URLSession, webSocketTask: URLSessionWebSocketTask, didCloseWith closeCode: URLSessionWebSocketTask.CloseCode, reason: Data?) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
19 | onEvent?(.didClose(code: closeCode, reason: reason))
20 | }
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/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/Interceptors/Protocols/WebSocketTaskInterceptor.swift:20:25: error: cannot find type 'URLSessionWebSocketTask' in scope
18 | case didOpenWithProtocol(protocolStr: String?)
19 | case didOpenWithError(error: SendableError)
20 | case didClose(code: URLSessionWebSocketTask.CloseCode, reason: Data?)
| `- error: cannot find type 'URLSessionWebSocketTask' in scope
21 | }
22 |
/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:6:32: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
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: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
7 |
8 | /// Intercepts authentication challenges for the entire URLSession.
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/Interceptors/Protocols/AuthenticationInterceptor.swift:6:50: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
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: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
7 |
8 | /// Intercepts authentication challenges for the entire URLSession.
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:88: error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
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: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
7 |
8 | /// Intercepts authentication challenges for the entire URLSession.
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/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/Interceptors/Protocols/AuthenticationInterceptor.swift:9:32: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
7 |
8 | /// Intercepts authentication challenges for the entire URLSession.
9 | func urlSession(_ session: URLSession, didReceive challenge: URLAuthenticationChallenge) async -> (URLSession.AuthChallengeDisposition, URLCredential?)
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
10 | }
11 |
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/Interceptors/Protocols/AuthenticationInterceptor.swift:9:66: error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
7 |
8 | /// Intercepts authentication challenges for the entire URLSession.
9 | func urlSession(_ session: URLSession, didReceive challenge: URLAuthenticationChallenge) async -> (URLSession.AuthChallengeDisposition, URLCredential?)
| `- error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
10 | }
11 |
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
[85/89] Compiling EZNetworking WebSocketRequest.swift
/host/spi-builder-workspace/Sources/EZNetworking/Core/Request/Request.swift:10:22: error: cannot find type 'URLRequest' in scope
8 | var body: HTTPBody? { get }
9 | var timeoutInterval: TimeInterval { get }
10 | var cachePolicy: URLRequest.CachePolicy { get }
| `- error: cannot find type 'URLRequest' in scope
11 | }
12 |
/host/spi-builder-workspace/Sources/EZNetworking/Core/Request/Request.swift:16:29: error: cannot find type 'URLRequest' in scope
14 | extension Request {
15 | public var timeoutInterval: TimeInterval { 60 }
16 | public var cachePolicy: URLRequest.CachePolicy { .useProtocolCachePolicy }
| `- error: cannot find type 'URLRequest' in scope
17 | }
18 |
/host/spi-builder-workspace/Sources/EZNetworking/Core/Request/Request.swift:21:93: error: cannot find type 'URLRequest' in scope
19 | // additions
20 | extension Request {
21 | public func getURLRequest(allowedSchemes: URLBuilder.URLSchemePolicy = .http) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
22 | let url = try URLBuilder(allowedSchemes: allowedSchemes).buildAndValidate(baseUrl)
23 |
/host/spi-builder-workspace/Sources/EZNetworking/Core/Request/Request.swift:24:23: error: cannot find 'URLRequest' in scope
22 | let url = try URLBuilder(allowedSchemes: allowedSchemes).buildAndValidate(baseUrl)
23 |
24 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
25 | request.httpMethod = httpMethod.rawValue
26 | request.httpBody = body?.toData()
/host/spi-builder-workspace/Sources/EZNetworking/Core/HTTP/Parameters/HTTPParameterApplier.swift:6:75: error: cannot find type 'URLRequest' in scope
4 | private init() {}
5 |
6 | static func apply(_ parameters: [HTTPParameter], to urlRequest: inout URLRequest) {
| `- error: cannot find type 'URLRequest' in scope
7 | guard !parameters.isEmpty,
8 | let url = urlRequest.url,
/host/spi-builder-workspace/Sources/EZNetworking/Core/HTTP/Headers/HTTPHeaderApplier.swift:6:69: error: cannot find type 'URLRequest' in scope
4 | private init() {}
5 |
6 | static func apply(_ headers: [HTTPHeader], to urlRequest: inout URLRequest) {
| `- error: cannot find type 'URLRequest' in scope
7 | for header in headers {
8 | urlRequest.setValue(header.value, forHTTPHeaderField: header.key)
/host/spi-builder-workspace/Sources/EZNetworking/Core/Request/SpecializedRequests/EZRequest.swift:10:22: error: cannot find type 'URLRequest' in scope
8 | var body: HTTPBody?
9 | var timeoutInterval: TimeInterval
10 | var cachePolicy: URLRequest.CachePolicy
| `- error: cannot find type 'URLRequest' in scope
11 | }
12 |
/host/spi-builder-workspace/Sources/EZNetworking/Core/Request/SpecializedRequests/SSERequest.swift:33:29: error: cannot find type 'URLRequest' in scope
31 | public var parameters: [HTTPParameter]? { nil }
32 | public var body: (any HTTPBody)? { nil }
33 | public var cachePolicy: URLRequest.CachePolicy { .reloadIgnoringLocalCacheData }
| `- error: cannot find type 'URLRequest' in scope
34 | public var timeoutInterval: TimeInterval { 60 } // 1 minute
35 |
/host/spi-builder-workspace/Sources/EZNetworking/Core/Request/SpecializedRequests/WebSocketRequest.swift:28:29: error: cannot find type 'URLRequest' in scope
26 | public var parameters: [HTTPParameter]? { nil }
27 | public var body: (any HTTPBody)? { nil }
28 | public var cachePolicy: URLRequest.CachePolicy { .reloadIgnoringLocalCacheData }
| `- error: cannot find type 'URLRequest' in scope
29 | }
30 |
/host/spi-builder-workspace/Sources/EZNetworking/Core/Session/Interceptors/DefaultInterceptors/DefaultDownloadTaskInterceptor.swift:16:32: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
14 | }
15 |
16 | func urlSession(_ session: URLSession, downloadTask: URLSessionDownloadTask, didFinishDownloadingTo location: URL) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
17 | do {
18 | try validator.validateStatus(from: downloadTask.response)
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/Interceptors/DefaultInterceptors/DefaultDownloadTaskInterceptor.swift:16:58: error: 'URLSessionDownloadTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
14 | }
15 |
16 | func urlSession(_ session: URLSession, downloadTask: URLSessionDownloadTask, didFinishDownloadingTo location: URL) {
| `- error: 'URLSessionDownloadTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
17 | do {
18 | try validator.validateStatus(from: downloadTask.response)
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/DefaultInterceptors/DefaultDownloadTaskInterceptor.swift:25:32: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
23 | }
24 |
25 | func urlSession(_ session: URLSession, downloadTask: URLSessionDownloadTask, didWriteData bytesWritten: Int64, totalBytesWritten: Int64, totalBytesExpectedToWrite: Int64) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
26 | guard totalBytesExpectedToWrite > 0 else { return }
27 | let currentProgress = Double(totalBytesWritten) / Double(totalBytesExpectedToWrite)
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/Interceptors/DefaultInterceptors/DefaultDownloadTaskInterceptor.swift:25:58: error: 'URLSessionDownloadTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
23 | }
24 |
25 | func urlSession(_ session: URLSession, downloadTask: URLSessionDownloadTask, didWriteData bytesWritten: Int64, totalBytesWritten: Int64, totalBytesExpectedToWrite: Int64) {
| `- error: 'URLSessionDownloadTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
26 | guard totalBytesExpectedToWrite > 0 else { return }
27 | let currentProgress = Double(totalBytesWritten) / Double(totalBytesExpectedToWrite)
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/DefaultInterceptors/DefaultDownloadTaskInterceptor.swift:31:32: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
29 | }
30 |
31 | func urlSession(_ session: URLSession, downloadTask: URLSessionDownloadTask, didResumeAtOffset fileOffset: Int64, expectedTotalBytes: Int64) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
32 | guard expectedTotalBytes > 0 else { return }
33 | let currentProgress = Double(fileOffset) / Double(expectedTotalBytes)
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/Interceptors/DefaultInterceptors/DefaultDownloadTaskInterceptor.swift:31:58: error: 'URLSessionDownloadTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
29 | }
30 |
31 | func urlSession(_ session: URLSession, downloadTask: URLSessionDownloadTask, didResumeAtOffset fileOffset: Int64, expectedTotalBytes: Int64) {
| `- error: 'URLSessionDownloadTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
32 | guard expectedTotalBytes > 0 else { return }
33 | let currentProgress = Double(fileOffset) / Double(expectedTotalBytes)
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/DefaultInterceptors/DefaultDownloadTaskInterceptor.swift:37:32: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
35 | }
36 |
37 | func urlSession(_ session: URLSession, task: URLSessionTask, didCompleteWithError error: Error) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
38 | let resumeData = (error as? URLError)?.downloadTaskResumeData
39 | onEvent(.onDownloadFailed(error.asSendableError, resumeData: resumeData))
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/Interceptors/DefaultInterceptors/DefaultDownloadTaskInterceptor.swift:37:50: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
35 | }
36 |
37 | func urlSession(_ session: URLSession, task: URLSessionTask, didCompleteWithError error: Error) {
| `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
38 | let resumeData = (error as? URLError)?.downloadTaskResumeData
39 | onEvent(.onDownloadFailed(error.asSendableError, resumeData: resumeData))
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/DefaultInterceptors/DefaultDownloadTaskInterceptor.swift:18:61: error: value of type 'URLSessionDownloadTask' (aka 'AnyObject') has no member 'response'
16 | func urlSession(_ session: URLSession, downloadTask: URLSessionDownloadTask, didFinishDownloadingTo location: URL) {
17 | do {
18 | try validator.validateStatus(from: downloadTask.response)
| `- error: value of type 'URLSessionDownloadTask' (aka 'AnyObject') has no member 'response'
19 | onEvent(.onDownloadCompleted(location))
20 | } catch {
/host/spi-builder-workspace/Sources/EZNetworking/Core/Session/Interceptors/DefaultInterceptors/DefaultDownloadTaskInterceptor.swift:38:48: error: value of type 'URLError' has no member 'downloadTaskResumeData'
36 |
37 | func urlSession(_ session: URLSession, task: URLSessionTask, didCompleteWithError error: Error) {
38 | let resumeData = (error as? URLError)?.downloadTaskResumeData
| `- error: value of type 'URLError' has no member 'downloadTaskResumeData'
39 | onEvent(.onDownloadFailed(error.asSendableError, resumeData: resumeData))
40 | }
/host/spi-builder-workspace/Sources/EZNetworking/Core/Session/Interceptors/DefaultInterceptors/DefaultUploadTaskInterceptor.swift:17:32: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
15 | }
16 |
17 | func urlSession(_ session: URLSession, task: URLSessionTask, didSendBodyData bytesSent: Int64, totalBytesSent: Int64, totalBytesExpectedToSend: Int64) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
18 | guard totalBytesExpectedToSend > 0 else { return }
19 | let currentProgress = Double(totalBytesSent) / Double(totalBytesExpectedToSend)
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/Interceptors/DefaultInterceptors/DefaultUploadTaskInterceptor.swift:17:50: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
15 | }
16 |
17 | func urlSession(_ session: URLSession, task: URLSessionTask, didSendBodyData bytesSent: Int64, totalBytesSent: Int64, totalBytesExpectedToSend: Int64) {
| `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
18 | guard totalBytesExpectedToSend > 0 else { return }
19 | let currentProgress = Double(totalBytesSent) / Double(totalBytesExpectedToSend)
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/DefaultInterceptors/DefaultUploadTaskInterceptor.swift:23:32: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
21 | }
22 |
23 | func urlSession(_ session: URLSession, dataTask: URLSessionDataTask, didReceive data: Data) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
24 | receivedData.append(data)
25 | }
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/Interceptors/DefaultInterceptors/DefaultUploadTaskInterceptor.swift:23:54: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
21 | }
22 |
23 | func urlSession(_ session: URLSession, dataTask: URLSessionDataTask, didReceive data: Data) {
| `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
24 | receivedData.append(data)
25 | }
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionDataTask = AnyObject
| `- note: 'URLSessionDataTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/EZNetworking/Core/Session/Interceptors/DefaultInterceptors/DefaultUploadTaskInterceptor.swift:27:32: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
25 | }
26 |
27 | func urlSession(_ session: URLSession, task: URLSessionTask, didCompleteWithError error: Error?) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
28 | defer { receivedData.removeAll(keepingCapacity: false) }
29 | if let 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/Interceptors/DefaultInterceptors/DefaultUploadTaskInterceptor.swift:27:50: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
25 | }
26 |
27 | func urlSession(_ session: URLSession, task: URLSessionTask, didCompleteWithError error: Error?) {
| `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
28 | defer { receivedData.removeAll(keepingCapacity: false) }
29 | if let error {
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/DefaultInterceptors/DefaultUploadTaskInterceptor.swift:37:53: error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'response'
35 | }
36 | do {
37 | try validator.validateStatus(from: task.response)
| `- error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'response'
38 | onEvent(.onUploadCompleted(receivedData))
39 | } catch {
/host/spi-builder-workspace/Sources/EZNetworking/Core/Session/Interceptors/DefaultInterceptors/DefaultWebSocketTaskInterceptor.swift:10:59: error: cannot find type 'URLSessionWebSocketTask' in scope
8 | }
9 |
10 | func urlSession(_ session: URLSession, webSocketTask: URLSessionWebSocketTask, didOpenWithProtocol protocol: String?) {
| `- error: cannot find type 'URLSessionWebSocketTask' in scope
11 | onEvent?(.didOpenWithProtocol(protocolStr: `protocol`))
12 | }
/host/spi-builder-workspace/Sources/EZNetworking/Core/Session/Interceptors/DefaultInterceptors/DefaultWebSocketTaskInterceptor.swift:10:32: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
8 | }
9 |
10 | func urlSession(_ session: URLSession, webSocketTask: URLSessionWebSocketTask, didOpenWithProtocol protocol: String?) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
11 | onEvent?(.didOpenWithProtocol(protocolStr: `protocol`))
12 | }
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/Interceptors/DefaultInterceptors/DefaultWebSocketTaskInterceptor.swift:14:32: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
12 | }
13 |
14 | func urlSession(_ session: URLSession, task: URLSessionTask, didCompleteWithError error: any Error) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
15 | onEvent?(.didOpenWithError(error: error.asSendableError))
16 | }
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/Interceptors/DefaultInterceptors/DefaultWebSocketTaskInterceptor.swift:14:50: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
12 | }
13 |
14 | func urlSession(_ session: URLSession, task: URLSessionTask, didCompleteWithError error: any Error) {
| `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
15 | onEvent?(.didOpenWithError(error: error.asSendableError))
16 | }
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/DefaultInterceptors/DefaultWebSocketTaskInterceptor.swift:18:59: error: cannot find type 'URLSessionWebSocketTask' in scope
16 | }
17 |
18 | func urlSession(_ session: URLSession, webSocketTask: URLSessionWebSocketTask, didCloseWith closeCode: URLSessionWebSocketTask.CloseCode, reason: Data?) {
| `- error: cannot find type 'URLSessionWebSocketTask' in scope
19 | onEvent?(.didClose(code: closeCode, reason: reason))
20 | }
/host/spi-builder-workspace/Sources/EZNetworking/Core/Session/Interceptors/DefaultInterceptors/DefaultWebSocketTaskInterceptor.swift:18:108: error: cannot find type 'URLSessionWebSocketTask' in scope
16 | }
17 |
18 | func urlSession(_ session: URLSession, webSocketTask: URLSessionWebSocketTask, didCloseWith closeCode: URLSessionWebSocketTask.CloseCode, reason: Data?) {
| `- error: cannot find type 'URLSessionWebSocketTask' in scope
19 | onEvent?(.didClose(code: closeCode, reason: reason))
20 | }
/host/spi-builder-workspace/Sources/EZNetworking/Core/Session/Interceptors/DefaultInterceptors/DefaultWebSocketTaskInterceptor.swift:18:32: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
16 | }
17 |
18 | func urlSession(_ session: URLSession, webSocketTask: URLSessionWebSocketTask, didCloseWith closeCode: URLSessionWebSocketTask.CloseCode, reason: Data?) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
19 | onEvent?(.didClose(code: closeCode, reason: reason))
20 | }
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/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/Interceptors/Protocols/WebSocketTaskInterceptor.swift:20:25: error: cannot find type 'URLSessionWebSocketTask' in scope
18 | case didOpenWithProtocol(protocolStr: String?)
19 | case didOpenWithError(error: SendableError)
20 | case didClose(code: URLSessionWebSocketTask.CloseCode, reason: Data?)
| `- error: cannot find type 'URLSessionWebSocketTask' in scope
21 | }
22 |
/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:6:32: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
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: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
7 |
8 | /// Intercepts authentication challenges for the entire URLSession.
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/Interceptors/Protocols/AuthenticationInterceptor.swift:6:50: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
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: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
7 |
8 | /// Intercepts authentication challenges for the entire URLSession.
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:88: error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
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: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
7 |
8 | /// Intercepts authentication challenges for the entire URLSession.
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/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/Interceptors/Protocols/AuthenticationInterceptor.swift:9:32: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
7 |
8 | /// Intercepts authentication challenges for the entire URLSession.
9 | func urlSession(_ session: URLSession, didReceive challenge: URLAuthenticationChallenge) async -> (URLSession.AuthChallengeDisposition, URLCredential?)
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
10 | }
11 |
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/Interceptors/Protocols/AuthenticationInterceptor.swift:9:66: error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
7 |
8 | /// Intercepts authentication challenges for the entire URLSession.
9 | func urlSession(_ session: URLSession, didReceive challenge: URLAuthenticationChallenge) async -> (URLSession.AuthChallengeDisposition, URLCredential?)
| `- error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
10 | }
11 |
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
[86/89] Compiling EZNetworking DefaultDownloadTaskInterceptor.swift
/host/spi-builder-workspace/Sources/EZNetworking/Core/Request/Request.swift:10:22: error: cannot find type 'URLRequest' in scope
8 | var body: HTTPBody? { get }
9 | var timeoutInterval: TimeInterval { get }
10 | var cachePolicy: URLRequest.CachePolicy { get }
| `- error: cannot find type 'URLRequest' in scope
11 | }
12 |
/host/spi-builder-workspace/Sources/EZNetworking/Core/Request/Request.swift:16:29: error: cannot find type 'URLRequest' in scope
14 | extension Request {
15 | public var timeoutInterval: TimeInterval { 60 }
16 | public var cachePolicy: URLRequest.CachePolicy { .useProtocolCachePolicy }
| `- error: cannot find type 'URLRequest' in scope
17 | }
18 |
/host/spi-builder-workspace/Sources/EZNetworking/Core/Request/Request.swift:21:93: error: cannot find type 'URLRequest' in scope
19 | // additions
20 | extension Request {
21 | public func getURLRequest(allowedSchemes: URLBuilder.URLSchemePolicy = .http) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
22 | let url = try URLBuilder(allowedSchemes: allowedSchemes).buildAndValidate(baseUrl)
23 |
/host/spi-builder-workspace/Sources/EZNetworking/Core/Request/Request.swift:24:23: error: cannot find 'URLRequest' in scope
22 | let url = try URLBuilder(allowedSchemes: allowedSchemes).buildAndValidate(baseUrl)
23 |
24 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
25 | request.httpMethod = httpMethod.rawValue
26 | request.httpBody = body?.toData()
/host/spi-builder-workspace/Sources/EZNetworking/Core/HTTP/Parameters/HTTPParameterApplier.swift:6:75: error: cannot find type 'URLRequest' in scope
4 | private init() {}
5 |
6 | static func apply(_ parameters: [HTTPParameter], to urlRequest: inout URLRequest) {
| `- error: cannot find type 'URLRequest' in scope
7 | guard !parameters.isEmpty,
8 | let url = urlRequest.url,
/host/spi-builder-workspace/Sources/EZNetworking/Core/HTTP/Headers/HTTPHeaderApplier.swift:6:69: error: cannot find type 'URLRequest' in scope
4 | private init() {}
5 |
6 | static func apply(_ headers: [HTTPHeader], to urlRequest: inout URLRequest) {
| `- error: cannot find type 'URLRequest' in scope
7 | for header in headers {
8 | urlRequest.setValue(header.value, forHTTPHeaderField: header.key)
/host/spi-builder-workspace/Sources/EZNetworking/Core/Request/SpecializedRequests/EZRequest.swift:10:22: error: cannot find type 'URLRequest' in scope
8 | var body: HTTPBody?
9 | var timeoutInterval: TimeInterval
10 | var cachePolicy: URLRequest.CachePolicy
| `- error: cannot find type 'URLRequest' in scope
11 | }
12 |
/host/spi-builder-workspace/Sources/EZNetworking/Core/Request/SpecializedRequests/SSERequest.swift:33:29: error: cannot find type 'URLRequest' in scope
31 | public var parameters: [HTTPParameter]? { nil }
32 | public var body: (any HTTPBody)? { nil }
33 | public var cachePolicy: URLRequest.CachePolicy { .reloadIgnoringLocalCacheData }
| `- error: cannot find type 'URLRequest' in scope
34 | public var timeoutInterval: TimeInterval { 60 } // 1 minute
35 |
/host/spi-builder-workspace/Sources/EZNetworking/Core/Request/SpecializedRequests/WebSocketRequest.swift:28:29: error: cannot find type 'URLRequest' in scope
26 | public var parameters: [HTTPParameter]? { nil }
27 | public var body: (any HTTPBody)? { nil }
28 | public var cachePolicy: URLRequest.CachePolicy { .reloadIgnoringLocalCacheData }
| `- error: cannot find type 'URLRequest' in scope
29 | }
30 |
/host/spi-builder-workspace/Sources/EZNetworking/Core/Session/Interceptors/DefaultInterceptors/DefaultDownloadTaskInterceptor.swift:16:32: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
14 | }
15 |
16 | func urlSession(_ session: URLSession, downloadTask: URLSessionDownloadTask, didFinishDownloadingTo location: URL) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
17 | do {
18 | try validator.validateStatus(from: downloadTask.response)
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/Interceptors/DefaultInterceptors/DefaultDownloadTaskInterceptor.swift:16:58: error: 'URLSessionDownloadTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
14 | }
15 |
16 | func urlSession(_ session: URLSession, downloadTask: URLSessionDownloadTask, didFinishDownloadingTo location: URL) {
| `- error: 'URLSessionDownloadTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
17 | do {
18 | try validator.validateStatus(from: downloadTask.response)
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/DefaultInterceptors/DefaultDownloadTaskInterceptor.swift:25:32: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
23 | }
24 |
25 | func urlSession(_ session: URLSession, downloadTask: URLSessionDownloadTask, didWriteData bytesWritten: Int64, totalBytesWritten: Int64, totalBytesExpectedToWrite: Int64) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
26 | guard totalBytesExpectedToWrite > 0 else { return }
27 | let currentProgress = Double(totalBytesWritten) / Double(totalBytesExpectedToWrite)
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/Interceptors/DefaultInterceptors/DefaultDownloadTaskInterceptor.swift:25:58: error: 'URLSessionDownloadTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
23 | }
24 |
25 | func urlSession(_ session: URLSession, downloadTask: URLSessionDownloadTask, didWriteData bytesWritten: Int64, totalBytesWritten: Int64, totalBytesExpectedToWrite: Int64) {
| `- error: 'URLSessionDownloadTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
26 | guard totalBytesExpectedToWrite > 0 else { return }
27 | let currentProgress = Double(totalBytesWritten) / Double(totalBytesExpectedToWrite)
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/DefaultInterceptors/DefaultDownloadTaskInterceptor.swift:31:32: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
29 | }
30 |
31 | func urlSession(_ session: URLSession, downloadTask: URLSessionDownloadTask, didResumeAtOffset fileOffset: Int64, expectedTotalBytes: Int64) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
32 | guard expectedTotalBytes > 0 else { return }
33 | let currentProgress = Double(fileOffset) / Double(expectedTotalBytes)
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/Interceptors/DefaultInterceptors/DefaultDownloadTaskInterceptor.swift:31:58: error: 'URLSessionDownloadTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
29 | }
30 |
31 | func urlSession(_ session: URLSession, downloadTask: URLSessionDownloadTask, didResumeAtOffset fileOffset: Int64, expectedTotalBytes: Int64) {
| `- error: 'URLSessionDownloadTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
32 | guard expectedTotalBytes > 0 else { return }
33 | let currentProgress = Double(fileOffset) / Double(expectedTotalBytes)
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/DefaultInterceptors/DefaultDownloadTaskInterceptor.swift:37:32: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
35 | }
36 |
37 | func urlSession(_ session: URLSession, task: URLSessionTask, didCompleteWithError error: Error) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
38 | let resumeData = (error as? URLError)?.downloadTaskResumeData
39 | onEvent(.onDownloadFailed(error.asSendableError, resumeData: resumeData))
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/Interceptors/DefaultInterceptors/DefaultDownloadTaskInterceptor.swift:37:50: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
35 | }
36 |
37 | func urlSession(_ session: URLSession, task: URLSessionTask, didCompleteWithError error: Error) {
| `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
38 | let resumeData = (error as? URLError)?.downloadTaskResumeData
39 | onEvent(.onDownloadFailed(error.asSendableError, resumeData: resumeData))
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/DefaultInterceptors/DefaultDownloadTaskInterceptor.swift:18:61: error: value of type 'URLSessionDownloadTask' (aka 'AnyObject') has no member 'response'
16 | func urlSession(_ session: URLSession, downloadTask: URLSessionDownloadTask, didFinishDownloadingTo location: URL) {
17 | do {
18 | try validator.validateStatus(from: downloadTask.response)
| `- error: value of type 'URLSessionDownloadTask' (aka 'AnyObject') has no member 'response'
19 | onEvent(.onDownloadCompleted(location))
20 | } catch {
/host/spi-builder-workspace/Sources/EZNetworking/Core/Session/Interceptors/DefaultInterceptors/DefaultDownloadTaskInterceptor.swift:38:48: error: value of type 'URLError' has no member 'downloadTaskResumeData'
36 |
37 | func urlSession(_ session: URLSession, task: URLSessionTask, didCompleteWithError error: Error) {
38 | let resumeData = (error as? URLError)?.downloadTaskResumeData
| `- error: value of type 'URLError' has no member 'downloadTaskResumeData'
39 | onEvent(.onDownloadFailed(error.asSendableError, resumeData: resumeData))
40 | }
/host/spi-builder-workspace/Sources/EZNetworking/Core/Session/Interceptors/DefaultInterceptors/DefaultUploadTaskInterceptor.swift:17:32: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
15 | }
16 |
17 | func urlSession(_ session: URLSession, task: URLSessionTask, didSendBodyData bytesSent: Int64, totalBytesSent: Int64, totalBytesExpectedToSend: Int64) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
18 | guard totalBytesExpectedToSend > 0 else { return }
19 | let currentProgress = Double(totalBytesSent) / Double(totalBytesExpectedToSend)
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/Interceptors/DefaultInterceptors/DefaultUploadTaskInterceptor.swift:17:50: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
15 | }
16 |
17 | func urlSession(_ session: URLSession, task: URLSessionTask, didSendBodyData bytesSent: Int64, totalBytesSent: Int64, totalBytesExpectedToSend: Int64) {
| `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
18 | guard totalBytesExpectedToSend > 0 else { return }
19 | let currentProgress = Double(totalBytesSent) / Double(totalBytesExpectedToSend)
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/DefaultInterceptors/DefaultUploadTaskInterceptor.swift:23:32: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
21 | }
22 |
23 | func urlSession(_ session: URLSession, dataTask: URLSessionDataTask, didReceive data: Data) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
24 | receivedData.append(data)
25 | }
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/Interceptors/DefaultInterceptors/DefaultUploadTaskInterceptor.swift:23:54: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
21 | }
22 |
23 | func urlSession(_ session: URLSession, dataTask: URLSessionDataTask, didReceive data: Data) {
| `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
24 | receivedData.append(data)
25 | }
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionDataTask = AnyObject
| `- note: 'URLSessionDataTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/EZNetworking/Core/Session/Interceptors/DefaultInterceptors/DefaultUploadTaskInterceptor.swift:27:32: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
25 | }
26 |
27 | func urlSession(_ session: URLSession, task: URLSessionTask, didCompleteWithError error: Error?) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
28 | defer { receivedData.removeAll(keepingCapacity: false) }
29 | if let 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/Interceptors/DefaultInterceptors/DefaultUploadTaskInterceptor.swift:27:50: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
25 | }
26 |
27 | func urlSession(_ session: URLSession, task: URLSessionTask, didCompleteWithError error: Error?) {
| `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
28 | defer { receivedData.removeAll(keepingCapacity: false) }
29 | if let error {
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/DefaultInterceptors/DefaultUploadTaskInterceptor.swift:37:53: error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'response'
35 | }
36 | do {
37 | try validator.validateStatus(from: task.response)
| `- error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'response'
38 | onEvent(.onUploadCompleted(receivedData))
39 | } catch {
/host/spi-builder-workspace/Sources/EZNetworking/Core/Session/Interceptors/DefaultInterceptors/DefaultWebSocketTaskInterceptor.swift:10:59: error: cannot find type 'URLSessionWebSocketTask' in scope
8 | }
9 |
10 | func urlSession(_ session: URLSession, webSocketTask: URLSessionWebSocketTask, didOpenWithProtocol protocol: String?) {
| `- error: cannot find type 'URLSessionWebSocketTask' in scope
11 | onEvent?(.didOpenWithProtocol(protocolStr: `protocol`))
12 | }
/host/spi-builder-workspace/Sources/EZNetworking/Core/Session/Interceptors/DefaultInterceptors/DefaultWebSocketTaskInterceptor.swift:10:32: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
8 | }
9 |
10 | func urlSession(_ session: URLSession, webSocketTask: URLSessionWebSocketTask, didOpenWithProtocol protocol: String?) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
11 | onEvent?(.didOpenWithProtocol(protocolStr: `protocol`))
12 | }
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/Interceptors/DefaultInterceptors/DefaultWebSocketTaskInterceptor.swift:14:32: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
12 | }
13 |
14 | func urlSession(_ session: URLSession, task: URLSessionTask, didCompleteWithError error: any Error) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
15 | onEvent?(.didOpenWithError(error: error.asSendableError))
16 | }
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/Interceptors/DefaultInterceptors/DefaultWebSocketTaskInterceptor.swift:14:50: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
12 | }
13 |
14 | func urlSession(_ session: URLSession, task: URLSessionTask, didCompleteWithError error: any Error) {
| `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
15 | onEvent?(.didOpenWithError(error: error.asSendableError))
16 | }
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/DefaultInterceptors/DefaultWebSocketTaskInterceptor.swift:18:59: error: cannot find type 'URLSessionWebSocketTask' in scope
16 | }
17 |
18 | func urlSession(_ session: URLSession, webSocketTask: URLSessionWebSocketTask, didCloseWith closeCode: URLSessionWebSocketTask.CloseCode, reason: Data?) {
| `- error: cannot find type 'URLSessionWebSocketTask' in scope
19 | onEvent?(.didClose(code: closeCode, reason: reason))
20 | }
/host/spi-builder-workspace/Sources/EZNetworking/Core/Session/Interceptors/DefaultInterceptors/DefaultWebSocketTaskInterceptor.swift:18:108: error: cannot find type 'URLSessionWebSocketTask' in scope
16 | }
17 |
18 | func urlSession(_ session: URLSession, webSocketTask: URLSessionWebSocketTask, didCloseWith closeCode: URLSessionWebSocketTask.CloseCode, reason: Data?) {
| `- error: cannot find type 'URLSessionWebSocketTask' in scope
19 | onEvent?(.didClose(code: closeCode, reason: reason))
20 | }
/host/spi-builder-workspace/Sources/EZNetworking/Core/Session/Interceptors/DefaultInterceptors/DefaultWebSocketTaskInterceptor.swift:18:32: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
16 | }
17 |
18 | func urlSession(_ session: URLSession, webSocketTask: URLSessionWebSocketTask, didCloseWith closeCode: URLSessionWebSocketTask.CloseCode, reason: Data?) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
19 | onEvent?(.didClose(code: closeCode, reason: reason))
20 | }
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/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/Interceptors/Protocols/WebSocketTaskInterceptor.swift:20:25: error: cannot find type 'URLSessionWebSocketTask' in scope
18 | case didOpenWithProtocol(protocolStr: String?)
19 | case didOpenWithError(error: SendableError)
20 | case didClose(code: URLSessionWebSocketTask.CloseCode, reason: Data?)
| `- error: cannot find type 'URLSessionWebSocketTask' in scope
21 | }
22 |
/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:6:32: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
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: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
7 |
8 | /// Intercepts authentication challenges for the entire URLSession.
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/Interceptors/Protocols/AuthenticationInterceptor.swift:6:50: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
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: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
7 |
8 | /// Intercepts authentication challenges for the entire URLSession.
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:88: error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
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: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
7 |
8 | /// Intercepts authentication challenges for the entire URLSession.
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/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/Interceptors/Protocols/AuthenticationInterceptor.swift:9:32: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
7 |
8 | /// Intercepts authentication challenges for the entire URLSession.
9 | func urlSession(_ session: URLSession, didReceive challenge: URLAuthenticationChallenge) async -> (URLSession.AuthChallengeDisposition, URLCredential?)
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
10 | }
11 |
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/Interceptors/Protocols/AuthenticationInterceptor.swift:9:66: error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
7 |
8 | /// Intercepts authentication challenges for the entire URLSession.
9 | func urlSession(_ session: URLSession, didReceive challenge: URLAuthenticationChallenge) async -> (URLSession.AuthChallengeDisposition, URLCredential?)
| `- error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
10 | }
11 |
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
[87/89] Compiling EZNetworking DefaultUploadTaskInterceptor.swift
/host/spi-builder-workspace/Sources/EZNetworking/Core/Request/Request.swift:10:22: error: cannot find type 'URLRequest' in scope
8 | var body: HTTPBody? { get }
9 | var timeoutInterval: TimeInterval { get }
10 | var cachePolicy: URLRequest.CachePolicy { get }
| `- error: cannot find type 'URLRequest' in scope
11 | }
12 |
/host/spi-builder-workspace/Sources/EZNetworking/Core/Request/Request.swift:16:29: error: cannot find type 'URLRequest' in scope
14 | extension Request {
15 | public var timeoutInterval: TimeInterval { 60 }
16 | public var cachePolicy: URLRequest.CachePolicy { .useProtocolCachePolicy }
| `- error: cannot find type 'URLRequest' in scope
17 | }
18 |
/host/spi-builder-workspace/Sources/EZNetworking/Core/Request/Request.swift:21:93: error: cannot find type 'URLRequest' in scope
19 | // additions
20 | extension Request {
21 | public func getURLRequest(allowedSchemes: URLBuilder.URLSchemePolicy = .http) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
22 | let url = try URLBuilder(allowedSchemes: allowedSchemes).buildAndValidate(baseUrl)
23 |
/host/spi-builder-workspace/Sources/EZNetworking/Core/Request/Request.swift:24:23: error: cannot find 'URLRequest' in scope
22 | let url = try URLBuilder(allowedSchemes: allowedSchemes).buildAndValidate(baseUrl)
23 |
24 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
25 | request.httpMethod = httpMethod.rawValue
26 | request.httpBody = body?.toData()
/host/spi-builder-workspace/Sources/EZNetworking/Core/HTTP/Parameters/HTTPParameterApplier.swift:6:75: error: cannot find type 'URLRequest' in scope
4 | private init() {}
5 |
6 | static func apply(_ parameters: [HTTPParameter], to urlRequest: inout URLRequest) {
| `- error: cannot find type 'URLRequest' in scope
7 | guard !parameters.isEmpty,
8 | let url = urlRequest.url,
/host/spi-builder-workspace/Sources/EZNetworking/Core/HTTP/Headers/HTTPHeaderApplier.swift:6:69: error: cannot find type 'URLRequest' in scope
4 | private init() {}
5 |
6 | static func apply(_ headers: [HTTPHeader], to urlRequest: inout URLRequest) {
| `- error: cannot find type 'URLRequest' in scope
7 | for header in headers {
8 | urlRequest.setValue(header.value, forHTTPHeaderField: header.key)
/host/spi-builder-workspace/Sources/EZNetworking/Core/Request/SpecializedRequests/EZRequest.swift:10:22: error: cannot find type 'URLRequest' in scope
8 | var body: HTTPBody?
9 | var timeoutInterval: TimeInterval
10 | var cachePolicy: URLRequest.CachePolicy
| `- error: cannot find type 'URLRequest' in scope
11 | }
12 |
/host/spi-builder-workspace/Sources/EZNetworking/Core/Request/SpecializedRequests/SSERequest.swift:33:29: error: cannot find type 'URLRequest' in scope
31 | public var parameters: [HTTPParameter]? { nil }
32 | public var body: (any HTTPBody)? { nil }
33 | public var cachePolicy: URLRequest.CachePolicy { .reloadIgnoringLocalCacheData }
| `- error: cannot find type 'URLRequest' in scope
34 | public var timeoutInterval: TimeInterval { 60 } // 1 minute
35 |
/host/spi-builder-workspace/Sources/EZNetworking/Core/Request/SpecializedRequests/WebSocketRequest.swift:28:29: error: cannot find type 'URLRequest' in scope
26 | public var parameters: [HTTPParameter]? { nil }
27 | public var body: (any HTTPBody)? { nil }
28 | public var cachePolicy: URLRequest.CachePolicy { .reloadIgnoringLocalCacheData }
| `- error: cannot find type 'URLRequest' in scope
29 | }
30 |
/host/spi-builder-workspace/Sources/EZNetworking/Core/Session/Interceptors/DefaultInterceptors/DefaultDownloadTaskInterceptor.swift:16:32: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
14 | }
15 |
16 | func urlSession(_ session: URLSession, downloadTask: URLSessionDownloadTask, didFinishDownloadingTo location: URL) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
17 | do {
18 | try validator.validateStatus(from: downloadTask.response)
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/Interceptors/DefaultInterceptors/DefaultDownloadTaskInterceptor.swift:16:58: error: 'URLSessionDownloadTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
14 | }
15 |
16 | func urlSession(_ session: URLSession, downloadTask: URLSessionDownloadTask, didFinishDownloadingTo location: URL) {
| `- error: 'URLSessionDownloadTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
17 | do {
18 | try validator.validateStatus(from: downloadTask.response)
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/DefaultInterceptors/DefaultDownloadTaskInterceptor.swift:25:32: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
23 | }
24 |
25 | func urlSession(_ session: URLSession, downloadTask: URLSessionDownloadTask, didWriteData bytesWritten: Int64, totalBytesWritten: Int64, totalBytesExpectedToWrite: Int64) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
26 | guard totalBytesExpectedToWrite > 0 else { return }
27 | let currentProgress = Double(totalBytesWritten) / Double(totalBytesExpectedToWrite)
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/Interceptors/DefaultInterceptors/DefaultDownloadTaskInterceptor.swift:25:58: error: 'URLSessionDownloadTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
23 | }
24 |
25 | func urlSession(_ session: URLSession, downloadTask: URLSessionDownloadTask, didWriteData bytesWritten: Int64, totalBytesWritten: Int64, totalBytesExpectedToWrite: Int64) {
| `- error: 'URLSessionDownloadTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
26 | guard totalBytesExpectedToWrite > 0 else { return }
27 | let currentProgress = Double(totalBytesWritten) / Double(totalBytesExpectedToWrite)
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/DefaultInterceptors/DefaultDownloadTaskInterceptor.swift:31:32: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
29 | }
30 |
31 | func urlSession(_ session: URLSession, downloadTask: URLSessionDownloadTask, didResumeAtOffset fileOffset: Int64, expectedTotalBytes: Int64) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
32 | guard expectedTotalBytes > 0 else { return }
33 | let currentProgress = Double(fileOffset) / Double(expectedTotalBytes)
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/Interceptors/DefaultInterceptors/DefaultDownloadTaskInterceptor.swift:31:58: error: 'URLSessionDownloadTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
29 | }
30 |
31 | func urlSession(_ session: URLSession, downloadTask: URLSessionDownloadTask, didResumeAtOffset fileOffset: Int64, expectedTotalBytes: Int64) {
| `- error: 'URLSessionDownloadTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
32 | guard expectedTotalBytes > 0 else { return }
33 | let currentProgress = Double(fileOffset) / Double(expectedTotalBytes)
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/DefaultInterceptors/DefaultDownloadTaskInterceptor.swift:37:32: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
35 | }
36 |
37 | func urlSession(_ session: URLSession, task: URLSessionTask, didCompleteWithError error: Error) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
38 | let resumeData = (error as? URLError)?.downloadTaskResumeData
39 | onEvent(.onDownloadFailed(error.asSendableError, resumeData: resumeData))
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/Interceptors/DefaultInterceptors/DefaultDownloadTaskInterceptor.swift:37:50: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
35 | }
36 |
37 | func urlSession(_ session: URLSession, task: URLSessionTask, didCompleteWithError error: Error) {
| `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
38 | let resumeData = (error as? URLError)?.downloadTaskResumeData
39 | onEvent(.onDownloadFailed(error.asSendableError, resumeData: resumeData))
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/DefaultInterceptors/DefaultDownloadTaskInterceptor.swift:18:61: error: value of type 'URLSessionDownloadTask' (aka 'AnyObject') has no member 'response'
16 | func urlSession(_ session: URLSession, downloadTask: URLSessionDownloadTask, didFinishDownloadingTo location: URL) {
17 | do {
18 | try validator.validateStatus(from: downloadTask.response)
| `- error: value of type 'URLSessionDownloadTask' (aka 'AnyObject') has no member 'response'
19 | onEvent(.onDownloadCompleted(location))
20 | } catch {
/host/spi-builder-workspace/Sources/EZNetworking/Core/Session/Interceptors/DefaultInterceptors/DefaultDownloadTaskInterceptor.swift:38:48: error: value of type 'URLError' has no member 'downloadTaskResumeData'
36 |
37 | func urlSession(_ session: URLSession, task: URLSessionTask, didCompleteWithError error: Error) {
38 | let resumeData = (error as? URLError)?.downloadTaskResumeData
| `- error: value of type 'URLError' has no member 'downloadTaskResumeData'
39 | onEvent(.onDownloadFailed(error.asSendableError, resumeData: resumeData))
40 | }
/host/spi-builder-workspace/Sources/EZNetworking/Core/Session/Interceptors/DefaultInterceptors/DefaultUploadTaskInterceptor.swift:17:32: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
15 | }
16 |
17 | func urlSession(_ session: URLSession, task: URLSessionTask, didSendBodyData bytesSent: Int64, totalBytesSent: Int64, totalBytesExpectedToSend: Int64) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
18 | guard totalBytesExpectedToSend > 0 else { return }
19 | let currentProgress = Double(totalBytesSent) / Double(totalBytesExpectedToSend)
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/Interceptors/DefaultInterceptors/DefaultUploadTaskInterceptor.swift:17:50: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
15 | }
16 |
17 | func urlSession(_ session: URLSession, task: URLSessionTask, didSendBodyData bytesSent: Int64, totalBytesSent: Int64, totalBytesExpectedToSend: Int64) {
| `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
18 | guard totalBytesExpectedToSend > 0 else { return }
19 | let currentProgress = Double(totalBytesSent) / Double(totalBytesExpectedToSend)
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/DefaultInterceptors/DefaultUploadTaskInterceptor.swift:23:32: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
21 | }
22 |
23 | func urlSession(_ session: URLSession, dataTask: URLSessionDataTask, didReceive data: Data) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
24 | receivedData.append(data)
25 | }
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/Interceptors/DefaultInterceptors/DefaultUploadTaskInterceptor.swift:23:54: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
21 | }
22 |
23 | func urlSession(_ session: URLSession, dataTask: URLSessionDataTask, didReceive data: Data) {
| `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
24 | receivedData.append(data)
25 | }
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionDataTask = AnyObject
| `- note: 'URLSessionDataTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/EZNetworking/Core/Session/Interceptors/DefaultInterceptors/DefaultUploadTaskInterceptor.swift:27:32: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
25 | }
26 |
27 | func urlSession(_ session: URLSession, task: URLSessionTask, didCompleteWithError error: Error?) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
28 | defer { receivedData.removeAll(keepingCapacity: false) }
29 | if let 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/Interceptors/DefaultInterceptors/DefaultUploadTaskInterceptor.swift:27:50: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
25 | }
26 |
27 | func urlSession(_ session: URLSession, task: URLSessionTask, didCompleteWithError error: Error?) {
| `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
28 | defer { receivedData.removeAll(keepingCapacity: false) }
29 | if let error {
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/DefaultInterceptors/DefaultUploadTaskInterceptor.swift:37:53: error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'response'
35 | }
36 | do {
37 | try validator.validateStatus(from: task.response)
| `- error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'response'
38 | onEvent(.onUploadCompleted(receivedData))
39 | } catch {
/host/spi-builder-workspace/Sources/EZNetworking/Core/Session/Interceptors/DefaultInterceptors/DefaultWebSocketTaskInterceptor.swift:10:59: error: cannot find type 'URLSessionWebSocketTask' in scope
8 | }
9 |
10 | func urlSession(_ session: URLSession, webSocketTask: URLSessionWebSocketTask, didOpenWithProtocol protocol: String?) {
| `- error: cannot find type 'URLSessionWebSocketTask' in scope
11 | onEvent?(.didOpenWithProtocol(protocolStr: `protocol`))
12 | }
/host/spi-builder-workspace/Sources/EZNetworking/Core/Session/Interceptors/DefaultInterceptors/DefaultWebSocketTaskInterceptor.swift:10:32: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
8 | }
9 |
10 | func urlSession(_ session: URLSession, webSocketTask: URLSessionWebSocketTask, didOpenWithProtocol protocol: String?) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
11 | onEvent?(.didOpenWithProtocol(protocolStr: `protocol`))
12 | }
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/Interceptors/DefaultInterceptors/DefaultWebSocketTaskInterceptor.swift:14:32: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
12 | }
13 |
14 | func urlSession(_ session: URLSession, task: URLSessionTask, didCompleteWithError error: any Error) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
15 | onEvent?(.didOpenWithError(error: error.asSendableError))
16 | }
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/Interceptors/DefaultInterceptors/DefaultWebSocketTaskInterceptor.swift:14:50: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
12 | }
13 |
14 | func urlSession(_ session: URLSession, task: URLSessionTask, didCompleteWithError error: any Error) {
| `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
15 | onEvent?(.didOpenWithError(error: error.asSendableError))
16 | }
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/DefaultInterceptors/DefaultWebSocketTaskInterceptor.swift:18:59: error: cannot find type 'URLSessionWebSocketTask' in scope
16 | }
17 |
18 | func urlSession(_ session: URLSession, webSocketTask: URLSessionWebSocketTask, didCloseWith closeCode: URLSessionWebSocketTask.CloseCode, reason: Data?) {
| `- error: cannot find type 'URLSessionWebSocketTask' in scope
19 | onEvent?(.didClose(code: closeCode, reason: reason))
20 | }
/host/spi-builder-workspace/Sources/EZNetworking/Core/Session/Interceptors/DefaultInterceptors/DefaultWebSocketTaskInterceptor.swift:18:108: error: cannot find type 'URLSessionWebSocketTask' in scope
16 | }
17 |
18 | func urlSession(_ session: URLSession, webSocketTask: URLSessionWebSocketTask, didCloseWith closeCode: URLSessionWebSocketTask.CloseCode, reason: Data?) {
| `- error: cannot find type 'URLSessionWebSocketTask' in scope
19 | onEvent?(.didClose(code: closeCode, reason: reason))
20 | }
/host/spi-builder-workspace/Sources/EZNetworking/Core/Session/Interceptors/DefaultInterceptors/DefaultWebSocketTaskInterceptor.swift:18:32: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
16 | }
17 |
18 | func urlSession(_ session: URLSession, webSocketTask: URLSessionWebSocketTask, didCloseWith closeCode: URLSessionWebSocketTask.CloseCode, reason: Data?) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
19 | onEvent?(.didClose(code: closeCode, reason: reason))
20 | }
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/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/Interceptors/Protocols/WebSocketTaskInterceptor.swift:20:25: error: cannot find type 'URLSessionWebSocketTask' in scope
18 | case didOpenWithProtocol(protocolStr: String?)
19 | case didOpenWithError(error: SendableError)
20 | case didClose(code: URLSessionWebSocketTask.CloseCode, reason: Data?)
| `- error: cannot find type 'URLSessionWebSocketTask' in scope
21 | }
22 |
/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:6:32: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
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: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
7 |
8 | /// Intercepts authentication challenges for the entire URLSession.
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/Interceptors/Protocols/AuthenticationInterceptor.swift:6:50: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
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: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
7 |
8 | /// Intercepts authentication challenges for the entire URLSession.
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:88: error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
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: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
7 |
8 | /// Intercepts authentication challenges for the entire URLSession.
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/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/Interceptors/Protocols/AuthenticationInterceptor.swift:9:32: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
7 |
8 | /// Intercepts authentication challenges for the entire URLSession.
9 | func urlSession(_ session: URLSession, didReceive challenge: URLAuthenticationChallenge) async -> (URLSession.AuthChallengeDisposition, URLCredential?)
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
10 | }
11 |
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/Interceptors/Protocols/AuthenticationInterceptor.swift:9:66: error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
7 |
8 | /// Intercepts authentication challenges for the entire URLSession.
9 | func urlSession(_ session: URLSession, didReceive challenge: URLAuthenticationChallenge) async -> (URLSession.AuthChallengeDisposition, URLCredential?)
| `- error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
10 | }
11 |
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
[88/89] Compiling EZNetworking DefaultWebSocketTaskInterceptor.swift
/host/spi-builder-workspace/Sources/EZNetworking/Core/Request/Request.swift:10:22: error: cannot find type 'URLRequest' in scope
8 | var body: HTTPBody? { get }
9 | var timeoutInterval: TimeInterval { get }
10 | var cachePolicy: URLRequest.CachePolicy { get }
| `- error: cannot find type 'URLRequest' in scope
11 | }
12 |
/host/spi-builder-workspace/Sources/EZNetworking/Core/Request/Request.swift:16:29: error: cannot find type 'URLRequest' in scope
14 | extension Request {
15 | public var timeoutInterval: TimeInterval { 60 }
16 | public var cachePolicy: URLRequest.CachePolicy { .useProtocolCachePolicy }
| `- error: cannot find type 'URLRequest' in scope
17 | }
18 |
/host/spi-builder-workspace/Sources/EZNetworking/Core/Request/Request.swift:21:93: error: cannot find type 'URLRequest' in scope
19 | // additions
20 | extension Request {
21 | public func getURLRequest(allowedSchemes: URLBuilder.URLSchemePolicy = .http) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
22 | let url = try URLBuilder(allowedSchemes: allowedSchemes).buildAndValidate(baseUrl)
23 |
/host/spi-builder-workspace/Sources/EZNetworking/Core/Request/Request.swift:24:23: error: cannot find 'URLRequest' in scope
22 | let url = try URLBuilder(allowedSchemes: allowedSchemes).buildAndValidate(baseUrl)
23 |
24 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
25 | request.httpMethod = httpMethod.rawValue
26 | request.httpBody = body?.toData()
/host/spi-builder-workspace/Sources/EZNetworking/Core/HTTP/Parameters/HTTPParameterApplier.swift:6:75: error: cannot find type 'URLRequest' in scope
4 | private init() {}
5 |
6 | static func apply(_ parameters: [HTTPParameter], to urlRequest: inout URLRequest) {
| `- error: cannot find type 'URLRequest' in scope
7 | guard !parameters.isEmpty,
8 | let url = urlRequest.url,
/host/spi-builder-workspace/Sources/EZNetworking/Core/HTTP/Headers/HTTPHeaderApplier.swift:6:69: error: cannot find type 'URLRequest' in scope
4 | private init() {}
5 |
6 | static func apply(_ headers: [HTTPHeader], to urlRequest: inout URLRequest) {
| `- error: cannot find type 'URLRequest' in scope
7 | for header in headers {
8 | urlRequest.setValue(header.value, forHTTPHeaderField: header.key)
/host/spi-builder-workspace/Sources/EZNetworking/Core/Request/SpecializedRequests/EZRequest.swift:10:22: error: cannot find type 'URLRequest' in scope
8 | var body: HTTPBody?
9 | var timeoutInterval: TimeInterval
10 | var cachePolicy: URLRequest.CachePolicy
| `- error: cannot find type 'URLRequest' in scope
11 | }
12 |
/host/spi-builder-workspace/Sources/EZNetworking/Core/Request/SpecializedRequests/SSERequest.swift:33:29: error: cannot find type 'URLRequest' in scope
31 | public var parameters: [HTTPParameter]? { nil }
32 | public var body: (any HTTPBody)? { nil }
33 | public var cachePolicy: URLRequest.CachePolicy { .reloadIgnoringLocalCacheData }
| `- error: cannot find type 'URLRequest' in scope
34 | public var timeoutInterval: TimeInterval { 60 } // 1 minute
35 |
/host/spi-builder-workspace/Sources/EZNetworking/Core/Request/SpecializedRequests/WebSocketRequest.swift:28:29: error: cannot find type 'URLRequest' in scope
26 | public var parameters: [HTTPParameter]? { nil }
27 | public var body: (any HTTPBody)? { nil }
28 | public var cachePolicy: URLRequest.CachePolicy { .reloadIgnoringLocalCacheData }
| `- error: cannot find type 'URLRequest' in scope
29 | }
30 |
/host/spi-builder-workspace/Sources/EZNetworking/Core/Session/Interceptors/DefaultInterceptors/DefaultDownloadTaskInterceptor.swift:16:32: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
14 | }
15 |
16 | func urlSession(_ session: URLSession, downloadTask: URLSessionDownloadTask, didFinishDownloadingTo location: URL) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
17 | do {
18 | try validator.validateStatus(from: downloadTask.response)
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/Interceptors/DefaultInterceptors/DefaultDownloadTaskInterceptor.swift:16:58: error: 'URLSessionDownloadTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
14 | }
15 |
16 | func urlSession(_ session: URLSession, downloadTask: URLSessionDownloadTask, didFinishDownloadingTo location: URL) {
| `- error: 'URLSessionDownloadTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
17 | do {
18 | try validator.validateStatus(from: downloadTask.response)
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/DefaultInterceptors/DefaultDownloadTaskInterceptor.swift:25:32: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
23 | }
24 |
25 | func urlSession(_ session: URLSession, downloadTask: URLSessionDownloadTask, didWriteData bytesWritten: Int64, totalBytesWritten: Int64, totalBytesExpectedToWrite: Int64) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
26 | guard totalBytesExpectedToWrite > 0 else { return }
27 | let currentProgress = Double(totalBytesWritten) / Double(totalBytesExpectedToWrite)
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/Interceptors/DefaultInterceptors/DefaultDownloadTaskInterceptor.swift:25:58: error: 'URLSessionDownloadTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
23 | }
24 |
25 | func urlSession(_ session: URLSession, downloadTask: URLSessionDownloadTask, didWriteData bytesWritten: Int64, totalBytesWritten: Int64, totalBytesExpectedToWrite: Int64) {
| `- error: 'URLSessionDownloadTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
26 | guard totalBytesExpectedToWrite > 0 else { return }
27 | let currentProgress = Double(totalBytesWritten) / Double(totalBytesExpectedToWrite)
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/DefaultInterceptors/DefaultDownloadTaskInterceptor.swift:31:32: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
29 | }
30 |
31 | func urlSession(_ session: URLSession, downloadTask: URLSessionDownloadTask, didResumeAtOffset fileOffset: Int64, expectedTotalBytes: Int64) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
32 | guard expectedTotalBytes > 0 else { return }
33 | let currentProgress = Double(fileOffset) / Double(expectedTotalBytes)
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/Interceptors/DefaultInterceptors/DefaultDownloadTaskInterceptor.swift:31:58: error: 'URLSessionDownloadTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
29 | }
30 |
31 | func urlSession(_ session: URLSession, downloadTask: URLSessionDownloadTask, didResumeAtOffset fileOffset: Int64, expectedTotalBytes: Int64) {
| `- error: 'URLSessionDownloadTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
32 | guard expectedTotalBytes > 0 else { return }
33 | let currentProgress = Double(fileOffset) / Double(expectedTotalBytes)
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/DefaultInterceptors/DefaultDownloadTaskInterceptor.swift:37:32: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
35 | }
36 |
37 | func urlSession(_ session: URLSession, task: URLSessionTask, didCompleteWithError error: Error) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
38 | let resumeData = (error as? URLError)?.downloadTaskResumeData
39 | onEvent(.onDownloadFailed(error.asSendableError, resumeData: resumeData))
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/Interceptors/DefaultInterceptors/DefaultDownloadTaskInterceptor.swift:37:50: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
35 | }
36 |
37 | func urlSession(_ session: URLSession, task: URLSessionTask, didCompleteWithError error: Error) {
| `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
38 | let resumeData = (error as? URLError)?.downloadTaskResumeData
39 | onEvent(.onDownloadFailed(error.asSendableError, resumeData: resumeData))
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/DefaultInterceptors/DefaultDownloadTaskInterceptor.swift:18:61: error: value of type 'URLSessionDownloadTask' (aka 'AnyObject') has no member 'response'
16 | func urlSession(_ session: URLSession, downloadTask: URLSessionDownloadTask, didFinishDownloadingTo location: URL) {
17 | do {
18 | try validator.validateStatus(from: downloadTask.response)
| `- error: value of type 'URLSessionDownloadTask' (aka 'AnyObject') has no member 'response'
19 | onEvent(.onDownloadCompleted(location))
20 | } catch {
/host/spi-builder-workspace/Sources/EZNetworking/Core/Session/Interceptors/DefaultInterceptors/DefaultDownloadTaskInterceptor.swift:38:48: error: value of type 'URLError' has no member 'downloadTaskResumeData'
36 |
37 | func urlSession(_ session: URLSession, task: URLSessionTask, didCompleteWithError error: Error) {
38 | let resumeData = (error as? URLError)?.downloadTaskResumeData
| `- error: value of type 'URLError' has no member 'downloadTaskResumeData'
39 | onEvent(.onDownloadFailed(error.asSendableError, resumeData: resumeData))
40 | }
/host/spi-builder-workspace/Sources/EZNetworking/Core/Session/Interceptors/DefaultInterceptors/DefaultUploadTaskInterceptor.swift:17:32: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
15 | }
16 |
17 | func urlSession(_ session: URLSession, task: URLSessionTask, didSendBodyData bytesSent: Int64, totalBytesSent: Int64, totalBytesExpectedToSend: Int64) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
18 | guard totalBytesExpectedToSend > 0 else { return }
19 | let currentProgress = Double(totalBytesSent) / Double(totalBytesExpectedToSend)
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/Interceptors/DefaultInterceptors/DefaultUploadTaskInterceptor.swift:17:50: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
15 | }
16 |
17 | func urlSession(_ session: URLSession, task: URLSessionTask, didSendBodyData bytesSent: Int64, totalBytesSent: Int64, totalBytesExpectedToSend: Int64) {
| `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
18 | guard totalBytesExpectedToSend > 0 else { return }
19 | let currentProgress = Double(totalBytesSent) / Double(totalBytesExpectedToSend)
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/DefaultInterceptors/DefaultUploadTaskInterceptor.swift:23:32: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
21 | }
22 |
23 | func urlSession(_ session: URLSession, dataTask: URLSessionDataTask, didReceive data: Data) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
24 | receivedData.append(data)
25 | }
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/Interceptors/DefaultInterceptors/DefaultUploadTaskInterceptor.swift:23:54: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
21 | }
22 |
23 | func urlSession(_ session: URLSession, dataTask: URLSessionDataTask, didReceive data: Data) {
| `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
24 | receivedData.append(data)
25 | }
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionDataTask = AnyObject
| `- note: 'URLSessionDataTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/EZNetworking/Core/Session/Interceptors/DefaultInterceptors/DefaultUploadTaskInterceptor.swift:27:32: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
25 | }
26 |
27 | func urlSession(_ session: URLSession, task: URLSessionTask, didCompleteWithError error: Error?) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
28 | defer { receivedData.removeAll(keepingCapacity: false) }
29 | if let 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/Interceptors/DefaultInterceptors/DefaultUploadTaskInterceptor.swift:27:50: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
25 | }
26 |
27 | func urlSession(_ session: URLSession, task: URLSessionTask, didCompleteWithError error: Error?) {
| `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
28 | defer { receivedData.removeAll(keepingCapacity: false) }
29 | if let error {
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/DefaultInterceptors/DefaultUploadTaskInterceptor.swift:37:53: error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'response'
35 | }
36 | do {
37 | try validator.validateStatus(from: task.response)
| `- error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'response'
38 | onEvent(.onUploadCompleted(receivedData))
39 | } catch {
/host/spi-builder-workspace/Sources/EZNetworking/Core/Session/Interceptors/DefaultInterceptors/DefaultWebSocketTaskInterceptor.swift:10:59: error: cannot find type 'URLSessionWebSocketTask' in scope
8 | }
9 |
10 | func urlSession(_ session: URLSession, webSocketTask: URLSessionWebSocketTask, didOpenWithProtocol protocol: String?) {
| `- error: cannot find type 'URLSessionWebSocketTask' in scope
11 | onEvent?(.didOpenWithProtocol(protocolStr: `protocol`))
12 | }
/host/spi-builder-workspace/Sources/EZNetworking/Core/Session/Interceptors/DefaultInterceptors/DefaultWebSocketTaskInterceptor.swift:10:32: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
8 | }
9 |
10 | func urlSession(_ session: URLSession, webSocketTask: URLSessionWebSocketTask, didOpenWithProtocol protocol: String?) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
11 | onEvent?(.didOpenWithProtocol(protocolStr: `protocol`))
12 | }
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/Interceptors/DefaultInterceptors/DefaultWebSocketTaskInterceptor.swift:14:32: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
12 | }
13 |
14 | func urlSession(_ session: URLSession, task: URLSessionTask, didCompleteWithError error: any Error) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
15 | onEvent?(.didOpenWithError(error: error.asSendableError))
16 | }
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/Interceptors/DefaultInterceptors/DefaultWebSocketTaskInterceptor.swift:14:50: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
12 | }
13 |
14 | func urlSession(_ session: URLSession, task: URLSessionTask, didCompleteWithError error: any Error) {
| `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
15 | onEvent?(.didOpenWithError(error: error.asSendableError))
16 | }
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/DefaultInterceptors/DefaultWebSocketTaskInterceptor.swift:18:59: error: cannot find type 'URLSessionWebSocketTask' in scope
16 | }
17 |
18 | func urlSession(_ session: URLSession, webSocketTask: URLSessionWebSocketTask, didCloseWith closeCode: URLSessionWebSocketTask.CloseCode, reason: Data?) {
| `- error: cannot find type 'URLSessionWebSocketTask' in scope
19 | onEvent?(.didClose(code: closeCode, reason: reason))
20 | }
/host/spi-builder-workspace/Sources/EZNetworking/Core/Session/Interceptors/DefaultInterceptors/DefaultWebSocketTaskInterceptor.swift:18:108: error: cannot find type 'URLSessionWebSocketTask' in scope
16 | }
17 |
18 | func urlSession(_ session: URLSession, webSocketTask: URLSessionWebSocketTask, didCloseWith closeCode: URLSessionWebSocketTask.CloseCode, reason: Data?) {
| `- error: cannot find type 'URLSessionWebSocketTask' in scope
19 | onEvent?(.didClose(code: closeCode, reason: reason))
20 | }
/host/spi-builder-workspace/Sources/EZNetworking/Core/Session/Interceptors/DefaultInterceptors/DefaultWebSocketTaskInterceptor.swift:18:32: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
16 | }
17 |
18 | func urlSession(_ session: URLSession, webSocketTask: URLSessionWebSocketTask, didCloseWith closeCode: URLSessionWebSocketTask.CloseCode, reason: Data?) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
19 | onEvent?(.didClose(code: closeCode, reason: reason))
20 | }
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/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/Interceptors/Protocols/WebSocketTaskInterceptor.swift:20:25: error: cannot find type 'URLSessionWebSocketTask' in scope
18 | case didOpenWithProtocol(protocolStr: String?)
19 | case didOpenWithError(error: SendableError)
20 | case didClose(code: URLSessionWebSocketTask.CloseCode, reason: Data?)
| `- error: cannot find type 'URLSessionWebSocketTask' in scope
21 | }
22 |
/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:6:32: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
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: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
7 |
8 | /// Intercepts authentication challenges for the entire URLSession.
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/Interceptors/Protocols/AuthenticationInterceptor.swift:6:50: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
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: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
7 |
8 | /// Intercepts authentication challenges for the entire URLSession.
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:88: error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
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: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
7 |
8 | /// Intercepts authentication challenges for the entire URLSession.
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/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/Interceptors/Protocols/AuthenticationInterceptor.swift:9:32: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
7 |
8 | /// Intercepts authentication challenges for the entire URLSession.
9 | func urlSession(_ session: URLSession, didReceive challenge: URLAuthenticationChallenge) async -> (URLSession.AuthChallengeDisposition, URLCredential?)
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
10 | }
11 |
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/Interceptors/Protocols/AuthenticationInterceptor.swift:9:66: error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
7 |
8 | /// Intercepts authentication challenges for the entire URLSession.
9 | func urlSession(_ session: URLSession, didReceive challenge: URLAuthenticationChallenge) async -> (URLSession.AuthChallengeDisposition, URLCredential?)
| `- error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
10 | }
11 |
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
[89/89] Compiling EZNetworking AuthenticationInterceptor.swift
/host/spi-builder-workspace/Sources/EZNetworking/Core/Request/Request.swift:10:22: error: cannot find type 'URLRequest' in scope
8 | var body: HTTPBody? { get }
9 | var timeoutInterval: TimeInterval { get }
10 | var cachePolicy: URLRequest.CachePolicy { get }
| `- error: cannot find type 'URLRequest' in scope
11 | }
12 |
/host/spi-builder-workspace/Sources/EZNetworking/Core/Request/Request.swift:16:29: error: cannot find type 'URLRequest' in scope
14 | extension Request {
15 | public var timeoutInterval: TimeInterval { 60 }
16 | public var cachePolicy: URLRequest.CachePolicy { .useProtocolCachePolicy }
| `- error: cannot find type 'URLRequest' in scope
17 | }
18 |
/host/spi-builder-workspace/Sources/EZNetworking/Core/Request/Request.swift:21:93: error: cannot find type 'URLRequest' in scope
19 | // additions
20 | extension Request {
21 | public func getURLRequest(allowedSchemes: URLBuilder.URLSchemePolicy = .http) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
22 | let url = try URLBuilder(allowedSchemes: allowedSchemes).buildAndValidate(baseUrl)
23 |
/host/spi-builder-workspace/Sources/EZNetworking/Core/Request/Request.swift:24:23: error: cannot find 'URLRequest' in scope
22 | let url = try URLBuilder(allowedSchemes: allowedSchemes).buildAndValidate(baseUrl)
23 |
24 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
25 | request.httpMethod = httpMethod.rawValue
26 | request.httpBody = body?.toData()
/host/spi-builder-workspace/Sources/EZNetworking/Core/HTTP/Parameters/HTTPParameterApplier.swift:6:75: error: cannot find type 'URLRequest' in scope
4 | private init() {}
5 |
6 | static func apply(_ parameters: [HTTPParameter], to urlRequest: inout URLRequest) {
| `- error: cannot find type 'URLRequest' in scope
7 | guard !parameters.isEmpty,
8 | let url = urlRequest.url,
/host/spi-builder-workspace/Sources/EZNetworking/Core/HTTP/Headers/HTTPHeaderApplier.swift:6:69: error: cannot find type 'URLRequest' in scope
4 | private init() {}
5 |
6 | static func apply(_ headers: [HTTPHeader], to urlRequest: inout URLRequest) {
| `- error: cannot find type 'URLRequest' in scope
7 | for header in headers {
8 | urlRequest.setValue(header.value, forHTTPHeaderField: header.key)
/host/spi-builder-workspace/Sources/EZNetworking/Core/Request/SpecializedRequests/EZRequest.swift:10:22: error: cannot find type 'URLRequest' in scope
8 | var body: HTTPBody?
9 | var timeoutInterval: TimeInterval
10 | var cachePolicy: URLRequest.CachePolicy
| `- error: cannot find type 'URLRequest' in scope
11 | }
12 |
/host/spi-builder-workspace/Sources/EZNetworking/Core/Request/SpecializedRequests/SSERequest.swift:33:29: error: cannot find type 'URLRequest' in scope
31 | public var parameters: [HTTPParameter]? { nil }
32 | public var body: (any HTTPBody)? { nil }
33 | public var cachePolicy: URLRequest.CachePolicy { .reloadIgnoringLocalCacheData }
| `- error: cannot find type 'URLRequest' in scope
34 | public var timeoutInterval: TimeInterval { 60 } // 1 minute
35 |
/host/spi-builder-workspace/Sources/EZNetworking/Core/Request/SpecializedRequests/WebSocketRequest.swift:28:29: error: cannot find type 'URLRequest' in scope
26 | public var parameters: [HTTPParameter]? { nil }
27 | public var body: (any HTTPBody)? { nil }
28 | public var cachePolicy: URLRequest.CachePolicy { .reloadIgnoringLocalCacheData }
| `- error: cannot find type 'URLRequest' in scope
29 | }
30 |
/host/spi-builder-workspace/Sources/EZNetworking/Core/Session/Interceptors/DefaultInterceptors/DefaultDownloadTaskInterceptor.swift:16:32: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
14 | }
15 |
16 | func urlSession(_ session: URLSession, downloadTask: URLSessionDownloadTask, didFinishDownloadingTo location: URL) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
17 | do {
18 | try validator.validateStatus(from: downloadTask.response)
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/Interceptors/DefaultInterceptors/DefaultDownloadTaskInterceptor.swift:16:58: error: 'URLSessionDownloadTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
14 | }
15 |
16 | func urlSession(_ session: URLSession, downloadTask: URLSessionDownloadTask, didFinishDownloadingTo location: URL) {
| `- error: 'URLSessionDownloadTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
17 | do {
18 | try validator.validateStatus(from: downloadTask.response)
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/DefaultInterceptors/DefaultDownloadTaskInterceptor.swift:25:32: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
23 | }
24 |
25 | func urlSession(_ session: URLSession, downloadTask: URLSessionDownloadTask, didWriteData bytesWritten: Int64, totalBytesWritten: Int64, totalBytesExpectedToWrite: Int64) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
26 | guard totalBytesExpectedToWrite > 0 else { return }
27 | let currentProgress = Double(totalBytesWritten) / Double(totalBytesExpectedToWrite)
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/Interceptors/DefaultInterceptors/DefaultDownloadTaskInterceptor.swift:25:58: error: 'URLSessionDownloadTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
23 | }
24 |
25 | func urlSession(_ session: URLSession, downloadTask: URLSessionDownloadTask, didWriteData bytesWritten: Int64, totalBytesWritten: Int64, totalBytesExpectedToWrite: Int64) {
| `- error: 'URLSessionDownloadTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
26 | guard totalBytesExpectedToWrite > 0 else { return }
27 | let currentProgress = Double(totalBytesWritten) / Double(totalBytesExpectedToWrite)
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/DefaultInterceptors/DefaultDownloadTaskInterceptor.swift:31:32: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
29 | }
30 |
31 | func urlSession(_ session: URLSession, downloadTask: URLSessionDownloadTask, didResumeAtOffset fileOffset: Int64, expectedTotalBytes: Int64) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
32 | guard expectedTotalBytes > 0 else { return }
33 | let currentProgress = Double(fileOffset) / Double(expectedTotalBytes)
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/Interceptors/DefaultInterceptors/DefaultDownloadTaskInterceptor.swift:31:58: error: 'URLSessionDownloadTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
29 | }
30 |
31 | func urlSession(_ session: URLSession, downloadTask: URLSessionDownloadTask, didResumeAtOffset fileOffset: Int64, expectedTotalBytes: Int64) {
| `- error: 'URLSessionDownloadTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
32 | guard expectedTotalBytes > 0 else { return }
33 | let currentProgress = Double(fileOffset) / Double(expectedTotalBytes)
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/DefaultInterceptors/DefaultDownloadTaskInterceptor.swift:37:32: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
35 | }
36 |
37 | func urlSession(_ session: URLSession, task: URLSessionTask, didCompleteWithError error: Error) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
38 | let resumeData = (error as? URLError)?.downloadTaskResumeData
39 | onEvent(.onDownloadFailed(error.asSendableError, resumeData: resumeData))
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/Interceptors/DefaultInterceptors/DefaultDownloadTaskInterceptor.swift:37:50: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
35 | }
36 |
37 | func urlSession(_ session: URLSession, task: URLSessionTask, didCompleteWithError error: Error) {
| `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
38 | let resumeData = (error as? URLError)?.downloadTaskResumeData
39 | onEvent(.onDownloadFailed(error.asSendableError, resumeData: resumeData))
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/DefaultInterceptors/DefaultDownloadTaskInterceptor.swift:18:61: error: value of type 'URLSessionDownloadTask' (aka 'AnyObject') has no member 'response'
16 | func urlSession(_ session: URLSession, downloadTask: URLSessionDownloadTask, didFinishDownloadingTo location: URL) {
17 | do {
18 | try validator.validateStatus(from: downloadTask.response)
| `- error: value of type 'URLSessionDownloadTask' (aka 'AnyObject') has no member 'response'
19 | onEvent(.onDownloadCompleted(location))
20 | } catch {
/host/spi-builder-workspace/Sources/EZNetworking/Core/Session/Interceptors/DefaultInterceptors/DefaultDownloadTaskInterceptor.swift:38:48: error: value of type 'URLError' has no member 'downloadTaskResumeData'
36 |
37 | func urlSession(_ session: URLSession, task: URLSessionTask, didCompleteWithError error: Error) {
38 | let resumeData = (error as? URLError)?.downloadTaskResumeData
| `- error: value of type 'URLError' has no member 'downloadTaskResumeData'
39 | onEvent(.onDownloadFailed(error.asSendableError, resumeData: resumeData))
40 | }
/host/spi-builder-workspace/Sources/EZNetworking/Core/Session/Interceptors/DefaultInterceptors/DefaultUploadTaskInterceptor.swift:17:32: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
15 | }
16 |
17 | func urlSession(_ session: URLSession, task: URLSessionTask, didSendBodyData bytesSent: Int64, totalBytesSent: Int64, totalBytesExpectedToSend: Int64) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
18 | guard totalBytesExpectedToSend > 0 else { return }
19 | let currentProgress = Double(totalBytesSent) / Double(totalBytesExpectedToSend)
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/Interceptors/DefaultInterceptors/DefaultUploadTaskInterceptor.swift:17:50: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
15 | }
16 |
17 | func urlSession(_ session: URLSession, task: URLSessionTask, didSendBodyData bytesSent: Int64, totalBytesSent: Int64, totalBytesExpectedToSend: Int64) {
| `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
18 | guard totalBytesExpectedToSend > 0 else { return }
19 | let currentProgress = Double(totalBytesSent) / Double(totalBytesExpectedToSend)
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/DefaultInterceptors/DefaultUploadTaskInterceptor.swift:23:32: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
21 | }
22 |
23 | func urlSession(_ session: URLSession, dataTask: URLSessionDataTask, didReceive data: Data) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
24 | receivedData.append(data)
25 | }
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/Interceptors/DefaultInterceptors/DefaultUploadTaskInterceptor.swift:23:54: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
21 | }
22 |
23 | func urlSession(_ session: URLSession, dataTask: URLSessionDataTask, didReceive data: Data) {
| `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
24 | receivedData.append(data)
25 | }
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionDataTask = AnyObject
| `- note: 'URLSessionDataTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/EZNetworking/Core/Session/Interceptors/DefaultInterceptors/DefaultUploadTaskInterceptor.swift:27:32: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
25 | }
26 |
27 | func urlSession(_ session: URLSession, task: URLSessionTask, didCompleteWithError error: Error?) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
28 | defer { receivedData.removeAll(keepingCapacity: false) }
29 | if let 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/Interceptors/DefaultInterceptors/DefaultUploadTaskInterceptor.swift:27:50: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
25 | }
26 |
27 | func urlSession(_ session: URLSession, task: URLSessionTask, didCompleteWithError error: Error?) {
| `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
28 | defer { receivedData.removeAll(keepingCapacity: false) }
29 | if let error {
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/DefaultInterceptors/DefaultUploadTaskInterceptor.swift:37:53: error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'response'
35 | }
36 | do {
37 | try validator.validateStatus(from: task.response)
| `- error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'response'
38 | onEvent(.onUploadCompleted(receivedData))
39 | } catch {
/host/spi-builder-workspace/Sources/EZNetworking/Core/Session/Interceptors/DefaultInterceptors/DefaultWebSocketTaskInterceptor.swift:10:59: error: cannot find type 'URLSessionWebSocketTask' in scope
8 | }
9 |
10 | func urlSession(_ session: URLSession, webSocketTask: URLSessionWebSocketTask, didOpenWithProtocol protocol: String?) {
| `- error: cannot find type 'URLSessionWebSocketTask' in scope
11 | onEvent?(.didOpenWithProtocol(protocolStr: `protocol`))
12 | }
/host/spi-builder-workspace/Sources/EZNetworking/Core/Session/Interceptors/DefaultInterceptors/DefaultWebSocketTaskInterceptor.swift:10:32: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
8 | }
9 |
10 | func urlSession(_ session: URLSession, webSocketTask: URLSessionWebSocketTask, didOpenWithProtocol protocol: String?) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
11 | onEvent?(.didOpenWithProtocol(protocolStr: `protocol`))
12 | }
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/Interceptors/DefaultInterceptors/DefaultWebSocketTaskInterceptor.swift:14:32: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
12 | }
13 |
14 | func urlSession(_ session: URLSession, task: URLSessionTask, didCompleteWithError error: any Error) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
15 | onEvent?(.didOpenWithError(error: error.asSendableError))
16 | }
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/Interceptors/DefaultInterceptors/DefaultWebSocketTaskInterceptor.swift:14:50: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
12 | }
13 |
14 | func urlSession(_ session: URLSession, task: URLSessionTask, didCompleteWithError error: any Error) {
| `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
15 | onEvent?(.didOpenWithError(error: error.asSendableError))
16 | }
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/DefaultInterceptors/DefaultWebSocketTaskInterceptor.swift:18:59: error: cannot find type 'URLSessionWebSocketTask' in scope
16 | }
17 |
18 | func urlSession(_ session: URLSession, webSocketTask: URLSessionWebSocketTask, didCloseWith closeCode: URLSessionWebSocketTask.CloseCode, reason: Data?) {
| `- error: cannot find type 'URLSessionWebSocketTask' in scope
19 | onEvent?(.didClose(code: closeCode, reason: reason))
20 | }
/host/spi-builder-workspace/Sources/EZNetworking/Core/Session/Interceptors/DefaultInterceptors/DefaultWebSocketTaskInterceptor.swift:18:108: error: cannot find type 'URLSessionWebSocketTask' in scope
16 | }
17 |
18 | func urlSession(_ session: URLSession, webSocketTask: URLSessionWebSocketTask, didCloseWith closeCode: URLSessionWebSocketTask.CloseCode, reason: Data?) {
| `- error: cannot find type 'URLSessionWebSocketTask' in scope
19 | onEvent?(.didClose(code: closeCode, reason: reason))
20 | }
/host/spi-builder-workspace/Sources/EZNetworking/Core/Session/Interceptors/DefaultInterceptors/DefaultWebSocketTaskInterceptor.swift:18:32: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
16 | }
17 |
18 | func urlSession(_ session: URLSession, webSocketTask: URLSessionWebSocketTask, didCloseWith closeCode: URLSessionWebSocketTask.CloseCode, reason: Data?) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
19 | onEvent?(.didClose(code: closeCode, reason: reason))
20 | }
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/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/Interceptors/Protocols/WebSocketTaskInterceptor.swift:20:25: error: cannot find type 'URLSessionWebSocketTask' in scope
18 | case didOpenWithProtocol(protocolStr: String?)
19 | case didOpenWithError(error: SendableError)
20 | case didClose(code: URLSessionWebSocketTask.CloseCode, reason: Data?)
| `- error: cannot find type 'URLSessionWebSocketTask' in scope
21 | }
22 |
/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:6:32: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
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: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
7 |
8 | /// Intercepts authentication challenges for the entire URLSession.
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/Interceptors/Protocols/AuthenticationInterceptor.swift:6:50: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
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: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
7 |
8 | /// Intercepts authentication challenges for the entire URLSession.
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:88: error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
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: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
7 |
8 | /// Intercepts authentication challenges for the entire URLSession.
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/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/Interceptors/Protocols/AuthenticationInterceptor.swift:9:32: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
7 |
8 | /// Intercepts authentication challenges for the entire URLSession.
9 | func urlSession(_ session: URLSession, didReceive challenge: URLAuthenticationChallenge) async -> (URLSession.AuthChallengeDisposition, URLCredential?)
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
10 | }
11 |
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/Interceptors/Protocols/AuthenticationInterceptor.swift:9:66: error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
7 |
8 | /// Intercepts authentication challenges for the entire URLSession.
9 | func urlSession(_ session: URLSession, didReceive challenge: URLAuthenticationChallenge) async -> (URLSession.AuthChallengeDisposition, URLCredential?)
| `- error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
10 | }
11 |
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
BUILD FAILURE 6.2 android