The Swift Package Index logo.Swift Package Index

Build Information

Successful build of MuxUploadSDK, reference main (faa440), with Swift 6.1 for macOS (SPM) on 24 Sep 2026 15:53:35 UTC.

Swift 6 data race errors: 7

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 InferSendableFromCaptures

Build Log

223 |     let outerDelegate: ProgressReportHandler
    |         |- warning: stored property 'outerDelegate' of 'Sendable'-conforming class 'ProgressReportingURLSessionTaskDelegate' has non-sendable type 'ProgressReportingURLSessionTaskDelegate.ProgressReportHandler' (aka '(Int64, Int64, Int64) -> ()'); this is an error in the Swift 6 language mode
    |         `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
224 |     let forURL: URL
225 |
[6/40] Compiling MuxUploadSDK SDKLogger.swift
/Users/admin/builder/spi-builder-workspace/Sources/MuxUploadSDK/PublicAPI/SDKLogger.swift:20:16: warning: static property 'logger' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
18 |
19 |     /// The `Logger` being used to log events from this SDK
20 |     static var logger: os.Logger? = nil
   |                |- warning: static property 'logger' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                |- note: convert 'logger' to a 'let' constant to make 'Sendable' shared state immutable
   |                |- note: add '@MainActor' to make static property 'logger' part of global actor 'MainActor'
   |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
21 |
22 |     /// Enables logging by adding a `Logger` with `subsystem: "Mux"` and `category: "Upload"`
/Users/admin/builder/spi-builder-workspace/Sources/MuxUploadSDK/Upload/ChunkWorker.swift:222:19: warning: non-final class 'ProgressReportingURLSessionTaskDelegate' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
220 | }
221 |
222 | fileprivate class ProgressReportingURLSessionTaskDelegate : NSObject, URLSessionDataDelegate {
    |                   `- warning: non-final class 'ProgressReportingURLSessionTaskDelegate' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
