Build Information
Successful build of EZNetworking, reference 5.6.0 (c0bc82), with Swift 6.1 for macOS (SPM) on 26 Jun 2026 09:45:08 UTC.
Swift 6 data race errors: 9
Build Command
env DEVELOPER_DIR=/Applications/Xcode-16.3.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCapturesBuild Log
66 |
67 | deinit {
68 | session.delegate.webSocketTaskInterceptor?.onEvent = nil
| `- warning: cannot access property 'session' with a non-sendable type 'any NetworkSession' from nonisolated deinit; this is an error in the Swift 6 language mode
69 | stateEventContinuation.finish()
70 | messagesContinuation.finish()
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Core/Session/Session.swift:3:17: note: protocol 'NetworkSession' does not conform to the 'Sendable' protocol
1 | import Foundation
2 |
3 | public protocol NetworkSession {
| `- note: protocol 'NetworkSession' does not conform to the 'Sendable' protocol
4 | var configuration: URLSessionConfiguration { get }
5 | var delegate: SessionDelegate { get }
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Services/WebSocket/WebSocket.swift:188:38: warning: sending 'wsTask' risks causing data races; this is an error in the Swift 6 language mode
186 | }
187 | do {
188 | try await wsTask.sendPing()
| |- warning: sending 'wsTask' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'wsTask' to nonisolated instance method 'sendPing()' risks causing data races between nonisolated and 'self'-isolated uses
189 | consecutiveFailures = 0
190 | lastError = nil
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Services/WebSocket/WebSocket.swift:196:34: warning: sending 'self.pingConfig' risks causing data races; this is an error in the Swift 6 language mode
194 | lastError = WebSocketFailureReason.pingFailed(underlying: error.asSendableError)
195 | }
196 | await pingConfig.waitForPingInterval()
| |- warning: sending 'self.pingConfig' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'self.pingConfig' to nonisolated callee risks causing data races between nonisolated and 'self'-isolated uses
197 | }
198 | }
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Services/WebSocket/WebSocket.swift:275:30: warning: sending 'wsTask' risks causing data races; this is an error in the Swift 6 language mode
273 |
274 | do {
275 | try await wsTask.send(message)
| |- warning: sending 'wsTask' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'wsTask' to nonisolated instance method 'send' risks causing data races between nonisolated and 'self'-isolated uses
276 | } catch {
277 | throw NetworkingError.webSocketFailed(reason: .sendFailed(underlying: error.asSendableError))
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Services/WebSocket/WebSocket.swift:291:52: warning: sending 'wsTask' risks causing data races; this is an error in the Swift 6 language mode
289 | while !Task.isCancelled, let wsTask = webSocketTask, case .connected = connectionState {
290 | do {
291 | let message = try await wsTask.receive()
| |- warning: sending 'wsTask' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'wsTask' to nonisolated instance method 'receive()' risks causing data races between nonisolated and 'self'-isolated uses
292 | messagesContinuation.yield(message)
293 | } catch {
[6/90] Compiling EZNetworking UploadState.swift
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Services/Uploader/FileUploader/FileUploader.swift:13:13: warning: 'nonisolated' can not be applied to variable with non-'Sendable' type 'DefaultUploadTaskInterceptor'; this is an error in the Swift 6 language mode
11 |
12 | /// Strong reference since SessionDelegate.uploadTaskInterceptor is weak
13 | private nonisolated let fallbackUploadTaskInterceptor: DefaultUploadTaskInterceptor
| `- warning: 'nonisolated' can not be applied to variable with non-'Sendable' type 'DefaultUploadTaskInterceptor'; this is an error in the Swift 6 language mode
14 |
15 | // MARK: init
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Core/Session/Interceptors/DefaultInterceptors/DefaultUploadTaskInterceptor.swift:4:7: note: class 'DefaultUploadTaskInterceptor' does not conform to the 'Sendable' protocol
2 |
3 | /// Default implementation of UploadTaskInterceptor
4 | class DefaultUploadTaskInterceptor: UploadTaskInterceptor {
| `- note: class 'DefaultUploadTaskInterceptor' does not conform to the 'Sendable' protocol
5 | var onEvent: (UploadTaskInterceptorEvent) -> Void
6 | private let validator: ResponseValidator
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Services/Uploader/FileUploader/FileUploader.swift:166:54: warning: non-sendable type 'DefaultUploadTaskInterceptor' of property 'fallbackUploadTaskInterceptor' cannot exit nonisolated context; this is an error in the Swift 6 language mode
164 | private nonisolated func setupUploadEventHandler(session: NetworkSession) {
165 | if session.delegate.uploadTaskInterceptor == nil {
166 | session.delegate.uploadTaskInterceptor = fallbackUploadTaskInterceptor
| `- warning: non-sendable type 'DefaultUploadTaskInterceptor' of property 'fallbackUploadTaskInterceptor' cannot exit nonisolated context; this is an error in the Swift 6 language mode
167 | }
168 |
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Core/Session/Interceptors/DefaultInterceptors/DefaultUploadTaskInterceptor.swift:4:7: note: class 'DefaultUploadTaskInterceptor' does not conform to the 'Sendable' protocol
2 |
3 | /// Default implementation of UploadTaskInterceptor
4 | class DefaultUploadTaskInterceptor: UploadTaskInterceptor {
| `- note: class 'DefaultUploadTaskInterceptor' does not conform to the 'Sendable' protocol
5 | var onEvent: (UploadTaskInterceptorEvent) -> Void
6 | private let validator: ResponseValidator
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Services/Uploader/FileUploader/FileUploader.swift:171:58: warning: capture of 'event' with non-sendable type 'UploadTaskInterceptorEvent' in a '@Sendable' closure; this is an error in the Swift 6 language mode
169 | session.delegate.uploadTaskInterceptor?.onEvent = { [weak self] event in
170 | Task { @Sendable [weak self] in
171 | await self?.handleUploadInterceptorEvent(event)
| `- warning: capture of 'event' with non-sendable type 'UploadTaskInterceptorEvent' in a '@Sendable' closure; this is an error in the Swift 6 language mode
172 | }
173 | }
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Core/Session/Interceptors/Protocols/UploadTaskInterceptor.swift:3:13: note: consider making enum 'UploadTaskInterceptorEvent' conform to the 'Sendable' protocol
1 | import Foundation
2 |
3 | public enum UploadTaskInterceptorEvent {
| `- note: consider making enum 'UploadTaskInterceptorEvent' conform to the 'Sendable' protocol
4 | case onProgress(Double)
5 | case onUploadCompleted(Data)
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Services/WebSocket/WebSocket.swift:8:13: warning: 'nonisolated' can not be applied to variable with non-'Sendable' type 'any WebSocketTaskInterceptor'; this is an error in the Swift 6 language mode
6 |
7 | private var webSocketTask: URLSessionWebSocketTaskProtocol?
8 | private nonisolated let fallbackWebSocketTaskInterceptor: WebSocketTaskInterceptor = DefaultWebSocketTaskInterceptor()
| `- warning: 'nonisolated' can not be applied to variable with non-'Sendable' type 'any WebSocketTaskInterceptor'; this is an error in the Swift 6 language mode
9 |
10 | private var connectionState: WebSocketConnectionState = .notConnected {
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Core/Session/Interceptors/Protocols/WebSocketTaskInterceptor.swift:4:17: note: protocol 'WebSocketTaskInterceptor' does not conform to the 'Sendable' protocol
2 |
3 | /// Protocol for intercepting WebSocket tasks specifically.
4 | public protocol WebSocketTaskInterceptor: AnyObject {
| `- note: protocol 'WebSocketTaskInterceptor' does not conform to the 'Sendable' protocol
5 | var onEvent: ((WebSocketTaskEvent) -> Void)? { get set }
6 |
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Services/WebSocket/WebSocket.swift:104:57: warning: non-sendable type 'any WebSocketTaskInterceptor' of property 'fallbackWebSocketTaskInterceptor' cannot exit nonisolated context; this is an error in the Swift 6 language mode
102 | private nonisolated func setupWebSocketEventHandler(session: NetworkSession) {
103 | if session.delegate.webSocketTaskInterceptor == nil {
104 | session.delegate.webSocketTaskInterceptor = fallbackWebSocketTaskInterceptor
| `- warning: non-sendable type 'any WebSocketTaskInterceptor' of property 'fallbackWebSocketTaskInterceptor' cannot exit nonisolated context; this is an error in the Swift 6 language mode
105 | }
106 | guard session.delegate.webSocketTaskInterceptor?.onEvent == nil else {
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Core/Session/Interceptors/Protocols/WebSocketTaskInterceptor.swift:4:17: note: protocol 'WebSocketTaskInterceptor' does not conform to the 'Sendable' protocol
2 |
3 | /// Protocol for intercepting WebSocket tasks specifically.
4 | public protocol WebSocketTaskInterceptor: AnyObject {
| `- note: protocol 'WebSocketTaskInterceptor' does not conform to the 'Sendable' protocol
5 | var onEvent: ((WebSocketTaskEvent) -> Void)? { get set }
6 |
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Services/WebSocket/WebSocket.swift:112:61: warning: capture of 'event' with non-sendable type 'WebSocketTaskEvent' in a '@Sendable' closure; this is an error in the Swift 6 language mode
110 | session.delegate.webSocketTaskInterceptor?.onEvent = { [weak self] event in
111 | Task { @Sendable [weak self] in
112 | await self?.handleWebSocketInterceptorEvent(event)
| `- warning: capture of 'event' with non-sendable type 'WebSocketTaskEvent' in a '@Sendable' closure; this is an error in the Swift 6 language mode
113 | }
114 | }
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Core/Session/Interceptors/Protocols/WebSocketTaskInterceptor.swift:17:13: note: consider making enum 'WebSocketTaskEvent' conform to the 'Sendable' protocol
15 | }
16 |
17 | public enum WebSocketTaskEvent {
| `- note: consider making enum 'WebSocketTaskEvent' conform to the 'Sendable' protocol
18 | case didOpenWithProtocol(protocolStr: String?)
19 | case didOpenWithError(error: Error)
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Services/Uploader/FileUploader/FileUploader.swift:35:9: warning: cannot access property 'session' with a non-sendable type 'any NetworkSession' from nonisolated deinit; this is an error in the Swift 6 language mode
33 |
34 | deinit {
35 | session.delegate.uploadTaskInterceptor?.onEvent = { _ in }
| `- warning: cannot access property 'session' with a non-sendable type 'any NetworkSession' from nonisolated deinit; this is an error in the Swift 6 language mode
36 | continuation?.finish()
37 | }
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Core/Session/Session.swift:3:17: note: protocol 'NetworkSession' does not conform to the 'Sendable' protocol
1 | import Foundation
2 |
3 | public protocol NetworkSession {
| `- note: protocol 'NetworkSession' does not conform to the 'Sendable' protocol
4 | var configuration: URLSessionConfiguration { get }
5 | var delegate: SessionDelegate { get }
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Services/WebSocket/WebSocket.swift:68:9: warning: cannot access property 'session' with a non-sendable type 'any NetworkSession' from nonisolated deinit; this is an error in the Swift 6 language mode
66 |
67 | deinit {
68 | session.delegate.webSocketTaskInterceptor?.onEvent = nil
| `- warning: cannot access property 'session' with a non-sendable type 'any NetworkSession' from nonisolated deinit; this is an error in the Swift 6 language mode
69 | stateEventContinuation.finish()
70 | messagesContinuation.finish()
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Core/Session/Session.swift:3:17: note: protocol 'NetworkSession' does not conform to the 'Sendable' protocol
1 | import Foundation
2 |
3 | public protocol NetworkSession {
| `- note: protocol 'NetworkSession' does not conform to the 'Sendable' protocol
4 | var configuration: URLSessionConfiguration { get }
5 | var delegate: SessionDelegate { get }
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Services/WebSocket/WebSocket.swift:188:38: warning: sending 'wsTask' risks causing data races; this is an error in the Swift 6 language mode
186 | }
187 | do {
188 | try await wsTask.sendPing()
| |- warning: sending 'wsTask' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'wsTask' to nonisolated instance method 'sendPing()' risks causing data races between nonisolated and 'self'-isolated uses
189 | consecutiveFailures = 0
190 | lastError = nil
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Services/WebSocket/WebSocket.swift:196:34: warning: sending 'self.pingConfig' risks causing data races; this is an error in the Swift 6 language mode
194 | lastError = WebSocketFailureReason.pingFailed(underlying: error.asSendableError)
195 | }
196 | await pingConfig.waitForPingInterval()
| |- warning: sending 'self.pingConfig' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'self.pingConfig' to nonisolated callee risks causing data races between nonisolated and 'self'-isolated uses
197 | }
198 | }
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Services/WebSocket/WebSocket.swift:275:30: warning: sending 'wsTask' risks causing data races; this is an error in the Swift 6 language mode
273 |
274 | do {
275 | try await wsTask.send(message)
| |- warning: sending 'wsTask' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'wsTask' to nonisolated instance method 'send' risks causing data races between nonisolated and 'self'-isolated uses
276 | } catch {
277 | throw NetworkingError.webSocketFailed(reason: .sendFailed(underlying: error.asSendableError))
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Services/WebSocket/WebSocket.swift:291:52: warning: sending 'wsTask' risks causing data races; this is an error in the Swift 6 language mode
289 | while !Task.isCancelled, let wsTask = webSocketTask, case .connected = connectionState {
290 | do {
291 | let message = try await wsTask.receive()
| |- warning: sending 'wsTask' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'wsTask' to nonisolated instance method 'receive()' risks causing data races between nonisolated and 'self'-isolated uses
292 | messagesContinuation.yield(message)
293 | } catch {
[7/90] Compiling EZNetworking Uploadable.swift
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Services/Uploader/FileUploader/FileUploader.swift:13:13: warning: 'nonisolated' can not be applied to variable with non-'Sendable' type 'DefaultUploadTaskInterceptor'; this is an error in the Swift 6 language mode
11 |
12 | /// Strong reference since SessionDelegate.uploadTaskInterceptor is weak
13 | private nonisolated let fallbackUploadTaskInterceptor: DefaultUploadTaskInterceptor
| `- warning: 'nonisolated' can not be applied to variable with non-'Sendable' type 'DefaultUploadTaskInterceptor'; this is an error in the Swift 6 language mode
14 |
15 | // MARK: init
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Core/Session/Interceptors/DefaultInterceptors/DefaultUploadTaskInterceptor.swift:4:7: note: class 'DefaultUploadTaskInterceptor' does not conform to the 'Sendable' protocol
2 |
3 | /// Default implementation of UploadTaskInterceptor
4 | class DefaultUploadTaskInterceptor: UploadTaskInterceptor {
| `- note: class 'DefaultUploadTaskInterceptor' does not conform to the 'Sendable' protocol
5 | var onEvent: (UploadTaskInterceptorEvent) -> Void
6 | private let validator: ResponseValidator
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Services/Uploader/FileUploader/FileUploader.swift:166:54: warning: non-sendable type 'DefaultUploadTaskInterceptor' of property 'fallbackUploadTaskInterceptor' cannot exit nonisolated context; this is an error in the Swift 6 language mode
164 | private nonisolated func setupUploadEventHandler(session: NetworkSession) {
165 | if session.delegate.uploadTaskInterceptor == nil {
166 | session.delegate.uploadTaskInterceptor = fallbackUploadTaskInterceptor
| `- warning: non-sendable type 'DefaultUploadTaskInterceptor' of property 'fallbackUploadTaskInterceptor' cannot exit nonisolated context; this is an error in the Swift 6 language mode
167 | }
168 |
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Core/Session/Interceptors/DefaultInterceptors/DefaultUploadTaskInterceptor.swift:4:7: note: class 'DefaultUploadTaskInterceptor' does not conform to the 'Sendable' protocol
2 |
3 | /// Default implementation of UploadTaskInterceptor
4 | class DefaultUploadTaskInterceptor: UploadTaskInterceptor {
| `- note: class 'DefaultUploadTaskInterceptor' does not conform to the 'Sendable' protocol
5 | var onEvent: (UploadTaskInterceptorEvent) -> Void
6 | private let validator: ResponseValidator
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Services/Uploader/FileUploader/FileUploader.swift:171:58: warning: capture of 'event' with non-sendable type 'UploadTaskInterceptorEvent' in a '@Sendable' closure; this is an error in the Swift 6 language mode
169 | session.delegate.uploadTaskInterceptor?.onEvent = { [weak self] event in
170 | Task { @Sendable [weak self] in
171 | await self?.handleUploadInterceptorEvent(event)
| `- warning: capture of 'event' with non-sendable type 'UploadTaskInterceptorEvent' in a '@Sendable' closure; this is an error in the Swift 6 language mode
172 | }
173 | }
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Core/Session/Interceptors/Protocols/UploadTaskInterceptor.swift:3:13: note: consider making enum 'UploadTaskInterceptorEvent' conform to the 'Sendable' protocol
1 | import Foundation
2 |
3 | public enum UploadTaskInterceptorEvent {
| `- note: consider making enum 'UploadTaskInterceptorEvent' conform to the 'Sendable' protocol
4 | case onProgress(Double)
5 | case onUploadCompleted(Data)
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Services/WebSocket/WebSocket.swift:8:13: warning: 'nonisolated' can not be applied to variable with non-'Sendable' type 'any WebSocketTaskInterceptor'; this is an error in the Swift 6 language mode
6 |
7 | private var webSocketTask: URLSessionWebSocketTaskProtocol?
8 | private nonisolated let fallbackWebSocketTaskInterceptor: WebSocketTaskInterceptor = DefaultWebSocketTaskInterceptor()
| `- warning: 'nonisolated' can not be applied to variable with non-'Sendable' type 'any WebSocketTaskInterceptor'; this is an error in the Swift 6 language mode
9 |
10 | private var connectionState: WebSocketConnectionState = .notConnected {
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Core/Session/Interceptors/Protocols/WebSocketTaskInterceptor.swift:4:17: note: protocol 'WebSocketTaskInterceptor' does not conform to the 'Sendable' protocol
2 |
3 | /// Protocol for intercepting WebSocket tasks specifically.
4 | public protocol WebSocketTaskInterceptor: AnyObject {
| `- note: protocol 'WebSocketTaskInterceptor' does not conform to the 'Sendable' protocol
5 | var onEvent: ((WebSocketTaskEvent) -> Void)? { get set }
6 |
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Services/WebSocket/WebSocket.swift:104:57: warning: non-sendable type 'any WebSocketTaskInterceptor' of property 'fallbackWebSocketTaskInterceptor' cannot exit nonisolated context; this is an error in the Swift 6 language mode
102 | private nonisolated func setupWebSocketEventHandler(session: NetworkSession) {
103 | if session.delegate.webSocketTaskInterceptor == nil {
104 | session.delegate.webSocketTaskInterceptor = fallbackWebSocketTaskInterceptor
| `- warning: non-sendable type 'any WebSocketTaskInterceptor' of property 'fallbackWebSocketTaskInterceptor' cannot exit nonisolated context; this is an error in the Swift 6 language mode
105 | }
106 | guard session.delegate.webSocketTaskInterceptor?.onEvent == nil else {
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Core/Session/Interceptors/Protocols/WebSocketTaskInterceptor.swift:4:17: note: protocol 'WebSocketTaskInterceptor' does not conform to the 'Sendable' protocol
2 |
3 | /// Protocol for intercepting WebSocket tasks specifically.
4 | public protocol WebSocketTaskInterceptor: AnyObject {
| `- note: protocol 'WebSocketTaskInterceptor' does not conform to the 'Sendable' protocol
5 | var onEvent: ((WebSocketTaskEvent) -> Void)? { get set }
6 |
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Services/WebSocket/WebSocket.swift:112:61: warning: capture of 'event' with non-sendable type 'WebSocketTaskEvent' in a '@Sendable' closure; this is an error in the Swift 6 language mode
110 | session.delegate.webSocketTaskInterceptor?.onEvent = { [weak self] event in
111 | Task { @Sendable [weak self] in
112 | await self?.handleWebSocketInterceptorEvent(event)
| `- warning: capture of 'event' with non-sendable type 'WebSocketTaskEvent' in a '@Sendable' closure; this is an error in the Swift 6 language mode
113 | }
114 | }
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Core/Session/Interceptors/Protocols/WebSocketTaskInterceptor.swift:17:13: note: consider making enum 'WebSocketTaskEvent' conform to the 'Sendable' protocol
15 | }
16 |
17 | public enum WebSocketTaskEvent {
| `- note: consider making enum 'WebSocketTaskEvent' conform to the 'Sendable' protocol
18 | case didOpenWithProtocol(protocolStr: String?)
19 | case didOpenWithError(error: Error)
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Services/Uploader/FileUploader/FileUploader.swift:35:9: warning: cannot access property 'session' with a non-sendable type 'any NetworkSession' from nonisolated deinit; this is an error in the Swift 6 language mode
33 |
34 | deinit {
35 | session.delegate.uploadTaskInterceptor?.onEvent = { _ in }
| `- warning: cannot access property 'session' with a non-sendable type 'any NetworkSession' from nonisolated deinit; this is an error in the Swift 6 language mode
36 | continuation?.finish()
37 | }
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Core/Session/Session.swift:3:17: note: protocol 'NetworkSession' does not conform to the 'Sendable' protocol
1 | import Foundation
2 |
3 | public protocol NetworkSession {
| `- note: protocol 'NetworkSession' does not conform to the 'Sendable' protocol
4 | var configuration: URLSessionConfiguration { get }
5 | var delegate: SessionDelegate { get }
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Services/WebSocket/WebSocket.swift:68:9: warning: cannot access property 'session' with a non-sendable type 'any NetworkSession' from nonisolated deinit; this is an error in the Swift 6 language mode
66 |
67 | deinit {
68 | session.delegate.webSocketTaskInterceptor?.onEvent = nil
| `- warning: cannot access property 'session' with a non-sendable type 'any NetworkSession' from nonisolated deinit; this is an error in the Swift 6 language mode
69 | stateEventContinuation.finish()
70 | messagesContinuation.finish()
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Core/Session/Session.swift:3:17: note: protocol 'NetworkSession' does not conform to the 'Sendable' protocol
1 | import Foundation
2 |
3 | public protocol NetworkSession {
| `- note: protocol 'NetworkSession' does not conform to the 'Sendable' protocol
4 | var configuration: URLSessionConfiguration { get }
5 | var delegate: SessionDelegate { get }
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Services/WebSocket/WebSocket.swift:188:38: warning: sending 'wsTask' risks causing data races; this is an error in the Swift 6 language mode
186 | }
187 | do {
188 | try await wsTask.sendPing()
| |- warning: sending 'wsTask' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'wsTask' to nonisolated instance method 'sendPing()' risks causing data races between nonisolated and 'self'-isolated uses
189 | consecutiveFailures = 0
190 | lastError = nil
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Services/WebSocket/WebSocket.swift:196:34: warning: sending 'self.pingConfig' risks causing data races; this is an error in the Swift 6 language mode
194 | lastError = WebSocketFailureReason.pingFailed(underlying: error.asSendableError)
195 | }
196 | await pingConfig.waitForPingInterval()
| |- warning: sending 'self.pingConfig' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'self.pingConfig' to nonisolated callee risks causing data races between nonisolated and 'self'-isolated uses
197 | }
198 | }
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Services/WebSocket/WebSocket.swift:275:30: warning: sending 'wsTask' risks causing data races; this is an error in the Swift 6 language mode
273 |
274 | do {
275 | try await wsTask.send(message)
| |- warning: sending 'wsTask' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'wsTask' to nonisolated instance method 'send' risks causing data races between nonisolated and 'self'-isolated uses
276 | } catch {
277 | throw NetworkingError.webSocketFailed(reason: .sendFailed(underlying: error.asSendableError))
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Services/WebSocket/WebSocket.swift:291:52: warning: sending 'wsTask' risks causing data races; this is an error in the Swift 6 language mode
289 | while !Task.isCancelled, let wsTask = webSocketTask, case .connected = connectionState {
290 | do {
291 | let message = try await wsTask.receive()
| |- warning: sending 'wsTask' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'wsTask' to nonisolated instance method 'receive()' risks causing data races between nonisolated and 'self'-isolated uses
292 | messagesContinuation.yield(message)
293 | } catch {
[8/90] Compiling EZNetworking PingConfig.swift
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Services/Uploader/FileUploader/FileUploader.swift:13:13: warning: 'nonisolated' can not be applied to variable with non-'Sendable' type 'DefaultUploadTaskInterceptor'; this is an error in the Swift 6 language mode
11 |
12 | /// Strong reference since SessionDelegate.uploadTaskInterceptor is weak
13 | private nonisolated let fallbackUploadTaskInterceptor: DefaultUploadTaskInterceptor
| `- warning: 'nonisolated' can not be applied to variable with non-'Sendable' type 'DefaultUploadTaskInterceptor'; this is an error in the Swift 6 language mode
14 |
15 | // MARK: init
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Core/Session/Interceptors/DefaultInterceptors/DefaultUploadTaskInterceptor.swift:4:7: note: class 'DefaultUploadTaskInterceptor' does not conform to the 'Sendable' protocol
2 |
3 | /// Default implementation of UploadTaskInterceptor
4 | class DefaultUploadTaskInterceptor: UploadTaskInterceptor {
| `- note: class 'DefaultUploadTaskInterceptor' does not conform to the 'Sendable' protocol
5 | var onEvent: (UploadTaskInterceptorEvent) -> Void
6 | private let validator: ResponseValidator
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Services/Uploader/FileUploader/FileUploader.swift:166:54: warning: non-sendable type 'DefaultUploadTaskInterceptor' of property 'fallbackUploadTaskInterceptor' cannot exit nonisolated context; this is an error in the Swift 6 language mode
164 | private nonisolated func setupUploadEventHandler(session: NetworkSession) {
165 | if session.delegate.uploadTaskInterceptor == nil {
166 | session.delegate.uploadTaskInterceptor = fallbackUploadTaskInterceptor
| `- warning: non-sendable type 'DefaultUploadTaskInterceptor' of property 'fallbackUploadTaskInterceptor' cannot exit nonisolated context; this is an error in the Swift 6 language mode
167 | }
168 |
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Core/Session/Interceptors/DefaultInterceptors/DefaultUploadTaskInterceptor.swift:4:7: note: class 'DefaultUploadTaskInterceptor' does not conform to the 'Sendable' protocol
2 |
3 | /// Default implementation of UploadTaskInterceptor
4 | class DefaultUploadTaskInterceptor: UploadTaskInterceptor {
| `- note: class 'DefaultUploadTaskInterceptor' does not conform to the 'Sendable' protocol
5 | var onEvent: (UploadTaskInterceptorEvent) -> Void
6 | private let validator: ResponseValidator
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Services/Uploader/FileUploader/FileUploader.swift:171:58: warning: capture of 'event' with non-sendable type 'UploadTaskInterceptorEvent' in a '@Sendable' closure; this is an error in the Swift 6 language mode
169 | session.delegate.uploadTaskInterceptor?.onEvent = { [weak self] event in
170 | Task { @Sendable [weak self] in
171 | await self?.handleUploadInterceptorEvent(event)
| `- warning: capture of 'event' with non-sendable type 'UploadTaskInterceptorEvent' in a '@Sendable' closure; this is an error in the Swift 6 language mode
172 | }
173 | }
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Core/Session/Interceptors/Protocols/UploadTaskInterceptor.swift:3:13: note: consider making enum 'UploadTaskInterceptorEvent' conform to the 'Sendable' protocol
1 | import Foundation
2 |
3 | public enum UploadTaskInterceptorEvent {
| `- note: consider making enum 'UploadTaskInterceptorEvent' conform to the 'Sendable' protocol
4 | case onProgress(Double)
5 | case onUploadCompleted(Data)
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Services/WebSocket/WebSocket.swift:8:13: warning: 'nonisolated' can not be applied to variable with non-'Sendable' type 'any WebSocketTaskInterceptor'; this is an error in the Swift 6 language mode
6 |
7 | private var webSocketTask: URLSessionWebSocketTaskProtocol?
8 | private nonisolated let fallbackWebSocketTaskInterceptor: WebSocketTaskInterceptor = DefaultWebSocketTaskInterceptor()
| `- warning: 'nonisolated' can not be applied to variable with non-'Sendable' type 'any WebSocketTaskInterceptor'; this is an error in the Swift 6 language mode
9 |
10 | private var connectionState: WebSocketConnectionState = .notConnected {
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Core/Session/Interceptors/Protocols/WebSocketTaskInterceptor.swift:4:17: note: protocol 'WebSocketTaskInterceptor' does not conform to the 'Sendable' protocol
2 |
3 | /// Protocol for intercepting WebSocket tasks specifically.
4 | public protocol WebSocketTaskInterceptor: AnyObject {
| `- note: protocol 'WebSocketTaskInterceptor' does not conform to the 'Sendable' protocol
5 | var onEvent: ((WebSocketTaskEvent) -> Void)? { get set }
6 |
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Services/WebSocket/WebSocket.swift:104:57: warning: non-sendable type 'any WebSocketTaskInterceptor' of property 'fallbackWebSocketTaskInterceptor' cannot exit nonisolated context; this is an error in the Swift 6 language mode
102 | private nonisolated func setupWebSocketEventHandler(session: NetworkSession) {
103 | if session.delegate.webSocketTaskInterceptor == nil {
104 | session.delegate.webSocketTaskInterceptor = fallbackWebSocketTaskInterceptor
| `- warning: non-sendable type 'any WebSocketTaskInterceptor' of property 'fallbackWebSocketTaskInterceptor' cannot exit nonisolated context; this is an error in the Swift 6 language mode
105 | }
106 | guard session.delegate.webSocketTaskInterceptor?.onEvent == nil else {
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Core/Session/Interceptors/Protocols/WebSocketTaskInterceptor.swift:4:17: note: protocol 'WebSocketTaskInterceptor' does not conform to the 'Sendable' protocol
2 |
3 | /// Protocol for intercepting WebSocket tasks specifically.
4 | public protocol WebSocketTaskInterceptor: AnyObject {
| `- note: protocol 'WebSocketTaskInterceptor' does not conform to the 'Sendable' protocol
5 | var onEvent: ((WebSocketTaskEvent) -> Void)? { get set }
6 |
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Services/WebSocket/WebSocket.swift:112:61: warning: capture of 'event' with non-sendable type 'WebSocketTaskEvent' in a '@Sendable' closure; this is an error in the Swift 6 language mode
110 | session.delegate.webSocketTaskInterceptor?.onEvent = { [weak self] event in
111 | Task { @Sendable [weak self] in
112 | await self?.handleWebSocketInterceptorEvent(event)
| `- warning: capture of 'event' with non-sendable type 'WebSocketTaskEvent' in a '@Sendable' closure; this is an error in the Swift 6 language mode
113 | }
114 | }
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Core/Session/Interceptors/Protocols/WebSocketTaskInterceptor.swift:17:13: note: consider making enum 'WebSocketTaskEvent' conform to the 'Sendable' protocol
15 | }
16 |
17 | public enum WebSocketTaskEvent {
| `- note: consider making enum 'WebSocketTaskEvent' conform to the 'Sendable' protocol
18 | case didOpenWithProtocol(protocolStr: String?)
19 | case didOpenWithError(error: Error)
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Services/Uploader/FileUploader/FileUploader.swift:35:9: warning: cannot access property 'session' with a non-sendable type 'any NetworkSession' from nonisolated deinit; this is an error in the Swift 6 language mode
33 |
34 | deinit {
35 | session.delegate.uploadTaskInterceptor?.onEvent = { _ in }
| `- warning: cannot access property 'session' with a non-sendable type 'any NetworkSession' from nonisolated deinit; this is an error in the Swift 6 language mode
36 | continuation?.finish()
37 | }
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Core/Session/Session.swift:3:17: note: protocol 'NetworkSession' does not conform to the 'Sendable' protocol
1 | import Foundation
2 |
3 | public protocol NetworkSession {
| `- note: protocol 'NetworkSession' does not conform to the 'Sendable' protocol
4 | var configuration: URLSessionConfiguration { get }
5 | var delegate: SessionDelegate { get }
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Services/WebSocket/WebSocket.swift:68:9: warning: cannot access property 'session' with a non-sendable type 'any NetworkSession' from nonisolated deinit; this is an error in the Swift 6 language mode
66 |
67 | deinit {
68 | session.delegate.webSocketTaskInterceptor?.onEvent = nil
| `- warning: cannot access property 'session' with a non-sendable type 'any NetworkSession' from nonisolated deinit; this is an error in the Swift 6 language mode
69 | stateEventContinuation.finish()
70 | messagesContinuation.finish()
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Core/Session/Session.swift:3:17: note: protocol 'NetworkSession' does not conform to the 'Sendable' protocol
1 | import Foundation
2 |
3 | public protocol NetworkSession {
| `- note: protocol 'NetworkSession' does not conform to the 'Sendable' protocol
4 | var configuration: URLSessionConfiguration { get }
5 | var delegate: SessionDelegate { get }
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Services/WebSocket/WebSocket.swift:188:38: warning: sending 'wsTask' risks causing data races; this is an error in the Swift 6 language mode
186 | }
187 | do {
188 | try await wsTask.sendPing()
| |- warning: sending 'wsTask' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'wsTask' to nonisolated instance method 'sendPing()' risks causing data races between nonisolated and 'self'-isolated uses
189 | consecutiveFailures = 0
190 | lastError = nil
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Services/WebSocket/WebSocket.swift:196:34: warning: sending 'self.pingConfig' risks causing data races; this is an error in the Swift 6 language mode
194 | lastError = WebSocketFailureReason.pingFailed(underlying: error.asSendableError)
195 | }
196 | await pingConfig.waitForPingInterval()
| |- warning: sending 'self.pingConfig' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'self.pingConfig' to nonisolated callee risks causing data races between nonisolated and 'self'-isolated uses
197 | }
198 | }
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Services/WebSocket/WebSocket.swift:275:30: warning: sending 'wsTask' risks causing data races; this is an error in the Swift 6 language mode
273 |
274 | do {
275 | try await wsTask.send(message)
| |- warning: sending 'wsTask' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'wsTask' to nonisolated instance method 'send' risks causing data races between nonisolated and 'self'-isolated uses
276 | } catch {
277 | throw NetworkingError.webSocketFailed(reason: .sendFailed(underlying: error.asSendableError))
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Services/WebSocket/WebSocket.swift:291:52: warning: sending 'wsTask' risks causing data races; this is an error in the Swift 6 language mode
289 | while !Task.isCancelled, let wsTask = webSocketTask, case .connected = connectionState {
290 | do {
291 | let message = try await wsTask.receive()
| |- warning: sending 'wsTask' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'wsTask' to nonisolated instance method 'receive()' risks causing data races between nonisolated and 'self'-isolated uses
292 | messagesContinuation.yield(message)
293 | } catch {
[9/90] Compiling EZNetworking WebSocketConnectionState.swift
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Services/Uploader/FileUploader/FileUploader.swift:13:13: warning: 'nonisolated' can not be applied to variable with non-'Sendable' type 'DefaultUploadTaskInterceptor'; this is an error in the Swift 6 language mode
11 |
12 | /// Strong reference since SessionDelegate.uploadTaskInterceptor is weak
13 | private nonisolated let fallbackUploadTaskInterceptor: DefaultUploadTaskInterceptor
| `- warning: 'nonisolated' can not be applied to variable with non-'Sendable' type 'DefaultUploadTaskInterceptor'; this is an error in the Swift 6 language mode
14 |
15 | // MARK: init
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Core/Session/Interceptors/DefaultInterceptors/DefaultUploadTaskInterceptor.swift:4:7: note: class 'DefaultUploadTaskInterceptor' does not conform to the 'Sendable' protocol
2 |
3 | /// Default implementation of UploadTaskInterceptor
4 | class DefaultUploadTaskInterceptor: UploadTaskInterceptor {
| `- note: class 'DefaultUploadTaskInterceptor' does not conform to the 'Sendable' protocol
5 | var onEvent: (UploadTaskInterceptorEvent) -> Void
6 | private let validator: ResponseValidator
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Services/Uploader/FileUploader/FileUploader.swift:166:54: warning: non-sendable type 'DefaultUploadTaskInterceptor' of property 'fallbackUploadTaskInterceptor' cannot exit nonisolated context; this is an error in the Swift 6 language mode
164 | private nonisolated func setupUploadEventHandler(session: NetworkSession) {
165 | if session.delegate.uploadTaskInterceptor == nil {
166 | session.delegate.uploadTaskInterceptor = fallbackUploadTaskInterceptor
| `- warning: non-sendable type 'DefaultUploadTaskInterceptor' of property 'fallbackUploadTaskInterceptor' cannot exit nonisolated context; this is an error in the Swift 6 language mode
167 | }
168 |
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Core/Session/Interceptors/DefaultInterceptors/DefaultUploadTaskInterceptor.swift:4:7: note: class 'DefaultUploadTaskInterceptor' does not conform to the 'Sendable' protocol
2 |
3 | /// Default implementation of UploadTaskInterceptor
4 | class DefaultUploadTaskInterceptor: UploadTaskInterceptor {
| `- note: class 'DefaultUploadTaskInterceptor' does not conform to the 'Sendable' protocol
5 | var onEvent: (UploadTaskInterceptorEvent) -> Void
6 | private let validator: ResponseValidator
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Services/Uploader/FileUploader/FileUploader.swift:171:58: warning: capture of 'event' with non-sendable type 'UploadTaskInterceptorEvent' in a '@Sendable' closure; this is an error in the Swift 6 language mode
169 | session.delegate.uploadTaskInterceptor?.onEvent = { [weak self] event in
170 | Task { @Sendable [weak self] in
171 | await self?.handleUploadInterceptorEvent(event)
| `- warning: capture of 'event' with non-sendable type 'UploadTaskInterceptorEvent' in a '@Sendable' closure; this is an error in the Swift 6 language mode
172 | }
173 | }
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Core/Session/Interceptors/Protocols/UploadTaskInterceptor.swift:3:13: note: consider making enum 'UploadTaskInterceptorEvent' conform to the 'Sendable' protocol
1 | import Foundation
2 |
3 | public enum UploadTaskInterceptorEvent {
| `- note: consider making enum 'UploadTaskInterceptorEvent' conform to the 'Sendable' protocol
4 | case onProgress(Double)
5 | case onUploadCompleted(Data)
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Services/WebSocket/WebSocket.swift:8:13: warning: 'nonisolated' can not be applied to variable with non-'Sendable' type 'any WebSocketTaskInterceptor'; this is an error in the Swift 6 language mode
6 |
7 | private var webSocketTask: URLSessionWebSocketTaskProtocol?
8 | private nonisolated let fallbackWebSocketTaskInterceptor: WebSocketTaskInterceptor = DefaultWebSocketTaskInterceptor()
| `- warning: 'nonisolated' can not be applied to variable with non-'Sendable' type 'any WebSocketTaskInterceptor'; this is an error in the Swift 6 language mode
9 |
10 | private var connectionState: WebSocketConnectionState = .notConnected {
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Core/Session/Interceptors/Protocols/WebSocketTaskInterceptor.swift:4:17: note: protocol 'WebSocketTaskInterceptor' does not conform to the 'Sendable' protocol
2 |
3 | /// Protocol for intercepting WebSocket tasks specifically.
4 | public protocol WebSocketTaskInterceptor: AnyObject {
| `- note: protocol 'WebSocketTaskInterceptor' does not conform to the 'Sendable' protocol
5 | var onEvent: ((WebSocketTaskEvent) -> Void)? { get set }
6 |
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Services/WebSocket/WebSocket.swift:104:57: warning: non-sendable type 'any WebSocketTaskInterceptor' of property 'fallbackWebSocketTaskInterceptor' cannot exit nonisolated context; this is an error in the Swift 6 language mode
102 | private nonisolated func setupWebSocketEventHandler(session: NetworkSession) {
103 | if session.delegate.webSocketTaskInterceptor == nil {
104 | session.delegate.webSocketTaskInterceptor = fallbackWebSocketTaskInterceptor
| `- warning: non-sendable type 'any WebSocketTaskInterceptor' of property 'fallbackWebSocketTaskInterceptor' cannot exit nonisolated context; this is an error in the Swift 6 language mode
105 | }
106 | guard session.delegate.webSocketTaskInterceptor?.onEvent == nil else {
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Core/Session/Interceptors/Protocols/WebSocketTaskInterceptor.swift:4:17: note: protocol 'WebSocketTaskInterceptor' does not conform to the 'Sendable' protocol
2 |
3 | /// Protocol for intercepting WebSocket tasks specifically.
4 | public protocol WebSocketTaskInterceptor: AnyObject {
| `- note: protocol 'WebSocketTaskInterceptor' does not conform to the 'Sendable' protocol
5 | var onEvent: ((WebSocketTaskEvent) -> Void)? { get set }
6 |
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Services/WebSocket/WebSocket.swift:112:61: warning: capture of 'event' with non-sendable type 'WebSocketTaskEvent' in a '@Sendable' closure; this is an error in the Swift 6 language mode
110 | session.delegate.webSocketTaskInterceptor?.onEvent = { [weak self] event in
111 | Task { @Sendable [weak self] in
112 | await self?.handleWebSocketInterceptorEvent(event)
| `- warning: capture of 'event' with non-sendable type 'WebSocketTaskEvent' in a '@Sendable' closure; this is an error in the Swift 6 language mode
113 | }
114 | }
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Core/Session/Interceptors/Protocols/WebSocketTaskInterceptor.swift:17:13: note: consider making enum 'WebSocketTaskEvent' conform to the 'Sendable' protocol
15 | }
16 |
17 | public enum WebSocketTaskEvent {
| `- note: consider making enum 'WebSocketTaskEvent' conform to the 'Sendable' protocol
18 | case didOpenWithProtocol(protocolStr: String?)
19 | case didOpenWithError(error: Error)
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Services/Uploader/FileUploader/FileUploader.swift:35:9: warning: cannot access property 'session' with a non-sendable type 'any NetworkSession' from nonisolated deinit; this is an error in the Swift 6 language mode
33 |
34 | deinit {
35 | session.delegate.uploadTaskInterceptor?.onEvent = { _ in }
| `- warning: cannot access property 'session' with a non-sendable type 'any NetworkSession' from nonisolated deinit; this is an error in the Swift 6 language mode
36 | continuation?.finish()
37 | }
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Core/Session/Session.swift:3:17: note: protocol 'NetworkSession' does not conform to the 'Sendable' protocol
1 | import Foundation
2 |
3 | public protocol NetworkSession {
| `- note: protocol 'NetworkSession' does not conform to the 'Sendable' protocol
4 | var configuration: URLSessionConfiguration { get }
5 | var delegate: SessionDelegate { get }
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Services/WebSocket/WebSocket.swift:68:9: warning: cannot access property 'session' with a non-sendable type 'any NetworkSession' from nonisolated deinit; this is an error in the Swift 6 language mode
66 |
67 | deinit {
68 | session.delegate.webSocketTaskInterceptor?.onEvent = nil
| `- warning: cannot access property 'session' with a non-sendable type 'any NetworkSession' from nonisolated deinit; this is an error in the Swift 6 language mode
69 | stateEventContinuation.finish()
70 | messagesContinuation.finish()
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Core/Session/Session.swift:3:17: note: protocol 'NetworkSession' does not conform to the 'Sendable' protocol
1 | import Foundation
2 |
3 | public protocol NetworkSession {
| `- note: protocol 'NetworkSession' does not conform to the 'Sendable' protocol
4 | var configuration: URLSessionConfiguration { get }
5 | var delegate: SessionDelegate { get }
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Services/WebSocket/WebSocket.swift:188:38: warning: sending 'wsTask' risks causing data races; this is an error in the Swift 6 language mode
186 | }
187 | do {
188 | try await wsTask.sendPing()
| |- warning: sending 'wsTask' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'wsTask' to nonisolated instance method 'sendPing()' risks causing data races between nonisolated and 'self'-isolated uses
189 | consecutiveFailures = 0
190 | lastError = nil
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Services/WebSocket/WebSocket.swift:196:34: warning: sending 'self.pingConfig' risks causing data races; this is an error in the Swift 6 language mode
194 | lastError = WebSocketFailureReason.pingFailed(underlying: error.asSendableError)
195 | }
196 | await pingConfig.waitForPingInterval()
| |- warning: sending 'self.pingConfig' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'self.pingConfig' to nonisolated callee risks causing data races between nonisolated and 'self'-isolated uses
197 | }
198 | }
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Services/WebSocket/WebSocket.swift:275:30: warning: sending 'wsTask' risks causing data races; this is an error in the Swift 6 language mode
273 |
274 | do {
275 | try await wsTask.send(message)
| |- warning: sending 'wsTask' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'wsTask' to nonisolated instance method 'send' risks causing data races between nonisolated and 'self'-isolated uses
276 | } catch {
277 | throw NetworkingError.webSocketFailed(reason: .sendFailed(underlying: error.asSendableError))
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Services/WebSocket/WebSocket.swift:291:52: warning: sending 'wsTask' risks causing data races; this is an error in the Swift 6 language mode
289 | while !Task.isCancelled, let wsTask = webSocketTask, case .connected = connectionState {
290 | do {
291 | let message = try await wsTask.receive()
| |- warning: sending 'wsTask' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'wsTask' to nonisolated instance method 'receive()' risks causing data races between nonisolated and 'self'-isolated uses
292 | messagesContinuation.yield(message)
293 | } catch {
[10/90] Compiling EZNetworking WebSocketClient.swift
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Services/Uploader/FileUploader/FileUploader.swift:13:13: warning: 'nonisolated' can not be applied to variable with non-'Sendable' type 'DefaultUploadTaskInterceptor'; this is an error in the Swift 6 language mode
11 |
12 | /// Strong reference since SessionDelegate.uploadTaskInterceptor is weak
13 | private nonisolated let fallbackUploadTaskInterceptor: DefaultUploadTaskInterceptor
| `- warning: 'nonisolated' can not be applied to variable with non-'Sendable' type 'DefaultUploadTaskInterceptor'; this is an error in the Swift 6 language mode
14 |
15 | // MARK: init
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Core/Session/Interceptors/DefaultInterceptors/DefaultUploadTaskInterceptor.swift:4:7: note: class 'DefaultUploadTaskInterceptor' does not conform to the 'Sendable' protocol
2 |
3 | /// Default implementation of UploadTaskInterceptor
4 | class DefaultUploadTaskInterceptor: UploadTaskInterceptor {
| `- note: class 'DefaultUploadTaskInterceptor' does not conform to the 'Sendable' protocol
5 | var onEvent: (UploadTaskInterceptorEvent) -> Void
6 | private let validator: ResponseValidator
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Services/Uploader/FileUploader/FileUploader.swift:166:54: warning: non-sendable type 'DefaultUploadTaskInterceptor' of property 'fallbackUploadTaskInterceptor' cannot exit nonisolated context; this is an error in the Swift 6 language mode
164 | private nonisolated func setupUploadEventHandler(session: NetworkSession) {
165 | if session.delegate.uploadTaskInterceptor == nil {
166 | session.delegate.uploadTaskInterceptor = fallbackUploadTaskInterceptor
| `- warning: non-sendable type 'DefaultUploadTaskInterceptor' of property 'fallbackUploadTaskInterceptor' cannot exit nonisolated context; this is an error in the Swift 6 language mode
167 | }
168 |
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Core/Session/Interceptors/DefaultInterceptors/DefaultUploadTaskInterceptor.swift:4:7: note: class 'DefaultUploadTaskInterceptor' does not conform to the 'Sendable' protocol
2 |
3 | /// Default implementation of UploadTaskInterceptor
4 | class DefaultUploadTaskInterceptor: UploadTaskInterceptor {
| `- note: class 'DefaultUploadTaskInterceptor' does not conform to the 'Sendable' protocol
5 | var onEvent: (UploadTaskInterceptorEvent) -> Void
6 | private let validator: ResponseValidator
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Services/Uploader/FileUploader/FileUploader.swift:171:58: warning: capture of 'event' with non-sendable type 'UploadTaskInterceptorEvent' in a '@Sendable' closure; this is an error in the Swift 6 language mode
169 | session.delegate.uploadTaskInterceptor?.onEvent = { [weak self] event in
170 | Task { @Sendable [weak self] in
171 | await self?.handleUploadInterceptorEvent(event)
| `- warning: capture of 'event' with non-sendable type 'UploadTaskInterceptorEvent' in a '@Sendable' closure; this is an error in the Swift 6 language mode
172 | }
173 | }
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Core/Session/Interceptors/Protocols/UploadTaskInterceptor.swift:3:13: note: consider making enum 'UploadTaskInterceptorEvent' conform to the 'Sendable' protocol
1 | import Foundation
2 |
3 | public enum UploadTaskInterceptorEvent {
| `- note: consider making enum 'UploadTaskInterceptorEvent' conform to the 'Sendable' protocol
4 | case onProgress(Double)
5 | case onUploadCompleted(Data)
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Services/WebSocket/WebSocket.swift:8:13: warning: 'nonisolated' can not be applied to variable with non-'Sendable' type 'any WebSocketTaskInterceptor'; this is an error in the Swift 6 language mode
6 |
7 | private var webSocketTask: URLSessionWebSocketTaskProtocol?
8 | private nonisolated let fallbackWebSocketTaskInterceptor: WebSocketTaskInterceptor = DefaultWebSocketTaskInterceptor()
| `- warning: 'nonisolated' can not be applied to variable with non-'Sendable' type 'any WebSocketTaskInterceptor'; this is an error in the Swift 6 language mode
9 |
10 | private var connectionState: WebSocketConnectionState = .notConnected {
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Core/Session/Interceptors/Protocols/WebSocketTaskInterceptor.swift:4:17: note: protocol 'WebSocketTaskInterceptor' does not conform to the 'Sendable' protocol
2 |
3 | /// Protocol for intercepting WebSocket tasks specifically.
4 | public protocol WebSocketTaskInterceptor: AnyObject {
| `- note: protocol 'WebSocketTaskInterceptor' does not conform to the 'Sendable' protocol
5 | var onEvent: ((WebSocketTaskEvent) -> Void)? { get set }
6 |
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Services/WebSocket/WebSocket.swift:104:57: warning: non-sendable type 'any WebSocketTaskInterceptor' of property 'fallbackWebSocketTaskInterceptor' cannot exit nonisolated context; this is an error in the Swift 6 language mode
102 | private nonisolated func setupWebSocketEventHandler(session: NetworkSession) {
103 | if session.delegate.webSocketTaskInterceptor == nil {
104 | session.delegate.webSocketTaskInterceptor = fallbackWebSocketTaskInterceptor
| `- warning: non-sendable type 'any WebSocketTaskInterceptor' of property 'fallbackWebSocketTaskInterceptor' cannot exit nonisolated context; this is an error in the Swift 6 language mode
105 | }
106 | guard session.delegate.webSocketTaskInterceptor?.onEvent == nil else {
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Core/Session/Interceptors/Protocols/WebSocketTaskInterceptor.swift:4:17: note: protocol 'WebSocketTaskInterceptor' does not conform to the 'Sendable' protocol
2 |
3 | /// Protocol for intercepting WebSocket tasks specifically.
4 | public protocol WebSocketTaskInterceptor: AnyObject {
| `- note: protocol 'WebSocketTaskInterceptor' does not conform to the 'Sendable' protocol
5 | var onEvent: ((WebSocketTaskEvent) -> Void)? { get set }
6 |
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Services/WebSocket/WebSocket.swift:112:61: warning: capture of 'event' with non-sendable type 'WebSocketTaskEvent' in a '@Sendable' closure; this is an error in the Swift 6 language mode
110 | session.delegate.webSocketTaskInterceptor?.onEvent = { [weak self] event in
111 | Task { @Sendable [weak self] in
112 | await self?.handleWebSocketInterceptorEvent(event)
| `- warning: capture of 'event' with non-sendable type 'WebSocketTaskEvent' in a '@Sendable' closure; this is an error in the Swift 6 language mode
113 | }
114 | }
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Core/Session/Interceptors/Protocols/WebSocketTaskInterceptor.swift:17:13: note: consider making enum 'WebSocketTaskEvent' conform to the 'Sendable' protocol
15 | }
16 |
17 | public enum WebSocketTaskEvent {
| `- note: consider making enum 'WebSocketTaskEvent' conform to the 'Sendable' protocol
18 | case didOpenWithProtocol(protocolStr: String?)
19 | case didOpenWithError(error: Error)
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Services/Uploader/FileUploader/FileUploader.swift:35:9: warning: cannot access property 'session' with a non-sendable type 'any NetworkSession' from nonisolated deinit; this is an error in the Swift 6 language mode
33 |
34 | deinit {
35 | session.delegate.uploadTaskInterceptor?.onEvent = { _ in }
| `- warning: cannot access property 'session' with a non-sendable type 'any NetworkSession' from nonisolated deinit; this is an error in the Swift 6 language mode
36 | continuation?.finish()
37 | }
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Core/Session/Session.swift:3:17: note: protocol 'NetworkSession' does not conform to the 'Sendable' protocol
1 | import Foundation
2 |
3 | public protocol NetworkSession {
| `- note: protocol 'NetworkSession' does not conform to the 'Sendable' protocol
4 | var configuration: URLSessionConfiguration { get }
5 | var delegate: SessionDelegate { get }
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Services/WebSocket/WebSocket.swift:68:9: warning: cannot access property 'session' with a non-sendable type 'any NetworkSession' from nonisolated deinit; this is an error in the Swift 6 language mode
66 |
67 | deinit {
68 | session.delegate.webSocketTaskInterceptor?.onEvent = nil
| `- warning: cannot access property 'session' with a non-sendable type 'any NetworkSession' from nonisolated deinit; this is an error in the Swift 6 language mode
69 | stateEventContinuation.finish()
70 | messagesContinuation.finish()
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Core/Session/Session.swift:3:17: note: protocol 'NetworkSession' does not conform to the 'Sendable' protocol
1 | import Foundation
2 |
3 | public protocol NetworkSession {
| `- note: protocol 'NetworkSession' does not conform to the 'Sendable' protocol
4 | var configuration: URLSessionConfiguration { get }
5 | var delegate: SessionDelegate { get }
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Services/WebSocket/WebSocket.swift:188:38: warning: sending 'wsTask' risks causing data races; this is an error in the Swift 6 language mode
186 | }
187 | do {
188 | try await wsTask.sendPing()
| |- warning: sending 'wsTask' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'wsTask' to nonisolated instance method 'sendPing()' risks causing data races between nonisolated and 'self'-isolated uses
189 | consecutiveFailures = 0
190 | lastError = nil
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Services/WebSocket/WebSocket.swift:196:34: warning: sending 'self.pingConfig' risks causing data races; this is an error in the Swift 6 language mode
194 | lastError = WebSocketFailureReason.pingFailed(underlying: error.asSendableError)
195 | }
196 | await pingConfig.waitForPingInterval()
| |- warning: sending 'self.pingConfig' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'self.pingConfig' to nonisolated callee risks causing data races between nonisolated and 'self'-isolated uses
197 | }
198 | }
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Services/WebSocket/WebSocket.swift:275:30: warning: sending 'wsTask' risks causing data races; this is an error in the Swift 6 language mode
273 |
274 | do {
275 | try await wsTask.send(message)
| |- warning: sending 'wsTask' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'wsTask' to nonisolated instance method 'send' risks causing data races between nonisolated and 'self'-isolated uses
276 | } catch {
277 | throw NetworkingError.webSocketFailed(reason: .sendFailed(underlying: error.asSendableError))
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Services/WebSocket/WebSocket.swift:291:52: warning: sending 'wsTask' risks causing data races; this is an error in the Swift 6 language mode
289 | while !Task.isCancelled, let wsTask = webSocketTask, case .connected = connectionState {
290 | do {
291 | let message = try await wsTask.receive()
| |- warning: sending 'wsTask' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'wsTask' to nonisolated instance method 'receive()' risks causing data races between nonisolated and 'self'-isolated uses
292 | messagesContinuation.yield(message)
293 | } catch {
[11/90] Compiling EZNetworking WebSocket.swift
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Services/Uploader/FileUploader/FileUploader.swift:13:13: warning: 'nonisolated' can not be applied to variable with non-'Sendable' type 'DefaultUploadTaskInterceptor'; this is an error in the Swift 6 language mode
11 |
12 | /// Strong reference since SessionDelegate.uploadTaskInterceptor is weak
13 | private nonisolated let fallbackUploadTaskInterceptor: DefaultUploadTaskInterceptor
| `- warning: 'nonisolated' can not be applied to variable with non-'Sendable' type 'DefaultUploadTaskInterceptor'; this is an error in the Swift 6 language mode
14 |
15 | // MARK: init
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Core/Session/Interceptors/DefaultInterceptors/DefaultUploadTaskInterceptor.swift:4:7: note: class 'DefaultUploadTaskInterceptor' does not conform to the 'Sendable' protocol
2 |
3 | /// Default implementation of UploadTaskInterceptor
4 | class DefaultUploadTaskInterceptor: UploadTaskInterceptor {
| `- note: class 'DefaultUploadTaskInterceptor' does not conform to the 'Sendable' protocol
5 | var onEvent: (UploadTaskInterceptorEvent) -> Void
6 | private let validator: ResponseValidator
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Services/Uploader/FileUploader/FileUploader.swift:166:54: warning: non-sendable type 'DefaultUploadTaskInterceptor' of property 'fallbackUploadTaskInterceptor' cannot exit nonisolated context; this is an error in the Swift 6 language mode
164 | private nonisolated func setupUploadEventHandler(session: NetworkSession) {
165 | if session.delegate.uploadTaskInterceptor == nil {
166 | session.delegate.uploadTaskInterceptor = fallbackUploadTaskInterceptor
| `- warning: non-sendable type 'DefaultUploadTaskInterceptor' of property 'fallbackUploadTaskInterceptor' cannot exit nonisolated context; this is an error in the Swift 6 language mode
167 | }
168 |
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Core/Session/Interceptors/DefaultInterceptors/DefaultUploadTaskInterceptor.swift:4:7: note: class 'DefaultUploadTaskInterceptor' does not conform to the 'Sendable' protocol
2 |
3 | /// Default implementation of UploadTaskInterceptor
4 | class DefaultUploadTaskInterceptor: UploadTaskInterceptor {
| `- note: class 'DefaultUploadTaskInterceptor' does not conform to the 'Sendable' protocol
5 | var onEvent: (UploadTaskInterceptorEvent) -> Void
6 | private let validator: ResponseValidator
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Services/Uploader/FileUploader/FileUploader.swift:171:58: warning: capture of 'event' with non-sendable type 'UploadTaskInterceptorEvent' in a '@Sendable' closure; this is an error in the Swift 6 language mode
169 | session.delegate.uploadTaskInterceptor?.onEvent = { [weak self] event in
170 | Task { @Sendable [weak self] in
171 | await self?.handleUploadInterceptorEvent(event)
| `- warning: capture of 'event' with non-sendable type 'UploadTaskInterceptorEvent' in a '@Sendable' closure; this is an error in the Swift 6 language mode
172 | }
173 | }
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Core/Session/Interceptors/Protocols/UploadTaskInterceptor.swift:3:13: note: consider making enum 'UploadTaskInterceptorEvent' conform to the 'Sendable' protocol
1 | import Foundation
2 |
3 | public enum UploadTaskInterceptorEvent {
| `- note: consider making enum 'UploadTaskInterceptorEvent' conform to the 'Sendable' protocol
4 | case onProgress(Double)
5 | case onUploadCompleted(Data)
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Services/WebSocket/WebSocket.swift:8:13: warning: 'nonisolated' can not be applied to variable with non-'Sendable' type 'any WebSocketTaskInterceptor'; this is an error in the Swift 6 language mode
6 |
7 | private var webSocketTask: URLSessionWebSocketTaskProtocol?
8 | private nonisolated let fallbackWebSocketTaskInterceptor: WebSocketTaskInterceptor = DefaultWebSocketTaskInterceptor()
| `- warning: 'nonisolated' can not be applied to variable with non-'Sendable' type 'any WebSocketTaskInterceptor'; this is an error in the Swift 6 language mode
9 |
10 | private var connectionState: WebSocketConnectionState = .notConnected {
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Core/Session/Interceptors/Protocols/WebSocketTaskInterceptor.swift:4:17: note: protocol 'WebSocketTaskInterceptor' does not conform to the 'Sendable' protocol
2 |
3 | /// Protocol for intercepting WebSocket tasks specifically.
4 | public protocol WebSocketTaskInterceptor: AnyObject {
| `- note: protocol 'WebSocketTaskInterceptor' does not conform to the 'Sendable' protocol
5 | var onEvent: ((WebSocketTaskEvent) -> Void)? { get set }
6 |
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Services/WebSocket/WebSocket.swift:104:57: warning: non-sendable type 'any WebSocketTaskInterceptor' of property 'fallbackWebSocketTaskInterceptor' cannot exit nonisolated context; this is an error in the Swift 6 language mode
102 | private nonisolated func setupWebSocketEventHandler(session: NetworkSession) {
103 | if session.delegate.webSocketTaskInterceptor == nil {
104 | session.delegate.webSocketTaskInterceptor = fallbackWebSocketTaskInterceptor
| `- warning: non-sendable type 'any WebSocketTaskInterceptor' of property 'fallbackWebSocketTaskInterceptor' cannot exit nonisolated context; this is an error in the Swift 6 language mode
105 | }
106 | guard session.delegate.webSocketTaskInterceptor?.onEvent == nil else {
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Core/Session/Interceptors/Protocols/WebSocketTaskInterceptor.swift:4:17: note: protocol 'WebSocketTaskInterceptor' does not conform to the 'Sendable' protocol
2 |
3 | /// Protocol for intercepting WebSocket tasks specifically.
4 | public protocol WebSocketTaskInterceptor: AnyObject {
| `- note: protocol 'WebSocketTaskInterceptor' does not conform to the 'Sendable' protocol
5 | var onEvent: ((WebSocketTaskEvent) -> Void)? { get set }
6 |
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Services/WebSocket/WebSocket.swift:112:61: warning: capture of 'event' with non-sendable type 'WebSocketTaskEvent' in a '@Sendable' closure; this is an error in the Swift 6 language mode
110 | session.delegate.webSocketTaskInterceptor?.onEvent = { [weak self] event in
111 | Task { @Sendable [weak self] in
112 | await self?.handleWebSocketInterceptorEvent(event)
| `- warning: capture of 'event' with non-sendable type 'WebSocketTaskEvent' in a '@Sendable' closure; this is an error in the Swift 6 language mode
113 | }
114 | }
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Core/Session/Interceptors/Protocols/WebSocketTaskInterceptor.swift:17:13: note: consider making enum 'WebSocketTaskEvent' conform to the 'Sendable' protocol
15 | }
16 |
17 | public enum WebSocketTaskEvent {
| `- note: consider making enum 'WebSocketTaskEvent' conform to the 'Sendable' protocol
18 | case didOpenWithProtocol(protocolStr: String?)
19 | case didOpenWithError(error: Error)
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Services/Uploader/FileUploader/FileUploader.swift:35:9: warning: cannot access property 'session' with a non-sendable type 'any NetworkSession' from nonisolated deinit; this is an error in the Swift 6 language mode
33 |
34 | deinit {
35 | session.delegate.uploadTaskInterceptor?.onEvent = { _ in }
| `- warning: cannot access property 'session' with a non-sendable type 'any NetworkSession' from nonisolated deinit; this is an error in the Swift 6 language mode
36 | continuation?.finish()
37 | }
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Core/Session/Session.swift:3:17: note: protocol 'NetworkSession' does not conform to the 'Sendable' protocol
1 | import Foundation
2 |
3 | public protocol NetworkSession {
| `- note: protocol 'NetworkSession' does not conform to the 'Sendable' protocol
4 | var configuration: URLSessionConfiguration { get }
5 | var delegate: SessionDelegate { get }
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Services/WebSocket/WebSocket.swift:68:9: warning: cannot access property 'session' with a non-sendable type 'any NetworkSession' from nonisolated deinit; this is an error in the Swift 6 language mode
66 |
67 | deinit {
68 | session.delegate.webSocketTaskInterceptor?.onEvent = nil
| `- warning: cannot access property 'session' with a non-sendable type 'any NetworkSession' from nonisolated deinit; this is an error in the Swift 6 language mode
69 | stateEventContinuation.finish()
70 | messagesContinuation.finish()
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Core/Session/Session.swift:3:17: note: protocol 'NetworkSession' does not conform to the 'Sendable' protocol
1 | import Foundation
2 |
3 | public protocol NetworkSession {
| `- note: protocol 'NetworkSession' does not conform to the 'Sendable' protocol
4 | var configuration: URLSessionConfiguration { get }
5 | var delegate: SessionDelegate { get }
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Services/WebSocket/WebSocket.swift:188:38: warning: sending 'wsTask' risks causing data races; this is an error in the Swift 6 language mode
186 | }
187 | do {
188 | try await wsTask.sendPing()
| |- warning: sending 'wsTask' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'wsTask' to nonisolated instance method 'sendPing()' risks causing data races between nonisolated and 'self'-isolated uses
189 | consecutiveFailures = 0
190 | lastError = nil
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Services/WebSocket/WebSocket.swift:196:34: warning: sending 'self.pingConfig' risks causing data races; this is an error in the Swift 6 language mode
194 | lastError = WebSocketFailureReason.pingFailed(underlying: error.asSendableError)
195 | }
196 | await pingConfig.waitForPingInterval()
| |- warning: sending 'self.pingConfig' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'self.pingConfig' to nonisolated callee risks causing data races between nonisolated and 'self'-isolated uses
197 | }
198 | }
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Services/WebSocket/WebSocket.swift:275:30: warning: sending 'wsTask' risks causing data races; this is an error in the Swift 6 language mode
273 |
274 | do {
275 | try await wsTask.send(message)
| |- warning: sending 'wsTask' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'wsTask' to nonisolated instance method 'send' risks causing data races between nonisolated and 'self'-isolated uses
276 | } catch {
277 | throw NetworkingError.webSocketFailed(reason: .sendFailed(underlying: error.asSendableError))
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Services/WebSocket/WebSocket.swift:291:52: warning: sending 'wsTask' risks causing data races; this is an error in the Swift 6 language mode
289 | while !Task.isCancelled, let wsTask = webSocketTask, case .connected = connectionState {
290 | do {
291 | let message = try await wsTask.receive()
| |- warning: sending 'wsTask' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'wsTask' to nonisolated instance method 'receive()' risks causing data races between nonisolated and 'self'-isolated uses
292 | messagesContinuation.yield(message)
293 | } catch {
[12/90] Compiling EZNetworking EZJSONDecoder.swift
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Core/Common/Extensions/AsyncSequence-ext.swift:15:29: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
13 | public var sseLines: AsyncThrowingStream<String, Error> {
14 | AsyncThrowingStream { continuation in
15 | let task = Task {
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
16 | var buffer = Data()
17 | do {
18 | for try await byte in self {
| `- note: closure captures 'self' which is accessible to code in the current task
19 | if byte == ASCII.lineFeed.rawValue {
20 | // swiftlint:disable:next optional_data_string_conversion
[13/90] Compiling EZNetworking EmptyResponse.swift
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Core/Common/Extensions/AsyncSequence-ext.swift:15:29: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
13 | public var sseLines: AsyncThrowingStream<String, Error> {
14 | AsyncThrowingStream { continuation in
15 | let task = Task {
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
16 | var buffer = Data()
17 | do {
18 | for try await byte in self {
| `- note: closure captures 'self' which is accessible to code in the current task
19 | if byte == ASCII.lineFeed.rawValue {
20 | // swiftlint:disable:next optional_data_string_conversion
[14/90] Compiling EZNetworking AsyncSequence-ext.swift
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Core/Common/Extensions/AsyncSequence-ext.swift:15:29: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
13 | public var sseLines: AsyncThrowingStream<String, Error> {
14 | AsyncThrowingStream { continuation in
15 | let task = Task {
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
16 | var buffer = Data()
17 | do {
18 | for try await byte in self {
| `- note: closure captures 'self' which is accessible to code in the current task
19 | if byte == ASCII.lineFeed.rawValue {
20 | // swiftlint:disable:next optional_data_string_conversion
[15/90] Compiling EZNetworking Data-ext.swift
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Core/Common/Extensions/AsyncSequence-ext.swift:15:29: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
13 | public var sseLines: AsyncThrowingStream<String, Error> {
14 | AsyncThrowingStream { continuation in
15 | let task = Task {
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
16 | var buffer = Data()
17 | do {
18 | for try await byte in self {
| `- note: closure captures 'self' which is accessible to code in the current task
19 | if byte == ASCII.lineFeed.rawValue {
20 | // swiftlint:disable:next optional_data_string_conversion
[16/90] Compiling EZNetworking String-ext.swift
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Core/Common/Extensions/AsyncSequence-ext.swift:15:29: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
13 | public var sseLines: AsyncThrowingStream<String, Error> {
14 | AsyncThrowingStream { continuation in
15 | let task = Task {
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
16 | var buffer = Data()
17 | do {
18 | for try await byte in self {
| `- note: closure captures 'self' which is accessible to code in the current task
19 | if byte == ASCII.lineFeed.rawValue {
20 | // swiftlint:disable:next optional_data_string_conversion
[17/90] Compiling EZNetworking RetryPolicy.swift
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Core/Common/Extensions/AsyncSequence-ext.swift:15:29: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
13 | public var sseLines: AsyncThrowingStream<String, Error> {
14 | AsyncThrowingStream { continuation in
15 | let task = Task {
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
16 | var buffer = Data()
17 | do {
18 | for try await byte in self {
| `- note: closure captures 'self' which is accessible to code in the current task
19 | if byte == ASCII.lineFeed.rawValue {
20 | // swiftlint:disable:next optional_data_string_conversion
[18/90] Compiling EZNetworking HTTPResponse.swift
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Core/Common/Extensions/AsyncSequence-ext.swift:15:29: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
13 | public var sseLines: AsyncThrowingStream<String, Error> {
14 | AsyncThrowingStream { continuation in
15 | let task = Task {
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
16 | var buffer = Data()
17 | do {
18 | for try await byte in self {
| `- note: closure captures 'self' which is accessible to code in the current task
19 | if byte == ASCII.lineFeed.rawValue {
20 | // swiftlint:disable:next optional_data_string_conversion
[19/90] Compiling EZNetworking HTTPClientErrorStatus.swift
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Core/Common/Extensions/AsyncSequence-ext.swift:15:29: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
13 | public var sseLines: AsyncThrowingStream<String, Error> {
14 | AsyncThrowingStream { continuation in
15 | let task = Task {
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
16 | var buffer = Data()
17 | do {
18 | for try await byte in self {
| `- note: closure captures 'self' which is accessible to code in the current task
19 | if byte == ASCII.lineFeed.rawValue {
20 | // swiftlint:disable:next optional_data_string_conversion
[20/90] Compiling EZNetworking HTTPInformationalStatus.swift
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Core/Common/Extensions/AsyncSequence-ext.swift:15:29: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
13 | public var sseLines: AsyncThrowingStream<String, Error> {
14 | AsyncThrowingStream { continuation in
15 | let task = Task {
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
16 | var buffer = Data()
17 | do {
18 | for try await byte in self {
| `- note: closure captures 'self' which is accessible to code in the current task
19 | if byte == ASCII.lineFeed.rawValue {
20 | // swiftlint:disable:next optional_data_string_conversion
[21/90] Compiling EZNetworking CacheInterceptor.swift
[22/90] Compiling EZNetworking DataTaskInterceptor.swift
[23/90] Compiling EZNetworking DownloadTaskInterceptor.swift
[24/90] Compiling EZNetworking MetricsInterceptor.swift
[25/90] Compiling EZNetworking RedirectInterceptor.swift
[26/90] Compiling EZNetworking StreamTaskInterceptor.swift
[27/90] Compiling EZNetworking TaskLifecycleInterceptor.swift
[28/90] Compiling EZNetworking UploadTaskInterceptor.swift
[29/90] Compiling EZNetworking WebSocketTaskInterceptor.swift
[30/90] Compiling EZNetworking RequestPerformable.swift
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Services/ServerSentEvent/ServerSentEventManager.swift:133:72: warning: sending value of non-Sendable type 'any URLSessionProtocol' risks causing data races; this is an error in the Swift 6 language mode
131 | sseRequest.setLastEventId(lastEventId)
132 | let request = try sseRequest.getURLRequest()
133 | let (bytesStream, response) = try await session.urlSession.bytes(for: request)
| |- warning: sending value of non-Sendable type 'any URLSessionProtocol' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated value of non-Sendable type 'any URLSessionProtocol' to nonisolated instance method 'bytes(for:)' risks causing races in between 'self'-isolated and nonisolated uses
134 |
135 | try responseValidator.validateStatus(from: response)
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Services/Uploader/DataUploader/DataUploader.swift:17:28: warning: sending 'request' risks causing data races; this is an error in the Swift 6 language mode
15 | let dataSaver = DefaultDataToTempFileSaver()
16 | let tempFileURL = try dataSaver.saveToTempFile(data)
17 | let fileUploader = FileUploader(
| |- warning: sending 'request' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'request' to actor-isolated callee risks causing data races between actor-isolated and task-isolated uses
18 | fileURL: tempFileURL,
19 | request: request,
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Services/Uploader/DataUploader/DataUploader.swift:17:28: warning: sending 'session' risks causing data races; this is an error in the Swift 6 language mode
15 | let dataSaver = DefaultDataToTempFileSaver()
16 | let tempFileURL = try dataSaver.saveToTempFile(data)
17 | let fileUploader = FileUploader(
| |- warning: sending 'session' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'session' to actor-isolated callee risks causing data races between actor-isolated and task-isolated uses
18 | fileURL: tempFileURL,
19 | request: request,
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Services/Uploader/DataUploader/DataUploader.swift:17:28: warning: sending 'validator' risks causing data races; this is an error in the Swift 6 language mode
15 | let dataSaver = DefaultDataToTempFileSaver()
16 | let tempFileURL = try dataSaver.saveToTempFile(data)
17 | let fileUploader = FileUploader(
| |- warning: sending 'validator' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'validator' to actor-isolated callee risks causing data races between actor-isolated and task-isolated uses
18 | fileURL: tempFileURL,
19 | request: request,
[31/90] Compiling EZNetworking RequestPerformer.swift
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Services/ServerSentEvent/ServerSentEventManager.swift:133:72: warning: sending value of non-Sendable type 'any URLSessionProtocol' risks causing data races; this is an error in the Swift 6 language mode
131 | sseRequest.setLastEventId(lastEventId)
132 | let request = try sseRequest.getURLRequest()
133 | let (bytesStream, response) = try await session.urlSession.bytes(for: request)
| |- warning: sending value of non-Sendable type 'any URLSessionProtocol' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated value of non-Sendable type 'any URLSessionProtocol' to nonisolated instance method 'bytes(for:)' risks causing races in between 'self'-isolated and nonisolated uses
134 |
135 | try responseValidator.validateStatus(from: response)
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Services/Uploader/DataUploader/DataUploader.swift:17:28: warning: sending 'request' risks causing data races; this is an error in the Swift 6 language mode
15 | let dataSaver = DefaultDataToTempFileSaver()
16 | let tempFileURL = try dataSaver.saveToTempFile(data)
17 | let fileUploader = FileUploader(
| |- warning: sending 'request' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'request' to actor-isolated callee risks causing data races between actor-isolated and task-isolated uses
18 | fileURL: tempFileURL,
19 | request: request,
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Services/Uploader/DataUploader/DataUploader.swift:17:28: warning: sending 'session' risks causing data races; this is an error in the Swift 6 language mode
15 | let dataSaver = DefaultDataToTempFileSaver()
16 | let tempFileURL = try dataSaver.saveToTempFile(data)
17 | let fileUploader = FileUploader(
| |- warning: sending 'session' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'session' to actor-isolated callee risks causing data races between actor-isolated and task-isolated uses
18 | fileURL: tempFileURL,
19 | request: request,
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Services/Uploader/DataUploader/DataUploader.swift:17:28: warning: sending 'validator' risks causing data races; this is an error in the Swift 6 language mode
15 | let dataSaver = DefaultDataToTempFileSaver()
16 | let tempFileURL = try dataSaver.saveToTempFile(data)
17 | let fileUploader = FileUploader(
| |- warning: sending 'validator' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'validator' to actor-isolated callee risks causing data races between actor-isolated and task-isolated uses
18 | fileURL: tempFileURL,
19 | request: request,
[32/90] Compiling EZNetworking SSEConnectionState.swift
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Services/ServerSentEvent/ServerSentEventManager.swift:133:72: warning: sending value of non-Sendable type 'any URLSessionProtocol' risks causing data races; this is an error in the Swift 6 language mode
131 | sseRequest.setLastEventId(lastEventId)
132 | let request = try sseRequest.getURLRequest()
133 | let (bytesStream, response) = try await session.urlSession.bytes(for: request)
| |- warning: sending value of non-Sendable type 'any URLSessionProtocol' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated value of non-Sendable type 'any URLSessionProtocol' to nonisolated instance method 'bytes(for:)' risks causing races in between 'self'-isolated and nonisolated uses
134 |
135 | try responseValidator.validateStatus(from: response)
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Services/Uploader/DataUploader/DataUploader.swift:17:28: warning: sending 'request' risks causing data races; this is an error in the Swift 6 language mode
15 | let dataSaver = DefaultDataToTempFileSaver()
16 | let tempFileURL = try dataSaver.saveToTempFile(data)
17 | let fileUploader = FileUploader(
| |- warning: sending 'request' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'request' to actor-isolated callee risks causing data races between actor-isolated and task-isolated uses
18 | fileURL: tempFileURL,
19 | request: request,
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Services/Uploader/DataUploader/DataUploader.swift:17:28: warning: sending 'session' risks causing data races; this is an error in the Swift 6 language mode
15 | let dataSaver = DefaultDataToTempFileSaver()
16 | let tempFileURL = try dataSaver.saveToTempFile(data)
17 | let fileUploader = FileUploader(
| |- warning: sending 'session' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'session' to actor-isolated callee risks causing data races between actor-isolated and task-isolated uses
18 | fileURL: tempFileURL,
19 | request: request,
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Services/Uploader/DataUploader/DataUploader.swift:17:28: warning: sending 'validator' risks causing data races; this is an error in the Swift 6 language mode
15 | let dataSaver = DefaultDataToTempFileSaver()
16 | let tempFileURL = try dataSaver.saveToTempFile(data)
17 | let fileUploader = FileUploader(
| |- warning: sending 'validator' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'validator' to actor-isolated callee risks causing data races between actor-isolated and task-isolated uses
18 | fileURL: tempFileURL,
19 | request: request,
[33/90] Compiling EZNetworking SSEParser.swift
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Services/ServerSentEvent/ServerSentEventManager.swift:133:72: warning: sending value of non-Sendable type 'any URLSessionProtocol' risks causing data races; this is an error in the Swift 6 language mode
131 | sseRequest.setLastEventId(lastEventId)
132 | let request = try sseRequest.getURLRequest()
133 | let (bytesStream, response) = try await session.urlSession.bytes(for: request)
| |- warning: sending value of non-Sendable type 'any URLSessionProtocol' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated value of non-Sendable type 'any URLSessionProtocol' to nonisolated instance method 'bytes(for:)' risks causing races in between 'self'-isolated and nonisolated uses
134 |
135 | try responseValidator.validateStatus(from: response)
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Services/Uploader/DataUploader/DataUploader.swift:17:28: warning: sending 'request' risks causing data races; this is an error in the Swift 6 language mode
15 | let dataSaver = DefaultDataToTempFileSaver()
16 | let tempFileURL = try dataSaver.saveToTempFile(data)
17 | let fileUploader = FileUploader(
| |- warning: sending 'request' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'request' to actor-isolated callee risks causing data races between actor-isolated and task-isolated uses
18 | fileURL: tempFileURL,
19 | request: request,
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Services/Uploader/DataUploader/DataUploader.swift:17:28: warning: sending 'session' risks causing data races; this is an error in the Swift 6 language mode
15 | let dataSaver = DefaultDataToTempFileSaver()
16 | let tempFileURL = try dataSaver.saveToTempFile(data)
17 | let fileUploader = FileUploader(
| |- warning: sending 'session' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'session' to actor-isolated callee risks causing data races between actor-isolated and task-isolated uses
18 | fileURL: tempFileURL,
19 | request: request,
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Services/Uploader/DataUploader/DataUploader.swift:17:28: warning: sending 'validator' risks causing data races; this is an error in the Swift 6 language mode
15 | let dataSaver = DefaultDataToTempFileSaver()
16 | let tempFileURL = try dataSaver.saveToTempFile(data)
17 | let fileUploader = FileUploader(
| |- warning: sending 'validator' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'validator' to actor-isolated callee risks causing data races between actor-isolated and task-isolated uses
18 | fileURL: tempFileURL,
19 | request: request,
[34/90] Compiling EZNetworking ServerSentEvent.swift
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Services/ServerSentEvent/ServerSentEventManager.swift:133:72: warning: sending value of non-Sendable type 'any URLSessionProtocol' risks causing data races; this is an error in the Swift 6 language mode
131 | sseRequest.setLastEventId(lastEventId)
132 | let request = try sseRequest.getURLRequest()
133 | let (bytesStream, response) = try await session.urlSession.bytes(for: request)
| |- warning: sending value of non-Sendable type 'any URLSessionProtocol' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated value of non-Sendable type 'any URLSessionProtocol' to nonisolated instance method 'bytes(for:)' risks causing races in between 'self'-isolated and nonisolated uses
134 |
135 | try responseValidator.validateStatus(from: response)
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Services/Uploader/DataUploader/DataUploader.swift:17:28: warning: sending 'request' risks causing data races; this is an error in the Swift 6 language mode
15 | let dataSaver = DefaultDataToTempFileSaver()
16 | let tempFileURL = try dataSaver.saveToTempFile(data)
17 | let fileUploader = FileUploader(
| |- warning: sending 'request' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'request' to actor-isolated callee risks causing data races between actor-isolated and task-isolated uses
18 | fileURL: tempFileURL,
19 | request: request,
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Services/Uploader/DataUploader/DataUploader.swift:17:28: warning: sending 'session' risks causing data races; this is an error in the Swift 6 language mode
15 | let dataSaver = DefaultDataToTempFileSaver()
16 | let tempFileURL = try dataSaver.saveToTempFile(data)
17 | let fileUploader = FileUploader(
| |- warning: sending 'session' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'session' to actor-isolated callee risks causing data races between actor-isolated and task-isolated uses
18 | fileURL: tempFileURL,
19 | request: request,
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Services/Uploader/DataUploader/DataUploader.swift:17:28: warning: sending 'validator' risks causing data races; this is an error in the Swift 6 language mode
15 | let dataSaver = DefaultDataToTempFileSaver()
16 | let tempFileURL = try dataSaver.saveToTempFile(data)
17 | let fileUploader = FileUploader(
| |- warning: sending 'validator' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'validator' to actor-isolated callee risks causing data races between actor-isolated and task-isolated uses
18 | fileURL: tempFileURL,
19 | request: request,
[35/90] Compiling EZNetworking ServerSentEventClient.swift
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Services/ServerSentEvent/ServerSentEventManager.swift:133:72: warning: sending value of non-Sendable type 'any URLSessionProtocol' risks causing data races; this is an error in the Swift 6 language mode
131 | sseRequest.setLastEventId(lastEventId)
132 | let request = try sseRequest.getURLRequest()
133 | let (bytesStream, response) = try await session.urlSession.bytes(for: request)
| |- warning: sending value of non-Sendable type 'any URLSessionProtocol' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated value of non-Sendable type 'any URLSessionProtocol' to nonisolated instance method 'bytes(for:)' risks causing races in between 'self'-isolated and nonisolated uses
134 |
135 | try responseValidator.validateStatus(from: response)
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Services/Uploader/DataUploader/DataUploader.swift:17:28: warning: sending 'request' risks causing data races; this is an error in the Swift 6 language mode
15 | let dataSaver = DefaultDataToTempFileSaver()
16 | let tempFileURL = try dataSaver.saveToTempFile(data)
17 | let fileUploader = FileUploader(
| |- warning: sending 'request' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'request' to actor-isolated callee risks causing data races between actor-isolated and task-isolated uses
18 | fileURL: tempFileURL,
19 | request: request,
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Services/Uploader/DataUploader/DataUploader.swift:17:28: warning: sending 'session' risks causing data races; this is an error in the Swift 6 language mode
15 | let dataSaver = DefaultDataToTempFileSaver()
16 | let tempFileURL = try dataSaver.saveToTempFile(data)
17 | let fileUploader = FileUploader(
| |- warning: sending 'session' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'session' to actor-isolated callee risks causing data races between actor-isolated and task-isolated uses
18 | fileURL: tempFileURL,
19 | request: request,
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Services/Uploader/DataUploader/DataUploader.swift:17:28: warning: sending 'validator' risks causing data races; this is an error in the Swift 6 language mode
15 | let dataSaver = DefaultDataToTempFileSaver()
16 | let tempFileURL = try dataSaver.saveToTempFile(data)
17 | let fileUploader = FileUploader(
| |- warning: sending 'validator' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'validator' to actor-isolated callee risks causing data races between actor-isolated and task-isolated uses
18 | fileURL: tempFileURL,
19 | request: request,
[36/90] Compiling EZNetworking ServerSentEventManager.swift
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Services/ServerSentEvent/ServerSentEventManager.swift:133:72: warning: sending value of non-Sendable type 'any URLSessionProtocol' risks causing data races; this is an error in the Swift 6 language mode
131 | sseRequest.setLastEventId(lastEventId)
132 | let request = try sseRequest.getURLRequest()
133 | let (bytesStream, response) = try await session.urlSession.bytes(for: request)
| |- warning: sending value of non-Sendable type 'any URLSessionProtocol' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated value of non-Sendable type 'any URLSessionProtocol' to nonisolated instance method 'bytes(for:)' risks causing races in between 'self'-isolated and nonisolated uses
134 |
135 | try responseValidator.validateStatus(from: response)
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Services/Uploader/DataUploader/DataUploader.swift:17:28: warning: sending 'request' risks causing data races; this is an error in the Swift 6 language mode
15 | let dataSaver = DefaultDataToTempFileSaver()
16 | let tempFileURL = try dataSaver.saveToTempFile(data)
17 | let fileUploader = FileUploader(
| |- warning: sending 'request' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'request' to actor-isolated callee risks causing data races between actor-isolated and task-isolated uses
18 | fileURL: tempFileURL,
19 | request: request,
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Services/Uploader/DataUploader/DataUploader.swift:17:28: warning: sending 'session' risks causing data races; this is an error in the Swift 6 language mode
15 | let dataSaver = DefaultDataToTempFileSaver()
16 | let tempFileURL = try dataSaver.saveToTempFile(data)
17 | let fileUploader = FileUploader(
| |- warning: sending 'session' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'session' to actor-isolated callee risks causing data races between actor-isolated and task-isolated uses
18 | fileURL: tempFileURL,
19 | request: request,
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Services/Uploader/DataUploader/DataUploader.swift:17:28: warning: sending 'validator' risks causing data races; this is an error in the Swift 6 language mode
15 | let dataSaver = DefaultDataToTempFileSaver()
16 | let tempFileURL = try dataSaver.saveToTempFile(data)
17 | let fileUploader = FileUploader(
| |- warning: sending 'validator' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'validator' to actor-isolated callee risks causing data races between actor-isolated and task-isolated uses
18 | fileURL: tempFileURL,
19 | request: request,
[37/90] Compiling EZNetworking DataUploader.swift
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Services/ServerSentEvent/ServerSentEventManager.swift:133:72: warning: sending value of non-Sendable type 'any URLSessionProtocol' risks causing data races; this is an error in the Swift 6 language mode
131 | sseRequest.setLastEventId(lastEventId)
132 | let request = try sseRequest.getURLRequest()
133 | let (bytesStream, response) = try await session.urlSession.bytes(for: request)
| |- warning: sending value of non-Sendable type 'any URLSessionProtocol' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated value of non-Sendable type 'any URLSessionProtocol' to nonisolated instance method 'bytes(for:)' risks causing races in between 'self'-isolated and nonisolated uses
134 |
135 | try responseValidator.validateStatus(from: response)
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Services/Uploader/DataUploader/DataUploader.swift:17:28: warning: sending 'request' risks causing data races; this is an error in the Swift 6 language mode
15 | let dataSaver = DefaultDataToTempFileSaver()
16 | let tempFileURL = try dataSaver.saveToTempFile(data)
17 | let fileUploader = FileUploader(
| |- warning: sending 'request' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'request' to actor-isolated callee risks causing data races between actor-isolated and task-isolated uses
18 | fileURL: tempFileURL,
19 | request: request,
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Services/Uploader/DataUploader/DataUploader.swift:17:28: warning: sending 'session' risks causing data races; this is an error in the Swift 6 language mode
15 | let dataSaver = DefaultDataToTempFileSaver()
16 | let tempFileURL = try dataSaver.saveToTempFile(data)
17 | let fileUploader = FileUploader(
| |- warning: sending 'session' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'session' to actor-isolated callee risks causing data races between actor-isolated and task-isolated uses
18 | fileURL: tempFileURL,
19 | request: request,
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Services/Uploader/DataUploader/DataUploader.swift:17:28: warning: sending 'validator' risks causing data races; this is an error in the Swift 6 language mode
15 | let dataSaver = DefaultDataToTempFileSaver()
16 | let tempFileURL = try dataSaver.saveToTempFile(data)
17 | let fileUploader = FileUploader(
| |- warning: sending 'validator' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'validator' to actor-isolated callee risks causing data races between actor-isolated and task-isolated uses
18 | fileURL: tempFileURL,
19 | request: request,
[38/90] Compiling EZNetworking DownloadRequest.swift
[39/90] Compiling EZNetworking EZRequest.swift
[40/90] Compiling EZNetworking SSERequest.swift
[41/90] Compiling EZNetworking UploadRequest.swift
[42/90] Compiling EZNetworking WebSocketRequest.swift
[43/90] Compiling EZNetworking DefaultDownloadTaskInterceptor.swift
[44/90] Compiling EZNetworking DefaultUploadTaskInterceptor.swift
[45/90] Compiling EZNetworking DefaultWebSocketTaskInterceptor.swift
[46/90] Compiling EZNetworking AuthenticationInterceptor.swift
[47/90] Compiling EZNetworking URLBuildFailureReason.swift
[48/90] Compiling EZNetworking UploadFailureReason.swift
[49/90] Compiling EZNetworking WebSocketFailureReason.swift
[50/90] Compiling EZNetworking NetworkingError.swift
[51/90] Compiling EZNetworking HTTPBody.swift
[52/90] Compiling EZNetworking MultipartFormData.swift
[53/90] Compiling EZNetworking MultipartFormPart.swift
[54/90] Compiling EZNetworking AuthorizationType.swift
[55/90] Compiling EZNetworking HTTPHeader.swift
[56/90] Compiling EZNetworking Session.swift
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Core/Session/SessionDelegate+Extensions/SessionDelegate+URLSessionDelegate.swift:3:1: warning: conformance to 'Sendable' must occur in the same source file as class 'SessionDelegate'; use '@unchecked Sendable' for retroactive conformance; this is an error in the Swift 6 language mode
1 | import Foundation
2 |
3 | extension SessionDelegate: URLSessionDelegate {
| `- warning: conformance to 'Sendable' must occur in the same source file as class 'SessionDelegate'; use '@unchecked Sendable' for retroactive conformance; this is an error in the Swift 6 language mode
4 | public func urlSession(
5 | _ session: URLSession,
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Core/Session/SessionDelegate.swift:3:14: warning: non-final class 'SessionDelegate' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
1 | import Foundation
2 |
3 | public class SessionDelegate: NSObject {
| `- warning: non-final class 'SessionDelegate' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
4 | public weak var cacheInterceptor: CacheInterceptor?
5 | public weak var authenticationInterceptor: AuthenticationInterceptor?
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Core/Session/SessionDelegate.swift:4:21: warning: stored property 'cacheInterceptor' of 'Sendable'-conforming class 'SessionDelegate' is mutable; this is an error in the Swift 6 language mode
2 |
3 | public class SessionDelegate: NSObject {
4 | public weak var cacheInterceptor: CacheInterceptor?
| `- warning: stored property 'cacheInterceptor' of 'Sendable'-conforming class 'SessionDelegate' is mutable; this is an error in the Swift 6 language mode
5 | public weak var authenticationInterceptor: AuthenticationInterceptor?
6 | public weak var redirectInterceptor: RedirectInterceptor?
[57/90] Compiling EZNetworking SessionDelegate+URLSessionDataDelegate.swift
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Core/Session/SessionDelegate+Extensions/SessionDelegate+URLSessionDelegate.swift:3:1: warning: conformance to 'Sendable' must occur in the same source file as class 'SessionDelegate'; use '@unchecked Sendable' for retroactive conformance; this is an error in the Swift 6 language mode
1 | import Foundation
2 |
3 | extension SessionDelegate: URLSessionDelegate {
| `- warning: conformance to 'Sendable' must occur in the same source file as class 'SessionDelegate'; use '@unchecked Sendable' for retroactive conformance; this is an error in the Swift 6 language mode
4 | public func urlSession(
5 | _ session: URLSession,
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Core/Session/SessionDelegate.swift:3:14: warning: non-final class 'SessionDelegate' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
1 | import Foundation
2 |
3 | public class SessionDelegate: NSObject {
| `- warning: non-final class 'SessionDelegate' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
4 | public weak var cacheInterceptor: CacheInterceptor?
5 | public weak var authenticationInterceptor: AuthenticationInterceptor?
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Core/Session/SessionDelegate.swift:4:21: warning: stored property 'cacheInterceptor' of 'Sendable'-conforming class 'SessionDelegate' is mutable; this is an error in the Swift 6 language mode
2 |
3 | public class SessionDelegate: NSObject {
4 | public weak var cacheInterceptor: CacheInterceptor?
| `- warning: stored property 'cacheInterceptor' of 'Sendable'-conforming class 'SessionDelegate' is mutable; this is an error in the Swift 6 language mode
5 | public weak var authenticationInterceptor: AuthenticationInterceptor?
6 | public weak var redirectInterceptor: RedirectInterceptor?
[58/90] Compiling EZNetworking SessionDelegate+URLSessionDelegate.swift
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Core/Session/SessionDelegate+Extensions/SessionDelegate+URLSessionDelegate.swift:3:1: warning: conformance to 'Sendable' must occur in the same source file as class 'SessionDelegate'; use '@unchecked Sendable' for retroactive conformance; this is an error in the Swift 6 language mode
1 | import Foundation
2 |
3 | extension SessionDelegate: URLSessionDelegate {
| `- warning: conformance to 'Sendable' must occur in the same source file as class 'SessionDelegate'; use '@unchecked Sendable' for retroactive conformance; this is an error in the Swift 6 language mode
4 | public func urlSession(
5 | _ session: URLSession,
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Core/Session/SessionDelegate.swift:3:14: warning: non-final class 'SessionDelegate' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
1 | import Foundation
2 |
3 | public class SessionDelegate: NSObject {
| `- warning: non-final class 'SessionDelegate' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
4 | public weak var cacheInterceptor: CacheInterceptor?
5 | public weak var authenticationInterceptor: AuthenticationInterceptor?
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Core/Session/SessionDelegate.swift:4:21: warning: stored property 'cacheInterceptor' of 'Sendable'-conforming class 'SessionDelegate' is mutable; this is an error in the Swift 6 language mode
2 |
3 | public class SessionDelegate: NSObject {
4 | public weak var cacheInterceptor: CacheInterceptor?
| `- warning: stored property 'cacheInterceptor' of 'Sendable'-conforming class 'SessionDelegate' is mutable; this is an error in the Swift 6 language mode
5 | public weak var authenticationInterceptor: AuthenticationInterceptor?
6 | public weak var redirectInterceptor: RedirectInterceptor?
[59/90] Compiling EZNetworking SessionDelegate+URLSessionDownloadDelegate.swift
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Core/Session/SessionDelegate+Extensions/SessionDelegate+URLSessionDelegate.swift:3:1: warning: conformance to 'Sendable' must occur in the same source file as class 'SessionDelegate'; use '@unchecked Sendable' for retroactive conformance; this is an error in the Swift 6 language mode
1 | import Foundation
2 |
3 | extension SessionDelegate: URLSessionDelegate {
| `- warning: conformance to 'Sendable' must occur in the same source file as class 'SessionDelegate'; use '@unchecked Sendable' for retroactive conformance; this is an error in the Swift 6 language mode
4 | public func urlSession(
5 | _ session: URLSession,
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Core/Session/SessionDelegate.swift:3:14: warning: non-final class 'SessionDelegate' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
1 | import Foundation
2 |
3 | public class SessionDelegate: NSObject {
| `- warning: non-final class 'SessionDelegate' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
4 | public weak var cacheInterceptor: CacheInterceptor?
5 | public weak var authenticationInterceptor: AuthenticationInterceptor?
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Core/Session/SessionDelegate.swift:4:21: warning: stored property 'cacheInterceptor' of 'Sendable'-conforming class 'SessionDelegate' is mutable; this is an error in the Swift 6 language mode
2 |
3 | public class SessionDelegate: NSObject {
4 | public weak var cacheInterceptor: CacheInterceptor?
| `- warning: stored property 'cacheInterceptor' of 'Sendable'-conforming class 'SessionDelegate' is mutable; this is an error in the Swift 6 language mode
5 | public weak var authenticationInterceptor: AuthenticationInterceptor?
6 | public weak var redirectInterceptor: RedirectInterceptor?
[60/90] Compiling EZNetworking SessionDelegate+URLSessionStreamDelegate.swift
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Core/Session/SessionDelegate+Extensions/SessionDelegate+URLSessionDelegate.swift:3:1: warning: conformance to 'Sendable' must occur in the same source file as class 'SessionDelegate'; use '@unchecked Sendable' for retroactive conformance; this is an error in the Swift 6 language mode
1 | import Foundation
2 |
3 | extension SessionDelegate: URLSessionDelegate {
| `- warning: conformance to 'Sendable' must occur in the same source file as class 'SessionDelegate'; use '@unchecked Sendable' for retroactive conformance; this is an error in the Swift 6 language mode
4 | public func urlSession(
5 | _ session: URLSession,
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Core/Session/SessionDelegate.swift:3:14: warning: non-final class 'SessionDelegate' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
1 | import Foundation
2 |
3 | public class SessionDelegate: NSObject {
| `- warning: non-final class 'SessionDelegate' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
4 | public weak var cacheInterceptor: CacheInterceptor?
5 | public weak var authenticationInterceptor: AuthenticationInterceptor?
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Core/Session/SessionDelegate.swift:4:21: warning: stored property 'cacheInterceptor' of 'Sendable'-conforming class 'SessionDelegate' is mutable; this is an error in the Swift 6 language mode
2 |
3 | public class SessionDelegate: NSObject {
4 | public weak var cacheInterceptor: CacheInterceptor?
| `- warning: stored property 'cacheInterceptor' of 'Sendable'-conforming class 'SessionDelegate' is mutable; this is an error in the Swift 6 language mode
5 | public weak var authenticationInterceptor: AuthenticationInterceptor?
6 | public weak var redirectInterceptor: RedirectInterceptor?
[61/90] Compiling EZNetworking SessionDelegate+URLSessionTaskDelegate.swift
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Core/Session/SessionDelegate+Extensions/SessionDelegate+URLSessionDelegate.swift:3:1: warning: conformance to 'Sendable' must occur in the same source file as class 'SessionDelegate'; use '@unchecked Sendable' for retroactive conformance; this is an error in the Swift 6 language mode
1 | import Foundation
2 |
3 | extension SessionDelegate: URLSessionDelegate {
| `- warning: conformance to 'Sendable' must occur in the same source file as class 'SessionDelegate'; use '@unchecked Sendable' for retroactive conformance; this is an error in the Swift 6 language mode
4 | public func urlSession(
5 | _ session: URLSession,
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Core/Session/SessionDelegate.swift:3:14: warning: non-final class 'SessionDelegate' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
1 | import Foundation
2 |
3 | public class SessionDelegate: NSObject {
| `- warning: non-final class 'SessionDelegate' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
4 | public weak var cacheInterceptor: CacheInterceptor?
5 | public weak var authenticationInterceptor: AuthenticationInterceptor?
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Core/Session/SessionDelegate.swift:4:21: warning: stored property 'cacheInterceptor' of 'Sendable'-conforming class 'SessionDelegate' is mutable; this is an error in the Swift 6 language mode
2 |
3 | public class SessionDelegate: NSObject {
4 | public weak var cacheInterceptor: CacheInterceptor?
| `- warning: stored property 'cacheInterceptor' of 'Sendable'-conforming class 'SessionDelegate' is mutable; this is an error in the Swift 6 language mode
5 | public weak var authenticationInterceptor: AuthenticationInterceptor?
6 | public weak var redirectInterceptor: RedirectInterceptor?
[62/90] Compiling EZNetworking SessionDelegate+URLSessionWebSocketDelegate.swift
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Core/Session/SessionDelegate+Extensions/SessionDelegate+URLSessionDelegate.swift:3:1: warning: conformance to 'Sendable' must occur in the same source file as class 'SessionDelegate'; use '@unchecked Sendable' for retroactive conformance; this is an error in the Swift 6 language mode
1 | import Foundation
2 |
3 | extension SessionDelegate: URLSessionDelegate {
| `- warning: conformance to 'Sendable' must occur in the same source file as class 'SessionDelegate'; use '@unchecked Sendable' for retroactive conformance; this is an error in the Swift 6 language mode
4 | public func urlSession(
5 | _ session: URLSession,
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Core/Session/SessionDelegate.swift:3:14: warning: non-final class 'SessionDelegate' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
1 | import Foundation
2 |
3 | public class SessionDelegate: NSObject {
| `- warning: non-final class 'SessionDelegate' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
4 | public weak var cacheInterceptor: CacheInterceptor?
5 | public weak var authenticationInterceptor: AuthenticationInterceptor?
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Core/Session/SessionDelegate.swift:4:21: warning: stored property 'cacheInterceptor' of 'Sendable'-conforming class 'SessionDelegate' is mutable; this is an error in the Swift 6 language mode
2 |
3 | public class SessionDelegate: NSObject {
4 | public weak var cacheInterceptor: CacheInterceptor?
| `- warning: stored property 'cacheInterceptor' of 'Sendable'-conforming class 'SessionDelegate' is mutable; this is an error in the Swift 6 language mode
5 | public weak var authenticationInterceptor: AuthenticationInterceptor?
6 | public weak var redirectInterceptor: RedirectInterceptor?
[63/90] Compiling EZNetworking SessionDelegate.swift
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Core/Session/SessionDelegate+Extensions/SessionDelegate+URLSessionDelegate.swift:3:1: warning: conformance to 'Sendable' must occur in the same source file as class 'SessionDelegate'; use '@unchecked Sendable' for retroactive conformance; this is an error in the Swift 6 language mode
1 | import Foundation
2 |
3 | extension SessionDelegate: URLSessionDelegate {
| `- warning: conformance to 'Sendable' must occur in the same source file as class 'SessionDelegate'; use '@unchecked Sendable' for retroactive conformance; this is an error in the Swift 6 language mode
4 | public func urlSession(
5 | _ session: URLSession,
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Core/Session/SessionDelegate.swift:3:14: warning: non-final class 'SessionDelegate' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
1 | import Foundation
2 |
3 | public class SessionDelegate: NSObject {
| `- warning: non-final class 'SessionDelegate' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
4 | public weak var cacheInterceptor: CacheInterceptor?
5 | public weak var authenticationInterceptor: AuthenticationInterceptor?
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Core/Session/SessionDelegate.swift:4:21: warning: stored property 'cacheInterceptor' of 'Sendable'-conforming class 'SessionDelegate' is mutable; this is an error in the Swift 6 language mode
2 |
3 | public class SessionDelegate: NSObject {
4 | public weak var cacheInterceptor: CacheInterceptor?
| `- warning: stored property 'cacheInterceptor' of 'Sendable'-conforming class 'SessionDelegate' is mutable; this is an error in the Swift 6 language mode
5 | public weak var authenticationInterceptor: AuthenticationInterceptor?
6 | public weak var redirectInterceptor: RedirectInterceptor?
[64/90] Compiling EZNetworking URLSessionDownloadTaskProtocol.swift
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Core/Session/SessionDelegate+Extensions/SessionDelegate+URLSessionDelegate.swift:3:1: warning: conformance to 'Sendable' must occur in the same source file as class 'SessionDelegate'; use '@unchecked Sendable' for retroactive conformance; this is an error in the Swift 6 language mode
1 | import Foundation
2 |
3 | extension SessionDelegate: URLSessionDelegate {
| `- warning: conformance to 'Sendable' must occur in the same source file as class 'SessionDelegate'; use '@unchecked Sendable' for retroactive conformance; this is an error in the Swift 6 language mode
4 | public func urlSession(
5 | _ session: URLSession,
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Core/Session/SessionDelegate.swift:3:14: warning: non-final class 'SessionDelegate' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
1 | import Foundation
2 |
3 | public class SessionDelegate: NSObject {
| `- warning: non-final class 'SessionDelegate' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
4 | public weak var cacheInterceptor: CacheInterceptor?
5 | public weak var authenticationInterceptor: AuthenticationInterceptor?
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Core/Session/SessionDelegate.swift:4:21: warning: stored property 'cacheInterceptor' of 'Sendable'-conforming class 'SessionDelegate' is mutable; this is an error in the Swift 6 language mode
2 |
3 | public class SessionDelegate: NSObject {
4 | public weak var cacheInterceptor: CacheInterceptor?
| `- warning: stored property 'cacheInterceptor' of 'Sendable'-conforming class 'SessionDelegate' is mutable; this is an error in the Swift 6 language mode
5 | public weak var authenticationInterceptor: AuthenticationInterceptor?
6 | public weak var redirectInterceptor: RedirectInterceptor?
[65/90] Compiling EZNetworking URLSessionProtocol.swift
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Services/Downloader/FileDownloader.swift:12:13: warning: 'nonisolated' can not be applied to variable with non-'Sendable' type 'DefaultDownloadTaskInterceptor'; this is an error in the Swift 6 language mode
10 |
11 | /// Strong reference since SessionDelegate.downloadTaskInterceptor is weak
12 | private nonisolated let fallbackDownloadTaskInterceptor: DefaultDownloadTaskInterceptor
| `- warning: 'nonisolated' can not be applied to variable with non-'Sendable' type 'DefaultDownloadTaskInterceptor'; this is an error in the Swift 6 language mode
13 |
14 | // MARK: init
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Core/Session/Interceptors/DefaultInterceptors/DefaultDownloadTaskInterceptor.swift:4:7: note: class 'DefaultDownloadTaskInterceptor' does not conform to the 'Sendable' protocol
2 |
3 | /// Default implementation of DownloadTaskInterceptor
4 | class DefaultDownloadTaskInterceptor: DownloadTaskInterceptor {
| `- note: class 'DefaultDownloadTaskInterceptor' does not conform to the 'Sendable' protocol
5 | var onEvent: (DownloadTaskInterceptorEvent) -> Void
6 | private let validator: ResponseValidator
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Services/Downloader/FileDownloader.swift:175:56: warning: non-sendable type 'DefaultDownloadTaskInterceptor' of property 'fallbackDownloadTaskInterceptor' cannot exit nonisolated context; this is an error in the Swift 6 language mode
173 | private nonisolated func setupDownloadEventHandler(session: NetworkSession) {
174 | if session.delegate.downloadTaskInterceptor == nil {
175 | session.delegate.downloadTaskInterceptor = fallbackDownloadTaskInterceptor
| `- warning: non-sendable type 'DefaultDownloadTaskInterceptor' of property 'fallbackDownloadTaskInterceptor' cannot exit nonisolated context; this is an error in the Swift 6 language mode
176 | }
177 |
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Core/Session/Interceptors/DefaultInterceptors/DefaultDownloadTaskInterceptor.swift:4:7: note: class 'DefaultDownloadTaskInterceptor' does not conform to the 'Sendable' protocol
2 |
3 | /// Default implementation of DownloadTaskInterceptor
4 | class DefaultDownloadTaskInterceptor: DownloadTaskInterceptor {
| `- note: class 'DefaultDownloadTaskInterceptor' does not conform to the 'Sendable' protocol
5 | var onEvent: (DownloadTaskInterceptorEvent) -> Void
6 | private let validator: ResponseValidator
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Services/Downloader/FileDownloader.swift:180:60: warning: capture of 'event' with non-sendable type 'DownloadTaskInterceptorEvent' in a '@Sendable' closure; this is an error in the Swift 6 language mode
178 | session.delegate.downloadTaskInterceptor?.onEvent = { [weak self] event in
179 | Task { @Sendable [weak self] in
180 | await self?.handleDownloadInterceptorEvent(event)
| `- warning: capture of 'event' with non-sendable type 'DownloadTaskInterceptorEvent' in a '@Sendable' closure; this is an error in the Swift 6 language mode
181 | }
182 | }
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Core/Session/Interceptors/Protocols/DownloadTaskInterceptor.swift:3:13: note: consider making enum 'DownloadTaskInterceptorEvent' conform to the 'Sendable' protocol
1 | import Foundation
2 |
3 | public enum DownloadTaskInterceptorEvent {
| `- note: consider making enum 'DownloadTaskInterceptorEvent' conform to the 'Sendable' protocol
4 | case onProgress(Double)
5 | case onDownloadCompleted(URL)
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Services/Downloader/FileDownloader.swift:44:9: warning: cannot access property 'session' with a non-sendable type 'any NetworkSession' from nonisolated deinit; this is an error in the Swift 6 language mode
42 |
43 | deinit {
44 | session.delegate.downloadTaskInterceptor?.onEvent = { _ in }
| `- warning: cannot access property 'session' with a non-sendable type 'any NetworkSession' from nonisolated deinit; this is an error in the Swift 6 language mode
45 | continuation?.finish()
46 | }
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Core/Session/Session.swift:3:17: note: protocol 'NetworkSession' does not conform to the 'Sendable' protocol
1 | import Foundation
2 |
3 | public protocol NetworkSession {
| `- note: protocol 'NetworkSession' does not conform to the 'Sendable' protocol
4 | var configuration: URLSessionConfiguration { get }
5 | var delegate: SessionDelegate { get }
[66/90] Compiling EZNetworking URLSessionUploadTaskProtocol.swift
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Services/Downloader/FileDownloader.swift:12:13: warning: 'nonisolated' can not be applied to variable with non-'Sendable' type 'DefaultDownloadTaskInterceptor'; this is an error in the Swift 6 language mode
10 |
11 | /// Strong reference since SessionDelegate.downloadTaskInterceptor is weak
12 | private nonisolated let fallbackDownloadTaskInterceptor: DefaultDownloadTaskInterceptor
| `- warning: 'nonisolated' can not be applied to variable with non-'Sendable' type 'DefaultDownloadTaskInterceptor'; this is an error in the Swift 6 language mode
13 |
14 | // MARK: init
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Core/Session/Interceptors/DefaultInterceptors/DefaultDownloadTaskInterceptor.swift:4:7: note: class 'DefaultDownloadTaskInterceptor' does not conform to the 'Sendable' protocol
2 |
3 | /// Default implementation of DownloadTaskInterceptor
4 | class DefaultDownloadTaskInterceptor: DownloadTaskInterceptor {
| `- note: class 'DefaultDownloadTaskInterceptor' does not conform to the 'Sendable' protocol
5 | var onEvent: (DownloadTaskInterceptorEvent) -> Void
6 | private let validator: ResponseValidator
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Services/Downloader/FileDownloader.swift:175:56: warning: non-sendable type 'DefaultDownloadTaskInterceptor' of property 'fallbackDownloadTaskInterceptor' cannot exit nonisolated context; this is an error in the Swift 6 language mode
173 | private nonisolated func setupDownloadEventHandler(session: NetworkSession) {
174 | if session.delegate.downloadTaskInterceptor == nil {
175 | session.delegate.downloadTaskInterceptor = fallbackDownloadTaskInterceptor
| `- warning: non-sendable type 'DefaultDownloadTaskInterceptor' of property 'fallbackDownloadTaskInterceptor' cannot exit nonisolated context; this is an error in the Swift 6 language mode
176 | }
177 |
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Core/Session/Interceptors/DefaultInterceptors/DefaultDownloadTaskInterceptor.swift:4:7: note: class 'DefaultDownloadTaskInterceptor' does not conform to the 'Sendable' protocol
2 |
3 | /// Default implementation of DownloadTaskInterceptor
4 | class DefaultDownloadTaskInterceptor: DownloadTaskInterceptor {
| `- note: class 'DefaultDownloadTaskInterceptor' does not conform to the 'Sendable' protocol
5 | var onEvent: (DownloadTaskInterceptorEvent) -> Void
6 | private let validator: ResponseValidator
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Services/Downloader/FileDownloader.swift:180:60: warning: capture of 'event' with non-sendable type 'DownloadTaskInterceptorEvent' in a '@Sendable' closure; this is an error in the Swift 6 language mode
178 | session.delegate.downloadTaskInterceptor?.onEvent = { [weak self] event in
179 | Task { @Sendable [weak self] in
180 | await self?.handleDownloadInterceptorEvent(event)
| `- warning: capture of 'event' with non-sendable type 'DownloadTaskInterceptorEvent' in a '@Sendable' closure; this is an error in the Swift 6 language mode
181 | }
182 | }
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Core/Session/Interceptors/Protocols/DownloadTaskInterceptor.swift:3:13: note: consider making enum 'DownloadTaskInterceptorEvent' conform to the 'Sendable' protocol
1 | import Foundation
2 |
3 | public enum DownloadTaskInterceptorEvent {
| `- note: consider making enum 'DownloadTaskInterceptorEvent' conform to the 'Sendable' protocol
4 | case onProgress(Double)
5 | case onDownloadCompleted(URL)
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Services/Downloader/FileDownloader.swift:44:9: warning: cannot access property 'session' with a non-sendable type 'any NetworkSession' from nonisolated deinit; this is an error in the Swift 6 language mode
42 |
43 | deinit {
44 | session.delegate.downloadTaskInterceptor?.onEvent = { _ in }
| `- warning: cannot access property 'session' with a non-sendable type 'any NetworkSession' from nonisolated deinit; this is an error in the Swift 6 language mode
45 | continuation?.finish()
46 | }
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Core/Session/Session.swift:3:17: note: protocol 'NetworkSession' does not conform to the 'Sendable' protocol
1 | import Foundation
2 |
3 | public protocol NetworkSession {
| `- note: protocol 'NetworkSession' does not conform to the 'Sendable' protocol
4 | var configuration: URLSessionConfiguration { get }
5 | var delegate: SessionDelegate { get }
[67/90] Compiling EZNetworking URLSessionWebSocketTaskProtocol.swift
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Services/Downloader/FileDownloader.swift:12:13: warning: 'nonisolated' can not be applied to variable with non-'Sendable' type 'DefaultDownloadTaskInterceptor'; this is an error in the Swift 6 language mode
10 |
11 | /// Strong reference since SessionDelegate.downloadTaskInterceptor is weak
12 | private nonisolated let fallbackDownloadTaskInterceptor: DefaultDownloadTaskInterceptor
| `- warning: 'nonisolated' can not be applied to variable with non-'Sendable' type 'DefaultDownloadTaskInterceptor'; this is an error in the Swift 6 language mode
13 |
14 | // MARK: init
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Core/Session/Interceptors/DefaultInterceptors/DefaultDownloadTaskInterceptor.swift:4:7: note: class 'DefaultDownloadTaskInterceptor' does not conform to the 'Sendable' protocol
2 |
3 | /// Default implementation of DownloadTaskInterceptor
4 | class DefaultDownloadTaskInterceptor: DownloadTaskInterceptor {
| `- note: class 'DefaultDownloadTaskInterceptor' does not conform to the 'Sendable' protocol
5 | var onEvent: (DownloadTaskInterceptorEvent) -> Void
6 | private let validator: ResponseValidator
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Services/Downloader/FileDownloader.swift:175:56: warning: non-sendable type 'DefaultDownloadTaskInterceptor' of property 'fallbackDownloadTaskInterceptor' cannot exit nonisolated context; this is an error in the Swift 6 language mode
173 | private nonisolated func setupDownloadEventHandler(session: NetworkSession) {
174 | if session.delegate.downloadTaskInterceptor == nil {
175 | session.delegate.downloadTaskInterceptor = fallbackDownloadTaskInterceptor
| `- warning: non-sendable type 'DefaultDownloadTaskInterceptor' of property 'fallbackDownloadTaskInterceptor' cannot exit nonisolated context; this is an error in the Swift 6 language mode
176 | }
177 |
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Core/Session/Interceptors/DefaultInterceptors/DefaultDownloadTaskInterceptor.swift:4:7: note: class 'DefaultDownloadTaskInterceptor' does not conform to the 'Sendable' protocol
2 |
3 | /// Default implementation of DownloadTaskInterceptor
4 | class DefaultDownloadTaskInterceptor: DownloadTaskInterceptor {
| `- note: class 'DefaultDownloadTaskInterceptor' does not conform to the 'Sendable' protocol
5 | var onEvent: (DownloadTaskInterceptorEvent) -> Void
6 | private let validator: ResponseValidator
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Services/Downloader/FileDownloader.swift:180:60: warning: capture of 'event' with non-sendable type 'DownloadTaskInterceptorEvent' in a '@Sendable' closure; this is an error in the Swift 6 language mode
178 | session.delegate.downloadTaskInterceptor?.onEvent = { [weak self] event in
179 | Task { @Sendable [weak self] in
180 | await self?.handleDownloadInterceptorEvent(event)
| `- warning: capture of 'event' with non-sendable type 'DownloadTaskInterceptorEvent' in a '@Sendable' closure; this is an error in the Swift 6 language mode
181 | }
182 | }
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Core/Session/Interceptors/Protocols/DownloadTaskInterceptor.swift:3:13: note: consider making enum 'DownloadTaskInterceptorEvent' conform to the 'Sendable' protocol
1 | import Foundation
2 |
3 | public enum DownloadTaskInterceptorEvent {
| `- note: consider making enum 'DownloadTaskInterceptorEvent' conform to the 'Sendable' protocol
4 | case onProgress(Double)
5 | case onDownloadCompleted(URL)
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Services/Downloader/FileDownloader.swift:44:9: warning: cannot access property 'session' with a non-sendable type 'any NetworkSession' from nonisolated deinit; this is an error in the Swift 6 language mode
42 |
43 | deinit {
44 | session.delegate.downloadTaskInterceptor?.onEvent = { _ in }
| `- warning: cannot access property 'session' with a non-sendable type 'any NetworkSession' from nonisolated deinit; this is an error in the Swift 6 language mode
45 | continuation?.finish()
46 | }
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Core/Session/Session.swift:3:17: note: protocol 'NetworkSession' does not conform to the 'Sendable' protocol
1 | import Foundation
2 |
3 | public protocol NetworkSession {
| `- note: protocol 'NetworkSession' does not conform to the 'Sendable' protocol
4 | var configuration: URLSessionConfiguration { get }
5 | var delegate: SessionDelegate { get }
[68/90] Compiling EZNetworking ResponseValidator.swift
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Services/Downloader/FileDownloader.swift:12:13: warning: 'nonisolated' can not be applied to variable with non-'Sendable' type 'DefaultDownloadTaskInterceptor'; this is an error in the Swift 6 language mode
10 |
11 | /// Strong reference since SessionDelegate.downloadTaskInterceptor is weak
12 | private nonisolated let fallbackDownloadTaskInterceptor: DefaultDownloadTaskInterceptor
| `- warning: 'nonisolated' can not be applied to variable with non-'Sendable' type 'DefaultDownloadTaskInterceptor'; this is an error in the Swift 6 language mode
13 |
14 | // MARK: init
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Core/Session/Interceptors/DefaultInterceptors/DefaultDownloadTaskInterceptor.swift:4:7: note: class 'DefaultDownloadTaskInterceptor' does not conform to the 'Sendable' protocol
2 |
3 | /// Default implementation of DownloadTaskInterceptor
4 | class DefaultDownloadTaskInterceptor: DownloadTaskInterceptor {
| `- note: class 'DefaultDownloadTaskInterceptor' does not conform to the 'Sendable' protocol
5 | var onEvent: (DownloadTaskInterceptorEvent) -> Void
6 | private let validator: ResponseValidator
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Services/Downloader/FileDownloader.swift:175:56: warning: non-sendable type 'DefaultDownloadTaskInterceptor' of property 'fallbackDownloadTaskInterceptor' cannot exit nonisolated context; this is an error in the Swift 6 language mode
173 | private nonisolated func setupDownloadEventHandler(session: NetworkSession) {
174 | if session.delegate.downloadTaskInterceptor == nil {
175 | session.delegate.downloadTaskInterceptor = fallbackDownloadTaskInterceptor
| `- warning: non-sendable type 'DefaultDownloadTaskInterceptor' of property 'fallbackDownloadTaskInterceptor' cannot exit nonisolated context; this is an error in the Swift 6 language mode
176 | }
177 |
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Core/Session/Interceptors/DefaultInterceptors/DefaultDownloadTaskInterceptor.swift:4:7: note: class 'DefaultDownloadTaskInterceptor' does not conform to the 'Sendable' protocol
2 |
3 | /// Default implementation of DownloadTaskInterceptor
4 | class DefaultDownloadTaskInterceptor: DownloadTaskInterceptor {
| `- note: class 'DefaultDownloadTaskInterceptor' does not conform to the 'Sendable' protocol
5 | var onEvent: (DownloadTaskInterceptorEvent) -> Void
6 | private let validator: ResponseValidator
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Services/Downloader/FileDownloader.swift:180:60: warning: capture of 'event' with non-sendable type 'DownloadTaskInterceptorEvent' in a '@Sendable' closure; this is an error in the Swift 6 language mode
178 | session.delegate.downloadTaskInterceptor?.onEvent = { [weak self] event in
179 | Task { @Sendable [weak self] in
180 | await self?.handleDownloadInterceptorEvent(event)
| `- warning: capture of 'event' with non-sendable type 'DownloadTaskInterceptorEvent' in a '@Sendable' closure; this is an error in the Swift 6 language mode
181 | }
182 | }
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Core/Session/Interceptors/Protocols/DownloadTaskInterceptor.swift:3:13: note: consider making enum 'DownloadTaskInterceptorEvent' conform to the 'Sendable' protocol
1 | import Foundation
2 |
3 | public enum DownloadTaskInterceptorEvent {
| `- note: consider making enum 'DownloadTaskInterceptorEvent' conform to the 'Sendable' protocol
4 | case onProgress(Double)
5 | case onDownloadCompleted(URL)
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Services/Downloader/FileDownloader.swift:44:9: warning: cannot access property 'session' with a non-sendable type 'any NetworkSession' from nonisolated deinit; this is an error in the Swift 6 language mode
42 |
43 | deinit {
44 | session.delegate.downloadTaskInterceptor?.onEvent = { _ in }
| `- warning: cannot access property 'session' with a non-sendable type 'any NetworkSession' from nonisolated deinit; this is an error in the Swift 6 language mode
45 | continuation?.finish()
46 | }
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Core/Session/Session.swift:3:17: note: protocol 'NetworkSession' does not conform to the 'Sendable' protocol
1 | import Foundation
2 |
3 | public protocol NetworkSession {
| `- note: protocol 'NetworkSession' does not conform to the 'Sendable' protocol
4 | var configuration: URLSessionConfiguration { get }
5 | var delegate: SessionDelegate { get }
[69/90] Compiling EZNetworking FileDownloader.swift
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Services/Downloader/FileDownloader.swift:12:13: warning: 'nonisolated' can not be applied to variable with non-'Sendable' type 'DefaultDownloadTaskInterceptor'; this is an error in the Swift 6 language mode
10 |
11 | /// Strong reference since SessionDelegate.downloadTaskInterceptor is weak
12 | private nonisolated let fallbackDownloadTaskInterceptor: DefaultDownloadTaskInterceptor
| `- warning: 'nonisolated' can not be applied to variable with non-'Sendable' type 'DefaultDownloadTaskInterceptor'; this is an error in the Swift 6 language mode
13 |
14 | // MARK: init
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Core/Session/Interceptors/DefaultInterceptors/DefaultDownloadTaskInterceptor.swift:4:7: note: class 'DefaultDownloadTaskInterceptor' does not conform to the 'Sendable' protocol
2 |
3 | /// Default implementation of DownloadTaskInterceptor
4 | class DefaultDownloadTaskInterceptor: DownloadTaskInterceptor {
| `- note: class 'DefaultDownloadTaskInterceptor' does not conform to the 'Sendable' protocol
5 | var onEvent: (DownloadTaskInterceptorEvent) -> Void
6 | private let validator: ResponseValidator
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Services/Downloader/FileDownloader.swift:175:56: warning: non-sendable type 'DefaultDownloadTaskInterceptor' of property 'fallbackDownloadTaskInterceptor' cannot exit nonisolated context; this is an error in the Swift 6 language mode
173 | private nonisolated func setupDownloadEventHandler(session: NetworkSession) {
174 | if session.delegate.downloadTaskInterceptor == nil {
175 | session.delegate.downloadTaskInterceptor = fallbackDownloadTaskInterceptor
| `- warning: non-sendable type 'DefaultDownloadTaskInterceptor' of property 'fallbackDownloadTaskInterceptor' cannot exit nonisolated context; this is an error in the Swift 6 language mode
176 | }
177 |
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Core/Session/Interceptors/DefaultInterceptors/DefaultDownloadTaskInterceptor.swift:4:7: note: class 'DefaultDownloadTaskInterceptor' does not conform to the 'Sendable' protocol
2 |
3 | /// Default implementation of DownloadTaskInterceptor
4 | class DefaultDownloadTaskInterceptor: DownloadTaskInterceptor {
| `- note: class 'DefaultDownloadTaskInterceptor' does not conform to the 'Sendable' protocol
5 | var onEvent: (DownloadTaskInterceptorEvent) -> Void
6 | private let validator: ResponseValidator
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Services/Downloader/FileDownloader.swift:180:60: warning: capture of 'event' with non-sendable type 'DownloadTaskInterceptorEvent' in a '@Sendable' closure; this is an error in the Swift 6 language mode
178 | session.delegate.downloadTaskInterceptor?.onEvent = { [weak self] event in
179 | Task { @Sendable [weak self] in
180 | await self?.handleDownloadInterceptorEvent(event)
| `- warning: capture of 'event' with non-sendable type 'DownloadTaskInterceptorEvent' in a '@Sendable' closure; this is an error in the Swift 6 language mode
181 | }
182 | }
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Core/Session/Interceptors/Protocols/DownloadTaskInterceptor.swift:3:13: note: consider making enum 'DownloadTaskInterceptorEvent' conform to the 'Sendable' protocol
1 | import Foundation
2 |
3 | public enum DownloadTaskInterceptorEvent {
| `- note: consider making enum 'DownloadTaskInterceptorEvent' conform to the 'Sendable' protocol
4 | case onProgress(Double)
5 | case onDownloadCompleted(URL)
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Services/Downloader/FileDownloader.swift:44:9: warning: cannot access property 'session' with a non-sendable type 'any NetworkSession' from nonisolated deinit; this is an error in the Swift 6 language mode
42 |
43 | deinit {
44 | session.delegate.downloadTaskInterceptor?.onEvent = { _ in }
| `- warning: cannot access property 'session' with a non-sendable type 'any NetworkSession' from nonisolated deinit; this is an error in the Swift 6 language mode
45 | continuation?.finish()
46 | }
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Core/Session/Session.swift:3:17: note: protocol 'NetworkSession' does not conform to the 'Sendable' protocol
1 | import Foundation
2 |
3 | public protocol NetworkSession {
| `- note: protocol 'NetworkSession' does not conform to the 'Sendable' protocol
4 | var configuration: URLSessionConfiguration { get }
5 | var delegate: SessionDelegate { get }
[70/90] Compiling EZNetworking DownloadEvent.swift
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Services/Downloader/FileDownloader.swift:12:13: warning: 'nonisolated' can not be applied to variable with non-'Sendable' type 'DefaultDownloadTaskInterceptor'; this is an error in the Swift 6 language mode
10 |
11 | /// Strong reference since SessionDelegate.downloadTaskInterceptor is weak
12 | private nonisolated let fallbackDownloadTaskInterceptor: DefaultDownloadTaskInterceptor
| `- warning: 'nonisolated' can not be applied to variable with non-'Sendable' type 'DefaultDownloadTaskInterceptor'; this is an error in the Swift 6 language mode
13 |
14 | // MARK: init
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Core/Session/Interceptors/DefaultInterceptors/DefaultDownloadTaskInterceptor.swift:4:7: note: class 'DefaultDownloadTaskInterceptor' does not conform to the 'Sendable' protocol
2 |
3 | /// Default implementation of DownloadTaskInterceptor
4 | class DefaultDownloadTaskInterceptor: DownloadTaskInterceptor {
| `- note: class 'DefaultDownloadTaskInterceptor' does not conform to the 'Sendable' protocol
5 | var onEvent: (DownloadTaskInterceptorEvent) -> Void
6 | private let validator: ResponseValidator
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Services/Downloader/FileDownloader.swift:175:56: warning: non-sendable type 'DefaultDownloadTaskInterceptor' of property 'fallbackDownloadTaskInterceptor' cannot exit nonisolated context; this is an error in the Swift 6 language mode
173 | private nonisolated func setupDownloadEventHandler(session: NetworkSession) {
174 | if session.delegate.downloadTaskInterceptor == nil {
175 | session.delegate.downloadTaskInterceptor = fallbackDownloadTaskInterceptor
| `- warning: non-sendable type 'DefaultDownloadTaskInterceptor' of property 'fallbackDownloadTaskInterceptor' cannot exit nonisolated context; this is an error in the Swift 6 language mode
176 | }
177 |
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Core/Session/Interceptors/DefaultInterceptors/DefaultDownloadTaskInterceptor.swift:4:7: note: class 'DefaultDownloadTaskInterceptor' does not conform to the 'Sendable' protocol
2 |
3 | /// Default implementation of DownloadTaskInterceptor
4 | class DefaultDownloadTaskInterceptor: DownloadTaskInterceptor {
| `- note: class 'DefaultDownloadTaskInterceptor' does not conform to the 'Sendable' protocol
5 | var onEvent: (DownloadTaskInterceptorEvent) -> Void
6 | private let validator: ResponseValidator
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Services/Downloader/FileDownloader.swift:180:60: warning: capture of 'event' with non-sendable type 'DownloadTaskInterceptorEvent' in a '@Sendable' closure; this is an error in the Swift 6 language mode
178 | session.delegate.downloadTaskInterceptor?.onEvent = { [weak self] event in
179 | Task { @Sendable [weak self] in
180 | await self?.handleDownloadInterceptorEvent(event)
| `- warning: capture of 'event' with non-sendable type 'DownloadTaskInterceptorEvent' in a '@Sendable' closure; this is an error in the Swift 6 language mode
181 | }
182 | }
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Core/Session/Interceptors/Protocols/DownloadTaskInterceptor.swift:3:13: note: consider making enum 'DownloadTaskInterceptorEvent' conform to the 'Sendable' protocol
1 | import Foundation
2 |
3 | public enum DownloadTaskInterceptorEvent {
| `- note: consider making enum 'DownloadTaskInterceptorEvent' conform to the 'Sendable' protocol
4 | case onProgress(Double)
5 | case onDownloadCompleted(URL)
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Services/Downloader/FileDownloader.swift:44:9: warning: cannot access property 'session' with a non-sendable type 'any NetworkSession' from nonisolated deinit; this is an error in the Swift 6 language mode
42 |
43 | deinit {
44 | session.delegate.downloadTaskInterceptor?.onEvent = { _ in }
| `- warning: cannot access property 'session' with a non-sendable type 'any NetworkSession' from nonisolated deinit; this is an error in the Swift 6 language mode
45 | continuation?.finish()
46 | }
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Core/Session/Session.swift:3:17: note: protocol 'NetworkSession' does not conform to the 'Sendable' protocol
1 | import Foundation
2 |
3 | public protocol NetworkSession {
| `- note: protocol 'NetworkSession' does not conform to the 'Sendable' protocol
4 | var configuration: URLSessionConfiguration { get }
5 | var delegate: SessionDelegate { get }
[71/90] Compiling EZNetworking DownloadState.swift
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Services/Downloader/FileDownloader.swift:12:13: warning: 'nonisolated' can not be applied to variable with non-'Sendable' type 'DefaultDownloadTaskInterceptor'; this is an error in the Swift 6 language mode
10 |
11 | /// Strong reference since SessionDelegate.downloadTaskInterceptor is weak
12 | private nonisolated let fallbackDownloadTaskInterceptor: DefaultDownloadTaskInterceptor
| `- warning: 'nonisolated' can not be applied to variable with non-'Sendable' type 'DefaultDownloadTaskInterceptor'; this is an error in the Swift 6 language mode
13 |
14 | // MARK: init
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Core/Session/Interceptors/DefaultInterceptors/DefaultDownloadTaskInterceptor.swift:4:7: note: class 'DefaultDownloadTaskInterceptor' does not conform to the 'Sendable' protocol
2 |
3 | /// Default implementation of DownloadTaskInterceptor
4 | class DefaultDownloadTaskInterceptor: DownloadTaskInterceptor {
| `- note: class 'DefaultDownloadTaskInterceptor' does not conform to the 'Sendable' protocol
5 | var onEvent: (DownloadTaskInterceptorEvent) -> Void
6 | private let validator: ResponseValidator
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Services/Downloader/FileDownloader.swift:175:56: warning: non-sendable type 'DefaultDownloadTaskInterceptor' of property 'fallbackDownloadTaskInterceptor' cannot exit nonisolated context; this is an error in the Swift 6 language mode
173 | private nonisolated func setupDownloadEventHandler(session: NetworkSession) {
174 | if session.delegate.downloadTaskInterceptor == nil {
175 | session.delegate.downloadTaskInterceptor = fallbackDownloadTaskInterceptor
| `- warning: non-sendable type 'DefaultDownloadTaskInterceptor' of property 'fallbackDownloadTaskInterceptor' cannot exit nonisolated context; this is an error in the Swift 6 language mode
176 | }
177 |
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Core/Session/Interceptors/DefaultInterceptors/DefaultDownloadTaskInterceptor.swift:4:7: note: class 'DefaultDownloadTaskInterceptor' does not conform to the 'Sendable' protocol
2 |
3 | /// Default implementation of DownloadTaskInterceptor
4 | class DefaultDownloadTaskInterceptor: DownloadTaskInterceptor {
| `- note: class 'DefaultDownloadTaskInterceptor' does not conform to the 'Sendable' protocol
5 | var onEvent: (DownloadTaskInterceptorEvent) -> Void
6 | private let validator: ResponseValidator
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Services/Downloader/FileDownloader.swift:180:60: warning: capture of 'event' with non-sendable type 'DownloadTaskInterceptorEvent' in a '@Sendable' closure; this is an error in the Swift 6 language mode
178 | session.delegate.downloadTaskInterceptor?.onEvent = { [weak self] event in
179 | Task { @Sendable [weak self] in
180 | await self?.handleDownloadInterceptorEvent(event)
| `- warning: capture of 'event' with non-sendable type 'DownloadTaskInterceptorEvent' in a '@Sendable' closure; this is an error in the Swift 6 language mode
181 | }
182 | }
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Core/Session/Interceptors/Protocols/DownloadTaskInterceptor.swift:3:13: note: consider making enum 'DownloadTaskInterceptorEvent' conform to the 'Sendable' protocol
1 | import Foundation
2 |
3 | public enum DownloadTaskInterceptorEvent {
| `- note: consider making enum 'DownloadTaskInterceptorEvent' conform to the 'Sendable' protocol
4 | case onProgress(Double)
5 | case onDownloadCompleted(URL)
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Services/Downloader/FileDownloader.swift:44:9: warning: cannot access property 'session' with a non-sendable type 'any NetworkSession' from nonisolated deinit; this is an error in the Swift 6 language mode
42 |
43 | deinit {
44 | session.delegate.downloadTaskInterceptor?.onEvent = { _ in }
| `- warning: cannot access property 'session' with a non-sendable type 'any NetworkSession' from nonisolated deinit; this is an error in the Swift 6 language mode
45 | continuation?.finish()
46 | }
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Core/Session/Session.swift:3:17: note: protocol 'NetworkSession' does not conform to the 'Sendable' protocol
1 | import Foundation
2 |
3 | public protocol NetworkSession {
| `- note: protocol 'NetworkSession' does not conform to the 'Sendable' protocol
4 | var configuration: URLSessionConfiguration { get }
5 | var delegate: SessionDelegate { get }
[72/90] Compiling EZNetworking FileDownloadable.swift
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Services/Downloader/FileDownloader.swift:12:13: warning: 'nonisolated' can not be applied to variable with non-'Sendable' type 'DefaultDownloadTaskInterceptor'; this is an error in the Swift 6 language mode
10 |
11 | /// Strong reference since SessionDelegate.downloadTaskInterceptor is weak
12 | private nonisolated let fallbackDownloadTaskInterceptor: DefaultDownloadTaskInterceptor
| `- warning: 'nonisolated' can not be applied to variable with non-'Sendable' type 'DefaultDownloadTaskInterceptor'; this is an error in the Swift 6 language mode
13 |
14 | // MARK: init
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Core/Session/Interceptors/DefaultInterceptors/DefaultDownloadTaskInterceptor.swift:4:7: note: class 'DefaultDownloadTaskInterceptor' does not conform to the 'Sendable' protocol
2 |
3 | /// Default implementation of DownloadTaskInterceptor
4 | class DefaultDownloadTaskInterceptor: DownloadTaskInterceptor {
| `- note: class 'DefaultDownloadTaskInterceptor' does not conform to the 'Sendable' protocol
5 | var onEvent: (DownloadTaskInterceptorEvent) -> Void
6 | private let validator: ResponseValidator
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Services/Downloader/FileDownloader.swift:175:56: warning: non-sendable type 'DefaultDownloadTaskInterceptor' of property 'fallbackDownloadTaskInterceptor' cannot exit nonisolated context; this is an error in the Swift 6 language mode
173 | private nonisolated func setupDownloadEventHandler(session: NetworkSession) {
174 | if session.delegate.downloadTaskInterceptor == nil {
175 | session.delegate.downloadTaskInterceptor = fallbackDownloadTaskInterceptor
| `- warning: non-sendable type 'DefaultDownloadTaskInterceptor' of property 'fallbackDownloadTaskInterceptor' cannot exit nonisolated context; this is an error in the Swift 6 language mode
176 | }
177 |
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Core/Session/Interceptors/DefaultInterceptors/DefaultDownloadTaskInterceptor.swift:4:7: note: class 'DefaultDownloadTaskInterceptor' does not conform to the 'Sendable' protocol
2 |
3 | /// Default implementation of DownloadTaskInterceptor
4 | class DefaultDownloadTaskInterceptor: DownloadTaskInterceptor {
| `- note: class 'DefaultDownloadTaskInterceptor' does not conform to the 'Sendable' protocol
5 | var onEvent: (DownloadTaskInterceptorEvent) -> Void
6 | private let validator: ResponseValidator
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Services/Downloader/FileDownloader.swift:180:60: warning: capture of 'event' with non-sendable type 'DownloadTaskInterceptorEvent' in a '@Sendable' closure; this is an error in the Swift 6 language mode
178 | session.delegate.downloadTaskInterceptor?.onEvent = { [weak self] event in
179 | Task { @Sendable [weak self] in
180 | await self?.handleDownloadInterceptorEvent(event)
| `- warning: capture of 'event' with non-sendable type 'DownloadTaskInterceptorEvent' in a '@Sendable' closure; this is an error in the Swift 6 language mode
181 | }
182 | }
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Core/Session/Interceptors/Protocols/DownloadTaskInterceptor.swift:3:13: note: consider making enum 'DownloadTaskInterceptorEvent' conform to the 'Sendable' protocol
1 | import Foundation
2 |
3 | public enum DownloadTaskInterceptorEvent {
| `- note: consider making enum 'DownloadTaskInterceptorEvent' conform to the 'Sendable' protocol
4 | case onProgress(Double)
5 | case onDownloadCompleted(URL)
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Services/Downloader/FileDownloader.swift:44:9: warning: cannot access property 'session' with a non-sendable type 'any NetworkSession' from nonisolated deinit; this is an error in the Swift 6 language mode
42 |
43 | deinit {
44 | session.delegate.downloadTaskInterceptor?.onEvent = { _ in }
| `- warning: cannot access property 'session' with a non-sendable type 'any NetworkSession' from nonisolated deinit; this is an error in the Swift 6 language mode
45 | continuation?.finish()
46 | }
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Core/Session/Session.swift:3:17: note: protocol 'NetworkSession' does not conform to the 'Sendable' protocol
1 | import Foundation
2 |
3 | public protocol NetworkSession {
| `- note: protocol 'NetworkSession' does not conform to the 'Sendable' protocol
4 | var configuration: URLSessionConfiguration { get }
5 | var delegate: SessionDelegate { get }
[73/90] Compiling EZNetworking HTTPRedirectionStatus.swift
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Core/Error/NetworkFailureReason/SendableError/SendableError.swift:30:32: warning: conditional cast from 'Self' to 'any SendableError' (aka 'any Error') always succeeds
28 | return sendableErrorWrapper
29 | }
30 | if let sendable = self as? SendableError {
| `- warning: conditional cast from 'Self' to 'any SendableError' (aka 'any Error') always succeeds
31 | return sendable
32 | }
[74/90] Compiling EZNetworking HTTPServerErrorStatus.swift
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Core/Error/NetworkFailureReason/SendableError/SendableError.swift:30:32: warning: conditional cast from 'Self' to 'any SendableError' (aka 'any Error') always succeeds
28 | return sendableErrorWrapper
29 | }
30 | if let sendable = self as? SendableError {
| `- warning: conditional cast from 'Self' to 'any SendableError' (aka 'any Error') always succeeds
31 | return sendable
32 | }
[75/90] Compiling EZNetworking HTTPSuccessStatus.swift
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Core/Error/NetworkFailureReason/SendableError/SendableError.swift:30:32: warning: conditional cast from 'Self' to 'any SendableError' (aka 'any Error') always succeeds
28 | return sendableErrorWrapper
29 | }
30 | if let sendable = self as? SendableError {
| `- warning: conditional cast from 'Self' to 'any SendableError' (aka 'any Error') always succeeds
31 | return sendable
32 | }
[76/90] Compiling EZNetworking DecodingFailureReason.swift
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Core/Error/NetworkFailureReason/SendableError/SendableError.swift:30:32: warning: conditional cast from 'Self' to 'any SendableError' (aka 'any Error') always succeeds
28 | return sendableErrorWrapper
29 | }
30 | if let sendable = self as? SendableError {
| `- warning: conditional cast from 'Self' to 'any SendableError' (aka 'any Error') always succeeds
31 | return sendable
32 | }
[77/90] Compiling EZNetworking DownloadFailureReason.swift
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Core/Error/NetworkFailureReason/SendableError/SendableError.swift:30:32: warning: conditional cast from 'Self' to 'any SendableError' (aka 'any Error') always succeeds
28 | return sendableErrorWrapper
29 | }
30 | if let sendable = self as? SendableError {
| `- warning: conditional cast from 'Self' to 'any SendableError' (aka 'any Error') always succeeds
31 | return sendable
32 | }
[78/90] Compiling EZNetworking RequestFailureReason.swift
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Core/Error/NetworkFailureReason/SendableError/SendableError.swift:30:32: warning: conditional cast from 'Self' to 'any SendableError' (aka 'any Error') always succeeds
28 | return sendableErrorWrapper
29 | }
30 | if let sendable = self as? SendableError {
| `- warning: conditional cast from 'Self' to 'any SendableError' (aka 'any Error') always succeeds
31 | return sendable
32 | }
[79/90] Compiling EZNetworking ResponseValidationFailureReason.swift
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Core/Error/NetworkFailureReason/SendableError/SendableError.swift:30:32: warning: conditional cast from 'Self' to 'any SendableError' (aka 'any Error') always succeeds
28 | return sendableErrorWrapper
29 | }
30 | if let sendable = self as? SendableError {
| `- warning: conditional cast from 'Self' to 'any SendableError' (aka 'any Error') always succeeds
31 | return sendable
32 | }
[80/90] Compiling EZNetworking SendableError.swift
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Core/Error/NetworkFailureReason/SendableError/SendableError.swift:30:32: warning: conditional cast from 'Self' to 'any SendableError' (aka 'any Error') always succeeds
28 | return sendableErrorWrapper
29 | }
30 | if let sendable = self as? SendableError {
| `- warning: conditional cast from 'Self' to 'any SendableError' (aka 'any Error') always succeeds
31 | return sendable
32 | }
[81/90] Compiling EZNetworking ServerSentEvenFailureReason.swift
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Core/Error/NetworkFailureReason/SendableError/SendableError.swift:30:32: warning: conditional cast from 'Self' to 'any SendableError' (aka 'any Error') always succeeds
28 | return sendableErrorWrapper
29 | }
30 | if let sendable = self as? SendableError {
| `- warning: conditional cast from 'Self' to 'any SendableError' (aka 'any Error') always succeeds
31 | return sendable
32 | }
[82/90] Compiling EZNetworking HTTPHeaderApplier.swift
[83/90] Compiling EZNetworking MimeType.swift
[84/90] Compiling EZNetworking HTTPMethod.swift
[85/90] Compiling EZNetworking HTTPParameter.swift
[86/90] Compiling EZNetworking HTTPParameterApplier.swift
[87/90] Compiling EZNetworking RequestBuilder.swift
[88/90] Compiling EZNetworking RequestFactory.swift
[89/90] Compiling EZNetworking URLBuilder.swift
[90/90] Compiling EZNetworking Request.swift
Build complete! (6.59s)
Build complete.
{
"dependencies" : [
],
"manifest_display_name" : "EZNetworking",
"name" : "EZNetworking",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
{
"name" : "ios",
"version" : "17.0"
},
{
"name" : "macos",
"version" : "14.0"
},
{
"name" : "watchos",
"version" : "10.0"
},
{
"name" : "tvos",
"version" : "17.0"
},
{
"name" : "visionos",
"version" : "1.0"
}
],
"products" : [
{
"name" : "EZNetworking",
"targets" : [
"EZNetworking"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "EZNetworkingTests",
"module_type" : "SwiftTarget",
"name" : "EZNetworkingTests",
"path" : "Tests/EZNetworkingTests",
"sources" : [
"Core/Common/Decoding/EZJSONDecoderTests.swift",
"Core/Common/Extensions/AsyncSequence-extTests.swift",
"Core/Common/Extensions/Data-extTests.swift",
"Core/Common/Extensions/String-extTests.swift",
"Core/Common/RetryPolicyTests.swift",
"Core/Error/HTTPResponse/HTTPResponseTests.swift",
"Core/Error/HTTPResponse/StatusCodeTypes/HTTPClientErrorStatusTests.swift",
"Core/Error/HTTPResponse/StatusCodeTypes/HTTPInformationalStatusTests.swift",
"Core/Error/HTTPResponse/StatusCodeTypes/HTTPRedirectionStatusTests.swift",
"Core/Error/HTTPResponse/StatusCodeTypes/HTTPServerErrorStatusTests.swift",
"Core/Error/HTTPResponse/StatusCodeTypes/HTTPSuccessStatusTests.swift",
"Core/Error/NetworkFailureReason/DecodingFailureReasonTests.swift",
"Core/Error/NetworkFailureReason/DownloadFailureReasonTests.swift",
"Core/Error/NetworkFailureReason/RequestFailureReasonTests.swift",
"Core/Error/NetworkFailureReason/ResponseValidationFailureReasonTests.swift",
"Core/Error/NetworkFailureReason/SendableError/SendableErrorTests.swift",
"Core/Error/NetworkFailureReason/ServerSentEvenFailureReasonTests.swift",
"Core/Error/NetworkFailureReason/URLBuildFailureReasonTests.swift",
"Core/Error/NetworkFailureReason/UploadFailureReasonTests.swift",
"Core/Error/NetworkFailureReason/WebSocketFailureReasonTests.swift",
"Core/Error/NetworkingErrorTests.swift",
"Core/HTTP/Body/HTTPBodyTests.swift",
"Core/HTTP/Body/MultipartFormData/MultipartFormDataTests.swift",
"Core/HTTP/Body/MultipartFormData/MultipartFormPartTests.swift",
"Core/HTTP/Headers/AuthorizationTypeTests.swift",
"Core/HTTP/Headers/HTTPHeaderApplierTests.swift",
"Core/HTTP/Headers/HTTPHeaderTests.swift",
"Core/HTTP/Headers/MimeTypeTests.swift",
"Core/HTTP/Methods/HTTPMethodTests.swift",
"Core/HTTP/Parameters/HTTPParameterApplierTests.swift",
"Core/HTTP/Parameters/HTTPParameterTests.swift",
"Core/Request/Creational/RequestBuilderTests.swift",
"Core/Request/Creational/RequestFactoryTests.swift",
"Core/Request/Creational/URLBuilderTests.swift",
"Core/Request/RequestTests.swift",
"Core/Request/SpecializedRequests/DownloadRequestTests.swift",
"Core/Request/SpecializedRequests/SSERequestTests.swift",
"Core/Request/SpecializedRequests/UploadRequestTests.swift",
"Core/Request/SpecializedRequests/WebSocketRequestTests.swift",
"Core/Session/Interceptors/DefaultInterceptors/DefaultDownloadTaskInterceptorTests.swift",
"Core/Session/Interceptors/DefaultInterceptors/DefaultUploadTaskInterceptorTests.swift",
"Core/Session/Interceptors/DefaultInterceptors/DefaultWebSocketTaskInterceptorTests.swift",
"Core/Session/SessionDelegate+Extensions+Tests/SessionDelegate+URLSessionDataDelegate+Tests.swift",
"Core/Session/SessionDelegate+Extensions+Tests/SessionDelegate+URLSessionDelegate+Tests.swift",
"Core/Session/SessionDelegate+Extensions+Tests/SessionDelegate+URLSessionDownloadDelegate+Tests.swift",
"Core/Session/SessionDelegate+Extensions+Tests/SessionDelegate+URLSessionStreamDelegate+Tests.swift",
"Core/Session/SessionDelegate+Extensions+Tests/SessionDelegate+URLSessionTaskDelegate+Tests.swift",
"Core/Session/SessionDelegate+Extensions+Tests/SessionDelegate+URLSessionWebSocketDelegate+Tests.swift",
"Core/Session/SessionTests.swift",
"Core/Session/URLSessionProtocols/URLSessionDownloadTaskProtocolTests.swift",
"Core/Session/URLSessionProtocols/URLSessionUploadTaskProtocolTests.swift",
"Core/Session/URLSessionProtocols/URLSessionWebSocketTaskProtocolTest.swift",
"Core/Validator/ResponseValidatorTests.swift",
"Services/Downloader/FileDownloaderCoreFunctionalityTests.swift",
"Services/Downloader/FileDownloaderInvalidStateTests.swift",
"Services/Downloader/FileDownloaderPauseResumeTests.swift",
"Services/Downloader/FileDownloaderTaskCancellationTests.swift",
"Services/Downloader/Helpers/DownloadEventTests.swift",
"Services/Downloader/Helpers/DownloadStateTests.swift",
"Services/Downloader/Mocks/MockDownloadTask.swift",
"Services/Downloader/Mocks/MockDownloadTaskInterceptor.swift",
"Services/Downloader/Mocks/MockFileDownloaderURLSession.swift",
"Services/Performers/Mocks/MockRequestPerformerURLSession.swift",
"Services/Performers/RequestPerformableTests.swift",
"Services/ServerSentEvent/Helpers/SSEConnectionStateTests.swift",
"Services/ServerSentEvent/Helpers/SSEParserTests.swift",
"Services/ServerSentEvent/Helpers/ServerSentEventTests.swift",
"Services/ServerSentEvent/Mocks/MockSSEURLSession.swift",
"Services/ServerSentEvent/ServerSentEventManagerTests.swift",
"Services/ServerSentEvent/ServerSentEventManagerWithRetryTests.swift",
"Services/Uploader/DataUploader/DataUploaderTests.swift",
"Services/Uploader/DataUploader/Mocks/MockDataToTempFileSaver.swift",
"Services/Uploader/DataUploader/Mocks/MockUploadable.swift",
"Services/Uploader/FileUploader/FileUploaderCoreFunctionalityTests.swift",
"Services/Uploader/FileUploader/FileUploaderInvalidStateTests.swift",
"Services/Uploader/FileUploader/FileUploaderPauseResumeTests.swift",
"Services/Uploader/FileUploader/FileUploaderTaskCancellationTests.swift",
"Services/Uploader/FileUploader/Mocks/MockFileUploaderURLSession.swift",
"Services/Uploader/FileUploader/Mocks/MockUploadTask.swift",
"Services/Uploader/FileUploader/Mocks/MockUploadTaskInterceptor.swift",
"Services/Uploader/Shared/UploadEventTests.swift",
"Services/Uploader/Shared/UploadStateTests.swift",
"Services/WebSocket/Helpers/PingConfigTests.swift",
"Services/WebSocket/Helpers/WebSocketConnectionStateTests.swift",
"Services/WebSocket/Mocks/MockURLSessionWebSocketTask.swift",
"Services/WebSocket/Mocks/MockWebSockerURLSession.swift",
"Services/WebSocket/Mocks/MockWebSocketTaskInterceptor.swift",
"Services/WebSocket/WebSocket_Connect_Tests.swift",
"Services/WebSocket/WebSocket_Disconnect_Tests.swift",
"Services/WebSocket/WebSocket_Messages_Tests.swift",
"Services/WebSocket/WebSocket_Send_Tests.swift",
"Services/WebSocket/WebSocket_StateEvents_Tests.swift",
"TestSupport/Expectation.swift",
"TestSupport/ExpectationTests.swift",
"TestSupport/Mocks/Mock-Codeable.swift",
"TestSupport/Mocks/Mock-JSON.swift",
"TestSupport/Mocks/MockSession.swift",
"TestSupport/Mocks/MockURLResponseValidator.swift"
],
"target_dependencies" : [
"EZNetworking"
],
"type" : "test"
},
{
"c99name" : "EZNetworking",
"module_type" : "SwiftTarget",
"name" : "EZNetworking",
"path" : "Sources/EZNetworking",
"product_memberships" : [
"EZNetworking"
],
"sources" : [
"Core/Common/Decoding/EZJSONDecoder.swift",
"Core/Common/EmptyResponse.swift",
"Core/Common/Extensions/AsyncSequence-ext.swift",
"Core/Common/Extensions/Data-ext.swift",
"Core/Common/Extensions/String-ext.swift",
"Core/Common/RetryPolicy.swift",
"Core/Error/HTTPResponse/HTTPResponse.swift",
"Core/Error/HTTPResponse/StatusCodeTypes/HTTPClientErrorStatus.swift",
"Core/Error/HTTPResponse/StatusCodeTypes/HTTPInformationalStatus.swift",
"Core/Error/HTTPResponse/StatusCodeTypes/HTTPRedirectionStatus.swift",
"Core/Error/HTTPResponse/StatusCodeTypes/HTTPServerErrorStatus.swift",
"Core/Error/HTTPResponse/StatusCodeTypes/HTTPSuccessStatus.swift",
"Core/Error/NetworkFailureReason/DecodingFailureReason.swift",
"Core/Error/NetworkFailureReason/DownloadFailureReason.swift",
"Core/Error/NetworkFailureReason/RequestFailureReason.swift",
"Core/Error/NetworkFailureReason/ResponseValidationFailureReason.swift",
"Core/Error/NetworkFailureReason/SendableError/SendableError.swift",
"Core/Error/NetworkFailureReason/ServerSentEvenFailureReason.swift",
"Core/Error/NetworkFailureReason/URLBuildFailureReason.swift",
"Core/Error/NetworkFailureReason/UploadFailureReason.swift",
"Core/Error/NetworkFailureReason/WebSocketFailureReason.swift",
"Core/Error/NetworkingError.swift",
"Core/HTTP/Body/HTTPBody.swift",
"Core/HTTP/Body/MultipartFormData/MultipartFormData.swift",
"Core/HTTP/Body/MultipartFormData/MultipartFormPart.swift",
"Core/HTTP/Headers/AuthorizationType.swift",
"Core/HTTP/Headers/HTTPHeader.swift",
"Core/HTTP/Headers/HTTPHeaderApplier.swift",
"Core/HTTP/Headers/MimeType.swift",
"Core/HTTP/Methods/HTTPMethod.swift",
"Core/HTTP/Parameters/HTTPParameter.swift",
"Core/HTTP/Parameters/HTTPParameterApplier.swift",
"Core/Request/Creational/RequestBuilder.swift",
"Core/Request/Creational/RequestFactory.swift",
"Core/Request/Creational/URLBuilder.swift",
"Core/Request/Request.swift",
"Core/Request/SpecializedRequests/DownloadRequest.swift",
"Core/Request/SpecializedRequests/EZRequest.swift",
"Core/Request/SpecializedRequests/SSERequest.swift",
"Core/Request/SpecializedRequests/UploadRequest.swift",
"Core/Request/SpecializedRequests/WebSocketRequest.swift",
"Core/Session/Interceptors/DefaultInterceptors/DefaultDownloadTaskInterceptor.swift",
"Core/Session/Interceptors/DefaultInterceptors/DefaultUploadTaskInterceptor.swift",
"Core/Session/Interceptors/DefaultInterceptors/DefaultWebSocketTaskInterceptor.swift",
"Core/Session/Interceptors/Protocols/AuthenticationInterceptor.swift",
"Core/Session/Interceptors/Protocols/CacheInterceptor.swift",
"Core/Session/Interceptors/Protocols/DataTaskInterceptor.swift",
"Core/Session/Interceptors/Protocols/DownloadTaskInterceptor.swift",
"Core/Session/Interceptors/Protocols/MetricsInterceptor.swift",
"Core/Session/Interceptors/Protocols/RedirectInterceptor.swift",
"Core/Session/Interceptors/Protocols/StreamTaskInterceptor.swift",
"Core/Session/Interceptors/Protocols/TaskLifecycleInterceptor.swift",
"Core/Session/Interceptors/Protocols/UploadTaskInterceptor.swift",
"Core/Session/Interceptors/Protocols/WebSocketTaskInterceptor.swift",
"Core/Session/Session.swift",
"Core/Session/SessionDelegate+Extensions/SessionDelegate+URLSessionDataDelegate.swift",
"Core/Session/SessionDelegate+Extensions/SessionDelegate+URLSessionDelegate.swift",
"Core/Session/SessionDelegate+Extensions/SessionDelegate+URLSessionDownloadDelegate.swift",
"Core/Session/SessionDelegate+Extensions/SessionDelegate+URLSessionStreamDelegate.swift",
"Core/Session/SessionDelegate+Extensions/SessionDelegate+URLSessionTaskDelegate.swift",
"Core/Session/SessionDelegate+Extensions/SessionDelegate+URLSessionWebSocketDelegate.swift",
"Core/Session/SessionDelegate.swift",
"Core/Session/URLSessionProtocols/URLSessionDownloadTaskProtocol.swift",
"Core/Session/URLSessionProtocols/URLSessionProtocol.swift",
"Core/Session/URLSessionProtocols/URLSessionUploadTaskProtocol.swift",
"Core/Session/URLSessionProtocols/URLSessionWebSocketTaskProtocol.swift",
"Core/Validator/ResponseValidator.swift",
"Services/Downloader/FileDownloader.swift",
"Services/Downloader/Helpers/DownloadEvent.swift",
"Services/Downloader/Helpers/DownloadState.swift",
"Services/Downloader/Protocols/FileDownloadable.swift",
"Services/Performers/Protocols/RequestPerformable.swift",
"Services/Performers/RequestPerformer.swift",
"Services/ServerSentEvent/Helpers/SSEConnectionState.swift",
"Services/ServerSentEvent/Helpers/SSEParser.swift",
"Services/ServerSentEvent/Helpers/ServerSentEvent.swift",
"Services/ServerSentEvent/Protocols/ServerSentEventClient.swift",
"Services/ServerSentEvent/ServerSentEventManager.swift",
"Services/Uploader/DataUploader/DataUploader.swift",
"Services/Uploader/FileUploader/FileUploader.swift",
"Services/Uploader/Shared/UploadEvent.swift",
"Services/Uploader/Shared/UploadState.swift",
"Services/Uploader/Shared/Uploadable.swift",
"Services/WebSocket/Helpers/PingConfig.swift",
"Services/WebSocket/Helpers/WebSocketConnectionState.swift",
"Services/WebSocket/Protocols/WebSocketClient.swift",
"Services/WebSocket/WebSocket.swift"
],
"type" : "library"
}
],
"tools_version" : "5.9"
}
Done.