Build Information
Successful build of MuxUploadSDK, reference v1.2.1 (82aeac), with Swift 6.1 for macOS (SPM) on 30 Oct 2026 21:00:07 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 InferSendableFromCapturesBuild Log
"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"
}
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.3.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures
[1/1] Compiling plugin Swift-DocC Preview
[2/2] Compiling plugin Swift-DocC
Building for debugging...
[2/4] Write sources
[3/4] Write swift-version-2F0A5646E1D333AE.txt
[5/37] Emitting module MuxUploadSDK
/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] = [:]
/Users/admin/builder/spi-builder-workspace/Sources/MuxUploadSDK/PublicAPI/DirectUpload.swift:1517: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
1501 | public struct DirectUploadError : Error {
1502 | /// Represents the possible error cases from a ``DirectUpload``
1503 | public enum Kind : Int {
| `- note: consider making enum 'Kind' conform to the 'Sendable' protocol
1504 | /// The cause of the error is not known
1505 | case unknown = -1
:
1515 |
1516 | public let lastStatus: DirectUpload.TransportStatus?
1517 | 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
1518 | public let message: String
1519 | public let reason: Error?
/Users/admin/builder/spi-builder-workspace/Sources/MuxUploadSDK/PublicAPI/DirectUploadManager.swift:399: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
26 | /// ```
27 | ///
28 | public final class DirectUploadManager {
| `- note: class 'DirectUploadManager' does not conform to the 'Sendable' protocol
29 |
30 | private struct UploadStorage: Equatable, Hashable {
:
397 |
398 | /// The shared instance of this object that should be used.
399 | 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
400 |
401 | private struct FileUploaderDelegate : ChunkedFileUploaderDelegate {
/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 |
[6/40] Compiling MuxUploadSDK Error+InternalErrors.swift
[7/40] Compiling MuxUploadSDK HttpError.swift
[8/40] Compiling MuxUploadSDK InputStandardizationFailedEvent.swift
[9/40] Compiling MuxUploadSDK InputStandardizationSucceededEvent.swift
[10/40] Compiling MuxUploadSDK Bundle+Reporting.swift
[11/40] Compiling MuxUploadSDK FileManager+FileOperations.swift
[12/40] Compiling MuxUploadSDK NSMutableURLRequest+Reporting.swift
[13/40] Compiling MuxUploadSDK StandardInputTimelineInspector.swift
[14/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
[15/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
[16/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
[17/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
[18/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:525:59: warning: sending 'chunkWorker' risks causing data races; this is an error in the Swift 6 language mode
523 |
524 | // Do not use task in a loop it will create an memory consumption issue.
525 | 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
526 | throw ChunkedFileUploaderError.unexpectedChunkResult
527 | }
/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 | }
[19/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:525:59: warning: sending 'chunkWorker' risks causing data races; this is an error in the Swift 6 language mode
523 |
524 | // Do not use task in a loop it will create an memory consumption issue.
525 | 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
526 | throw ChunkedFileUploaderError.unexpectedChunkResult
527 | }
/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 | }
[20/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:525:59: warning: sending 'chunkWorker' risks causing data races; this is an error in the Swift 6 language mode
523 |
524 | // Do not use task in a loop it will create an memory consumption issue.
525 | 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
526 | throw ChunkedFileUploaderError.unexpectedChunkResult
527 | }
/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 | }
[21/40] Compiling MuxUploadSDK DirectUploadManager.swift
/Users/admin/builder/spi-builder-workspace/Sources/MuxUploadSDK/PublicAPI/DirectUploadManager.swift:399: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
26 | /// ```
27 | ///
28 | public final class DirectUploadManager {
| `- note: class 'DirectUploadManager' does not conform to the 'Sendable' protocol
29 |
30 | private struct UploadStorage: Equatable, Hashable {
:
397 |
398 | /// The shared instance of this object that should be used.
399 | 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
400 |
401 | private struct FileUploaderDelegate : ChunkedFileUploaderDelegate {
/Users/admin/builder/spi-builder-workspace/Sources/MuxUploadSDK/PublicAPI/DirectUploadManager.swift:262:48: 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
260 | return existing
261 | }
262 | guard let uploader = 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
263 | let upload = restorePersistedUpload(uploader) else { return nil }
264 | notifyDelegates()
/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:286:47: 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
284 | Task.detached { [self] in
285 | await storage.pendingPersistenceTask()?.value
286 | for uploader 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
287 | _ = restorePersistedUpload(uploader)
288 | }
/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:447:22: warning: type 'ChunkedFileUploader' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
445 | func getUpload(uploadID: String) async -> ChunkedFileUploader? {
446 | // reminder: doesn't start the uploader, just makes it
447 | 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
448 | try? persistence
449 | .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:447:54: warning: type 'ChunkedFileUploader' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
445 | func getUpload(uploadID: String) async -> ChunkedFileUploader? {
446 | // reminder: doesn't start the uploader, just makes it
447 | 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
448 | try? persistence
449 | .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:455:11: warning: type 'ChunkedFileUploader' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
453 | )
454 | })
455 | }.value
| `- warning: type 'ChunkedFileUploader' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
456 | }
457 |
/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:447: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
445 | func getUpload(uploadID: String) async -> ChunkedFileUploader? {
446 | // reminder: doesn't start the uploader, just makes it
447 | 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
448 | try? persistence
449 | .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:455: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
453 | )
454 | })
455 | }.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
456 | }
457 |
/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:459:22: warning: type 'ChunkedFileUploader' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
457 |
458 | func getUpload(ofFileAt: URL) async -> ChunkedFileUploader? {
459 | 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
460 | guard let matchingEntry = try? persistence.readAll().filter({
461 | $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:459:54: warning: type 'ChunkedFileUploader' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
457 |
458 | func getUpload(ofFileAt: URL) async -> ChunkedFileUploader? {
459 | 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
460 | guard let matchingEntry = try? persistence.readAll().filter({
461 | $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:472:11: warning: type 'ChunkedFileUploader' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
470 | persistenceEntry: matchingEntry
471 | )
472 | }.value
| `- warning: type 'ChunkedFileUploader' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
473 | }
474 |
/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:459: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
457 |
458 | func getUpload(ofFileAt: URL) async -> ChunkedFileUploader? {
459 | 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
460 | guard let matchingEntry = try? persistence.readAll().filter({
461 | $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:472: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
470 | persistenceEntry: matchingEntry
471 | )
472 | }.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
473 | }
474 |
/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:476:22: warning: type 'ChunkedFileUploader' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
474 |
475 | func getAllUploads() async -> [ChunkedFileUploader] {
476 | 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
477 | return try? persistence.readAll().compactMap { it in
478 | 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:476:56: warning: type 'ChunkedFileUploader' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
474 |
475 | func getAllUploads() async -> [ChunkedFileUploader] {
476 | 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
477 | return try? persistence.readAll().compactMap { it in
478 | 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:482:11: warning: type 'ChunkedFileUploader' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
480 | )
481 | }
482 | }.value ?? []
| `- warning: type 'ChunkedFileUploader' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
483 | }
484 |
/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:476: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
474 |
475 | func getAllUploads() async -> [ChunkedFileUploader] {
476 | 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
477 | return try? persistence.readAll().compactMap { it in
478 | 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:482: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
480 | )
481 | }
482 | }.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
483 | }
484 |
/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:186:52: 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
184 | private func enqueuePersistence(_ operation: @escaping () async -> Void) {
185 | let previous = _unsafePersistenceTask
186 | _unsafePersistenceTask = 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
187 | await previous?.value
188 | await operation()
| `- note: closure captures 'operation' which is accessible to code in the current task
189 | }
190 | }
/Users/admin/builder/spi-builder-workspace/Sources/MuxUploadSDK/PublicAPI/DirectUploadManager.swift:389:28: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
387 | // snapshot. Snapshotting before the hop lets notifications deliver
388 | // out of order and the upload list appear to move backwards.
389 | 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
390 |
391 | // Unlocked by now, so a delegate may call back in.
/Users/admin/builder/spi-builder-workspace/Sources/MuxUploadSDK/PublicAPI/DirectUploadManager.swift:271: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
269 | /// Calls completion on the main thread when a matching managed or persisted upload is found.
270 | public func resumeDirectUpload(ofFile url: URL, completion: @escaping (DirectUpload) -> Void) {
271 | 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
272 | let upload = await self.resumeDirectUpload(ofFile: url)
| `- note: closure captures 'self' which is accessible to code in the current task
273 | if let nonNilUpload = upload {
274 | await MainActor.run { completion(nonNilUpload) }
/Users/admin/builder/spi-builder-workspace/Sources/MuxUploadSDK/PublicAPI/DirectUploadManager.swift:274:39: warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
272 | let upload = await self.resumeDirectUpload(ofFile: url)
273 | if let nonNilUpload = upload {
274 | 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
275 | }
276 | }
/Users/admin/builder/spi-builder-workspace/Sources/MuxUploadSDK/PublicAPI/DirectUploadManager.swift:274:50: warning: sending 'nonNilUpload' risks causing data races; this is an error in the Swift 6 language mode
272 | let upload = await self.resumeDirectUpload(ofFile: url)
273 | if let nonNilUpload = upload {
274 | 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
275 | }
276 | }
/Users/admin/builder/spi-builder-workspace/Sources/MuxUploadSDK/PublicAPI/DirectUploadManager.swift:284: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
282 | /// Call ``DirectUpload/start(forceRestart:)`` on a restored upload to continue its transfer.
283 | public func resumeAllDirectUploads() {
284 | 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
285 | await storage.pendingPersistenceTask()?.value
| `- note: closure captures 'self' which is accessible to code in the current task
286 | for uploader in await uploadActor.getAllUploads() {
287 | _ = restorePersistedUpload(uploader)
/Users/admin/builder/spi-builder-workspace/Sources/MuxUploadSDK/PublicAPI/DirectUploadManager.swift:374:31: warning: sending 'uploader.uploadInfo' risks causing data races; this is an error in the Swift 6 language mode
372 | let persistedState = uploader.persistenceState(for: state)
373 | return { [self] in
374 | await 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
375 | uploader.uploadInfo,
376 | fileInputURL: uploader.inputFileURL,
[22/40] Compiling MuxUploadSDK DirectUploadOptions.swift
/Users/admin/builder/spi-builder-workspace/Sources/MuxUploadSDK/PublicAPI/DirectUploadManager.swift:399: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
26 | /// ```
27 | ///
28 | public final class DirectUploadManager {
| `- note: class 'DirectUploadManager' does not conform to the 'Sendable' protocol
29 |
30 | private struct UploadStorage: Equatable, Hashable {
:
397 |
398 | /// The shared instance of this object that should be used.
399 | 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
400 |
401 | private struct FileUploaderDelegate : ChunkedFileUploaderDelegate {
/Users/admin/builder/spi-builder-workspace/Sources/MuxUploadSDK/PublicAPI/DirectUploadManager.swift:262:48: 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
260 | return existing
261 | }
262 | guard let uploader = 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
263 | let upload = restorePersistedUpload(uploader) else { return nil }
264 | notifyDelegates()
/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:286:47: 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
284 | Task.detached { [self] in
285 | await storage.pendingPersistenceTask()?.value
286 | for uploader 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
287 | _ = restorePersistedUpload(uploader)
288 | }
/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:447:22: warning: type 'ChunkedFileUploader' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
445 | func getUpload(uploadID: String) async -> ChunkedFileUploader? {
446 | // reminder: doesn't start the uploader, just makes it
447 | 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
448 | try? persistence
449 | .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:447:54: warning: type 'ChunkedFileUploader' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
445 | func getUpload(uploadID: String) async -> ChunkedFileUploader? {
446 | // reminder: doesn't start the uploader, just makes it
447 | 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
448 | try? persistence
449 | .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:455:11: warning: type 'ChunkedFileUploader' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
453 | )
454 | })
455 | }.value
| `- warning: type 'ChunkedFileUploader' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
456 | }
457 |
/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:447: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
445 | func getUpload(uploadID: String) async -> ChunkedFileUploader? {
446 | // reminder: doesn't start the uploader, just makes it
447 | 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
448 | try? persistence
449 | .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:455: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
453 | )
454 | })
455 | }.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
456 | }
457 |
/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:459:22: warning: type 'ChunkedFileUploader' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
457 |
458 | func getUpload(ofFileAt: URL) async -> ChunkedFileUploader? {
459 | 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
460 | guard let matchingEntry = try? persistence.readAll().filter({
461 | $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:459:54: warning: type 'ChunkedFileUploader' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
457 |
458 | func getUpload(ofFileAt: URL) async -> ChunkedFileUploader? {
459 | 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
460 | guard let matchingEntry = try? persistence.readAll().filter({
461 | $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:472:11: warning: type 'ChunkedFileUploader' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
470 | persistenceEntry: matchingEntry
471 | )
472 | }.value
| `- warning: type 'ChunkedFileUploader' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
473 | }
474 |
/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:459: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
457 |
458 | func getUpload(ofFileAt: URL) async -> ChunkedFileUploader? {
459 | 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
460 | guard let matchingEntry = try? persistence.readAll().filter({
461 | $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:472: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
470 | persistenceEntry: matchingEntry
471 | )
472 | }.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
473 | }
474 |
/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:476:22: warning: type 'ChunkedFileUploader' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
474 |
475 | func getAllUploads() async -> [ChunkedFileUploader] {
476 | 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
477 | return try? persistence.readAll().compactMap { it in
478 | 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:476:56: warning: type 'ChunkedFileUploader' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
474 |
475 | func getAllUploads() async -> [ChunkedFileUploader] {
476 | 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
477 | return try? persistence.readAll().compactMap { it in
478 | 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:482:11: warning: type 'ChunkedFileUploader' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
480 | )
481 | }
482 | }.value ?? []
| `- warning: type 'ChunkedFileUploader' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
483 | }
484 |
/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:476: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
474 |
475 | func getAllUploads() async -> [ChunkedFileUploader] {
476 | 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
477 | return try? persistence.readAll().compactMap { it in
478 | 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:482: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
480 | )
481 | }
482 | }.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
483 | }
484 |
/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:186:52: 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
184 | private func enqueuePersistence(_ operation: @escaping () async -> Void) {
185 | let previous = _unsafePersistenceTask
186 | _unsafePersistenceTask = 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
187 | await previous?.value
188 | await operation()
| `- note: closure captures 'operation' which is accessible to code in the current task
189 | }
190 | }
/Users/admin/builder/spi-builder-workspace/Sources/MuxUploadSDK/PublicAPI/DirectUploadManager.swift:389:28: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
387 | // snapshot. Snapshotting before the hop lets notifications deliver
388 | // out of order and the upload list appear to move backwards.
389 | 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
390 |
391 | // Unlocked by now, so a delegate may call back in.
/Users/admin/builder/spi-builder-workspace/Sources/MuxUploadSDK/PublicAPI/DirectUploadManager.swift:271: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
269 | /// Calls completion on the main thread when a matching managed or persisted upload is found.
270 | public func resumeDirectUpload(ofFile url: URL, completion: @escaping (DirectUpload) -> Void) {
271 | 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
272 | let upload = await self.resumeDirectUpload(ofFile: url)
| `- note: closure captures 'self' which is accessible to code in the current task
273 | if let nonNilUpload = upload {
274 | await MainActor.run { completion(nonNilUpload) }
/Users/admin/builder/spi-builder-workspace/Sources/MuxUploadSDK/PublicAPI/DirectUploadManager.swift:274:39: warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
272 | let upload = await self.resumeDirectUpload(ofFile: url)
273 | if let nonNilUpload = upload {
274 | 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
275 | }
276 | }
/Users/admin/builder/spi-builder-workspace/Sources/MuxUploadSDK/PublicAPI/DirectUploadManager.swift:274:50: warning: sending 'nonNilUpload' risks causing data races; this is an error in the Swift 6 language mode
272 | let upload = await self.resumeDirectUpload(ofFile: url)
273 | if let nonNilUpload = upload {
274 | 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
275 | }
276 | }
/Users/admin/builder/spi-builder-workspace/Sources/MuxUploadSDK/PublicAPI/DirectUploadManager.swift:284: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
282 | /// Call ``DirectUpload/start(forceRestart:)`` on a restored upload to continue its transfer.
283 | public func resumeAllDirectUploads() {
284 | 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
285 | await storage.pendingPersistenceTask()?.value
| `- note: closure captures 'self' which is accessible to code in the current task
286 | for uploader in await uploadActor.getAllUploads() {
287 | _ = restorePersistedUpload(uploader)
/Users/admin/builder/spi-builder-workspace/Sources/MuxUploadSDK/PublicAPI/DirectUploadManager.swift:374:31: warning: sending 'uploader.uploadInfo' risks causing data races; this is an error in the Swift 6 language mode
372 | let persistedState = uploader.persistenceState(for: state)
373 | return { [self] in
374 | await 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
375 | uploader.uploadInfo,
376 | fileInputURL: uploader.inputFileURL,
[23/40] Compiling MuxUploadSDK PHAsset+DirectUpload.swift
/Users/admin/builder/spi-builder-workspace/Sources/MuxUploadSDK/PublicAPI/DirectUploadManager.swift:399: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
26 | /// ```
27 | ///
28 | public final class DirectUploadManager {
| `- note: class 'DirectUploadManager' does not conform to the 'Sendable' protocol
29 |
30 | private struct UploadStorage: Equatable, Hashable {
:
397 |
398 | /// The shared instance of this object that should be used.
399 | 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
400 |
401 | private struct FileUploaderDelegate : ChunkedFileUploaderDelegate {
/Users/admin/builder/spi-builder-workspace/Sources/MuxUploadSDK/PublicAPI/DirectUploadManager.swift:262:48: 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
260 | return existing
261 | }
262 | guard let uploader = 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
263 | let upload = restorePersistedUpload(uploader) else { return nil }
264 | notifyDelegates()
/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:286:47: 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
284 | Task.detached { [self] in
285 | await storage.pendingPersistenceTask()?.value
286 | for uploader 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
287 | _ = restorePersistedUpload(uploader)
288 | }
/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:447:22: warning: type 'ChunkedFileUploader' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
445 | func getUpload(uploadID: String) async -> ChunkedFileUploader? {
446 | // reminder: doesn't start the uploader, just makes it
447 | 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
448 | try? persistence
449 | .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:447:54: warning: type 'ChunkedFileUploader' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
445 | func getUpload(uploadID: String) async -> ChunkedFileUploader? {
446 | // reminder: doesn't start the uploader, just makes it
447 | 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
448 | try? persistence
449 | .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:455:11: warning: type 'ChunkedFileUploader' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
453 | )
454 | })
455 | }.value
| `- warning: type 'ChunkedFileUploader' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
456 | }
457 |
/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:447: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
445 | func getUpload(uploadID: String) async -> ChunkedFileUploader? {
446 | // reminder: doesn't start the uploader, just makes it
447 | 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
448 | try? persistence
449 | .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:455: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
453 | )
454 | })
455 | }.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
456 | }
457 |
/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:459:22: warning: type 'ChunkedFileUploader' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
457 |
458 | func getUpload(ofFileAt: URL) async -> ChunkedFileUploader? {
459 | 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
460 | guard let matchingEntry = try? persistence.readAll().filter({
461 | $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:459:54: warning: type 'ChunkedFileUploader' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
457 |
458 | func getUpload(ofFileAt: URL) async -> ChunkedFileUploader? {
459 | 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
460 | guard let matchingEntry = try? persistence.readAll().filter({
461 | $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:472:11: warning: type 'ChunkedFileUploader' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
470 | persistenceEntry: matchingEntry
471 | )
472 | }.value
| `- warning: type 'ChunkedFileUploader' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
473 | }
474 |
/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:459: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
457 |
458 | func getUpload(ofFileAt: URL) async -> ChunkedFileUploader? {
459 | 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
460 | guard let matchingEntry = try? persistence.readAll().filter({
461 | $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:472: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
470 | persistenceEntry: matchingEntry
471 | )
472 | }.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
473 | }
474 |
/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:476:22: warning: type 'ChunkedFileUploader' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
474 |
475 | func getAllUploads() async -> [ChunkedFileUploader] {
476 | 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
477 | return try? persistence.readAll().compactMap { it in
478 | 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:476:56: warning: type 'ChunkedFileUploader' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
474 |
475 | func getAllUploads() async -> [ChunkedFileUploader] {
476 | 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
477 | return try? persistence.readAll().compactMap { it in
478 | 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:482:11: warning: type 'ChunkedFileUploader' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
480 | )
481 | }
482 | }.value ?? []
| `- warning: type 'ChunkedFileUploader' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
483 | }
484 |
/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:476: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
474 |
475 | func getAllUploads() async -> [ChunkedFileUploader] {
476 | 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
477 | return try? persistence.readAll().compactMap { it in
478 | 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:482: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
480 | )
481 | }
482 | }.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
483 | }
484 |
/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:186:52: 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
184 | private func enqueuePersistence(_ operation: @escaping () async -> Void) {
185 | let previous = _unsafePersistenceTask
186 | _unsafePersistenceTask = 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
187 | await previous?.value
188 | await operation()
| `- note: closure captures 'operation' which is accessible to code in the current task
189 | }
190 | }
/Users/admin/builder/spi-builder-workspace/Sources/MuxUploadSDK/PublicAPI/DirectUploadManager.swift:389:28: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
387 | // snapshot. Snapshotting before the hop lets notifications deliver
388 | // out of order and the upload list appear to move backwards.
389 | 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
390 |
391 | // Unlocked by now, so a delegate may call back in.
/Users/admin/builder/spi-builder-workspace/Sources/MuxUploadSDK/PublicAPI/DirectUploadManager.swift:271: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
269 | /// Calls completion on the main thread when a matching managed or persisted upload is found.
270 | public func resumeDirectUpload(ofFile url: URL, completion: @escaping (DirectUpload) -> Void) {
271 | 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
272 | let upload = await self.resumeDirectUpload(ofFile: url)
| `- note: closure captures 'self' which is accessible to code in the current task
273 | if let nonNilUpload = upload {
274 | await MainActor.run { completion(nonNilUpload) }
/Users/admin/builder/spi-builder-workspace/Sources/MuxUploadSDK/PublicAPI/DirectUploadManager.swift:274:39: warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
272 | let upload = await self.resumeDirectUpload(ofFile: url)
273 | if let nonNilUpload = upload {
274 | 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
275 | }
276 | }
/Users/admin/builder/spi-builder-workspace/Sources/MuxUploadSDK/PublicAPI/DirectUploadManager.swift:274:50: warning: sending 'nonNilUpload' risks causing data races; this is an error in the Swift 6 language mode
272 | let upload = await self.resumeDirectUpload(ofFile: url)
273 | if let nonNilUpload = upload {
274 | 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
275 | }
276 | }
/Users/admin/builder/spi-builder-workspace/Sources/MuxUploadSDK/PublicAPI/DirectUploadManager.swift:284: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
282 | /// Call ``DirectUpload/start(forceRestart:)`` on a restored upload to continue its transfer.
283 | public func resumeAllDirectUploads() {
284 | 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
285 | await storage.pendingPersistenceTask()?.value
| `- note: closure captures 'self' which is accessible to code in the current task
286 | for uploader in await uploadActor.getAllUploads() {
287 | _ = restorePersistedUpload(uploader)
/Users/admin/builder/spi-builder-workspace/Sources/MuxUploadSDK/PublicAPI/DirectUploadManager.swift:374:31: warning: sending 'uploader.uploadInfo' risks causing data races; this is an error in the Swift 6 language mode
372 | let persistedState = uploader.persistenceState(for: state)
373 | return { [self] in
374 | await 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
375 | uploader.uploadInfo,
376 | fileInputURL: uploader.inputFileURL,
[24/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 | }
[25/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 | }
[26/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 | }
[27/40] Compiling MuxUploadSDK UploadInput.swift
/Users/admin/builder/spi-builder-workspace/Sources/MuxUploadSDK/PublicAPI/DirectUpload.swift:1517: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
1501 | public struct DirectUploadError : Error {
1502 | /// Represents the possible error cases from a ``DirectUpload``
1503 | public enum Kind : Int {
| `- note: consider making enum 'Kind' conform to the 'Sendable' protocol
1504 | /// The cause of the error is not known
1505 | case unknown = -1
:
1515 |
1516 | public let lastStatus: DirectUpload.TransportStatus?
1517 | 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
1518 | public let message: String
1519 | 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:710: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
708 | input.status = .started(input.sourceAsset, input.uploadInfo)
709 | let sourceAsset = input.sourceAsset
710 | 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
711 | await self?.startInspection(
| `- note: closure captures 'self' which is accessible to code in the current task
712 | sourceAsset: sourceAsset,
713 | 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:1153: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
1151 | ) async -> Bool {
1152 | while await preparationLifecycle.waitUntilTransportAllowed(for: attempt) {
1153 | 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
1154 | if self.manageBySDK, attempt.allowsWorkerReuse,
1155 | let existingWorker = self.uploadManager.findChunkedFileUploader(
/Users/admin/builder/spi-builder-workspace/Sources/MuxUploadSDK/PublicAPI/DirectUpload.swift:1063:42: warning: sending value of non-Sendable type '() -> ()' risks causing data races; this is an error in the Swift 6 language mode
1061 | attempt: DirectUploadPreparationLifecycle.Attempt
1062 | ) async {
1063 | 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
1064 | input.status = .standardizationFailed(sourceAsset, input.uploadInfo)
1065 | }) else { return }
/Users/admin/builder/spi-builder-workspace/Sources/MuxUploadSDK/PublicAPI/DirectUpload.swift:901:42: warning: sending value of non-Sendable type '() -> ()' risks causing data races; this is an error in the Swift 6 language mode
899 | }
900 |
901 | 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
902 | input.status = .standardizing(sourceAsset, input.uploadInfo)
903 | }) else { return }
/Users/admin/builder/spi-builder-workspace/Sources/MuxUploadSDK/PublicAPI/DirectUpload.swift:1004:46: warning: sending value of non-Sendable type '() -> ()' risks causing data races; this is an error in the Swift 6 language mode
1002 | uploadURL: uploadURL
1003 | )
1004 | 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
1005 | input.status = .standardizationSucceeded(
1006 | source: sourceAsset,
/Users/admin/builder/spi-builder-workspace/Sources/MuxUploadSDK/PublicAPI/DirectUpload.swift:751:42: warning: sending value of non-Sendable type '() -> ()' risks causing data races; this is an error in the Swift 6 language mode
749 | atPath: sourceAsset.url.path
750 | )) ?? 0
751 | 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
752 | input.status = .underInspection(sourceAsset, input.uploadInfo)
753 | }) else { return }
/Users/admin/builder/spi-builder-workspace/Sources/MuxUploadSDK/PublicAPI/DirectUpload.swift:1159:60: warning: sending value of non-Sendable type '() -> Void' risks causing data races; this is an error in the Swift 6 language mode
1157 | uploadURL: self.input.uploadInfo.uploadURL
1158 | ) {
1159 | 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
1160 | SDKLogger.logger?.warning(
1161 | "Reusing the active upload for this input file"
/Users/admin/builder/spi-builder-workspace/Sources/MuxUploadSDK/PublicAPI/DirectUpload.swift:1186:68: warning: sending value of non-Sendable type '() -> Void' risks causing data races; this is an error in the Swift 6 language mode
1184 | completedUnitCount
1185 | )
1186 | 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
1187 | for: attempt
1188 | ) {
[28/40] Compiling MuxUploadSDK DirectUpload+AVFoundation.swift
/Users/admin/builder/spi-builder-workspace/Sources/MuxUploadSDK/PublicAPI/DirectUpload.swift:1517: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
1501 | public struct DirectUploadError : Error {
1502 | /// Represents the possible error cases from a ``DirectUpload``
1503 | public enum Kind : Int {
| `- note: consider making enum 'Kind' conform to the 'Sendable' protocol
1504 | /// The cause of the error is not known
1505 | case unknown = -1
:
1515 |
1516 | public let lastStatus: DirectUpload.TransportStatus?
1517 | 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
1518 | public let message: String
1519 | 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:710: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
708 | input.status = .started(input.sourceAsset, input.uploadInfo)
709 | let sourceAsset = input.sourceAsset
710 | 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
711 | await self?.startInspection(
| `- note: closure captures 'self' which is accessible to code in the current task
712 | sourceAsset: sourceAsset,
713 | 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:1153: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
1151 | ) async -> Bool {
1152 | while await preparationLifecycle.waitUntilTransportAllowed(for: attempt) {
1153 | 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
1154 | if self.manageBySDK, attempt.allowsWorkerReuse,
1155 | let existingWorker = self.uploadManager.findChunkedFileUploader(
/Users/admin/builder/spi-builder-workspace/Sources/MuxUploadSDK/PublicAPI/DirectUpload.swift:1063:42: warning: sending value of non-Sendable type '() -> ()' risks causing data races; this is an error in the Swift 6 language mode
1061 | attempt: DirectUploadPreparationLifecycle.Attempt
1062 | ) async {
1063 | 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
1064 | input.status = .standardizationFailed(sourceAsset, input.uploadInfo)
1065 | }) else { return }
/Users/admin/builder/spi-builder-workspace/Sources/MuxUploadSDK/PublicAPI/DirectUpload.swift:901:42: warning: sending value of non-Sendable type '() -> ()' risks causing data races; this is an error in the Swift 6 language mode
899 | }
900 |
901 | 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
902 | input.status = .standardizing(sourceAsset, input.uploadInfo)
903 | }) else { return }
/Users/admin/builder/spi-builder-workspace/Sources/MuxUploadSDK/PublicAPI/DirectUpload.swift:1004:46: warning: sending value of non-Sendable type '() -> ()' risks causing data races; this is an error in the Swift 6 language mode
1002 | uploadURL: uploadURL
1003 | )
1004 | 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
1005 | input.status = .standardizationSucceeded(
1006 | source: sourceAsset,
/Users/admin/builder/spi-builder-workspace/Sources/MuxUploadSDK/PublicAPI/DirectUpload.swift:751:42: warning: sending value of non-Sendable type '() -> ()' risks causing data races; this is an error in the Swift 6 language mode
749 | atPath: sourceAsset.url.path
750 | )) ?? 0
751 | 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
752 | input.status = .underInspection(sourceAsset, input.uploadInfo)
753 | }) else { return }
/Users/admin/builder/spi-builder-workspace/Sources/MuxUploadSDK/PublicAPI/DirectUpload.swift:1159:60: warning: sending value of non-Sendable type '() -> Void' risks causing data races; this is an error in the Swift 6 language mode
1157 | uploadURL: self.input.uploadInfo.uploadURL
1158 | ) {
1159 | 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
1160 | SDKLogger.logger?.warning(
1161 | "Reusing the active upload for this input file"
/Users/admin/builder/spi-builder-workspace/Sources/MuxUploadSDK/PublicAPI/DirectUpload.swift:1186:68: warning: sending value of non-Sendable type '() -> Void' risks causing data races; this is an error in the Swift 6 language mode
1184 | completedUnitCount
1185 | )
1186 | 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
1187 | for: attempt
1188 | ) {
[29/40] Compiling MuxUploadSDK DirectUpload.swift
/Users/admin/builder/spi-builder-workspace/Sources/MuxUploadSDK/PublicAPI/DirectUpload.swift:1517: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
1501 | public struct DirectUploadError : Error {
1502 | /// Represents the possible error cases from a ``DirectUpload``
1503 | public enum Kind : Int {
| `- note: consider making enum 'Kind' conform to the 'Sendable' protocol
1504 | /// The cause of the error is not known
1505 | case unknown = -1
:
1515 |
1516 | public let lastStatus: DirectUpload.TransportStatus?
1517 | 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
1518 | public let message: String
1519 | 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:710: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
708 | input.status = .started(input.sourceAsset, input.uploadInfo)
709 | let sourceAsset = input.sourceAsset
710 | 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
711 | await self?.startInspection(
| `- note: closure captures 'self' which is accessible to code in the current task
712 | sourceAsset: sourceAsset,
713 | 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:1153: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
1151 | ) async -> Bool {
1152 | while await preparationLifecycle.waitUntilTransportAllowed(for: attempt) {
1153 | 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
1154 | if self.manageBySDK, attempt.allowsWorkerReuse,
1155 | let existingWorker = self.uploadManager.findChunkedFileUploader(
/Users/admin/builder/spi-builder-workspace/Sources/MuxUploadSDK/PublicAPI/DirectUpload.swift:1063:42: warning: sending value of non-Sendable type '() -> ()' risks causing data races; this is an error in the Swift 6 language mode
1061 | attempt: DirectUploadPreparationLifecycle.Attempt
1062 | ) async {
1063 | 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
1064 | input.status = .standardizationFailed(sourceAsset, input.uploadInfo)
1065 | }) else { return }
/Users/admin/builder/spi-builder-workspace/Sources/MuxUploadSDK/PublicAPI/DirectUpload.swift:901:42: warning: sending value of non-Sendable type '() -> ()' risks causing data races; this is an error in the Swift 6 language mode
899 | }
900 |
901 | 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
902 | input.status = .standardizing(sourceAsset, input.uploadInfo)
903 | }) else { return }
/Users/admin/builder/spi-builder-workspace/Sources/MuxUploadSDK/PublicAPI/DirectUpload.swift:1004:46: warning: sending value of non-Sendable type '() -> ()' risks causing data races; this is an error in the Swift 6 language mode
1002 | uploadURL: uploadURL
1003 | )
1004 | 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
1005 | input.status = .standardizationSucceeded(
1006 | source: sourceAsset,
/Users/admin/builder/spi-builder-workspace/Sources/MuxUploadSDK/PublicAPI/DirectUpload.swift:751:42: warning: sending value of non-Sendable type '() -> ()' risks causing data races; this is an error in the Swift 6 language mode
749 | atPath: sourceAsset.url.path
750 | )) ?? 0
751 | 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
752 | input.status = .underInspection(sourceAsset, input.uploadInfo)
753 | }) else { return }
/Users/admin/builder/spi-builder-workspace/Sources/MuxUploadSDK/PublicAPI/DirectUpload.swift:1159:60: warning: sending value of non-Sendable type '() -> Void' risks causing data races; this is an error in the Swift 6 language mode
1157 | uploadURL: self.input.uploadInfo.uploadURL
1158 | ) {
1159 | 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
1160 | SDKLogger.logger?.warning(
1161 | "Reusing the active upload for this input file"
/Users/admin/builder/spi-builder-workspace/Sources/MuxUploadSDK/PublicAPI/DirectUpload.swift:1186:68: warning: sending value of non-Sendable type '() -> Void' risks causing data races; this is an error in the Swift 6 language mode
1184 | completedUnitCount
1185 | )
1186 | 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
1187 | for: attempt
1188 | ) {
[30/40] Compiling MuxUploadSDK DirectUploadPreparation.swift
[31/40] Compiling MuxUploadSDK StandardInputOutputValidator.swift
[32/40] Compiling MuxUploadSDK StandardInputPlanner.swift
[33/40] Compiling MuxUploadSDK StandardInputPolicy.swift
[34/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] = [:]
[35/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] = [:]
[36/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] = [:]
[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! (24.46s)
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.63s)
Computing version for https://github.com/apple/swift-docc-plugin
Computed https://github.com/apple/swift-docc-plugin at 1.5.0 (2.27s)
Fetching https://github.com/swiftlang/swift-docc-symbolkit from cache
Fetched https://github.com/swiftlang/swift-docc-symbolkit from cache (1.12s)
Computing version for https://github.com/swiftlang/swift-docc-symbolkit
Computed https://github.com/swiftlang/swift-docc-symbolkit at 1.0.0 (1.85s)
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
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
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/BulkUploadRestorationTests.swift",
"UploadManagerTests/RestoredUploadTransportTests.swift",
"UploadManagerTests/UploadManagerTests.swift",
"UploadManagerTests/UploadManagerThreadSafetyTests.swift",
"UploadManagerTests/UploadPersistenceOrderingTests.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.