Build Information
Failed to build EZNetworking, reference 5.6.0 (c0bc82), with Swift 6.2 for Android on 26 Jun 2026 09:13:05 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-53886769-0":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/saguaro1/spi-images:android-6.2-latest swift build --swift-sdk aarch64-unknown-linux-android28 2>&1Build Log
/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/Session/URLSessionProtocols/URLSessionProtocol.swift:8:29: error: cannot find type 'URLRequest' in scope
6 | func webSocketTaskInspectable(with request: URLRequest) -> URLSessionWebSocketTaskProtocol
7 |
8 | func bytes(for request: URLRequest) async throws -> (AsyncThrowingStream<UInt8, Error>, URLResponse)
| `- error: cannot find type 'URLRequest' in scope
9 |
10 | func downloadTaskInspectable(with request: URLRequest) -> URLSessionDownloadTaskProtocol
/host/spi-builder-workspace/Sources/EZNetworking/Core/Session/URLSessionProtocols/URLSessionProtocol.swift:13:46: error: cannot find type 'URLRequest' in scope
11 | func downloadTaskInspectable(withResumeData resumeData: Data) -> URLSessionDownloadTaskProtocol
12 |
13 | func uploadTaskInspectable(with request: URLRequest, fromFile fileURL: URL) -> URLSessionUploadTaskProtocol
| `- error: cannot find type 'URLRequest' in scope
14 | func uploadTaskInspectable(withResumeData resumeData: Data) -> URLSessionUploadTaskProtocol
15 | }
/host/spi-builder-workspace/Sources/EZNetworking/Services/Uploader/FileUploader/FileUploader.swift:62:64: error: extra arguments at positions #1, #2 in call
60 | let urlRequest = try request.getURLRequest()
61 | state = .uploading
62 | let task = session.urlSession.uploadTaskInspectable(with: urlRequest, fromFile: fileURL)
| `- error: extra arguments at positions #1, #2 in call
63 | uploadTask = task
64 | task.resume()
/host/spi-builder-workspace/Sources/EZNetworking/Core/Session/URLSessionProtocols/URLSessionProtocol.swift:14:10: note: 'uploadTaskInspectable(withResumeData:)' declared here
12 |
13 | func uploadTaskInspectable(with request: URLRequest, fromFile fileURL: URL) -> URLSessionUploadTaskProtocol
14 | func uploadTaskInspectable(withResumeData resumeData: Data) -> URLSessionUploadTaskProtocol
| `- note: 'uploadTaskInspectable(withResumeData:)' declared here
15 | }
16 |
/host/spi-builder-workspace/Sources/EZNetworking/Services/Uploader/FileUploader/FileUploader.swift:62:65: error: missing argument for parameter 'withResumeData' in call
60 | let urlRequest = try request.getURLRequest()
61 | state = .uploading
62 | let task = session.urlSession.uploadTaskInspectable(with: urlRequest, fromFile: fileURL)
| `- error: missing argument for parameter 'withResumeData' in call
63 | uploadTask = task
64 | task.resume()
/host/spi-builder-workspace/Sources/EZNetworking/Core/Session/URLSessionProtocols/URLSessionProtocol.swift:14:10: note: 'uploadTaskInspectable(withResumeData:)' declared here
12 |
13 | func uploadTaskInspectable(with request: URLRequest, fromFile fileURL: URL) -> URLSessionUploadTaskProtocol
14 | func uploadTaskInspectable(withResumeData resumeData: Data) -> URLSessionUploadTaskProtocol
| `- note: 'uploadTaskInspectable(withResumeData:)' declared here
15 | }
16 |
/host/spi-builder-workspace/Sources/EZNetworking/Core/Error/NetworkFailureReason/WebSocketFailureReason.swift:19:40: error: cannot find type 'URLSessionWebSocketTask' in scope
17 |
18 | // Disconnection errors
19 | case unexpectedDisconnection(code: URLSessionWebSocketTask.CloseCode, reason: String?)
| `- error: cannot find type 'URLSessionWebSocketTask' in scope
20 | case forcedDisconnection
21 | }
/host/spi-builder-workspace/Sources/EZNetworking/Services/WebSocket/Protocols/WebSocketClient.swift:3:36: error: cannot find type 'URLSessionWebSocketTask' in scope
1 | import Foundation
2 |
3 | public typealias OutboundMessage = URLSessionWebSocketTask.Message
| `- error: cannot find type 'URLSessionWebSocketTask' in scope
4 | public typealias InboundMessage = URLSessionWebSocketTask.Message
5 |
/host/spi-builder-workspace/Sources/EZNetworking/Services/WebSocket/Protocols/WebSocketClient.swift:4:35: error: cannot find type 'URLSessionWebSocketTask' in scope
2 |
3 | public typealias OutboundMessage = URLSessionWebSocketTask.Message
4 | public typealias InboundMessage = URLSessionWebSocketTask.Message
| `- error: cannot find type 'URLSessionWebSocketTask' in scope
5 |
6 | /// A client for managing WebSocket connections.
/host/spi-builder-workspace/Sources/EZNetworking/Core/Session/URLSessionProtocols/URLSessionWebSocketTaskProtocol.swift:6:33: error: cannot find type 'URLSessionWebSocketTask' in scope
4 | public protocol URLSessionWebSocketTaskProtocol {
5 | func resume()
6 | func cancel(with closeCode: URLSessionWebSocketTask.CloseCode, reason: Data?)
| `- error: cannot find type 'URLSessionWebSocketTask' in scope
7 |
8 | func sendPing() async throws
/host/spi-builder-workspace/Sources/EZNetworking/Core/Session/URLSessionProtocols/URLSessionWebSocketTaskProtocol.swift:11:26: error: cannot find type 'URLSessionWebSocketTask' in scope
9 | func sendPing(pongReceiveHandler: @escaping @Sendable ((any Error)?) -> Void)
10 |
11 | func send(_ message: URLSessionWebSocketTask.Message) async throws
| `- error: cannot find type 'URLSessionWebSocketTask' in scope
12 | func send(_ message: URLSessionWebSocketTask.Message, completionHandler: @escaping @Sendable (Error?) -> Void)
13 |
/host/spi-builder-workspace/Sources/EZNetworking/Core/Session/URLSessionProtocols/URLSessionWebSocketTaskProtocol.swift:12:26: error: cannot find type 'URLSessionWebSocketTask' in scope
10 |
11 | func send(_ message: URLSessionWebSocketTask.Message) async throws
12 | func send(_ message: URLSessionWebSocketTask.Message, completionHandler: @escaping @Sendable (Error?) -> Void)
| `- error: cannot find type 'URLSessionWebSocketTask' in scope
13 |
14 | func receive() async throws -> URLSessionWebSocketTask.Message
/host/spi-builder-workspace/Sources/EZNetworking/Core/Session/URLSessionProtocols/URLSessionWebSocketTaskProtocol.swift:14:36: error: cannot find type 'URLSessionWebSocketTask' in scope
12 | func send(_ message: URLSessionWebSocketTask.Message, completionHandler: @escaping @Sendable (Error?) -> Void)
13 |
14 | func receive() async throws -> URLSessionWebSocketTask.Message
| `- error: cannot find type 'URLSessionWebSocketTask' in scope
15 | func receive(completionHandler: @escaping @Sendable (Result<URLSessionWebSocketTask.Message, Error>) -> Void)
16 |
/host/spi-builder-workspace/Sources/EZNetworking/Core/Session/URLSessionProtocols/URLSessionWebSocketTaskProtocol.swift:15:65: error: cannot find type 'URLSessionWebSocketTask' in scope
13 |
14 | func receive() async throws -> URLSessionWebSocketTask.Message
15 | func receive(completionHandler: @escaping @Sendable (Result<URLSessionWebSocketTask.Message, Error>) -> Void)
| `- error: cannot find type 'URLSessionWebSocketTask' in scope
16 |
17 | var closeCode: URLSessionWebSocketTask.CloseCode { get }
/host/spi-builder-workspace/Sources/EZNetworking/Core/Session/URLSessionProtocols/URLSessionWebSocketTaskProtocol.swift:17:20: error: cannot find type 'URLSessionWebSocketTask' in scope
15 | func receive(completionHandler: @escaping @Sendable (Result<URLSessionWebSocketTask.Message, Error>) -> Void)
16 |
17 | var closeCode: URLSessionWebSocketTask.CloseCode { get }
| `- error: cannot find type 'URLSessionWebSocketTask' in scope
18 | var closeReason: Data? { get }
19 | }
/host/spi-builder-workspace/Sources/EZNetworking/Core/Session/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/Services/WebSocket/WebSocket.swift:231:20: error: cannot find type 'URLSessionWebSocketTask' in scope
229 | /// This allows the streams to persist after disconnect and reconnect
230 | private func cleanup(
231 | closeCode: URLSessionWebSocketTask.CloseCode,
| `- error: cannot find type 'URLSessionWebSocketTask' in scope
232 | data: Data?,
233 | newState: WebSocketConnectionState,
/host/spi-builder-workspace/Sources/EZNetworking/Services/WebSocket/WebSocket.swift:76:78: error: cannot infer contextual base in reference to member 'ws'
74 |
75 | public func connect() async throws {
76 | let urlRequest = try webSocketRequest.getURLRequest(allowedSchemes: .ws)
| `- error: cannot infer contextual base in reference to member 'ws'
77 |
78 | // Validate current state
/host/spi-builder-workspace/Sources/EZNetworking/Core/Session/URLSessionProtocols/URLSessionProtocol.swift:6:49: error: cannot find type 'URLRequest' in scope
4 | func data(for request: URLRequest) async throws -> (Data, URLResponse)
5 |
6 | func webSocketTaskInspectable(with request: URLRequest) -> URLSessionWebSocketTaskProtocol
| `- error: cannot find type 'URLRequest' in scope
7 |
8 | func bytes(for request: URLRequest) async throws -> (AsyncThrowingStream<UInt8, Error>, URLResponse)
/host/spi-builder-workspace/Sources/EZNetworking/Core/Session/Interceptors/Protocols/WebSocketTaskInterceptor.swift:20:25: error: cannot find type 'URLSessionWebSocketTask' in scope
18 | case didOpenWithProtocol(protocolStr: String?)
19 | case didOpenWithError(error: Error)
20 | case didClose(code: URLSessionWebSocketTask.CloseCode, reason: Data?)
| `- error: cannot find type 'URLSessionWebSocketTask' in scope
21 | }
22 |
/host/spi-builder-workspace/Sources/EZNetworking/Services/WebSocket/WebSocket.swift:208:25: error: cannot infer contextual base in reference to member 'normalClosure'
206 | }
207 | cleanup(
208 | closeCode: .normalClosure,
| `- error: cannot infer contextual base in reference to member 'normalClosure'
209 | data: nil,
210 | newState: .disconnected(.manuallyDisconnected),
/host/spi-builder-workspace/Sources/EZNetworking/Services/WebSocket/WebSocket.swift:209:19: error: 'nil' requires a contextual type
207 | cleanup(
208 | closeCode: .normalClosure,
209 | data: nil,
| `- error: 'nil' requires a contextual type
210 | newState: .disconnected(.manuallyDisconnected),
211 | reason: .forcedDisconnection
/host/spi-builder-workspace/Sources/EZNetworking/Services/WebSocket/WebSocket.swift:210:24: error: cannot infer contextual base in reference to member 'disconnected'
208 | closeCode: .normalClosure,
209 | data: nil,
210 | newState: .disconnected(.manuallyDisconnected),
| `- error: cannot infer contextual base in reference to member 'disconnected'
211 | reason: .forcedDisconnection
212 | )
/host/spi-builder-workspace/Sources/EZNetworking/Services/WebSocket/WebSocket.swift:210:38: error: cannot infer contextual base in reference to member 'manuallyDisconnected'
208 | closeCode: .normalClosure,
209 | data: nil,
210 | newState: .disconnected(.manuallyDisconnected),
| `- error: cannot infer contextual base in reference to member 'manuallyDisconnected'
211 | reason: .forcedDisconnection
212 | )
/host/spi-builder-workspace/Sources/EZNetworking/Services/WebSocket/WebSocket.swift:211:22: error: cannot infer contextual base in reference to member 'forcedDisconnection'
209 | data: nil,
210 | newState: .disconnected(.manuallyDisconnected),
211 | reason: .forcedDisconnection
| `- error: cannot infer contextual base in reference to member 'forcedDisconnection'
212 | )
213 | }
/host/spi-builder-workspace/Sources/EZNetworking/Services/WebSocket/WebSocket.swift:222:24: error: cannot infer contextual base in reference to member 'disconnected'
220 | closeCode: webSocketTask?.closeCode ?? .goingAway,
221 | data: webSocketTask?.closeReason,
222 | newState: .disconnected(.connectionLost(reason: error)),
| `- error: cannot infer contextual base in reference to member 'disconnected'
223 | reason: error
224 | )
/host/spi-builder-workspace/Sources/EZNetworking/Services/WebSocket/WebSocket.swift:222:38: error: cannot infer contextual base in reference to member 'connectionLost'
220 | closeCode: webSocketTask?.closeCode ?? .goingAway,
221 | data: webSocketTask?.closeReason,
222 | newState: .disconnected(.connectionLost(reason: error)),
| `- error: cannot infer contextual base in reference to member 'connectionLost'
223 | reason: error
224 | )
/host/spi-builder-workspace/Sources/EZNetworking/Services/WebSocket/WebSocket.swift:257:25: error: cannot infer contextual base in reference to member 'normalClosure'
255 | public func terminate() async {
256 | cleanup(
257 | closeCode: .normalClosure,
| `- error: cannot infer contextual base in reference to member 'normalClosure'
258 | data: nil,
259 | newState: .disconnected(.terminated),
/host/spi-builder-workspace/Sources/EZNetworking/Services/WebSocket/WebSocket.swift:258:19: error: 'nil' requires a contextual type
256 | cleanup(
257 | closeCode: .normalClosure,
258 | data: nil,
| `- error: 'nil' requires a contextual type
259 | newState: .disconnected(.terminated),
260 | reason: .forcedDisconnection
/host/spi-builder-workspace/Sources/EZNetworking/Services/WebSocket/WebSocket.swift:259:24: error: cannot infer contextual base in reference to member 'disconnected'
257 | closeCode: .normalClosure,
258 | data: nil,
259 | newState: .disconnected(.terminated),
| `- error: cannot infer contextual base in reference to member 'disconnected'
260 | reason: .forcedDisconnection
261 | )
/host/spi-builder-workspace/Sources/EZNetworking/Services/WebSocket/WebSocket.swift:259:38: error: cannot infer contextual base in reference to member 'terminated'
257 | closeCode: .normalClosure,
258 | data: nil,
259 | newState: .disconnected(.terminated),
| `- error: cannot infer contextual base in reference to member 'terminated'
260 | reason: .forcedDisconnection
261 | )
/host/spi-builder-workspace/Sources/EZNetworking/Services/WebSocket/WebSocket.swift:260:22: error: cannot infer contextual base in reference to member 'forcedDisconnection'
258 | data: nil,
259 | newState: .disconnected(.terminated),
260 | reason: .forcedDisconnection
| `- error: cannot infer contextual base in reference to member 'forcedDisconnection'
261 | )
262 | session.delegate.webSocketTaskInterceptor?.onEvent = nil
[83/90] Compiling EZNetworking FileUploader.swift
/host/spi-builder-workspace/Sources/EZNetworking/Core/Session/Session.swift:19:51: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
17 |
18 | public init(
19 | configuration: URLSessionConfiguration = .default,
| `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
20 | delegate: SessionDelegate = SessionDelegate(),
21 | delegateQueue: OperationQueue? = nil
/host/spi-builder-workspace/Sources/EZNetworking/Core/Session/Session.swift:19:51: error: value of type '_' expected to be instance of class or class-constrained type
17 |
18 | public init(
19 | configuration: URLSessionConfiguration = .default,
| `- error: value of type '_' expected to be instance of class or class-constrained type
20 | delegate: SessionDelegate = SessionDelegate(),
21 | delegateQueue: OperationQueue? = nil
/host/spi-builder-workspace/Sources/EZNetworking/Services/ServerSentEvent/ServerSentEventManager.swift:61:36: error: value of type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'timeoutIntervalForRequest'
59 | self.responseValidator = responseValidator
60 |
61 | self.session.configuration.timeoutIntervalForRequest = 60 // Connection timeout 1 minute
| `- error: value of type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'timeoutIntervalForRequest'
62 | self.session.configuration.timeoutIntervalForResource = 86400 // 24-hour stream timeout
63 | self.session.configuration.httpShouldUsePipelining = false
/host/spi-builder-workspace/Sources/EZNetworking/Services/ServerSentEvent/ServerSentEventManager.swift:62:36: error: value of type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'timeoutIntervalForResource'
60 |
61 | self.session.configuration.timeoutIntervalForRequest = 60 // Connection timeout 1 minute
62 | self.session.configuration.timeoutIntervalForResource = 86400 // 24-hour stream timeout
| `- error: value of type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'timeoutIntervalForResource'
63 | self.session.configuration.httpShouldUsePipelining = false
64 | self.session.configuration.requestCachePolicy = .reloadIgnoringLocalCacheData
/host/spi-builder-workspace/Sources/EZNetworking/Services/ServerSentEvent/ServerSentEventManager.swift:63:36: error: value of type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'httpShouldUsePipelining'
61 | self.session.configuration.timeoutIntervalForRequest = 60 // Connection timeout 1 minute
62 | self.session.configuration.timeoutIntervalForResource = 86400 // 24-hour stream timeout
63 | self.session.configuration.httpShouldUsePipelining = false
| `- error: value of type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'httpShouldUsePipelining'
64 | self.session.configuration.requestCachePolicy = .reloadIgnoringLocalCacheData
65 |
/host/spi-builder-workspace/Sources/EZNetworking/Services/ServerSentEvent/ServerSentEventManager.swift:64:36: error: value of type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'requestCachePolicy'
62 | self.session.configuration.timeoutIntervalForResource = 86400 // 24-hour stream timeout
63 | self.session.configuration.httpShouldUsePipelining = false
64 | self.session.configuration.requestCachePolicy = .reloadIgnoringLocalCacheData
| `- error: value of type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'requestCachePolicy'
65 |
66 | let (eventsStream, eventsContinuation) = AsyncStream<ServerSentEvent>.makeStream()
/host/spi-builder-workspace/Sources/EZNetworking/Services/ServerSentEvent/ServerSentEventManager.swift:64:58: error: cannot infer contextual base in reference to member 'reloadIgnoringLocalCacheData'
62 | self.session.configuration.timeoutIntervalForResource = 86400 // 24-hour stream timeout
63 | self.session.configuration.httpShouldUsePipelining = false
64 | self.session.configuration.requestCachePolicy = .reloadIgnoringLocalCacheData
| `- error: cannot infer contextual base in reference to member 'reloadIgnoringLocalCacheData'
65 |
66 | let (eventsStream, eventsContinuation) = AsyncStream<ServerSentEvent>.makeStream()
/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/Session/URLSessionProtocols/URLSessionProtocol.swift:8:29: error: cannot find type 'URLRequest' in scope
6 | func webSocketTaskInspectable(with request: URLRequest) -> URLSessionWebSocketTaskProtocol
7 |
8 | func bytes(for request: URLRequest) async throws -> (AsyncThrowingStream<UInt8, Error>, URLResponse)
| `- error: cannot find type 'URLRequest' in scope
9 |
10 | func downloadTaskInspectable(with request: URLRequest) -> URLSessionDownloadTaskProtocol
/host/spi-builder-workspace/Sources/EZNetworking/Core/Session/URLSessionProtocols/URLSessionProtocol.swift:13:46: error: cannot find type 'URLRequest' in scope
11 | func downloadTaskInspectable(withResumeData resumeData: Data) -> URLSessionDownloadTaskProtocol
12 |
13 | func uploadTaskInspectable(with request: URLRequest, fromFile fileURL: URL) -> URLSessionUploadTaskProtocol
| `- error: cannot find type 'URLRequest' in scope
14 | func uploadTaskInspectable(withResumeData resumeData: Data) -> URLSessionUploadTaskProtocol
15 | }
/host/spi-builder-workspace/Sources/EZNetworking/Services/Uploader/FileUploader/FileUploader.swift:62:64: error: extra arguments at positions #1, #2 in call
60 | let urlRequest = try request.getURLRequest()
61 | state = .uploading
62 | let task = session.urlSession.uploadTaskInspectable(with: urlRequest, fromFile: fileURL)
| `- error: extra arguments at positions #1, #2 in call
63 | uploadTask = task
64 | task.resume()
/host/spi-builder-workspace/Sources/EZNetworking/Core/Session/URLSessionProtocols/URLSessionProtocol.swift:14:10: note: 'uploadTaskInspectable(withResumeData:)' declared here
12 |
13 | func uploadTaskInspectable(with request: URLRequest, fromFile fileURL: URL) -> URLSessionUploadTaskProtocol
14 | func uploadTaskInspectable(withResumeData resumeData: Data) -> URLSessionUploadTaskProtocol
| `- note: 'uploadTaskInspectable(withResumeData:)' declared here
15 | }
16 |
/host/spi-builder-workspace/Sources/EZNetworking/Services/Uploader/FileUploader/FileUploader.swift:62:65: error: missing argument for parameter 'withResumeData' in call
60 | let urlRequest = try request.getURLRequest()
61 | state = .uploading
62 | let task = session.urlSession.uploadTaskInspectable(with: urlRequest, fromFile: fileURL)
| `- error: missing argument for parameter 'withResumeData' in call
63 | uploadTask = task
64 | task.resume()
/host/spi-builder-workspace/Sources/EZNetworking/Core/Session/URLSessionProtocols/URLSessionProtocol.swift:14:10: note: 'uploadTaskInspectable(withResumeData:)' declared here
12 |
13 | func uploadTaskInspectable(with request: URLRequest, fromFile fileURL: URL) -> URLSessionUploadTaskProtocol
14 | func uploadTaskInspectable(withResumeData resumeData: Data) -> URLSessionUploadTaskProtocol
| `- note: 'uploadTaskInspectable(withResumeData:)' declared here
15 | }
16 |
/host/spi-builder-workspace/Sources/EZNetworking/Core/Error/NetworkFailureReason/WebSocketFailureReason.swift:19:40: error: cannot find type 'URLSessionWebSocketTask' in scope
17 |
18 | // Disconnection errors
19 | case unexpectedDisconnection(code: URLSessionWebSocketTask.CloseCode, reason: String?)
| `- error: cannot find type 'URLSessionWebSocketTask' in scope
20 | case forcedDisconnection
21 | }
/host/spi-builder-workspace/Sources/EZNetworking/Services/WebSocket/Protocols/WebSocketClient.swift:3:36: error: cannot find type 'URLSessionWebSocketTask' in scope
1 | import Foundation
2 |
3 | public typealias OutboundMessage = URLSessionWebSocketTask.Message
| `- error: cannot find type 'URLSessionWebSocketTask' in scope
4 | public typealias InboundMessage = URLSessionWebSocketTask.Message
5 |
/host/spi-builder-workspace/Sources/EZNetworking/Services/WebSocket/Protocols/WebSocketClient.swift:4:35: error: cannot find type 'URLSessionWebSocketTask' in scope
2 |
3 | public typealias OutboundMessage = URLSessionWebSocketTask.Message
4 | public typealias InboundMessage = URLSessionWebSocketTask.Message
| `- error: cannot find type 'URLSessionWebSocketTask' in scope
5 |
6 | /// A client for managing WebSocket connections.
/host/spi-builder-workspace/Sources/EZNetworking/Core/Session/URLSessionProtocols/URLSessionWebSocketTaskProtocol.swift:6:33: error: cannot find type 'URLSessionWebSocketTask' in scope
4 | public protocol URLSessionWebSocketTaskProtocol {
5 | func resume()
6 | func cancel(with closeCode: URLSessionWebSocketTask.CloseCode, reason: Data?)
| `- error: cannot find type 'URLSessionWebSocketTask' in scope
7 |
8 | func sendPing() async throws
/host/spi-builder-workspace/Sources/EZNetworking/Core/Session/URLSessionProtocols/URLSessionWebSocketTaskProtocol.swift:11:26: error: cannot find type 'URLSessionWebSocketTask' in scope
9 | func sendPing(pongReceiveHandler: @escaping @Sendable ((any Error)?) -> Void)
10 |
11 | func send(_ message: URLSessionWebSocketTask.Message) async throws
| `- error: cannot find type 'URLSessionWebSocketTask' in scope
12 | func send(_ message: URLSessionWebSocketTask.Message, completionHandler: @escaping @Sendable (Error?) -> Void)
13 |
/host/spi-builder-workspace/Sources/EZNetworking/Core/Session/URLSessionProtocols/URLSessionWebSocketTaskProtocol.swift:12:26: error: cannot find type 'URLSessionWebSocketTask' in scope
10 |
11 | func send(_ message: URLSessionWebSocketTask.Message) async throws
12 | func send(_ message: URLSessionWebSocketTask.Message, completionHandler: @escaping @Sendable (Error?) -> Void)
| `- error: cannot find type 'URLSessionWebSocketTask' in scope
13 |
14 | func receive() async throws -> URLSessionWebSocketTask.Message
/host/spi-builder-workspace/Sources/EZNetworking/Core/Session/URLSessionProtocols/URLSessionWebSocketTaskProtocol.swift:14:36: error: cannot find type 'URLSessionWebSocketTask' in scope
12 | func send(_ message: URLSessionWebSocketTask.Message, completionHandler: @escaping @Sendable (Error?) -> Void)
13 |
14 | func receive() async throws -> URLSessionWebSocketTask.Message
| `- error: cannot find type 'URLSessionWebSocketTask' in scope
15 | func receive(completionHandler: @escaping @Sendable (Result<URLSessionWebSocketTask.Message, Error>) -> Void)
16 |
/host/spi-builder-workspace/Sources/EZNetworking/Core/Session/URLSessionProtocols/URLSessionWebSocketTaskProtocol.swift:15:65: error: cannot find type 'URLSessionWebSocketTask' in scope
13 |
14 | func receive() async throws -> URLSessionWebSocketTask.Message
15 | func receive(completionHandler: @escaping @Sendable (Result<URLSessionWebSocketTask.Message, Error>) -> Void)
| `- error: cannot find type 'URLSessionWebSocketTask' in scope
16 |
17 | var closeCode: URLSessionWebSocketTask.CloseCode { get }
/host/spi-builder-workspace/Sources/EZNetworking/Core/Session/URLSessionProtocols/URLSessionWebSocketTaskProtocol.swift:17:20: error: cannot find type 'URLSessionWebSocketTask' in scope
15 | func receive(completionHandler: @escaping @Sendable (Result<URLSessionWebSocketTask.Message, Error>) -> Void)
16 |
17 | var closeCode: URLSessionWebSocketTask.CloseCode { get }
| `- error: cannot find type 'URLSessionWebSocketTask' in scope
18 | var closeReason: Data? { get }
19 | }
/host/spi-builder-workspace/Sources/EZNetworking/Core/Session/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/Services/WebSocket/WebSocket.swift:231:20: error: cannot find type 'URLSessionWebSocketTask' in scope
229 | /// This allows the streams to persist after disconnect and reconnect
230 | private func cleanup(
231 | closeCode: URLSessionWebSocketTask.CloseCode,
| `- error: cannot find type 'URLSessionWebSocketTask' in scope
232 | data: Data?,
233 | newState: WebSocketConnectionState,
/host/spi-builder-workspace/Sources/EZNetworking/Services/WebSocket/WebSocket.swift:76:78: error: cannot infer contextual base in reference to member 'ws'
74 |
75 | public func connect() async throws {
76 | let urlRequest = try webSocketRequest.getURLRequest(allowedSchemes: .ws)
| `- error: cannot infer contextual base in reference to member 'ws'
77 |
78 | // Validate current state
/host/spi-builder-workspace/Sources/EZNetworking/Core/Session/URLSessionProtocols/URLSessionProtocol.swift:6:49: error: cannot find type 'URLRequest' in scope
4 | func data(for request: URLRequest) async throws -> (Data, URLResponse)
5 |
6 | func webSocketTaskInspectable(with request: URLRequest) -> URLSessionWebSocketTaskProtocol
| `- error: cannot find type 'URLRequest' in scope
7 |
8 | func bytes(for request: URLRequest) async throws -> (AsyncThrowingStream<UInt8, Error>, URLResponse)
/host/spi-builder-workspace/Sources/EZNetworking/Core/Session/Interceptors/Protocols/WebSocketTaskInterceptor.swift:20:25: error: cannot find type 'URLSessionWebSocketTask' in scope
18 | case didOpenWithProtocol(protocolStr: String?)
19 | case didOpenWithError(error: Error)
20 | case didClose(code: URLSessionWebSocketTask.CloseCode, reason: Data?)
| `- error: cannot find type 'URLSessionWebSocketTask' in scope
21 | }
22 |
/host/spi-builder-workspace/Sources/EZNetworking/Services/WebSocket/WebSocket.swift:208:25: error: cannot infer contextual base in reference to member 'normalClosure'
206 | }
207 | cleanup(
208 | closeCode: .normalClosure,
| `- error: cannot infer contextual base in reference to member 'normalClosure'
209 | data: nil,
210 | newState: .disconnected(.manuallyDisconnected),
/host/spi-builder-workspace/Sources/EZNetworking/Services/WebSocket/WebSocket.swift:209:19: error: 'nil' requires a contextual type
207 | cleanup(
208 | closeCode: .normalClosure,
209 | data: nil,
| `- error: 'nil' requires a contextual type
210 | newState: .disconnected(.manuallyDisconnected),
211 | reason: .forcedDisconnection
/host/spi-builder-workspace/Sources/EZNetworking/Services/WebSocket/WebSocket.swift:210:24: error: cannot infer contextual base in reference to member 'disconnected'
208 | closeCode: .normalClosure,
209 | data: nil,
210 | newState: .disconnected(.manuallyDisconnected),
| `- error: cannot infer contextual base in reference to member 'disconnected'
211 | reason: .forcedDisconnection
212 | )
/host/spi-builder-workspace/Sources/EZNetworking/Services/WebSocket/WebSocket.swift:210:38: error: cannot infer contextual base in reference to member 'manuallyDisconnected'
208 | closeCode: .normalClosure,
209 | data: nil,
210 | newState: .disconnected(.manuallyDisconnected),
| `- error: cannot infer contextual base in reference to member 'manuallyDisconnected'
211 | reason: .forcedDisconnection
212 | )
/host/spi-builder-workspace/Sources/EZNetworking/Services/WebSocket/WebSocket.swift:211:22: error: cannot infer contextual base in reference to member 'forcedDisconnection'
209 | data: nil,
210 | newState: .disconnected(.manuallyDisconnected),
211 | reason: .forcedDisconnection
| `- error: cannot infer contextual base in reference to member 'forcedDisconnection'
212 | )
213 | }
/host/spi-builder-workspace/Sources/EZNetworking/Services/WebSocket/WebSocket.swift:222:24: error: cannot infer contextual base in reference to member 'disconnected'
220 | closeCode: webSocketTask?.closeCode ?? .goingAway,
221 | data: webSocketTask?.closeReason,
222 | newState: .disconnected(.connectionLost(reason: error)),
| `- error: cannot infer contextual base in reference to member 'disconnected'
223 | reason: error
224 | )
/host/spi-builder-workspace/Sources/EZNetworking/Services/WebSocket/WebSocket.swift:222:38: error: cannot infer contextual base in reference to member 'connectionLost'
220 | closeCode: webSocketTask?.closeCode ?? .goingAway,
221 | data: webSocketTask?.closeReason,
222 | newState: .disconnected(.connectionLost(reason: error)),
| `- error: cannot infer contextual base in reference to member 'connectionLost'
223 | reason: error
224 | )
/host/spi-builder-workspace/Sources/EZNetworking/Services/WebSocket/WebSocket.swift:257:25: error: cannot infer contextual base in reference to member 'normalClosure'
255 | public func terminate() async {
256 | cleanup(
257 | closeCode: .normalClosure,
| `- error: cannot infer contextual base in reference to member 'normalClosure'
258 | data: nil,
259 | newState: .disconnected(.terminated),
/host/spi-builder-workspace/Sources/EZNetworking/Services/WebSocket/WebSocket.swift:258:19: error: 'nil' requires a contextual type
256 | cleanup(
257 | closeCode: .normalClosure,
258 | data: nil,
| `- error: 'nil' requires a contextual type
259 | newState: .disconnected(.terminated),
260 | reason: .forcedDisconnection
/host/spi-builder-workspace/Sources/EZNetworking/Services/WebSocket/WebSocket.swift:259:24: error: cannot infer contextual base in reference to member 'disconnected'
257 | closeCode: .normalClosure,
258 | data: nil,
259 | newState: .disconnected(.terminated),
| `- error: cannot infer contextual base in reference to member 'disconnected'
260 | reason: .forcedDisconnection
261 | )
/host/spi-builder-workspace/Sources/EZNetworking/Services/WebSocket/WebSocket.swift:259:38: error: cannot infer contextual base in reference to member 'terminated'
257 | closeCode: .normalClosure,
258 | data: nil,
259 | newState: .disconnected(.terminated),
| `- error: cannot infer contextual base in reference to member 'terminated'
260 | reason: .forcedDisconnection
261 | )
/host/spi-builder-workspace/Sources/EZNetworking/Services/WebSocket/WebSocket.swift:260:22: error: cannot infer contextual base in reference to member 'forcedDisconnection'
258 | data: nil,
259 | newState: .disconnected(.terminated),
260 | reason: .forcedDisconnection
| `- error: cannot infer contextual base in reference to member 'forcedDisconnection'
261 | )
262 | session.delegate.webSocketTaskInterceptor?.onEvent = nil
[84/90] Compiling EZNetworking UploadEvent.swift
/host/spi-builder-workspace/Sources/EZNetworking/Core/Session/Session.swift:19:51: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
17 |
18 | public init(
19 | configuration: URLSessionConfiguration = .default,
| `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
20 | delegate: SessionDelegate = SessionDelegate(),
21 | delegateQueue: OperationQueue? = nil
/host/spi-builder-workspace/Sources/EZNetworking/Core/Session/Session.swift:19:51: error: value of type '_' expected to be instance of class or class-constrained type
17 |
18 | public init(
19 | configuration: URLSessionConfiguration = .default,
| `- error: value of type '_' expected to be instance of class or class-constrained type
20 | delegate: SessionDelegate = SessionDelegate(),
21 | delegateQueue: OperationQueue? = nil
/host/spi-builder-workspace/Sources/EZNetworking/Services/ServerSentEvent/ServerSentEventManager.swift:61:36: error: value of type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'timeoutIntervalForRequest'
59 | self.responseValidator = responseValidator
60 |
61 | self.session.configuration.timeoutIntervalForRequest = 60 // Connection timeout 1 minute
| `- error: value of type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'timeoutIntervalForRequest'
62 | self.session.configuration.timeoutIntervalForResource = 86400 // 24-hour stream timeout
63 | self.session.configuration.httpShouldUsePipelining = false
/host/spi-builder-workspace/Sources/EZNetworking/Services/ServerSentEvent/ServerSentEventManager.swift:62:36: error: value of type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'timeoutIntervalForResource'
60 |
61 | self.session.configuration.timeoutIntervalForRequest = 60 // Connection timeout 1 minute
62 | self.session.configuration.timeoutIntervalForResource = 86400 // 24-hour stream timeout
| `- error: value of type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'timeoutIntervalForResource'
63 | self.session.configuration.httpShouldUsePipelining = false
64 | self.session.configuration.requestCachePolicy = .reloadIgnoringLocalCacheData
/host/spi-builder-workspace/Sources/EZNetworking/Services/ServerSentEvent/ServerSentEventManager.swift:63:36: error: value of type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'httpShouldUsePipelining'
61 | self.session.configuration.timeoutIntervalForRequest = 60 // Connection timeout 1 minute
62 | self.session.configuration.timeoutIntervalForResource = 86400 // 24-hour stream timeout
63 | self.session.configuration.httpShouldUsePipelining = false
| `- error: value of type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'httpShouldUsePipelining'
64 | self.session.configuration.requestCachePolicy = .reloadIgnoringLocalCacheData
65 |
/host/spi-builder-workspace/Sources/EZNetworking/Services/ServerSentEvent/ServerSentEventManager.swift:64:36: error: value of type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'requestCachePolicy'
62 | self.session.configuration.timeoutIntervalForResource = 86400 // 24-hour stream timeout
63 | self.session.configuration.httpShouldUsePipelining = false
64 | self.session.configuration.requestCachePolicy = .reloadIgnoringLocalCacheData
| `- error: value of type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'requestCachePolicy'
65 |
66 | let (eventsStream, eventsContinuation) = AsyncStream<ServerSentEvent>.makeStream()
/host/spi-builder-workspace/Sources/EZNetworking/Services/ServerSentEvent/ServerSentEventManager.swift:64:58: error: cannot infer contextual base in reference to member 'reloadIgnoringLocalCacheData'
62 | self.session.configuration.timeoutIntervalForResource = 86400 // 24-hour stream timeout
63 | self.session.configuration.httpShouldUsePipelining = false
64 | self.session.configuration.requestCachePolicy = .reloadIgnoringLocalCacheData
| `- error: cannot infer contextual base in reference to member 'reloadIgnoringLocalCacheData'
65 |
66 | let (eventsStream, eventsContinuation) = AsyncStream<ServerSentEvent>.makeStream()
/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/Session/URLSessionProtocols/URLSessionProtocol.swift:8:29: error: cannot find type 'URLRequest' in scope
6 | func webSocketTaskInspectable(with request: URLRequest) -> URLSessionWebSocketTaskProtocol
7 |
8 | func bytes(for request: URLRequest) async throws -> (AsyncThrowingStream<UInt8, Error>, URLResponse)
| `- error: cannot find type 'URLRequest' in scope
9 |
10 | func downloadTaskInspectable(with request: URLRequest) -> URLSessionDownloadTaskProtocol
/host/spi-builder-workspace/Sources/EZNetworking/Core/Session/URLSessionProtocols/URLSessionProtocol.swift:13:46: error: cannot find type 'URLRequest' in scope
11 | func downloadTaskInspectable(withResumeData resumeData: Data) -> URLSessionDownloadTaskProtocol
12 |
13 | func uploadTaskInspectable(with request: URLRequest, fromFile fileURL: URL) -> URLSessionUploadTaskProtocol
| `- error: cannot find type 'URLRequest' in scope
14 | func uploadTaskInspectable(withResumeData resumeData: Data) -> URLSessionUploadTaskProtocol
15 | }
/host/spi-builder-workspace/Sources/EZNetworking/Services/Uploader/FileUploader/FileUploader.swift:62:64: error: extra arguments at positions #1, #2 in call
60 | let urlRequest = try request.getURLRequest()
61 | state = .uploading
62 | let task = session.urlSession.uploadTaskInspectable(with: urlRequest, fromFile: fileURL)
| `- error: extra arguments at positions #1, #2 in call
63 | uploadTask = task
64 | task.resume()
/host/spi-builder-workspace/Sources/EZNetworking/Core/Session/URLSessionProtocols/URLSessionProtocol.swift:14:10: note: 'uploadTaskInspectable(withResumeData:)' declared here
12 |
13 | func uploadTaskInspectable(with request: URLRequest, fromFile fileURL: URL) -> URLSessionUploadTaskProtocol
14 | func uploadTaskInspectable(withResumeData resumeData: Data) -> URLSessionUploadTaskProtocol
| `- note: 'uploadTaskInspectable(withResumeData:)' declared here
15 | }
16 |
/host/spi-builder-workspace/Sources/EZNetworking/Services/Uploader/FileUploader/FileUploader.swift:62:65: error: missing argument for parameter 'withResumeData' in call
60 | let urlRequest = try request.getURLRequest()
61 | state = .uploading
62 | let task = session.urlSession.uploadTaskInspectable(with: urlRequest, fromFile: fileURL)
| `- error: missing argument for parameter 'withResumeData' in call
63 | uploadTask = task
64 | task.resume()
/host/spi-builder-workspace/Sources/EZNetworking/Core/Session/URLSessionProtocols/URLSessionProtocol.swift:14:10: note: 'uploadTaskInspectable(withResumeData:)' declared here
12 |
13 | func uploadTaskInspectable(with request: URLRequest, fromFile fileURL: URL) -> URLSessionUploadTaskProtocol
14 | func uploadTaskInspectable(withResumeData resumeData: Data) -> URLSessionUploadTaskProtocol
| `- note: 'uploadTaskInspectable(withResumeData:)' declared here
15 | }
16 |
/host/spi-builder-workspace/Sources/EZNetworking/Core/Error/NetworkFailureReason/WebSocketFailureReason.swift:19:40: error: cannot find type 'URLSessionWebSocketTask' in scope
17 |
18 | // Disconnection errors
19 | case unexpectedDisconnection(code: URLSessionWebSocketTask.CloseCode, reason: String?)
| `- error: cannot find type 'URLSessionWebSocketTask' in scope
20 | case forcedDisconnection
21 | }
/host/spi-builder-workspace/Sources/EZNetworking/Services/WebSocket/Protocols/WebSocketClient.swift:3:36: error: cannot find type 'URLSessionWebSocketTask' in scope
1 | import Foundation
2 |
3 | public typealias OutboundMessage = URLSessionWebSocketTask.Message
| `- error: cannot find type 'URLSessionWebSocketTask' in scope
4 | public typealias InboundMessage = URLSessionWebSocketTask.Message
5 |
/host/spi-builder-workspace/Sources/EZNetworking/Services/WebSocket/Protocols/WebSocketClient.swift:4:35: error: cannot find type 'URLSessionWebSocketTask' in scope
2 |
3 | public typealias OutboundMessage = URLSessionWebSocketTask.Message
4 | public typealias InboundMessage = URLSessionWebSocketTask.Message
| `- error: cannot find type 'URLSessionWebSocketTask' in scope
5 |
6 | /// A client for managing WebSocket connections.
/host/spi-builder-workspace/Sources/EZNetworking/Core/Session/URLSessionProtocols/URLSessionWebSocketTaskProtocol.swift:6:33: error: cannot find type 'URLSessionWebSocketTask' in scope
4 | public protocol URLSessionWebSocketTaskProtocol {
5 | func resume()
6 | func cancel(with closeCode: URLSessionWebSocketTask.CloseCode, reason: Data?)
| `- error: cannot find type 'URLSessionWebSocketTask' in scope
7 |
8 | func sendPing() async throws
/host/spi-builder-workspace/Sources/EZNetworking/Core/Session/URLSessionProtocols/URLSessionWebSocketTaskProtocol.swift:11:26: error: cannot find type 'URLSessionWebSocketTask' in scope
9 | func sendPing(pongReceiveHandler: @escaping @Sendable ((any Error)?) -> Void)
10 |
11 | func send(_ message: URLSessionWebSocketTask.Message) async throws
| `- error: cannot find type 'URLSessionWebSocketTask' in scope
12 | func send(_ message: URLSessionWebSocketTask.Message, completionHandler: @escaping @Sendable (Error?) -> Void)
13 |
/host/spi-builder-workspace/Sources/EZNetworking/Core/Session/URLSessionProtocols/URLSessionWebSocketTaskProtocol.swift:12:26: error: cannot find type 'URLSessionWebSocketTask' in scope
10 |
11 | func send(_ message: URLSessionWebSocketTask.Message) async throws
12 | func send(_ message: URLSessionWebSocketTask.Message, completionHandler: @escaping @Sendable (Error?) -> Void)
| `- error: cannot find type 'URLSessionWebSocketTask' in scope
13 |
14 | func receive() async throws -> URLSessionWebSocketTask.Message
/host/spi-builder-workspace/Sources/EZNetworking/Core/Session/URLSessionProtocols/URLSessionWebSocketTaskProtocol.swift:14:36: error: cannot find type 'URLSessionWebSocketTask' in scope
12 | func send(_ message: URLSessionWebSocketTask.Message, completionHandler: @escaping @Sendable (Error?) -> Void)
13 |
14 | func receive() async throws -> URLSessionWebSocketTask.Message
| `- error: cannot find type 'URLSessionWebSocketTask' in scope
15 | func receive(completionHandler: @escaping @Sendable (Result<URLSessionWebSocketTask.Message, Error>) -> Void)
16 |
/host/spi-builder-workspace/Sources/EZNetworking/Core/Session/URLSessionProtocols/URLSessionWebSocketTaskProtocol.swift:15:65: error: cannot find type 'URLSessionWebSocketTask' in scope
13 |
14 | func receive() async throws -> URLSessionWebSocketTask.Message
15 | func receive(completionHandler: @escaping @Sendable (Result<URLSessionWebSocketTask.Message, Error>) -> Void)
| `- error: cannot find type 'URLSessionWebSocketTask' in scope
16 |
17 | var closeCode: URLSessionWebSocketTask.CloseCode { get }
/host/spi-builder-workspace/Sources/EZNetworking/Core/Session/URLSessionProtocols/URLSessionWebSocketTaskProtocol.swift:17:20: error: cannot find type 'URLSessionWebSocketTask' in scope
15 | func receive(completionHandler: @escaping @Sendable (Result<URLSessionWebSocketTask.Message, Error>) -> Void)
16 |
17 | var closeCode: URLSessionWebSocketTask.CloseCode { get }
| `- error: cannot find type 'URLSessionWebSocketTask' in scope
18 | var closeReason: Data? { get }
19 | }
/host/spi-builder-workspace/Sources/EZNetworking/Core/Session/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/Services/WebSocket/WebSocket.swift:231:20: error: cannot find type 'URLSessionWebSocketTask' in scope
229 | /// This allows the streams to persist after disconnect and reconnect
230 | private func cleanup(
231 | closeCode: URLSessionWebSocketTask.CloseCode,
| `- error: cannot find type 'URLSessionWebSocketTask' in scope
232 | data: Data?,
233 | newState: WebSocketConnectionState,
/host/spi-builder-workspace/Sources/EZNetworking/Services/WebSocket/WebSocket.swift:76:78: error: cannot infer contextual base in reference to member 'ws'
74 |
75 | public func connect() async throws {
76 | let urlRequest = try webSocketRequest.getURLRequest(allowedSchemes: .ws)
| `- error: cannot infer contextual base in reference to member 'ws'
77 |
78 | // Validate current state
/host/spi-builder-workspace/Sources/EZNetworking/Core/Session/URLSessionProtocols/URLSessionProtocol.swift:6:49: error: cannot find type 'URLRequest' in scope
4 | func data(for request: URLRequest) async throws -> (Data, URLResponse)
5 |
6 | func webSocketTaskInspectable(with request: URLRequest) -> URLSessionWebSocketTaskProtocol
| `- error: cannot find type 'URLRequest' in scope
7 |
8 | func bytes(for request: URLRequest) async throws -> (AsyncThrowingStream<UInt8, Error>, URLResponse)
/host/spi-builder-workspace/Sources/EZNetworking/Core/Session/Interceptors/Protocols/WebSocketTaskInterceptor.swift:20:25: error: cannot find type 'URLSessionWebSocketTask' in scope
18 | case didOpenWithProtocol(protocolStr: String?)
19 | case didOpenWithError(error: Error)
20 | case didClose(code: URLSessionWebSocketTask.CloseCode, reason: Data?)
| `- error: cannot find type 'URLSessionWebSocketTask' in scope
21 | }
22 |
/host/spi-builder-workspace/Sources/EZNetworking/Services/WebSocket/WebSocket.swift:208:25: error: cannot infer contextual base in reference to member 'normalClosure'
206 | }
207 | cleanup(
208 | closeCode: .normalClosure,
| `- error: cannot infer contextual base in reference to member 'normalClosure'
209 | data: nil,
210 | newState: .disconnected(.manuallyDisconnected),
/host/spi-builder-workspace/Sources/EZNetworking/Services/WebSocket/WebSocket.swift:209:19: error: 'nil' requires a contextual type
207 | cleanup(
208 | closeCode: .normalClosure,
209 | data: nil,
| `- error: 'nil' requires a contextual type
210 | newState: .disconnected(.manuallyDisconnected),
211 | reason: .forcedDisconnection
/host/spi-builder-workspace/Sources/EZNetworking/Services/WebSocket/WebSocket.swift:210:24: error: cannot infer contextual base in reference to member 'disconnected'
208 | closeCode: .normalClosure,
209 | data: nil,
210 | newState: .disconnected(.manuallyDisconnected),
| `- error: cannot infer contextual base in reference to member 'disconnected'
211 | reason: .forcedDisconnection
212 | )
/host/spi-builder-workspace/Sources/EZNetworking/Services/WebSocket/WebSocket.swift:210:38: error: cannot infer contextual base in reference to member 'manuallyDisconnected'
208 | closeCode: .normalClosure,
209 | data: nil,
210 | newState: .disconnected(.manuallyDisconnected),
| `- error: cannot infer contextual base in reference to member 'manuallyDisconnected'
211 | reason: .forcedDisconnection
212 | )
/host/spi-builder-workspace/Sources/EZNetworking/Services/WebSocket/WebSocket.swift:211:22: error: cannot infer contextual base in reference to member 'forcedDisconnection'
209 | data: nil,
210 | newState: .disconnected(.manuallyDisconnected),
211 | reason: .forcedDisconnection
| `- error: cannot infer contextual base in reference to member 'forcedDisconnection'
212 | )
213 | }
/host/spi-builder-workspace/Sources/EZNetworking/Services/WebSocket/WebSocket.swift:222:24: error: cannot infer contextual base in reference to member 'disconnected'
220 | closeCode: webSocketTask?.closeCode ?? .goingAway,
221 | data: webSocketTask?.closeReason,
222 | newState: .disconnected(.connectionLost(reason: error)),
| `- error: cannot infer contextual base in reference to member 'disconnected'
223 | reason: error
224 | )
/host/spi-builder-workspace/Sources/EZNetworking/Services/WebSocket/WebSocket.swift:222:38: error: cannot infer contextual base in reference to member 'connectionLost'
220 | closeCode: webSocketTask?.closeCode ?? .goingAway,
221 | data: webSocketTask?.closeReason,
222 | newState: .disconnected(.connectionLost(reason: error)),
| `- error: cannot infer contextual base in reference to member 'connectionLost'
223 | reason: error
224 | )
/host/spi-builder-workspace/Sources/EZNetworking/Services/WebSocket/WebSocket.swift:257:25: error: cannot infer contextual base in reference to member 'normalClosure'
255 | public func terminate() async {
256 | cleanup(
257 | closeCode: .normalClosure,
| `- error: cannot infer contextual base in reference to member 'normalClosure'
258 | data: nil,
259 | newState: .disconnected(.terminated),
/host/spi-builder-workspace/Sources/EZNetworking/Services/WebSocket/WebSocket.swift:258:19: error: 'nil' requires a contextual type
256 | cleanup(
257 | closeCode: .normalClosure,
258 | data: nil,
| `- error: 'nil' requires a contextual type
259 | newState: .disconnected(.terminated),
260 | reason: .forcedDisconnection
/host/spi-builder-workspace/Sources/EZNetworking/Services/WebSocket/WebSocket.swift:259:24: error: cannot infer contextual base in reference to member 'disconnected'
257 | closeCode: .normalClosure,
258 | data: nil,
259 | newState: .disconnected(.terminated),
| `- error: cannot infer contextual base in reference to member 'disconnected'
260 | reason: .forcedDisconnection
261 | )
/host/spi-builder-workspace/Sources/EZNetworking/Services/WebSocket/WebSocket.swift:259:38: error: cannot infer contextual base in reference to member 'terminated'
257 | closeCode: .normalClosure,
258 | data: nil,
259 | newState: .disconnected(.terminated),
| `- error: cannot infer contextual base in reference to member 'terminated'
260 | reason: .forcedDisconnection
261 | )
/host/spi-builder-workspace/Sources/EZNetworking/Services/WebSocket/WebSocket.swift:260:22: error: cannot infer contextual base in reference to member 'forcedDisconnection'
258 | data: nil,
259 | newState: .disconnected(.terminated),
260 | reason: .forcedDisconnection
| `- error: cannot infer contextual base in reference to member 'forcedDisconnection'
261 | )
262 | session.delegate.webSocketTaskInterceptor?.onEvent = nil
[85/90] Compiling EZNetworking UploadState.swift
/host/spi-builder-workspace/Sources/EZNetworking/Core/Session/Session.swift:19:51: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
17 |
18 | public init(
19 | configuration: URLSessionConfiguration = .default,
| `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
20 | delegate: SessionDelegate = SessionDelegate(),
21 | delegateQueue: OperationQueue? = nil
/host/spi-builder-workspace/Sources/EZNetworking/Core/Session/Session.swift:19:51: error: value of type '_' expected to be instance of class or class-constrained type
17 |
18 | public init(
19 | configuration: URLSessionConfiguration = .default,
| `- error: value of type '_' expected to be instance of class or class-constrained type
20 | delegate: SessionDelegate = SessionDelegate(),
21 | delegateQueue: OperationQueue? = nil
/host/spi-builder-workspace/Sources/EZNetworking/Services/ServerSentEvent/ServerSentEventManager.swift:61:36: error: value of type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'timeoutIntervalForRequest'
59 | self.responseValidator = responseValidator
60 |
61 | self.session.configuration.timeoutIntervalForRequest = 60 // Connection timeout 1 minute
| `- error: value of type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'timeoutIntervalForRequest'
62 | self.session.configuration.timeoutIntervalForResource = 86400 // 24-hour stream timeout
63 | self.session.configuration.httpShouldUsePipelining = false
/host/spi-builder-workspace/Sources/EZNetworking/Services/ServerSentEvent/ServerSentEventManager.swift:62:36: error: value of type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'timeoutIntervalForResource'
60 |
61 | self.session.configuration.timeoutIntervalForRequest = 60 // Connection timeout 1 minute
62 | self.session.configuration.timeoutIntervalForResource = 86400 // 24-hour stream timeout
| `- error: value of type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'timeoutIntervalForResource'
63 | self.session.configuration.httpShouldUsePipelining = false
64 | self.session.configuration.requestCachePolicy = .reloadIgnoringLocalCacheData
/host/spi-builder-workspace/Sources/EZNetworking/Services/ServerSentEvent/ServerSentEventManager.swift:63:36: error: value of type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'httpShouldUsePipelining'
61 | self.session.configuration.timeoutIntervalForRequest = 60 // Connection timeout 1 minute
62 | self.session.configuration.timeoutIntervalForResource = 86400 // 24-hour stream timeout
63 | self.session.configuration.httpShouldUsePipelining = false
| `- error: value of type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'httpShouldUsePipelining'
64 | self.session.configuration.requestCachePolicy = .reloadIgnoringLocalCacheData
65 |
/host/spi-builder-workspace/Sources/EZNetworking/Services/ServerSentEvent/ServerSentEventManager.swift:64:36: error: value of type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'requestCachePolicy'
62 | self.session.configuration.timeoutIntervalForResource = 86400 // 24-hour stream timeout
63 | self.session.configuration.httpShouldUsePipelining = false
64 | self.session.configuration.requestCachePolicy = .reloadIgnoringLocalCacheData
| `- error: value of type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'requestCachePolicy'
65 |
66 | let (eventsStream, eventsContinuation) = AsyncStream<ServerSentEvent>.makeStream()
/host/spi-builder-workspace/Sources/EZNetworking/Services/ServerSentEvent/ServerSentEventManager.swift:64:58: error: cannot infer contextual base in reference to member 'reloadIgnoringLocalCacheData'
62 | self.session.configuration.timeoutIntervalForResource = 86400 // 24-hour stream timeout
63 | self.session.configuration.httpShouldUsePipelining = false
64 | self.session.configuration.requestCachePolicy = .reloadIgnoringLocalCacheData
| `- error: cannot infer contextual base in reference to member 'reloadIgnoringLocalCacheData'
65 |
66 | let (eventsStream, eventsContinuation) = AsyncStream<ServerSentEvent>.makeStream()
/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/Session/URLSessionProtocols/URLSessionProtocol.swift:8:29: error: cannot find type 'URLRequest' in scope
6 | func webSocketTaskInspectable(with request: URLRequest) -> URLSessionWebSocketTaskProtocol
7 |
8 | func bytes(for request: URLRequest) async throws -> (AsyncThrowingStream<UInt8, Error>, URLResponse)
| `- error: cannot find type 'URLRequest' in scope
9 |
10 | func downloadTaskInspectable(with request: URLRequest) -> URLSessionDownloadTaskProtocol
/host/spi-builder-workspace/Sources/EZNetworking/Core/Session/URLSessionProtocols/URLSessionProtocol.swift:13:46: error: cannot find type 'URLRequest' in scope
11 | func downloadTaskInspectable(withResumeData resumeData: Data) -> URLSessionDownloadTaskProtocol
12 |
13 | func uploadTaskInspectable(with request: URLRequest, fromFile fileURL: URL) -> URLSessionUploadTaskProtocol
| `- error: cannot find type 'URLRequest' in scope
14 | func uploadTaskInspectable(withResumeData resumeData: Data) -> URLSessionUploadTaskProtocol
15 | }
/host/spi-builder-workspace/Sources/EZNetworking/Services/Uploader/FileUploader/FileUploader.swift:62:64: error: extra arguments at positions #1, #2 in call
60 | let urlRequest = try request.getURLRequest()
61 | state = .uploading
62 | let task = session.urlSession.uploadTaskInspectable(with: urlRequest, fromFile: fileURL)
| `- error: extra arguments at positions #1, #2 in call
63 | uploadTask = task
64 | task.resume()
/host/spi-builder-workspace/Sources/EZNetworking/Core/Session/URLSessionProtocols/URLSessionProtocol.swift:14:10: note: 'uploadTaskInspectable(withResumeData:)' declared here
12 |
13 | func uploadTaskInspectable(with request: URLRequest, fromFile fileURL: URL) -> URLSessionUploadTaskProtocol
14 | func uploadTaskInspectable(withResumeData resumeData: Data) -> URLSessionUploadTaskProtocol
| `- note: 'uploadTaskInspectable(withResumeData:)' declared here
15 | }
16 |
/host/spi-builder-workspace/Sources/EZNetworking/Services/Uploader/FileUploader/FileUploader.swift:62:65: error: missing argument for parameter 'withResumeData' in call
60 | let urlRequest = try request.getURLRequest()
61 | state = .uploading
62 | let task = session.urlSession.uploadTaskInspectable(with: urlRequest, fromFile: fileURL)
| `- error: missing argument for parameter 'withResumeData' in call
63 | uploadTask = task
64 | task.resume()
/host/spi-builder-workspace/Sources/EZNetworking/Core/Session/URLSessionProtocols/URLSessionProtocol.swift:14:10: note: 'uploadTaskInspectable(withResumeData:)' declared here
12 |
13 | func uploadTaskInspectable(with request: URLRequest, fromFile fileURL: URL) -> URLSessionUploadTaskProtocol
14 | func uploadTaskInspectable(withResumeData resumeData: Data) -> URLSessionUploadTaskProtocol
| `- note: 'uploadTaskInspectable(withResumeData:)' declared here
15 | }
16 |
/host/spi-builder-workspace/Sources/EZNetworking/Core/Error/NetworkFailureReason/WebSocketFailureReason.swift:19:40: error: cannot find type 'URLSessionWebSocketTask' in scope
17 |
18 | // Disconnection errors
19 | case unexpectedDisconnection(code: URLSessionWebSocketTask.CloseCode, reason: String?)
| `- error: cannot find type 'URLSessionWebSocketTask' in scope
20 | case forcedDisconnection
21 | }
/host/spi-builder-workspace/Sources/EZNetworking/Services/WebSocket/Protocols/WebSocketClient.swift:3:36: error: cannot find type 'URLSessionWebSocketTask' in scope
1 | import Foundation
2 |
3 | public typealias OutboundMessage = URLSessionWebSocketTask.Message
| `- error: cannot find type 'URLSessionWebSocketTask' in scope
4 | public typealias InboundMessage = URLSessionWebSocketTask.Message
5 |
/host/spi-builder-workspace/Sources/EZNetworking/Services/WebSocket/Protocols/WebSocketClient.swift:4:35: error: cannot find type 'URLSessionWebSocketTask' in scope
2 |
3 | public typealias OutboundMessage = URLSessionWebSocketTask.Message
4 | public typealias InboundMessage = URLSessionWebSocketTask.Message
| `- error: cannot find type 'URLSessionWebSocketTask' in scope
5 |
6 | /// A client for managing WebSocket connections.
/host/spi-builder-workspace/Sources/EZNetworking/Core/Session/URLSessionProtocols/URLSessionWebSocketTaskProtocol.swift:6:33: error: cannot find type 'URLSessionWebSocketTask' in scope
4 | public protocol URLSessionWebSocketTaskProtocol {
5 | func resume()
6 | func cancel(with closeCode: URLSessionWebSocketTask.CloseCode, reason: Data?)
| `- error: cannot find type 'URLSessionWebSocketTask' in scope
7 |
8 | func sendPing() async throws
/host/spi-builder-workspace/Sources/EZNetworking/Core/Session/URLSessionProtocols/URLSessionWebSocketTaskProtocol.swift:11:26: error: cannot find type 'URLSessionWebSocketTask' in scope
9 | func sendPing(pongReceiveHandler: @escaping @Sendable ((any Error)?) -> Void)
10 |
11 | func send(_ message: URLSessionWebSocketTask.Message) async throws
| `- error: cannot find type 'URLSessionWebSocketTask' in scope
12 | func send(_ message: URLSessionWebSocketTask.Message, completionHandler: @escaping @Sendable (Error?) -> Void)
13 |
/host/spi-builder-workspace/Sources/EZNetworking/Core/Session/URLSessionProtocols/URLSessionWebSocketTaskProtocol.swift:12:26: error: cannot find type 'URLSessionWebSocketTask' in scope
10 |
11 | func send(_ message: URLSessionWebSocketTask.Message) async throws
12 | func send(_ message: URLSessionWebSocketTask.Message, completionHandler: @escaping @Sendable (Error?) -> Void)
| `- error: cannot find type 'URLSessionWebSocketTask' in scope
13 |
14 | func receive() async throws -> URLSessionWebSocketTask.Message
/host/spi-builder-workspace/Sources/EZNetworking/Core/Session/URLSessionProtocols/URLSessionWebSocketTaskProtocol.swift:14:36: error: cannot find type 'URLSessionWebSocketTask' in scope
12 | func send(_ message: URLSessionWebSocketTask.Message, completionHandler: @escaping @Sendable (Error?) -> Void)
13 |
14 | func receive() async throws -> URLSessionWebSocketTask.Message
| `- error: cannot find type 'URLSessionWebSocketTask' in scope
15 | func receive(completionHandler: @escaping @Sendable (Result<URLSessionWebSocketTask.Message, Error>) -> Void)
16 |
/host/spi-builder-workspace/Sources/EZNetworking/Core/Session/URLSessionProtocols/URLSessionWebSocketTaskProtocol.swift:15:65: error: cannot find type 'URLSessionWebSocketTask' in scope
13 |
14 | func receive() async throws -> URLSessionWebSocketTask.Message
15 | func receive(completionHandler: @escaping @Sendable (Result<URLSessionWebSocketTask.Message, Error>) -> Void)
| `- error: cannot find type 'URLSessionWebSocketTask' in scope
16 |
17 | var closeCode: URLSessionWebSocketTask.CloseCode { get }
/host/spi-builder-workspace/Sources/EZNetworking/Core/Session/URLSessionProtocols/URLSessionWebSocketTaskProtocol.swift:17:20: error: cannot find type 'URLSessionWebSocketTask' in scope
15 | func receive(completionHandler: @escaping @Sendable (Result<URLSessionWebSocketTask.Message, Error>) -> Void)
16 |
17 | var closeCode: URLSessionWebSocketTask.CloseCode { get }
| `- error: cannot find type 'URLSessionWebSocketTask' in scope
18 | var closeReason: Data? { get }
19 | }
/host/spi-builder-workspace/Sources/EZNetworking/Core/Session/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/Services/WebSocket/WebSocket.swift:231:20: error: cannot find type 'URLSessionWebSocketTask' in scope
229 | /// This allows the streams to persist after disconnect and reconnect
230 | private func cleanup(
231 | closeCode: URLSessionWebSocketTask.CloseCode,
| `- error: cannot find type 'URLSessionWebSocketTask' in scope
232 | data: Data?,
233 | newState: WebSocketConnectionState,
/host/spi-builder-workspace/Sources/EZNetworking/Services/WebSocket/WebSocket.swift:76:78: error: cannot infer contextual base in reference to member 'ws'
74 |
75 | public func connect() async throws {
76 | let urlRequest = try webSocketRequest.getURLRequest(allowedSchemes: .ws)
| `- error: cannot infer contextual base in reference to member 'ws'
77 |
78 | // Validate current state
/host/spi-builder-workspace/Sources/EZNetworking/Core/Session/URLSessionProtocols/URLSessionProtocol.swift:6:49: error: cannot find type 'URLRequest' in scope
4 | func data(for request: URLRequest) async throws -> (Data, URLResponse)
5 |
6 | func webSocketTaskInspectable(with request: URLRequest) -> URLSessionWebSocketTaskProtocol
| `- error: cannot find type 'URLRequest' in scope
7 |
8 | func bytes(for request: URLRequest) async throws -> (AsyncThrowingStream<UInt8, Error>, URLResponse)
/host/spi-builder-workspace/Sources/EZNetworking/Core/Session/Interceptors/Protocols/WebSocketTaskInterceptor.swift:20:25: error: cannot find type 'URLSessionWebSocketTask' in scope
18 | case didOpenWithProtocol(protocolStr: String?)
19 | case didOpenWithError(error: Error)
20 | case didClose(code: URLSessionWebSocketTask.CloseCode, reason: Data?)
| `- error: cannot find type 'URLSessionWebSocketTask' in scope
21 | }
22 |
/host/spi-builder-workspace/Sources/EZNetworking/Services/WebSocket/WebSocket.swift:208:25: error: cannot infer contextual base in reference to member 'normalClosure'
206 | }
207 | cleanup(
208 | closeCode: .normalClosure,
| `- error: cannot infer contextual base in reference to member 'normalClosure'
209 | data: nil,
210 | newState: .disconnected(.manuallyDisconnected),
/host/spi-builder-workspace/Sources/EZNetworking/Services/WebSocket/WebSocket.swift:209:19: error: 'nil' requires a contextual type
207 | cleanup(
208 | closeCode: .normalClosure,
209 | data: nil,
| `- error: 'nil' requires a contextual type
210 | newState: .disconnected(.manuallyDisconnected),
211 | reason: .forcedDisconnection
/host/spi-builder-workspace/Sources/EZNetworking/Services/WebSocket/WebSocket.swift:210:24: error: cannot infer contextual base in reference to member 'disconnected'
208 | closeCode: .normalClosure,
209 | data: nil,
210 | newState: .disconnected(.manuallyDisconnected),
| `- error: cannot infer contextual base in reference to member 'disconnected'
211 | reason: .forcedDisconnection
212 | )
/host/spi-builder-workspace/Sources/EZNetworking/Services/WebSocket/WebSocket.swift:210:38: error: cannot infer contextual base in reference to member 'manuallyDisconnected'
208 | closeCode: .normalClosure,
209 | data: nil,
210 | newState: .disconnected(.manuallyDisconnected),
| `- error: cannot infer contextual base in reference to member 'manuallyDisconnected'
211 | reason: .forcedDisconnection
212 | )
/host/spi-builder-workspace/Sources/EZNetworking/Services/WebSocket/WebSocket.swift:211:22: error: cannot infer contextual base in reference to member 'forcedDisconnection'
209 | data: nil,
210 | newState: .disconnected(.manuallyDisconnected),
211 | reason: .forcedDisconnection
| `- error: cannot infer contextual base in reference to member 'forcedDisconnection'
212 | )
213 | }
/host/spi-builder-workspace/Sources/EZNetworking/Services/WebSocket/WebSocket.swift:222:24: error: cannot infer contextual base in reference to member 'disconnected'
220 | closeCode: webSocketTask?.closeCode ?? .goingAway,
221 | data: webSocketTask?.closeReason,
222 | newState: .disconnected(.connectionLost(reason: error)),
| `- error: cannot infer contextual base in reference to member 'disconnected'
223 | reason: error
224 | )
/host/spi-builder-workspace/Sources/EZNetworking/Services/WebSocket/WebSocket.swift:222:38: error: cannot infer contextual base in reference to member 'connectionLost'
220 | closeCode: webSocketTask?.closeCode ?? .goingAway,
221 | data: webSocketTask?.closeReason,
222 | newState: .disconnected(.connectionLost(reason: error)),
| `- error: cannot infer contextual base in reference to member 'connectionLost'
223 | reason: error
224 | )
/host/spi-builder-workspace/Sources/EZNetworking/Services/WebSocket/WebSocket.swift:257:25: error: cannot infer contextual base in reference to member 'normalClosure'
255 | public func terminate() async {
256 | cleanup(
257 | closeCode: .normalClosure,
| `- error: cannot infer contextual base in reference to member 'normalClosure'
258 | data: nil,
259 | newState: .disconnected(.terminated),
/host/spi-builder-workspace/Sources/EZNetworking/Services/WebSocket/WebSocket.swift:258:19: error: 'nil' requires a contextual type
256 | cleanup(
257 | closeCode: .normalClosure,
258 | data: nil,
| `- error: 'nil' requires a contextual type
259 | newState: .disconnected(.terminated),
260 | reason: .forcedDisconnection
/host/spi-builder-workspace/Sources/EZNetworking/Services/WebSocket/WebSocket.swift:259:24: error: cannot infer contextual base in reference to member 'disconnected'
257 | closeCode: .normalClosure,
258 | data: nil,
259 | newState: .disconnected(.terminated),
| `- error: cannot infer contextual base in reference to member 'disconnected'
260 | reason: .forcedDisconnection
261 | )
/host/spi-builder-workspace/Sources/EZNetworking/Services/WebSocket/WebSocket.swift:259:38: error: cannot infer contextual base in reference to member 'terminated'
257 | closeCode: .normalClosure,
258 | data: nil,
259 | newState: .disconnected(.terminated),
| `- error: cannot infer contextual base in reference to member 'terminated'
260 | reason: .forcedDisconnection
261 | )
/host/spi-builder-workspace/Sources/EZNetworking/Services/WebSocket/WebSocket.swift:260:22: error: cannot infer contextual base in reference to member 'forcedDisconnection'
258 | data: nil,
259 | newState: .disconnected(.terminated),
260 | reason: .forcedDisconnection
| `- error: cannot infer contextual base in reference to member 'forcedDisconnection'
261 | )
262 | session.delegate.webSocketTaskInterceptor?.onEvent = nil
[86/90] Compiling EZNetworking Uploadable.swift
/host/spi-builder-workspace/Sources/EZNetworking/Core/Session/Session.swift:19:51: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
17 |
18 | public init(
19 | configuration: URLSessionConfiguration = .default,
| `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
20 | delegate: SessionDelegate = SessionDelegate(),
21 | delegateQueue: OperationQueue? = nil
/host/spi-builder-workspace/Sources/EZNetworking/Core/Session/Session.swift:19:51: error: value of type '_' expected to be instance of class or class-constrained type
17 |
18 | public init(
19 | configuration: URLSessionConfiguration = .default,
| `- error: value of type '_' expected to be instance of class or class-constrained type
20 | delegate: SessionDelegate = SessionDelegate(),
21 | delegateQueue: OperationQueue? = nil
/host/spi-builder-workspace/Sources/EZNetworking/Services/ServerSentEvent/ServerSentEventManager.swift:61:36: error: value of type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'timeoutIntervalForRequest'
59 | self.responseValidator = responseValidator
60 |
61 | self.session.configuration.timeoutIntervalForRequest = 60 // Connection timeout 1 minute
| `- error: value of type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'timeoutIntervalForRequest'
62 | self.session.configuration.timeoutIntervalForResource = 86400 // 24-hour stream timeout
63 | self.session.configuration.httpShouldUsePipelining = false
/host/spi-builder-workspace/Sources/EZNetworking/Services/ServerSentEvent/ServerSentEventManager.swift:62:36: error: value of type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'timeoutIntervalForResource'
60 |
61 | self.session.configuration.timeoutIntervalForRequest = 60 // Connection timeout 1 minute
62 | self.session.configuration.timeoutIntervalForResource = 86400 // 24-hour stream timeout
| `- error: value of type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'timeoutIntervalForResource'
63 | self.session.configuration.httpShouldUsePipelining = false
64 | self.session.configuration.requestCachePolicy = .reloadIgnoringLocalCacheData
/host/spi-builder-workspace/Sources/EZNetworking/Services/ServerSentEvent/ServerSentEventManager.swift:63:36: error: value of type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'httpShouldUsePipelining'
61 | self.session.configuration.timeoutIntervalForRequest = 60 // Connection timeout 1 minute
62 | self.session.configuration.timeoutIntervalForResource = 86400 // 24-hour stream timeout
63 | self.session.configuration.httpShouldUsePipelining = false
| `- error: value of type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'httpShouldUsePipelining'
64 | self.session.configuration.requestCachePolicy = .reloadIgnoringLocalCacheData
65 |
/host/spi-builder-workspace/Sources/EZNetworking/Services/ServerSentEvent/ServerSentEventManager.swift:64:36: error: value of type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'requestCachePolicy'
62 | self.session.configuration.timeoutIntervalForResource = 86400 // 24-hour stream timeout
63 | self.session.configuration.httpShouldUsePipelining = false
64 | self.session.configuration.requestCachePolicy = .reloadIgnoringLocalCacheData
| `- error: value of type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'requestCachePolicy'
65 |
66 | let (eventsStream, eventsContinuation) = AsyncStream<ServerSentEvent>.makeStream()
/host/spi-builder-workspace/Sources/EZNetworking/Services/ServerSentEvent/ServerSentEventManager.swift:64:58: error: cannot infer contextual base in reference to member 'reloadIgnoringLocalCacheData'
62 | self.session.configuration.timeoutIntervalForResource = 86400 // 24-hour stream timeout
63 | self.session.configuration.httpShouldUsePipelining = false
64 | self.session.configuration.requestCachePolicy = .reloadIgnoringLocalCacheData
| `- error: cannot infer contextual base in reference to member 'reloadIgnoringLocalCacheData'
65 |
66 | let (eventsStream, eventsContinuation) = AsyncStream<ServerSentEvent>.makeStream()
/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/Session/URLSessionProtocols/URLSessionProtocol.swift:8:29: error: cannot find type 'URLRequest' in scope
6 | func webSocketTaskInspectable(with request: URLRequest) -> URLSessionWebSocketTaskProtocol
7 |
8 | func bytes(for request: URLRequest) async throws -> (AsyncThrowingStream<UInt8, Error>, URLResponse)
| `- error: cannot find type 'URLRequest' in scope
9 |
10 | func downloadTaskInspectable(with request: URLRequest) -> URLSessionDownloadTaskProtocol
/host/spi-builder-workspace/Sources/EZNetworking/Core/Session/URLSessionProtocols/URLSessionProtocol.swift:13:46: error: cannot find type 'URLRequest' in scope
11 | func downloadTaskInspectable(withResumeData resumeData: Data) -> URLSessionDownloadTaskProtocol
12 |
13 | func uploadTaskInspectable(with request: URLRequest, fromFile fileURL: URL) -> URLSessionUploadTaskProtocol
| `- error: cannot find type 'URLRequest' in scope
14 | func uploadTaskInspectable(withResumeData resumeData: Data) -> URLSessionUploadTaskProtocol
15 | }
/host/spi-builder-workspace/Sources/EZNetworking/Services/Uploader/FileUploader/FileUploader.swift:62:64: error: extra arguments at positions #1, #2 in call
60 | let urlRequest = try request.getURLRequest()
61 | state = .uploading
62 | let task = session.urlSession.uploadTaskInspectable(with: urlRequest, fromFile: fileURL)
| `- error: extra arguments at positions #1, #2 in call
63 | uploadTask = task
64 | task.resume()
/host/spi-builder-workspace/Sources/EZNetworking/Core/Session/URLSessionProtocols/URLSessionProtocol.swift:14:10: note: 'uploadTaskInspectable(withResumeData:)' declared here
12 |
13 | func uploadTaskInspectable(with request: URLRequest, fromFile fileURL: URL) -> URLSessionUploadTaskProtocol
14 | func uploadTaskInspectable(withResumeData resumeData: Data) -> URLSessionUploadTaskProtocol
| `- note: 'uploadTaskInspectable(withResumeData:)' declared here
15 | }
16 |
/host/spi-builder-workspace/Sources/EZNetworking/Services/Uploader/FileUploader/FileUploader.swift:62:65: error: missing argument for parameter 'withResumeData' in call
60 | let urlRequest = try request.getURLRequest()
61 | state = .uploading
62 | let task = session.urlSession.uploadTaskInspectable(with: urlRequest, fromFile: fileURL)
| `- error: missing argument for parameter 'withResumeData' in call
63 | uploadTask = task
64 | task.resume()
/host/spi-builder-workspace/Sources/EZNetworking/Core/Session/URLSessionProtocols/URLSessionProtocol.swift:14:10: note: 'uploadTaskInspectable(withResumeData:)' declared here
12 |
13 | func uploadTaskInspectable(with request: URLRequest, fromFile fileURL: URL) -> URLSessionUploadTaskProtocol
14 | func uploadTaskInspectable(withResumeData resumeData: Data) -> URLSessionUploadTaskProtocol
| `- note: 'uploadTaskInspectable(withResumeData:)' declared here
15 | }
16 |
/host/spi-builder-workspace/Sources/EZNetworking/Core/Error/NetworkFailureReason/WebSocketFailureReason.swift:19:40: error: cannot find type 'URLSessionWebSocketTask' in scope
17 |
18 | // Disconnection errors
19 | case unexpectedDisconnection(code: URLSessionWebSocketTask.CloseCode, reason: String?)
| `- error: cannot find type 'URLSessionWebSocketTask' in scope
20 | case forcedDisconnection
21 | }
/host/spi-builder-workspace/Sources/EZNetworking/Services/WebSocket/Protocols/WebSocketClient.swift:3:36: error: cannot find type 'URLSessionWebSocketTask' in scope
1 | import Foundation
2 |
3 | public typealias OutboundMessage = URLSessionWebSocketTask.Message
| `- error: cannot find type 'URLSessionWebSocketTask' in scope
4 | public typealias InboundMessage = URLSessionWebSocketTask.Message
5 |
/host/spi-builder-workspace/Sources/EZNetworking/Services/WebSocket/Protocols/WebSocketClient.swift:4:35: error: cannot find type 'URLSessionWebSocketTask' in scope
2 |
3 | public typealias OutboundMessage = URLSessionWebSocketTask.Message
4 | public typealias InboundMessage = URLSessionWebSocketTask.Message
| `- error: cannot find type 'URLSessionWebSocketTask' in scope
5 |
6 | /// A client for managing WebSocket connections.
/host/spi-builder-workspace/Sources/EZNetworking/Core/Session/URLSessionProtocols/URLSessionWebSocketTaskProtocol.swift:6:33: error: cannot find type 'URLSessionWebSocketTask' in scope
4 | public protocol URLSessionWebSocketTaskProtocol {
5 | func resume()
6 | func cancel(with closeCode: URLSessionWebSocketTask.CloseCode, reason: Data?)
| `- error: cannot find type 'URLSessionWebSocketTask' in scope
7 |
8 | func sendPing() async throws
/host/spi-builder-workspace/Sources/EZNetworking/Core/Session/URLSessionProtocols/URLSessionWebSocketTaskProtocol.swift:11:26: error: cannot find type 'URLSessionWebSocketTask' in scope
9 | func sendPing(pongReceiveHandler: @escaping @Sendable ((any Error)?) -> Void)
10 |
11 | func send(_ message: URLSessionWebSocketTask.Message) async throws
| `- error: cannot find type 'URLSessionWebSocketTask' in scope
12 | func send(_ message: URLSessionWebSocketTask.Message, completionHandler: @escaping @Sendable (Error?) -> Void)
13 |
/host/spi-builder-workspace/Sources/EZNetworking/Core/Session/URLSessionProtocols/URLSessionWebSocketTaskProtocol.swift:12:26: error: cannot find type 'URLSessionWebSocketTask' in scope
10 |
11 | func send(_ message: URLSessionWebSocketTask.Message) async throws
12 | func send(_ message: URLSessionWebSocketTask.Message, completionHandler: @escaping @Sendable (Error?) -> Void)
| `- error: cannot find type 'URLSessionWebSocketTask' in scope
13 |
14 | func receive() async throws -> URLSessionWebSocketTask.Message
/host/spi-builder-workspace/Sources/EZNetworking/Core/Session/URLSessionProtocols/URLSessionWebSocketTaskProtocol.swift:14:36: error: cannot find type 'URLSessionWebSocketTask' in scope
12 | func send(_ message: URLSessionWebSocketTask.Message, completionHandler: @escaping @Sendable (Error?) -> Void)
13 |
14 | func receive() async throws -> URLSessionWebSocketTask.Message
| `- error: cannot find type 'URLSessionWebSocketTask' in scope
15 | func receive(completionHandler: @escaping @Sendable (Result<URLSessionWebSocketTask.Message, Error>) -> Void)
16 |
/host/spi-builder-workspace/Sources/EZNetworking/Core/Session/URLSessionProtocols/URLSessionWebSocketTaskProtocol.swift:15:65: error: cannot find type 'URLSessionWebSocketTask' in scope
13 |
14 | func receive() async throws -> URLSessionWebSocketTask.Message
15 | func receive(completionHandler: @escaping @Sendable (Result<URLSessionWebSocketTask.Message, Error>) -> Void)
| `- error: cannot find type 'URLSessionWebSocketTask' in scope
16 |
17 | var closeCode: URLSessionWebSocketTask.CloseCode { get }
/host/spi-builder-workspace/Sources/EZNetworking/Core/Session/URLSessionProtocols/URLSessionWebSocketTaskProtocol.swift:17:20: error: cannot find type 'URLSessionWebSocketTask' in scope
15 | func receive(completionHandler: @escaping @Sendable (Result<URLSessionWebSocketTask.Message, Error>) -> Void)
16 |
17 | var closeCode: URLSessionWebSocketTask.CloseCode { get }
| `- error: cannot find type 'URLSessionWebSocketTask' in scope
18 | var closeReason: Data? { get }
19 | }
/host/spi-builder-workspace/Sources/EZNetworking/Core/Session/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/Services/WebSocket/WebSocket.swift:231:20: error: cannot find type 'URLSessionWebSocketTask' in scope
229 | /// This allows the streams to persist after disconnect and reconnect
230 | private func cleanup(
231 | closeCode: URLSessionWebSocketTask.CloseCode,
| `- error: cannot find type 'URLSessionWebSocketTask' in scope
232 | data: Data?,
233 | newState: WebSocketConnectionState,
/host/spi-builder-workspace/Sources/EZNetworking/Services/WebSocket/WebSocket.swift:76:78: error: cannot infer contextual base in reference to member 'ws'
74 |
75 | public func connect() async throws {
76 | let urlRequest = try webSocketRequest.getURLRequest(allowedSchemes: .ws)
| `- error: cannot infer contextual base in reference to member 'ws'
77 |
78 | // Validate current state
/host/spi-builder-workspace/Sources/EZNetworking/Core/Session/URLSessionProtocols/URLSessionProtocol.swift:6:49: error: cannot find type 'URLRequest' in scope
4 | func data(for request: URLRequest) async throws -> (Data, URLResponse)
5 |
6 | func webSocketTaskInspectable(with request: URLRequest) -> URLSessionWebSocketTaskProtocol
| `- error: cannot find type 'URLRequest' in scope
7 |
8 | func bytes(for request: URLRequest) async throws -> (AsyncThrowingStream<UInt8, Error>, URLResponse)
/host/spi-builder-workspace/Sources/EZNetworking/Core/Session/Interceptors/Protocols/WebSocketTaskInterceptor.swift:20:25: error: cannot find type 'URLSessionWebSocketTask' in scope
18 | case didOpenWithProtocol(protocolStr: String?)
19 | case didOpenWithError(error: Error)
20 | case didClose(code: URLSessionWebSocketTask.CloseCode, reason: Data?)
| `- error: cannot find type 'URLSessionWebSocketTask' in scope
21 | }
22 |
/host/spi-builder-workspace/Sources/EZNetworking/Services/WebSocket/WebSocket.swift:208:25: error: cannot infer contextual base in reference to member 'normalClosure'
206 | }
207 | cleanup(
208 | closeCode: .normalClosure,
| `- error: cannot infer contextual base in reference to member 'normalClosure'
209 | data: nil,
210 | newState: .disconnected(.manuallyDisconnected),
/host/spi-builder-workspace/Sources/EZNetworking/Services/WebSocket/WebSocket.swift:209:19: error: 'nil' requires a contextual type
207 | cleanup(
208 | closeCode: .normalClosure,
209 | data: nil,
| `- error: 'nil' requires a contextual type
210 | newState: .disconnected(.manuallyDisconnected),
211 | reason: .forcedDisconnection
/host/spi-builder-workspace/Sources/EZNetworking/Services/WebSocket/WebSocket.swift:210:24: error: cannot infer contextual base in reference to member 'disconnected'
208 | closeCode: .normalClosure,
209 | data: nil,
210 | newState: .disconnected(.manuallyDisconnected),
| `- error: cannot infer contextual base in reference to member 'disconnected'
211 | reason: .forcedDisconnection
212 | )
/host/spi-builder-workspace/Sources/EZNetworking/Services/WebSocket/WebSocket.swift:210:38: error: cannot infer contextual base in reference to member 'manuallyDisconnected'
208 | closeCode: .normalClosure,
209 | data: nil,
210 | newState: .disconnected(.manuallyDisconnected),
| `- error: cannot infer contextual base in reference to member 'manuallyDisconnected'
211 | reason: .forcedDisconnection
212 | )
/host/spi-builder-workspace/Sources/EZNetworking/Services/WebSocket/WebSocket.swift:211:22: error: cannot infer contextual base in reference to member 'forcedDisconnection'
209 | data: nil,
210 | newState: .disconnected(.manuallyDisconnected),
211 | reason: .forcedDisconnection
| `- error: cannot infer contextual base in reference to member 'forcedDisconnection'
212 | )
213 | }
/host/spi-builder-workspace/Sources/EZNetworking/Services/WebSocket/WebSocket.swift:222:24: error: cannot infer contextual base in reference to member 'disconnected'
220 | closeCode: webSocketTask?.closeCode ?? .goingAway,
221 | data: webSocketTask?.closeReason,
222 | newState: .disconnected(.connectionLost(reason: error)),
| `- error: cannot infer contextual base in reference to member 'disconnected'
223 | reason: error
224 | )
/host/spi-builder-workspace/Sources/EZNetworking/Services/WebSocket/WebSocket.swift:222:38: error: cannot infer contextual base in reference to member 'connectionLost'
220 | closeCode: webSocketTask?.closeCode ?? .goingAway,
221 | data: webSocketTask?.closeReason,
222 | newState: .disconnected(.connectionLost(reason: error)),
| `- error: cannot infer contextual base in reference to member 'connectionLost'
223 | reason: error
224 | )
/host/spi-builder-workspace/Sources/EZNetworking/Services/WebSocket/WebSocket.swift:257:25: error: cannot infer contextual base in reference to member 'normalClosure'
255 | public func terminate() async {
256 | cleanup(
257 | closeCode: .normalClosure,
| `- error: cannot infer contextual base in reference to member 'normalClosure'
258 | data: nil,
259 | newState: .disconnected(.terminated),
/host/spi-builder-workspace/Sources/EZNetworking/Services/WebSocket/WebSocket.swift:258:19: error: 'nil' requires a contextual type
256 | cleanup(
257 | closeCode: .normalClosure,
258 | data: nil,
| `- error: 'nil' requires a contextual type
259 | newState: .disconnected(.terminated),
260 | reason: .forcedDisconnection
/host/spi-builder-workspace/Sources/EZNetworking/Services/WebSocket/WebSocket.swift:259:24: error: cannot infer contextual base in reference to member 'disconnected'
257 | closeCode: .normalClosure,
258 | data: nil,
259 | newState: .disconnected(.terminated),
| `- error: cannot infer contextual base in reference to member 'disconnected'
260 | reason: .forcedDisconnection
261 | )
/host/spi-builder-workspace/Sources/EZNetworking/Services/WebSocket/WebSocket.swift:259:38: error: cannot infer contextual base in reference to member 'terminated'
257 | closeCode: .normalClosure,
258 | data: nil,
259 | newState: .disconnected(.terminated),
| `- error: cannot infer contextual base in reference to member 'terminated'
260 | reason: .forcedDisconnection
261 | )
/host/spi-builder-workspace/Sources/EZNetworking/Services/WebSocket/WebSocket.swift:260:22: error: cannot infer contextual base in reference to member 'forcedDisconnection'
258 | data: nil,
259 | newState: .disconnected(.terminated),
260 | reason: .forcedDisconnection
| `- error: cannot infer contextual base in reference to member 'forcedDisconnection'
261 | )
262 | session.delegate.webSocketTaskInterceptor?.onEvent = nil
[87/90] Compiling EZNetworking PingConfig.swift
/host/spi-builder-workspace/Sources/EZNetworking/Core/Session/Session.swift:19:51: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
17 |
18 | public init(
19 | configuration: URLSessionConfiguration = .default,
| `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
20 | delegate: SessionDelegate = SessionDelegate(),
21 | delegateQueue: OperationQueue? = nil
/host/spi-builder-workspace/Sources/EZNetworking/Core/Session/Session.swift:19:51: error: value of type '_' expected to be instance of class or class-constrained type
17 |
18 | public init(
19 | configuration: URLSessionConfiguration = .default,
| `- error: value of type '_' expected to be instance of class or class-constrained type
20 | delegate: SessionDelegate = SessionDelegate(),
21 | delegateQueue: OperationQueue? = nil
/host/spi-builder-workspace/Sources/EZNetworking/Services/ServerSentEvent/ServerSentEventManager.swift:61:36: error: value of type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'timeoutIntervalForRequest'
59 | self.responseValidator = responseValidator
60 |
61 | self.session.configuration.timeoutIntervalForRequest = 60 // Connection timeout 1 minute
| `- error: value of type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'timeoutIntervalForRequest'
62 | self.session.configuration.timeoutIntervalForResource = 86400 // 24-hour stream timeout
63 | self.session.configuration.httpShouldUsePipelining = false
/host/spi-builder-workspace/Sources/EZNetworking/Services/ServerSentEvent/ServerSentEventManager.swift:62:36: error: value of type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'timeoutIntervalForResource'
60 |
61 | self.session.configuration.timeoutIntervalForRequest = 60 // Connection timeout 1 minute
62 | self.session.configuration.timeoutIntervalForResource = 86400 // 24-hour stream timeout
| `- error: value of type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'timeoutIntervalForResource'
63 | self.session.configuration.httpShouldUsePipelining = false
64 | self.session.configuration.requestCachePolicy = .reloadIgnoringLocalCacheData
/host/spi-builder-workspace/Sources/EZNetworking/Services/ServerSentEvent/ServerSentEventManager.swift:63:36: error: value of type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'httpShouldUsePipelining'
61 | self.session.configuration.timeoutIntervalForRequest = 60 // Connection timeout 1 minute
62 | self.session.configuration.timeoutIntervalForResource = 86400 // 24-hour stream timeout
63 | self.session.configuration.httpShouldUsePipelining = false
| `- error: value of type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'httpShouldUsePipelining'
64 | self.session.configuration.requestCachePolicy = .reloadIgnoringLocalCacheData
65 |
/host/spi-builder-workspace/Sources/EZNetworking/Services/ServerSentEvent/ServerSentEventManager.swift:64:36: error: value of type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'requestCachePolicy'
62 | self.session.configuration.timeoutIntervalForResource = 86400 // 24-hour stream timeout
63 | self.session.configuration.httpShouldUsePipelining = false
64 | self.session.configuration.requestCachePolicy = .reloadIgnoringLocalCacheData
| `- error: value of type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'requestCachePolicy'
65 |
66 | let (eventsStream, eventsContinuation) = AsyncStream<ServerSentEvent>.makeStream()
/host/spi-builder-workspace/Sources/EZNetworking/Services/ServerSentEvent/ServerSentEventManager.swift:64:58: error: cannot infer contextual base in reference to member 'reloadIgnoringLocalCacheData'
62 | self.session.configuration.timeoutIntervalForResource = 86400 // 24-hour stream timeout
63 | self.session.configuration.httpShouldUsePipelining = false
64 | self.session.configuration.requestCachePolicy = .reloadIgnoringLocalCacheData
| `- error: cannot infer contextual base in reference to member 'reloadIgnoringLocalCacheData'
65 |
66 | let (eventsStream, eventsContinuation) = AsyncStream<ServerSentEvent>.makeStream()
/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/Session/URLSessionProtocols/URLSessionProtocol.swift:8:29: error: cannot find type 'URLRequest' in scope
6 | func webSocketTaskInspectable(with request: URLRequest) -> URLSessionWebSocketTaskProtocol
7 |
8 | func bytes(for request: URLRequest) async throws -> (AsyncThrowingStream<UInt8, Error>, URLResponse)
| `- error: cannot find type 'URLRequest' in scope
9 |
10 | func downloadTaskInspectable(with request: URLRequest) -> URLSessionDownloadTaskProtocol
/host/spi-builder-workspace/Sources/EZNetworking/Core/Session/URLSessionProtocols/URLSessionProtocol.swift:13:46: error: cannot find type 'URLRequest' in scope
11 | func downloadTaskInspectable(withResumeData resumeData: Data) -> URLSessionDownloadTaskProtocol
12 |
13 | func uploadTaskInspectable(with request: URLRequest, fromFile fileURL: URL) -> URLSessionUploadTaskProtocol
| `- error: cannot find type 'URLRequest' in scope
14 | func uploadTaskInspectable(withResumeData resumeData: Data) -> URLSessionUploadTaskProtocol
15 | }
/host/spi-builder-workspace/Sources/EZNetworking/Services/Uploader/FileUploader/FileUploader.swift:62:64: error: extra arguments at positions #1, #2 in call
60 | let urlRequest = try request.getURLRequest()
61 | state = .uploading
62 | let task = session.urlSession.uploadTaskInspectable(with: urlRequest, fromFile: fileURL)
| `- error: extra arguments at positions #1, #2 in call
63 | uploadTask = task
64 | task.resume()
/host/spi-builder-workspace/Sources/EZNetworking/Core/Session/URLSessionProtocols/URLSessionProtocol.swift:14:10: note: 'uploadTaskInspectable(withResumeData:)' declared here
12 |
13 | func uploadTaskInspectable(with request: URLRequest, fromFile fileURL: URL) -> URLSessionUploadTaskProtocol
14 | func uploadTaskInspectable(withResumeData resumeData: Data) -> URLSessionUploadTaskProtocol
| `- note: 'uploadTaskInspectable(withResumeData:)' declared here
15 | }
16 |
/host/spi-builder-workspace/Sources/EZNetworking/Services/Uploader/FileUploader/FileUploader.swift:62:65: error: missing argument for parameter 'withResumeData' in call
60 | let urlRequest = try request.getURLRequest()
61 | state = .uploading
62 | let task = session.urlSession.uploadTaskInspectable(with: urlRequest, fromFile: fileURL)
| `- error: missing argument for parameter 'withResumeData' in call
63 | uploadTask = task
64 | task.resume()
/host/spi-builder-workspace/Sources/EZNetworking/Core/Session/URLSessionProtocols/URLSessionProtocol.swift:14:10: note: 'uploadTaskInspectable(withResumeData:)' declared here
12 |
13 | func uploadTaskInspectable(with request: URLRequest, fromFile fileURL: URL) -> URLSessionUploadTaskProtocol
14 | func uploadTaskInspectable(withResumeData resumeData: Data) -> URLSessionUploadTaskProtocol
| `- note: 'uploadTaskInspectable(withResumeData:)' declared here
15 | }
16 |
/host/spi-builder-workspace/Sources/EZNetworking/Core/Error/NetworkFailureReason/WebSocketFailureReason.swift:19:40: error: cannot find type 'URLSessionWebSocketTask' in scope
17 |
18 | // Disconnection errors
19 | case unexpectedDisconnection(code: URLSessionWebSocketTask.CloseCode, reason: String?)
| `- error: cannot find type 'URLSessionWebSocketTask' in scope
20 | case forcedDisconnection
21 | }
/host/spi-builder-workspace/Sources/EZNetworking/Services/WebSocket/Protocols/WebSocketClient.swift:3:36: error: cannot find type 'URLSessionWebSocketTask' in scope
1 | import Foundation
2 |
3 | public typealias OutboundMessage = URLSessionWebSocketTask.Message
| `- error: cannot find type 'URLSessionWebSocketTask' in scope
4 | public typealias InboundMessage = URLSessionWebSocketTask.Message
5 |
/host/spi-builder-workspace/Sources/EZNetworking/Services/WebSocket/Protocols/WebSocketClient.swift:4:35: error: cannot find type 'URLSessionWebSocketTask' in scope
2 |
3 | public typealias OutboundMessage = URLSessionWebSocketTask.Message
4 | public typealias InboundMessage = URLSessionWebSocketTask.Message
| `- error: cannot find type 'URLSessionWebSocketTask' in scope
5 |
6 | /// A client for managing WebSocket connections.
/host/spi-builder-workspace/Sources/EZNetworking/Core/Session/URLSessionProtocols/URLSessionWebSocketTaskProtocol.swift:6:33: error: cannot find type 'URLSessionWebSocketTask' in scope
4 | public protocol URLSessionWebSocketTaskProtocol {
5 | func resume()
6 | func cancel(with closeCode: URLSessionWebSocketTask.CloseCode, reason: Data?)
| `- error: cannot find type 'URLSessionWebSocketTask' in scope
7 |
8 | func sendPing() async throws
/host/spi-builder-workspace/Sources/EZNetworking/Core/Session/URLSessionProtocols/URLSessionWebSocketTaskProtocol.swift:11:26: error: cannot find type 'URLSessionWebSocketTask' in scope
9 | func sendPing(pongReceiveHandler: @escaping @Sendable ((any Error)?) -> Void)
10 |
11 | func send(_ message: URLSessionWebSocketTask.Message) async throws
| `- error: cannot find type 'URLSessionWebSocketTask' in scope
12 | func send(_ message: URLSessionWebSocketTask.Message, completionHandler: @escaping @Sendable (Error?) -> Void)
13 |
/host/spi-builder-workspace/Sources/EZNetworking/Core/Session/URLSessionProtocols/URLSessionWebSocketTaskProtocol.swift:12:26: error: cannot find type 'URLSessionWebSocketTask' in scope
10 |
11 | func send(_ message: URLSessionWebSocketTask.Message) async throws
12 | func send(_ message: URLSessionWebSocketTask.Message, completionHandler: @escaping @Sendable (Error?) -> Void)
| `- error: cannot find type 'URLSessionWebSocketTask' in scope
13 |
14 | func receive() async throws -> URLSessionWebSocketTask.Message
/host/spi-builder-workspace/Sources/EZNetworking/Core/Session/URLSessionProtocols/URLSessionWebSocketTaskProtocol.swift:14:36: error: cannot find type 'URLSessionWebSocketTask' in scope
12 | func send(_ message: URLSessionWebSocketTask.Message, completionHandler: @escaping @Sendable (Error?) -> Void)
13 |
14 | func receive() async throws -> URLSessionWebSocketTask.Message
| `- error: cannot find type 'URLSessionWebSocketTask' in scope
15 | func receive(completionHandler: @escaping @Sendable (Result<URLSessionWebSocketTask.Message, Error>) -> Void)
16 |
/host/spi-builder-workspace/Sources/EZNetworking/Core/Session/URLSessionProtocols/URLSessionWebSocketTaskProtocol.swift:15:65: error: cannot find type 'URLSessionWebSocketTask' in scope
13 |
14 | func receive() async throws -> URLSessionWebSocketTask.Message
15 | func receive(completionHandler: @escaping @Sendable (Result<URLSessionWebSocketTask.Message, Error>) -> Void)
| `- error: cannot find type 'URLSessionWebSocketTask' in scope
16 |
17 | var closeCode: URLSessionWebSocketTask.CloseCode { get }
/host/spi-builder-workspace/Sources/EZNetworking/Core/Session/URLSessionProtocols/URLSessionWebSocketTaskProtocol.swift:17:20: error: cannot find type 'URLSessionWebSocketTask' in scope
15 | func receive(completionHandler: @escaping @Sendable (Result<URLSessionWebSocketTask.Message, Error>) -> Void)
16 |
17 | var closeCode: URLSessionWebSocketTask.CloseCode { get }
| `- error: cannot find type 'URLSessionWebSocketTask' in scope
18 | var closeReason: Data? { get }
19 | }
/host/spi-builder-workspace/Sources/EZNetworking/Core/Session/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/Services/WebSocket/WebSocket.swift:231:20: error: cannot find type 'URLSessionWebSocketTask' in scope
229 | /// This allows the streams to persist after disconnect and reconnect
230 | private func cleanup(
231 | closeCode: URLSessionWebSocketTask.CloseCode,
| `- error: cannot find type 'URLSessionWebSocketTask' in scope
232 | data: Data?,
233 | newState: WebSocketConnectionState,
/host/spi-builder-workspace/Sources/EZNetworking/Services/WebSocket/WebSocket.swift:76:78: error: cannot infer contextual base in reference to member 'ws'
74 |
75 | public func connect() async throws {
76 | let urlRequest = try webSocketRequest.getURLRequest(allowedSchemes: .ws)
| `- error: cannot infer contextual base in reference to member 'ws'
77 |
78 | // Validate current state
/host/spi-builder-workspace/Sources/EZNetworking/Core/Session/URLSessionProtocols/URLSessionProtocol.swift:6:49: error: cannot find type 'URLRequest' in scope
4 | func data(for request: URLRequest) async throws -> (Data, URLResponse)
5 |
6 | func webSocketTaskInspectable(with request: URLRequest) -> URLSessionWebSocketTaskProtocol
| `- error: cannot find type 'URLRequest' in scope
7 |
8 | func bytes(for request: URLRequest) async throws -> (AsyncThrowingStream<UInt8, Error>, URLResponse)
/host/spi-builder-workspace/Sources/EZNetworking/Core/Session/Interceptors/Protocols/WebSocketTaskInterceptor.swift:20:25: error: cannot find type 'URLSessionWebSocketTask' in scope
18 | case didOpenWithProtocol(protocolStr: String?)
19 | case didOpenWithError(error: Error)
20 | case didClose(code: URLSessionWebSocketTask.CloseCode, reason: Data?)
| `- error: cannot find type 'URLSessionWebSocketTask' in scope
21 | }
22 |
/host/spi-builder-workspace/Sources/EZNetworking/Services/WebSocket/WebSocket.swift:208:25: error: cannot infer contextual base in reference to member 'normalClosure'
206 | }
207 | cleanup(
208 | closeCode: .normalClosure,
| `- error: cannot infer contextual base in reference to member 'normalClosure'
209 | data: nil,
210 | newState: .disconnected(.manuallyDisconnected),
/host/spi-builder-workspace/Sources/EZNetworking/Services/WebSocket/WebSocket.swift:209:19: error: 'nil' requires a contextual type
207 | cleanup(
208 | closeCode: .normalClosure,
209 | data: nil,
| `- error: 'nil' requires a contextual type
210 | newState: .disconnected(.manuallyDisconnected),
211 | reason: .forcedDisconnection
/host/spi-builder-workspace/Sources/EZNetworking/Services/WebSocket/WebSocket.swift:210:24: error: cannot infer contextual base in reference to member 'disconnected'
208 | closeCode: .normalClosure,
209 | data: nil,
210 | newState: .disconnected(.manuallyDisconnected),
| `- error: cannot infer contextual base in reference to member 'disconnected'
211 | reason: .forcedDisconnection
212 | )
/host/spi-builder-workspace/Sources/EZNetworking/Services/WebSocket/WebSocket.swift:210:38: error: cannot infer contextual base in reference to member 'manuallyDisconnected'
208 | closeCode: .normalClosure,
209 | data: nil,
210 | newState: .disconnected(.manuallyDisconnected),
| `- error: cannot infer contextual base in reference to member 'manuallyDisconnected'
211 | reason: .forcedDisconnection
212 | )
/host/spi-builder-workspace/Sources/EZNetworking/Services/WebSocket/WebSocket.swift:211:22: error: cannot infer contextual base in reference to member 'forcedDisconnection'
209 | data: nil,
210 | newState: .disconnected(.manuallyDisconnected),
211 | reason: .forcedDisconnection
| `- error: cannot infer contextual base in reference to member 'forcedDisconnection'
212 | )
213 | }
/host/spi-builder-workspace/Sources/EZNetworking/Services/WebSocket/WebSocket.swift:222:24: error: cannot infer contextual base in reference to member 'disconnected'
220 | closeCode: webSocketTask?.closeCode ?? .goingAway,
221 | data: webSocketTask?.closeReason,
222 | newState: .disconnected(.connectionLost(reason: error)),
| `- error: cannot infer contextual base in reference to member 'disconnected'
223 | reason: error
224 | )
/host/spi-builder-workspace/Sources/EZNetworking/Services/WebSocket/WebSocket.swift:222:38: error: cannot infer contextual base in reference to member 'connectionLost'
220 | closeCode: webSocketTask?.closeCode ?? .goingAway,
221 | data: webSocketTask?.closeReason,
222 | newState: .disconnected(.connectionLost(reason: error)),
| `- error: cannot infer contextual base in reference to member 'connectionLost'
223 | reason: error
224 | )
/host/spi-builder-workspace/Sources/EZNetworking/Services/WebSocket/WebSocket.swift:257:25: error: cannot infer contextual base in reference to member 'normalClosure'
255 | public func terminate() async {
256 | cleanup(
257 | closeCode: .normalClosure,
| `- error: cannot infer contextual base in reference to member 'normalClosure'
258 | data: nil,
259 | newState: .disconnected(.terminated),
/host/spi-builder-workspace/Sources/EZNetworking/Services/WebSocket/WebSocket.swift:258:19: error: 'nil' requires a contextual type
256 | cleanup(
257 | closeCode: .normalClosure,
258 | data: nil,
| `- error: 'nil' requires a contextual type
259 | newState: .disconnected(.terminated),
260 | reason: .forcedDisconnection
/host/spi-builder-workspace/Sources/EZNetworking/Services/WebSocket/WebSocket.swift:259:24: error: cannot infer contextual base in reference to member 'disconnected'
257 | closeCode: .normalClosure,
258 | data: nil,
259 | newState: .disconnected(.terminated),
| `- error: cannot infer contextual base in reference to member 'disconnected'
260 | reason: .forcedDisconnection
261 | )
/host/spi-builder-workspace/Sources/EZNetworking/Services/WebSocket/WebSocket.swift:259:38: error: cannot infer contextual base in reference to member 'terminated'
257 | closeCode: .normalClosure,
258 | data: nil,
259 | newState: .disconnected(.terminated),
| `- error: cannot infer contextual base in reference to member 'terminated'
260 | reason: .forcedDisconnection
261 | )
/host/spi-builder-workspace/Sources/EZNetworking/Services/WebSocket/WebSocket.swift:260:22: error: cannot infer contextual base in reference to member 'forcedDisconnection'
258 | data: nil,
259 | newState: .disconnected(.terminated),
260 | reason: .forcedDisconnection
| `- error: cannot infer contextual base in reference to member 'forcedDisconnection'
261 | )
262 | session.delegate.webSocketTaskInterceptor?.onEvent = nil
[88/90] Compiling EZNetworking WebSocketConnectionState.swift
/host/spi-builder-workspace/Sources/EZNetworking/Core/Session/Session.swift:19:51: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
17 |
18 | public init(
19 | configuration: URLSessionConfiguration = .default,
| `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
20 | delegate: SessionDelegate = SessionDelegate(),
21 | delegateQueue: OperationQueue? = nil
/host/spi-builder-workspace/Sources/EZNetworking/Core/Session/Session.swift:19:51: error: value of type '_' expected to be instance of class or class-constrained type
17 |
18 | public init(
19 | configuration: URLSessionConfiguration = .default,
| `- error: value of type '_' expected to be instance of class or class-constrained type
20 | delegate: SessionDelegate = SessionDelegate(),
21 | delegateQueue: OperationQueue? = nil
/host/spi-builder-workspace/Sources/EZNetworking/Services/ServerSentEvent/ServerSentEventManager.swift:61:36: error: value of type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'timeoutIntervalForRequest'
59 | self.responseValidator = responseValidator
60 |
61 | self.session.configuration.timeoutIntervalForRequest = 60 // Connection timeout 1 minute
| `- error: value of type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'timeoutIntervalForRequest'
62 | self.session.configuration.timeoutIntervalForResource = 86400 // 24-hour stream timeout
63 | self.session.configuration.httpShouldUsePipelining = false
/host/spi-builder-workspace/Sources/EZNetworking/Services/ServerSentEvent/ServerSentEventManager.swift:62:36: error: value of type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'timeoutIntervalForResource'
60 |
61 | self.session.configuration.timeoutIntervalForRequest = 60 // Connection timeout 1 minute
62 | self.session.configuration.timeoutIntervalForResource = 86400 // 24-hour stream timeout
| `- error: value of type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'timeoutIntervalForResource'
63 | self.session.configuration.httpShouldUsePipelining = false
64 | self.session.configuration.requestCachePolicy = .reloadIgnoringLocalCacheData
/host/spi-builder-workspace/Sources/EZNetworking/Services/ServerSentEvent/ServerSentEventManager.swift:63:36: error: value of type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'httpShouldUsePipelining'
61 | self.session.configuration.timeoutIntervalForRequest = 60 // Connection timeout 1 minute
62 | self.session.configuration.timeoutIntervalForResource = 86400 // 24-hour stream timeout
63 | self.session.configuration.httpShouldUsePipelining = false
| `- error: value of type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'httpShouldUsePipelining'
64 | self.session.configuration.requestCachePolicy = .reloadIgnoringLocalCacheData
65 |
/host/spi-builder-workspace/Sources/EZNetworking/Services/ServerSentEvent/ServerSentEventManager.swift:64:36: error: value of type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'requestCachePolicy'
62 | self.session.configuration.timeoutIntervalForResource = 86400 // 24-hour stream timeout
63 | self.session.configuration.httpShouldUsePipelining = false
64 | self.session.configuration.requestCachePolicy = .reloadIgnoringLocalCacheData
| `- error: value of type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'requestCachePolicy'
65 |
66 | let (eventsStream, eventsContinuation) = AsyncStream<ServerSentEvent>.makeStream()
/host/spi-builder-workspace/Sources/EZNetworking/Services/ServerSentEvent/ServerSentEventManager.swift:64:58: error: cannot infer contextual base in reference to member 'reloadIgnoringLocalCacheData'
62 | self.session.configuration.timeoutIntervalForResource = 86400 // 24-hour stream timeout
63 | self.session.configuration.httpShouldUsePipelining = false
64 | self.session.configuration.requestCachePolicy = .reloadIgnoringLocalCacheData
| `- error: cannot infer contextual base in reference to member 'reloadIgnoringLocalCacheData'
65 |
66 | let (eventsStream, eventsContinuation) = AsyncStream<ServerSentEvent>.makeStream()
/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/Session/URLSessionProtocols/URLSessionProtocol.swift:8:29: error: cannot find type 'URLRequest' in scope
6 | func webSocketTaskInspectable(with request: URLRequest) -> URLSessionWebSocketTaskProtocol
7 |
8 | func bytes(for request: URLRequest) async throws -> (AsyncThrowingStream<UInt8, Error>, URLResponse)
| `- error: cannot find type 'URLRequest' in scope
9 |
10 | func downloadTaskInspectable(with request: URLRequest) -> URLSessionDownloadTaskProtocol
/host/spi-builder-workspace/Sources/EZNetworking/Core/Session/URLSessionProtocols/URLSessionProtocol.swift:13:46: error: cannot find type 'URLRequest' in scope
11 | func downloadTaskInspectable(withResumeData resumeData: Data) -> URLSessionDownloadTaskProtocol
12 |
13 | func uploadTaskInspectable(with request: URLRequest, fromFile fileURL: URL) -> URLSessionUploadTaskProtocol
| `- error: cannot find type 'URLRequest' in scope
14 | func uploadTaskInspectable(withResumeData resumeData: Data) -> URLSessionUploadTaskProtocol
15 | }
/host/spi-builder-workspace/Sources/EZNetworking/Services/Uploader/FileUploader/FileUploader.swift:62:64: error: extra arguments at positions #1, #2 in call
60 | let urlRequest = try request.getURLRequest()
61 | state = .uploading
62 | let task = session.urlSession.uploadTaskInspectable(with: urlRequest, fromFile: fileURL)
| `- error: extra arguments at positions #1, #2 in call
63 | uploadTask = task
64 | task.resume()
/host/spi-builder-workspace/Sources/EZNetworking/Core/Session/URLSessionProtocols/URLSessionProtocol.swift:14:10: note: 'uploadTaskInspectable(withResumeData:)' declared here
12 |
13 | func uploadTaskInspectable(with request: URLRequest, fromFile fileURL: URL) -> URLSessionUploadTaskProtocol
14 | func uploadTaskInspectable(withResumeData resumeData: Data) -> URLSessionUploadTaskProtocol
| `- note: 'uploadTaskInspectable(withResumeData:)' declared here
15 | }
16 |
/host/spi-builder-workspace/Sources/EZNetworking/Services/Uploader/FileUploader/FileUploader.swift:62:65: error: missing argument for parameter 'withResumeData' in call
60 | let urlRequest = try request.getURLRequest()
61 | state = .uploading
62 | let task = session.urlSession.uploadTaskInspectable(with: urlRequest, fromFile: fileURL)
| `- error: missing argument for parameter 'withResumeData' in call
63 | uploadTask = task
64 | task.resume()
/host/spi-builder-workspace/Sources/EZNetworking/Core/Session/URLSessionProtocols/URLSessionProtocol.swift:14:10: note: 'uploadTaskInspectable(withResumeData:)' declared here
12 |
13 | func uploadTaskInspectable(with request: URLRequest, fromFile fileURL: URL) -> URLSessionUploadTaskProtocol
14 | func uploadTaskInspectable(withResumeData resumeData: Data) -> URLSessionUploadTaskProtocol
| `- note: 'uploadTaskInspectable(withResumeData:)' declared here
15 | }
16 |
/host/spi-builder-workspace/Sources/EZNetworking/Core/Error/NetworkFailureReason/WebSocketFailureReason.swift:19:40: error: cannot find type 'URLSessionWebSocketTask' in scope
17 |
18 | // Disconnection errors
19 | case unexpectedDisconnection(code: URLSessionWebSocketTask.CloseCode, reason: String?)
| `- error: cannot find type 'URLSessionWebSocketTask' in scope
20 | case forcedDisconnection
21 | }
/host/spi-builder-workspace/Sources/EZNetworking/Services/WebSocket/Protocols/WebSocketClient.swift:3:36: error: cannot find type 'URLSessionWebSocketTask' in scope
1 | import Foundation
2 |
3 | public typealias OutboundMessage = URLSessionWebSocketTask.Message
| `- error: cannot find type 'URLSessionWebSocketTask' in scope
4 | public typealias InboundMessage = URLSessionWebSocketTask.Message
5 |
/host/spi-builder-workspace/Sources/EZNetworking/Services/WebSocket/Protocols/WebSocketClient.swift:4:35: error: cannot find type 'URLSessionWebSocketTask' in scope
2 |
3 | public typealias OutboundMessage = URLSessionWebSocketTask.Message
4 | public typealias InboundMessage = URLSessionWebSocketTask.Message
| `- error: cannot find type 'URLSessionWebSocketTask' in scope
5 |
6 | /// A client for managing WebSocket connections.
/host/spi-builder-workspace/Sources/EZNetworking/Core/Session/URLSessionProtocols/URLSessionWebSocketTaskProtocol.swift:6:33: error: cannot find type 'URLSessionWebSocketTask' in scope
4 | public protocol URLSessionWebSocketTaskProtocol {
5 | func resume()
6 | func cancel(with closeCode: URLSessionWebSocketTask.CloseCode, reason: Data?)
| `- error: cannot find type 'URLSessionWebSocketTask' in scope
7 |
8 | func sendPing() async throws
/host/spi-builder-workspace/Sources/EZNetworking/Core/Session/URLSessionProtocols/URLSessionWebSocketTaskProtocol.swift:11:26: error: cannot find type 'URLSessionWebSocketTask' in scope
9 | func sendPing(pongReceiveHandler: @escaping @Sendable ((any Error)?) -> Void)
10 |
11 | func send(_ message: URLSessionWebSocketTask.Message) async throws
| `- error: cannot find type 'URLSessionWebSocketTask' in scope
12 | func send(_ message: URLSessionWebSocketTask.Message, completionHandler: @escaping @Sendable (Error?) -> Void)
13 |
/host/spi-builder-workspace/Sources/EZNetworking/Core/Session/URLSessionProtocols/URLSessionWebSocketTaskProtocol.swift:12:26: error: cannot find type 'URLSessionWebSocketTask' in scope
10 |
11 | func send(_ message: URLSessionWebSocketTask.Message) async throws
12 | func send(_ message: URLSessionWebSocketTask.Message, completionHandler: @escaping @Sendable (Error?) -> Void)
| `- error: cannot find type 'URLSessionWebSocketTask' in scope
13 |
14 | func receive() async throws -> URLSessionWebSocketTask.Message
/host/spi-builder-workspace/Sources/EZNetworking/Core/Session/URLSessionProtocols/URLSessionWebSocketTaskProtocol.swift:14:36: error: cannot find type 'URLSessionWebSocketTask' in scope
12 | func send(_ message: URLSessionWebSocketTask.Message, completionHandler: @escaping @Sendable (Error?) -> Void)
13 |
14 | func receive() async throws -> URLSessionWebSocketTask.Message
| `- error: cannot find type 'URLSessionWebSocketTask' in scope
15 | func receive(completionHandler: @escaping @Sendable (Result<URLSessionWebSocketTask.Message, Error>) -> Void)
16 |
/host/spi-builder-workspace/Sources/EZNetworking/Core/Session/URLSessionProtocols/URLSessionWebSocketTaskProtocol.swift:15:65: error: cannot find type 'URLSessionWebSocketTask' in scope
13 |
14 | func receive() async throws -> URLSessionWebSocketTask.Message
15 | func receive(completionHandler: @escaping @Sendable (Result<URLSessionWebSocketTask.Message, Error>) -> Void)
| `- error: cannot find type 'URLSessionWebSocketTask' in scope
16 |
17 | var closeCode: URLSessionWebSocketTask.CloseCode { get }
/host/spi-builder-workspace/Sources/EZNetworking/Core/Session/URLSessionProtocols/URLSessionWebSocketTaskProtocol.swift:17:20: error: cannot find type 'URLSessionWebSocketTask' in scope
15 | func receive(completionHandler: @escaping @Sendable (Result<URLSessionWebSocketTask.Message, Error>) -> Void)
16 |
17 | var closeCode: URLSessionWebSocketTask.CloseCode { get }
| `- error: cannot find type 'URLSessionWebSocketTask' in scope
18 | var closeReason: Data? { get }
19 | }
/host/spi-builder-workspace/Sources/EZNetworking/Core/Session/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/Services/WebSocket/WebSocket.swift:231:20: error: cannot find type 'URLSessionWebSocketTask' in scope
229 | /// This allows the streams to persist after disconnect and reconnect
230 | private func cleanup(
231 | closeCode: URLSessionWebSocketTask.CloseCode,
| `- error: cannot find type 'URLSessionWebSocketTask' in scope
232 | data: Data?,
233 | newState: WebSocketConnectionState,
/host/spi-builder-workspace/Sources/EZNetworking/Services/WebSocket/WebSocket.swift:76:78: error: cannot infer contextual base in reference to member 'ws'
74 |
75 | public func connect() async throws {
76 | let urlRequest = try webSocketRequest.getURLRequest(allowedSchemes: .ws)
| `- error: cannot infer contextual base in reference to member 'ws'
77 |
78 | // Validate current state
/host/spi-builder-workspace/Sources/EZNetworking/Core/Session/URLSessionProtocols/URLSessionProtocol.swift:6:49: error: cannot find type 'URLRequest' in scope
4 | func data(for request: URLRequest) async throws -> (Data, URLResponse)
5 |
6 | func webSocketTaskInspectable(with request: URLRequest) -> URLSessionWebSocketTaskProtocol
| `- error: cannot find type 'URLRequest' in scope
7 |
8 | func bytes(for request: URLRequest) async throws -> (AsyncThrowingStream<UInt8, Error>, URLResponse)
/host/spi-builder-workspace/Sources/EZNetworking/Core/Session/Interceptors/Protocols/WebSocketTaskInterceptor.swift:20:25: error: cannot find type 'URLSessionWebSocketTask' in scope
18 | case didOpenWithProtocol(protocolStr: String?)
19 | case didOpenWithError(error: Error)
20 | case didClose(code: URLSessionWebSocketTask.CloseCode, reason: Data?)
| `- error: cannot find type 'URLSessionWebSocketTask' in scope
21 | }
22 |
/host/spi-builder-workspace/Sources/EZNetworking/Services/WebSocket/WebSocket.swift:208:25: error: cannot infer contextual base in reference to member 'normalClosure'
206 | }
207 | cleanup(
208 | closeCode: .normalClosure,
| `- error: cannot infer contextual base in reference to member 'normalClosure'
209 | data: nil,
210 | newState: .disconnected(.manuallyDisconnected),
/host/spi-builder-workspace/Sources/EZNetworking/Services/WebSocket/WebSocket.swift:209:19: error: 'nil' requires a contextual type
207 | cleanup(
208 | closeCode: .normalClosure,
209 | data: nil,
| `- error: 'nil' requires a contextual type
210 | newState: .disconnected(.manuallyDisconnected),
211 | reason: .forcedDisconnection
/host/spi-builder-workspace/Sources/EZNetworking/Services/WebSocket/WebSocket.swift:210:24: error: cannot infer contextual base in reference to member 'disconnected'
208 | closeCode: .normalClosure,
209 | data: nil,
210 | newState: .disconnected(.manuallyDisconnected),
| `- error: cannot infer contextual base in reference to member 'disconnected'
211 | reason: .forcedDisconnection
212 | )
/host/spi-builder-workspace/Sources/EZNetworking/Services/WebSocket/WebSocket.swift:210:38: error: cannot infer contextual base in reference to member 'manuallyDisconnected'
208 | closeCode: .normalClosure,
209 | data: nil,
210 | newState: .disconnected(.manuallyDisconnected),
| `- error: cannot infer contextual base in reference to member 'manuallyDisconnected'
211 | reason: .forcedDisconnection
212 | )
/host/spi-builder-workspace/Sources/EZNetworking/Services/WebSocket/WebSocket.swift:211:22: error: cannot infer contextual base in reference to member 'forcedDisconnection'
209 | data: nil,
210 | newState: .disconnected(.manuallyDisconnected),
211 | reason: .forcedDisconnection
| `- error: cannot infer contextual base in reference to member 'forcedDisconnection'
212 | )
213 | }
/host/spi-builder-workspace/Sources/EZNetworking/Services/WebSocket/WebSocket.swift:222:24: error: cannot infer contextual base in reference to member 'disconnected'
220 | closeCode: webSocketTask?.closeCode ?? .goingAway,
221 | data: webSocketTask?.closeReason,
222 | newState: .disconnected(.connectionLost(reason: error)),
| `- error: cannot infer contextual base in reference to member 'disconnected'
223 | reason: error
224 | )
/host/spi-builder-workspace/Sources/EZNetworking/Services/WebSocket/WebSocket.swift:222:38: error: cannot infer contextual base in reference to member 'connectionLost'
220 | closeCode: webSocketTask?.closeCode ?? .goingAway,
221 | data: webSocketTask?.closeReason,
222 | newState: .disconnected(.connectionLost(reason: error)),
| `- error: cannot infer contextual base in reference to member 'connectionLost'
223 | reason: error
224 | )
/host/spi-builder-workspace/Sources/EZNetworking/Services/WebSocket/WebSocket.swift:257:25: error: cannot infer contextual base in reference to member 'normalClosure'
255 | public func terminate() async {
256 | cleanup(
257 | closeCode: .normalClosure,
| `- error: cannot infer contextual base in reference to member 'normalClosure'
258 | data: nil,
259 | newState: .disconnected(.terminated),
/host/spi-builder-workspace/Sources/EZNetworking/Services/WebSocket/WebSocket.swift:258:19: error: 'nil' requires a contextual type
256 | cleanup(
257 | closeCode: .normalClosure,
258 | data: nil,
| `- error: 'nil' requires a contextual type
259 | newState: .disconnected(.terminated),
260 | reason: .forcedDisconnection
/host/spi-builder-workspace/Sources/EZNetworking/Services/WebSocket/WebSocket.swift:259:24: error: cannot infer contextual base in reference to member 'disconnected'
257 | closeCode: .normalClosure,
258 | data: nil,
259 | newState: .disconnected(.terminated),
| `- error: cannot infer contextual base in reference to member 'disconnected'
260 | reason: .forcedDisconnection
261 | )
/host/spi-builder-workspace/Sources/EZNetworking/Services/WebSocket/WebSocket.swift:259:38: error: cannot infer contextual base in reference to member 'terminated'
257 | closeCode: .normalClosure,
258 | data: nil,
259 | newState: .disconnected(.terminated),
| `- error: cannot infer contextual base in reference to member 'terminated'
260 | reason: .forcedDisconnection
261 | )
/host/spi-builder-workspace/Sources/EZNetworking/Services/WebSocket/WebSocket.swift:260:22: error: cannot infer contextual base in reference to member 'forcedDisconnection'
258 | data: nil,
259 | newState: .disconnected(.terminated),
260 | reason: .forcedDisconnection
| `- error: cannot infer contextual base in reference to member 'forcedDisconnection'
261 | )
262 | session.delegate.webSocketTaskInterceptor?.onEvent = nil
[89/90] Compiling EZNetworking WebSocketClient.swift
/host/spi-builder-workspace/Sources/EZNetworking/Core/Session/Session.swift:19:51: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
17 |
18 | public init(
19 | configuration: URLSessionConfiguration = .default,
| `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
20 | delegate: SessionDelegate = SessionDelegate(),
21 | delegateQueue: OperationQueue? = nil
/host/spi-builder-workspace/Sources/EZNetworking/Core/Session/Session.swift:19:51: error: value of type '_' expected to be instance of class or class-constrained type
17 |
18 | public init(
19 | configuration: URLSessionConfiguration = .default,
| `- error: value of type '_' expected to be instance of class or class-constrained type
20 | delegate: SessionDelegate = SessionDelegate(),
21 | delegateQueue: OperationQueue? = nil
/host/spi-builder-workspace/Sources/EZNetworking/Services/ServerSentEvent/ServerSentEventManager.swift:61:36: error: value of type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'timeoutIntervalForRequest'
59 | self.responseValidator = responseValidator
60 |
61 | self.session.configuration.timeoutIntervalForRequest = 60 // Connection timeout 1 minute
| `- error: value of type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'timeoutIntervalForRequest'
62 | self.session.configuration.timeoutIntervalForResource = 86400 // 24-hour stream timeout
63 | self.session.configuration.httpShouldUsePipelining = false
/host/spi-builder-workspace/Sources/EZNetworking/Services/ServerSentEvent/ServerSentEventManager.swift:62:36: error: value of type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'timeoutIntervalForResource'
60 |
61 | self.session.configuration.timeoutIntervalForRequest = 60 // Connection timeout 1 minute
62 | self.session.configuration.timeoutIntervalForResource = 86400 // 24-hour stream timeout
| `- error: value of type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'timeoutIntervalForResource'
63 | self.session.configuration.httpShouldUsePipelining = false
64 | self.session.configuration.requestCachePolicy = .reloadIgnoringLocalCacheData
/host/spi-builder-workspace/Sources/EZNetworking/Services/ServerSentEvent/ServerSentEventManager.swift:63:36: error: value of type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'httpShouldUsePipelining'
61 | self.session.configuration.timeoutIntervalForRequest = 60 // Connection timeout 1 minute
62 | self.session.configuration.timeoutIntervalForResource = 86400 // 24-hour stream timeout
63 | self.session.configuration.httpShouldUsePipelining = false
| `- error: value of type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'httpShouldUsePipelining'
64 | self.session.configuration.requestCachePolicy = .reloadIgnoringLocalCacheData
65 |
/host/spi-builder-workspace/Sources/EZNetworking/Services/ServerSentEvent/ServerSentEventManager.swift:64:36: error: value of type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'requestCachePolicy'
62 | self.session.configuration.timeoutIntervalForResource = 86400 // 24-hour stream timeout
63 | self.session.configuration.httpShouldUsePipelining = false
64 | self.session.configuration.requestCachePolicy = .reloadIgnoringLocalCacheData
| `- error: value of type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'requestCachePolicy'
65 |
66 | let (eventsStream, eventsContinuation) = AsyncStream<ServerSentEvent>.makeStream()
/host/spi-builder-workspace/Sources/EZNetworking/Services/ServerSentEvent/ServerSentEventManager.swift:64:58: error: cannot infer contextual base in reference to member 'reloadIgnoringLocalCacheData'
62 | self.session.configuration.timeoutIntervalForResource = 86400 // 24-hour stream timeout
63 | self.session.configuration.httpShouldUsePipelining = false
64 | self.session.configuration.requestCachePolicy = .reloadIgnoringLocalCacheData
| `- error: cannot infer contextual base in reference to member 'reloadIgnoringLocalCacheData'
65 |
66 | let (eventsStream, eventsContinuation) = AsyncStream<ServerSentEvent>.makeStream()
/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/Session/URLSessionProtocols/URLSessionProtocol.swift:8:29: error: cannot find type 'URLRequest' in scope
6 | func webSocketTaskInspectable(with request: URLRequest) -> URLSessionWebSocketTaskProtocol
7 |
8 | func bytes(for request: URLRequest) async throws -> (AsyncThrowingStream<UInt8, Error>, URLResponse)
| `- error: cannot find type 'URLRequest' in scope
9 |
10 | func downloadTaskInspectable(with request: URLRequest) -> URLSessionDownloadTaskProtocol
/host/spi-builder-workspace/Sources/EZNetworking/Core/Session/URLSessionProtocols/URLSessionProtocol.swift:13:46: error: cannot find type 'URLRequest' in scope
11 | func downloadTaskInspectable(withResumeData resumeData: Data) -> URLSessionDownloadTaskProtocol
12 |
13 | func uploadTaskInspectable(with request: URLRequest, fromFile fileURL: URL) -> URLSessionUploadTaskProtocol
| `- error: cannot find type 'URLRequest' in scope
14 | func uploadTaskInspectable(withResumeData resumeData: Data) -> URLSessionUploadTaskProtocol
15 | }
/host/spi-builder-workspace/Sources/EZNetworking/Services/Uploader/FileUploader/FileUploader.swift:62:64: error: extra arguments at positions #1, #2 in call
60 | let urlRequest = try request.getURLRequest()
61 | state = .uploading
62 | let task = session.urlSession.uploadTaskInspectable(with: urlRequest, fromFile: fileURL)
| `- error: extra arguments at positions #1, #2 in call
63 | uploadTask = task
64 | task.resume()
/host/spi-builder-workspace/Sources/EZNetworking/Core/Session/URLSessionProtocols/URLSessionProtocol.swift:14:10: note: 'uploadTaskInspectable(withResumeData:)' declared here
12 |
13 | func uploadTaskInspectable(with request: URLRequest, fromFile fileURL: URL) -> URLSessionUploadTaskProtocol
14 | func uploadTaskInspectable(withResumeData resumeData: Data) -> URLSessionUploadTaskProtocol
| `- note: 'uploadTaskInspectable(withResumeData:)' declared here
15 | }
16 |
/host/spi-builder-workspace/Sources/EZNetworking/Services/Uploader/FileUploader/FileUploader.swift:62:65: error: missing argument for parameter 'withResumeData' in call
60 | let urlRequest = try request.getURLRequest()
61 | state = .uploading
62 | let task = session.urlSession.uploadTaskInspectable(with: urlRequest, fromFile: fileURL)
| `- error: missing argument for parameter 'withResumeData' in call
63 | uploadTask = task
64 | task.resume()
/host/spi-builder-workspace/Sources/EZNetworking/Core/Session/URLSessionProtocols/URLSessionProtocol.swift:14:10: note: 'uploadTaskInspectable(withResumeData:)' declared here
12 |
13 | func uploadTaskInspectable(with request: URLRequest, fromFile fileURL: URL) -> URLSessionUploadTaskProtocol
14 | func uploadTaskInspectable(withResumeData resumeData: Data) -> URLSessionUploadTaskProtocol
| `- note: 'uploadTaskInspectable(withResumeData:)' declared here
15 | }
16 |
/host/spi-builder-workspace/Sources/EZNetworking/Core/Error/NetworkFailureReason/WebSocketFailureReason.swift:19:40: error: cannot find type 'URLSessionWebSocketTask' in scope
17 |
18 | // Disconnection errors
19 | case unexpectedDisconnection(code: URLSessionWebSocketTask.CloseCode, reason: String?)
| `- error: cannot find type 'URLSessionWebSocketTask' in scope
20 | case forcedDisconnection
21 | }
/host/spi-builder-workspace/Sources/EZNetworking/Services/WebSocket/Protocols/WebSocketClient.swift:3:36: error: cannot find type 'URLSessionWebSocketTask' in scope
1 | import Foundation
2 |
3 | public typealias OutboundMessage = URLSessionWebSocketTask.Message
| `- error: cannot find type 'URLSessionWebSocketTask' in scope
4 | public typealias InboundMessage = URLSessionWebSocketTask.Message
5 |
/host/spi-builder-workspace/Sources/EZNetworking/Services/WebSocket/Protocols/WebSocketClient.swift:4:35: error: cannot find type 'URLSessionWebSocketTask' in scope
2 |
3 | public typealias OutboundMessage = URLSessionWebSocketTask.Message
4 | public typealias InboundMessage = URLSessionWebSocketTask.Message
| `- error: cannot find type 'URLSessionWebSocketTask' in scope
5 |
6 | /// A client for managing WebSocket connections.
/host/spi-builder-workspace/Sources/EZNetworking/Core/Session/URLSessionProtocols/URLSessionWebSocketTaskProtocol.swift:6:33: error: cannot find type 'URLSessionWebSocketTask' in scope
4 | public protocol URLSessionWebSocketTaskProtocol {
5 | func resume()
6 | func cancel(with closeCode: URLSessionWebSocketTask.CloseCode, reason: Data?)
| `- error: cannot find type 'URLSessionWebSocketTask' in scope
7 |
8 | func sendPing() async throws
/host/spi-builder-workspace/Sources/EZNetworking/Core/Session/URLSessionProtocols/URLSessionWebSocketTaskProtocol.swift:11:26: error: cannot find type 'URLSessionWebSocketTask' in scope
9 | func sendPing(pongReceiveHandler: @escaping @Sendable ((any Error)?) -> Void)
10 |
11 | func send(_ message: URLSessionWebSocketTask.Message) async throws
| `- error: cannot find type 'URLSessionWebSocketTask' in scope
12 | func send(_ message: URLSessionWebSocketTask.Message, completionHandler: @escaping @Sendable (Error?) -> Void)
13 |
/host/spi-builder-workspace/Sources/EZNetworking/Core/Session/URLSessionProtocols/URLSessionWebSocketTaskProtocol.swift:12:26: error: cannot find type 'URLSessionWebSocketTask' in scope
10 |
11 | func send(_ message: URLSessionWebSocketTask.Message) async throws
12 | func send(_ message: URLSessionWebSocketTask.Message, completionHandler: @escaping @Sendable (Error?) -> Void)
| `- error: cannot find type 'URLSessionWebSocketTask' in scope
13 |
14 | func receive() async throws -> URLSessionWebSocketTask.Message
/host/spi-builder-workspace/Sources/EZNetworking/Core/Session/URLSessionProtocols/URLSessionWebSocketTaskProtocol.swift:14:36: error: cannot find type 'URLSessionWebSocketTask' in scope
12 | func send(_ message: URLSessionWebSocketTask.Message, completionHandler: @escaping @Sendable (Error?) -> Void)
13 |
14 | func receive() async throws -> URLSessionWebSocketTask.Message
| `- error: cannot find type 'URLSessionWebSocketTask' in scope
15 | func receive(completionHandler: @escaping @Sendable (Result<URLSessionWebSocketTask.Message, Error>) -> Void)
16 |
/host/spi-builder-workspace/Sources/EZNetworking/Core/Session/URLSessionProtocols/URLSessionWebSocketTaskProtocol.swift:15:65: error: cannot find type 'URLSessionWebSocketTask' in scope
13 |
14 | func receive() async throws -> URLSessionWebSocketTask.Message
15 | func receive(completionHandler: @escaping @Sendable (Result<URLSessionWebSocketTask.Message, Error>) -> Void)
| `- error: cannot find type 'URLSessionWebSocketTask' in scope
16 |
17 | var closeCode: URLSessionWebSocketTask.CloseCode { get }
/host/spi-builder-workspace/Sources/EZNetworking/Core/Session/URLSessionProtocols/URLSessionWebSocketTaskProtocol.swift:17:20: error: cannot find type 'URLSessionWebSocketTask' in scope
15 | func receive(completionHandler: @escaping @Sendable (Result<URLSessionWebSocketTask.Message, Error>) -> Void)
16 |
17 | var closeCode: URLSessionWebSocketTask.CloseCode { get }
| `- error: cannot find type 'URLSessionWebSocketTask' in scope
18 | var closeReason: Data? { get }
19 | }
/host/spi-builder-workspace/Sources/EZNetworking/Core/Session/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/Services/WebSocket/WebSocket.swift:231:20: error: cannot find type 'URLSessionWebSocketTask' in scope
229 | /// This allows the streams to persist after disconnect and reconnect
230 | private func cleanup(
231 | closeCode: URLSessionWebSocketTask.CloseCode,
| `- error: cannot find type 'URLSessionWebSocketTask' in scope
232 | data: Data?,
233 | newState: WebSocketConnectionState,
/host/spi-builder-workspace/Sources/EZNetworking/Services/WebSocket/WebSocket.swift:76:78: error: cannot infer contextual base in reference to member 'ws'
74 |
75 | public func connect() async throws {
76 | let urlRequest = try webSocketRequest.getURLRequest(allowedSchemes: .ws)
| `- error: cannot infer contextual base in reference to member 'ws'
77 |
78 | // Validate current state
/host/spi-builder-workspace/Sources/EZNetworking/Core/Session/URLSessionProtocols/URLSessionProtocol.swift:6:49: error: cannot find type 'URLRequest' in scope
4 | func data(for request: URLRequest) async throws -> (Data, URLResponse)
5 |
6 | func webSocketTaskInspectable(with request: URLRequest) -> URLSessionWebSocketTaskProtocol
| `- error: cannot find type 'URLRequest' in scope
7 |
8 | func bytes(for request: URLRequest) async throws -> (AsyncThrowingStream<UInt8, Error>, URLResponse)
/host/spi-builder-workspace/Sources/EZNetworking/Core/Session/Interceptors/Protocols/WebSocketTaskInterceptor.swift:20:25: error: cannot find type 'URLSessionWebSocketTask' in scope
18 | case didOpenWithProtocol(protocolStr: String?)
19 | case didOpenWithError(error: Error)
20 | case didClose(code: URLSessionWebSocketTask.CloseCode, reason: Data?)
| `- error: cannot find type 'URLSessionWebSocketTask' in scope
21 | }
22 |
/host/spi-builder-workspace/Sources/EZNetworking/Services/WebSocket/WebSocket.swift:208:25: error: cannot infer contextual base in reference to member 'normalClosure'
206 | }
207 | cleanup(
208 | closeCode: .normalClosure,
| `- error: cannot infer contextual base in reference to member 'normalClosure'
209 | data: nil,
210 | newState: .disconnected(.manuallyDisconnected),
/host/spi-builder-workspace/Sources/EZNetworking/Services/WebSocket/WebSocket.swift:209:19: error: 'nil' requires a contextual type
207 | cleanup(
208 | closeCode: .normalClosure,
209 | data: nil,
| `- error: 'nil' requires a contextual type
210 | newState: .disconnected(.manuallyDisconnected),
211 | reason: .forcedDisconnection
/host/spi-builder-workspace/Sources/EZNetworking/Services/WebSocket/WebSocket.swift:210:24: error: cannot infer contextual base in reference to member 'disconnected'
208 | closeCode: .normalClosure,
209 | data: nil,
210 | newState: .disconnected(.manuallyDisconnected),
| `- error: cannot infer contextual base in reference to member 'disconnected'
211 | reason: .forcedDisconnection
212 | )
/host/spi-builder-workspace/Sources/EZNetworking/Services/WebSocket/WebSocket.swift:210:38: error: cannot infer contextual base in reference to member 'manuallyDisconnected'
208 | closeCode: .normalClosure,
209 | data: nil,
210 | newState: .disconnected(.manuallyDisconnected),
| `- error: cannot infer contextual base in reference to member 'manuallyDisconnected'
211 | reason: .forcedDisconnection
212 | )
/host/spi-builder-workspace/Sources/EZNetworking/Services/WebSocket/WebSocket.swift:211:22: error: cannot infer contextual base in reference to member 'forcedDisconnection'
209 | data: nil,
210 | newState: .disconnected(.manuallyDisconnected),
211 | reason: .forcedDisconnection
| `- error: cannot infer contextual base in reference to member 'forcedDisconnection'
212 | )
213 | }
/host/spi-builder-workspace/Sources/EZNetworking/Services/WebSocket/WebSocket.swift:222:24: error: cannot infer contextual base in reference to member 'disconnected'
220 | closeCode: webSocketTask?.closeCode ?? .goingAway,
221 | data: webSocketTask?.closeReason,
222 | newState: .disconnected(.connectionLost(reason: error)),
| `- error: cannot infer contextual base in reference to member 'disconnected'
223 | reason: error
224 | )
/host/spi-builder-workspace/Sources/EZNetworking/Services/WebSocket/WebSocket.swift:222:38: error: cannot infer contextual base in reference to member 'connectionLost'
220 | closeCode: webSocketTask?.closeCode ?? .goingAway,
221 | data: webSocketTask?.closeReason,
222 | newState: .disconnected(.connectionLost(reason: error)),
| `- error: cannot infer contextual base in reference to member 'connectionLost'
223 | reason: error
224 | )
/host/spi-builder-workspace/Sources/EZNetworking/Services/WebSocket/WebSocket.swift:257:25: error: cannot infer contextual base in reference to member 'normalClosure'
255 | public func terminate() async {
256 | cleanup(
257 | closeCode: .normalClosure,
| `- error: cannot infer contextual base in reference to member 'normalClosure'
258 | data: nil,
259 | newState: .disconnected(.terminated),
/host/spi-builder-workspace/Sources/EZNetworking/Services/WebSocket/WebSocket.swift:258:19: error: 'nil' requires a contextual type
256 | cleanup(
257 | closeCode: .normalClosure,
258 | data: nil,
| `- error: 'nil' requires a contextual type
259 | newState: .disconnected(.terminated),
260 | reason: .forcedDisconnection
/host/spi-builder-workspace/Sources/EZNetworking/Services/WebSocket/WebSocket.swift:259:24: error: cannot infer contextual base in reference to member 'disconnected'
257 | closeCode: .normalClosure,
258 | data: nil,
259 | newState: .disconnected(.terminated),
| `- error: cannot infer contextual base in reference to member 'disconnected'
260 | reason: .forcedDisconnection
261 | )
/host/spi-builder-workspace/Sources/EZNetworking/Services/WebSocket/WebSocket.swift:259:38: error: cannot infer contextual base in reference to member 'terminated'
257 | closeCode: .normalClosure,
258 | data: nil,
259 | newState: .disconnected(.terminated),
| `- error: cannot infer contextual base in reference to member 'terminated'
260 | reason: .forcedDisconnection
261 | )
/host/spi-builder-workspace/Sources/EZNetworking/Services/WebSocket/WebSocket.swift:260:22: error: cannot infer contextual base in reference to member 'forcedDisconnection'
258 | data: nil,
259 | newState: .disconnected(.terminated),
260 | reason: .forcedDisconnection
| `- error: cannot infer contextual base in reference to member 'forcedDisconnection'
261 | )
262 | session.delegate.webSocketTaskInterceptor?.onEvent = nil
[90/90] Compiling EZNetworking WebSocket.swift
/host/spi-builder-workspace/Sources/EZNetworking/Core/Session/Session.swift:19:51: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
17 |
18 | public init(
19 | configuration: URLSessionConfiguration = .default,
| `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
20 | delegate: SessionDelegate = SessionDelegate(),
21 | delegateQueue: OperationQueue? = nil
/host/spi-builder-workspace/Sources/EZNetworking/Core/Session/Session.swift:19:51: error: value of type '_' expected to be instance of class or class-constrained type
17 |
18 | public init(
19 | configuration: URLSessionConfiguration = .default,
| `- error: value of type '_' expected to be instance of class or class-constrained type
20 | delegate: SessionDelegate = SessionDelegate(),
21 | delegateQueue: OperationQueue? = nil
/host/spi-builder-workspace/Sources/EZNetworking/Services/ServerSentEvent/ServerSentEventManager.swift:61:36: error: value of type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'timeoutIntervalForRequest'
59 | self.responseValidator = responseValidator
60 |
61 | self.session.configuration.timeoutIntervalForRequest = 60 // Connection timeout 1 minute
| `- error: value of type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'timeoutIntervalForRequest'
62 | self.session.configuration.timeoutIntervalForResource = 86400 // 24-hour stream timeout
63 | self.session.configuration.httpShouldUsePipelining = false
/host/spi-builder-workspace/Sources/EZNetworking/Services/ServerSentEvent/ServerSentEventManager.swift:62:36: error: value of type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'timeoutIntervalForResource'
60 |
61 | self.session.configuration.timeoutIntervalForRequest = 60 // Connection timeout 1 minute
62 | self.session.configuration.timeoutIntervalForResource = 86400 // 24-hour stream timeout
| `- error: value of type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'timeoutIntervalForResource'
63 | self.session.configuration.httpShouldUsePipelining = false
64 | self.session.configuration.requestCachePolicy = .reloadIgnoringLocalCacheData
/host/spi-builder-workspace/Sources/EZNetworking/Services/ServerSentEvent/ServerSentEventManager.swift:63:36: error: value of type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'httpShouldUsePipelining'
61 | self.session.configuration.timeoutIntervalForRequest = 60 // Connection timeout 1 minute
62 | self.session.configuration.timeoutIntervalForResource = 86400 // 24-hour stream timeout
63 | self.session.configuration.httpShouldUsePipelining = false
| `- error: value of type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'httpShouldUsePipelining'
64 | self.session.configuration.requestCachePolicy = .reloadIgnoringLocalCacheData
65 |
/host/spi-builder-workspace/Sources/EZNetworking/Services/ServerSentEvent/ServerSentEventManager.swift:64:36: error: value of type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'requestCachePolicy'
62 | self.session.configuration.timeoutIntervalForResource = 86400 // 24-hour stream timeout
63 | self.session.configuration.httpShouldUsePipelining = false
64 | self.session.configuration.requestCachePolicy = .reloadIgnoringLocalCacheData
| `- error: value of type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'requestCachePolicy'
65 |
66 | let (eventsStream, eventsContinuation) = AsyncStream<ServerSentEvent>.makeStream()
/host/spi-builder-workspace/Sources/EZNetworking/Services/ServerSentEvent/ServerSentEventManager.swift:64:58: error: cannot infer contextual base in reference to member 'reloadIgnoringLocalCacheData'
62 | self.session.configuration.timeoutIntervalForResource = 86400 // 24-hour stream timeout
63 | self.session.configuration.httpShouldUsePipelining = false
64 | self.session.configuration.requestCachePolicy = .reloadIgnoringLocalCacheData
| `- error: cannot infer contextual base in reference to member 'reloadIgnoringLocalCacheData'
65 |
66 | let (eventsStream, eventsContinuation) = AsyncStream<ServerSentEvent>.makeStream()
/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/Session/URLSessionProtocols/URLSessionProtocol.swift:8:29: error: cannot find type 'URLRequest' in scope
6 | func webSocketTaskInspectable(with request: URLRequest) -> URLSessionWebSocketTaskProtocol
7 |
8 | func bytes(for request: URLRequest) async throws -> (AsyncThrowingStream<UInt8, Error>, URLResponse)
| `- error: cannot find type 'URLRequest' in scope
9 |
10 | func downloadTaskInspectable(with request: URLRequest) -> URLSessionDownloadTaskProtocol
/host/spi-builder-workspace/Sources/EZNetworking/Core/Session/URLSessionProtocols/URLSessionProtocol.swift:13:46: error: cannot find type 'URLRequest' in scope
11 | func downloadTaskInspectable(withResumeData resumeData: Data) -> URLSessionDownloadTaskProtocol
12 |
13 | func uploadTaskInspectable(with request: URLRequest, fromFile fileURL: URL) -> URLSessionUploadTaskProtocol
| `- error: cannot find type 'URLRequest' in scope
14 | func uploadTaskInspectable(withResumeData resumeData: Data) -> URLSessionUploadTaskProtocol
15 | }
/host/spi-builder-workspace/Sources/EZNetworking/Services/Uploader/FileUploader/FileUploader.swift:62:64: error: extra arguments at positions #1, #2 in call
60 | let urlRequest = try request.getURLRequest()
61 | state = .uploading
62 | let task = session.urlSession.uploadTaskInspectable(with: urlRequest, fromFile: fileURL)
| `- error: extra arguments at positions #1, #2 in call
63 | uploadTask = task
64 | task.resume()
/host/spi-builder-workspace/Sources/EZNetworking/Core/Session/URLSessionProtocols/URLSessionProtocol.swift:14:10: note: 'uploadTaskInspectable(withResumeData:)' declared here
12 |
13 | func uploadTaskInspectable(with request: URLRequest, fromFile fileURL: URL) -> URLSessionUploadTaskProtocol
14 | func uploadTaskInspectable(withResumeData resumeData: Data) -> URLSessionUploadTaskProtocol
| `- note: 'uploadTaskInspectable(withResumeData:)' declared here
15 | }
16 |
/host/spi-builder-workspace/Sources/EZNetworking/Services/Uploader/FileUploader/FileUploader.swift:62:65: error: missing argument for parameter 'withResumeData' in call
60 | let urlRequest = try request.getURLRequest()
61 | state = .uploading
62 | let task = session.urlSession.uploadTaskInspectable(with: urlRequest, fromFile: fileURL)
| `- error: missing argument for parameter 'withResumeData' in call
63 | uploadTask = task
64 | task.resume()
/host/spi-builder-workspace/Sources/EZNetworking/Core/Session/URLSessionProtocols/URLSessionProtocol.swift:14:10: note: 'uploadTaskInspectable(withResumeData:)' declared here
12 |
13 | func uploadTaskInspectable(with request: URLRequest, fromFile fileURL: URL) -> URLSessionUploadTaskProtocol
14 | func uploadTaskInspectable(withResumeData resumeData: Data) -> URLSessionUploadTaskProtocol
| `- note: 'uploadTaskInspectable(withResumeData:)' declared here
15 | }
16 |
/host/spi-builder-workspace/Sources/EZNetworking/Core/Error/NetworkFailureReason/WebSocketFailureReason.swift:19:40: error: cannot find type 'URLSessionWebSocketTask' in scope
17 |
18 | // Disconnection errors
19 | case unexpectedDisconnection(code: URLSessionWebSocketTask.CloseCode, reason: String?)
| `- error: cannot find type 'URLSessionWebSocketTask' in scope
20 | case forcedDisconnection
21 | }
/host/spi-builder-workspace/Sources/EZNetworking/Services/WebSocket/Protocols/WebSocketClient.swift:3:36: error: cannot find type 'URLSessionWebSocketTask' in scope
1 | import Foundation
2 |
3 | public typealias OutboundMessage = URLSessionWebSocketTask.Message
| `- error: cannot find type 'URLSessionWebSocketTask' in scope
4 | public typealias InboundMessage = URLSessionWebSocketTask.Message
5 |
/host/spi-builder-workspace/Sources/EZNetworking/Services/WebSocket/Protocols/WebSocketClient.swift:4:35: error: cannot find type 'URLSessionWebSocketTask' in scope
2 |
3 | public typealias OutboundMessage = URLSessionWebSocketTask.Message
4 | public typealias InboundMessage = URLSessionWebSocketTask.Message
| `- error: cannot find type 'URLSessionWebSocketTask' in scope
5 |
6 | /// A client for managing WebSocket connections.
/host/spi-builder-workspace/Sources/EZNetworking/Core/Session/URLSessionProtocols/URLSessionWebSocketTaskProtocol.swift:6:33: error: cannot find type 'URLSessionWebSocketTask' in scope
4 | public protocol URLSessionWebSocketTaskProtocol {
5 | func resume()
6 | func cancel(with closeCode: URLSessionWebSocketTask.CloseCode, reason: Data?)
| `- error: cannot find type 'URLSessionWebSocketTask' in scope
7 |
8 | func sendPing() async throws
/host/spi-builder-workspace/Sources/EZNetworking/Core/Session/URLSessionProtocols/URLSessionWebSocketTaskProtocol.swift:11:26: error: cannot find type 'URLSessionWebSocketTask' in scope
9 | func sendPing(pongReceiveHandler: @escaping @Sendable ((any Error)?) -> Void)
10 |
11 | func send(_ message: URLSessionWebSocketTask.Message) async throws
| `- error: cannot find type 'URLSessionWebSocketTask' in scope
12 | func send(_ message: URLSessionWebSocketTask.Message, completionHandler: @escaping @Sendable (Error?) -> Void)
13 |
/host/spi-builder-workspace/Sources/EZNetworking/Core/Session/URLSessionProtocols/URLSessionWebSocketTaskProtocol.swift:12:26: error: cannot find type 'URLSessionWebSocketTask' in scope
10 |
11 | func send(_ message: URLSessionWebSocketTask.Message) async throws
12 | func send(_ message: URLSessionWebSocketTask.Message, completionHandler: @escaping @Sendable (Error?) -> Void)
| `- error: cannot find type 'URLSessionWebSocketTask' in scope
13 |
14 | func receive() async throws -> URLSessionWebSocketTask.Message
/host/spi-builder-workspace/Sources/EZNetworking/Core/Session/URLSessionProtocols/URLSessionWebSocketTaskProtocol.swift:14:36: error: cannot find type 'URLSessionWebSocketTask' in scope
12 | func send(_ message: URLSessionWebSocketTask.Message, completionHandler: @escaping @Sendable (Error?) -> Void)
13 |
14 | func receive() async throws -> URLSessionWebSocketTask.Message
| `- error: cannot find type 'URLSessionWebSocketTask' in scope
15 | func receive(completionHandler: @escaping @Sendable (Result<URLSessionWebSocketTask.Message, Error>) -> Void)
16 |
/host/spi-builder-workspace/Sources/EZNetworking/Core/Session/URLSessionProtocols/URLSessionWebSocketTaskProtocol.swift:15:65: error: cannot find type 'URLSessionWebSocketTask' in scope
13 |
14 | func receive() async throws -> URLSessionWebSocketTask.Message
15 | func receive(completionHandler: @escaping @Sendable (Result<URLSessionWebSocketTask.Message, Error>) -> Void)
| `- error: cannot find type 'URLSessionWebSocketTask' in scope
16 |
17 | var closeCode: URLSessionWebSocketTask.CloseCode { get }
/host/spi-builder-workspace/Sources/EZNetworking/Core/Session/URLSessionProtocols/URLSessionWebSocketTaskProtocol.swift:17:20: error: cannot find type 'URLSessionWebSocketTask' in scope
15 | func receive(completionHandler: @escaping @Sendable (Result<URLSessionWebSocketTask.Message, Error>) -> Void)
16 |
17 | var closeCode: URLSessionWebSocketTask.CloseCode { get }
| `- error: cannot find type 'URLSessionWebSocketTask' in scope
18 | var closeReason: Data? { get }
19 | }
/host/spi-builder-workspace/Sources/EZNetworking/Core/Session/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/Services/WebSocket/WebSocket.swift:231:20: error: cannot find type 'URLSessionWebSocketTask' in scope
229 | /// This allows the streams to persist after disconnect and reconnect
230 | private func cleanup(
231 | closeCode: URLSessionWebSocketTask.CloseCode,
| `- error: cannot find type 'URLSessionWebSocketTask' in scope
232 | data: Data?,
233 | newState: WebSocketConnectionState,
/host/spi-builder-workspace/Sources/EZNetworking/Services/WebSocket/WebSocket.swift:76:78: error: cannot infer contextual base in reference to member 'ws'
74 |
75 | public func connect() async throws {
76 | let urlRequest = try webSocketRequest.getURLRequest(allowedSchemes: .ws)
| `- error: cannot infer contextual base in reference to member 'ws'
77 |
78 | // Validate current state
/host/spi-builder-workspace/Sources/EZNetworking/Core/Session/URLSessionProtocols/URLSessionProtocol.swift:6:49: error: cannot find type 'URLRequest' in scope
4 | func data(for request: URLRequest) async throws -> (Data, URLResponse)
5 |
6 | func webSocketTaskInspectable(with request: URLRequest) -> URLSessionWebSocketTaskProtocol
| `- error: cannot find type 'URLRequest' in scope
7 |
8 | func bytes(for request: URLRequest) async throws -> (AsyncThrowingStream<UInt8, Error>, URLResponse)
/host/spi-builder-workspace/Sources/EZNetworking/Core/Session/Interceptors/Protocols/WebSocketTaskInterceptor.swift:20:25: error: cannot find type 'URLSessionWebSocketTask' in scope
18 | case didOpenWithProtocol(protocolStr: String?)
19 | case didOpenWithError(error: Error)
20 | case didClose(code: URLSessionWebSocketTask.CloseCode, reason: Data?)
| `- error: cannot find type 'URLSessionWebSocketTask' in scope
21 | }
22 |
/host/spi-builder-workspace/Sources/EZNetworking/Services/WebSocket/WebSocket.swift:208:25: error: cannot infer contextual base in reference to member 'normalClosure'
206 | }
207 | cleanup(
208 | closeCode: .normalClosure,
| `- error: cannot infer contextual base in reference to member 'normalClosure'
209 | data: nil,
210 | newState: .disconnected(.manuallyDisconnected),
/host/spi-builder-workspace/Sources/EZNetworking/Services/WebSocket/WebSocket.swift:209:19: error: 'nil' requires a contextual type
207 | cleanup(
208 | closeCode: .normalClosure,
209 | data: nil,
| `- error: 'nil' requires a contextual type
210 | newState: .disconnected(.manuallyDisconnected),
211 | reason: .forcedDisconnection
/host/spi-builder-workspace/Sources/EZNetworking/Services/WebSocket/WebSocket.swift:210:24: error: cannot infer contextual base in reference to member 'disconnected'
208 | closeCode: .normalClosure,
209 | data: nil,
210 | newState: .disconnected(.manuallyDisconnected),
| `- error: cannot infer contextual base in reference to member 'disconnected'
211 | reason: .forcedDisconnection
212 | )
/host/spi-builder-workspace/Sources/EZNetworking/Services/WebSocket/WebSocket.swift:210:38: error: cannot infer contextual base in reference to member 'manuallyDisconnected'
208 | closeCode: .normalClosure,
209 | data: nil,
210 | newState: .disconnected(.manuallyDisconnected),
| `- error: cannot infer contextual base in reference to member 'manuallyDisconnected'
211 | reason: .forcedDisconnection
212 | )
/host/spi-builder-workspace/Sources/EZNetworking/Services/WebSocket/WebSocket.swift:211:22: error: cannot infer contextual base in reference to member 'forcedDisconnection'
209 | data: nil,
210 | newState: .disconnected(.manuallyDisconnected),
211 | reason: .forcedDisconnection
| `- error: cannot infer contextual base in reference to member 'forcedDisconnection'
212 | )
213 | }
/host/spi-builder-workspace/Sources/EZNetworking/Services/WebSocket/WebSocket.swift:222:24: error: cannot infer contextual base in reference to member 'disconnected'
220 | closeCode: webSocketTask?.closeCode ?? .goingAway,
221 | data: webSocketTask?.closeReason,
222 | newState: .disconnected(.connectionLost(reason: error)),
| `- error: cannot infer contextual base in reference to member 'disconnected'
223 | reason: error
224 | )
/host/spi-builder-workspace/Sources/EZNetworking/Services/WebSocket/WebSocket.swift:222:38: error: cannot infer contextual base in reference to member 'connectionLost'
220 | closeCode: webSocketTask?.closeCode ?? .goingAway,
221 | data: webSocketTask?.closeReason,
222 | newState: .disconnected(.connectionLost(reason: error)),
| `- error: cannot infer contextual base in reference to member 'connectionLost'
223 | reason: error
224 | )
/host/spi-builder-workspace/Sources/EZNetworking/Services/WebSocket/WebSocket.swift:257:25: error: cannot infer contextual base in reference to member 'normalClosure'
255 | public func terminate() async {
256 | cleanup(
257 | closeCode: .normalClosure,
| `- error: cannot infer contextual base in reference to member 'normalClosure'
258 | data: nil,
259 | newState: .disconnected(.terminated),
/host/spi-builder-workspace/Sources/EZNetworking/Services/WebSocket/WebSocket.swift:258:19: error: 'nil' requires a contextual type
256 | cleanup(
257 | closeCode: .normalClosure,
258 | data: nil,
| `- error: 'nil' requires a contextual type
259 | newState: .disconnected(.terminated),
260 | reason: .forcedDisconnection
/host/spi-builder-workspace/Sources/EZNetworking/Services/WebSocket/WebSocket.swift:259:24: error: cannot infer contextual base in reference to member 'disconnected'
257 | closeCode: .normalClosure,
258 | data: nil,
259 | newState: .disconnected(.terminated),
| `- error: cannot infer contextual base in reference to member 'disconnected'
260 | reason: .forcedDisconnection
261 | )
/host/spi-builder-workspace/Sources/EZNetworking/Services/WebSocket/WebSocket.swift:259:38: error: cannot infer contextual base in reference to member 'terminated'
257 | closeCode: .normalClosure,
258 | data: nil,
259 | newState: .disconnected(.terminated),
| `- error: cannot infer contextual base in reference to member 'terminated'
260 | reason: .forcedDisconnection
261 | )
/host/spi-builder-workspace/Sources/EZNetworking/Services/WebSocket/WebSocket.swift:260:22: error: cannot infer contextual base in reference to member 'forcedDisconnection'
258 | data: nil,
259 | newState: .disconnected(.terminated),
260 | reason: .forcedDisconnection
| `- error: cannot infer contextual base in reference to member 'forcedDisconnection'
261 | )
262 | session.delegate.webSocketTaskInterceptor?.onEvent = nil
BUILD FAILURE 6.2 android