Build Information
Successful build of EZNetworking, reference main (ecfed1), with Swift 6.1 for macOS (SPM) on 11 Aug 2026 12:45:55 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
],
"sources" : [
"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"
}
Running build ...
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 InferSendableFromCaptures
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-2F0A5646E1D333AE.txt
[3/81] Emitting module EZNetworking
/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?
/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: @Sendable (DownloadTaskInterceptorEvent) -> Void
6 | private let validator: ResponseValidator
/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: @Sendable (UploadTaskInterceptorEvent) -> Void
6 | private let validator: ResponseValidator
/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: (@Sendable (WebSocketTaskEvent) -> Void)? { get set }
6 |
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Services/Uploader/DataUploader/DataUploader.swift:16:28: warning: sending 'request' risks causing data races; this is an error in the Swift 6 language mode
14 | let dataSaver = DefaultDataToTempFileSaver()
15 | let tempFileURL = try dataSaver.saveToTempFile(data)
16 | 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 initializer 'init(fileURL:request:session:validator:)' risks causing data races between actor-isolated and task-isolated uses
17 | fileURL: tempFileURL,
18 | request: request,
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Services/Uploader/DataUploader/DataUploader.swift:16:28: warning: sending 'session' risks causing data races; this is an error in the Swift 6 language mode
14 | let dataSaver = DefaultDataToTempFileSaver()
15 | let tempFileURL = try dataSaver.saveToTempFile(data)
16 | 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 initializer 'init(fileURL:request:session:validator:)' risks causing data races between actor-isolated and task-isolated uses
17 | fileURL: tempFileURL,
18 | request: request,
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Services/Uploader/DataUploader/DataUploader.swift:16:28: warning: sending 'validator' risks causing data races; this is an error in the Swift 6 language mode
14 | let dataSaver = DefaultDataToTempFileSaver()
15 | let tempFileURL = try dataSaver.saveToTempFile(data)
16 | 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 initializer 'init(fileURL:request:session:validator:)' risks causing data races between actor-isolated and task-isolated uses
17 | fileURL: tempFileURL,
18 | request: request,
[4/89] Compiling EZNetworking FileUploader.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: @Sendable (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: @Sendable (UploadTaskInterceptorEvent) -> Void
6 | private let validator: ResponseValidator
/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: (@Sendable (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: (@Sendable (WebSocketTaskEvent) -> Void)? { get set }
6 |
/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: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 {
[5/89] Compiling EZNetworking UploadEvent.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: @Sendable (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: @Sendable (UploadTaskInterceptorEvent) -> Void
6 | private let validator: ResponseValidator
/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: (@Sendable (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: (@Sendable (WebSocketTaskEvent) -> Void)? { get set }
6 |
/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: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/89] 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: @Sendable (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: @Sendable (UploadTaskInterceptorEvent) -> Void
6 | private let validator: ResponseValidator
/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: (@Sendable (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: (@Sendable (WebSocketTaskEvent) -> Void)? { get set }
6 |
/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: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/89] 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: @Sendable (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: @Sendable (UploadTaskInterceptorEvent) -> Void
6 | private let validator: ResponseValidator
/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: (@Sendable (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: (@Sendable (WebSocketTaskEvent) -> Void)? { get set }
6 |
/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: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/89] 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: @Sendable (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: @Sendable (UploadTaskInterceptorEvent) -> Void
6 | private let validator: ResponseValidator
/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: (@Sendable (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: (@Sendable (WebSocketTaskEvent) -> Void)? { get set }
6 |
/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: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/89] 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: @Sendable (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: @Sendable (UploadTaskInterceptorEvent) -> Void
6 | private let validator: ResponseValidator
/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: (@Sendable (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: (@Sendable (WebSocketTaskEvent) -> Void)? { get set }
6 |
/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: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/89] 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: @Sendable (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: @Sendable (UploadTaskInterceptorEvent) -> Void
6 | private let validator: ResponseValidator
/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: (@Sendable (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: (@Sendable (WebSocketTaskEvent) -> Void)? { get set }
6 |
/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: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/89] 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: @Sendable (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: @Sendable (UploadTaskInterceptorEvent) -> Void
6 | private let validator: ResponseValidator
/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: (@Sendable (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: (@Sendable (WebSocketTaskEvent) -> Void)? { get set }
6 |
/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: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/89] 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: @Sendable (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: @Sendable (DownloadTaskInterceptorEvent) -> Void
6 | private let validator: ResponseValidator
/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 }
[13/89] 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: @Sendable (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: @Sendable (DownloadTaskInterceptorEvent) -> Void
6 | private let validator: ResponseValidator
/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 }
[14/89] 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: @Sendable (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: @Sendable (DownloadTaskInterceptorEvent) -> Void
6 | private let validator: ResponseValidator
/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 }
[15/89] 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: @Sendable (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: @Sendable (DownloadTaskInterceptorEvent) -> Void
6 | private let validator: ResponseValidator
/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 }
[16/89] 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: @Sendable (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: @Sendable (DownloadTaskInterceptorEvent) -> Void
6 | private let validator: ResponseValidator
/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 }
[17/89] 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: @Sendable (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: @Sendable (DownloadTaskInterceptorEvent) -> Void
6 | private let validator: ResponseValidator
/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 }
[18/89] 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: @Sendable (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: @Sendable (DownloadTaskInterceptorEvent) -> Void
6 | private let validator: ResponseValidator
/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 }
[19/89] 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: @Sendable (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: @Sendable (DownloadTaskInterceptorEvent) -> Void
6 | private let validator: ResponseValidator
/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 }
[20/89] 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:16:28: warning: sending 'request' risks causing data races; this is an error in the Swift 6 language mode
14 | let dataSaver = DefaultDataToTempFileSaver()
15 | let tempFileURL = try dataSaver.saveToTempFile(data)
16 | 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
17 | fileURL: tempFileURL,
18 | request: request,
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Services/Uploader/DataUploader/DataUploader.swift:16:28: warning: sending 'session' risks causing data races; this is an error in the Swift 6 language mode
14 | let dataSaver = DefaultDataToTempFileSaver()
15 | let tempFileURL = try dataSaver.saveToTempFile(data)
16 | 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
17 | fileURL: tempFileURL,
18 | request: request,
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Services/Uploader/DataUploader/DataUploader.swift:16:28: warning: sending 'validator' risks causing data races; this is an error in the Swift 6 language mode
14 | let dataSaver = DefaultDataToTempFileSaver()
15 | let tempFileURL = try dataSaver.saveToTempFile(data)
16 | 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
17 | fileURL: tempFileURL,
18 | request: request,
[21/89] 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:16:28: warning: sending 'request' risks causing data races; this is an error in the Swift 6 language mode
14 | let dataSaver = DefaultDataToTempFileSaver()
15 | let tempFileURL = try dataSaver.saveToTempFile(data)
16 | 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
17 | fileURL: tempFileURL,
18 | request: request,
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Services/Uploader/DataUploader/DataUploader.swift:16:28: warning: sending 'session' risks causing data races; this is an error in the Swift 6 language mode
14 | let dataSaver = DefaultDataToTempFileSaver()
15 | let tempFileURL = try dataSaver.saveToTempFile(data)
16 | 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
17 | fileURL: tempFileURL,
18 | request: request,
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Services/Uploader/DataUploader/DataUploader.swift:16:28: warning: sending 'validator' risks causing data races; this is an error in the Swift 6 language mode
14 | let dataSaver = DefaultDataToTempFileSaver()
15 | let tempFileURL = try dataSaver.saveToTempFile(data)
16 | 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
17 | fileURL: tempFileURL,
18 | request: request,
[22/89] 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:16:28: warning: sending 'request' risks causing data races; this is an error in the Swift 6 language mode
14 | let dataSaver = DefaultDataToTempFileSaver()
15 | let tempFileURL = try dataSaver.saveToTempFile(data)
16 | 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
17 | fileURL: tempFileURL,
18 | request: request,
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Services/Uploader/DataUploader/DataUploader.swift:16:28: warning: sending 'session' risks causing data races; this is an error in the Swift 6 language mode
14 | let dataSaver = DefaultDataToTempFileSaver()
15 | let tempFileURL = try dataSaver.saveToTempFile(data)
16 | 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
17 | fileURL: tempFileURL,
18 | request: request,
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Services/Uploader/DataUploader/DataUploader.swift:16:28: warning: sending 'validator' risks causing data races; this is an error in the Swift 6 language mode
14 | let dataSaver = DefaultDataToTempFileSaver()
15 | let tempFileURL = try dataSaver.saveToTempFile(data)
16 | 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
17 | fileURL: tempFileURL,
18 | request: request,
[23/89] 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:16:28: warning: sending 'request' risks causing data races; this is an error in the Swift 6 language mode
14 | let dataSaver = DefaultDataToTempFileSaver()
15 | let tempFileURL = try dataSaver.saveToTempFile(data)
16 | 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
17 | fileURL: tempFileURL,
18 | request: request,
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Services/Uploader/DataUploader/DataUploader.swift:16:28: warning: sending 'session' risks causing data races; this is an error in the Swift 6 language mode
14 | let dataSaver = DefaultDataToTempFileSaver()
15 | let tempFileURL = try dataSaver.saveToTempFile(data)
16 | 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
17 | fileURL: tempFileURL,
18 | request: request,
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Services/Uploader/DataUploader/DataUploader.swift:16:28: warning: sending 'validator' risks causing data races; this is an error in the Swift 6 language mode
14 | let dataSaver = DefaultDataToTempFileSaver()
15 | let tempFileURL = try dataSaver.saveToTempFile(data)
16 | 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
17 | fileURL: tempFileURL,
18 | request: request,
[24/89] 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:16:28: warning: sending 'request' risks causing data races; this is an error in the Swift 6 language mode
14 | let dataSaver = DefaultDataToTempFileSaver()
15 | let tempFileURL = try dataSaver.saveToTempFile(data)
16 | 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
17 | fileURL: tempFileURL,
18 | request: request,
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Services/Uploader/DataUploader/DataUploader.swift:16:28: warning: sending 'session' risks causing data races; this is an error in the Swift 6 language mode
14 | let dataSaver = DefaultDataToTempFileSaver()
15 | let tempFileURL = try dataSaver.saveToTempFile(data)
16 | 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
17 | fileURL: tempFileURL,
18 | request: request,
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Services/Uploader/DataUploader/DataUploader.swift:16:28: warning: sending 'validator' risks causing data races; this is an error in the Swift 6 language mode
14 | let dataSaver = DefaultDataToTempFileSaver()
15 | let tempFileURL = try dataSaver.saveToTempFile(data)
16 | 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
17 | fileURL: tempFileURL,
18 | request: request,
[25/89] 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:16:28: warning: sending 'request' risks causing data races; this is an error in the Swift 6 language mode
14 | let dataSaver = DefaultDataToTempFileSaver()
15 | let tempFileURL = try dataSaver.saveToTempFile(data)
16 | 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
17 | fileURL: tempFileURL,
18 | request: request,
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Services/Uploader/DataUploader/DataUploader.swift:16:28: warning: sending 'session' risks causing data races; this is an error in the Swift 6 language mode
14 | let dataSaver = DefaultDataToTempFileSaver()
15 | let tempFileURL = try dataSaver.saveToTempFile(data)
16 | 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
17 | fileURL: tempFileURL,
18 | request: request,
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Services/Uploader/DataUploader/DataUploader.swift:16:28: warning: sending 'validator' risks causing data races; this is an error in the Swift 6 language mode
14 | let dataSaver = DefaultDataToTempFileSaver()
15 | let tempFileURL = try dataSaver.saveToTempFile(data)
16 | 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
17 | fileURL: tempFileURL,
18 | request: request,
[26/89] 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:16:28: warning: sending 'request' risks causing data races; this is an error in the Swift 6 language mode
14 | let dataSaver = DefaultDataToTempFileSaver()
15 | let tempFileURL = try dataSaver.saveToTempFile(data)
16 | 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
17 | fileURL: tempFileURL,
18 | request: request,
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Services/Uploader/DataUploader/DataUploader.swift:16:28: warning: sending 'session' risks causing data races; this is an error in the Swift 6 language mode
14 | let dataSaver = DefaultDataToTempFileSaver()
15 | let tempFileURL = try dataSaver.saveToTempFile(data)
16 | 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
17 | fileURL: tempFileURL,
18 | request: request,
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Services/Uploader/DataUploader/DataUploader.swift:16:28: warning: sending 'validator' risks causing data races; this is an error in the Swift 6 language mode
14 | let dataSaver = DefaultDataToTempFileSaver()
15 | let tempFileURL = try dataSaver.saveToTempFile(data)
16 | 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
17 | fileURL: tempFileURL,
18 | request: request,
[27/89] 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:16:28: warning: sending 'request' risks causing data races; this is an error in the Swift 6 language mode
14 | let dataSaver = DefaultDataToTempFileSaver()
15 | let tempFileURL = try dataSaver.saveToTempFile(data)
16 | 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
17 | fileURL: tempFileURL,
18 | request: request,
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Services/Uploader/DataUploader/DataUploader.swift:16:28: warning: sending 'session' risks causing data races; this is an error in the Swift 6 language mode
14 | let dataSaver = DefaultDataToTempFileSaver()
15 | let tempFileURL = try dataSaver.saveToTempFile(data)
16 | 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
17 | fileURL: tempFileURL,
18 | request: request,
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Services/Uploader/DataUploader/DataUploader.swift:16:28: warning: sending 'validator' risks causing data races; this is an error in the Swift 6 language mode
14 | let dataSaver = DefaultDataToTempFileSaver()
15 | let tempFileURL = try dataSaver.saveToTempFile(data)
16 | 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
17 | fileURL: tempFileURL,
18 | request: request,
[28/89] Compiling EZNetworking DataTaskInterceptor.swift
[29/89] Compiling EZNetworking DownloadTaskInterceptor.swift
[30/89] Compiling EZNetworking MetricsInterceptor.swift
[31/89] Compiling EZNetworking RedirectInterceptor.swift
[32/89] Compiling EZNetworking StreamTaskInterceptor.swift
[33/89] Compiling EZNetworking TaskLifecycleInterceptor.swift
[34/89] Compiling EZNetworking UploadTaskInterceptor.swift
[35/89] Compiling EZNetworking WebSocketTaskInterceptor.swift
[36/89] Compiling EZNetworking Session.swift
[37/89] 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 | }
[38/89] 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 | }
[39/89] 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 | }
[40/89] 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 | }
[41/89] 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 | }
[42/89] 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 | }
[43/89] 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 | }
[44/89] 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 | }
[45/89] Compiling EZNetworking URLBuildFailureReason.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 | }
[46/89] 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?
[47/89] 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?
[48/89] 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?
[49/89] 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?
[50/89] 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?
[51/89] 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?
[52/89] 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?
[53/89] 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?
[54/89] 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
[55/89] 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
[56/89] 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
[57/89] 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
[58/89] 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
[59/89] 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
[60/89] 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
[61/89] 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
[62/89] Compiling EZNetworking HTTPRedirectionStatus.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
[63/89] Compiling EZNetworking EZRequest.swift
[64/89] Compiling EZNetworking SSERequest.swift
[65/89] Compiling EZNetworking UploadRequest.swift
[66/89] Compiling EZNetworking WebSocketRequest.swift
[67/89] Compiling EZNetworking DefaultDownloadTaskInterceptor.swift
[68/89] Compiling EZNetworking DefaultUploadTaskInterceptor.swift
[69/89] Compiling EZNetworking DefaultWebSocketTaskInterceptor.swift
[70/89] Compiling EZNetworking AuthenticationInterceptor.swift
[71/89] Compiling EZNetworking CacheInterceptor.swift
[72/89] Compiling EZNetworking MimeType.swift
[73/89] Compiling EZNetworking HTTPMethod.swift
[74/89] Compiling EZNetworking HTTPParameter.swift
[75/89] Compiling EZNetworking HTTPParameterApplier.swift
[76/89] Compiling EZNetworking RequestBuilder.swift
[77/89] Compiling EZNetworking RequestFactory.swift
[78/89] Compiling EZNetworking URLBuilder.swift
[79/89] Compiling EZNetworking Request.swift
[80/89] Compiling EZNetworking DownloadRequest.swift
[81/89] Compiling EZNetworking UploadFailureReason.swift
[82/89] Compiling EZNetworking WebSocketFailureReason.swift
[83/89] Compiling EZNetworking NetworkingError.swift
[84/89] Compiling EZNetworking HTTPBody.swift
[85/89] Compiling EZNetworking MultipartFormData.swift
[86/89] Compiling EZNetworking MultipartFormPart.swift
[87/89] Compiling EZNetworking AuthorizationType.swift
[88/89] Compiling EZNetworking HTTPHeader.swift
[89/89] Compiling EZNetworking HTTPHeaderApplier.swift
Build complete! (6.31s)
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/Extensions/AsyncSequence-extTests.swift",
"Core/Common/Extensions/Data-extTests.swift",
"Core/Common/Extensions/String-extTests.swift",
"Core/Common/Mocks/MockClock.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/WebSocketTestCase.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/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.