223 |     let outerDelegate: ProgressReportHandler
224 |     let forURL: URL
/Users/admin/builder/spi-builder-workspace/Sources/MuxUploadSDK/Upload/ChunkWorker.swift:223:9: warning: stored property 'outerDelegate' of 'Sendable'-conforming class 'ProgressReportingURLSessionTaskDelegate' has non-sendable type 'ProgressReportingURLSessionTaskDelegate.ProgressReportHandler' (aka '(Int64, Int64, Int64) -> ()'); this is an error in the Swift 6 language mode
221 |
222 | fileprivate class ProgressReportingURLSessionTaskDelegate : NSObject, URLSessionDataDelegate {
223 |     let outerDelegate: ProgressReportHandler
    |         |- warning: stored property 'outerDelegate' of 'Sendable'-conforming class 'ProgressReportingURLSessionTaskDelegate' has non-sendable type 'ProgressReportingURLSessionTaskDelegate.ProgressReportHandler' (aka '(Int64, Int64, Int64) -> ()'); this is an error in the Swift 6 language mode
    |         `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
224 |     let forURL: URL
225 |
/Users/admin/builder/spi-builder-workspace/Sources/MuxUploadSDK/Upload/ChunkWorker.swift:116:21: 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
114 |         chunk: FileChunk
115 |     ) -> Task<Success, Error> {
116 |         return Task { [self] in
    |                     `- 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
117 |             return try await self.directUpload(chunk: chunk) as! ChunkWorker.Success
    |                              `- note: closure captures 'self' which is accessible to code in the current task
118 |         }
119 |     }
[7/40] Compiling MuxUploadSDK SemanticVersion.swift
/Users/admin/builder/spi-builder-workspace/Sources/MuxUploadSDK/PublicAPI/SDKLogger.swift:20:16: warning: static property 'logger' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
18 |
19 |     /// The `Logger` being used to log events from this SDK
20 |     static var logger: os.Logger? = nil
   |                |- warning: static property 'logger' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                |- note: convert 'logger' to a 'let' constant to make 'Sendable' shared state immutable
   |                |- note: add '@MainActor' to make static property 'logger' part of global actor 'MainActor'
   |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
21 |
22 |     /// Enables logging by adding a `Logger` with `subsystem: "Mux"` and `category: "Upload"`
/Users/admin/builder/spi-builder-workspace/Sources/MuxUploadSDK/Upload/ChunkWorker.swift:222:19: warning: non-final class 'ProgressReportingURLSessionTaskDelegate' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
220 | }
221 |
222 | fileprivate class ProgressReportingURLSessionTaskDelegate : NSObject, URLSessionDataDelegate {
    |                   `- warning: non-final class 'ProgressReportingURLSessionTaskDelegate' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
223 |     let outerDelegate: ProgressReportHandler
224 |     let forURL: URL
/Users/admin/builder/spi-builder-workspace/Sources/MuxUploadSDK/Upload/ChunkWorker.swift:223:9: warning: stored property 'outerDelegate' of 'Sendable'-conforming class 'ProgressReportingURLSessionTaskDelegate' has non-sendable type 'ProgressReportingURLSessionTaskDelegate.ProgressReportHandler' (aka '(Int64, Int64, Int64) -> ()'); this is an error in the Swift 6 language mode
221 |
222 | fileprivate class ProgressReportingURLSessionTaskDelegate : NSObject, URLSessionDataDelegate {
223 |     let outerDelegate: ProgressReportHandler
    |         |- warning: stored property 'outerDelegate' of 'Sendable'-conforming class 'ProgressReportingURLSessionTaskDelegate' has non-sendable type 'ProgressReportingURLSessionTaskDelegate.ProgressReportHandler' (aka '(Int64, Int64, Int64) -> ()'); this is an error in the Swift 6 language mode
    |         `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
224 |     let forURL: URL
225 |
/Users/admin/builder/spi-builder-workspace/Sources/MuxUploadSDK/Upload/ChunkWorker.swift:116:21: 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
114 |         chunk: FileChunk
115 |     ) -> Task<Success, Error> {
116 |         return Task { [self] in
    |                     `- 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
117 |             return try await self.directUpload(chunk: chunk) as! ChunkWorker.Success
    |                              `- note: closure captures 'self' which is accessible to code in the current task
118 |         }
119 |     }
[8/40] Compiling MuxUploadSDK ChunkWorker.swift
/Users/admin/builder/spi-builder-workspace/Sources/MuxUploadSDK/PublicAPI/SDKLogger.swift:20:16: warning: static property 'logger' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
18 |
19 |     /// The `Logger` being used to log events from this SDK
20 |     static var logger: os.Logger? = nil
   |                |- warning: static property 'logger' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                |- note: convert 'logger' to a 'let' constant to make 'Sendable' shared state immutable
   |                |- note: add '@MainActor' to make static property 'logger' part of global actor 'MainActor'
   |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
21 |
22 |     /// Enables logging by adding a `Logger` with `subsystem: "Mux"` and `category: "Upload"`
/Users/admin/builder/spi-builder-workspace/Sources/MuxUploadSDK/Upload/ChunkWorker.swift:222:19: warning: non-final class 'ProgressReportingURLSessionTaskDelegate' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
220 | }
221 |
222 | fileprivate class ProgressReportingURLSessionTaskDelegate : NSObject, URLSessionDataDelegate {
    |                   `- warning: non-final class 'ProgressReportingURLSessionTaskDelegate' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
223 |     let outerDelegate: ProgressReportHandler
224 |     let forURL: URL
/Users/admin/builder/spi-builder-workspace/Sources/MuxUploadSDK/Upload/ChunkWorker.swift:223:9: warning: stored property 'outerDelegate' of 'Sendable'-conforming class 'ProgressReportingURLSessionTaskDelegate' has non-sendable type 'ProgressReportingURLSessionTaskDelegate.ProgressReportHandler' (aka '(Int64, Int64, Int64) -> ()'); this is an error in the Swift 6 language mode
221 |
222 | fileprivate class ProgressReportingURLSessionTaskDelegate : NSObject, URLSessionDataDelegate {
223 |     let outerDelegate: ProgressReportHandler
    |         |- warning: stored property 'outerDelegate' of 'Sendable'-conforming class 'ProgressReportingURLSessionTaskDelegate' has non-sendable type 'ProgressReportingURLSessionTaskDelegate.ProgressReportHandler' (aka '(Int64, Int64, Int64) -> ()'); this is an error in the Swift 6 language mode
    |         `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
224 |     let forURL: URL
225 |
/Users/admin/builder/spi-builder-workspace/Sources/MuxUploadSDK/Upload/ChunkWorker.swift:116:21: 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
114 |         chunk: FileChunk
115 |     ) -> Task<Success, Error> {
116 |         return Task { [self] in
    |                     `- 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
117 |             return try await self.directUpload(chunk: chunk) as! ChunkWorker.Success
    |                              `- note: closure captures 'self' which is accessible to code in the current task
118 |         }
119 |     }
[9/40] Compiling MuxUploadSDK ChunkedFileUploader.swift
/Users/admin/builder/spi-builder-workspace/Sources/MuxUploadSDK/Upload/ChunkedFileUploader.swift:102:34: 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
100 |
101 |     private func beginUpload() {
102 |         let task = Task.detached { [self] in
    |                                  `- 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
103 |
104 |             let asset = AVAsset(url: inputFileURL)
    |                                      `- note: closure captures 'self' which is accessible to code in the current task
105 |
106 |             var duration: CMTime
/Users/admin/builder/spi-builder-workspace/Sources/MuxUploadSDK/Upload/ChunkedFileUploader.swift:203:34: 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
201 |
202 |     private func beginUpload(duration: CMTime) {
203 |         let task = Task.detached { [self] in
    |                                  `- 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
204 |             do {
205 |                 // It's fine if it's already open, that's handled by ignoring the call
206 |                 let fileSize = try FileManager.default.fileSizeOfItem(
207 |                     atPath: inputFileURL.path
    |                             `- note: closure captures 'self' which is accessible to code in the current task
208 |                 )
209 |                 let result = try await makeWorker().performUpload()
/Users/admin/builder/spi-builder-workspace/Sources/MuxUploadSDK/Upload/ChunkedFileUploader.swift:285:16: warning: sending 'self.uploadInfo' risks causing data races; this is an error in the Swift 6 language mode
283 |
284 |     private func makeWorker() -> Worker {
285 |         return Worker(
    |                |- warning: sending 'self.uploadInfo' risks causing data races; this is an error in the Swift 6 language mode
    |                `- note: sending task-isolated 'self.uploadInfo' to actor-isolated initializer 'init(uploadInfo:inputFileURL:chunkedFile:progress:startByte:_:)' risks causing data races between actor-isolated and task-isolated uses
286 |             uploadInfo: uploadInfo,
287 |             inputFileURL: inputFileURL,
/Users/admin/builder/spi-builder-workspace/Sources/MuxUploadSDK/Upload/ChunkedFileUploader.swift:285:16: warning: sending 'self.file' risks causing data races; this is an error in the Swift 6 language mode
283 |
284 |     private func makeWorker() -> Worker {
285 |         return Worker(
    |                |- warning: sending 'self.file' risks causing data races; this is an error in the Swift 6 language mode
    |                `- note: sending task-isolated 'self.file' to actor-isolated initializer 'init(uploadInfo:inputFileURL:chunkedFile:progress:startByte:_:)' risks causing data races between actor-isolated and task-isolated uses
286 |             uploadInfo: uploadInfo,
287 |             inputFileURL: inputFileURL,
/Users/admin/builder/spi-builder-workspace/Sources/MuxUploadSDK/Upload/ChunkedFileUploader.swift:285:16: warning: sending value of non-Sendable type '(Progress, TimeInterval, TimeInterval, UInt64?) -> Void' (aka '(Progress, Double, Double, Optional<UInt64>) -> ()') risks causing data races; this is an error in the Swift 6 language mode
283 |
284 |     private func makeWorker() -> Worker {
285 |         return Worker(
    |                |- warning: sending value of non-Sendable type '(Progress, TimeInterval, TimeInterval, UInt64?) -> Void' (aka '(Progress, Double, Double, Optional<UInt64>) -> ()') risks causing data races; this is an error in the Swift 6 language mode
    |                `- note: sending task-isolated value of non-Sendable type '(Progress, TimeInterval, TimeInterval, UInt64?) -> Void' (aka '(Progress, Double, Double, Optional<UInt64>) -> ()') to actor-isolated initializer 'init(uploadInfo:inputFileURL:chunkedFile:progress:startByte:_:)' risks causing races in between task-isolated and actor-isolated uses
286 |             uploadInfo: uploadInfo,
287 |             inputFileURL: inputFileURL,
/Users/admin/builder/spi-builder-workspace/Sources/MuxUploadSDK/Upload/ChunkedFileUploader.swift:517:59: warning: sending 'chunkWorker' risks causing data races; this is an error in the Swift 6 language mode
515 |
516 |             // Do not use task in a loop it will create an memory consumption issue.
517 |             guard let chunkResult = try await chunkWorker.directUpload(chunk: chunk) as? ChunkWorker.Success else {
    |                                                           |- warning: sending 'chunkWorker' risks causing data races; this is an error in the Swift 6 language mode
    |                                                           `- note: sending 'self'-isolated 'chunkWorker' to nonisolated instance method 'directUpload(chunk:)' risks causing data races between nonisolated and 'self'-isolated uses
518 |                 throw ChunkedFileUploaderError.unexpectedChunkResult
519 |             }
/Users/admin/builder/spi-builder-workspace/Sources/MuxUploadSDK/Upload/ChunkedFileUploader.swift:356:13: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
354 |     private func notifyStateFromWorker(_ state: InternalUploadState) {
355 |         DispatchQueue.main.async {
356 |             self.notifyStateFromMain(state)
    |             |- warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
    |             `- note: task-isolated 'self' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
357 |         }
358 |     }
[10/40] Compiling MuxUploadSDK UploadInfo.swift
/Users/admin/builder/spi-builder-workspace/Sources/MuxUploadSDK/Upload/ChunkedFileUploader.swift:102:34: 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
100 |
101 |     private func beginUpload() {
102 |         let task = Task.detached { [self] in
    |                                  `- 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
103 |
104 |             let asset = AVAsset(url: inputFileURL)
    |                                      `- note: closure captures 'self' which is accessible to code in the current task
105 |
106 |             var duration: CMTime
/Users/admin/builder/spi-builder-workspace/Sources/MuxUploadSDK/Upload/ChunkedFileUploader.swift:203:34: 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
201 |
202 |     private func beginUpload(duration: CMTime) {
203 |         let task = Task.detached { [self] in
    |                                  `- 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
204 |             do {
205 |                 // It's fine if it's already open, that's handled by ignoring the call
206 |                 let fileSize = try FileManager.default.fileSizeOfItem(
207 |                     atPath: inputFileURL.path
    |                             `- note: closure captures 'self' which is accessible to code in the current task
208 |                 )
209 |                 let result = try await makeWorker().performUpload()
/Users/admin/builder/spi-builder-workspace/Sources/MuxUploadSDK/Upload/ChunkedFileUploader.swift:285:16: warning: sending 'self.uploadInfo' risks causing data races; this is an error in the Swift 6 language mode
283 |
284 |     private func makeWorker() -> Worker {
285 |         return Worker(
    |                |- warning: sending 'self.uploadInfo' risks causing data races; this is an error in the Swift 6 language mode
    |                `- note: sending task-isolated 'self.uploadInfo' to actor-isolated initializer 'init(uploadInfo:inputFileURL:chunkedFile:progress:startByte:_:)' risks causing data races between actor-isolated and task-isolated uses
286 |             uploadInfo: uploadInfo,
287 |             inputFileURL: inputFileURL,
/Users/admin/builder/spi-builder-workspace/Sources/MuxUploadSDK/Upload/ChunkedFileUploader.swift:285:16: warning: sending 'self.file' risks causing data races; this is an error in the Swift 6 language mode
283 |
284 |     private func makeWorker() -> Worker {
285 |         return Worker(
    |                |- warning: sending 'self.file' risks causing data races; this is an error in the Swift 6 language mode
    |                `- note: sending task-isolated 'self.file' to actor-isolated initializer 'init(uploadInfo:inputFileURL:chunkedFile:progress:startByte:_:)' risks causing data races between actor-isolated and task-isolated uses
286 |             uploadInfo: uploadInfo,
287 |             inputFileURL: inputFileURL,
/Users/admin/builder/spi-builder-workspace/Sources/MuxUploadSDK/Upload/ChunkedFileUploader.swift:285:16: warning: sending value of non-Sendable type '(Progress, TimeInterval, TimeInterval, UInt64?) -> Void' (aka '(Progress, Double, Double, Optional<UInt64>) -> ()') risks causing data races; this is an error in the Swift 6 language mode
283 |
284 |     private func makeWorker() -> Worker {
285 |         return Worker(
    |                |- warning: sending value of non-Sendable type '(Progress, TimeInterval, TimeInterval, UInt64?) -> Void' (aka '(Progress, Double, Double, Optional<UInt64>) -> ()') risks causing data races; this is an error in the Swift 6 language mode
    |                `- note: sending task-isolated value of non-Sendable type '(Progress, TimeInterval, TimeInterval, UInt64?) -> Void' (aka '(Progress, Double, Double, Optional<UInt64>) -> ()') to actor-isolated initializer 'init(uploadInfo:inputFileURL:chunkedFile:progress:startByte:_:)' risks causing races in between task-isolated and actor-isolated uses
286 |             uploadInfo: uploadInfo,
287 |             inputFileURL: inputFileURL,
/Users/admin/builder/spi-builder-workspace/Sources/MuxUploadSDK/Upload/ChunkedFileUploader.swift:517:59: warning: sending 'chunkWorker' risks causing data races; this is an error in the Swift 6 language mode
515 |
516 |             // Do not use task in a loop it will create an memory consumption issue.
517 |             guard let chunkResult = try await chunkWorker.directUpload(chunk: chunk) as? ChunkWorker.Success else {
    |                                                           |- warning: sending 'chunkWorker' risks causing data races; this is an error in the Swift 6 language mode
    |                                                           `- note: sending 'self'-isolated 'chunkWorker' to nonisolated instance method 'directUpload(chunk:)' risks causing data races between nonisolated and 'self'-isolated uses
518 |                 throw ChunkedFileUploaderError.unexpectedChunkResult
519 |             }
/Users/admin/builder/spi-builder-workspace/Sources/MuxUploadSDK/Upload/ChunkedFileUploader.swift:356:13: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
354 |     private func notifyStateFromWorker(_ state: InternalUploadState) {
355 |         DispatchQueue.main.async {
356 |             self.notifyStateFromMain(state)
    |             |- warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
    |             `- note: task-isolated 'self' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
357 |         }
358 |     }
[11/40] Compiling MuxUploadSDK UploadPersistence.swift
/Users/admin/builder/spi-builder-workspace/Sources/MuxUploadSDK/Upload/ChunkedFileUploader.swift:102:34: 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
100 |
101 |     private func beginUpload() {
102 |         let task = Task.detached { [self] in
    |                                  `- 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
103 |
104 |             let asset = AVAsset(url: inputFileURL)
    |                                      `- note: closure captures 'self' which is accessible to code in the current task
105 |
106 |             var duration: CMTime
/Users/admin/builder/spi-builder-workspace/Sources/MuxUploadSDK/Upload/ChunkedFileUploader.swift:203:34: 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
201 |
202 |     private func beginUpload(duration: CMTime) {
203 |         let task = Task.detached { [self] in
    |                                  `- 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
204 |             do {
205 |                 // It's fine if it's already open, that's handled by ignoring the call
206 |                 let fileSize = try FileManager.default.fileSizeOfItem(
207 |                     atPath: inputFileURL.path
    |                             `- note: closure captures 'self' which is accessible to code in the current task
208 |                 )
209 |                 let result = try await makeWorker().performUpload()
/Users/admin/builder/spi-builder-workspace/Sources/MuxUploadSDK/Upload/ChunkedFileUploader.swift:285:16: warning: sending 'self.uploadInfo' risks causing data races; this is an error in the Swift 6 language mode
283 |
284 |     private func makeWorker() -> Worker {
285 |         return Worker(
    |                |- warning: sending 'self.uploadInfo' risks causing data races; this is an error in the Swift 6 language mode
    |                `- note: sending task-isolated 'self.uploadInfo' to actor-isolated initializer 'init(uploadInfo:inputFileURL:chunkedFile:progress:startByte:_:)' risks causing data races between actor-isolated and task-isolated uses
286 |             uploadInfo: uploadInfo,
287 |             inputFileURL: inputFileURL,
/Users/admin/builder/spi-builder-workspace/Sources/MuxUploadSDK/Upload/ChunkedFileUploader.swift:285:16: warning: sending 'self.file' risks causing data races; this is an error in the Swift 6 language mode
283 |
284 |     private func makeWorker() -> Worker {
285 |         return Worker(
    |                |- warning: sending 'self.file' risks causing data races; this is an error in the Swift 6 language mode
    |                `- note: sending task-isolated 'self.file' to actor-isolated initializer 'init(uploadInfo:inputFileURL:chunkedFile:progress:startByte:_:)' risks causing data races between actor-isolated and task-isolated uses
286 |             uploadInfo: uploadInfo,
287 |             inputFileURL: inputFileURL,
/Users/admin/builder/spi-builder-workspace/Sources/MuxUploadSDK/Upload/ChunkedFileUploader.swift:285:16: warning: sending value of non-Sendable type '(Progress, TimeInterval, TimeInterval, UInt64?) -> Void' (aka '(Progress, Double, Double, Optional<UInt64>) -> ()') risks causing data races; this is an error in the Swift 6 language mode
283 |
284 |     private func makeWorker() -> Worker {
285 |         return Worker(
    |                |- warning: sending value of non-Sendable type '(Progress, TimeInterval, TimeInterval, UInt64?) -> Void' (aka '(Progress, Double, Double, Optional<UInt64>) -> ()') risks causing data races; this is an error in the Swift 6 language mode
    |                `- note: sending task-isolated value of non-Sendable type '(Progress, TimeInterval, TimeInterval, UInt64?) -> Void' (aka '(Progress, Double, Double, Optional<UInt64>) -> ()') to actor-isolated initializer 'init(uploadInfo:inputFileURL:chunkedFile:progress:startByte:_:)' risks causing races in between task-isolated and actor-isolated uses
286 |             uploadInfo: uploadInfo,
287 |             inputFileURL: inputFileURL,
/Users/admin/builder/spi-builder-workspace/Sources/MuxUploadSDK/Upload/ChunkedFileUploader.swift:517:59: warning: sending 'chunkWorker' risks causing data races; this is an error in the Swift 6 language mode
515 |
516 |             // Do not use task in a loop it will create an memory consumption issue.
517 |             guard let chunkResult = try await chunkWorker.directUpload(chunk: chunk) as? ChunkWorker.Success else {
    |                                                           |- warning: sending 'chunkWorker' risks causing data races; this is an error in the Swift 6 language mode
    |                                                           `- note: sending 'self'-isolated 'chunkWorker' to nonisolated instance method 'directUpload(chunk:)' risks causing data races between nonisolated and 'self'-isolated uses
518 |                 throw ChunkedFileUploaderError.unexpectedChunkResult
519 |             }
/Users/admin/builder/spi-builder-workspace/Sources/MuxUploadSDK/Upload/ChunkedFileUploader.swift:356:13: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
354 |     private func notifyStateFromWorker(_ state: InternalUploadState) {
355 |         DispatchQueue.main.async {
356 |             self.notifyStateFromMain(state)
    |             |- warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
    |             `- note: task-isolated 'self' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
357 |         }
358 |     }
[12/40] Compiling MuxUploadSDK Bundle+Reporting.swift
[13/40] Compiling MuxUploadSDK FileManager+FileOperations.swift
[14/40] Compiling MuxUploadSDK NSMutableURLRequest+Reporting.swift
[15/40] Compiling MuxUploadSDK StandardInputTimelineInspector.swift
[16/40] Compiling MuxUploadSDK UploadInput.swift
/Users/admin/builder/spi-builder-workspace/Sources/MuxUploadSDK/PublicAPI/DirectUpload.swift:1490:16: warning: stored property 'kind' of 'Sendable'-conforming struct 'DirectUploadError' has non-sendable type 'DirectUploadError.Kind'; this is an error in the Swift 6 language mode
1474 | public struct DirectUploadError : Error {
1475 |     /// Represents the possible error cases from a ``DirectUpload``
1476 |     public enum Kind : Int {
     |                 `- note: consider making enum 'Kind' conform to the 'Sendable' protocol
1477 |         /// The cause of the error is not known
1478 |         case unknown = -1
     :
1488 |
1489 |     public let lastStatus: DirectUpload.TransportStatus?
1490 |     public let kind: Kind
     |                `- warning: stored property 'kind' of 'Sendable'-conforming struct 'DirectUploadError' has non-sendable type 'DirectUploadError.Kind'; this is an error in the Swift 6 language mode
1491 |     public let message: String
1492 |     public let reason: Error?
/Users/admin/builder/spi-builder-workspace/Sources/MuxUploadSDK/PublicAPI/DirectUpload.swift:109:22: warning: non-sendable result type 'Result' cannot be sent from nonisolated context in call to parameter 'operation'; this is an error in the Swift 6 language mode
 104 |     private var waiters: [CheckedContinuation<Void, Never>] = []
 105 |
 106 |     func coordinate<Result>(_ operation: () async -> Result) async -> Result {
     |                     `- note: consider making generic parameter 'Result' conform to the 'Sendable' protocol
 107 |         await acquire()
 108 |         defer { release() }
 109 |         return await operation()
     |                      `- warning: non-sendable result type 'Result' cannot be sent from nonisolated context in call to parameter 'operation'; this is an error in the Swift 6 language mode
 110 |     }
 111 |
/Users/admin/builder/spi-builder-workspace/Sources/MuxUploadSDK/PublicAPI/DirectUpload.swift:157:31: 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
 155 |         }
 156 |         self.continuation = continuation
 157 |         self.processor = Task { [weak owner] in
     |                               `- 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
 158 |             for await command in stream {
 159 |                 guard let owner else { return }
     |                           `- note: closure captures 'owner' which is accessible to code in the current task
 160 |                 switch command {
 161 |                 case .start(let forceRestart):
/Users/admin/builder/spi-builder-workspace/Sources/MuxUploadSDK/PublicAPI/DirectUpload.swift:702:14: 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
 700 |         input.status = .started(input.sourceAsset, input.uploadInfo)
 701 |         let sourceAsset = input.sourceAsset
 702 |         Task { [weak self] in
     |              `- 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
 703 |             await self?.startInspection(
     |                   `- note: closure captures 'self' which is accessible to code in the current task
 704 |                 sourceAsset: sourceAsset,
 705 |                 attempt: attempt
/Users/admin/builder/spi-builder-workspace/Sources/MuxUploadSDK/PublicAPI/DirectUpload.swift:171:26: 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
 169 |                     // code. Keep consuming cancellation commands while the
 170 |                     // lifecycle actor arbitrates this commit independently.
 171 |                     Task { [weak owner] in
     |                          `- 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
 172 |                         let didCommit = await owner?.processTransportCommit(
     |                                               `- note: closure captures 'owner' which is accessible to code in the current task
 173 |                             videoFile: videoFile,
 174 |                             duration: duration,
/Users/admin/builder/spi-builder-workspace/Sources/MuxUploadSDK/PublicAPI/DirectUpload.swift:1128:78: warning: sending value of non-Sendable type '() async -> DirectUploadPreparationLifecycle.TransportCommitResult' risks causing data races; this is an error in the Swift 6 language mode
1126 |     ) async -> Bool {
1127 |         while await preparationLifecycle.waitUntilTransportAllowed(for: attempt) {
1128 |             let result = await DirectUploadTransportCommitCoordinator.shared.coordinate {
     |                                                                              |- warning: sending value of non-Sendable type '() async -> DirectUploadPreparationLifecycle.TransportCommitResult' risks causing data races; this is an error in the Swift 6 language mode
     |                                                                              `- note: sending task-isolated value of non-Sendable type '() async -> DirectUploadPreparationLifecycle.TransportCommitResult' to actor-isolated instance method 'coordinate' risks causing races in between task-isolated and actor-isolated uses
1129 |                 if self.manageBySDK, attempt.allowsWorkerReuse,
1130 |                    let existingWorker = self.uploadManager.findChunkedFileUploader(
/Users/admin/builder/spi-builder-workspace/Sources/MuxUploadSDK/PublicAPI/DirectUpload.swift:1038:42: warning: sending value of non-Sendable type '() -> ()' risks causing data races; this is an error in the Swift 6 language mode
1036 |         attempt: DirectUploadPreparationLifecycle.Attempt
1037 |     ) async {
1038 |         guard await preparationLifecycle.performIfActive(for: attempt, {
     |                                          |- warning: sending value of non-Sendable type '() -> ()' risks causing data races; this is an error in the Swift 6 language mode
     |                                          `- note: sending task-isolated value of non-Sendable type '() -> ()' to actor-isolated instance method 'performIfActive(for:_:)' risks causing races in between task-isolated and actor-isolated uses
1039 |             input.status = .standardizationFailed(sourceAsset, input.uploadInfo)
1040 |         }) else { return }
/Users/admin/builder/spi-builder-workspace/Sources/MuxUploadSDK/PublicAPI/DirectUpload.swift:876:42: warning: sending value of non-Sendable type '() -> ()' risks causing data races; this is an error in the Swift 6 language mode
 874 |         }
 875 |
 876 |         guard await preparationLifecycle.performIfActive(for: attempt, {
     |                                          |- warning: sending value of non-Sendable type '() -> ()' risks causing data races; this is an error in the Swift 6 language mode
     |                                          `- note: sending task-isolated value of non-Sendable type '() -> ()' to actor-isolated instance method 'performIfActive(for:_:)' risks causing races in between task-isolated and actor-isolated uses
 877 |             input.status = .standardizing(sourceAsset, input.uploadInfo)
 878 |         }) else { return }
/Users/admin/builder/spi-builder-workspace/Sources/MuxUploadSDK/PublicAPI/DirectUpload.swift:979:46: warning: sending value of non-Sendable type '() -> ()' risks causing data races; this is an error in the Swift 6 language mode
 977 |                 uploadURL: uploadURL
 978 |             )
 979 |             guard await preparationLifecycle.performIfActive(for: attempt, {
     |                                              |- warning: sending value of non-Sendable type '() -> ()' risks causing data races; this is an error in the Swift 6 language mode
     |                                              `- note: sending task-isolated value of non-Sendable type '() -> ()' to actor-isolated instance method 'performIfActive(for:_:)' risks causing races in between task-isolated and actor-isolated uses
 980 |                 input.status = .standardizationSucceeded(
 981 |                     source: sourceAsset,
/Users/admin/builder/spi-builder-workspace/Sources/MuxUploadSDK/PublicAPI/DirectUpload.swift:726:42: warning: sending value of non-Sendable type '() -> ()' risks causing data races; this is an error in the Swift 6 language mode
 724 |             atPath: sourceAsset.url.path
 725 |         )) ?? 0
 726 |         guard await preparationLifecycle.performIfActive(for: attempt, {
     |                                          |- warning: sending value of non-Sendable type '() -> ()' risks causing data races; this is an error in the Swift 6 language mode
     |                                          `- note: sending task-isolated value of non-Sendable type '() -> ()' to actor-isolated instance method 'performIfActive(for:_:)' risks causing races in between task-isolated and actor-isolated uses
 727 |             input.status = .underInspection(sourceAsset, input.uploadInfo)
 728 |         }) else { return }
/Users/admin/builder/spi-builder-workspace/Sources/MuxUploadSDK/PublicAPI/DirectUpload.swift:1133:60: warning: sending value of non-Sendable type '() -> Void' risks causing data races; this is an error in the Swift 6 language mode
1131 |                        inputFileURL: self.input.sourceAsset.url
1132 |                    ) {
1133 |                     return await self.preparationLifecycle.commitTransport(for: attempt) {
     |                                                            |- warning: sending value of non-Sendable type '() -> Void' risks causing data races; this is an error in the Swift 6 language mode
     |                                                            `- note: sending task-isolated value of non-Sendable type '() -> Void' to actor-isolated instance method 'commitTransport(for:_:)' risks causing races in between task-isolated and actor-isolated uses
1134 |                         SDKLogger.logger?.warning(
1135 |                             "Reusing the active upload for this input file"
/Users/admin/builder/spi-builder-workspace/Sources/MuxUploadSDK/PublicAPI/DirectUpload.swift:1159:68: warning: sending value of non-Sendable type '() -> Void' risks causing data races; this is an error in the Swift 6 language mode
1157 |                     completedUnitCount
1158 |                 )
1159 |                 let commitResult = await self.preparationLifecycle.commitTransport(
     |                                                                    |- warning: sending value of non-Sendable type '() -> Void' risks causing data races; this is an error in the Swift 6 language mode
     |                                                                    `- note: sending task-isolated value of non-Sendable type '() -> Void' to actor-isolated instance method 'commitTransport(for:_:)' risks causing races in between task-isolated and actor-isolated uses
1160 |                     for: attempt
1161 |                 ) {
[17/40] Compiling MuxUploadSDK DirectUpload+AVFoundation.swift
/Users/admin/builder/spi-builder-workspace/Sources/MuxUploadSDK/PublicAPI/DirectUpload.swift:1490:16: warning: stored property 'kind' of 'Sendable'-conforming struct 'DirectUploadError' has non-sendable type 'DirectUploadError.Kind'; this is an error in the Swift 6 language mode
1474 | public struct DirectUploadError : Error {
1475 |     /// Represents the possible error cases from a ``DirectUpload``
1476 |     public enum Kind : Int {
     |                 `- note: consider making enum 'Kind' conform to the 'Sendable' protocol
1477 |         /// The cause of the error is not known
1478 |         case unknown = -1
     :
1488 |
1489 |     public let lastStatus: DirectUpload.TransportStatus?
1490 |     public let kind: Kind
     |                `- warning: stored property 'kind' of 'Sendable'-conforming struct 'DirectUploadError' has non-sendable type 'DirectUploadError.Kind'; this is an error in the Swift 6 language mode
1491 |     public let message: String
1492 |     public let reason: Error?
/Users/admin/builder/spi-builder-workspace/Sources/MuxUploadSDK/PublicAPI/DirectUpload.swift:109:22: warning: non-sendable result type 'Result' cannot be sent from nonisolated context in call to parameter 'operation'; this is an error in the Swift 6 language mode
 104 |     private var waiters: [CheckedContinuation<Void, Never>] = []
 105 |
 106 |     func coordinate<Result>(_ operation: () async -> Result) async -> Result {
     |                     `- note: consider making generic parameter 'Result' conform to the 'Sendable' protocol
 107 |         await acquire()
 108 |         defer { release() }
 109 |         return await operation()
     |                      `- warning: non-sendable result type 'Result' cannot be sent from nonisolated context in call to parameter 'operation'; this is an error in the Swift 6 language mode
 110 |     }
 111 |
/Users/admin/builder/spi-builder-workspace/Sources/MuxUploadSDK/PublicAPI/DirectUpload.swift:157:31: 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
 155 |         }
 156 |         self.continuation = continuation
 157 |         self.processor = Task { [weak owner] in
     |                               `- 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
 158 |             for await command in stream {
 159 |                 guard let owner else { return }
     |                           `- note: closure captures 'owner' which is accessible to code in the current task
 160 |                 switch command {
 161 |                 case .start(let forceRestart):
/Users/admin/builder/spi-builder-workspace/Sources/MuxUploadSDK/PublicAPI/DirectUpload.swift:702:14: 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
 700 |         input.status = .started(input.sourceAsset, input.uploadInfo)
 701 |         let sourceAsset = input.sourceAsset
 702 |         Task { [weak self] in
     |              `- 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
 703 |             await self?.startInspection(
     |                   `- note: closure captures 'self' which is accessible to code in the current task
 704 |                 sourceAsset: sourceAsset,
 705 |                 attempt: attempt
/Users/admin/builder/spi-builder-workspace/Sources/MuxUploadSDK/PublicAPI/DirectUpload.swift:171:26: 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
 169 |                     // code. Keep consuming cancellation commands while the
 170 |                     // lifecycle actor arbitrates this commit independently.
 171 |                     Task { [weak owner] in
     |                          `- 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
 172 |                         let didCommit = await owner?.processTransportCommit(
     |                                               `- note: closure captures 'owner' which is accessible to code in the current task
 173 |                             videoFile: videoFile,
 174 |                             duration: duration,
/Users/admin/builder/spi-builder-workspace/Sources/MuxUploadSDK/PublicAPI/DirectUpload.swift:1128:78: warning: sending value of non-Sendable type '() async -> DirectUploadPreparationLifecycle.TransportCommitResult' risks causing data races; this is an error in the Swift 6 language mode
1126 |     ) async -> Bool {
1127 |         while await preparationLifecycle.waitUntilTransportAllowed(for: attempt) {
1128 |             let result = await DirectUploadTransportCommitCoordinator.shared.coordinate {
     |                                                                              |- warning: sending value of non-Sendable type '() async -> DirectUploadPreparationLifecycle.TransportCommitResult' risks causing data races; this is an error in the Swift 6 language mode
     |                                                                              `- note: sending task-isolated value of non-Sendable type '() async -> DirectUploadPreparationLifecycle.TransportCommitResult' to actor-isolated instance method 'coordinate' risks causing races in between task-isolated and actor-isolated uses
1129 |                 if self.manageBySDK, attempt.allowsWorkerReuse,
1130 |                    let existingWorker = self.uploadManager.findChunkedFileUploader(
/Users/admin/builder/spi-builder-workspace/Sources/MuxUploadSDK/PublicAPI/DirectUpload.swift:1038:42: warning: sending value of non-Sendable type '() -> ()' risks causing data races; this is an error in the Swift 6 language mode
1036 |         attempt: DirectUploadPreparationLifecycle.Attempt
1037 |     ) async {
1038 |         guard await preparationLifecycle.performIfActive(for: attempt, {
     |                                          |- warning: sending value of non-Sendable type '() -> ()' risks causing data races; this is an error in the Swift 6 language mode
     |                                          `- note: sending task-isolated value of non-Sendable type '() -> ()' to actor-isolated instance method 'performIfActive(for:_:)' risks causing races in between task-isolated and actor-isolated uses
1039 |             input.status = .standardizationFailed(sourceAsset, input.uploadInfo)
1040 |         }) else { return }
/Users/admin/builder/spi-builder-workspace/Sources/MuxUploadSDK/PublicAPI/DirectUpload.swift:876:42: warning: sending value of non-Sendable type '() -> ()' risks causing data races; this is an error in the Swift 6 language mode
 874 |         }
 875 |
 876 |         guard await preparationLifecycle.performIfActive(for: attempt, {
     |                                          |- warning: sending value of non-Sendable type '() -> ()' risks causing data races; this is an error in the Swift 6 language mode
     |                                          `- note: sending task-isolated value of non-Sendable type '() -> ()' to actor-isolated instance method 'performIfActive(for:_:)' risks causing races in between task-isolated and actor-isolated uses
 877 |             input.status = .standardizing(sourceAsset, input.uploadInfo)
 878 |         }) else { return }
/Users/admin/builder/spi-builder-workspace/Sources/MuxUploadSDK/PublicAPI/DirectUpload.swift:979:46: warning: sending value of non-Sendable type '() -> ()' risks causing data races; this is an error in the Swift 6 language mode
 977 |                 uploadURL: uploadURL
 978 |             )
 979 |             guard await preparationLifecycle.performIfActive(for: attempt, {
     |                                              |- warning: sending value of non-Sendable type '() -> ()' risks causing data races; this is an error in the Swift 6 language mode
     |                                              `- note: sending task-isolated value of non-Sendable type '() -> ()' to actor-isolated instance method 'performIfActive(for:_:)' risks causing races in between task-isolated and actor-isolated uses
 980 |                 input.status = .standardizationSucceeded(
 981 |                     source: sourceAsset,
/Users/admin/builder/spi-builder-workspace/Sources/MuxUploadSDK/PublicAPI/DirectUpload.swift:726:42: warning: sending value of non-Sendable type '() -> ()' risks causing data races; this is an error in the Swift 6 language mode
 724 |             atPath: sourceAsset.url.path
 725 |         )) ?? 0
 726 |         guard await preparationLifecycle.performIfActive(for: attempt, {
     |                                          |- warning: sending value of non-Sendable type '() -> ()' risks causing data races; this is an error in the Swift 6 language mode
     |                                          `- note: sending task-isolated value of non-Sendable type '() -> ()' to actor-isolated instance method 'performIfActive(for:_:)' risks causing races in between task-isolated and actor-isolated uses
 727 |             input.status = .underInspection(sourceAsset, input.uploadInfo)
 728 |         }) else { return }
/Users/admin/builder/spi-builder-workspace/Sources/MuxUploadSDK/PublicAPI/DirectUpload.swift:1133:60: warning: sending value of non-Sendable type '() -> Void' risks causing data races; this is an error in the Swift 6 language mode
1131 |                        inputFileURL: self.input.sourceAsset.url
1132 |                    ) {
1133 |                     return await self.preparationLifecycle.commitTransport(for: attempt) {
     |                                                            |- warning: sending value of non-Sendable type '() -> Void' risks causing data races; this is an error in the Swift 6 language mode
     |                                                            `- note: sending task-isolated value of non-Sendable type '() -> Void' to actor-isolated instance method 'commitTransport(for:_:)' risks causing races in between task-isolated and actor-isolated uses
1134 |                         SDKLogger.logger?.warning(
1135 |                             "Reusing the active upload for this input file"
/Users/admin/builder/spi-builder-workspace/Sources/MuxUploadSDK/PublicAPI/DirectUpload.swift:1159:68: warning: sending value of non-Sendable type '() -> Void' risks causing data races; this is an error in the Swift 6 language mode
1157 |                     completedUnitCount
1158 |                 )
1159 |                 let commitResult = await self.preparationLifecycle.commitTransport(
     |                                                                    |- warning: sending value of non-Sendable type '() -> Void' risks causing data races; this is an error in the Swift 6 language mode
     |                                                                    `- note: sending task-isolated value of non-Sendable type '() -> Void' to actor-isolated instance method 'commitTransport(for:_:)' risks causing races in between task-isolated and actor-isolated uses
1160 |                     for: attempt
1161 |                 ) {
[18/40] Compiling MuxUploadSDK DirectUpload.swift
/Users/admin/builder/spi-builder-workspace/Sources/MuxUploadSDK/PublicAPI/DirectUpload.swift:1490:16: warning: stored property 'kind' of 'Sendable'-conforming struct 'DirectUploadError' has non-sendable type 'DirectUploadError.Kind'; this is an error in the Swift 6 language mode
1474 | public struct DirectUploadError : Error {
1475 |     /// Represents the possible error cases from a ``DirectUpload``
1476 |     public enum Kind : Int {
     |                 `- note: consider making enum 'Kind' conform to the 'Sendable' protocol
1477 |         /// The cause of the error is not known
1478 |         case unknown = -1
     :
1488 |
1489 |     public let lastStatus: DirectUpload.TransportStatus?
1490 |     public let kind: Kind
     |                `- warning: stored property 'kind' of 'Sendable'-conforming struct 'DirectUploadError' has non-sendable type 'DirectUploadError.Kind'; this is an error in the Swift 6 language mode
1491 |     public let message: String
1492 |     public let reason: Error?
/Users/admin/builder/spi-builder-workspace/Sources/MuxUploadSDK/PublicAPI/DirectUpload.swift:109:22: warning: non-sendable result type 'Result' cannot be sent from nonisolated context in call to parameter 'operation'; this is an error in the Swift 6 language mode
 104 |     private var waiters: [CheckedContinuation<Void, Never>] = []
 105 |
 106 |     func coordinate<Result>(_ operation: () async -> Result) async -> Result {
     |                     `- note: consider making generic parameter 'Result' conform to the 'Sendable' protocol
 107 |         await acquire()
 108 |         defer { release() }
 109 |         return await operation()
     |                      `- warning: non-sendable result type 'Result' cannot be sent from nonisolated context in call to parameter 'operation'; this is an error in the Swift 6 language mode
 110 |     }
 111 |
/Users/admin/builder/spi-builder-workspace/Sources/MuxUploadSDK/PublicAPI/DirectUpload.swift:157:31: 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
 155 |         }
 156 |         self.continuation = continuation
 157 |         self.processor = Task { [weak owner] in
     |                               `- 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
 158 |             for await command in stream {
 159 |                 guard let owner else { return }
     |                           `- note: closure captures 'owner' which is accessible to code in the current task
 160 |                 switch command {
 161 |                 case .start(let forceRestart):
/Users/admin/builder/spi-builder-workspace/Sources/MuxUploadSDK/PublicAPI/DirectUpload.swift:702:14: 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
 700 |         input.status = .started(input.sourceAsset, input.uploadInfo)
 701 |         let sourceAsset = input.sourceAsset
 702 |         Task { [weak self] in
     |              `- 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
 703 |             await self?.startInspection(
     |                   `- note: closure captures 'self' which is accessible to code in the current task
 704 |                 sourceAsset: sourceAsset,
 705 |                 attempt: attempt
/Users/admin/builder/spi-builder-workspace/Sources/MuxUploadSDK/PublicAPI/DirectUpload.swift:171:26: 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
 169 |                     // code. Keep consuming cancellation commands while the
 170 |                     // lifecycle actor arbitrates this commit independently.
 171 |                     Task { [weak owner] in
     |                          `- 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
 172 |                         let didCommit = await owner?.processTransportCommit(
     |                                               `- note: closure captures 'owner' which is accessible to code in the current task
 173 |                             videoFile: videoFile,
 174 |                             duration: duration,
/Users/admin/builder/spi-builder-workspace/Sources/MuxUploadSDK/PublicAPI/DirectUpload.swift:1128:78: warning: sending value of non-Sendable type '() async -> DirectUploadPreparationLifecycle.TransportCommitResult' risks causing data races; this is an error in the Swift 6 language mode
1126 |     ) async -> Bool {
1127 |         while await preparationLifecycle.waitUntilTransportAllowed(for: attempt) {
1128 |             let result = await DirectUploadTransportCommitCoordinator.shared.coordinate {
     |                                                                              |- warning: sending value of non-Sendable type '() async -> DirectUploadPreparationLifecycle.TransportCommitResult' risks causing data races; this is an error in the Swift 6 language mode
     |                                                                              `- note: sending task-isolated value of non-Sendable type '() async -> DirectUploadPreparationLifecycle.TransportCommitResult' to actor-isolated instance method 'coordinate' risks causing races in between task-isolated and actor-isolated uses
1129 |                 if self.manageBySDK, attempt.allowsWorkerReuse,
1130 |                    let existingWorker = self.uploadManager.findChunkedFileUploader(
/Users/admin/builder/spi-builder-workspace/Sources/MuxUploadSDK/PublicAPI/DirectUpload.swift:1038:42: warning: sending value of non-Sendable type '() -> ()' risks causing data races; this is an error in the Swift 6 language mode
1036 |         attempt: DirectUploadPreparationLifecycle.Attempt
1037 |     ) async {
1038 |         guard await preparationLifecycle.performIfActive(for: attempt, {
     |                                          |- warning: sending value of non-Sendable type '() -> ()' risks causing data races; this is an error in the Swift 6 language mode
     |                                          `- note: sending task-isolated value of non-Sendable type '() -> ()' to actor-isolated instance method 'performIfActive(for:_:)' risks causing races in between task-isolated and actor-isolated uses
1039 |             input.status = .standardizationFailed(sourceAsset, input.uploadInfo)
1040 |         }) else { return }
/Users/admin/builder/spi-builder-workspace/Sources/MuxUploadSDK/PublicAPI/DirectUpload.swift:876:42: warning: sending value of non-Sendable type '() -> ()' risks causing data races; this is an error in the Swift 6 language mode
 874 |         }
 875 |
 876 |         guard await preparationLifecycle.performIfActive(for: attempt, {
     |                                          |- warning: sending value of non-Sendable type '() -> ()' risks causing data races; this is an error in the Swift 6 language mode
     |                                          `- note: sending task-isolated value of non-Sendable type '() -> ()' to actor-isolated instance method 'performIfActive(for:_:)' risks causing races in between task-isolated and actor-isolated uses
 877 |             input.status = .standardizing(sourceAsset, input.uploadInfo)
 878 |         }) else { return }
/Users/admin/builder/spi-builder-workspace/Sources/MuxUploadSDK/PublicAPI/DirectUpload.swift:979:46: warning: sending value of non-Sendable type '() -> ()' risks causing data races; this is an error in the Swift 6 language mode
 977 |                 uploadURL: uploadURL
 978 |             )
 979 |             guard await preparationLifecycle.performIfActive(for: attempt, {
     |                                              |- warning: sending value of non-Sendable type '() -> ()' risks causing data races; this is an error in the Swift 6 language mode
     |                                              `- note: sending task-isolated value of non-Sendable type '() -> ()' to actor-isolated instance method 'performIfActive(for:_:)' risks causing races in between task-isolated and actor-isolated uses
 980 |                 input.status = .standardizationSucceeded(
 981 |                     source: sourceAsset,
/Users/admin/builder/spi-builder-workspace/Sources/MuxUploadSDK/PublicAPI/DirectUpload.swift:726:42: warning: sending value of non-Sendable type '() -> ()' risks causing data races; this is an error in the Swift 6 language mode
 724 |             atPath: sourceAsset.url.path
 725 |         )) ?? 0
 726 |         guard await preparationLifecycle.performIfActive(for: attempt, {
     |                                          |- warning: sending value of non-Sendable type '() -> ()' risks causing data races; this is an error in the Swift 6 language mode
     |                                          `- note: sending task-isolated value of non-Sendable type '() -> ()' to actor-isolated instance method 'performIfActive(for:_:)' risks causing races in between task-isolated and actor-isolated uses
 727 |             input.status = .underInspection(sourceAsset, input.uploadInfo)
 728 |         }) else { return }
/Users/admin/builder/spi-builder-workspace/Sources/MuxUploadSDK/PublicAPI/DirectUpload.swift:1133:60: warning: sending value of non-Sendable type '() -> Void' risks causing data races; this is an error in the Swift 6 language mode
1131 |                        inputFileURL: self.input.sourceAsset.url
1132 |                    ) {
1133 |                     return await self.preparationLifecycle.commitTransport(for: attempt) {
     |                                                            |- warning: sending value of non-Sendable type '() -> Void' risks causing data races; this is an error in the Swift 6 language mode
     |                                                            `- note: sending task-isolated value of non-Sendable type '() -> Void' to actor-isolated instance method 'commitTransport(for:_:)' risks causing races in between task-isolated and actor-isolated uses
1134 |                         SDKLogger.logger?.warning(
1135 |                             "Reusing the active upload for this input file"
/Users/admin/builder/spi-builder-workspace/Sources/MuxUploadSDK/PublicAPI/DirectUpload.swift:1159:68: warning: sending value of non-Sendable type '() -> Void' risks causing data races; this is an error in the Swift 6 language mode
1157 |                     completedUnitCount
1158 |                 )
1159 |                 let commitResult = await self.preparationLifecycle.commitTransport(
     |                                                                    |- warning: sending value of non-Sendable type '() -> Void' risks causing data races; this is an error in the Swift 6 language mode
     |                                                                    `- note: sending task-isolated value of non-Sendable type '() -> Void' to actor-isolated instance method 'commitTransport(for:_:)' risks causing races in between task-isolated and actor-isolated uses
1160 |                     for: attempt
1161 |                 ) {
[19/40] Compiling MuxUploadSDK UploadInputFormatInspectionResult.swift
/Users/admin/builder/spi-builder-workspace/Sources/MuxUploadSDK/InputInspection/UploadInputInspector.swift:126:14: 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
124 |     ) -> UploadInputInspectionOperation {
125 |         let operation = UploadInputInspectionOperation()
126 |         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
127 |             let outcome = await inspect(
128 |                 sourceInput: sourceInput,
    :
131 |             )
132 |             guard await operation.complete() else { return }
133 |             completionHandler(outcome.result, outcome.duration, outcome.error)
    |             `- note: closure captures 'completionHandler' which is accessible to code in the current task
134 |         }
135 |         return operation
[20/40] Compiling MuxUploadSDK UploadInputInspector.swift
/Users/admin/builder/spi-builder-workspace/Sources/MuxUploadSDK/InputInspection/UploadInputInspector.swift:126:14: 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
124 |     ) -> UploadInputInspectionOperation {
125 |         let operation = UploadInputInspectionOperation()
126 |         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
127 |             let outcome = await inspect(
128 |                 sourceInput: sourceInput,
    :
131 |             )
132 |             guard await operation.complete() else { return }
133 |             completionHandler(outcome.result, outcome.duration, outcome.error)
    |             `- note: closure captures 'completionHandler' which is accessible to code in the current task
134 |         }
135 |         return operation
[21/40] Compiling MuxUploadSDK UploadInputMetadataInspection.swift
/Users/admin/builder/spi-builder-workspace/Sources/MuxUploadSDK/InputInspection/UploadInputInspector.swift:126:14: 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
124 |     ) -> UploadInputInspectionOperation {
125 |         let operation = UploadInputInspectionOperation()
126 |         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
127 |             let outcome = await inspect(
128 |                 sourceInput: sourceInput,
    :
131 |             )
132 |             guard await operation.complete() else { return }
133 |             completionHandler(outcome.result, outcome.duration, outcome.error)
    |             `- note: closure captures 'completionHandler' which is accessible to code in the current task
134 |         }
135 |         return operation
[22/40] Compiling MuxUploadSDK UploadInputSampleInspection.swift
/Users/admin/builder/spi-builder-workspace/Sources/MuxUploadSDK/InputInspection/UploadInputInspector.swift:126:14: 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
124 |     ) -> UploadInputInspectionOperation {
125 |         let operation = UploadInputInspectionOperation()
126 |         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
127 |             let outcome = await inspect(
128 |                 sourceInput: sourceInput,
    :
131 |             )
132 |             guard await operation.complete() else { return }
133 |             completionHandler(outcome.result, outcome.duration, outcome.error)
    |             `- note: closure captures 'completionHandler' which is accessible to code in the current task
134 |         }
135 |         return operation
[23/40] Compiling MuxUploadSDK DirectUploadPreparation.swift
[24/40] Compiling MuxUploadSDK StandardInputOutputValidator.swift
[25/40] Compiling MuxUploadSDK StandardInputPlanner.swift
[26/40] Compiling MuxUploadSDK StandardInputPolicy.swift
[27/40] Compiling MuxUploadSDK Reporter.swift
/Users/admin/builder/spi-builder-workspace/Sources/MuxUploadSDK/InternalUtilities/Reporting/Reporter.swift:40:7: warning: non-final class 'Reporter' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
 38 | }
 39 |
 40 | class Reporter: NSObject {
    |       `- warning: non-final class 'Reporter' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
 41 |
 42 |     static let shared: Reporter = Reporter()
/Users/admin/builder/spi-builder-workspace/Sources/MuxUploadSDK/InternalUtilities/Reporting/Reporter.swift:44:9: warning: stored property 'session' of 'Sendable'-conforming class 'Reporter' is mutable; this is an error in the Swift 6 language mode
 42 |     static let shared: Reporter = Reporter()
 43 |
 44 |     var session: URLSession?
    |         `- warning: stored property 'session' of 'Sendable'-conforming class 'Reporter' is mutable; this is an error in the Swift 6 language mode
 45 |
 46 |     var pendingEvents: [ObjectIdentifier: Codable] = [:]
[28/40] Compiling MuxUploadSDK UploadFailedEvent.swift
/Users/admin/builder/spi-builder-workspace/Sources/MuxUploadSDK/InternalUtilities/Reporting/Reporter.swift:40:7: warning: non-final class 'Reporter' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
 38 | }
 39 |
 40 | class Reporter: NSObject {
    |       `- warning: non-final class 'Reporter' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
 41 |
 42 |     static let shared: Reporter = Reporter()
/Users/admin/builder/spi-builder-workspace/Sources/MuxUploadSDK/InternalUtilities/Reporting/Reporter.swift:44:9: warning: stored property 'session' of 'Sendable'-conforming class 'Reporter' is mutable; this is an error in the Swift 6 language mode
 42 |     static let shared: Reporter = Reporter()
 43 |
 44 |     var session: URLSession?
    |         `- warning: stored property 'session' of 'Sendable'-conforming class 'Reporter' is mutable; this is an error in the Swift 6 language mode
 45 |
 46 |     var pendingEvents: [ObjectIdentifier: Codable] = [:]
[29/40] Compiling MuxUploadSDK UploadSucceededEvent.swift
/Users/admin/builder/spi-builder-workspace/Sources/MuxUploadSDK/InternalUtilities/Reporting/Reporter.swift:40:7: warning: non-final class 'Reporter' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
 38 | }
 39 |
 40 | class Reporter: NSObject {
    |       `- warning: non-final class 'Reporter' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
 41 |
 42 |     static let shared: Reporter = Reporter()
/Users/admin/builder/spi-builder-workspace/Sources/MuxUploadSDK/InternalUtilities/Reporting/Reporter.swift:44:9: warning: stored property 'session' of 'Sendable'-conforming class 'Reporter' is mutable; this is an error in the Swift 6 language mode
 42 |     static let shared: Reporter = Reporter()
 43 |
 44 |     var session: URLSession?
    |         `- warning: stored property 'session' of 'Sendable'-conforming class 'Reporter' is mutable; this is an error in the Swift 6 language mode
 45 |
 46 |     var pendingEvents: [ObjectIdentifier: Codable] = [:]
[30/40] Compiling MuxUploadSDK DirectUploadManager.swift
/Users/admin/builder/spi-builder-workspace/Sources/MuxUploadSDK/PublicAPI/DirectUploadManager.swift:259:23: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'DirectUploadManager' may have shared mutable state; this is an error in the Swift 6 language mode
 27 | /// ```
 28 | ///
 29 | public final class DirectUploadManager {
    |                    `- note: class 'DirectUploadManager' does not conform to the 'Sendable' protocol
 30 |
 31 |     private struct UploadStorage: Equatable, Hashable {
    :
257 |
258 |     /// The shared instance of this object that should be used.
259 |     public static let shared = DirectUploadManager()
    |                       |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'DirectUploadManager' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: add '@MainActor' to make static property 'shared' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
260 |
261 |     private struct FileUploaderDelegate : ChunkedFileUploaderDelegate {
/Users/admin/builder/spi-builder-workspace/Sources/MuxUploadSDK/PublicAPI/DirectUploadManager.swift:145:46: warning: non-sendable result type 'ChunkedFileUploader?' cannot be sent from actor-isolated context in call to instance method 'getUpload(ofFileAt:)'; this is an error in the Swift 6 language mode
143 |     /// If no upload was found in the cache, this method returns nil without taking any action.
144 |     public func resumeDirectUpload(ofFile url: URL) async -> DirectUpload? {
145 |         let fileUploader = await uploadActor.getUpload(ofFileAt: url)
    |                                              `- warning: non-sendable result type 'ChunkedFileUploader?' cannot be sent from actor-isolated context in call to instance method 'getUpload(ofFileAt:)'; this is an error in the Swift 6 language mode
146 |         if let nonNilUploader = fileUploader {
147 |             nonNilUploader.addDelegate(
/Users/admin/builder/spi-builder-workspace/Sources/MuxUploadSDK/Upload/ChunkedFileUploader.swift:14:7: note: class 'ChunkedFileUploader' does not conform to the 'Sendable' protocol
 12 | /// This object is not externally thread-safe. Access its methods only from the main thread
 13 | /// If you need to start this over again from the beginning, make a new object (and cancel your old one)
 14 | class ChunkedFileUploader {
    |       `- note: class 'ChunkedFileUploader' does not conform to the 'Sendable' protocol
 15 |
 16 |     private(set) var currentState: InternalUploadState = .ready
/Users/admin/builder/spi-builder-workspace/Sources/MuxUploadSDK/PublicAPI/DirectUploadManager.swift:177:45: warning: non-sendable result type '[ChunkedFileUploader]' cannot be sent from actor-isolated context in call to instance method 'getAllUploads()'; this is an error in the Swift 6 language mode
175 |     public func resumeAllDirectUploads() {
176 |         Task.detached { [self] in
177 |             for upload in await uploadActor.getAllUploads() {
    |                                             `- warning: non-sendable result type '[ChunkedFileUploader]' cannot be sent from actor-isolated context in call to instance method 'getAllUploads()'; this is an error in the Swift 6 language mode
178 |                 upload.addDelegate(
179 |                     withToken: UUID().uuidString,
/Users/admin/builder/spi-builder-workspace/Sources/MuxUploadSDK/Upload/ChunkedFileUploader.swift:14:7: note: class 'ChunkedFileUploader' does not conform to the 'Sendable' protocol
 12 | /// This object is not externally thread-safe. Access its methods only from the main thread
 13 | /// If you need to start this over again from the beginning, make a new object (and cancel your old one)
 14 | class ChunkedFileUploader {
    |       `- note: class 'ChunkedFileUploader' does not conform to the 'Sendable' protocol
 15 |
 16 |     private(set) var currentState: InternalUploadState = .ready
/Users/admin/builder/spi-builder-workspace/Sources/MuxUploadSDK/PublicAPI/DirectUploadManager.swift:313:22: warning: type 'ChunkedFileUploader' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
311 |     func getUpload(uploadID: String) async -> ChunkedFileUploader? {
312 |         // reminder: doesn't start the uploader, just makes it
313 |         return await Task<ChunkedFileUploader?, Never> {
    |                      `- warning: type 'ChunkedFileUploader' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
314 |             try? persistence
315 |                 .readEntry(uploadID: uploadID)
/Users/admin/builder/spi-builder-workspace/Sources/MuxUploadSDK/Upload/ChunkedFileUploader.swift:14:7: note: class 'ChunkedFileUploader' does not conform to the 'Sendable' protocol
 12 | /// This object is not externally thread-safe. Access its methods only from the main thread
 13 | /// If you need to start this over again from the beginning, make a new object (and cancel your old one)
 14 | class ChunkedFileUploader {
    |       `- note: class 'ChunkedFileUploader' does not conform to the 'Sendable' protocol
 15 |
 16 |     private(set) var currentState: InternalUploadState = .ready
/Users/admin/builder/spi-builder-workspace/Sources/MuxUploadSDK/PublicAPI/DirectUploadManager.swift:313:54: warning: type 'ChunkedFileUploader' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
311 |     func getUpload(uploadID: String) async -> ChunkedFileUploader? {
312 |         // reminder: doesn't start the uploader, just makes it
313 |         return await Task<ChunkedFileUploader?, Never> {
    |                                                      `- warning: type 'ChunkedFileUploader' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
314 |             try? persistence
315 |                 .readEntry(uploadID: uploadID)
/Users/admin/builder/spi-builder-workspace/Sources/MuxUploadSDK/Upload/ChunkedFileUploader.swift:14:7: note: class 'ChunkedFileUploader' does not conform to the 'Sendable' protocol
 12 | /// This object is not externally thread-safe. Access its methods only from the main thread
 13 | /// If you need to start this over again from the beginning, make a new object (and cancel your old one)
 14 | class ChunkedFileUploader {
    |       `- note: class 'ChunkedFileUploader' does not conform to the 'Sendable' protocol
 15 |
 16 |     private(set) var currentState: InternalUploadState = .ready
/Users/admin/builder/spi-builder-workspace/Sources/MuxUploadSDK/PublicAPI/DirectUploadManager.swift:321:11: warning: type 'ChunkedFileUploader' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
319 |                     )
320 |                 })
321 |         }.value
    |           `- warning: type 'ChunkedFileUploader' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
322 |     }
323 |
/Users/admin/builder/spi-builder-workspace/Sources/MuxUploadSDK/Upload/ChunkedFileUploader.swift:14:7: note: class 'ChunkedFileUploader' does not conform to the 'Sendable' protocol
 12 | /// This object is not externally thread-safe. Access its methods only from the main thread
 13 | /// If you need to start this over again from the beginning, make a new object (and cancel your old one)
 14 | class ChunkedFileUploader {
    |       `- note: class 'ChunkedFileUploader' does not conform to the 'Sendable' protocol
 15 |
 16 |     private(set) var currentState: InternalUploadState = .ready
/Users/admin/builder/spi-builder-workspace/Sources/MuxUploadSDK/PublicAPI/DirectUploadManager.swift:313:22: warning: non-sendable type 'Task<ChunkedFileUploader?, Never>' cannot exit actor-isolated context in call to nonisolated property 'value'; this is an error in the Swift 6 language mode
311 |     func getUpload(uploadID: String) async -> ChunkedFileUploader? {
312 |         // reminder: doesn't start the uploader, just makes it
313 |         return await Task<ChunkedFileUploader?, Never> {
    |                      `- warning: non-sendable type 'Task<ChunkedFileUploader?, Never>' cannot exit actor-isolated context in call to nonisolated property 'value'; this is an error in the Swift 6 language mode
314 |             try? persistence
315 |                 .readEntry(uploadID: uploadID)
/Users/admin/builder/spi-builder-workspace/Sources/MuxUploadSDK/Upload/ChunkedFileUploader.swift:14:7: note: class 'ChunkedFileUploader' does not conform to the 'Sendable' protocol
 12 | /// This object is not externally thread-safe. Access its methods only from the main thread
 13 | /// If you need to start this over again from the beginning, make a new object (and cancel your old one)
 14 | class ChunkedFileUploader {
    |       `- note: class 'ChunkedFileUploader' does not conform to the 'Sendable' protocol
 15 |
 16 |     private(set) var currentState: InternalUploadState = .ready
/Users/admin/builder/spi-builder-workspace/Sources/MuxUploadSDK/PublicAPI/DirectUploadManager.swift:321:11: warning: non-sendable type 'ChunkedFileUploader?' of nonisolated property 'value' cannot be sent to actor-isolated context; this is an error in the Swift 6 language mode
319 |                     )
320 |                 })
321 |         }.value
    |           `- warning: non-sendable type 'ChunkedFileUploader?' of nonisolated property 'value' cannot be sent to actor-isolated context; this is an error in the Swift 6 language mode
322 |     }
323 |
/Users/admin/builder/spi-builder-workspace/Sources/MuxUploadSDK/Upload/ChunkedFileUploader.swift:14:7: note: class 'ChunkedFileUploader' does not conform to the 'Sendable' protocol
 12 | /// This object is not externally thread-safe. Access its methods only from the main thread
 13 | /// If you need to start this over again from the beginning, make a new object (and cancel your old one)
 14 | class ChunkedFileUploader {
    |       `- note: class 'ChunkedFileUploader' does not conform to the 'Sendable' protocol
 15 |
 16 |     private(set) var currentState: InternalUploadState = .ready
/Users/admin/builder/spi-builder-workspace/Sources/MuxUploadSDK/PublicAPI/DirectUploadManager.swift:325:22: warning: type 'ChunkedFileUploader' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
323 |
324 |     func getUpload(ofFileAt: URL) async -> ChunkedFileUploader? {
325 |         return await Task<ChunkedFileUploader?, Never> {
    |                      `- warning: type 'ChunkedFileUploader' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
326 |             guard let matchingEntry = try? persistence.readAll().first(
327 |                 where: { $0.inputFileURL == ofFileAt || $0.uploadInfo.sourceFileURL == ofFileAt }
/Users/admin/builder/spi-builder-workspace/Sources/MuxUploadSDK/Upload/ChunkedFileUploader.swift:14:7: note: class 'ChunkedFileUploader' does not conform to the 'Sendable' protocol
 12 | /// This object is not externally thread-safe. Access its methods only from the main thread
 13 | /// If you need to start this over again from the beginning, make a new object (and cancel your old one)
 14 | class ChunkedFileUploader {
    |       `- note: class 'ChunkedFileUploader' does not conform to the 'Sendable' protocol
 15 |
 16 |     private(set) var currentState: InternalUploadState = .ready
/Users/admin/builder/spi-builder-workspace/Sources/MuxUploadSDK/PublicAPI/DirectUploadManager.swift:325:54: warning: type 'ChunkedFileUploader' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
323 |
324 |     func getUpload(ofFileAt: URL) async -> ChunkedFileUploader? {
325 |         return await Task<ChunkedFileUploader?, Never> {
    |                                                      `- warning: type 'ChunkedFileUploader' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
326 |             guard let matchingEntry = try? persistence.readAll().first(
327 |                 where: { $0.inputFileURL == ofFileAt || $0.uploadInfo.sourceFileURL == ofFileAt }
/Users/admin/builder/spi-builder-workspace/Sources/MuxUploadSDK/Upload/ChunkedFileUploader.swift:14:7: note: class 'ChunkedFileUploader' does not conform to the 'Sendable' protocol
 12 | /// This object is not externally thread-safe. Access its methods only from the main thread
 13 | /// If you need to start this over again from the beginning, make a new object (and cancel your old one)
 14 | class ChunkedFileUploader {
    |       `- note: class 'ChunkedFileUploader' does not conform to the 'Sendable' protocol
 15 |
 16 |     private(set) var currentState: InternalUploadState = .ready
/Users/admin/builder/spi-builder-workspace/Sources/MuxUploadSDK/PublicAPI/DirectUploadManager.swift:335:11: warning: type 'ChunkedFileUploader' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
333 |                 persistenceEntry: matchingEntry
334 |             )
335 |         }.value
    |           `- warning: type 'ChunkedFileUploader' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
336 |     }
337 |
/Users/admin/builder/spi-builder-workspace/Sources/MuxUploadSDK/Upload/ChunkedFileUploader.swift:14:7: note: class 'ChunkedFileUploader' does not conform to the 'Sendable' protocol
 12 | /// This object is not externally thread-safe. Access its methods only from the main thread
 13 | /// If you need to start this over again from the beginning, make a new object (and cancel your old one)
 14 | class ChunkedFileUploader {
    |       `- note: class 'ChunkedFileUploader' does not conform to the 'Sendable' protocol
 15 |
 16 |     private(set) var currentState: InternalUploadState = .ready
/Users/admin/builder/spi-builder-workspace/Sources/MuxUploadSDK/PublicAPI/DirectUploadManager.swift:325:22: warning: non-sendable type 'Task<ChunkedFileUploader?, Never>' cannot exit actor-isolated context in call to nonisolated property 'value'; this is an error in the Swift 6 language mode
323 |
324 |     func getUpload(ofFileAt: URL) async -> ChunkedFileUploader? {
325 |         return await Task<ChunkedFileUploader?, Never> {
    |                      `- warning: non-sendable type 'Task<ChunkedFileUploader?, Never>' cannot exit actor-isolated context in call to nonisolated property 'value'; this is an error in the Swift 6 language mode
326 |             guard let matchingEntry = try? persistence.readAll().first(
327 |                 where: { $0.inputFileURL == ofFileAt || $0.uploadInfo.sourceFileURL == ofFileAt }
/Users/admin/builder/spi-builder-workspace/Sources/MuxUploadSDK/Upload/ChunkedFileUploader.swift:14:7: note: class 'ChunkedFileUploader' does not conform to the 'Sendable' protocol
 12 | /// This object is not externally thread-safe. Access its methods only from the main thread
 13 | /// If you need to start this over again from the beginning, make a new object (and cancel your old one)
 14 | class ChunkedFileUploader {
    |       `- note: class 'ChunkedFileUploader' does not conform to the 'Sendable' protocol
 15 |
 16 |     private(set) var currentState: InternalUploadState = .ready
/Users/admin/builder/spi-builder-workspace/Sources/MuxUploadSDK/PublicAPI/DirectUploadManager.swift:335:11: warning: non-sendable type 'ChunkedFileUploader?' of nonisolated property 'value' cannot be sent to actor-isolated context; this is an error in the Swift 6 language mode
333 |                 persistenceEntry: matchingEntry
334 |             )
335 |         }.value
    |           `- warning: non-sendable type 'ChunkedFileUploader?' of nonisolated property 'value' cannot be sent to actor-isolated context; this is an error in the Swift 6 language mode
336 |     }
337 |
/Users/admin/builder/spi-builder-workspace/Sources/MuxUploadSDK/Upload/ChunkedFileUploader.swift:14:7: note: class 'ChunkedFileUploader' does not conform to the 'Sendable' protocol
 12 | /// This object is not externally thread-safe. Access its methods only from the main thread
 13 | /// If you need to start this over again from the beginning, make a new object (and cancel your old one)
 14 | class ChunkedFileUploader {
    |       `- note: class 'ChunkedFileUploader' does not conform to the 'Sendable' protocol
 15 |
 16 |     private(set) var currentState: InternalUploadState = .ready
/Users/admin/builder/spi-builder-workspace/Sources/MuxUploadSDK/PublicAPI/DirectUploadManager.swift:339:22: warning: type 'ChunkedFileUploader' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
337 |
338 |     func getAllUploads() async -> [ChunkedFileUploader] {
339 |         return await Task<[ChunkedFileUploader]?, Never> {
    |                      `- warning: type 'ChunkedFileUploader' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
340 |             return try? persistence.readAll().compactMap { it in
341 |                 ChunkedFileUploader(
/Users/admin/builder/spi-builder-workspace/Sources/MuxUploadSDK/Upload/ChunkedFileUploader.swift:14:7: note: class 'ChunkedFileUploader' does not conform to the 'Sendable' protocol
 12 | /// This object is not externally thread-safe. Access its methods only from the main thread
 13 | /// If you need to start this over again from the beginning, make a new object (and cancel your old one)
 14 | class ChunkedFileUploader {
    |       `- note: class 'ChunkedFileUploader' does not conform to the 'Sendable' protocol
 15 |
 16 |     private(set) var currentState: InternalUploadState = .ready
/Users/admin/builder/spi-builder-workspace/Sources/MuxUploadSDK/PublicAPI/DirectUploadManager.swift:339:56: warning: type 'ChunkedFileUploader' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
337 |
338 |     func getAllUploads() async -> [ChunkedFileUploader] {
339 |         return await Task<[ChunkedFileUploader]?, Never> {
    |                                                        `- warning: type 'ChunkedFileUploader' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
340 |             return try? persistence.readAll().compactMap { it in
341 |                 ChunkedFileUploader(
/Users/admin/builder/spi-builder-workspace/Sources/MuxUploadSDK/Upload/ChunkedFileUploader.swift:14:7: note: class 'ChunkedFileUploader' does not conform to the 'Sendable' protocol
 12 | /// This object is not externally thread-safe. Access its methods only from the main thread
 13 | /// If you need to start this over again from the beginning, make a new object (and cancel your old one)
 14 | class ChunkedFileUploader {
    |       `- note: class 'ChunkedFileUploader' does not conform to the 'Sendable' protocol
 15 |
 16 |     private(set) var currentState: InternalUploadState = .ready
/Users/admin/builder/spi-builder-workspace/Sources/MuxUploadSDK/PublicAPI/DirectUploadManager.swift:345:11: warning: type 'ChunkedFileUploader' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
343 |                 )
344 |             }
345 |         }.value ?? []
    |           `- warning: type 'ChunkedFileUploader' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
346 |     }
347 |
/Users/admin/builder/spi-builder-workspace/Sources/MuxUploadSDK/Upload/ChunkedFileUploader.swift:14:7: note: class 'ChunkedFileUploader' does not conform to the 'Sendable' protocol
 12 | /// This object is not externally thread-safe. Access its methods only from the main thread
 13 | /// If you need to start this over again from the beginning, make a new object (and cancel your old one)
 14 | class ChunkedFileUploader {
    |       `- note: class 'ChunkedFileUploader' does not conform to the 'Sendable' protocol
 15 |
 16 |     private(set) var currentState: InternalUploadState = .ready
/Users/admin/builder/spi-builder-workspace/Sources/MuxUploadSDK/PublicAPI/DirectUploadManager.swift:339:22: warning: non-sendable type 'Task<[ChunkedFileUploader]?, Never>' cannot exit actor-isolated context in call to nonisolated property 'value'; this is an error in the Swift 6 language mode
337 |
338 |     func getAllUploads() async -> [ChunkedFileUploader] {
339 |         return await Task<[ChunkedFileUploader]?, Never> {
    |                      `- warning: non-sendable type 'Task<[ChunkedFileUploader]?, Never>' cannot exit actor-isolated context in call to nonisolated property 'value'; this is an error in the Swift 6 language mode
340 |             return try? persistence.readAll().compactMap { it in
341 |                 ChunkedFileUploader(
/Users/admin/builder/spi-builder-workspace/Sources/MuxUploadSDK/Upload/ChunkedFileUploader.swift:14:7: note: class 'ChunkedFileUploader' does not conform to the 'Sendable' protocol
 12 | /// This object is not externally thread-safe. Access its methods only from the main thread
 13 | /// If you need to start this over again from the beginning, make a new object (and cancel your old one)
 14 | class ChunkedFileUploader {
    |       `- note: class 'ChunkedFileUploader' does not conform to the 'Sendable' protocol
 15 |
 16 |     private(set) var currentState: InternalUploadState = .ready
/Users/admin/builder/spi-builder-workspace/Sources/MuxUploadSDK/PublicAPI/DirectUploadManager.swift:345:11: warning: non-sendable type '[ChunkedFileUploader]?' of nonisolated property 'value' cannot be sent to actor-isolated context; this is an error in the Swift 6 language mode
343 |                 )
344 |             }
345 |         }.value ?? []
    |           `- warning: non-sendable type '[ChunkedFileUploader]?' of nonisolated property 'value' cannot be sent to actor-isolated context; this is an error in the Swift 6 language mode
346 |     }
347 |
/Users/admin/builder/spi-builder-workspace/Sources/MuxUploadSDK/Upload/ChunkedFileUploader.swift:14:7: note: class 'ChunkedFileUploader' does not conform to the 'Sendable' protocol
 12 | /// This object is not externally thread-safe. Access its methods only from the main thread
 13 | /// If you need to start this over again from the beginning, make a new object (and cancel your old one)
 14 | class ChunkedFileUploader {
    |       `- note: class 'ChunkedFileUploader' does not conform to the 'Sendable' protocol
 15 |
 16 |     private(set) var currentState: InternalUploadState = .ready
/Users/admin/builder/spi-builder-workspace/Sources/MuxUploadSDK/PublicAPI/DirectUploadManager.swift:249:28: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
247 |             // snapshot. Snapshotting before the hop lets notifications deliver
248 |             // out of order and the upload list appear to move backwards.
249 |             let snapshot = self.storage.notificationSnapshot()
    |                            |- warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
    |                            `- note: task-isolated 'self' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
250 |
251 |             // Unlocked by now, so a delegate may call back in.
/Users/admin/builder/spi-builder-workspace/Sources/MuxUploadSDK/PublicAPI/DirectUploadManager.swift:165:23: 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
163 |     /// If no upload was found in the cache, this method returns nil without taking any action.
164 |     public func resumeDirectUpload(ofFile url: URL, completion: @escaping (DirectUpload) -> Void) {
165 |         Task.detached {
    |                       `- 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
166 |             let upload = await self.resumeDirectUpload(ofFile: url)
    |                                `- note: closure captures 'self' which is accessible to code in the current task
167 |             if let nonNilUpload = upload {
168 |                 await MainActor.run { completion(nonNilUpload) }
/Users/admin/builder/spi-builder-workspace/Sources/MuxUploadSDK/PublicAPI/DirectUploadManager.swift:168:39: warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
166 |             let upload = await self.resumeDirectUpload(ofFile: url)
167 |             if let nonNilUpload = upload {
168 |                 await MainActor.run { completion(nonNilUpload) }
    |                                       |- warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
    |                                       `- note: task-isolated 'completion' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
169 |             }
170 |         }
/Users/admin/builder/spi-builder-workspace/Sources/MuxUploadSDK/PublicAPI/DirectUploadManager.swift:168:50: warning: sending 'nonNilUpload' risks causing data races; this is an error in the Swift 6 language mode
166 |             let upload = await self.resumeDirectUpload(ofFile: url)
167 |             if let nonNilUpload = upload {
168 |                 await MainActor.run { completion(nonNilUpload) }
    |                                                  |- warning: sending 'nonNilUpload' risks causing data races; this is an error in the Swift 6 language mode
    |                                                  `- note: task-isolated 'nonNilUpload' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
169 |             }
170 |         }
/Users/admin/builder/spi-builder-workspace/Sources/MuxUploadSDK/PublicAPI/DirectUploadManager.swift:176:23: 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
174 |     /// It can be useful to call this during app initialization to resume uploads that were interrupted by process death.
175 |     public func resumeAllDirectUploads() {
176 |         Task.detached { [self] in
    |                       `- 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
177 |             for upload in await uploadActor.getAllUploads() {
    |                                 `- note: closure captures 'self' which is accessible to code in the current task
178 |                 upload.addDelegate(
179 |                     withToken: UUID().uuidString,
/Users/admin/builder/spi-builder-workspace/Sources/MuxUploadSDK/PublicAPI/DirectUploadManager.swift:203:23: 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
201 |         upload?.fileWorker?.cancel()
202 |
203 |         Task.detached {
    |                       `- 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
204 |             await self.uploadActor.remove(uploadID: id)
    |                   `- note: closure captures 'self' which is accessible to code in the current task
205 |             self.notifyDelegates()
206 |         }
/Users/admin/builder/spi-builder-workspace/Sources/MuxUploadSDK/PublicAPI/DirectUploadManager.swift:234:23: 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
232 |         )
233 |         self.notifyDelegates()
234 |         Task.detached {
    |                       `- 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
235 |             await self.uploadActor.updateUpload(
    |                   `- note: closure captures 'self' which is accessible to code in the current task
236 |                 fileWorker.uploadInfo,
237 |                 fileInputURL: fileWorker.inputFileURL,
/Users/admin/builder/spi-builder-workspace/Sources/MuxUploadSDK/PublicAPI/DirectUploadManager.swift:235:36: warning: sending 'fileWorker.uploadInfo' risks causing data races; this is an error in the Swift 6 language mode
233 |         self.notifyDelegates()
234 |         Task.detached {
235 |             await self.uploadActor.updateUpload(
    |                                    |- warning: sending 'fileWorker.uploadInfo' risks causing data races; this is an error in the Swift 6 language mode
    |                                    `- note: sending task-isolated 'fileWorker.uploadInfo' to actor-isolated instance method 'updateUpload(_:fileInputURL:withUpdate:)' risks causing data races between actor-isolated and task-isolated uses
236 |                 fileWorker.uploadInfo,
237 |                 fileInputURL: fileWorker.inputFileURL,
/Users/admin/builder/spi-builder-workspace/Sources/MuxUploadSDK/PublicAPI/DirectUploadManager.swift:268:35: 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
266 |             stateUpdated state: ChunkedFileUploader.InternalUploadState
267 |         ) {
268 |             let _ = Task.detached {
    |                                   `- 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
269 |                 await manager.uploadActor.updateUpload(
    |                       `- note: closure captures 'self' which is accessible to code in the current task
270 |                     uploader.uploadInfo,
271 |                     fileInputURL: uploader.inputFileURL,
/Users/admin/builder/spi-builder-workspace/Sources/MuxUploadSDK/PublicAPI/DirectUploadManager.swift:269:43: warning: sending 'uploader.uploadInfo' risks causing data races; this is an error in the Swift 6 language mode
267 |         ) {
268 |             let _ = Task.detached {
269 |                 await manager.uploadActor.updateUpload(
    |                                           |- warning: sending 'uploader.uploadInfo' risks causing data races; this is an error in the Swift 6 language mode
    |                                           `- note: sending task-isolated 'uploader.uploadInfo' to actor-isolated instance method 'updateUpload(_:fileInputURL:withUpdate:)' risks causing data races between actor-isolated and task-isolated uses
270 |                     uploader.uploadInfo,
271 |                     fileInputURL: uploader.inputFileURL,
[31/40] Compiling MuxUploadSDK DirectUploadOptions.swift
/Users/admin/builder/spi-builder-workspace/Sources/MuxUploadSDK/PublicAPI/DirectUploadManager.swift:259:23: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'DirectUploadManager' may have shared mutable state; this is an error in the Swift 6 language mode
 27 | /// ```
 28 | ///
 29 | public final class DirectUploadManager {
    |                    `- note: class 'DirectUploadManager' does not conform to the 'Sendable' protocol
 30 |
 31 |     private struct UploadStorage: Equatable, Hashable {
    :
257 |
258 |     /// The shared instance of this object that should be used.
259 |     public static let shared = DirectUploadManager()
    |                       |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'DirectUploadManager' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: add '@MainActor' to make static property 'shared' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
260 |
261 |     private struct FileUploaderDelegate : ChunkedFileUploaderDelegate {
/Users/admin/builder/spi-builder-workspace/Sources/MuxUploadSDK/PublicAPI/DirectUploadManager.swift:145:46: warning: non-sendable result type 'ChunkedFileUploader?' cannot be sent from actor-isolated context in call to instance method 'getUpload(ofFileAt:)'; this is an error in the Swift 6 language mode
143 |     /// If no upload was found in the cache, this method returns nil without taking any action.
144 |     public func resumeDirectUpload(ofFile url: URL) async -> DirectUpload? {
145 |         let fileUploader = await uploadActor.getUpload(ofFileAt: url)
    |                                              `- warning: non-sendable result type 'ChunkedFileUploader?' cannot be sent from actor-isolated context in call to instance method 'getUpload(ofFileAt:)'; this is an error in the Swift 6 language mode
146 |         if let nonNilUploader = fileUploader {
147 |             nonNilUploader.addDelegate(
/Users/admin/builder/spi-builder-workspace/Sources/MuxUploadSDK/Upload/ChunkedFileUploader.swift:14:7: note: class 'ChunkedFileUploader' does not conform to the 'Sendable' protocol
 12 | /// This object is not externally thread-safe. Access its methods only from the main thread
 13 | /// If you need to start this over again from the beginning, make a new object (and cancel your old one)
 14 | class ChunkedFileUploader {
    |       `- note: class 'ChunkedFileUploader' does not conform to the 'Sendable' protocol
 15 |
 16 |     private(set) var currentState: InternalUploadState = .ready
/Users/admin/builder/spi-builder-workspace/Sources/MuxUploadSDK/PublicAPI/DirectUploadManager.swift:177:45: warning: non-sendable result type '[ChunkedFileUploader]' cannot be sent from actor-isolated context in call to instance method 'getAllUploads()'; this is an error in the Swift 6 language mode
175 |     public func resumeAllDirectUploads() {
176 |         Task.detached { [self] in
177 |             for upload in await uploadActor.getAllUploads() {
    |                                             `- warning: non-sendable result type '[ChunkedFileUploader]' cannot be sent from actor-isolated context in call to instance method 'getAllUploads()'; this is an error in the Swift 6 language mode
178 |                 upload.addDelegate(
179 |                     withToken: UUID().uuidString,
/Users/admin/builder/spi-builder-workspace/Sources/MuxUploadSDK/Upload/ChunkedFileUploader.swift:14:7: note: class 'ChunkedFileUploader' does not conform to the 'Sendable' protocol
 12 | /// This object is not externally thread-safe. Access its methods only from the main thread
 13 | /// If you need to start this over again from the beginning, make a new object (and cancel your old one)
 14 | class ChunkedFileUploader {
    |       `- note: class 'ChunkedFileUploader' does not conform to the 'Sendable' protocol
 15 |
 16 |     private(set) var currentState: InternalUploadState = .ready
/Users/admin/builder/spi-builder-workspace/Sources/MuxUploadSDK/PublicAPI/DirectUploadManager.swift:313:22: warning: type 'ChunkedFileUploader' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
311 |     func getUpload(uploadID: String) async -> ChunkedFileUploader? {
312 |         // reminder: doesn't start the uploader, just makes it
313 |         return await Task<ChunkedFileUploader?, Never> {
    |                      `- warning: type 'ChunkedFileUploader' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
314 |             try? persistence
315 |                 .readEntry(uploadID: uploadID)
/Users/admin/builder/spi-builder-workspace/Sources/MuxUploadSDK/Upload/ChunkedFileUploader.swift:14:7: note: class 'ChunkedFileUploader' does not conform to the 'Sendable' protocol
 12 | /// This object is not externally thread-safe. Access its methods only from the main thread
 13 | /// If you need to start this over again from the beginning, make a new object (and cancel your old one)
 14 | class ChunkedFileUploader {
    |       `- note: class 'ChunkedFileUploader' does not conform to the 'Sendable' protocol
 15 |
 16 |     private(set) var currentState: InternalUploadState = .ready
/Users/admin/builder/spi-builder-workspace/Sources/MuxUploadSDK/PublicAPI/DirectUploadManager.swift:313:54: warning: type 'ChunkedFileUploader' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
311 |     func getUpload(uploadID: String) async -> ChunkedFileUploader? {
312 |         // reminder: doesn't start the uploader, just makes it
313 |         return await Task<ChunkedFileUploader?, Never> {
    |                                                      `- warning: type 'ChunkedFileUploader' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
314 |             try? persistence
315 |                 .readEntry(uploadID: uploadID)
/Users/admin/builder/spi-builder-workspace/Sources/MuxUploadSDK/Upload/ChunkedFileUploader.swift:14:7: note: class 'ChunkedFileUploader' does not conform to the 'Sendable' protocol
 12 | /// This object is not externally thread-safe. Access its methods only from the main thread
 13 | /// If you need to start this over again from the beginning, make a new object (and cancel your old one)
 14 | class ChunkedFileUploader {
    |       `- note: class 'ChunkedFileUploader' does not conform to the 'Sendable' protocol
 15 |
 16 |     private(set) var currentState: InternalUploadState = .ready
/Users/admin/builder/spi-builder-workspace/Sources/MuxUploadSDK/PublicAPI/DirectUploadManager.swift:321:11: warning: type 'ChunkedFileUploader' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
319 |                     )
320 |                 })
321 |         }.value
    |           `- warning: type 'ChunkedFileUploader' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
322 |     }
323 |
/Users/admin/builder/spi-builder-workspace/Sources/MuxUploadSDK/Upload/ChunkedFileUploader.swift:14:7: note: class 'ChunkedFileUploader' does not conform to the 'Sendable' protocol
 12 | /// This object is not externally thread-safe. Access its methods only from the main thread
 13 | /// If you need to start this over again from the beginning, make a new object (and cancel your old one)
 14 | class ChunkedFileUploader {
    |       `- note: class 'ChunkedFileUploader' does not conform to the 'Sendable' protocol
 15 |
 16 |     private(set) var currentState: InternalUploadState = .ready
/Users/admin/builder/spi-builder-workspace/Sources/MuxUploadSDK/PublicAPI/DirectUploadManager.swift:313:22: warning: non-sendable type 'Task<ChunkedFileUploader?, Never>' cannot exit actor-isolated context in call to nonisolated property 'value'; this is an error in the Swift 6 language mode
311 |     func getUpload(uploadID: String) async -> ChunkedFileUploader? {
312 |         // reminder: doesn't start the uploader, just makes it
313 |         return await Task<ChunkedFileUploader?, Never> {
    |                      `- warning: non-sendable type 'Task<ChunkedFileUploader?, Never>' cannot exit actor-isolated context in call to nonisolated property 'value'; this is an error in the Swift 6 language mode
314 |             try? persistence
315 |                 .readEntry(uploadID: uploadID)
/Users/admin/builder/spi-builder-workspace/Sources/MuxUploadSDK/Upload/ChunkedFileUploader.swift:14:7: note: class 'ChunkedFileUploader' does not conform to the 'Sendable' protocol
 12 | /// This object is not externally thread-safe. Access its methods only from the main thread
 13 | /// If you need to start this over again from the beginning, make a new object (and cancel your old one)
 14 | class ChunkedFileUploader {
    |       `- note: class 'ChunkedFileUploader' does not conform to the 'Sendable' protocol
 15 |
 16 |     private(set) var currentState: InternalUploadState = .ready
/Users/admin/builder/spi-builder-workspace/Sources/MuxUploadSDK/PublicAPI/DirectUploadManager.swift:321:11: warning: non-sendable type 'ChunkedFileUploader?' of nonisolated property 'value' cannot be sent to actor-isolated context; this is an error in the Swift 6 language mode
319 |                     )
320 |                 })
321 |         }.value
    |           `- warning: non-sendable type 'ChunkedFileUploader?' of nonisolated property 'value' cannot be sent to actor-isolated context; this is an error in the Swift 6 language mode
322 |     }
323 |
/Users/admin/builder/spi-builder-workspace/Sources/MuxUploadSDK/Upload/ChunkedFileUploader.swift:14:7: note: class 'ChunkedFileUploader' does not conform to the 'Sendable' protocol
 12 | /// This object is not externally thread-safe. Access its methods only from the main thread
 13 | /// If you need to start this over again from the beginning, make a new object (and cancel your old one)
 14 | class ChunkedFileUploader {
    |       `- note: class 'ChunkedFileUploader' does not conform to the 'Sendable' protocol
 15 |
 16 |     private(set) var currentState: InternalUploadState = .ready
/Users/admin/builder/spi-builder-workspace/Sources/MuxUploadSDK/PublicAPI/DirectUploadManager.swift:325:22: warning: type 'ChunkedFileUploader' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
323 |
324 |     func getUpload(ofFileAt: URL) async -> ChunkedFileUploader? {
325 |         return await Task<ChunkedFileUploader?, Never> {
    |                      `- warning: type 'ChunkedFileUploader' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
326 |             guard let matchingEntry = try? persistence.readAll().first(
327 |                 where: { $0.inputFileURL == ofFileAt || $0.uploadInfo.sourceFileURL == ofFileAt }
/Users/admin/builder/spi-builder-workspace/Sources/MuxUploadSDK/Upload/ChunkedFileUploader.swift:14:7: note: class 'ChunkedFileUploader' does not conform to the 'Sendable' protocol
 12 | /// This object is not externally thread-safe. Access its methods only from the main thread
 13 | /// If you need to start this over again from the beginning, make a new object (and cancel your old one)
 14 | class ChunkedFileUploader {
    |       `- note: class 'ChunkedFileUploader' does not conform to the 'Sendable' protocol
 15 |
 16 |     private(set) var currentState: InternalUploadState = .ready
/Users/admin/builder/spi-builder-workspace/Sources/MuxUploadSDK/PublicAPI/DirectUploadManager.swift:325:54: warning: type 'ChunkedFileUploader' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
323 |
324 |     func getUpload(ofFileAt: URL) async -> ChunkedFileUploader? {
325 |         return await Task<ChunkedFileUploader?, Never> {
    |                                                      `- warning: type 'ChunkedFileUploader' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
326 |             guard let matchingEntry = try? persistence.readAll().first(
327 |                 where: { $0.inputFileURL == ofFileAt || $0.uploadInfo.sourceFileURL == ofFileAt }
/Users/admin/builder/spi-builder-workspace/Sources/MuxUploadSDK/Upload/ChunkedFileUploader.swift:14:7: note: class 'ChunkedFileUploader' does not conform to the 'Sendable' protocol
 12 | /// This object is not externally thread-safe. Access its methods only from the main thread
 13 | /// If you need to start this over again from the beginning, make a new object (and cancel your old one)
 14 | class ChunkedFileUploader {
    |       `- note: class 'ChunkedFileUploader' does not conform to the 'Sendable' protocol
 15 |
 16 |     private(set) var currentState: InternalUploadState = .ready
/Users/admin/builder/spi-builder-workspace/Sources/MuxUploadSDK/PublicAPI/DirectUploadManager.swift:335:11: warning: type 'ChunkedFileUploader' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
333 |                 persistenceEntry: matchingEntry
334 |             )
335 |         }.value
    |           `- warning: type 'ChunkedFileUploader' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
336 |     }
337 |
/Users/admin/builder/spi-builder-workspace/Sources/MuxUploadSDK/Upload/ChunkedFileUploader.swift:14:7: note: class 'ChunkedFileUploader' does not conform to the 'Sendable' protocol
 12 | /// This object is not externally thread-safe. Access its methods only from the main thread
 13 | /// If you need to start this over again from the beginning, make a new object (and cancel your old one)
 14 | class ChunkedFileUploader {
    |       `- note: class 'ChunkedFileUploader' does not conform to the 'Sendable' protocol
 15 |
 16 |     private(set) var currentState: InternalUploadState = .ready
/Users/admin/builder/spi-builder-workspace/Sources/MuxUploadSDK/PublicAPI/DirectUploadManager.swift:325:22: warning: non-sendable type 'Task<ChunkedFileUploader?, Never>' cannot exit actor-isolated context in call to nonisolated property 'value'; this is an error in the Swift 6 language mode
323 |
324 |     func getUpload(ofFileAt: URL) async -> ChunkedFileUploader? {
325 |         return await Task<ChunkedFileUploader?, Never> {
    |                      `- warning: non-sendable type 'Task<ChunkedFileUploader?, Never>' cannot exit actor-isolated context in call to nonisolated property 'value'; this is an error in the Swift 6 language mode
326 |             guard let matchingEntry = try? persistence.readAll().first(
327 |                 where: { $0.inputFileURL == ofFileAt || $0.uploadInfo.sourceFileURL == ofFileAt }
/Users/admin/builder/spi-builder-workspace/Sources/MuxUploadSDK/Upload/ChunkedFileUploader.swift:14:7: note: class 'ChunkedFileUploader' does not conform to the 'Sendable' protocol
 12 | /// This object is not externally thread-safe. Access its methods only from the main thread
 13 | /// If you need to start this over again from the beginning, make a new object (and cancel your old one)
 14 | class ChunkedFileUploader {
    |       `- note: class 'ChunkedFileUploader' does not conform to the 'Sendable' protocol
 15 |
 16 |     private(set) var currentState: InternalUploadState = .ready
/Users/admin/builder/spi-builder-workspace/Sources/MuxUploadSDK/PublicAPI/DirectUploadManager.swift:335:11: warning: non-sendable type 'ChunkedFileUploader?' of nonisolated property 'value' cannot be sent to actor-isolated context; this is an error in the Swift 6 language mode
333 |                 persistenceEntry: matchingEntry
334 |             )
335 |         }.value
    |           `- warning: non-sendable type 'ChunkedFileUploader?' of nonisolated property 'value' cannot be sent to actor-isolated context; this is an error in the Swift 6 language mode
336 |     }
337 |
/Users/admin/builder/spi-builder-workspace/Sources/MuxUploadSDK/Upload/ChunkedFileUploader.swift:14:7: note: class 'ChunkedFileUploader' does not conform to the 'Sendable' protocol
 12 | /// This object is not externally thread-safe. Access its methods only from the main thread
 13 | /// If you need to start this over again from the beginning, make a new object (and cancel your old one)
 14 | class ChunkedFileUploader {
    |       `- note: class 'ChunkedFileUploader' does not conform to the 'Sendable' protocol
 15 |
 16 |     private(set) var currentState: InternalUploadState = .ready
/Users/admin/builder/spi-builder-workspace/Sources/MuxUploadSDK/PublicAPI/DirectUploadManager.swift:339:22: warning: type 'ChunkedFileUploader' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
337 |
338 |     func getAllUploads() async -> [ChunkedFileUploader] {
339 |         return await Task<[ChunkedFileUploader]?, Never> {
    |                      `- warning: type 'ChunkedFileUploader' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
340 |             return try? persistence.readAll().compactMap { it in
341 |                 ChunkedFileUploader(
/Users/admin/builder/spi-builder-workspace/Sources/MuxUploadSDK/Upload/ChunkedFileUploader.swift:14:7: note: class 'ChunkedFileUploader' does not conform to the 'Sendable' protocol
 12 | /// This object is not externally thread-safe. Access its methods only from the main thread
 13 | /// If you need to start this over again from the beginning, make a new object (and cancel your old one)
 14 | class ChunkedFileUploader {
    |       `- note: class 'ChunkedFileUploader' does not conform to the 'Sendable' protocol
 15 |
 16 |     private(set) var currentState: InternalUploadState = .ready
/Users/admin/builder/spi-builder-workspace/Sources/MuxUploadSDK/PublicAPI/DirectUploadManager.swift:339:56: warning: type 'ChunkedFileUploader' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
337 |
338 |     func getAllUploads() async -> [ChunkedFileUploader] {
339 |         return await Task<[ChunkedFileUploader]?, Never> {
    |                                                        `- warning: type 'ChunkedFileUploader' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
340 |             return try? persistence.readAll().compactMap { it in
341 |                 ChunkedFileUploader(
/Users/admin/builder/spi-builder-workspace/Sources/MuxUploadSDK/Upload/ChunkedFileUploader.swift:14:7: note: class 'ChunkedFileUploader' does not conform to the 'Sendable' protocol
 12 | /// This object is not externally thread-safe. Access its methods only from the main thread
 13 | /// If you need to start this over again from the beginning, make a new object (and cancel your old one)
 14 | class ChunkedFileUploader {
    |       `- note: class 'ChunkedFileUploader' does not conform to the 'Sendable' protocol
 15 |
 16 |     private(set) var currentState: InternalUploadState = .ready
/Users/admin/builder/spi-builder-workspace/Sources/MuxUploadSDK/PublicAPI/DirectUploadManager.swift:345:11: warning: type 'ChunkedFileUploader' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
343 |                 )
344 |             }
345 |         }.value ?? []
    |           `- warning: type 'ChunkedFileUploader' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
346 |     }
347 |
/Users/admin/builder/spi-builder-workspace/Sources/MuxUploadSDK/Upload/ChunkedFileUploader.swift:14:7: note: class 'ChunkedFileUploader' does not conform to the 'Sendable' protocol
 12 | /// This object is not externally thread-safe. Access its methods only from the main thread
 13 | /// If you need to start this over again from the beginning, make a new object (and cancel your old one)
 14 | class ChunkedFileUploader {
    |       `- note: class 'ChunkedFileUploader' does not conform to the 'Sendable' protocol
 15 |
 16 |     private(set) var currentState: InternalUploadState = .ready
/Users/admin/builder/spi-builder-workspace/Sources/MuxUploadSDK/PublicAPI/DirectUploadManager.swift:339:22: warning: non-sendable type 'Task<[ChunkedFileUploader]?, Never>' cannot exit actor-isolated context in call to nonisolated property 'value'; this is an error in the Swift 6 language mode
337 |
338 |     func getAllUploads() async -> [ChunkedFileUploader] {
339 |         return await Task<[ChunkedFileUploader]?, Never> {
    |                      `- warning: non-sendable type 'Task<[ChunkedFileUploader]?, Never>' cannot exit actor-isolated context in call to nonisolated property 'value'; this is an error in the Swift 6 language mode
340 |             return try? persistence.readAll().compactMap { it in
341 |                 ChunkedFileUploader(
/Users/admin/builder/spi-builder-workspace/Sources/MuxUploadSDK/Upload/ChunkedFileUploader.swift:14:7: note: class 'ChunkedFileUploader' does not conform to the 'Sendable' protocol
 12 | /// This object is not externally thread-safe. Access its methods only from the main thread
 13 | /// If you need to start this over again from the beginning, make a new object (and cancel your old one)
 14 | class ChunkedFileUploader {
    |       `- note: class 'ChunkedFileUploader' does not conform to the 'Sendable' protocol
 15 |
 16 |     private(set) var currentState: InternalUploadState = .ready
/Users/admin/builder/spi-builder-workspace/Sources/MuxUploadSDK/PublicAPI/DirectUploadManager.swift:345:11: warning: non-sendable type '[ChunkedFileUploader]?' of nonisolated property 'value' cannot be sent to actor-isolated context; this is an error in the Swift 6 language mode
343 |                 )
344 |             }
345 |         }.value ?? []
    |           `- warning: non-sendable type '[ChunkedFileUploader]?' of nonisolated property 'value' cannot be sent to actor-isolated context; this is an error in the Swift 6 language mode
346 |     }
347 |
/Users/admin/builder/spi-builder-workspace/Sources/MuxUploadSDK/Upload/ChunkedFileUploader.swift:14:7: note: class 'ChunkedFileUploader' does not conform to the 'Sendable' protocol
 12 | /// This object is not externally thread-safe. Access its methods only from the main thread
 13 | /// If you need to start this over again from the beginning, make a new object (and cancel your old one)
 14 | class ChunkedFileUploader {
    |       `- note: class 'ChunkedFileUploader' does not conform to the 'Sendable' protocol
 15 |
 16 |     private(set) var currentState: InternalUploadState = .ready
/Users/admin/builder/spi-builder-workspace/Sources/MuxUploadSDK/PublicAPI/DirectUploadManager.swift:249:28: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
247 |             // snapshot. Snapshotting before the hop lets notifications deliver
248 |             // out of order and the upload list appear to move backwards.
249 |             let snapshot = self.storage.notificationSnapshot()
    |                            |- warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
    |                            `- note: task-isolated 'self' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
250 |
251 |             // Unlocked by now, so a delegate may call back in.
/Users/admin/builder/spi-builder-workspace/Sources/MuxUploadSDK/PublicAPI/DirectUploadManager.swift:165:23: 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
163 |     /// If no upload was found in the cache, this method returns nil without taking any action.
164 |     public func resumeDirectUpload(ofFile url: URL, completion: @escaping (DirectUpload) -> Void) {
165 |         Task.detached {
    |                       `- 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
166 |             let upload = await self.resumeDirectUpload(ofFile: url)
    |                                `- note: closure captures 'self' which is accessible to code in the current task
167 |             if let nonNilUpload = upload {
168 |                 await MainActor.run { completion(nonNilUpload) }
/Users/admin/builder/spi-builder-workspace/Sources/MuxUploadSDK/PublicAPI/DirectUploadManager.swift:168:39: warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
166 |             let upload = await self.resumeDirectUpload(ofFile: url)
167 |             if let nonNilUpload = upload {
168 |                 await MainActor.run { completion(nonNilUpload) }
    |                                       |- warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
    |                                       `- note: task-isolated 'completion' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
169 |             }
170 |         }
/Users/admin/builder/spi-builder-workspace/Sources/MuxUploadSDK/PublicAPI/DirectUploadManager.swift:168:50: warning: sending 'nonNilUpload' risks causing data races; this is an error in the Swift 6 language mode
166 |             let upload = await self.resumeDirectUpload(ofFile: url)
167 |             if let nonNilUpload = upload {
168 |                 await MainActor.run { completion(nonNilUpload) }
    |                                                  |- warning: sending 'nonNilUpload' risks causing data races; this is an error in the Swift 6 language mode
    |                                                  `- note: task-isolated 'nonNilUpload' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
169 |             }
170 |         }
/Users/admin/builder/spi-builder-workspace/Sources/MuxUploadSDK/PublicAPI/DirectUploadManager.swift:176:23: 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
174 |     /// It can be useful to call this during app initialization to resume uploads that were interrupted by process death.
175 |     public func resumeAllDirectUploads() {
176 |         Task.detached { [self] in
    |                       `- 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
177 |             for upload in await uploadActor.getAllUploads() {
    |                                 `- note: closure captures 'self' which is accessible to code in the current task
178 |                 upload.addDelegate(
179 |                     withToken: UUID().uuidString,
/Users/admin/builder/spi-builder-workspace/Sources/MuxUploadSDK/PublicAPI/DirectUploadManager.swift:203:23: 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
201 |         upload?.fileWorker?.cancel()
202 |
203 |         Task.detached {
    |                       `- 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
204 |             await self.uploadActor.remove(uploadID: id)
    |                   `- note: closure captures 'self' which is accessible to code in the current task
205 |             self.notifyDelegates()
206 |         }
/Users/admin/builder/spi-builder-workspace/Sources/MuxUploadSDK/PublicAPI/DirectUploadManager.swift:234:23: 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
232 |         )
233 |         self.notifyDelegates()
234 |         Task.detached {
    |                       `- 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
235 |             await self.uploadActor.updateUpload(
    |                   `- note: closure captures 'self' which is accessible to code in the current task
236 |                 fileWorker.uploadInfo,
237 |                 fileInputURL: fileWorker.inputFileURL,
/Users/admin/builder/spi-builder-workspace/Sources/MuxUploadSDK/PublicAPI/DirectUploadManager.swift:235:36: warning: sending 'fileWorker.uploadInfo' risks causing data races; this is an error in the Swift 6 language mode
233 |         self.notifyDelegates()
234 |         Task.detached {
235 |             await self.uploadActor.updateUpload(
    |                                    |- warning: sending 'fileWorker.uploadInfo' risks causing data races; this is an error in the Swift 6 language mode
    |                                    `- note: sending task-isolated 'fileWorker.uploadInfo' to actor-isolated instance method 'updateUpload(_:fileInputURL:withUpdate:)' risks causing data races between actor-isolated and task-isolated uses
236 |                 fileWorker.uploadInfo,
237 |                 fileInputURL: fileWorker.inputFileURL,
/Users/admin/builder/spi-builder-workspace/Sources/MuxUploadSDK/PublicAPI/DirectUploadManager.swift:268:35: 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
266 |             stateUpdated state: ChunkedFileUploader.InternalUploadState
267 |         ) {
268 |             let _ = Task.detached {
    |                                   `- 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
269 |                 await manager.uploadActor.updateUpload(
    |                       `- note: closure captures 'self' which is accessible to code in the current task
270 |                     uploader.uploadInfo,
271 |                     fileInputURL: uploader.inputFileURL,
/Users/admin/builder/spi-builder-workspace/Sources/MuxUploadSDK/PublicAPI/DirectUploadManager.swift:269:43: warning: sending 'uploader.uploadInfo' risks causing data races; this is an error in the Swift 6 language mode
267 |         ) {
268 |             let _ = Task.detached {
269 |                 await manager.uploadActor.updateUpload(
    |                                           |- warning: sending 'uploader.uploadInfo' risks causing data races; this is an error in the Swift 6 language mode
    |                                           `- note: sending task-isolated 'uploader.uploadInfo' to actor-isolated instance method 'updateUpload(_:fileInputURL:withUpdate:)' risks causing data races between actor-isolated and task-isolated uses
270 |                     uploader.uploadInfo,
271 |                     fileInputURL: uploader.inputFileURL,
[32/40] Compiling MuxUploadSDK PHAsset+DirectUpload.swift
/Users/admin/builder/spi-builder-workspace/Sources/MuxUploadSDK/PublicAPI/DirectUploadManager.swift:259:23: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'DirectUploadManager' may have shared mutable state; this is an error in the Swift 6 language mode
 27 | /// ```
 28 | ///
 29 | public final class DirectUploadManager {
    |                    `- note: class 'DirectUploadManager' does not conform to the 'Sendable' protocol
 30 |
 31 |     private struct UploadStorage: Equatable, Hashable {
    :
257 |
258 |     /// The shared instance of this object that should be used.
259 |     public static let shared = DirectUploadManager()
    |                       |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'DirectUploadManager' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: add '@MainActor' to make static property 'shared' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
260 |
261 |     private struct FileUploaderDelegate : ChunkedFileUploaderDelegate {
/Users/admin/builder/spi-builder-workspace/Sources/MuxUploadSDK/PublicAPI/DirectUploadManager.swift:145:46: warning: non-sendable result type 'ChunkedFileUploader?' cannot be sent from actor-isolated context in call to instance method 'getUpload(ofFileAt:)'; this is an error in the Swift 6 language mode
143 |     /// If no upload was found in the cache, this method returns nil without taking any action.
144 |     public func resumeDirectUpload(ofFile url: URL) async -> DirectUpload? {
145 |         let fileUploader = await uploadActor.getUpload(ofFileAt: url)
    |                                              `- warning: non-sendable result type 'ChunkedFileUploader?' cannot be sent from actor-isolated context in call to instance method 'getUpload(ofFileAt:)'; this is an error in the Swift 6 language mode
146 |         if let nonNilUploader = fileUploader {
147 |             nonNilUploader.addDelegate(
/Users/admin/builder/spi-builder-workspace/Sources/MuxUploadSDK/Upload/ChunkedFileUploader.swift:14:7: note: class 'ChunkedFileUploader' does not conform to the 'Sendable' protocol
 12 | /// This object is not externally thread-safe. Access its methods only from the main thread
 13 | /// If you need to start this over again from the beginning, make a new object (and cancel your old one)
 14 | class ChunkedFileUploader {
    |       `- note: class 'ChunkedFileUploader' does not conform to the 'Sendable' protocol
 15 |
 16 |     private(set) var currentState: InternalUploadState = .ready
/Users/admin/builder/spi-builder-workspace/Sources/MuxUploadSDK/PublicAPI/DirectUploadManager.swift:177:45: warning: non-sendable result type '[ChunkedFileUploader]' cannot be sent from actor-isolated context in call to instance method 'getAllUploads()'; this is an error in the Swift 6 language mode
175 |     public func resumeAllDirectUploads() {
176 |         Task.detached { [self] in
177 |             for upload in await uploadActor.getAllUploads() {
    |                                             `- warning: non-sendable result type '[ChunkedFileUploader]' cannot be sent from actor-isolated context in call to instance method 'getAllUploads()'; this is an error in the Swift 6 language mode
178 |                 upload.addDelegate(
179 |                     withToken: UUID().uuidString,
/Users/admin/builder/spi-builder-workspace/Sources/MuxUploadSDK/Upload/ChunkedFileUploader.swift:14:7: note: class 'ChunkedFileUploader' does not conform to the 'Sendable' protocol
 12 | /// This object is not externally thread-safe. Access its methods only from the main thread
 13 | /// If you need to start this over again from the beginning, make a new object (and cancel your old one)
 14 | class ChunkedFileUploader {
    |       `- note: class 'ChunkedFileUploader' does not conform to the 'Sendable' protocol
 15 |
 16 |     private(set) var currentState: InternalUploadState = .ready
/Users/admin/builder/spi-builder-workspace/Sources/MuxUploadSDK/PublicAPI/DirectUploadManager.swift:313:22: warning: type 'ChunkedFileUploader' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
311 |     func getUpload(uploadID: String) async -> ChunkedFileUploader? {
312 |         // reminder: doesn't start the uploader, just makes it
313 |         return await Task<ChunkedFileUploader?, Never> {
    |                      `- warning: type 'ChunkedFileUploader' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
314 |             try? persistence
315 |                 .readEntry(uploadID: uploadID)
/Users/admin/builder/spi-builder-workspace/Sources/MuxUploadSDK/Upload/ChunkedFileUploader.swift:14:7: note: class 'ChunkedFileUploader' does not conform to the 'Sendable' protocol
 12 | /// This object is not externally thread-safe. Access its methods only from the main thread
 13 | /// If you need to start this over again from the beginning, make a new object (and cancel your old one)
 14 | class ChunkedFileUploader {
    |       `- note: class 'ChunkedFileUploader' does not conform to the 'Sendable' protocol
 15 |
 16 |     private(set) var currentState: InternalUploadState = .ready
/Users/admin/builder/spi-builder-workspace/Sources/MuxUploadSDK/PublicAPI/DirectUploadManager.swift:313:54: warning: type 'ChunkedFileUploader' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
311 |     func getUpload(uploadID: String) async -> ChunkedFileUploader? {
312 |         // reminder: doesn't start the uploader, just makes it
313 |         return await Task<ChunkedFileUploader?, Never> {
    |                                                      `- warning: type 'ChunkedFileUploader' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
314 |             try? persistence
315 |                 .readEntry(uploadID: uploadID)
/Users/admin/builder/spi-builder-workspace/Sources/MuxUploadSDK/Upload/ChunkedFileUploader.swift:14:7: note: class 'ChunkedFileUploader' does not conform to the 'Sendable' protocol
 12 | /// This object is not externally thread-safe. Access its methods only from the main thread
 13 | /// If you need to start this over again from the beginning, make a new object (and cancel your old one)
 14 | class ChunkedFileUploader {
    |       `- note: class 'ChunkedFileUploader' does not conform to the 'Sendable' protocol
 15 |
 16 |     private(set) var currentState: InternalUploadState = .ready
/Users/admin/builder/spi-builder-workspace/Sources/MuxUploadSDK/PublicAPI/DirectUploadManager.swift:321:11: warning: type 'ChunkedFileUploader' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
319 |                     )
320 |                 })
321 |         }.value
    |           `- warning: type 'ChunkedFileUploader' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
322 |     }
323 |
/Users/admin/builder/spi-builder-workspace/Sources/MuxUploadSDK/Upload/ChunkedFileUploader.swift:14:7: note: class 'ChunkedFileUploader' does not conform to the 'Sendable' protocol
 12 | /// This object is not externally thread-safe. Access its methods only from the main thread
 13 | /// If you need to start this over again from the beginning, make a new object (and cancel your old one)
 14 | class ChunkedFileUploader {
    |       `- note: class 'ChunkedFileUploader' does not conform to the 'Sendable' protocol
 15 |
 16 |     private(set) var currentState: InternalUploadState = .ready
/Users/admin/builder/spi-builder-workspace/Sources/MuxUploadSDK/PublicAPI/DirectUploadManager.swift:313:22: warning: non-sendable type 'Task<ChunkedFileUploader?, Never>' cannot exit actor-isolated context in call to nonisolated property 'value'; this is an error in the Swift 6 language mode
311 |     func getUpload(uploadID: String) async -> ChunkedFileUploader? {
312 |         // reminder: doesn't start the uploader, just makes it
313 |         return await Task<ChunkedFileUploader?, Never> {
    |                      `- warning: non-sendable type 'Task<ChunkedFileUploader?, Never>' cannot exit actor-isolated context in call to nonisolated property 'value'; this is an error in the Swift 6 language mode
314 |             try? persistence
315 |                 .readEntry(uploadID: uploadID)
/Users/admin/builder/spi-builder-workspace/Sources/MuxUploadSDK/Upload/ChunkedFileUploader.swift:14:7: note: class 'ChunkedFileUploader' does not conform to the 'Sendable' protocol
 12 | /// This object is not externally thread-safe. Access its methods only from the main thread
 13 | /// If you need to start this over again from the beginning, make a new object (and cancel your old one)
 14 | class ChunkedFileUploader {
    |       `- note: class 'ChunkedFileUploader' does not conform to the 'Sendable' protocol
 15 |
 16 |     private(set) var currentState: InternalUploadState = .ready
/Users/admin/builder/spi-builder-workspace/Sources/MuxUploadSDK/PublicAPI/DirectUploadManager.swift:321:11: warning: non-sendable type 'ChunkedFileUploader?' of nonisolated property 'value' cannot be sent to actor-isolated context; this is an error in the Swift 6 language mode
319 |                     )
320 |                 })
321 |         }.value
    |           `- warning: non-sendable type 'ChunkedFileUploader?' of nonisolated property 'value' cannot be sent to actor-isolated context; this is an error in the Swift 6 language mode
322 |     }
323 |
/Users/admin/builder/spi-builder-workspace/Sources/MuxUploadSDK/Upload/ChunkedFileUploader.swift:14:7: note: class 'ChunkedFileUploader' does not conform to the 'Sendable' protocol
 12 | /// This object is not externally thread-safe. Access its methods only from the main thread
 13 | /// If you need to start this over again from the beginning, make a new object (and cancel your old one)
 14 | class ChunkedFileUploader {
    |       `- note: class 'ChunkedFileUploader' does not conform to the 'Sendable' protocol
 15 |
 16 |     private(set) var currentState: InternalUploadState = .ready
/Users/admin/builder/spi-builder-workspace/Sources/MuxUploadSDK/PublicAPI/DirectUploadManager.swift:325:22: warning: type 'ChunkedFileUploader' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
323 |
324 |     func getUpload(ofFileAt: URL) async -> ChunkedFileUploader? {
325 |         return await Task<ChunkedFileUploader?, Never> {
    |                      `- warning: type 'ChunkedFileUploader' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
326 |             guard let matchingEntry = try? persistence.readAll().first(
327 |                 where: { $0.inputFileURL == ofFileAt || $0.uploadInfo.sourceFileURL == ofFileAt }
/Users/admin/builder/spi-builder-workspace/Sources/MuxUploadSDK/Upload/ChunkedFileUploader.swift:14:7: note: class 'ChunkedFileUploader' does not conform to the 'Sendable' protocol
 12 | /// This object is not externally thread-safe. Access its methods only from the main thread
 13 | /// If you need to start this over again from the beginning, make a new object (and cancel your old one)
 14 | class ChunkedFileUploader {
    |       `- note: class 'ChunkedFileUploader' does not conform to the 'Sendable' protocol
 15 |
 16 |     private(set) var currentState: InternalUploadState = .ready
/Users/admin/builder/spi-builder-workspace/Sources/MuxUploadSDK/PublicAPI/DirectUploadManager.swift:325:54: warning: type 'ChunkedFileUploader' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
323 |
324 |     func getUpload(ofFileAt: URL) async -> ChunkedFileUploader? {
325 |         return await Task<ChunkedFileUploader?, Never> {
    |                                                      `- warning: type 'ChunkedFileUploader' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
326 |             guard let matchingEntry = try? persistence.readAll().first(
327 |                 where: { $0.inputFileURL == ofFileAt || $0.uploadInfo.sourceFileURL == ofFileAt }
/Users/admin/builder/spi-builder-workspace/Sources/MuxUploadSDK/Upload/ChunkedFileUploader.swift:14:7: note: class 'ChunkedFileUploader' does not conform to the 'Sendable' protocol
 12 | /// This object is not externally thread-safe. Access its methods only from the main thread
 13 | /// If you need to start this over again from the beginning, make a new object (and cancel your old one)
 14 | class ChunkedFileUploader {
    |       `- note: class 'ChunkedFileUploader' does not conform to the 'Sendable' protocol
 15 |
 16 |     private(set) var currentState: InternalUploadState = .ready
/Users/admin/builder/spi-builder-workspace/Sources/MuxUploadSDK/PublicAPI/DirectUploadManager.swift:335:11: warning: type 'ChunkedFileUploader' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
333 |                 persistenceEntry: matchingEntry
334 |             )
335 |         }.value
    |           `- warning: type 'ChunkedFileUploader' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
336 |     }
337 |
/Users/admin/builder/spi-builder-workspace/Sources/MuxUploadSDK/Upload/ChunkedFileUploader.swift:14:7: note: class 'ChunkedFileUploader' does not conform to the 'Sendable' protocol
 12 | /// This object is not externally thread-safe. Access its methods only from the main thread
 13 | /// If you need to start this over again from the beginning, make a new object (and cancel your old one)
 14 | class ChunkedFileUploader {
    |       `- note: class 'ChunkedFileUploader' does not conform to the 'Sendable' protocol
 15 |
 16 |     private(set) var currentState: InternalUploadState = .ready
/Users/admin/builder/spi-builder-workspace/Sources/MuxUploadSDK/PublicAPI/DirectUploadManager.swift:325:22: warning: non-sendable type 'Task<ChunkedFileUploader?, Never>' cannot exit actor-isolated context in call to nonisolated property 'value'; this is an error in the Swift 6 language mode
323 |
324 |     func getUpload(ofFileAt: URL) async -> ChunkedFileUploader? {
325 |         return await Task<ChunkedFileUploader?, Never> {
    |                      `- warning: non-sendable type 'Task<ChunkedFileUploader?, Never>' cannot exit actor-isolated context in call to nonisolated property 'value'; this is an error in the Swift 6 language mode
326 |             guard let matchingEntry = try? persistence.readAll().first(
327 |                 where: { $0.inputFileURL == ofFileAt || $0.uploadInfo.sourceFileURL == ofFileAt }
/Users/admin/builder/spi-builder-workspace/Sources/MuxUploadSDK/Upload/ChunkedFileUploader.swift:14:7: note: class 'ChunkedFileUploader' does not conform to the 'Sendable' protocol
 12 | /// This object is not externally thread-safe. Access its methods only from the main thread
 13 | /// If you need to start this over again from the beginning, make a new object (and cancel your old one)
 14 | class ChunkedFileUploader {
    |       `- note: class 'ChunkedFileUploader' does not conform to the 'Sendable' protocol
 15 |
 16 |     private(set) var currentState: InternalUploadState = .ready
/Users/admin/builder/spi-builder-workspace/Sources/MuxUploadSDK/PublicAPI/DirectUploadManager.swift:335:11: warning: non-sendable type 'ChunkedFileUploader?' of nonisolated property 'value' cannot be sent to actor-isolated context; this is an error in the Swift 6 language mode
333 |                 persistenceEntry: matchingEntry
334 |             )
335 |         }.value
    |           `- warning: non-sendable type 'ChunkedFileUploader?' of nonisolated property 'value' cannot be sent to actor-isolated context; this is an error in the Swift 6 language mode
336 |     }
337 |
/Users/admin/builder/spi-builder-workspace/Sources/MuxUploadSDK/Upload/ChunkedFileUploader.swift:14:7: note: class 'ChunkedFileUploader' does not conform to the 'Sendable' protocol
 12 | /// This object is not externally thread-safe. Access its methods only from the main thread
 13 | /// If you need to start this over again from the beginning, make a new object (and cancel your old one)
 14 | class ChunkedFileUploader {
    |       `- note: class 'ChunkedFileUploader' does not conform to the 'Sendable' protocol
 15 |
 16 |     private(set) var currentState: InternalUploadState = .ready
/Users/admin/builder/spi-builder-workspace/Sources/MuxUploadSDK/PublicAPI/DirectUploadManager.swift:339:22: warning: type 'ChunkedFileUploader' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
337 |
338 |     func getAllUploads() async -> [ChunkedFileUploader] {
339 |         return await Task<[ChunkedFileUploader]?, Never> {
    |                      `- warning: type 'ChunkedFileUploader' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
340 |             return try? persistence.readAll().compactMap { it in
341 |                 ChunkedFileUploader(
/Users/admin/builder/spi-builder-workspace/Sources/MuxUploadSDK/Upload/ChunkedFileUploader.swift:14:7: note: class 'ChunkedFileUploader' does not conform to the 'Sendable' protocol
 12 | /// This object is not externally thread-safe. Access its methods only from the main thread
 13 | /// If you need to start this over again from the beginning, make a new object (and cancel your old one)
 14 | class ChunkedFileUploader {
    |       `- note: class 'ChunkedFileUploader' does not conform to the 'Sendable' protocol
 15 |
 16 |     private(set) var currentState: InternalUploadState = .ready
/Users/admin/builder/spi-builder-workspace/Sources/MuxUploadSDK/PublicAPI/DirectUploadManager.swift:339:56: warning: type 'ChunkedFileUploader' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
337 |
338 |     func getAllUploads() async -> [ChunkedFileUploader] {
339 |         return await Task<[ChunkedFileUploader]?, Never> {
    |                                                        `- warning: type 'ChunkedFileUploader' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
340 |             return try? persistence.readAll().compactMap { it in
341 |                 ChunkedFileUploader(
/Users/admin/builder/spi-builder-workspace/Sources/MuxUploadSDK/Upload/ChunkedFileUploader.swift:14:7: note: class 'ChunkedFileUploader' does not conform to the 'Sendable' protocol
 12 | /// This object is not externally thread-safe. Access its methods only from the main thread
 13 | /// If you need to start this over again from the beginning, make a new object (and cancel your old one)
 14 | class ChunkedFileUploader {
    |       `- note: class 'ChunkedFileUploader' does not conform to the 'Sendable' protocol
 15 |
 16 |     private(set) var currentState: InternalUploadState = .ready
/Users/admin/builder/spi-builder-workspace/Sources/MuxUploadSDK/PublicAPI/DirectUploadManager.swift:345:11: warning: type 'ChunkedFileUploader' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
343 |                 )
344 |             }
345 |         }.value ?? []
    |           `- warning: type 'ChunkedFileUploader' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
346 |     }
347 |
/Users/admin/builder/spi-builder-workspace/Sources/MuxUploadSDK/Upload/ChunkedFileUploader.swift:14:7: note: class 'ChunkedFileUploader' does not conform to the 'Sendable' protocol
 12 | /// This object is not externally thread-safe. Access its methods only from the main thread
 13 | /// If you need to start this over again from the beginning, make a new object (and cancel your old one)
 14 | class ChunkedFileUploader {
    |       `- note: class 'ChunkedFileUploader' does not conform to the 'Sendable' protocol
 15 |
 16 |     private(set) var currentState: InternalUploadState = .ready
/Users/admin/builder/spi-builder-workspace/Sources/MuxUploadSDK/PublicAPI/DirectUploadManager.swift:339:22: warning: non-sendable type 'Task<[ChunkedFileUploader]?, Never>' cannot exit actor-isolated context in call to nonisolated property 'value'; this is an error in the Swift 6 language mode
337 |
338 |     func getAllUploads() async -> [ChunkedFileUploader] {
339 |         return await Task<[ChunkedFileUploader]?, Never> {
    |                      `- warning: non-sendable type 'Task<[ChunkedFileUploader]?, Never>' cannot exit actor-isolated context in call to nonisolated property 'value'; this is an error in the Swift 6 language mode
340 |             return try? persistence.readAll().compactMap { it in
341 |                 ChunkedFileUploader(
/Users/admin/builder/spi-builder-workspace/Sources/MuxUploadSDK/Upload/ChunkedFileUploader.swift:14:7: note: class 'ChunkedFileUploader' does not conform to the 'Sendable' protocol
 12 | /// This object is not externally thread-safe. Access its methods only from the main thread
 13 | /// If you need to start this over again from the beginning, make a new object (and cancel your old one)
 14 | class ChunkedFileUploader {
    |       `- note: class 'ChunkedFileUploader' does not conform to the 'Sendable' protocol
 15 |
 16 |     private(set) var currentState: InternalUploadState = .ready
/Users/admin/builder/spi-builder-workspace/Sources/MuxUploadSDK/PublicAPI/DirectUploadManager.swift:345:11: warning: non-sendable type '[ChunkedFileUploader]?' of nonisolated property 'value' cannot be sent to actor-isolated context; this is an error in the Swift 6 language mode
343 |                 )
344 |             }
345 |         }.value ?? []
    |           `- warning: non-sendable type '[ChunkedFileUploader]?' of nonisolated property 'value' cannot be sent to actor-isolated context; this is an error in the Swift 6 language mode
346 |     }
347 |
/Users/admin/builder/spi-builder-workspace/Sources/MuxUploadSDK/Upload/ChunkedFileUploader.swift:14:7: note: class 'ChunkedFileUploader' does not conform to the 'Sendable' protocol
 12 | /// This object is not externally thread-safe. Access its methods only from the main thread
 13 | /// If you need to start this over again from the beginning, make a new object (and cancel your old one)
 14 | class ChunkedFileUploader {
    |       `- note: class 'ChunkedFileUploader' does not conform to the 'Sendable' protocol
 15 |
 16 |     private(set) var currentState: InternalUploadState = .ready
/Users/admin/builder/spi-builder-workspace/Sources/MuxUploadSDK/PublicAPI/DirectUploadManager.swift:249:28: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
247 |             // snapshot. Snapshotting before the hop lets notifications deliver
248 |             // out of order and the upload list appear to move backwards.
249 |             let snapshot = self.storage.notificationSnapshot()
    |                            |- warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
    |                            `- note: task-isolated 'self' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
250 |
251 |             // Unlocked by now, so a delegate may call back in.
/Users/admin/builder/spi-builder-workspace/Sources/MuxUploadSDK/PublicAPI/DirectUploadManager.swift:165:23: 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
163 |     /// If no upload was found in the cache, this method returns nil without taking any action.
164 |     public func resumeDirectUpload(ofFile url: URL, completion: @escaping (DirectUpload) -> Void) {
165 |         Task.detached {
    |                       `- 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
166 |             let upload = await self.resumeDirectUpload(ofFile: url)
    |                                `- note: closure captures 'self' which is accessible to code in the current task
167 |             if let nonNilUpload = upload {
168 |                 await MainActor.run { completion(nonNilUpload) }
/Users/admin/builder/spi-builder-workspace/Sources/MuxUploadSDK/PublicAPI/DirectUploadManager.swift:168:39: warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
166 |             let upload = await self.resumeDirectUpload(ofFile: url)
167 |             if let nonNilUpload = upload {
168 |                 await MainActor.run { completion(nonNilUpload) }
    |                                       |- warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
    |                                       `- note: task-isolated 'completion' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
169 |             }
170 |         }
/Users/admin/builder/spi-builder-workspace/Sources/MuxUploadSDK/PublicAPI/DirectUploadManager.swift:168:50: warning: sending 'nonNilUpload' risks causing data races; this is an error in the Swift 6 language mode
166 |             let upload = await self.resumeDirectUpload(ofFile: url)
167 |             if let nonNilUpload = upload {
168 |                 await MainActor.run { completion(nonNilUpload) }
    |                                                  |- warning: sending 'nonNilUpload' risks causing data races; this is an error in the Swift 6 language mode
    |                                                  `- note: task-isolated 'nonNilUpload' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
169 |             }
170 |         }
/Users/admin/builder/spi-builder-workspace/Sources/MuxUploadSDK/PublicAPI/DirectUploadManager.swift:176:23: 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
174 |     /// It can be useful to call this during app initialization to resume uploads that were interrupted by process death.
175 |     public func resumeAllDirectUploads() {
176 |         Task.detached { [self] in
    |                       `- 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
177 |             for upload in await uploadActor.getAllUploads() {
    |                                 `- note: closure captures 'self' which is accessible to code in the current task
178 |                 upload.addDelegate(
179 |                     withToken: UUID().uuidString,
/Users/admin/builder/spi-builder-workspace/Sources/MuxUploadSDK/PublicAPI/DirectUploadManager.swift:203:23: 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
201 |         upload?.fileWorker?.cancel()
202 |
203 |         Task.detached {
    |                       `- 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
204 |             await self.uploadActor.remove(uploadID: id)
    |                   `- note: closure captures 'self' which is accessible to code in the current task
205 |             self.notifyDelegates()
206 |         }
/Users/admin/builder/spi-builder-workspace/Sources/MuxUploadSDK/PublicAPI/DirectUploadManager.swift:234:23: 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
232 |         )
233 |         self.notifyDelegates()
234 |         Task.detached {
    |                       `- 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
235 |             await self.uploadActor.updateUpload(
    |                   `- note: closure captures 'self' which is accessible to code in the current task
236 |                 fileWorker.uploadInfo,
237 |                 fileInputURL: fileWorker.inputFileURL,
/Users/admin/builder/spi-builder-workspace/Sources/MuxUploadSDK/PublicAPI/DirectUploadManager.swift:235:36: warning: sending 'fileWorker.uploadInfo' risks causing data races; this is an error in the Swift 6 language mode
233 |         self.notifyDelegates()
234 |         Task.detached {
235 |             await self.uploadActor.updateUpload(
    |                                    |- warning: sending 'fileWorker.uploadInfo' risks causing data races; this is an error in the Swift 6 language mode
    |                                    `- note: sending task-isolated 'fileWorker.uploadInfo' to actor-isolated instance method 'updateUpload(_:fileInputURL:withUpdate:)' risks causing data races between actor-isolated and task-isolated uses
236 |                 fileWorker.uploadInfo,
237 |                 fileInputURL: fileWorker.inputFileURL,
/Users/admin/builder/spi-builder-workspace/Sources/MuxUploadSDK/PublicAPI/DirectUploadManager.swift:268:35: 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
266 |             stateUpdated state: ChunkedFileUploader.InternalUploadState
267 |         ) {
268 |             let _ = Task.detached {
    |                                   `- 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
269 |                 await manager.uploadActor.updateUpload(
    |                       `- note: closure captures 'self' which is accessible to code in the current task
270 |                     uploader.uploadInfo,
271 |                     fileInputURL: uploader.inputFileURL,
/Users/admin/builder/spi-builder-workspace/Sources/MuxUploadSDK/PublicAPI/DirectUploadManager.swift:269:43: warning: sending 'uploader.uploadInfo' risks causing data races; this is an error in the Swift 6 language mode
267 |         ) {
268 |             let _ = Task.detached {
269 |                 await manager.uploadActor.updateUpload(
    |                                           |- warning: sending 'uploader.uploadInfo' risks causing data races; this is an error in the Swift 6 language mode
    |                                           `- note: sending task-isolated 'uploader.uploadInfo' to actor-isolated instance method 'updateUpload(_:fileInputURL:withUpdate:)' risks causing data races between actor-isolated and task-isolated uses
270 |                     uploader.uploadInfo,
271 |                     fileInputURL: uploader.inputFileURL,
[33/40] Compiling MuxUploadSDK Error+InternalErrors.swift
[34/40] Compiling MuxUploadSDK HttpError.swift
[35/40] Compiling MuxUploadSDK InputStandardizationFailedEvent.swift
[36/40] Compiling MuxUploadSDK InputStandardizationSucceededEvent.swift
[37/40] Compiling MuxUploadSDK StandardizationDiagnostics.swift
/Users/admin/builder/spi-builder-workspace/Sources/MuxUploadSDK/InputStandardization/UploadInputStandardizationWorker.swift:231:53: warning: non-sendable result type '[AVAssetTrack]' cannot be sent from nonisolated context in call to instance method 'loadTracks(withMediaType:)'; this is an error in the Swift 6 language mode
229 |         self.outputURL = outputURL
230 |         do {
231 |             let videoTracks = try await sourceAsset.loadTracks(withMediaType: .video)
    |                                                     `- warning: non-sendable result type '[AVAssetTrack]' cannot be sent from nonisolated context in call to instance method 'loadTracks(withMediaType:)'; this is an error in the Swift 6 language mode
232 |             try ensureActive()
233 |             guard videoTracks.count == 1, let videoTrack = videoTracks.first else {
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVAssetTrack.h:35:12: note: class 'AVAssetTrack' does not conform to the 'Sendable' protocol
 33 |
 34 | API_AVAILABLE(macos(10.7), ios(4.0), tvos(9.0), watchos(1.0), visionos(1.0))
 35 | @interface AVAssetTrack : NSObject <NSCopying, AVAsynchronousKeyValueLoading>
    |            `- note: class 'AVAssetTrack' does not conform to the 'Sendable' protocol
 36 | {
 37 | @private
/Users/admin/builder/spi-builder-workspace/Sources/MuxUploadSDK/InputStandardization/UploadInputStandardizationWorker.swift:5:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'AVFoundation'
  3 | //
  4 |
  5 | import AVFoundation
    | `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'AVFoundation'
  6 | import AudioToolbox
  7 | import CoreMedia
/Users/admin/builder/spi-builder-workspace/Sources/MuxUploadSDK/InputStandardization/UploadInputStandardizationWorker.swift:239:53: warning: non-sendable result type '[AVAssetTrack]' cannot be sent from nonisolated context in call to instance method 'loadTracks(withMediaType:)'; this is an error in the Swift 6 language mode
237 |             }
238 |
239 |             let audioTracks = try await sourceAsset.loadTracks(withMediaType: .audio)
    |                                                     `- warning: non-sendable result type '[AVAssetTrack]' cannot be sent from nonisolated context in call to instance method 'loadTracks(withMediaType:)'; this is an error in the Swift 6 language mode
240 |             try ensureActive()
241 |             let audioTrack = audioTracks.first
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVAssetTrack.h:35:12: note: class 'AVAssetTrack' does not conform to the 'Sendable' protocol
 33 |
 34 | API_AVAILABLE(macos(10.7), ios(4.0), tvos(9.0), watchos(1.0), visionos(1.0))
 35 | @interface AVAssetTrack : NSObject <NSCopying, AVAsynchronousKeyValueLoading>
    |            `- note: class 'AVAssetTrack' does not conform to the 'Sendable' protocol
 36 | {
 37 | @private
/Users/admin/builder/spi-builder-workspace/Sources/MuxUploadSDK/InputStandardization/UploadInputStandardizationWorker.swift:294:50: warning: sending 'track' risks causing data races; this is an error in the Swift 6 language mode
292 |     ) async throws -> AudioProperties? {
293 |         guard let track else { return nil }
294 |         let formatDescriptions = try await track.load(.formatDescriptions)
    |                                                  |- warning: sending 'track' risks causing data races; this is an error in the Swift 6 language mode
    |                                                  `- note: sending 'self'-isolated 'track' to nonisolated callee risks causing data races between nonisolated and 'self'-isolated uses
295 |         try ensureActive()
296 |         return try Self.audioProperties(
/Users/admin/builder/spi-builder-workspace/Sources/MuxUploadSDK/InputStandardization/UploadInputStandardizationWorker.swift:305:46: warning: sending 'sourceAsset' risks causing data races; this is an error in the Swift 6 language mode
303 |         videoTrack: AVAssetTrack
304 |     ) async throws -> LoadedAssetProperties {
305 |         let duration = try await sourceAsset.load(.duration)
    |                                              |- warning: sending 'sourceAsset' risks causing data races; this is an error in the Swift 6 language mode
    |                                              `- note: sending 'self'-isolated 'sourceAsset' to nonisolated callee risks causing data races between nonisolated and 'self'-isolated uses
306 |         let (
307 |             naturalSize,
/Users/admin/builder/spi-builder-workspace/Sources/MuxUploadSDK/InputStandardization/UploadInputStandardizationWorker.swift:311:34: warning: sending 'videoTrack' risks causing data races; this is an error in the Swift 6 language mode
309 |             nominalFrameRate,
310 |             formatDescriptions
311 |         ) = try await videoTrack.load(
    |                                  |- warning: sending 'videoTrack' risks causing data races; this is an error in the Swift 6 language mode
    |                                  `- note: sending 'self'-isolated 'videoTrack' to nonisolated callee risks causing data races between nonisolated and 'self'-isolated uses
312 |             .naturalSize,
313 |             .preferredTransform,
/Users/admin/builder/spi-builder-workspace/Sources/MuxUploadSDK/InputStandardization/UploadInputStandardizationWorker.swift:498:22: warning: sending 'writer' risks causing data races; this is an error in the Swift 6 language mode
496 |         }
497 |
498 |         await writer.finishWriting()
    |                      |- warning: sending 'writer' risks causing data races; this is an error in the Swift 6 language mode
    |                      `- note: sending 'self'-isolated 'writer' to nonisolated instance method 'finishWriting()' risks causing data races between nonisolated and 'self'-isolated uses
499 |         try ensureActive()
500 |         guard writer.status == .completed else {
[38/40] Compiling MuxUploadSDK UploadInputStandardizationWorker.swift
/Users/admin/builder/spi-builder-workspace/Sources/MuxUploadSDK/InputStandardization/UploadInputStandardizationWorker.swift:231:53: warning: non-sendable result type '[AVAssetTrack]' cannot be sent from nonisolated context in call to instance method 'loadTracks(withMediaType:)'; this is an error in the Swift 6 language mode
229 |         self.outputURL = outputURL
230 |         do {
231 |             let videoTracks = try await sourceAsset.loadTracks(withMediaType: .video)
    |                                                     `- warning: non-sendable result type '[AVAssetTrack]' cannot be sent from nonisolated context in call to instance method 'loadTracks(withMediaType:)'; this is an error in the Swift 6 language mode
232 |             try ensureActive()
233 |             guard videoTracks.count == 1, let videoTrack = videoTracks.first else {
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVAssetTrack.h:35:12: note: class 'AVAssetTrack' does not conform to the 'Sendable' protocol
 33 |
 34 | API_AVAILABLE(macos(10.7), ios(4.0), tvos(9.0), watchos(1.0), visionos(1.0))
 35 | @interface AVAssetTrack : NSObject <NSCopying, AVAsynchronousKeyValueLoading>
    |            `- note: class 'AVAssetTrack' does not conform to the 'Sendable' protocol
 36 | {
 37 | @private
/Users/admin/builder/spi-builder-workspace/Sources/MuxUploadSDK/InputStandardization/UploadInputStandardizationWorker.swift:5:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'AVFoundation'
  3 | //
  4 |
  5 | import AVFoundation
    | `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'AVFoundation'
  6 | import AudioToolbox
  7 | import CoreMedia
/Users/admin/builder/spi-builder-workspace/Sources/MuxUploadSDK/InputStandardization/UploadInputStandardizationWorker.swift:239:53: warning: non-sendable result type '[AVAssetTrack]' cannot be sent from nonisolated context in call to instance method 'loadTracks(withMediaType:)'; this is an error in the Swift 6 language mode
237 |             }
238 |
239 |             let audioTracks = try await sourceAsset.loadTracks(withMediaType: .audio)
    |                                                     `- warning: non-sendable result type '[AVAssetTrack]' cannot be sent from nonisolated context in call to instance method 'loadTracks(withMediaType:)'; this is an error in the Swift 6 language mode
240 |             try ensureActive()
241 |             let audioTrack = audioTracks.first
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVAssetTrack.h:35:12: note: class 'AVAssetTrack' does not conform to the 'Sendable' protocol
 33 |
 34 | API_AVAILABLE(macos(10.7), ios(4.0), tvos(9.0), watchos(1.0), visionos(1.0))
 35 | @interface AVAssetTrack : NSObject <NSCopying, AVAsynchronousKeyValueLoading>
    |            `- note: class 'AVAssetTrack' does not conform to the 'Sendable' protocol
 36 | {
 37 | @private
/Users/admin/builder/spi-builder-workspace/Sources/MuxUploadSDK/InputStandardization/UploadInputStandardizationWorker.swift:294:50: warning: sending 'track' risks causing data races; this is an error in the Swift 6 language mode
292 |     ) async throws -> AudioProperties? {
293 |         guard let track else { return nil }
294 |         let formatDescriptions = try await track.load(.formatDescriptions)
    |                                                  |- warning: sending 'track' risks causing data races; this is an error in the Swift 6 language mode
    |                                                  `- note: sending 'self'-isolated 'track' to nonisolated callee risks causing data races between nonisolated and 'self'-isolated uses
295 |         try ensureActive()
296 |         return try Self.audioProperties(
/Users/admin/builder/spi-builder-workspace/Sources/MuxUploadSDK/InputStandardization/UploadInputStandardizationWorker.swift:305:46: warning: sending 'sourceAsset' risks causing data races; this is an error in the Swift 6 language mode
303 |         videoTrack: AVAssetTrack
304 |     ) async throws -> LoadedAssetProperties {
305 |         let duration = try await sourceAsset.load(.duration)
    |                                              |- warning: sending 'sourceAsset' risks causing data races; this is an error in the Swift 6 language mode
    |                                              `- note: sending 'self'-isolated 'sourceAsset' to nonisolated callee risks causing data races between nonisolated and 'self'-isolated uses
306 |         let (
307 |             naturalSize,
/Users/admin/builder/spi-builder-workspace/Sources/MuxUploadSDK/InputStandardization/UploadInputStandardizationWorker.swift:311:34: warning: sending 'videoTrack' risks causing data races; this is an error in the Swift 6 language mode
309 |             nominalFrameRate,
310 |             formatDescriptions
311 |         ) = try await videoTrack.load(
    |                                  |- warning: sending 'videoTrack' risks causing data races; this is an error in the Swift 6 language mode
    |                                  `- note: sending 'self'-isolated 'videoTrack' to nonisolated callee risks causing data races between nonisolated and 'self'-isolated uses
312 |             .naturalSize,
313 |             .preferredTransform,
/Users/admin/builder/spi-builder-workspace/Sources/MuxUploadSDK/InputStandardization/UploadInputStandardizationWorker.swift:498:22: warning: sending 'writer' risks causing data races; this is an error in the Swift 6 language mode
496 |         }
497 |
498 |         await writer.finishWriting()
    |                      |- warning: sending 'writer' risks causing data races; this is an error in the Swift 6 language mode
    |                      `- note: sending 'self'-isolated 'writer' to nonisolated instance method 'finishWriting()' risks causing data races between nonisolated and 'self'-isolated uses
499 |         try ensureActive()
500 |         guard writer.status == .completed else {
[39/40] Compiling MuxUploadSDK UploadInputStandardizer.swift
/Users/admin/builder/spi-builder-workspace/Sources/MuxUploadSDK/InputStandardization/UploadInputStandardizationWorker.swift:231:53: warning: non-sendable result type '[AVAssetTrack]' cannot be sent from nonisolated context in call to instance method 'loadTracks(withMediaType:)'; this is an error in the Swift 6 language mode
229 |         self.outputURL = outputURL
230 |         do {
231 |             let videoTracks = try await sourceAsset.loadTracks(withMediaType: .video)
    |                                                     `- warning: non-sendable result type '[AVAssetTrack]' cannot be sent from nonisolated context in call to instance method 'loadTracks(withMediaType:)'; this is an error in the Swift 6 language mode
232 |             try ensureActive()
233 |             guard videoTracks.count == 1, let videoTrack = videoTracks.first else {
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVAssetTrack.h:35:12: note: class 'AVAssetTrack' does not conform to the 'Sendable' protocol
 33 |
 34 | API_AVAILABLE(macos(10.7), ios(4.0), tvos(9.0), watchos(1.0), visionos(1.0))
 35 | @interface AVAssetTrack : NSObject <NSCopying, AVAsynchronousKeyValueLoading>
    |            `- note: class 'AVAssetTrack' does not conform to the 'Sendable' protocol
 36 | {
 37 | @private
/Users/admin/builder/spi-builder-workspace/Sources/MuxUploadSDK/InputStandardization/UploadInputStandardizationWorker.swift:5:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'AVFoundation'
  3 | //
  4 |
  5 | import AVFoundation
    | `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'AVFoundation'
  6 | import AudioToolbox
  7 | import CoreMedia
/Users/admin/builder/spi-builder-workspace/Sources/MuxUploadSDK/InputStandardization/UploadInputStandardizationWorker.swift:239:53: warning: non-sendable result type '[AVAssetTrack]' cannot be sent from nonisolated context in call to instance method 'loadTracks(withMediaType:)'; this is an error in the Swift 6 language mode
237 |             }
238 |
239 |             let audioTracks = try await sourceAsset.loadTracks(withMediaType: .audio)
    |                                                     `- warning: non-sendable result type '[AVAssetTrack]' cannot be sent from nonisolated context in call to instance method 'loadTracks(withMediaType:)'; this is an error in the Swift 6 language mode
240 |             try ensureActive()
241 |             let audioTrack = audioTracks.first
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVAssetTrack.h:35:12: note: class 'AVAssetTrack' does not conform to the 'Sendable' protocol
 33 |
 34 | API_AVAILABLE(macos(10.7), ios(4.0), tvos(9.0), watchos(1.0), visionos(1.0))
 35 | @interface AVAssetTrack : NSObject <NSCopying, AVAsynchronousKeyValueLoading>
    |            `- note: class 'AVAssetTrack' does not conform to the 'Sendable' protocol
 36 | {
 37 | @private
/Users/admin/builder/spi-builder-workspace/Sources/MuxUploadSDK/InputStandardization/UploadInputStandardizationWorker.swift:294:50: warning: sending 'track' risks causing data races; this is an error in the Swift 6 language mode
292 |     ) async throws -> AudioProperties? {
293 |         guard let track else { return nil }
294 |         let formatDescriptions = try await track.load(.formatDescriptions)
    |                                                  |- warning: sending 'track' risks causing data races; this is an error in the Swift 6 language mode
    |                                                  `- note: sending 'self'-isolated 'track' to nonisolated callee risks causing data races between nonisolated and 'self'-isolated uses
295 |         try ensureActive()
296 |         return try Self.audioProperties(
/Users/admin/builder/spi-builder-workspace/Sources/MuxUploadSDK/InputStandardization/UploadInputStandardizationWorker.swift:305:46: warning: sending 'sourceAsset' risks causing data races; this is an error in the Swift 6 language mode
303 |         videoTrack: AVAssetTrack
304 |     ) async throws -> LoadedAssetProperties {
305 |         let duration = try await sourceAsset.load(.duration)
    |                                              |- warning: sending 'sourceAsset' risks causing data races; this is an error in the Swift 6 language mode
    |                                              `- note: sending 'self'-isolated 'sourceAsset' to nonisolated callee risks causing data races between nonisolated and 'self'-isolated uses
306 |         let (
307 |             naturalSize,
/Users/admin/builder/spi-builder-workspace/Sources/MuxUploadSDK/InputStandardization/UploadInputStandardizationWorker.swift:311:34: warning: sending 'videoTrack' risks causing data races; this is an error in the Swift 6 language mode
309 |             nominalFrameRate,
310 |             formatDescriptions
311 |         ) = try await videoTrack.load(
    |                                  |- warning: sending 'videoTrack' risks causing data races; this is an error in the Swift 6 language mode
    |                                  `- note: sending 'self'-isolated 'videoTrack' to nonisolated callee risks causing data races between nonisolated and 'self'-isolated uses
312 |             .naturalSize,
313 |             .preferredTransform,
/Users/admin/builder/spi-builder-workspace/Sources/MuxUploadSDK/InputStandardization/UploadInputStandardizationWorker.swift:498:22: warning: sending 'writer' risks causing data races; this is an error in the Swift 6 language mode
496 |         }
497 |
498 |         await writer.finishWriting()
    |                      |- warning: sending 'writer' risks causing data races; this is an error in the Swift 6 language mode
    |                      `- note: sending 'self'-isolated 'writer' to nonisolated instance method 'finishWriting()' risks causing data races between nonisolated and 'self'-isolated uses
499 |         try ensureActive()
500 |         guard writer.status == .completed else {
[40/40] Compiling MuxUploadSDK ChunkedFile.swift
/Users/admin/builder/spi-builder-workspace/Sources/MuxUploadSDK/InputStandardization/UploadInputStandardizationWorker.swift:231:53: warning: non-sendable result type '[AVAssetTrack]' cannot be sent from nonisolated context in call to instance method 'loadTracks(withMediaType:)'; this is an error in the Swift 6 language mode
229 |         self.outputURL = outputURL
230 |         do {
231 |             let videoTracks = try await sourceAsset.loadTracks(withMediaType: .video)
    |                                                     `- warning: non-sendable result type '[AVAssetTrack]' cannot be sent from nonisolated context in call to instance method 'loadTracks(withMediaType:)'; this is an error in the Swift 6 language mode
232 |             try ensureActive()
233 |             guard videoTracks.count == 1, let videoTrack = videoTracks.first else {
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVAssetTrack.h:35:12: note: class 'AVAssetTrack' does not conform to the 'Sendable' protocol
 33 |
 34 | API_AVAILABLE(macos(10.7), ios(4.0), tvos(9.0), watchos(1.0), visionos(1.0))
 35 | @interface AVAssetTrack : NSObject <NSCopying, AVAsynchronousKeyValueLoading>
    |            `- note: class 'AVAssetTrack' does not conform to the 'Sendable' protocol
 36 | {
 37 | @private
/Users/admin/builder/spi-builder-workspace/Sources/MuxUploadSDK/InputStandardization/UploadInputStandardizationWorker.swift:5:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'AVFoundation'
  3 | //
  4 |
  5 | import AVFoundation
    | `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'AVFoundation'
  6 | import AudioToolbox
  7 | import CoreMedia
/Users/admin/builder/spi-builder-workspace/Sources/MuxUploadSDK/InputStandardization/UploadInputStandardizationWorker.swift:239:53: warning: non-sendable result type '[AVAssetTrack]' cannot be sent from nonisolated context in call to instance method 'loadTracks(withMediaType:)'; this is an error in the Swift 6 language mode
237 |             }
238 |
239 |             let audioTracks = try await sourceAsset.loadTracks(withMediaType: .audio)
    |                                                     `- warning: non-sendable result type '[AVAssetTrack]' cannot be sent from nonisolated context in call to instance method 'loadTracks(withMediaType:)'; this is an error in the Swift 6 language mode
240 |             try ensureActive()
241 |             let audioTrack = audioTracks.first
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVAssetTrack.h:35:12: note: class 'AVAssetTrack' does not conform to the 'Sendable' protocol
 33 |
 34 | API_AVAILABLE(macos(10.7), ios(4.0), tvos(9.0), watchos(1.0), visionos(1.0))
 35 | @interface AVAssetTrack : NSObject <NSCopying, AVAsynchronousKeyValueLoading>
    |            `- note: class 'AVAssetTrack' does not conform to the 'Sendable' protocol
 36 | {
 37 | @private
/Users/admin/builder/spi-builder-workspace/Sources/MuxUploadSDK/InputStandardization/UploadInputStandardizationWorker.swift:294:50: warning: sending 'track' risks causing data races; this is an error in the Swift 6 language mode
292 |     ) async throws -> AudioProperties? {
293 |         guard let track else { return nil }
294 |         let formatDescriptions = try await track.load(.formatDescriptions)
    |                                                  |- warning: sending 'track' risks causing data races; this is an error in the Swift 6 language mode
    |                                                  `- note: sending 'self'-isolated 'track' to nonisolated callee risks causing data races between nonisolated and 'self'-isolated uses
295 |         try ensureActive()
296 |         return try Self.audioProperties(
/Users/admin/builder/spi-builder-workspace/Sources/MuxUploadSDK/InputStandardization/UploadInputStandardizationWorker.swift:305:46: warning: sending 'sourceAsset' risks causing data races; this is an error in the Swift 6 language mode
303 |         videoTrack: AVAssetTrack
304 |     ) async throws -> LoadedAssetProperties {
305 |         let duration = try await sourceAsset.load(.duration)
    |                                              |- warning: sending 'sourceAsset' risks causing data races; this is an error in the Swift 6 language mode
    |                                              `- note: sending 'self'-isolated 'sourceAsset' to nonisolated callee risks causing data races between nonisolated and 'self'-isolated uses
306 |         let (
307 |             naturalSize,
/Users/admin/builder/spi-builder-workspace/Sources/MuxUploadSDK/InputStandardization/UploadInputStandardizationWorker.swift:311:34: warning: sending 'videoTrack' risks causing data races; this is an error in the Swift 6 language mode
309 |             nominalFrameRate,
310 |             formatDescriptions
311 |         ) = try await videoTrack.load(
    |                                  |- warning: sending 'videoTrack' risks causing data races; this is an error in the Swift 6 language mode
    |                                  `- note: sending 'self'-isolated 'videoTrack' to nonisolated callee risks causing data races between nonisolated and 'self'-isolated uses
312 |             .naturalSize,
313 |             .preferredTransform,
/Users/admin/builder/spi-builder-workspace/Sources/MuxUploadSDK/InputStandardization/UploadInputStandardizationWorker.swift:498:22: warning: sending 'writer' risks causing data races; this is an error in the Swift 6 language mode
496 |         }
497 |
498 |         await writer.finishWriting()
    |                      |- warning: sending 'writer' risks causing data races; this is an error in the Swift 6 language mode
    |                      `- note: sending 'self'-isolated 'writer' to nonisolated instance method 'finishWriting()' risks causing data races between nonisolated and 'self'-isolated uses
499 |         try ensureActive()
500 |         guard writer.status == .completed else {
Build complete! (21.89s)
Fetching https://github.com/apple/swift-docc-plugin
[1/2345] Fetching swift-docc-plugin
Fetched https://github.com/apple/swift-docc-plugin from cache (1.34s)
Computing version for https://github.com/apple/swift-docc-plugin
Computed https://github.com/apple/swift-docc-plugin at 1.5.0 (1.96s)
Fetching https://github.com/swiftlang/swift-docc-symbolkit from cache
Fetched https://github.com/swiftlang/swift-docc-symbolkit from cache (1.11s)
Computing version for https://github.com/swiftlang/swift-docc-symbolkit
Computed https://github.com/swiftlang/swift-docc-symbolkit at 1.0.0 (1.80s)
Creating working copy for https://github.com/apple/swift-docc-plugin
Working copy of https://github.com/apple/swift-docc-plugin resolved at 1.5.0
Creating working copy for https://github.com/swiftlang/swift-docc-symbolkit
Working copy of https://github.com/swiftlang/swift-docc-symbolkit resolved at 1.0.0
Build complete.
{
  "default_localization" : "en",
  "dependencies" : [
    {
      "identity" : "swift-docc-plugin",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "1.2.0",
            "upper_bound" : "2.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/apple/swift-docc-plugin"
    }
  ],
  "manifest_display_name" : "MuxUploadSDK",
  "name" : "MuxUploadSDK",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "ios",
      "version" : "15.0"
    },
    {
      "name" : "macos",
      "version" : "13.0"
    }
  ],
  "products" : [
    {
      "name" : "MuxUploadSDK",
      "targets" : [
        "MuxUploadSDK"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "swift_languages_versions" : [
    "5"
  ],
  "targets" : [
    {
      "c99name" : "MuxUploadSDKTests",
      "module_type" : "SwiftTarget",
      "name" : "MuxUploadSDKTests",
      "path" : "Tests/MuxUploadSDKTests",
      "sources" : [
        "Helpers/DummyError.swift",
        "Helpers/FakeUploadsFile.swift",
        "Helpers/MockUploadInputInspector.swift",
        "Helpers/MockUploadInputStandardizer.swift",
        "Helpers/PersistenceEntry+Fixtures.swift",
        "Helpers/RecordingStandardizationDiagnosticLogger.swift",
        "Helpers/StubbedChunkedFile.swift",
        "Helpers/UploadInput+Fixtures.swift",
        "InputInspectionTests/UploadInputMetadataInspectionTests.swift",
        "InputInspectionTests/UploadInputSampleInspectionTests.swift",
        "InputStandardizationTests/StandardInputPlannerTests.swift",
        "InputStandardizationTests/StandardInputPolicyTests.swift",
        "InputStandardizationTests/UploadInputStandardizerTests.swift",
        "Internal Utilities Tests/ChunkedFileTests.swift",
        "PublicAPITests/DirectUploadForceRestartTests.swift",
        "PublicAPITests/DirectUploadOptionsTests.swift",
        "PublicAPITests/DirectUploadTests.swift",
        "Upload Tests/ChunkWorkerTests.swift",
        "Upload Tests/ChunkedFileUploaderTests.swift",
        "Upload Tests/ReporterTests.swift",
        "Upload Tests/UploadPersistenceTests.swift",
        "UploadManagerTests/UploadManagerTests.swift",
        "UploadManagerTests/UploadManagerThreadSafetyTests.swift"
      ],
      "target_dependencies" : [
        "MuxUploadSDK"
      ],
      "type" : "test"
    },
    {
      "c99name" : "MuxUploadSDK",
      "module_type" : "SwiftTarget",
      "name" : "MuxUploadSDK",
      "path" : "Sources/MuxUploadSDK",
      "product_memberships" : [
        "MuxUploadSDK"
      ],
      "sources" : [
        "Extensions/Bundle+Reporting.swift",
        "Extensions/FileManager+FileOperations.swift",
        "Extensions/NSMutableURLRequest+Reporting.swift",
        "InputInspection/StandardInputTimelineInspector.swift",
        "InputInspection/UploadInputFormatInspectionResult.swift",
        "InputInspection/UploadInputInspector.swift",
        "InputInspection/UploadInputMetadataInspection.swift",
        "InputInspection/UploadInputSampleInspection.swift",
        "InputStandardization/DirectUploadPreparation.swift",
        "InputStandardization/StandardInputOutputValidator.swift",
        "InputStandardization/StandardInputPlanner.swift",
        "InputStandardization/StandardInputPolicy.swift",
        "InputStandardization/StandardizationDiagnostics.swift",
        "InputStandardization/UploadInputStandardizationWorker.swift",
        "InputStandardization/UploadInputStandardizer.swift",
        "InternalUtilities/ChunkedFile.swift",
        "InternalUtilities/Error+InternalErrors.swift",
        "InternalUtilities/HttpError.swift",
        "InternalUtilities/Reporting/InputStandardizationFailedEvent.swift",
        "InternalUtilities/Reporting/InputStandardizationSucceededEvent.swift",
        "InternalUtilities/Reporting/Reporter.swift",
        "InternalUtilities/Reporting/UploadFailedEvent.swift",
        "InternalUtilities/Reporting/UploadSucceededEvent.swift",
        "InternalUtilities/UploadInput.swift",
        "PublicAPI/AVFoundation+DirectUpload/DirectUpload+AVFoundation.swift",
        "PublicAPI/DirectUpload.swift",
        "PublicAPI/DirectUploadManager.swift",
        "PublicAPI/Options/DirectUploadOptions.swift",
        "PublicAPI/PhotosKit+DirectUpload/PHAsset+DirectUpload.swift",
        "PublicAPI/SDKLogger.swift",
        "PublicAPI/SemanticVersion.swift",
        "Upload/ChunkWorker.swift",
        "Upload/ChunkedFileUploader.swift",
        "Upload/UploadInfo.swift",
        "Upload/UploadPersistence.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.7"
}
Done.