Build Information
Successful build of MediaUtilities, reference 0.0.3 (4116bd
), with Swift 6.0 for macOS (SPM) on 3 Nov 2024 09:12:49 UTC.
Swift 6 data race errors: 12
Build Command
env DEVELOPER_DIR=/Applications/Xcode-16.1.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete
Build Log
4 | public convenience init()
/Users/admin/builder/spi-builder-workspace/Sources/MediaUtilities/VideoEditor/VideoUtil.swift:80:21: warning: capture of 'onCompletion' with non-sendable type '(VideoUtil.Result) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
78 | if exporter.status == .completed {
79 | DispatchQueue.main.async {
80 | onCompletion(.success(outputVideoURL))
| |- warning: capture of 'onCompletion' with non-sendable type '(VideoUtil.Result) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
81 | }
82 | }
/Users/admin/builder/spi-builder-workspace/Sources/MediaUtilities/VideoEditor/VideoUtil.swift:80:21: warning: capture of 'onCompletion' with non-sendable type '(VideoUtil.Result) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
78 | if exporter.status == .completed {
79 | DispatchQueue.main.async {
80 | onCompletion(.success(outputVideoURL))
| |- warning: capture of 'onCompletion' with non-sendable type '(VideoUtil.Result) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
81 | }
82 | }
/Users/admin/builder/spi-builder-workspace/Sources/MediaUtilities/VideoEditor/VideoUtil.swift:95:17: warning: capture of 'self' with non-sendable type 'VideoUtil' in a `@Sendable` closure; this is an error in the Swift 6 language mode
11 |
12 | @available(iOS 13.0, macOS 10.15, *)
13 | class VideoUtil: ObservableObject {
| `- note: class 'VideoUtil' does not conform to the 'Sendable' protocol
14 | @Published var progress: Double = .zero
15 | @Published var videoImageFrames: [UnifiedImage] = []
:
93 | timer = Timer.scheduledTimer(withTimeInterval: 0.25, repeats: true) { _ in
94 | withAnimation {
95 | self.progress = Double(exporter.progress)
| `- warning: capture of 'self' with non-sendable type 'VideoUtil' in a `@Sendable` closure; this is an error in the Swift 6 language mode
96 | }
97 | if exporter.status == .completed || exporter.status == .failed || exporter.status == .cancelled {
/Users/admin/builder/spi-builder-workspace/Sources/MediaUtilities/VideoEditor/VideoUtil.swift:95:40: warning: capture of 'exporter' with non-sendable type 'AVAssetExportSession' in a `@Sendable` closure; this is an error in the Swift 6 language mode
93 | timer = Timer.scheduledTimer(withTimeInterval: 0.25, repeats: true) { _ in
94 | withAnimation {
95 | self.progress = Double(exporter.progress)
| `- warning: capture of 'exporter' with non-sendable type 'AVAssetExportSession' in a `@Sendable` closure; this is an error in the Swift 6 language mode
96 | }
97 | if exporter.status == .completed || exporter.status == .failed || exporter.status == .cancelled {
AVFoundation.AVAssetExportSession:2:12: note: class 'AVAssetExportSession' does not conform to the 'Sendable' protocol
1 | @available(macOS 10.7, *)
2 | open class AVAssetExportSession : NSObject {
| `- note: class 'AVAssetExportSession' does not conform to the 'Sendable' protocol
3 | @available(*, unavailable)
4 | public convenience init()
/Users/admin/builder/spi-builder-workspace/Sources/MediaUtilities/VideoEditor/VideoUtil.swift:100:21: warning: capture of 'callback' with non-sendable type '(VideoUtil.Result) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
98 | self.timer?.invalidate()
99 | if exporter.status == .cancelled {
100 | callback(.error(.exporterCancelled))
| |- warning: capture of 'callback' with non-sendable type '(VideoUtil.Result) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
101 | }
102 | if exporter.status == .failed {
/Users/admin/builder/spi-builder-workspace/Sources/MediaUtilities/VideoEditor/VideoUtil.swift:95:17: warning: capture of 'self' with non-sendable type 'VideoUtil' in an isolated closure; this is an error in the Swift 6 language mode
11 |
12 | @available(iOS 13.0, macOS 10.15, *)
13 | class VideoUtil: ObservableObject {
| `- note: class 'VideoUtil' does not conform to the 'Sendable' protocol
14 | @Published var progress: Double = .zero
15 | @Published var videoImageFrames: [UnifiedImage] = []
:
93 | timer = Timer.scheduledTimer(withTimeInterval: 0.25, repeats: true) { _ in
94 | withAnimation {
95 | self.progress = Double(exporter.progress)
| `- warning: capture of 'self' with non-sendable type 'VideoUtil' in an isolated closure; this is an error in the Swift 6 language mode
96 | }
97 | if exporter.status == .completed || exporter.status == .failed || exporter.status == .cancelled {
/Users/admin/builder/spi-builder-workspace/Sources/MediaUtilities/VideoEditor/VideoUtil.swift:95:40: warning: capture of 'exporter' with non-sendable type 'AVAssetExportSession' in an isolated closure; this is an error in the Swift 6 language mode
93 | timer = Timer.scheduledTimer(withTimeInterval: 0.25, repeats: true) { _ in
94 | withAnimation {
95 | self.progress = Double(exporter.progress)
| `- warning: capture of 'exporter' with non-sendable type 'AVAssetExportSession' in an isolated closure; this is an error in the Swift 6 language mode
96 | }
97 | if exporter.status == .completed || exporter.status == .failed || exporter.status == .cancelled {
AVFoundation.AVAssetExportSession:2:12: note: class 'AVAssetExportSession' does not conform to the 'Sendable' protocol
1 | @available(macOS 10.7, *)
2 | open class AVAssetExportSession : NSObject {
| `- note: class 'AVAssetExportSession' does not conform to the 'Sendable' protocol
3 | @available(*, unavailable)
4 | public convenience init()
/Users/admin/builder/spi-builder-workspace/Sources/MediaUtilities/VideoEditor/VideoUtil.swift:97:49: warning: implicit capture of 'exporter' requires that 'AVAssetExportSession' conforms to `Sendable`; this is an error in the Swift 6 language mode
95 | self.progress = Double(exporter.progress)
96 | }
97 | if exporter.status == .completed || exporter.status == .failed || exporter.status == .cancelled {
| `- warning: implicit capture of 'exporter' requires that 'AVAssetExportSession' conforms to `Sendable`; this is an error in the Swift 6 language mode
98 | self.timer?.invalidate()
99 | if exporter.status == .cancelled {
AVFoundation.AVAssetExportSession:2:12: note: class 'AVAssetExportSession' does not conform to the 'Sendable' protocol
1 | @available(macOS 10.7, *)
2 | open class AVAssetExportSession : NSObject {
| `- note: class 'AVAssetExportSession' does not conform to the 'Sendable' protocol
3 | @available(*, unavailable)
4 | public convenience init()
/Users/admin/builder/spi-builder-workspace/Sources/MediaUtilities/VideoEditor/VideoUtil.swift:97:79: warning: implicit capture of 'exporter' requires that 'AVAssetExportSession' conforms to `Sendable`; this is an error in the Swift 6 language mode
95 | self.progress = Double(exporter.progress)
96 | }
97 | if exporter.status == .completed || exporter.status == .failed || exporter.status == .cancelled {
| `- warning: implicit capture of 'exporter' requires that 'AVAssetExportSession' conforms to `Sendable`; this is an error in the Swift 6 language mode
98 | self.timer?.invalidate()
99 | if exporter.status == .cancelled {
AVFoundation.AVAssetExportSession:2:12: note: class 'AVAssetExportSession' does not conform to the 'Sendable' protocol
1 | @available(macOS 10.7, *)
2 | open class AVAssetExportSession : NSObject {
| `- note: class 'AVAssetExportSession' does not conform to the 'Sendable' protocol
3 | @available(*, unavailable)
4 | public convenience init()
/Users/admin/builder/spi-builder-workspace/Sources/MediaUtilities/VideoEditor/VideoUtil.swift:148:25: warning: capture of 'self' with non-sendable type 'VideoUtil' in a `@Sendable` closure; this is an error in the Swift 6 language mode
11 |
12 | @available(iOS 13.0, macOS 10.15, *)
13 | class VideoUtil: ObservableObject {
| `- note: class 'VideoUtil' does not conform to the 'Sendable' protocol
14 | @Published var progress: Double = .zero
15 | @Published var videoImageFrames: [UnifiedImage] = []
:
146 | let image = UnifiedImage(cgImage: img)
147 | DispatchQueue.main.async {
148 | self.videoImageFrames.append(image)
| `- warning: capture of 'self' with non-sendable type 'VideoUtil' in a `@Sendable` closure; this is an error in the Swift 6 language mode
149 | }
150 | }
/Users/admin/builder/spi-builder-workspace/Sources/MediaUtilities/VideoEditor/VideoUtil.swift:148:25: warning: capture of 'self' with non-sendable type 'VideoUtil' in a `@Sendable` closure; this is an error in the Swift 6 language mode
11 |
12 | @available(iOS 13.0, macOS 10.15, *)
13 | class VideoUtil: ObservableObject {
| `- note: class 'VideoUtil' does not conform to the 'Sendable' protocol
14 | @Published var progress: Double = .zero
15 | @Published var videoImageFrames: [UnifiedImage] = []
:
146 | let image = UnifiedImage(cgImage: img)
147 | DispatchQueue.main.async {
148 | self.videoImageFrames.append(image)
| `- warning: capture of 'self' with non-sendable type 'VideoUtil' in a `@Sendable` closure; this is an error in the Swift 6 language mode
149 | }
150 | }
/Users/admin/builder/spi-builder-workspace/Sources/MediaUtilities/VideoEditor/VideoUtil.swift:148:54: warning: capture of 'image' with non-sendable type 'UnifiedImage' (aka 'NSImage') in a `@Sendable` closure; this is an error in the Swift 6 language mode
146 | let image = UnifiedImage(cgImage: img)
147 | DispatchQueue.main.async {
148 | self.videoImageFrames.append(image)
| `- warning: capture of 'image' with non-sendable type 'UnifiedImage' (aka 'NSImage') in a `@Sendable` closure; this is an error in the Swift 6 language mode
149 | }
150 | }
AppKit.NSImage:1:12: note: class 'NSImage' does not conform to the 'Sendable' protocol
1 | open class NSImage : NSObject {
| `- note: class 'NSImage' does not conform to the 'Sendable' protocol
2 | public /*not inherited*/ init?(named name: NSImage.Name)
3 | @available(*, unavailable, renamed: "init(named:)", message: "Not available in Swift")
/Users/admin/builder/spi-builder-workspace/Sources/MediaUtilities/VideoPlayer/CustomVideoPlayer.swift:96:20: warning: main actor-isolated property 'playerVM' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
61 | @available(macOS 10.15, *)
62 | public struct CustomVideoPlayer: NSViewRepresentable {
63 | @EnvironmentObject private var playerVM: PlayerViewModel
| `- note: property declared here
64 |
65 | public init() { }
:
94 |
95 | private var playerVM: PlayerViewModel {
96 | parent.playerVM
| `- warning: main actor-isolated property 'playerVM' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
97 | }
98 |
/Users/admin/builder/spi-builder-workspace/Sources/MediaUtilities/VideoPlayer/PlayerViewModel.swift:80:33: warning: main actor-isolated property 'asset' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
78 | .filter({ $0 == .readyToPlay })
79 | .sink(receiveValue: { [weak self] _ in
80 | let time = item.asset.duration.seconds
| `- warning: main actor-isolated property 'asset' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
81 | self?.duration = time
82 | self?.endPlayingAt = time
AVFoundation.AVPlayerItem:2:25: note: property declared here
1 | extension AVPlayerItem {
2 | @MainActor open var asset: AVAsset { get }
| `- note: property declared here
3 | nonisolated open var tracks: [AVPlayerItemTrack] { get }
4 | @available(macOS 10.7, *)
/Users/admin/builder/spi-builder-workspace/Sources/MediaUtilities/VideoPlayer/PlayerViewModel.swift:83:30: warning: call to main actor-isolated instance method 'play()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
81 | self?.duration = time
82 | self?.endPlayingAt = time
83 | self?.player.play()
| `- warning: call to main actor-isolated instance method 'play()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
84 | })
85 | .store(in: &subscriptions)
AVFoundation.AVPlayer:5:26: note: calls to instance method 'play()' from outside of its actor context are implicitly asynchronous
3 | @available(macOS 13.0, *)
4 | nonisolated open var defaultRate: Float { get set }
5 | @MainActor open func play()
| `- note: calls to instance method 'play()' from outside of its actor context are implicitly asynchronous
6 | open func pause()
7 | @available(macOS 10.12, *)
/Users/admin/builder/spi-builder-workspace/Sources/MediaUtilities/VideoPlayer/PlayerViewModel.swift:94:16: warning: call to main actor-isolated instance method 'play()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
86 | }
87 |
88 | public func seekForward() {
| `- note: add '@MainActor' to make instance method 'seekForward()' part of global actor 'MainActor'
89 | var time = currentTime + 10
90 | if time >= duration {
:
92 | }
93 | player.seek(to: CMTime(seconds: time, preferredTimescale: 1000))
94 | player.play()
| `- warning: call to main actor-isolated instance method 'play()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
95 | }
96 |
AVFoundation.AVPlayer:5:26: note: calls to instance method 'play()' from outside of its actor context are implicitly asynchronous
3 | @available(macOS 13.0, *)
4 | nonisolated open var defaultRate: Float { get set }
5 | @MainActor open func play()
| `- note: calls to instance method 'play()' from outside of its actor context are implicitly asynchronous
6 | open func pause()
7 | @available(macOS 10.12, *)
/Users/admin/builder/spi-builder-workspace/Sources/MediaUtilities/VideoPlayer/PlayerViewModel.swift:103:16: warning: call to main actor-isolated instance method 'play()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
95 | }
96 |
97 | public func seekBackward() {
| `- note: add '@MainActor' to make instance method 'seekBackward()' part of global actor 'MainActor'
98 | var time = currentTime - 10
99 | if time <= 0 {
:
101 | }
102 | player.seek(to: CMTime(seconds: time, preferredTimescale: 1000))
103 | player.play()
| `- warning: call to main actor-isolated instance method 'play()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
104 | }
105 |
AVFoundation.AVPlayer:5:26: note: calls to instance method 'play()' from outside of its actor context are implicitly asynchronous
3 | @available(macOS 13.0, *)
4 | nonisolated open var defaultRate: Float { get set }
5 | @MainActor open func play()
| `- note: calls to instance method 'play()' from outside of its actor context are implicitly asynchronous
6 | open func pause()
7 | @available(macOS 10.12, *)
/Users/admin/builder/spi-builder-workspace/Sources/MediaUtilities/VideoPlayer/PlayerViewModel.swift:107:16: warning: call to main actor-isolated instance method 'play()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
104 | }
105 |
106 | public func play() {
| `- note: add '@MainActor' to make instance method 'play()' part of global actor 'MainActor'
107 | player.play()
| `- warning: call to main actor-isolated instance method 'play()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
108 | }
109 |
AVFoundation.AVPlayer:5:26: note: calls to instance method 'play()' from outside of its actor context are implicitly asynchronous
3 | @available(macOS 13.0, *)
4 | nonisolated open var defaultRate: Float { get set }
5 | @MainActor open func play()
| `- note: calls to instance method 'play()' from outside of its actor context are implicitly asynchronous
6 | open func pause()
7 | @available(macOS 10.12, *)
/Users/admin/builder/spi-builder-workspace/Sources/MediaUtilities/VideoPlayer/PlayerViewModel.swift:111:16: warning: call to main actor-isolated instance method 'pause()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
108 | }
109 |
110 | public func pause() {
| `- note: add '@MainActor' to make instance method 'pause()' part of global actor 'MainActor'
111 | player.pause()
| `- warning: call to main actor-isolated instance method 'pause()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
112 | }
113 |
AVFoundation.AVPlayer:6:15: note: calls to instance method 'pause()' from outside of its actor context are implicitly asynchronous
4 | nonisolated open var defaultRate: Float { get set }
5 | @MainActor open func play()
6 | open func pause()
| `- note: calls to instance method 'pause()' from outside of its actor context are implicitly asynchronous
7 | @available(macOS 10.12, *)
8 | nonisolated open var timeControlStatus: AVPlayer.TimeControlStatus { get }
/Users/admin/builder/spi-builder-workspace/Sources/MediaUtilities/VideoPlayer/PlayerViewModel.swift:140:30: warning: capture of 'self' with non-sendable type 'PlayerViewModel?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
11 |
12 | @available(iOS 13.0, macOS 10.15, *)
13 | final public class PlayerViewModel: ObservableObject {
| `- note: class 'PlayerViewModel' does not conform to the 'Sendable' protocol
14 | public let player = AVPlayer()
15 | @Published public var allowsPictureInPicturePlayback: Bool = true
:
138 | let interval = CMTime(seconds: isShowingControls ? 1 : 0.25, preferredTimescale: 60)
139 | timeObserver = player.addPeriodicTimeObserver(forInterval: interval, queue: .main) { [weak self] time in
140 | guard let self = self else { return }
| `- warning: capture of 'self' with non-sendable type 'PlayerViewModel?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
141 | self.updateCurrentTime(time)
142 | }
/Users/admin/builder/spi-builder-workspace/Sources/MediaUtilities/VideoPlayer/PlayerViewModel.swift:167:20: warning: call to main actor-isolated instance method 'play()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
162 | }
163 |
164 | private func endPlayingAtReached() {
| `- note: add '@MainActor' to make instance method 'endPlayingAtReached()' part of global actor 'MainActor'
165 | if loopPlayback {
166 | seekTo(startPlayingAt)
167 | player.play()
| `- warning: call to main actor-isolated instance method 'play()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
168 | } else {
169 | player.pause()
AVFoundation.AVPlayer:5:26: note: calls to instance method 'play()' from outside of its actor context are implicitly asynchronous
3 | @available(macOS 13.0, *)
4 | nonisolated open var defaultRate: Float { get set }
5 | @MainActor open func play()
| `- note: calls to instance method 'play()' from outside of its actor context are implicitly asynchronous
6 | open func pause()
7 | @available(macOS 10.12, *)
/Users/admin/builder/spi-builder-workspace/Sources/MediaUtilities/VideoPlayer/PlayerViewModel.swift:169:20: warning: call to main actor-isolated instance method 'pause()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
162 | }
163 |
164 | private func endPlayingAtReached() {
| `- note: add '@MainActor' to make instance method 'endPlayingAtReached()' part of global actor 'MainActor'
165 | if loopPlayback {
166 | seekTo(startPlayingAt)
167 | player.play()
168 | } else {
169 | player.pause()
| `- warning: call to main actor-isolated instance method 'pause()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
170 | }
171 | }
AVFoundation.AVPlayer:6:15: note: calls to instance method 'pause()' from outside of its actor context are implicitly asynchronous
4 | nonisolated open var defaultRate: Float { get set }
5 | @MainActor open func play()
6 | open func pause()
| `- note: calls to instance method 'pause()' from outside of its actor context are implicitly asynchronous
7 | @available(macOS 10.12, *)
8 | nonisolated open var timeControlStatus: AVPlayer.TimeControlStatus { get }
/Users/admin/builder/spi-builder-workspace/Sources/MediaUtilities/VideoEditor/VideoUtil.swift:129:37: 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 | func generateImageFrames() {
128 | videoImageFrames = []
129 | Task(priority: .background) {
| `- 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
130 | guard let asset = asset else {
| `- note: closure captures 'self' which is accessible to code in the current task
131 | return
132 | }
[41/47] Compiling MediaUtilities CustomVideoPlayer.swift
/Users/admin/builder/spi-builder-workspace/Sources/MediaUtilities/VideoEditor/Sliders/RangeSlider/Styles/RangeSliderOptions.swift:7:23: warning: static property 'defaultOptions' is not concurrency-safe because non-'Sendable' type 'RangeSliderOptions' may have shared mutable state; this is an error in the Swift 6 language mode
1 | import SwiftUI
2 |
3 | public struct RangeSliderOptions: OptionSet {
| `- note: consider making struct 'RangeSliderOptions' conform to the 'Sendable' protocol
4 | public let rawValue: Int
5 |
6 | public static let forceAdjacentValue = RangeSliderOptions(rawValue: 1 << 0)
7 | public static let defaultOptions: RangeSliderOptions = .forceAdjacentValue
| |- warning: static property 'defaultOptions' is not concurrency-safe because non-'Sendable' type 'RangeSliderOptions' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'defaultOptions' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
8 |
9 | public init(rawValue: Int) {
/Users/admin/builder/spi-builder-workspace/Sources/MediaUtilities/VideoEditor/VideoSliderView.swift:136:21: warning: main actor-isolated property 'isShowingSeekerTime' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
14 |
15 | @State private var maxWidth: CGFloat = 0
16 | @State private var isShowingSeekerTime = false
| `- note: mutation of this property is only permitted within the actor
17 | @State private var timer: Timer?
18 | let seekerHeight: CGFloat = 50
:
134 | timer = Timer.scheduledTimer(withTimeInterval: 1.0, repeats: false) { _ in
135 | withAnimation {
136 | isShowingSeekerTime = false
| `- warning: main actor-isolated property 'isShowingSeekerTime' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
137 | }
138 | }
/Users/admin/builder/spi-builder-workspace/Sources/MediaUtilities/VideoEditor/VideoUtil.swift:78:16: warning: capture of 'exporter' with non-sendable type 'AVAssetExportSession' in a `@Sendable` closure; this is an error in the Swift 6 language mode
76 |
77 | exporter.exportAsynchronously {
78 | if exporter.status == .completed {
| `- warning: capture of 'exporter' with non-sendable type 'AVAssetExportSession' in a `@Sendable` closure; this is an error in the Swift 6 language mode
79 | DispatchQueue.main.async {
80 | onCompletion(.success(outputVideoURL))
AVFoundation.AVAssetExportSession:2:12: note: class 'AVAssetExportSession' does not conform to the 'Sendable' protocol
1 | @available(macOS 10.7, *)
2 | open class AVAssetExportSession : NSObject {
| `- note: class 'AVAssetExportSession' does not conform to the 'Sendable' protocol
3 | @available(*, unavailable)
4 | public convenience init()
/Users/admin/builder/spi-builder-workspace/Sources/MediaUtilities/VideoEditor/VideoUtil.swift:80:21: warning: capture of 'onCompletion' with non-sendable type '(VideoUtil.Result) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
78 | if exporter.status == .completed {
79 | DispatchQueue.main.async {
80 | onCompletion(.success(outputVideoURL))
| |- warning: capture of 'onCompletion' with non-sendable type '(VideoUtil.Result) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
81 | }
82 | }
/Users/admin/builder/spi-builder-workspace/Sources/MediaUtilities/VideoEditor/VideoUtil.swift:80:21: warning: capture of 'onCompletion' with non-sendable type '(VideoUtil.Result) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
78 | if exporter.status == .completed {
79 | DispatchQueue.main.async {
80 | onCompletion(.success(outputVideoURL))
| |- warning: capture of 'onCompletion' with non-sendable type '(VideoUtil.Result) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
81 | }
82 | }
/Users/admin/builder/spi-builder-workspace/Sources/MediaUtilities/VideoEditor/VideoUtil.swift:95:17: warning: capture of 'self' with non-sendable type 'VideoUtil' in a `@Sendable` closure; this is an error in the Swift 6 language mode
11 |
12 | @available(iOS 13.0, macOS 10.15, *)
13 | class VideoUtil: ObservableObject {
| `- note: class 'VideoUtil' does not conform to the 'Sendable' protocol
14 | @Published var progress: Double = .zero
15 | @Published var videoImageFrames: [UnifiedImage] = []
:
93 | timer = Timer.scheduledTimer(withTimeInterval: 0.25, repeats: true) { _ in
94 | withAnimation {
95 | self.progress = Double(exporter.progress)
| `- warning: capture of 'self' with non-sendable type 'VideoUtil' in a `@Sendable` closure; this is an error in the Swift 6 language mode
96 | }
97 | if exporter.status == .completed || exporter.status == .failed || exporter.status == .cancelled {
/Users/admin/builder/spi-builder-workspace/Sources/MediaUtilities/VideoEditor/VideoUtil.swift:95:40: warning: capture of 'exporter' with non-sendable type 'AVAssetExportSession' in a `@Sendable` closure; this is an error in the Swift 6 language mode
93 | timer = Timer.scheduledTimer(withTimeInterval: 0.25, repeats: true) { _ in
94 | withAnimation {
95 | self.progress = Double(exporter.progress)
| `- warning: capture of 'exporter' with non-sendable type 'AVAssetExportSession' in a `@Sendable` closure; this is an error in the Swift 6 language mode
96 | }
97 | if exporter.status == .completed || exporter.status == .failed || exporter.status == .cancelled {
AVFoundation.AVAssetExportSession:2:12: note: class 'AVAssetExportSession' does not conform to the 'Sendable' protocol
1 | @available(macOS 10.7, *)
2 | open class AVAssetExportSession : NSObject {
| `- note: class 'AVAssetExportSession' does not conform to the 'Sendable' protocol
3 | @available(*, unavailable)
4 | public convenience init()
/Users/admin/builder/spi-builder-workspace/Sources/MediaUtilities/VideoEditor/VideoUtil.swift:100:21: warning: capture of 'callback' with non-sendable type '(VideoUtil.Result) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
98 | self.timer?.invalidate()
99 | if exporter.status == .cancelled {
100 | callback(.error(.exporterCancelled))
| |- warning: capture of 'callback' with non-sendable type '(VideoUtil.Result) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
101 | }
102 | if exporter.status == .failed {
/Users/admin/builder/spi-builder-workspace/Sources/MediaUtilities/VideoEditor/VideoUtil.swift:95:17: warning: capture of 'self' with non-sendable type 'VideoUtil' in an isolated closure; this is an error in the Swift 6 language mode
11 |
12 | @available(iOS 13.0, macOS 10.15, *)
13 | class VideoUtil: ObservableObject {
| `- note: class 'VideoUtil' does not conform to the 'Sendable' protocol
14 | @Published var progress: Double = .zero
15 | @Published var videoImageFrames: [UnifiedImage] = []
:
93 | timer = Timer.scheduledTimer(withTimeInterval: 0.25, repeats: true) { _ in
94 | withAnimation {
95 | self.progress = Double(exporter.progress)
| `- warning: capture of 'self' with non-sendable type 'VideoUtil' in an isolated closure; this is an error in the Swift 6 language mode
96 | }
97 | if exporter.status == .completed || exporter.status == .failed || exporter.status == .cancelled {
/Users/admin/builder/spi-builder-workspace/Sources/MediaUtilities/VideoEditor/VideoUtil.swift:95:40: warning: capture of 'exporter' with non-sendable type 'AVAssetExportSession' in an isolated closure; this is an error in the Swift 6 language mode
93 | timer = Timer.scheduledTimer(withTimeInterval: 0.25, repeats: true) { _ in
94 | withAnimation {
95 | self.progress = Double(exporter.progress)
| `- warning: capture of 'exporter' with non-sendable type 'AVAssetExportSession' in an isolated closure; this is an error in the Swift 6 language mode
96 | }
97 | if exporter.status == .completed || exporter.status == .failed || exporter.status == .cancelled {
AVFoundation.AVAssetExportSession:2:12: note: class 'AVAssetExportSession' does not conform to the 'Sendable' protocol
1 | @available(macOS 10.7, *)
2 | open class AVAssetExportSession : NSObject {
| `- note: class 'AVAssetExportSession' does not conform to the 'Sendable' protocol
3 | @available(*, unavailable)
4 | public convenience init()
/Users/admin/builder/spi-builder-workspace/Sources/MediaUtilities/VideoEditor/VideoUtil.swift:97:49: warning: implicit capture of 'exporter' requires that 'AVAssetExportSession' conforms to `Sendable`; this is an error in the Swift 6 language mode
95 | self.progress = Double(exporter.progress)
96 | }
97 | if exporter.status == .completed || exporter.status == .failed || exporter.status == .cancelled {
| `- warning: implicit capture of 'exporter' requires that 'AVAssetExportSession' conforms to `Sendable`; this is an error in the Swift 6 language mode
98 | self.timer?.invalidate()
99 | if exporter.status == .cancelled {
AVFoundation.AVAssetExportSession:2:12: note: class 'AVAssetExportSession' does not conform to the 'Sendable' protocol
1 | @available(macOS 10.7, *)
2 | open class AVAssetExportSession : NSObject {
| `- note: class 'AVAssetExportSession' does not conform to the 'Sendable' protocol
3 | @available(*, unavailable)
4 | public convenience init()
/Users/admin/builder/spi-builder-workspace/Sources/MediaUtilities/VideoEditor/VideoUtil.swift:97:79: warning: implicit capture of 'exporter' requires that 'AVAssetExportSession' conforms to `Sendable`; this is an error in the Swift 6 language mode
95 | self.progress = Double(exporter.progress)
96 | }
97 | if exporter.status == .completed || exporter.status == .failed || exporter.status == .cancelled {
| `- warning: implicit capture of 'exporter' requires that 'AVAssetExportSession' conforms to `Sendable`; this is an error in the Swift 6 language mode
98 | self.timer?.invalidate()
99 | if exporter.status == .cancelled {
AVFoundation.AVAssetExportSession:2:12: note: class 'AVAssetExportSession' does not conform to the 'Sendable' protocol
1 | @available(macOS 10.7, *)
2 | open class AVAssetExportSession : NSObject {
| `- note: class 'AVAssetExportSession' does not conform to the 'Sendable' protocol
3 | @available(*, unavailable)
4 | public convenience init()
/Users/admin/builder/spi-builder-workspace/Sources/MediaUtilities/VideoEditor/VideoUtil.swift:148:25: warning: capture of 'self' with non-sendable type 'VideoUtil' in a `@Sendable` closure; this is an error in the Swift 6 language mode
11 |
12 | @available(iOS 13.0, macOS 10.15, *)
13 | class VideoUtil: ObservableObject {
| `- note: class 'VideoUtil' does not conform to the 'Sendable' protocol
14 | @Published var progress: Double = .zero
15 | @Published var videoImageFrames: [UnifiedImage] = []
:
146 | let image = UnifiedImage(cgImage: img)
147 | DispatchQueue.main.async {
148 | self.videoImageFrames.append(image)
| `- warning: capture of 'self' with non-sendable type 'VideoUtil' in a `@Sendable` closure; this is an error in the Swift 6 language mode
149 | }
150 | }
/Users/admin/builder/spi-builder-workspace/Sources/MediaUtilities/VideoEditor/VideoUtil.swift:148:25: warning: capture of 'self' with non-sendable type 'VideoUtil' in a `@Sendable` closure; this is an error in the Swift 6 language mode
11 |
12 | @available(iOS 13.0, macOS 10.15, *)
13 | class VideoUtil: ObservableObject {
| `- note: class 'VideoUtil' does not conform to the 'Sendable' protocol
14 | @Published var progress: Double = .zero
15 | @Published var videoImageFrames: [UnifiedImage] = []
:
146 | let image = UnifiedImage(cgImage: img)
147 | DispatchQueue.main.async {
148 | self.videoImageFrames.append(image)
| `- warning: capture of 'self' with non-sendable type 'VideoUtil' in a `@Sendable` closure; this is an error in the Swift 6 language mode
149 | }
150 | }
/Users/admin/builder/spi-builder-workspace/Sources/MediaUtilities/VideoEditor/VideoUtil.swift:148:54: warning: capture of 'image' with non-sendable type 'UnifiedImage' (aka 'NSImage') in a `@Sendable` closure; this is an error in the Swift 6 language mode
146 | let image = UnifiedImage(cgImage: img)
147 | DispatchQueue.main.async {
148 | self.videoImageFrames.append(image)
| `- warning: capture of 'image' with non-sendable type 'UnifiedImage' (aka 'NSImage') in a `@Sendable` closure; this is an error in the Swift 6 language mode
149 | }
150 | }
AppKit.NSImage:1:12: note: class 'NSImage' does not conform to the 'Sendable' protocol
1 | open class NSImage : NSObject {
| `- note: class 'NSImage' does not conform to the 'Sendable' protocol
2 | public /*not inherited*/ init?(named name: NSImage.Name)
3 | @available(*, unavailable, renamed: "init(named:)", message: "Not available in Swift")
/Users/admin/builder/spi-builder-workspace/Sources/MediaUtilities/VideoPlayer/CustomVideoPlayer.swift:96:20: warning: main actor-isolated property 'playerVM' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
61 | @available(macOS 10.15, *)
62 | public struct CustomVideoPlayer: NSViewRepresentable {
63 | @EnvironmentObject private var playerVM: PlayerViewModel
| `- note: property declared here
64 |
65 | public init() { }
:
94 |
95 | private var playerVM: PlayerViewModel {
96 | parent.playerVM
| `- warning: main actor-isolated property 'playerVM' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
97 | }
98 |
/Users/admin/builder/spi-builder-workspace/Sources/MediaUtilities/VideoPlayer/PlayerViewModel.swift:80:33: warning: main actor-isolated property 'asset' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
78 | .filter({ $0 == .readyToPlay })
79 | .sink(receiveValue: { [weak self] _ in
80 | let time = item.asset.duration.seconds
| `- warning: main actor-isolated property 'asset' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
81 | self?.duration = time
82 | self?.endPlayingAt = time
AVFoundation.AVPlayerItem:2:25: note: property declared here
1 | extension AVPlayerItem {
2 | @MainActor open var asset: AVAsset { get }
| `- note: property declared here
3 | nonisolated open var tracks: [AVPlayerItemTrack] { get }
4 | @available(macOS 10.7, *)
/Users/admin/builder/spi-builder-workspace/Sources/MediaUtilities/VideoPlayer/PlayerViewModel.swift:83:30: warning: call to main actor-isolated instance method 'play()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
81 | self?.duration = time
82 | self?.endPlayingAt = time
83 | self?.player.play()
| `- warning: call to main actor-isolated instance method 'play()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
84 | })
85 | .store(in: &subscriptions)
AVFoundation.AVPlayer:5:26: note: calls to instance method 'play()' from outside of its actor context are implicitly asynchronous
3 | @available(macOS 13.0, *)
4 | nonisolated open var defaultRate: Float { get set }
5 | @MainActor open func play()
| `- note: calls to instance method 'play()' from outside of its actor context are implicitly asynchronous
6 | open func pause()
7 | @available(macOS 10.12, *)
/Users/admin/builder/spi-builder-workspace/Sources/MediaUtilities/VideoPlayer/PlayerViewModel.swift:94:16: warning: call to main actor-isolated instance method 'play()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
86 | }
87 |
88 | public func seekForward() {
| `- note: add '@MainActor' to make instance method 'seekForward()' part of global actor 'MainActor'
89 | var time = currentTime + 10
90 | if time >= duration {
:
92 | }
93 | player.seek(to: CMTime(seconds: time, preferredTimescale: 1000))
94 | player.play()
| `- warning: call to main actor-isolated instance method 'play()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
95 | }
96 |
AVFoundation.AVPlayer:5:26: note: calls to instance method 'play()' from outside of its actor context are implicitly asynchronous
3 | @available(macOS 13.0, *)
4 | nonisolated open var defaultRate: Float { get set }
5 | @MainActor open func play()
| `- note: calls to instance method 'play()' from outside of its actor context are implicitly asynchronous
6 | open func pause()
7 | @available(macOS 10.12, *)
/Users/admin/builder/spi-builder-workspace/Sources/MediaUtilities/VideoPlayer/PlayerViewModel.swift:103:16: warning: call to main actor-isolated instance method 'play()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
95 | }
96 |
97 | public func seekBackward() {
| `- note: add '@MainActor' to make instance method 'seekBackward()' part of global actor 'MainActor'
98 | var time = currentTime - 10
99 | if time <= 0 {
:
101 | }
102 | player.seek(to: CMTime(seconds: time, preferredTimescale: 1000))
103 | player.play()
| `- warning: call to main actor-isolated instance method 'play()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
104 | }
105 |
AVFoundation.AVPlayer:5:26: note: calls to instance method 'play()' from outside of its actor context are implicitly asynchronous
3 | @available(macOS 13.0, *)
4 | nonisolated open var defaultRate: Float { get set }
5 | @MainActor open func play()
| `- note: calls to instance method 'play()' from outside of its actor context are implicitly asynchronous
6 | open func pause()
7 | @available(macOS 10.12, *)
/Users/admin/builder/spi-builder-workspace/Sources/MediaUtilities/VideoPlayer/PlayerViewModel.swift:107:16: warning: call to main actor-isolated instance method 'play()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
104 | }
105 |
106 | public func play() {
| `- note: add '@MainActor' to make instance method 'play()' part of global actor 'MainActor'
107 | player.play()
| `- warning: call to main actor-isolated instance method 'play()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
108 | }
109 |
AVFoundation.AVPlayer:5:26: note: calls to instance method 'play()' from outside of its actor context are implicitly asynchronous
3 | @available(macOS 13.0, *)
4 | nonisolated open var defaultRate: Float { get set }
5 | @MainActor open func play()
| `- note: calls to instance method 'play()' from outside of its actor context are implicitly asynchronous
6 | open func pause()
7 | @available(macOS 10.12, *)
/Users/admin/builder/spi-builder-workspace/Sources/MediaUtilities/VideoPlayer/PlayerViewModel.swift:111:16: warning: call to main actor-isolated instance method 'pause()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
108 | }
109 |
110 | public func pause() {
| `- note: add '@MainActor' to make instance method 'pause()' part of global actor 'MainActor'
111 | player.pause()
| `- warning: call to main actor-isolated instance method 'pause()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
112 | }
113 |
AVFoundation.AVPlayer:6:15: note: calls to instance method 'pause()' from outside of its actor context are implicitly asynchronous
4 | nonisolated open var defaultRate: Float { get set }
5 | @MainActor open func play()
6 | open func pause()
| `- note: calls to instance method 'pause()' from outside of its actor context are implicitly asynchronous
7 | @available(macOS 10.12, *)
8 | nonisolated open var timeControlStatus: AVPlayer.TimeControlStatus { get }
/Users/admin/builder/spi-builder-workspace/Sources/MediaUtilities/VideoPlayer/PlayerViewModel.swift:140:30: warning: capture of 'self' with non-sendable type 'PlayerViewModel?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
11 |
12 | @available(iOS 13.0, macOS 10.15, *)
13 | final public class PlayerViewModel: ObservableObject {
| `- note: class 'PlayerViewModel' does not conform to the 'Sendable' protocol
14 | public let player = AVPlayer()
15 | @Published public var allowsPictureInPicturePlayback: Bool = true
:
138 | let interval = CMTime(seconds: isShowingControls ? 1 : 0.25, preferredTimescale: 60)
139 | timeObserver = player.addPeriodicTimeObserver(forInterval: interval, queue: .main) { [weak self] time in
140 | guard let self = self else { return }
| `- warning: capture of 'self' with non-sendable type 'PlayerViewModel?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
141 | self.updateCurrentTime(time)
142 | }
/Users/admin/builder/spi-builder-workspace/Sources/MediaUtilities/VideoPlayer/PlayerViewModel.swift:167:20: warning: call to main actor-isolated instance method 'play()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
162 | }
163 |
164 | private func endPlayingAtReached() {
| `- note: add '@MainActor' to make instance method 'endPlayingAtReached()' part of global actor 'MainActor'
165 | if loopPlayback {
166 | seekTo(startPlayingAt)
167 | player.play()
| `- warning: call to main actor-isolated instance method 'play()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
168 | } else {
169 | player.pause()
AVFoundation.AVPlayer:5:26: note: calls to instance method 'play()' from outside of its actor context are implicitly asynchronous
3 | @available(macOS 13.0, *)
4 | nonisolated open var defaultRate: Float { get set }
5 | @MainActor open func play()
| `- note: calls to instance method 'play()' from outside of its actor context are implicitly asynchronous
6 | open func pause()
7 | @available(macOS 10.12, *)
/Users/admin/builder/spi-builder-workspace/Sources/MediaUtilities/VideoPlayer/PlayerViewModel.swift:169:20: warning: call to main actor-isolated instance method 'pause()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
162 | }
163 |
164 | private func endPlayingAtReached() {
| `- note: add '@MainActor' to make instance method 'endPlayingAtReached()' part of global actor 'MainActor'
165 | if loopPlayback {
166 | seekTo(startPlayingAt)
167 | player.play()
168 | } else {
169 | player.pause()
| `- warning: call to main actor-isolated instance method 'pause()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
170 | }
171 | }
AVFoundation.AVPlayer:6:15: note: calls to instance method 'pause()' from outside of its actor context are implicitly asynchronous
4 | nonisolated open var defaultRate: Float { get set }
5 | @MainActor open func play()
6 | open func pause()
| `- note: calls to instance method 'pause()' from outside of its actor context are implicitly asynchronous
7 | @available(macOS 10.12, *)
8 | nonisolated open var timeControlStatus: AVPlayer.TimeControlStatus { get }
/Users/admin/builder/spi-builder-workspace/Sources/MediaUtilities/VideoEditor/VideoUtil.swift:129:37: 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 | func generateImageFrames() {
128 | videoImageFrames = []
129 | Task(priority: .background) {
| `- 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
130 | guard let asset = asset else {
| `- note: closure captures 'self' which is accessible to code in the current task
131 | return
132 | }
[42/47] Compiling MediaUtilities PlayerViewModel.swift
/Users/admin/builder/spi-builder-workspace/Sources/MediaUtilities/VideoEditor/Sliders/RangeSlider/Styles/RangeSliderOptions.swift:7:23: warning: static property 'defaultOptions' is not concurrency-safe because non-'Sendable' type 'RangeSliderOptions' may have shared mutable state; this is an error in the Swift 6 language mode
1 | import SwiftUI
2 |
3 | public struct RangeSliderOptions: OptionSet {
| `- note: consider making struct 'RangeSliderOptions' conform to the 'Sendable' protocol
4 | public let rawValue: Int
5 |
6 | public static let forceAdjacentValue = RangeSliderOptions(rawValue: 1 << 0)
7 | public static let defaultOptions: RangeSliderOptions = .forceAdjacentValue
| |- warning: static property 'defaultOptions' is not concurrency-safe because non-'Sendable' type 'RangeSliderOptions' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'defaultOptions' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
8 |
9 | public init(rawValue: Int) {
/Users/admin/builder/spi-builder-workspace/Sources/MediaUtilities/VideoEditor/VideoSliderView.swift:136:21: warning: main actor-isolated property 'isShowingSeekerTime' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
14 |
15 | @State private var maxWidth: CGFloat = 0
16 | @State private var isShowingSeekerTime = false
| `- note: mutation of this property is only permitted within the actor
17 | @State private var timer: Timer?
18 | let seekerHeight: CGFloat = 50
:
134 | timer = Timer.scheduledTimer(withTimeInterval: 1.0, repeats: false) { _ in
135 | withAnimation {
136 | isShowingSeekerTime = false
| `- warning: main actor-isolated property 'isShowingSeekerTime' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
137 | }
138 | }
/Users/admin/builder/spi-builder-workspace/Sources/MediaUtilities/VideoEditor/VideoUtil.swift:78:16: warning: capture of 'exporter' with non-sendable type 'AVAssetExportSession' in a `@Sendable` closure; this is an error in the Swift 6 language mode
76 |
77 | exporter.exportAsynchronously {
78 | if exporter.status == .completed {
| `- warning: capture of 'exporter' with non-sendable type 'AVAssetExportSession' in a `@Sendable` closure; this is an error in the Swift 6 language mode
79 | DispatchQueue.main.async {
80 | onCompletion(.success(outputVideoURL))
AVFoundation.AVAssetExportSession:2:12: note: class 'AVAssetExportSession' does not conform to the 'Sendable' protocol
1 | @available(macOS 10.7, *)
2 | open class AVAssetExportSession : NSObject {
| `- note: class 'AVAssetExportSession' does not conform to the 'Sendable' protocol
3 | @available(*, unavailable)
4 | public convenience init()
/Users/admin/builder/spi-builder-workspace/Sources/MediaUtilities/VideoEditor/VideoUtil.swift:80:21: warning: capture of 'onCompletion' with non-sendable type '(VideoUtil.Result) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
78 | if exporter.status == .completed {
79 | DispatchQueue.main.async {
80 | onCompletion(.success(outputVideoURL))
| |- warning: capture of 'onCompletion' with non-sendable type '(VideoUtil.Result) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
81 | }
82 | }
/Users/admin/builder/spi-builder-workspace/Sources/MediaUtilities/VideoEditor/VideoUtil.swift:80:21: warning: capture of 'onCompletion' with non-sendable type '(VideoUtil.Result) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
78 | if exporter.status == .completed {
79 | DispatchQueue.main.async {
80 | onCompletion(.success(outputVideoURL))
| |- warning: capture of 'onCompletion' with non-sendable type '(VideoUtil.Result) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
81 | }
82 | }
/Users/admin/builder/spi-builder-workspace/Sources/MediaUtilities/VideoEditor/VideoUtil.swift:95:17: warning: capture of 'self' with non-sendable type 'VideoUtil' in a `@Sendable` closure; this is an error in the Swift 6 language mode
11 |
12 | @available(iOS 13.0, macOS 10.15, *)
13 | class VideoUtil: ObservableObject {
| `- note: class 'VideoUtil' does not conform to the 'Sendable' protocol
14 | @Published var progress: Double = .zero
15 | @Published var videoImageFrames: [UnifiedImage] = []
:
93 | timer = Timer.scheduledTimer(withTimeInterval: 0.25, repeats: true) { _ in
94 | withAnimation {
95 | self.progress = Double(exporter.progress)
| `- warning: capture of 'self' with non-sendable type 'VideoUtil' in a `@Sendable` closure; this is an error in the Swift 6 language mode
96 | }
97 | if exporter.status == .completed || exporter.status == .failed || exporter.status == .cancelled {
/Users/admin/builder/spi-builder-workspace/Sources/MediaUtilities/VideoEditor/VideoUtil.swift:95:40: warning: capture of 'exporter' with non-sendable type 'AVAssetExportSession' in a `@Sendable` closure; this is an error in the Swift 6 language mode
93 | timer = Timer.scheduledTimer(withTimeInterval: 0.25, repeats: true) { _ in
94 | withAnimation {
95 | self.progress = Double(exporter.progress)
| `- warning: capture of 'exporter' with non-sendable type 'AVAssetExportSession' in a `@Sendable` closure; this is an error in the Swift 6 language mode
96 | }
97 | if exporter.status == .completed || exporter.status == .failed || exporter.status == .cancelled {
AVFoundation.AVAssetExportSession:2:12: note: class 'AVAssetExportSession' does not conform to the 'Sendable' protocol
1 | @available(macOS 10.7, *)
2 | open class AVAssetExportSession : NSObject {
| `- note: class 'AVAssetExportSession' does not conform to the 'Sendable' protocol
3 | @available(*, unavailable)
4 | public convenience init()
/Users/admin/builder/spi-builder-workspace/Sources/MediaUtilities/VideoEditor/VideoUtil.swift:100:21: warning: capture of 'callback' with non-sendable type '(VideoUtil.Result) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
98 | self.timer?.invalidate()
99 | if exporter.status == .cancelled {
100 | callback(.error(.exporterCancelled))
| |- warning: capture of 'callback' with non-sendable type '(VideoUtil.Result) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
101 | }
102 | if exporter.status == .failed {
/Users/admin/builder/spi-builder-workspace/Sources/MediaUtilities/VideoEditor/VideoUtil.swift:95:17: warning: capture of 'self' with non-sendable type 'VideoUtil' in an isolated closure; this is an error in the Swift 6 language mode
11 |
12 | @available(iOS 13.0, macOS 10.15, *)
13 | class VideoUtil: ObservableObject {
| `- note: class 'VideoUtil' does not conform to the 'Sendable' protocol
14 | @Published var progress: Double = .zero
15 | @Published var videoImageFrames: [UnifiedImage] = []
:
93 | timer = Timer.scheduledTimer(withTimeInterval: 0.25, repeats: true) { _ in
94 | withAnimation {
95 | self.progress = Double(exporter.progress)
| `- warning: capture of 'self' with non-sendable type 'VideoUtil' in an isolated closure; this is an error in the Swift 6 language mode
96 | }
97 | if exporter.status == .completed || exporter.status == .failed || exporter.status == .cancelled {
/Users/admin/builder/spi-builder-workspace/Sources/MediaUtilities/VideoEditor/VideoUtil.swift:95:40: warning: capture of 'exporter' with non-sendable type 'AVAssetExportSession' in an isolated closure; this is an error in the Swift 6 language mode
93 | timer = Timer.scheduledTimer(withTimeInterval: 0.25, repeats: true) { _ in
94 | withAnimation {
95 | self.progress = Double(exporter.progress)
| `- warning: capture of 'exporter' with non-sendable type 'AVAssetExportSession' in an isolated closure; this is an error in the Swift 6 language mode
96 | }
97 | if exporter.status == .completed || exporter.status == .failed || exporter.status == .cancelled {
AVFoundation.AVAssetExportSession:2:12: note: class 'AVAssetExportSession' does not conform to the 'Sendable' protocol
1 | @available(macOS 10.7, *)
2 | open class AVAssetExportSession : NSObject {
| `- note: class 'AVAssetExportSession' does not conform to the 'Sendable' protocol
3 | @available(*, unavailable)
4 | public convenience init()
/Users/admin/builder/spi-builder-workspace/Sources/MediaUtilities/VideoEditor/VideoUtil.swift:97:49: warning: implicit capture of 'exporter' requires that 'AVAssetExportSession' conforms to `Sendable`; this is an error in the Swift 6 language mode
95 | self.progress = Double(exporter.progress)
96 | }
97 | if exporter.status == .completed || exporter.status == .failed || exporter.status == .cancelled {
| `- warning: implicit capture of 'exporter' requires that 'AVAssetExportSession' conforms to `Sendable`; this is an error in the Swift 6 language mode
98 | self.timer?.invalidate()
99 | if exporter.status == .cancelled {
AVFoundation.AVAssetExportSession:2:12: note: class 'AVAssetExportSession' does not conform to the 'Sendable' protocol
1 | @available(macOS 10.7, *)
2 | open class AVAssetExportSession : NSObject {
| `- note: class 'AVAssetExportSession' does not conform to the 'Sendable' protocol
3 | @available(*, unavailable)
4 | public convenience init()
/Users/admin/builder/spi-builder-workspace/Sources/MediaUtilities/VideoEditor/VideoUtil.swift:97:79: warning: implicit capture of 'exporter' requires that 'AVAssetExportSession' conforms to `Sendable`; this is an error in the Swift 6 language mode
95 | self.progress = Double(exporter.progress)
96 | }
97 | if exporter.status == .completed || exporter.status == .failed || exporter.status == .cancelled {
| `- warning: implicit capture of 'exporter' requires that 'AVAssetExportSession' conforms to `Sendable`; this is an error in the Swift 6 language mode
98 | self.timer?.invalidate()
99 | if exporter.status == .cancelled {
AVFoundation.AVAssetExportSession:2:12: note: class 'AVAssetExportSession' does not conform to the 'Sendable' protocol
1 | @available(macOS 10.7, *)
2 | open class AVAssetExportSession : NSObject {
| `- note: class 'AVAssetExportSession' does not conform to the 'Sendable' protocol
3 | @available(*, unavailable)
4 | public convenience init()
/Users/admin/builder/spi-builder-workspace/Sources/MediaUtilities/VideoEditor/VideoUtil.swift:148:25: warning: capture of 'self' with non-sendable type 'VideoUtil' in a `@Sendable` closure; this is an error in the Swift 6 language mode
11 |
12 | @available(iOS 13.0, macOS 10.15, *)
13 | class VideoUtil: ObservableObject {
| `- note: class 'VideoUtil' does not conform to the 'Sendable' protocol
14 | @Published var progress: Double = .zero
15 | @Published var videoImageFrames: [UnifiedImage] = []
:
146 | let image = UnifiedImage(cgImage: img)
147 | DispatchQueue.main.async {
148 | self.videoImageFrames.append(image)
| `- warning: capture of 'self' with non-sendable type 'VideoUtil' in a `@Sendable` closure; this is an error in the Swift 6 language mode
149 | }
150 | }
/Users/admin/builder/spi-builder-workspace/Sources/MediaUtilities/VideoEditor/VideoUtil.swift:148:25: warning: capture of 'self' with non-sendable type 'VideoUtil' in a `@Sendable` closure; this is an error in the Swift 6 language mode
11 |
12 | @available(iOS 13.0, macOS 10.15, *)
13 | class VideoUtil: ObservableObject {
| `- note: class 'VideoUtil' does not conform to the 'Sendable' protocol
14 | @Published var progress: Double = .zero
15 | @Published var videoImageFrames: [UnifiedImage] = []
:
146 | let image = UnifiedImage(cgImage: img)
147 | DispatchQueue.main.async {
148 | self.videoImageFrames.append(image)
| `- warning: capture of 'self' with non-sendable type 'VideoUtil' in a `@Sendable` closure; this is an error in the Swift 6 language mode
149 | }
150 | }
/Users/admin/builder/spi-builder-workspace/Sources/MediaUtilities/VideoEditor/VideoUtil.swift:148:54: warning: capture of 'image' with non-sendable type 'UnifiedImage' (aka 'NSImage') in a `@Sendable` closure; this is an error in the Swift 6 language mode
146 | let image = UnifiedImage(cgImage: img)
147 | DispatchQueue.main.async {
148 | self.videoImageFrames.append(image)
| `- warning: capture of 'image' with non-sendable type 'UnifiedImage' (aka 'NSImage') in a `@Sendable` closure; this is an error in the Swift 6 language mode
149 | }
150 | }
AppKit.NSImage:1:12: note: class 'NSImage' does not conform to the 'Sendable' protocol
1 | open class NSImage : NSObject {
| `- note: class 'NSImage' does not conform to the 'Sendable' protocol
2 | public /*not inherited*/ init?(named name: NSImage.Name)
3 | @available(*, unavailable, renamed: "init(named:)", message: "Not available in Swift")
/Users/admin/builder/spi-builder-workspace/Sources/MediaUtilities/VideoPlayer/CustomVideoPlayer.swift:96:20: warning: main actor-isolated property 'playerVM' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
61 | @available(macOS 10.15, *)
62 | public struct CustomVideoPlayer: NSViewRepresentable {
63 | @EnvironmentObject private var playerVM: PlayerViewModel
| `- note: property declared here
64 |
65 | public init() { }
:
94 |
95 | private var playerVM: PlayerViewModel {
96 | parent.playerVM
| `- warning: main actor-isolated property 'playerVM' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
97 | }
98 |
/Users/admin/builder/spi-builder-workspace/Sources/MediaUtilities/VideoPlayer/PlayerViewModel.swift:80:33: warning: main actor-isolated property 'asset' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
78 | .filter({ $0 == .readyToPlay })
79 | .sink(receiveValue: { [weak self] _ in
80 | let time = item.asset.duration.seconds
| `- warning: main actor-isolated property 'asset' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
81 | self?.duration = time
82 | self?.endPlayingAt = time
AVFoundation.AVPlayerItem:2:25: note: property declared here
1 | extension AVPlayerItem {
2 | @MainActor open var asset: AVAsset { get }
| `- note: property declared here
3 | nonisolated open var tracks: [AVPlayerItemTrack] { get }
4 | @available(macOS 10.7, *)
/Users/admin/builder/spi-builder-workspace/Sources/MediaUtilities/VideoPlayer/PlayerViewModel.swift:83:30: warning: call to main actor-isolated instance method 'play()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
81 | self?.duration = time
82 | self?.endPlayingAt = time
83 | self?.player.play()
| `- warning: call to main actor-isolated instance method 'play()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
84 | })
85 | .store(in: &subscriptions)
AVFoundation.AVPlayer:5:26: note: calls to instance method 'play()' from outside of its actor context are implicitly asynchronous
3 | @available(macOS 13.0, *)
4 | nonisolated open var defaultRate: Float { get set }
5 | @MainActor open func play()
| `- note: calls to instance method 'play()' from outside of its actor context are implicitly asynchronous
6 | open func pause()
7 | @available(macOS 10.12, *)
/Users/admin/builder/spi-builder-workspace/Sources/MediaUtilities/VideoPlayer/PlayerViewModel.swift:94:16: warning: call to main actor-isolated instance method 'play()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
86 | }
87 |
88 | public func seekForward() {
| `- note: add '@MainActor' to make instance method 'seekForward()' part of global actor 'MainActor'
89 | var time = currentTime + 10
90 | if time >= duration {
:
92 | }
93 | player.seek(to: CMTime(seconds: time, preferredTimescale: 1000))
94 | player.play()
| `- warning: call to main actor-isolated instance method 'play()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
95 | }
96 |
AVFoundation.AVPlayer:5:26: note: calls to instance method 'play()' from outside of its actor context are implicitly asynchronous
3 | @available(macOS 13.0, *)
4 | nonisolated open var defaultRate: Float { get set }
5 | @MainActor open func play()
| `- note: calls to instance method 'play()' from outside of its actor context are implicitly asynchronous
6 | open func pause()
7 | @available(macOS 10.12, *)
/Users/admin/builder/spi-builder-workspace/Sources/MediaUtilities/VideoPlayer/PlayerViewModel.swift:103:16: warning: call to main actor-isolated instance method 'play()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
95 | }
96 |
97 | public func seekBackward() {
| `- note: add '@MainActor' to make instance method 'seekBackward()' part of global actor 'MainActor'
98 | var time = currentTime - 10
99 | if time <= 0 {
:
101 | }
102 | player.seek(to: CMTime(seconds: time, preferredTimescale: 1000))
103 | player.play()
| `- warning: call to main actor-isolated instance method 'play()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
104 | }
105 |
AVFoundation.AVPlayer:5:26: note: calls to instance method 'play()' from outside of its actor context are implicitly asynchronous
3 | @available(macOS 13.0, *)
4 | nonisolated open var defaultRate: Float { get set }
5 | @MainActor open func play()
| `- note: calls to instance method 'play()' from outside of its actor context are implicitly asynchronous
6 | open func pause()
7 | @available(macOS 10.12, *)
/Users/admin/builder/spi-builder-workspace/Sources/MediaUtilities/VideoPlayer/PlayerViewModel.swift:107:16: warning: call to main actor-isolated instance method 'play()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
104 | }
105 |
106 | public func play() {
| `- note: add '@MainActor' to make instance method 'play()' part of global actor 'MainActor'
107 | player.play()
| `- warning: call to main actor-isolated instance method 'play()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
108 | }
109 |
AVFoundation.AVPlayer:5:26: note: calls to instance method 'play()' from outside of its actor context are implicitly asynchronous
3 | @available(macOS 13.0, *)
4 | nonisolated open var defaultRate: Float { get set }
5 | @MainActor open func play()
| `- note: calls to instance method 'play()' from outside of its actor context are implicitly asynchronous
6 | open func pause()
7 | @available(macOS 10.12, *)
/Users/admin/builder/spi-builder-workspace/Sources/MediaUtilities/VideoPlayer/PlayerViewModel.swift:111:16: warning: call to main actor-isolated instance method 'pause()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
108 | }
109 |
110 | public func pause() {
| `- note: add '@MainActor' to make instance method 'pause()' part of global actor 'MainActor'
111 | player.pause()
| `- warning: call to main actor-isolated instance method 'pause()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
112 | }
113 |
AVFoundation.AVPlayer:6:15: note: calls to instance method 'pause()' from outside of its actor context are implicitly asynchronous
4 | nonisolated open var defaultRate: Float { get set }
5 | @MainActor open func play()
6 | open func pause()
| `- note: calls to instance method 'pause()' from outside of its actor context are implicitly asynchronous
7 | @available(macOS 10.12, *)
8 | nonisolated open var timeControlStatus: AVPlayer.TimeControlStatus { get }
/Users/admin/builder/spi-builder-workspace/Sources/MediaUtilities/VideoPlayer/PlayerViewModel.swift:140:30: warning: capture of 'self' with non-sendable type 'PlayerViewModel?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
11 |
12 | @available(iOS 13.0, macOS 10.15, *)
13 | final public class PlayerViewModel: ObservableObject {
| `- note: class 'PlayerViewModel' does not conform to the 'Sendable' protocol
14 | public let player = AVPlayer()
15 | @Published public var allowsPictureInPicturePlayback: Bool = true
:
138 | let interval = CMTime(seconds: isShowingControls ? 1 : 0.25, preferredTimescale: 60)
139 | timeObserver = player.addPeriodicTimeObserver(forInterval: interval, queue: .main) { [weak self] time in
140 | guard let self = self else { return }
| `- warning: capture of 'self' with non-sendable type 'PlayerViewModel?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
141 | self.updateCurrentTime(time)
142 | }
/Users/admin/builder/spi-builder-workspace/Sources/MediaUtilities/VideoPlayer/PlayerViewModel.swift:167:20: warning: call to main actor-isolated instance method 'play()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
162 | }
163 |
164 | private func endPlayingAtReached() {
| `- note: add '@MainActor' to make instance method 'endPlayingAtReached()' part of global actor 'MainActor'
165 | if loopPlayback {
166 | seekTo(startPlayingAt)
167 | player.play()
| `- warning: call to main actor-isolated instance method 'play()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
168 | } else {
169 | player.pause()
AVFoundation.AVPlayer:5:26: note: calls to instance method 'play()' from outside of its actor context are implicitly asynchronous
3 | @available(macOS 13.0, *)
4 | nonisolated open var defaultRate: Float { get set }
5 | @MainActor open func play()
| `- note: calls to instance method 'play()' from outside of its actor context are implicitly asynchronous
6 | open func pause()
7 | @available(macOS 10.12, *)
/Users/admin/builder/spi-builder-workspace/Sources/MediaUtilities/VideoPlayer/PlayerViewModel.swift:169:20: warning: call to main actor-isolated instance method 'pause()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
162 | }
163 |
164 | private func endPlayingAtReached() {
| `- note: add '@MainActor' to make instance method 'endPlayingAtReached()' part of global actor 'MainActor'
165 | if loopPlayback {
166 | seekTo(startPlayingAt)
167 | player.play()
168 | } else {
169 | player.pause()
| `- warning: call to main actor-isolated instance method 'pause()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
170 | }
171 | }
AVFoundation.AVPlayer:6:15: note: calls to instance method 'pause()' from outside of its actor context are implicitly asynchronous
4 | nonisolated open var defaultRate: Float { get set }
5 | @MainActor open func play()
6 | open func pause()
| `- note: calls to instance method 'pause()' from outside of its actor context are implicitly asynchronous
7 | @available(macOS 10.12, *)
8 | nonisolated open var timeControlStatus: AVPlayer.TimeControlStatus { get }
/Users/admin/builder/spi-builder-workspace/Sources/MediaUtilities/VideoEditor/VideoUtil.swift:129:37: 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 | func generateImageFrames() {
128 | videoImageFrames = []
129 | Task(priority: .background) {
| `- 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
130 | guard let asset = asset else {
| `- note: closure captures 'self' which is accessible to code in the current task
131 | return
132 | }
[43/47] Compiling MediaUtilities DropDelegateService.swift
/Users/admin/builder/spi-builder-workspace/Sources/MediaUtilities/DropDelegate/DropDelegateService.swift:33:13: warning: capture of 'self' with non-sendable type 'DropDelegateService' in a `@Sendable` closure; this is an error in the Swift 6 language mode
10 |
11 | @available(iOS 13.0, macOS 10.15, *)
12 | class DropDelegateService: ObservableObject {
| `- note: class 'DropDelegateService' does not conform to the 'Sendable' protocol
13 | @Published var isActive: Bool = false
14 | @Published var isValidated: Bool = false {
:
31 | func setIsAllowed(to bool: Bool) {
32 | DispatchQueue.main.async {
33 | self.isAllowed = bool
| `- warning: capture of 'self' with non-sendable type 'DropDelegateService' in a `@Sendable` closure; this is an error in the Swift 6 language mode
34 | self.processAttempts()
35 | }
/Users/admin/builder/spi-builder-workspace/Sources/MediaUtilities/DropDelegate/DropDelegateService.swift:40:13: warning: capture of 'self' with non-sendable type 'DropDelegateService' in a `@Sendable` closure; this is an error in the Swift 6 language mode
10 |
11 | @available(iOS 13.0, macOS 10.15, *)
12 | class DropDelegateService: ObservableObject {
| `- note: class 'DropDelegateService' does not conform to the 'Sendable' protocol
13 | @Published var isActive: Bool = false
14 | @Published var isValidated: Bool = false {
:
38 | func setIsCopying(to bool: Bool) {
39 | DispatchQueue.main.async {
40 | self.isCopyingFile = bool
| `- warning: capture of 'self' with non-sendable type 'DropDelegateService' in a `@Sendable` closure; this is an error in the Swift 6 language mode
41 | }
42 | }
/Users/admin/builder/spi-builder-workspace/Sources/MediaUtilities/DropDelegate/ImageDropDelegate.swift:56:21: warning: main actor-isolated property 'dropService' can not be referenced from a Sendable closure; this is an error in the Swift 6 language mode
11 | @available(iOS 14.0, macOS 11, *)
12 | struct ImageDropDelegate: DropDelegate {
13 | @ObservedObject var dropService: DropDelegateService
| `- note: property declared here
14 | var dropCompleted: (Result<UnifiedImage, Error>) -> Void
15 |
:
54 | }
55 | if utType.conforms(to: .image) || utType.conforms(to: .url) || utType.conforms(to: .fileURL) {
56 | dropService.setIsAllowed(to: true)
| `- warning: main actor-isolated property 'dropService' can not be referenced from a Sendable closure; this is an error in the Swift 6 language mode
57 | print("Here 7 11")
58 | } else {
/Users/admin/builder/spi-builder-workspace/Sources/MediaUtilities/DropDelegate/ImageDropDelegate.swift:59:21: warning: main actor-isolated property 'dropService' can not be referenced from a Sendable closure; this is an error in the Swift 6 language mode
11 | @available(iOS 14.0, macOS 11, *)
12 | struct ImageDropDelegate: DropDelegate {
13 | @ObservedObject var dropService: DropDelegateService
| `- note: property declared here
14 | var dropCompleted: (Result<UnifiedImage, Error>) -> Void
15 |
:
57 | print("Here 7 11")
58 | } else {
59 | dropService.setIsAllowed(to: false)
| `- warning: main actor-isolated property 'dropService' can not be referenced from a Sendable closure; this is an error in the Swift 6 language mode
60 | print("Here 7 22")
61 | }
/Users/admin/builder/spi-builder-workspace/Sources/MediaUtilities/DropDelegate/ImageDropDelegate.swift:71:21: warning: main actor-isolated property 'dropService' can not be referenced from a Sendable closure; this is an error in the Swift 6 language mode
11 | @available(iOS 14.0, macOS 11, *)
12 | struct ImageDropDelegate: DropDelegate {
13 | @ObservedObject var dropService: DropDelegateService
| `- note: property declared here
14 | var dropCompleted: (Result<UnifiedImage, Error>) -> Void
15 |
:
69 | let img = UnifiedImage(data: data)
70 | guard img != nil else {
71 | dropService.setIsAllowed(to: false)
| `- warning: main actor-isolated property 'dropService' can not be referenced from a Sendable closure; this is an error in the Swift 6 language mode
72 | return
73 | }
/Users/admin/builder/spi-builder-workspace/Sources/MediaUtilities/DropDelegate/ImageDropDelegate.swift:75:17: warning: main actor-isolated property 'dropService' can not be referenced from a Sendable closure; this is an error in the Swift 6 language mode
11 | @available(iOS 14.0, macOS 11, *)
12 | struct ImageDropDelegate: DropDelegate {
13 | @ObservedObject var dropService: DropDelegateService
| `- note: property declared here
14 | var dropCompleted: (Result<UnifiedImage, Error>) -> Void
15 |
:
73 | }
74 | print("here 10")
75 | dropService.setIsAllowed(to: true)
| `- warning: main actor-isolated property 'dropService' can not be referenced from a Sendable closure; this is an error in the Swift 6 language mode
76 | }
77 | } else {
/Users/admin/builder/spi-builder-workspace/Sources/MediaUtilities/DropDelegate/ImageDropDelegate.swift:109:57: warning: non-sendable type 'any NSSecureCoding' returned by implicitly asynchronous call to nonisolated function cannot cross actor boundary; this is an error in the Swift 6 language mode
107 | #endif
108 | #if os(macOS)
109 | let nsSecureCoding = try await item.loadItem(forTypeIdentifier: UTType.url.identifier, options: nil)
| `- warning: non-sendable type 'any NSSecureCoding' returned by implicitly asynchronous call to nonisolated function cannot cross actor boundary; this is an error in the Swift 6 language mode
110 | if let urlData = nsSecureCoding as? Data {
111 | let url = NSURL(absoluteURLWithDataRepresentation: urlData, relativeTo: nil) as URL
Foundation.NSSecureCoding:1:17: note: protocol 'NSSecureCoding' does not conform to the 'Sendable' protocol
1 | public protocol NSSecureCoding : NSCoding {
| `- note: protocol 'NSSecureCoding' does not conform to the 'Sendable' protocol
2 | static var supportsSecureCoding: Bool { get }
3 | }
/Users/admin/builder/spi-builder-workspace/Sources/MediaUtilities/DropDelegate/ImageDropDelegate.swift:8:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Foundation'
6 | //
7 |
8 | import SwiftUI
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Foundation'
9 | import UniformTypeIdentifiers
10 |
/Users/admin/builder/spi-builder-workspace/Sources/MediaUtilities/DropDelegate/ImageDropDelegate.swift:123:25: warning: main actor-isolated property 'dropCompleted' can not be referenced from a Sendable closure; this is an error in the Swift 6 language mode
12 | struct ImageDropDelegate: DropDelegate {
13 | @ObservedObject var dropService: DropDelegateService
14 | var dropCompleted: (Result<UnifiedImage, Error>) -> Void
| `- note: property declared here
15 |
16 | func dropEntered(info: DropInfo) {
:
121 | item.loadDataRepresentation(forTypeIdentifier: UTType.image.identifier) { data, _ in
122 | guard let data = data else {
123 | dropCompleted(.failure(MediaUtilitiesError.badImage))
| `- warning: main actor-isolated property 'dropCompleted' can not be referenced from a Sendable closure; this is an error in the Swift 6 language mode
124 | return
125 | }
/Users/admin/builder/spi-builder-workspace/Sources/MediaUtilities/DropDelegate/ImageDropDelegate.swift:127:25: warning: main actor-isolated property 'dropCompleted' can not be referenced from a Sendable closure; this is an error in the Swift 6 language mode
12 | struct ImageDropDelegate: DropDelegate {
13 | @ObservedObject var dropService: DropDelegateService
14 | var dropCompleted: (Result<UnifiedImage, Error>) -> Void
| `- note: property declared here
15 |
16 | func dropEntered(info: DropInfo) {
:
125 | }
126 | guard let img = UnifiedImage(data: data) else {
127 | dropCompleted(.failure(MediaUtilitiesError.badImage))
| `- warning: main actor-isolated property 'dropCompleted' can not be referenced from a Sendable closure; this is an error in the Swift 6 language mode
128 | return
129 | }
/Users/admin/builder/spi-builder-workspace/Sources/MediaUtilities/DropDelegate/ImageDropDelegate.swift:130:21: warning: main actor-isolated property 'dropCompleted' can not be referenced from a Sendable closure; this is an error in the Swift 6 language mode
12 | struct ImageDropDelegate: DropDelegate {
13 | @ObservedObject var dropService: DropDelegateService
14 | var dropCompleted: (Result<UnifiedImage, Error>) -> Void
| `- note: property declared here
15 |
16 | func dropEntered(info: DropInfo) {
:
128 | return
129 | }
130 | dropCompleted(.success(img))
| `- warning: main actor-isolated property 'dropCompleted' can not be referenced from a Sendable closure; this is an error in the Swift 6 language mode
131 | }
132 | }
/Users/admin/builder/spi-builder-workspace/Sources/MediaUtilities/DropDelegate/VideoDropDelegate.swift:62:21: warning: main actor-isolated property 'dropService' can not be referenced from a Sendable closure; this is an error in the Swift 6 language mode
20 | @available(iOS 13.4, macOS 10.15, *)
21 | struct VideoDropDelegate: DropDelegate {
22 | @ObservedObject var dropService: DropDelegateService
| `- note: property declared here
23 | var dropCompleted: (Result<URL, Error>) -> Void
24 | @State private var subscriptions: Set<AnyCancellable> = []
:
60 | if asset.isPlayable {
61 | print("Conforms")
62 | dropService.setIsAllowed(to: true)
| `- warning: main actor-isolated property 'dropService' can not be referenced from a Sendable closure; this is an error in the Swift 6 language mode
63 | } else {
64 | print("Does Not CONFORM")
/Users/admin/builder/spi-builder-workspace/Sources/MediaUtilities/DropDelegate/VideoDropDelegate.swift:65:21: warning: main actor-isolated property 'dropService' can not be referenced from a Sendable closure; this is an error in the Swift 6 language mode
20 | @available(iOS 13.4, macOS 10.15, *)
21 | struct VideoDropDelegate: DropDelegate {
22 | @ObservedObject var dropService: DropDelegateService
| `- note: property declared here
23 | var dropCompleted: (Result<URL, Error>) -> Void
24 | @State private var subscriptions: Set<AnyCancellable> = []
:
63 | } else {
64 | print("Does Not CONFORM")
65 | dropService.setIsAllowed(to: false)
| `- warning: main actor-isolated property 'dropService' can not be referenced from a Sendable closure; this is an error in the Swift 6 language mode
66 | }
67 | }
/Users/admin/builder/spi-builder-workspace/Sources/MediaUtilities/DropDelegate/VideoDropDelegate.swift:98:61: warning: non-sendable type 'any NSSecureCoding' returned by implicitly asynchronous call to nonisolated function cannot cross actor boundary; this is an error in the Swift 6 language mode
96 | #endif
97 | #if os(macOS)
98 | let nsSecureCoding = try await itemProvider.loadItem(forTypeIdentifier: DropDelegateService.urlIndentifier, options: nil)
| `- warning: non-sendable type 'any NSSecureCoding' returned by implicitly asynchronous call to nonisolated function cannot cross actor boundary; this is an error in the Swift 6 language mode
99 | guard let urlData = nsSecureCoding as? Data else {
100 | return
Foundation.NSSecureCoding:1:17: note: protocol 'NSSecureCoding' does not conform to the 'Sendable' protocol
1 | public protocol NSSecureCoding : NSCoding {
| `- note: protocol 'NSSecureCoding' does not conform to the 'Sendable' protocol
2 | static var supportsSecureCoding: Bool { get }
3 | }
/Users/admin/builder/spi-builder-workspace/Sources/MediaUtilities/DropDelegate/VideoDropDelegate.swift:8:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Foundation'
6 | //
7 |
8 | import SwiftUI
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Foundation'
9 | import UniformTypeIdentifiers
10 | import AVFoundation
/Users/admin/builder/spi-builder-workspace/Sources/MediaUtilities/DropDelegate/VideoDropDelegate.swift:116:21: warning: main actor-isolated property 'dropCompleted' can not be referenced from a Sendable closure; this is an error in the Swift 6 language mode
21 | struct VideoDropDelegate: DropDelegate {
22 | @ObservedObject var dropService: DropDelegateService
23 | var dropCompleted: (Result<URL, Error>) -> Void
| `- note: property declared here
24 | @State private var subscriptions: Set<AnyCancellable> = []
25 |
:
114 | let progress: Progress = itemProvider.loadFileRepresentation(forTypeIdentifier: DropDelegateService.audioVisualContentIndentifier) { url, err in
115 | guard let url = url, err == nil else {
116 | dropCompleted(.failure(err!))
| `- warning: main actor-isolated property 'dropCompleted' can not be referenced from a Sendable closure; this is an error in the Swift 6 language mode
117 | return
118 | }
/Users/admin/builder/spi-builder-workspace/Sources/MediaUtilities/DropDelegate/VideoDropDelegate.swift:121:25: warning: main actor-isolated property 'dropService' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
20 | @available(iOS 13.4, macOS 10.15, *)
21 | struct VideoDropDelegate: DropDelegate {
22 | @ObservedObject var dropService: DropDelegateService
| `- note: property declared here
23 | var dropCompleted: (Result<URL, Error>) -> Void
24 | @State private var subscriptions: Set<AnyCancellable> = []
:
119 | MediaPicker.copyContents(of: url) { localURL, error in
120 | guard let localURL = localURL, error == nil else {
121 | dropService.setIsCopying(to: false)
| `- warning: main actor-isolated property 'dropService' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
122 | dropCompleted(.failure(error!))
123 | return
/Users/admin/builder/spi-builder-workspace/Sources/MediaUtilities/DropDelegate/VideoDropDelegate.swift:122:25: warning: main actor-isolated property 'dropCompleted' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
21 | struct VideoDropDelegate: DropDelegate {
22 | @ObservedObject var dropService: DropDelegateService
23 | var dropCompleted: (Result<URL, Error>) -> Void
| `- note: property declared here
24 | @State private var subscriptions: Set<AnyCancellable> = []
25 |
:
120 | guard let localURL = localURL, error == nil else {
121 | dropService.setIsCopying(to: false)
122 | dropCompleted(.failure(error!))
| `- warning: main actor-isolated property 'dropCompleted' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
123 | return
124 | }
/Users/admin/builder/spi-builder-workspace/Sources/MediaUtilities/DropDelegate/VideoDropDelegate.swift:126:21: warning: main actor-isolated property 'dropService' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
20 | @available(iOS 13.4, macOS 10.15, *)
21 | struct VideoDropDelegate: DropDelegate {
22 | @ObservedObject var dropService: DropDelegateService
| `- note: property declared here
23 | var dropCompleted: (Result<URL, Error>) -> Void
24 | @State private var subscriptions: Set<AnyCancellable> = []
:
124 | }
125 | print("localURl", localURL)
126 | dropService.setIsCopying(to: false)
| `- warning: main actor-isolated property 'dropService' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
127 | dropCompleted(.success(localURL))
128 | }
/Users/admin/builder/spi-builder-workspace/Sources/MediaUtilities/DropDelegate/VideoDropDelegate.swift:127:21: warning: main actor-isolated property 'dropCompleted' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
21 | struct VideoDropDelegate: DropDelegate {
22 | @ObservedObject var dropService: DropDelegateService
23 | var dropCompleted: (Result<URL, Error>) -> Void
| `- note: property declared here
24 | @State private var subscriptions: Set<AnyCancellable> = []
25 |
:
125 | print("localURl", localURL)
126 | dropService.setIsCopying(to: false)
127 | dropCompleted(.success(localURL))
| `- warning: main actor-isolated property 'dropCompleted' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
128 | }
129 | }
/Users/admin/builder/spi-builder-workspace/Sources/MediaUtilities/MediaPicker/MediaOptions.swift:19:23: warning: static property 'images' is not concurrency-safe because non-'Sendable' type 'MediaTypeOptions' may have shared mutable state; this is an error in the Swift 6 language mode
9 |
10 | @available(iOS 14.0, macOS 11, *)
11 | public struct MediaTypeOptions: OptionSet {
| `- note: consider making struct 'MediaTypeOptions' conform to the 'Sendable' protocol
12 | public let rawValue: Int
13 |
:
17 |
18 | public static let livePhotos = MediaTypeOptions(rawValue: 1 << 0)
19 | public static let images: MediaTypeOptions = [MediaTypeOptions(rawValue: 1 << 1), livePhotos]
| |- warning: static property 'images' is not concurrency-safe because non-'Sendable' type 'MediaTypeOptions' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'images' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
20 | public static let videos = MediaTypeOptions(rawValue: 1 << 2)
21 |
/Users/admin/builder/spi-builder-workspace/Sources/MediaUtilities/MediaPicker/MediaOptions.swift:20:23: warning: static property 'videos' is not concurrency-safe because non-'Sendable' type 'MediaTypeOptions' may have shared mutable state; this is an error in the Swift 6 language mode
9 |
10 | @available(iOS 14.0, macOS 11, *)
11 | public struct MediaTypeOptions: OptionSet {
| `- note: consider making struct 'MediaTypeOptions' conform to the 'Sendable' protocol
12 | public let rawValue: Int
13 |
:
18 | public static let livePhotos = MediaTypeOptions(rawValue: 1 << 0)
19 | public static let images: MediaTypeOptions = [MediaTypeOptions(rawValue: 1 << 1), livePhotos]
20 | public static let videos = MediaTypeOptions(rawValue: 1 << 2)
| |- warning: static property 'videos' is not concurrency-safe because non-'Sendable' type 'MediaTypeOptions' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'videos' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
21 |
22 | /// All media types.
/Users/admin/builder/spi-builder-workspace/Sources/MediaUtilities/Holistic/VideoPicker.swift:181:51: warning: string interpolation produces a debug description for an optional value; did you mean to make this explicit?
179 | switch result {
180 | case let .success(urls):
181 | print("mediaImportComplete URL: \(urls.first)")
| | |- note: use 'String(describing:)' to silence this warning
| | `- note: provide a default value to avoid this warning
| `- warning: string interpolation produces a debug description for an optional value; did you mean to make this explicit?
182 | DispatchQueue.main.async {
183 | pickedVideoURL = urls.first
/Users/admin/builder/spi-builder-workspace/Sources/MediaUtilities/DropDelegate/DropDelegateService.swift:33:13: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
31 | func setIsAllowed(to bool: Bool) {
32 | DispatchQueue.main.async {
33 | self.isAllowed = bool
| |- 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
34 | self.processAttempts()
35 | }
/Users/admin/builder/spi-builder-workspace/Sources/MediaUtilities/DropDelegate/DropDelegateService.swift:40:13: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
38 | func setIsCopying(to bool: Bool) {
39 | DispatchQueue.main.async {
40 | self.isCopyingFile = bool
| |- 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
41 | }
42 | }
[44/47] Compiling MediaUtilities ImageDropDelegate.swift
/Users/admin/builder/spi-builder-workspace/Sources/MediaUtilities/DropDelegate/DropDelegateService.swift:33:13: warning: capture of 'self' with non-sendable type 'DropDelegateService' in a `@Sendable` closure; this is an error in the Swift 6 language mode
10 |
11 | @available(iOS 13.0, macOS 10.15, *)
12 | class DropDelegateService: ObservableObject {
| `- note: class 'DropDelegateService' does not conform to the 'Sendable' protocol
13 | @Published var isActive: Bool = false
14 | @Published var isValidated: Bool = false {
:
31 | func setIsAllowed(to bool: Bool) {
32 | DispatchQueue.main.async {
33 | self.isAllowed = bool
| `- warning: capture of 'self' with non-sendable type 'DropDelegateService' in a `@Sendable` closure; this is an error in the Swift 6 language mode
34 | self.processAttempts()
35 | }
/Users/admin/builder/spi-builder-workspace/Sources/MediaUtilities/DropDelegate/DropDelegateService.swift:40:13: warning: capture of 'self' with non-sendable type 'DropDelegateService' in a `@Sendable` closure; this is an error in the Swift 6 language mode
10 |
11 | @available(iOS 13.0, macOS 10.15, *)
12 | class DropDelegateService: ObservableObject {
| `- note: class 'DropDelegateService' does not conform to the 'Sendable' protocol
13 | @Published var isActive: Bool = false
14 | @Published var isValidated: Bool = false {
:
38 | func setIsCopying(to bool: Bool) {
39 | DispatchQueue.main.async {
40 | self.isCopyingFile = bool
| `- warning: capture of 'self' with non-sendable type 'DropDelegateService' in a `@Sendable` closure; this is an error in the Swift 6 language mode
41 | }
42 | }
/Users/admin/builder/spi-builder-workspace/Sources/MediaUtilities/DropDelegate/ImageDropDelegate.swift:56:21: warning: main actor-isolated property 'dropService' can not be referenced from a Sendable closure; this is an error in the Swift 6 language mode
11 | @available(iOS 14.0, macOS 11, *)
12 | struct ImageDropDelegate: DropDelegate {
13 | @ObservedObject var dropService: DropDelegateService
| `- note: property declared here
14 | var dropCompleted: (Result<UnifiedImage, Error>) -> Void
15 |
:
54 | }
55 | if utType.conforms(to: .image) || utType.conforms(to: .url) || utType.conforms(to: .fileURL) {
56 | dropService.setIsAllowed(to: true)
| `- warning: main actor-isolated property 'dropService' can not be referenced from a Sendable closure; this is an error in the Swift 6 language mode
57 | print("Here 7 11")
58 | } else {
/Users/admin/builder/spi-builder-workspace/Sources/MediaUtilities/DropDelegate/ImageDropDelegate.swift:59:21: warning: main actor-isolated property 'dropService' can not be referenced from a Sendable closure; this is an error in the Swift 6 language mode
11 | @available(iOS 14.0, macOS 11, *)
12 | struct ImageDropDelegate: DropDelegate {
13 | @ObservedObject var dropService: DropDelegateService
| `- note: property declared here
14 | var dropCompleted: (Result<UnifiedImage, Error>) -> Void
15 |
:
57 | print("Here 7 11")
58 | } else {
59 | dropService.setIsAllowed(to: false)
| `- warning: main actor-isolated property 'dropService' can not be referenced from a Sendable closure; this is an error in the Swift 6 language mode
60 | print("Here 7 22")
61 | }
/Users/admin/builder/spi-builder-workspace/Sources/MediaUtilities/DropDelegate/ImageDropDelegate.swift:71:21: warning: main actor-isolated property 'dropService' can not be referenced from a Sendable closure; this is an error in the Swift 6 language mode
11 | @available(iOS 14.0, macOS 11, *)
12 | struct ImageDropDelegate: DropDelegate {
13 | @ObservedObject var dropService: DropDelegateService
| `- note: property declared here
14 | var dropCompleted: (Result<UnifiedImage, Error>) -> Void
15 |
:
69 | let img = UnifiedImage(data: data)
70 | guard img != nil else {
71 | dropService.setIsAllowed(to: false)
| `- warning: main actor-isolated property 'dropService' can not be referenced from a Sendable closure; this is an error in the Swift 6 language mode
72 | return
73 | }
/Users/admin/builder/spi-builder-workspace/Sources/MediaUtilities/DropDelegate/ImageDropDelegate.swift:75:17: warning: main actor-isolated property 'dropService' can not be referenced from a Sendable closure; this is an error in the Swift 6 language mode
11 | @available(iOS 14.0, macOS 11, *)
12 | struct ImageDropDelegate: DropDelegate {
13 | @ObservedObject var dropService: DropDelegateService
| `- note: property declared here
14 | var dropCompleted: (Result<UnifiedImage, Error>) -> Void
15 |
:
73 | }
74 | print("here 10")
75 | dropService.setIsAllowed(to: true)
| `- warning: main actor-isolated property 'dropService' can not be referenced from a Sendable closure; this is an error in the Swift 6 language mode
76 | }
77 | } else {
/Users/admin/builder/spi-builder-workspace/Sources/MediaUtilities/DropDelegate/ImageDropDelegate.swift:109:57: warning: non-sendable type 'any NSSecureCoding' returned by implicitly asynchronous call to nonisolated function cannot cross actor boundary; this is an error in the Swift 6 language mode
107 | #endif
108 | #if os(macOS)
109 | let nsSecureCoding = try await item.loadItem(forTypeIdentifier: UTType.url.identifier, options: nil)
| `- warning: non-sendable type 'any NSSecureCoding' returned by implicitly asynchronous call to nonisolated function cannot cross actor boundary; this is an error in the Swift 6 language mode
110 | if let urlData = nsSecureCoding as? Data {
111 | let url = NSURL(absoluteURLWithDataRepresentation: urlData, relativeTo: nil) as URL
Foundation.NSSecureCoding:1:17: note: protocol 'NSSecureCoding' does not conform to the 'Sendable' protocol
1 | public protocol NSSecureCoding : NSCoding {
| `- note: protocol 'NSSecureCoding' does not conform to the 'Sendable' protocol
2 | static var supportsSecureCoding: Bool { get }
3 | }
/Users/admin/builder/spi-builder-workspace/Sources/MediaUtilities/DropDelegate/ImageDropDelegate.swift:8:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Foundation'
6 | //
7 |
8 | import SwiftUI
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Foundation'
9 | import UniformTypeIdentifiers
10 |
/Users/admin/builder/spi-builder-workspace/Sources/MediaUtilities/DropDelegate/ImageDropDelegate.swift:123:25: warning: main actor-isolated property 'dropCompleted' can not be referenced from a Sendable closure; this is an error in the Swift 6 language mode
12 | struct ImageDropDelegate: DropDelegate {
13 | @ObservedObject var dropService: DropDelegateService
14 | var dropCompleted: (Result<UnifiedImage, Error>) -> Void
| `- note: property declared here
15 |
16 | func dropEntered(info: DropInfo) {
:
121 | item.loadDataRepresentation(forTypeIdentifier: UTType.image.identifier) { data, _ in
122 | guard let data = data else {
123 | dropCompleted(.failure(MediaUtilitiesError.badImage))
| `- warning: main actor-isolated property 'dropCompleted' can not be referenced from a Sendable closure; this is an error in the Swift 6 language mode
124 | return
125 | }
/Users/admin/builder/spi-builder-workspace/Sources/MediaUtilities/DropDelegate/ImageDropDelegate.swift:127:25: warning: main actor-isolated property 'dropCompleted' can not be referenced from a Sendable closure; this is an error in the Swift 6 language mode
12 | struct ImageDropDelegate: DropDelegate {
13 | @ObservedObject var dropService: DropDelegateService
14 | var dropCompleted: (Result<UnifiedImage, Error>) -> Void
| `- note: property declared here
15 |
16 | func dropEntered(info: DropInfo) {
:
125 | }
126 | guard let img = UnifiedImage(data: data) else {
127 | dropCompleted(.failure(MediaUtilitiesError.badImage))
| `- warning: main actor-isolated property 'dropCompleted' can not be referenced from a Sendable closure; this is an error in the Swift 6 language mode
128 | return
129 | }
/Users/admin/builder/spi-builder-workspace/Sources/MediaUtilities/DropDelegate/ImageDropDelegate.swift:130:21: warning: main actor-isolated property 'dropCompleted' can not be referenced from a Sendable closure; this is an error in the Swift 6 language mode
12 | struct ImageDropDelegate: DropDelegate {
13 | @ObservedObject var dropService: DropDelegateService
14 | var dropCompleted: (Result<UnifiedImage, Error>) -> Void
| `- note: property declared here
15 |
16 | func dropEntered(info: DropInfo) {
:
128 | return
129 | }
130 | dropCompleted(.success(img))
| `- warning: main actor-isolated property 'dropCompleted' can not be referenced from a Sendable closure; this is an error in the Swift 6 language mode
131 | }
132 | }
/Users/admin/builder/spi-builder-workspace/Sources/MediaUtilities/DropDelegate/VideoDropDelegate.swift:62:21: warning: main actor-isolated property 'dropService' can not be referenced from a Sendable closure; this is an error in the Swift 6 language mode
20 | @available(iOS 13.4, macOS 10.15, *)
21 | struct VideoDropDelegate: DropDelegate {
22 | @ObservedObject var dropService: DropDelegateService
| `- note: property declared here
23 | var dropCompleted: (Result<URL, Error>) -> Void
24 | @State private var subscriptions: Set<AnyCancellable> = []
:
60 | if asset.isPlayable {
61 | print("Conforms")
62 | dropService.setIsAllowed(to: true)
| `- warning: main actor-isolated property 'dropService' can not be referenced from a Sendable closure; this is an error in the Swift 6 language mode
63 | } else {
64 | print("Does Not CONFORM")
/Users/admin/builder/spi-builder-workspace/Sources/MediaUtilities/DropDelegate/VideoDropDelegate.swift:65:21: warning: main actor-isolated property 'dropService' can not be referenced from a Sendable closure; this is an error in the Swift 6 language mode
20 | @available(iOS 13.4, macOS 10.15, *)
21 | struct VideoDropDelegate: DropDelegate {
22 | @ObservedObject var dropService: DropDelegateService
| `- note: property declared here
23 | var dropCompleted: (Result<URL, Error>) -> Void
24 | @State private var subscriptions: Set<AnyCancellable> = []
:
63 | } else {
64 | print("Does Not CONFORM")
65 | dropService.setIsAllowed(to: false)
| `- warning: main actor-isolated property 'dropService' can not be referenced from a Sendable closure; this is an error in the Swift 6 language mode
66 | }
67 | }
/Users/admin/builder/spi-builder-workspace/Sources/MediaUtilities/DropDelegate/VideoDropDelegate.swift:98:61: warning: non-sendable type 'any NSSecureCoding' returned by implicitly asynchronous call to nonisolated function cannot cross actor boundary; this is an error in the Swift 6 language mode
96 | #endif
97 | #if os(macOS)
98 | let nsSecureCoding = try await itemProvider.loadItem(forTypeIdentifier: DropDelegateService.urlIndentifier, options: nil)
| `- warning: non-sendable type 'any NSSecureCoding' returned by implicitly asynchronous call to nonisolated function cannot cross actor boundary; this is an error in the Swift 6 language mode
99 | guard let urlData = nsSecureCoding as? Data else {
100 | return
Foundation.NSSecureCoding:1:17: note: protocol 'NSSecureCoding' does not conform to the 'Sendable' protocol
1 | public protocol NSSecureCoding : NSCoding {
| `- note: protocol 'NSSecureCoding' does not conform to the 'Sendable' protocol
2 | static var supportsSecureCoding: Bool { get }
3 | }
/Users/admin/builder/spi-builder-workspace/Sources/MediaUtilities/DropDelegate/VideoDropDelegate.swift:8:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Foundation'
6 | //
7 |
8 | import SwiftUI
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Foundation'
9 | import UniformTypeIdentifiers
10 | import AVFoundation
/Users/admin/builder/spi-builder-workspace/Sources/MediaUtilities/DropDelegate/VideoDropDelegate.swift:116:21: warning: main actor-isolated property 'dropCompleted' can not be referenced from a Sendable closure; this is an error in the Swift 6 language mode
21 | struct VideoDropDelegate: DropDelegate {
22 | @ObservedObject var dropService: DropDelegateService
23 | var dropCompleted: (Result<URL, Error>) -> Void
| `- note: property declared here
24 | @State private var subscriptions: Set<AnyCancellable> = []
25 |
:
114 | let progress: Progress = itemProvider.loadFileRepresentation(forTypeIdentifier: DropDelegateService.audioVisualContentIndentifier) { url, err in
115 | guard let url = url, err == nil else {
116 | dropCompleted(.failure(err!))
| `- warning: main actor-isolated property 'dropCompleted' can not be referenced from a Sendable closure; this is an error in the Swift 6 language mode
117 | return
118 | }
/Users/admin/builder/spi-builder-workspace/Sources/MediaUtilities/DropDelegate/VideoDropDelegate.swift:121:25: warning: main actor-isolated property 'dropService' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
20 | @available(iOS 13.4, macOS 10.15, *)
21 | struct VideoDropDelegate: DropDelegate {
22 | @ObservedObject var dropService: DropDelegateService
| `- note: property declared here
23 | var dropCompleted: (Result<URL, Error>) -> Void
24 | @State private var subscriptions: Set<AnyCancellable> = []
:
119 | MediaPicker.copyContents(of: url) { localURL, error in
120 | guard let localURL = localURL, error == nil else {
121 | dropService.setIsCopying(to: false)
| `- warning: main actor-isolated property 'dropService' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
122 | dropCompleted(.failure(error!))
123 | return
/Users/admin/builder/spi-builder-workspace/Sources/MediaUtilities/DropDelegate/VideoDropDelegate.swift:122:25: warning: main actor-isolated property 'dropCompleted' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
21 | struct VideoDropDelegate: DropDelegate {
22 | @ObservedObject var dropService: DropDelegateService
23 | var dropCompleted: (Result<URL, Error>) -> Void
| `- note: property declared here
24 | @State private var subscriptions: Set<AnyCancellable> = []
25 |
:
120 | guard let localURL = localURL, error == nil else {
121 | dropService.setIsCopying(to: false)
122 | dropCompleted(.failure(error!))
| `- warning: main actor-isolated property 'dropCompleted' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
123 | return
124 | }
/Users/admin/builder/spi-builder-workspace/Sources/MediaUtilities/DropDelegate/VideoDropDelegate.swift:126:21: warning: main actor-isolated property 'dropService' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
20 | @available(iOS 13.4, macOS 10.15, *)
21 | struct VideoDropDelegate: DropDelegate {
22 | @ObservedObject var dropService: DropDelegateService
| `- note: property declared here
23 | var dropCompleted: (Result<URL, Error>) -> Void
24 | @State private var subscriptions: Set<AnyCancellable> = []
:
124 | }
125 | print("localURl", localURL)
126 | dropService.setIsCopying(to: false)
| `- warning: main actor-isolated property 'dropService' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
127 | dropCompleted(.success(localURL))
128 | }
/Users/admin/builder/spi-builder-workspace/Sources/MediaUtilities/DropDelegate/VideoDropDelegate.swift:127:21: warning: main actor-isolated property 'dropCompleted' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
21 | struct VideoDropDelegate: DropDelegate {
22 | @ObservedObject var dropService: DropDelegateService
23 | var dropCompleted: (Result<URL, Error>) -> Void
| `- note: property declared here
24 | @State private var subscriptions: Set<AnyCancellable> = []
25 |
:
125 | print("localURl", localURL)
126 | dropService.setIsCopying(to: false)
127 | dropCompleted(.success(localURL))
| `- warning: main actor-isolated property 'dropCompleted' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
128 | }
129 | }
/Users/admin/builder/spi-builder-workspace/Sources/MediaUtilities/MediaPicker/MediaOptions.swift:19:23: warning: static property 'images' is not concurrency-safe because non-'Sendable' type 'MediaTypeOptions' may have shared mutable state; this is an error in the Swift 6 language mode
9 |
10 | @available(iOS 14.0, macOS 11, *)
11 | public struct MediaTypeOptions: OptionSet {
| `- note: consider making struct 'MediaTypeOptions' conform to the 'Sendable' protocol
12 | public let rawValue: Int
13 |
:
17 |
18 | public static let livePhotos = MediaTypeOptions(rawValue: 1 << 0)
19 | public static let images: MediaTypeOptions = [MediaTypeOptions(rawValue: 1 << 1), livePhotos]
| |- warning: static property 'images' is not concurrency-safe because non-'Sendable' type 'MediaTypeOptions' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'images' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
20 | public static let videos = MediaTypeOptions(rawValue: 1 << 2)
21 |
/Users/admin/builder/spi-builder-workspace/Sources/MediaUtilities/MediaPicker/MediaOptions.swift:20:23: warning: static property 'videos' is not concurrency-safe because non-'Sendable' type 'MediaTypeOptions' may have shared mutable state; this is an error in the Swift 6 language mode
9 |
10 | @available(iOS 14.0, macOS 11, *)
11 | public struct MediaTypeOptions: OptionSet {
| `- note: consider making struct 'MediaTypeOptions' conform to the 'Sendable' protocol
12 | public let rawValue: Int
13 |
:
18 | public static let livePhotos = MediaTypeOptions(rawValue: 1 << 0)
19 | public static let images: MediaTypeOptions = [MediaTypeOptions(rawValue: 1 << 1), livePhotos]
20 | public static let videos = MediaTypeOptions(rawValue: 1 << 2)
| |- warning: static property 'videos' is not concurrency-safe because non-'Sendable' type 'MediaTypeOptions' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'videos' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
21 |
22 | /// All media types.
/Users/admin/builder/spi-builder-workspace/Sources/MediaUtilities/Holistic/VideoPicker.swift:181:51: warning: string interpolation produces a debug description for an optional value; did you mean to make this explicit?
179 | switch result {
180 | case let .success(urls):
181 | print("mediaImportComplete URL: \(urls.first)")
| | |- note: use 'String(describing:)' to silence this warning
| | `- note: provide a default value to avoid this warning
| `- warning: string interpolation produces a debug description for an optional value; did you mean to make this explicit?
182 | DispatchQueue.main.async {
183 | pickedVideoURL = urls.first
/Users/admin/builder/spi-builder-workspace/Sources/MediaUtilities/DropDelegate/DropDelegateService.swift:33:13: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
31 | func setIsAllowed(to bool: Bool) {
32 | DispatchQueue.main.async {
33 | self.isAllowed = bool
| |- 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
34 | self.processAttempts()
35 | }
/Users/admin/builder/spi-builder-workspace/Sources/MediaUtilities/DropDelegate/DropDelegateService.swift:40:13: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
38 | func setIsCopying(to bool: Bool) {
39 | DispatchQueue.main.async {
40 | self.isCopyingFile = bool
| |- 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
41 | }
42 | }
[45/47] Compiling MediaUtilities VideoDropDelegate.swift
/Users/admin/builder/spi-builder-workspace/Sources/MediaUtilities/DropDelegate/DropDelegateService.swift:33:13: warning: capture of 'self' with non-sendable type 'DropDelegateService' in a `@Sendable` closure; this is an error in the Swift 6 language mode
10 |
11 | @available(iOS 13.0, macOS 10.15, *)
12 | class DropDelegateService: ObservableObject {
| `- note: class 'DropDelegateService' does not conform to the 'Sendable' protocol
13 | @Published var isActive: Bool = false
14 | @Published var isValidated: Bool = false {
:
31 | func setIsAllowed(to bool: Bool) {
32 | DispatchQueue.main.async {
33 | self.isAllowed = bool
| `- warning: capture of 'self' with non-sendable type 'DropDelegateService' in a `@Sendable` closure; this is an error in the Swift 6 language mode
34 | self.processAttempts()
35 | }
/Users/admin/builder/spi-builder-workspace/Sources/MediaUtilities/DropDelegate/DropDelegateService.swift:40:13: warning: capture of 'self' with non-sendable type 'DropDelegateService' in a `@Sendable` closure; this is an error in the Swift 6 language mode
10 |
11 | @available(iOS 13.0, macOS 10.15, *)
12 | class DropDelegateService: ObservableObject {
| `- note: class 'DropDelegateService' does not conform to the 'Sendable' protocol
13 | @Published var isActive: Bool = false
14 | @Published var isValidated: Bool = false {
:
38 | func setIsCopying(to bool: Bool) {
39 | DispatchQueue.main.async {
40 | self.isCopyingFile = bool
| `- warning: capture of 'self' with non-sendable type 'DropDelegateService' in a `@Sendable` closure; this is an error in the Swift 6 language mode
41 | }
42 | }
/Users/admin/builder/spi-builder-workspace/Sources/MediaUtilities/DropDelegate/ImageDropDelegate.swift:56:21: warning: main actor-isolated property 'dropService' can not be referenced from a Sendable closure; this is an error in the Swift 6 language mode
11 | @available(iOS 14.0, macOS 11, *)
12 | struct ImageDropDelegate: DropDelegate {
13 | @ObservedObject var dropService: DropDelegateService
| `- note: property declared here
14 | var dropCompleted: (Result<UnifiedImage, Error>) -> Void
15 |
:
54 | }
55 | if utType.conforms(to: .image) || utType.conforms(to: .url) || utType.conforms(to: .fileURL) {
56 | dropService.setIsAllowed(to: true)
| `- warning: main actor-isolated property 'dropService' can not be referenced from a Sendable closure; this is an error in the Swift 6 language mode
57 | print("Here 7 11")
58 | } else {
/Users/admin/builder/spi-builder-workspace/Sources/MediaUtilities/DropDelegate/ImageDropDelegate.swift:59:21: warning: main actor-isolated property 'dropService' can not be referenced from a Sendable closure; this is an error in the Swift 6 language mode
11 | @available(iOS 14.0, macOS 11, *)
12 | struct ImageDropDelegate: DropDelegate {
13 | @ObservedObject var dropService: DropDelegateService
| `- note: property declared here
14 | var dropCompleted: (Result<UnifiedImage, Error>) -> Void
15 |
:
57 | print("Here 7 11")
58 | } else {
59 | dropService.setIsAllowed(to: false)
| `- warning: main actor-isolated property 'dropService' can not be referenced from a Sendable closure; this is an error in the Swift 6 language mode
60 | print("Here 7 22")
61 | }
/Users/admin/builder/spi-builder-workspace/Sources/MediaUtilities/DropDelegate/ImageDropDelegate.swift:71:21: warning: main actor-isolated property 'dropService' can not be referenced from a Sendable closure; this is an error in the Swift 6 language mode
11 | @available(iOS 14.0, macOS 11, *)
12 | struct ImageDropDelegate: DropDelegate {
13 | @ObservedObject var dropService: DropDelegateService
| `- note: property declared here
14 | var dropCompleted: (Result<UnifiedImage, Error>) -> Void
15 |
:
69 | let img = UnifiedImage(data: data)
70 | guard img != nil else {
71 | dropService.setIsAllowed(to: false)
| `- warning: main actor-isolated property 'dropService' can not be referenced from a Sendable closure; this is an error in the Swift 6 language mode
72 | return
73 | }
/Users/admin/builder/spi-builder-workspace/Sources/MediaUtilities/DropDelegate/ImageDropDelegate.swift:75:17: warning: main actor-isolated property 'dropService' can not be referenced from a Sendable closure; this is an error in the Swift 6 language mode
11 | @available(iOS 14.0, macOS 11, *)
12 | struct ImageDropDelegate: DropDelegate {
13 | @ObservedObject var dropService: DropDelegateService
| `- note: property declared here
14 | var dropCompleted: (Result<UnifiedImage, Error>) -> Void
15 |
:
73 | }
74 | print("here 10")
75 | dropService.setIsAllowed(to: true)
| `- warning: main actor-isolated property 'dropService' can not be referenced from a Sendable closure; this is an error in the Swift 6 language mode
76 | }
77 | } else {
/Users/admin/builder/spi-builder-workspace/Sources/MediaUtilities/DropDelegate/ImageDropDelegate.swift:109:57: warning: non-sendable type 'any NSSecureCoding' returned by implicitly asynchronous call to nonisolated function cannot cross actor boundary; this is an error in the Swift 6 language mode
107 | #endif
108 | #if os(macOS)
109 | let nsSecureCoding = try await item.loadItem(forTypeIdentifier: UTType.url.identifier, options: nil)
| `- warning: non-sendable type 'any NSSecureCoding' returned by implicitly asynchronous call to nonisolated function cannot cross actor boundary; this is an error in the Swift 6 language mode
110 | if let urlData = nsSecureCoding as? Data {
111 | let url = NSURL(absoluteURLWithDataRepresentation: urlData, relativeTo: nil) as URL
Foundation.NSSecureCoding:1:17: note: protocol 'NSSecureCoding' does not conform to the 'Sendable' protocol
1 | public protocol NSSecureCoding : NSCoding {
| `- note: protocol 'NSSecureCoding' does not conform to the 'Sendable' protocol
2 | static var supportsSecureCoding: Bool { get }
3 | }
/Users/admin/builder/spi-builder-workspace/Sources/MediaUtilities/DropDelegate/ImageDropDelegate.swift:8:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Foundation'
6 | //
7 |
8 | import SwiftUI
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Foundation'
9 | import UniformTypeIdentifiers
10 |
/Users/admin/builder/spi-builder-workspace/Sources/MediaUtilities/DropDelegate/ImageDropDelegate.swift:123:25: warning: main actor-isolated property 'dropCompleted' can not be referenced from a Sendable closure; this is an error in the Swift 6 language mode
12 | struct ImageDropDelegate: DropDelegate {
13 | @ObservedObject var dropService: DropDelegateService
14 | var dropCompleted: (Result<UnifiedImage, Error>) -> Void
| `- note: property declared here
15 |
16 | func dropEntered(info: DropInfo) {
:
121 | item.loadDataRepresentation(forTypeIdentifier: UTType.image.identifier) { data, _ in
122 | guard let data = data else {
123 | dropCompleted(.failure(MediaUtilitiesError.badImage))
| `- warning: main actor-isolated property 'dropCompleted' can not be referenced from a Sendable closure; this is an error in the Swift 6 language mode
124 | return
125 | }
/Users/admin/builder/spi-builder-workspace/Sources/MediaUtilities/DropDelegate/ImageDropDelegate.swift:127:25: warning: main actor-isolated property 'dropCompleted' can not be referenced from a Sendable closure; this is an error in the Swift 6 language mode
12 | struct ImageDropDelegate: DropDelegate {
13 | @ObservedObject var dropService: DropDelegateService
14 | var dropCompleted: (Result<UnifiedImage, Error>) -> Void
| `- note: property declared here
15 |
16 | func dropEntered(info: DropInfo) {
:
125 | }
126 | guard let img = UnifiedImage(data: data) else {
127 | dropCompleted(.failure(MediaUtilitiesError.badImage))
| `- warning: main actor-isolated property 'dropCompleted' can not be referenced from a Sendable closure; this is an error in the Swift 6 language mode
128 | return
129 | }
/Users/admin/builder/spi-builder-workspace/Sources/MediaUtilities/DropDelegate/ImageDropDelegate.swift:130:21: warning: main actor-isolated property 'dropCompleted' can not be referenced from a Sendable closure; this is an error in the Swift 6 language mode
12 | struct ImageDropDelegate: DropDelegate {
13 | @ObservedObject var dropService: DropDelegateService
14 | var dropCompleted: (Result<UnifiedImage, Error>) -> Void
| `- note: property declared here
15 |
16 | func dropEntered(info: DropInfo) {
:
128 | return
129 | }
130 | dropCompleted(.success(img))
| `- warning: main actor-isolated property 'dropCompleted' can not be referenced from a Sendable closure; this is an error in the Swift 6 language mode
131 | }
132 | }
/Users/admin/builder/spi-builder-workspace/Sources/MediaUtilities/DropDelegate/VideoDropDelegate.swift:62:21: warning: main actor-isolated property 'dropService' can not be referenced from a Sendable closure; this is an error in the Swift 6 language mode
20 | @available(iOS 13.4, macOS 10.15, *)
21 | struct VideoDropDelegate: DropDelegate {
22 | @ObservedObject var dropService: DropDelegateService
| `- note: property declared here
23 | var dropCompleted: (Result<URL, Error>) -> Void
24 | @State private var subscriptions: Set<AnyCancellable> = []
:
60 | if asset.isPlayable {
61 | print("Conforms")
62 | dropService.setIsAllowed(to: true)
| `- warning: main actor-isolated property 'dropService' can not be referenced from a Sendable closure; this is an error in the Swift 6 language mode
63 | } else {
64 | print("Does Not CONFORM")
/Users/admin/builder/spi-builder-workspace/Sources/MediaUtilities/DropDelegate/VideoDropDelegate.swift:65:21: warning: main actor-isolated property 'dropService' can not be referenced from a Sendable closure; this is an error in the Swift 6 language mode
20 | @available(iOS 13.4, macOS 10.15, *)
21 | struct VideoDropDelegate: DropDelegate {
22 | @ObservedObject var dropService: DropDelegateService
| `- note: property declared here
23 | var dropCompleted: (Result<URL, Error>) -> Void
24 | @State private var subscriptions: Set<AnyCancellable> = []
:
63 | } else {
64 | print("Does Not CONFORM")
65 | dropService.setIsAllowed(to: false)
| `- warning: main actor-isolated property 'dropService' can not be referenced from a Sendable closure; this is an error in the Swift 6 language mode
66 | }
67 | }
/Users/admin/builder/spi-builder-workspace/Sources/MediaUtilities/DropDelegate/VideoDropDelegate.swift:98:61: warning: non-sendable type 'any NSSecureCoding' returned by implicitly asynchronous call to nonisolated function cannot cross actor boundary; this is an error in the Swift 6 language mode
96 | #endif
97 | #if os(macOS)
98 | let nsSecureCoding = try await itemProvider.loadItem(forTypeIdentifier: DropDelegateService.urlIndentifier, options: nil)
| `- warning: non-sendable type 'any NSSecureCoding' returned by implicitly asynchronous call to nonisolated function cannot cross actor boundary; this is an error in the Swift 6 language mode
99 | guard let urlData = nsSecureCoding as? Data else {
100 | return
Foundation.NSSecureCoding:1:17: note: protocol 'NSSecureCoding' does not conform to the 'Sendable' protocol
1 | public protocol NSSecureCoding : NSCoding {
| `- note: protocol 'NSSecureCoding' does not conform to the 'Sendable' protocol
2 | static var supportsSecureCoding: Bool { get }
3 | }
/Users/admin/builder/spi-builder-workspace/Sources/MediaUtilities/DropDelegate/VideoDropDelegate.swift:8:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Foundation'
6 | //
7 |
8 | import SwiftUI
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Foundation'
9 | import UniformTypeIdentifiers
10 | import AVFoundation
/Users/admin/builder/spi-builder-workspace/Sources/MediaUtilities/DropDelegate/VideoDropDelegate.swift:116:21: warning: main actor-isolated property 'dropCompleted' can not be referenced from a Sendable closure; this is an error in the Swift 6 language mode
21 | struct VideoDropDelegate: DropDelegate {
22 | @ObservedObject var dropService: DropDelegateService
23 | var dropCompleted: (Result<URL, Error>) -> Void
| `- note: property declared here
24 | @State private var subscriptions: Set<AnyCancellable> = []
25 |
:
114 | let progress: Progress = itemProvider.loadFileRepresentation(forTypeIdentifier: DropDelegateService.audioVisualContentIndentifier) { url, err in
115 | guard let url = url, err == nil else {
116 | dropCompleted(.failure(err!))
| `- warning: main actor-isolated property 'dropCompleted' can not be referenced from a Sendable closure; this is an error in the Swift 6 language mode
117 | return
118 | }
/Users/admin/builder/spi-builder-workspace/Sources/MediaUtilities/DropDelegate/VideoDropDelegate.swift:121:25: warning: main actor-isolated property 'dropService' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
20 | @available(iOS 13.4, macOS 10.15, *)
21 | struct VideoDropDelegate: DropDelegate {
22 | @ObservedObject var dropService: DropDelegateService
| `- note: property declared here
23 | var dropCompleted: (Result<URL, Error>) -> Void
24 | @State private var subscriptions: Set<AnyCancellable> = []
:
119 | MediaPicker.copyContents(of: url) { localURL, error in
120 | guard let localURL = localURL, error == nil else {
121 | dropService.setIsCopying(to: false)
| `- warning: main actor-isolated property 'dropService' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
122 | dropCompleted(.failure(error!))
123 | return
/Users/admin/builder/spi-builder-workspace/Sources/MediaUtilities/DropDelegate/VideoDropDelegate.swift:122:25: warning: main actor-isolated property 'dropCompleted' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
21 | struct VideoDropDelegate: DropDelegate {
22 | @ObservedObject var dropService: DropDelegateService
23 | var dropCompleted: (Result<URL, Error>) -> Void
| `- note: property declared here
24 | @State private var subscriptions: Set<AnyCancellable> = []
25 |
:
120 | guard let localURL = localURL, error == nil else {
121 | dropService.setIsCopying(to: false)
122 | dropCompleted(.failure(error!))
| `- warning: main actor-isolated property 'dropCompleted' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
123 | return
124 | }
/Users/admin/builder/spi-builder-workspace/Sources/MediaUtilities/DropDelegate/VideoDropDelegate.swift:126:21: warning: main actor-isolated property 'dropService' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
20 | @available(iOS 13.4, macOS 10.15, *)
21 | struct VideoDropDelegate: DropDelegate {
22 | @ObservedObject var dropService: DropDelegateService
| `- note: property declared here
23 | var dropCompleted: (Result<URL, Error>) -> Void
24 | @State private var subscriptions: Set<AnyCancellable> = []
:
124 | }
125 | print("localURl", localURL)
126 | dropService.setIsCopying(to: false)
| `- warning: main actor-isolated property 'dropService' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
127 | dropCompleted(.success(localURL))
128 | }
/Users/admin/builder/spi-builder-workspace/Sources/MediaUtilities/DropDelegate/VideoDropDelegate.swift:127:21: warning: main actor-isolated property 'dropCompleted' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
21 | struct VideoDropDelegate: DropDelegate {
22 | @ObservedObject var dropService: DropDelegateService
23 | var dropCompleted: (Result<URL, Error>) -> Void
| `- note: property declared here
24 | @State private var subscriptions: Set<AnyCancellable> = []
25 |
:
125 | print("localURl", localURL)
126 | dropService.setIsCopying(to: false)
127 | dropCompleted(.success(localURL))
| `- warning: main actor-isolated property 'dropCompleted' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
128 | }
129 | }
/Users/admin/builder/spi-builder-workspace/Sources/MediaUtilities/MediaPicker/MediaOptions.swift:19:23: warning: static property 'images' is not concurrency-safe because non-'Sendable' type 'MediaTypeOptions' may have shared mutable state; this is an error in the Swift 6 language mode
9 |
10 | @available(iOS 14.0, macOS 11, *)
11 | public struct MediaTypeOptions: OptionSet {
| `- note: consider making struct 'MediaTypeOptions' conform to the 'Sendable' protocol
12 | public let rawValue: Int
13 |
:
17 |
18 | public static let livePhotos = MediaTypeOptions(rawValue: 1 << 0)
19 | public static let images: MediaTypeOptions = [MediaTypeOptions(rawValue: 1 << 1), livePhotos]
| |- warning: static property 'images' is not concurrency-safe because non-'Sendable' type 'MediaTypeOptions' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'images' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
20 | public static let videos = MediaTypeOptions(rawValue: 1 << 2)
21 |
/Users/admin/builder/spi-builder-workspace/Sources/MediaUtilities/MediaPicker/MediaOptions.swift:20:23: warning: static property 'videos' is not concurrency-safe because non-'Sendable' type 'MediaTypeOptions' may have shared mutable state; this is an error in the Swift 6 language mode
9 |
10 | @available(iOS 14.0, macOS 11, *)
11 | public struct MediaTypeOptions: OptionSet {
| `- note: consider making struct 'MediaTypeOptions' conform to the 'Sendable' protocol
12 | public let rawValue: Int
13 |
:
18 | public static let livePhotos = MediaTypeOptions(rawValue: 1 << 0)
19 | public static let images: MediaTypeOptions = [MediaTypeOptions(rawValue: 1 << 1), livePhotos]
20 | public static let videos = MediaTypeOptions(rawValue: 1 << 2)
| |- warning: static property 'videos' is not concurrency-safe because non-'Sendable' type 'MediaTypeOptions' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'videos' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
21 |
22 | /// All media types.
/Users/admin/builder/spi-builder-workspace/Sources/MediaUtilities/Holistic/VideoPicker.swift:181:51: warning: string interpolation produces a debug description for an optional value; did you mean to make this explicit?
179 | switch result {
180 | case let .success(urls):
181 | print("mediaImportComplete URL: \(urls.first)")
| | |- note: use 'String(describing:)' to silence this warning
| | `- note: provide a default value to avoid this warning
| `- warning: string interpolation produces a debug description for an optional value; did you mean to make this explicit?
182 | DispatchQueue.main.async {
183 | pickedVideoURL = urls.first
/Users/admin/builder/spi-builder-workspace/Sources/MediaUtilities/DropDelegate/DropDelegateService.swift:33:13: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
31 | func setIsAllowed(to bool: Bool) {
32 | DispatchQueue.main.async {
33 | self.isAllowed = bool
| |- 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
34 | self.processAttempts()
35 | }
/Users/admin/builder/spi-builder-workspace/Sources/MediaUtilities/DropDelegate/DropDelegateService.swift:40:13: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
38 | func setIsCopying(to bool: Bool) {
39 | DispatchQueue.main.async {
40 | self.isCopyingFile = bool
| |- 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
41 | }
42 | }
[46/47] Compiling MediaUtilities ImagePicker.swift
/Users/admin/builder/spi-builder-workspace/Sources/MediaUtilities/DropDelegate/DropDelegateService.swift:33:13: warning: capture of 'self' with non-sendable type 'DropDelegateService' in a `@Sendable` closure; this is an error in the Swift 6 language mode
10 |
11 | @available(iOS 13.0, macOS 10.15, *)
12 | class DropDelegateService: ObservableObject {
| `- note: class 'DropDelegateService' does not conform to the 'Sendable' protocol
13 | @Published var isActive: Bool = false
14 | @Published var isValidated: Bool = false {
:
31 | func setIsAllowed(to bool: Bool) {
32 | DispatchQueue.main.async {
33 | self.isAllowed = bool
| `- warning: capture of 'self' with non-sendable type 'DropDelegateService' in a `@Sendable` closure; this is an error in the Swift 6 language mode
34 | self.processAttempts()
35 | }
/Users/admin/builder/spi-builder-workspace/Sources/MediaUtilities/DropDelegate/DropDelegateService.swift:40:13: warning: capture of 'self' with non-sendable type 'DropDelegateService' in a `@Sendable` closure; this is an error in the Swift 6 language mode
10 |
11 | @available(iOS 13.0, macOS 10.15, *)
12 | class DropDelegateService: ObservableObject {
| `- note: class 'DropDelegateService' does not conform to the 'Sendable' protocol
13 | @Published var isActive: Bool = false
14 | @Published var isValidated: Bool = false {
:
38 | func setIsCopying(to bool: Bool) {
39 | DispatchQueue.main.async {
40 | self.isCopyingFile = bool
| `- warning: capture of 'self' with non-sendable type 'DropDelegateService' in a `@Sendable` closure; this is an error in the Swift 6 language mode
41 | }
42 | }
/Users/admin/builder/spi-builder-workspace/Sources/MediaUtilities/DropDelegate/ImageDropDelegate.swift:56:21: warning: main actor-isolated property 'dropService' can not be referenced from a Sendable closure; this is an error in the Swift 6 language mode
11 | @available(iOS 14.0, macOS 11, *)
12 | struct ImageDropDelegate: DropDelegate {
13 | @ObservedObject var dropService: DropDelegateService
| `- note: property declared here
14 | var dropCompleted: (Result<UnifiedImage, Error>) -> Void
15 |
:
54 | }
55 | if utType.conforms(to: .image) || utType.conforms(to: .url) || utType.conforms(to: .fileURL) {
56 | dropService.setIsAllowed(to: true)
| `- warning: main actor-isolated property 'dropService' can not be referenced from a Sendable closure; this is an error in the Swift 6 language mode
57 | print("Here 7 11")
58 | } else {
/Users/admin/builder/spi-builder-workspace/Sources/MediaUtilities/DropDelegate/ImageDropDelegate.swift:59:21: warning: main actor-isolated property 'dropService' can not be referenced from a Sendable closure; this is an error in the Swift 6 language mode
11 | @available(iOS 14.0, macOS 11, *)
12 | struct ImageDropDelegate: DropDelegate {
13 | @ObservedObject var dropService: DropDelegateService
| `- note: property declared here
14 | var dropCompleted: (Result<UnifiedImage, Error>) -> Void
15 |
:
57 | print("Here 7 11")
58 | } else {
59 | dropService.setIsAllowed(to: false)
| `- warning: main actor-isolated property 'dropService' can not be referenced from a Sendable closure; this is an error in the Swift 6 language mode
60 | print("Here 7 22")
61 | }
/Users/admin/builder/spi-builder-workspace/Sources/MediaUtilities/DropDelegate/ImageDropDelegate.swift:71:21: warning: main actor-isolated property 'dropService' can not be referenced from a Sendable closure; this is an error in the Swift 6 language mode
11 | @available(iOS 14.0, macOS 11, *)
12 | struct ImageDropDelegate: DropDelegate {
13 | @ObservedObject var dropService: DropDelegateService
| `- note: property declared here
14 | var dropCompleted: (Result<UnifiedImage, Error>) -> Void
15 |
:
69 | let img = UnifiedImage(data: data)
70 | guard img != nil else {
71 | dropService.setIsAllowed(to: false)
| `- warning: main actor-isolated property 'dropService' can not be referenced from a Sendable closure; this is an error in the Swift 6 language mode
72 | return
73 | }
/Users/admin/builder/spi-builder-workspace/Sources/MediaUtilities/DropDelegate/ImageDropDelegate.swift:75:17: warning: main actor-isolated property 'dropService' can not be referenced from a Sendable closure; this is an error in the Swift 6 language mode
11 | @available(iOS 14.0, macOS 11, *)
12 | struct ImageDropDelegate: DropDelegate {
13 | @ObservedObject var dropService: DropDelegateService
| `- note: property declared here
14 | var dropCompleted: (Result<UnifiedImage, Error>) -> Void
15 |
:
73 | }
74 | print("here 10")
75 | dropService.setIsAllowed(to: true)
| `- warning: main actor-isolated property 'dropService' can not be referenced from a Sendable closure; this is an error in the Swift 6 language mode
76 | }
77 | } else {
/Users/admin/builder/spi-builder-workspace/Sources/MediaUtilities/DropDelegate/ImageDropDelegate.swift:109:57: warning: non-sendable type 'any NSSecureCoding' returned by implicitly asynchronous call to nonisolated function cannot cross actor boundary; this is an error in the Swift 6 language mode
107 | #endif
108 | #if os(macOS)
109 | let nsSecureCoding = try await item.loadItem(forTypeIdentifier: UTType.url.identifier, options: nil)
| `- warning: non-sendable type 'any NSSecureCoding' returned by implicitly asynchronous call to nonisolated function cannot cross actor boundary; this is an error in the Swift 6 language mode
110 | if let urlData = nsSecureCoding as? Data {
111 | let url = NSURL(absoluteURLWithDataRepresentation: urlData, relativeTo: nil) as URL
Foundation.NSSecureCoding:1:17: note: protocol 'NSSecureCoding' does not conform to the 'Sendable' protocol
1 | public protocol NSSecureCoding : NSCoding {
| `- note: protocol 'NSSecureCoding' does not conform to the 'Sendable' protocol
2 | static var supportsSecureCoding: Bool { get }
3 | }
/Users/admin/builder/spi-builder-workspace/Sources/MediaUtilities/DropDelegate/ImageDropDelegate.swift:8:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Foundation'
6 | //
7 |
8 | import SwiftUI
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Foundation'
9 | import UniformTypeIdentifiers
10 |
/Users/admin/builder/spi-builder-workspace/Sources/MediaUtilities/DropDelegate/ImageDropDelegate.swift:123:25: warning: main actor-isolated property 'dropCompleted' can not be referenced from a Sendable closure; this is an error in the Swift 6 language mode
12 | struct ImageDropDelegate: DropDelegate {
13 | @ObservedObject var dropService: DropDelegateService
14 | var dropCompleted: (Result<UnifiedImage, Error>) -> Void
| `- note: property declared here
15 |
16 | func dropEntered(info: DropInfo) {
:
121 | item.loadDataRepresentation(forTypeIdentifier: UTType.image.identifier) { data, _ in
122 | guard let data = data else {
123 | dropCompleted(.failure(MediaUtilitiesError.badImage))
| `- warning: main actor-isolated property 'dropCompleted' can not be referenced from a Sendable closure; this is an error in the Swift 6 language mode
124 | return
125 | }
/Users/admin/builder/spi-builder-workspace/Sources/MediaUtilities/DropDelegate/ImageDropDelegate.swift:127:25: warning: main actor-isolated property 'dropCompleted' can not be referenced from a Sendable closure; this is an error in the Swift 6 language mode
12 | struct ImageDropDelegate: DropDelegate {
13 | @ObservedObject var dropService: DropDelegateService
14 | var dropCompleted: (Result<UnifiedImage, Error>) -> Void
| `- note: property declared here
15 |
16 | func dropEntered(info: DropInfo) {
:
125 | }
126 | guard let img = UnifiedImage(data: data) else {
127 | dropCompleted(.failure(MediaUtilitiesError.badImage))
| `- warning: main actor-isolated property 'dropCompleted' can not be referenced from a Sendable closure; this is an error in the Swift 6 language mode
128 | return
129 | }
/Users/admin/builder/spi-builder-workspace/Sources/MediaUtilities/DropDelegate/ImageDropDelegate.swift:130:21: warning: main actor-isolated property 'dropCompleted' can not be referenced from a Sendable closure; this is an error in the Swift 6 language mode
12 | struct ImageDropDelegate: DropDelegate {
13 | @ObservedObject var dropService: DropDelegateService
14 | var dropCompleted: (Result<UnifiedImage, Error>) -> Void
| `- note: property declared here
15 |
16 | func dropEntered(info: DropInfo) {
:
128 | return
129 | }
130 | dropCompleted(.success(img))
| `- warning: main actor-isolated property 'dropCompleted' can not be referenced from a Sendable closure; this is an error in the Swift 6 language mode
131 | }
132 | }
/Users/admin/builder/spi-builder-workspace/Sources/MediaUtilities/DropDelegate/VideoDropDelegate.swift:62:21: warning: main actor-isolated property 'dropService' can not be referenced from a Sendable closure; this is an error in the Swift 6 language mode
20 | @available(iOS 13.4, macOS 10.15, *)
21 | struct VideoDropDelegate: DropDelegate {
22 | @ObservedObject var dropService: DropDelegateService
| `- note: property declared here
23 | var dropCompleted: (Result<URL, Error>) -> Void
24 | @State private var subscriptions: Set<AnyCancellable> = []
:
60 | if asset.isPlayable {
61 | print("Conforms")
62 | dropService.setIsAllowed(to: true)
| `- warning: main actor-isolated property 'dropService' can not be referenced from a Sendable closure; this is an error in the Swift 6 language mode
63 | } else {
64 | print("Does Not CONFORM")
/Users/admin/builder/spi-builder-workspace/Sources/MediaUtilities/DropDelegate/VideoDropDelegate.swift:65:21: warning: main actor-isolated property 'dropService' can not be referenced from a Sendable closure; this is an error in the Swift 6 language mode
20 | @available(iOS 13.4, macOS 10.15, *)
21 | struct VideoDropDelegate: DropDelegate {
22 | @ObservedObject var dropService: DropDelegateService
| `- note: property declared here
23 | var dropCompleted: (Result<URL, Error>) -> Void
24 | @State private var subscriptions: Set<AnyCancellable> = []
:
63 | } else {
64 | print("Does Not CONFORM")
65 | dropService.setIsAllowed(to: false)
| `- warning: main actor-isolated property 'dropService' can not be referenced from a Sendable closure; this is an error in the Swift 6 language mode
66 | }
67 | }
/Users/admin/builder/spi-builder-workspace/Sources/MediaUtilities/DropDelegate/VideoDropDelegate.swift:98:61: warning: non-sendable type 'any NSSecureCoding' returned by implicitly asynchronous call to nonisolated function cannot cross actor boundary; this is an error in the Swift 6 language mode
96 | #endif
97 | #if os(macOS)
98 | let nsSecureCoding = try await itemProvider.loadItem(forTypeIdentifier: DropDelegateService.urlIndentifier, options: nil)
| `- warning: non-sendable type 'any NSSecureCoding' returned by implicitly asynchronous call to nonisolated function cannot cross actor boundary; this is an error in the Swift 6 language mode
99 | guard let urlData = nsSecureCoding as? Data else {
100 | return
Foundation.NSSecureCoding:1:17: note: protocol 'NSSecureCoding' does not conform to the 'Sendable' protocol
1 | public protocol NSSecureCoding : NSCoding {
| `- note: protocol 'NSSecureCoding' does not conform to the 'Sendable' protocol
2 | static var supportsSecureCoding: Bool { get }
3 | }
/Users/admin/builder/spi-builder-workspace/Sources/MediaUtilities/DropDelegate/VideoDropDelegate.swift:8:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Foundation'
6 | //
7 |
8 | import SwiftUI
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Foundation'
9 | import UniformTypeIdentifiers
10 | import AVFoundation
/Users/admin/builder/spi-builder-workspace/Sources/MediaUtilities/DropDelegate/VideoDropDelegate.swift:116:21: warning: main actor-isolated property 'dropCompleted' can not be referenced from a Sendable closure; this is an error in the Swift 6 language mode
21 | struct VideoDropDelegate: DropDelegate {
22 | @ObservedObject var dropService: DropDelegateService
23 | var dropCompleted: (Result<URL, Error>) -> Void
| `- note: property declared here
24 | @State private var subscriptions: Set<AnyCancellable> = []
25 |
:
114 | let progress: Progress = itemProvider.loadFileRepresentation(forTypeIdentifier: DropDelegateService.audioVisualContentIndentifier) { url, err in
115 | guard let url = url, err == nil else {
116 | dropCompleted(.failure(err!))
| `- warning: main actor-isolated property 'dropCompleted' can not be referenced from a Sendable closure; this is an error in the Swift 6 language mode
117 | return
118 | }
/Users/admin/builder/spi-builder-workspace/Sources/MediaUtilities/DropDelegate/VideoDropDelegate.swift:121:25: warning: main actor-isolated property 'dropService' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
20 | @available(iOS 13.4, macOS 10.15, *)
21 | struct VideoDropDelegate: DropDelegate {
22 | @ObservedObject var dropService: DropDelegateService
| `- note: property declared here
23 | var dropCompleted: (Result<URL, Error>) -> Void
24 | @State private var subscriptions: Set<AnyCancellable> = []
:
119 | MediaPicker.copyContents(of: url) { localURL, error in
120 | guard let localURL = localURL, error == nil else {
121 | dropService.setIsCopying(to: false)
| `- warning: main actor-isolated property 'dropService' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
122 | dropCompleted(.failure(error!))
123 | return
/Users/admin/builder/spi-builder-workspace/Sources/MediaUtilities/DropDelegate/VideoDropDelegate.swift:122:25: warning: main actor-isolated property 'dropCompleted' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
21 | struct VideoDropDelegate: DropDelegate {
22 | @ObservedObject var dropService: DropDelegateService
23 | var dropCompleted: (Result<URL, Error>) -> Void
| `- note: property declared here
24 | @State private var subscriptions: Set<AnyCancellable> = []
25 |
:
120 | guard let localURL = localURL, error == nil else {
121 | dropService.setIsCopying(to: false)
122 | dropCompleted(.failure(error!))
| `- warning: main actor-isolated property 'dropCompleted' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
123 | return
124 | }
/Users/admin/builder/spi-builder-workspace/Sources/MediaUtilities/DropDelegate/VideoDropDelegate.swift:126:21: warning: main actor-isolated property 'dropService' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
20 | @available(iOS 13.4, macOS 10.15, *)
21 | struct VideoDropDelegate: DropDelegate {
22 | @ObservedObject var dropService: DropDelegateService
| `- note: property declared here
23 | var dropCompleted: (Result<URL, Error>) -> Void
24 | @State private var subscriptions: Set<AnyCancellable> = []
:
124 | }
125 | print("localURl", localURL)
126 | dropService.setIsCopying(to: false)
| `- warning: main actor-isolated property 'dropService' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
127 | dropCompleted(.success(localURL))
128 | }
/Users/admin/builder/spi-builder-workspace/Sources/MediaUtilities/DropDelegate/VideoDropDelegate.swift:127:21: warning: main actor-isolated property 'dropCompleted' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
21 | struct VideoDropDelegate: DropDelegate {
22 | @ObservedObject var dropService: DropDelegateService
23 | var dropCompleted: (Result<URL, Error>) -> Void
| `- note: property declared here
24 | @State private var subscriptions: Set<AnyCancellable> = []
25 |
:
125 | print("localURl", localURL)
126 | dropService.setIsCopying(to: false)
127 | dropCompleted(.success(localURL))
| `- warning: main actor-isolated property 'dropCompleted' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
128 | }
129 | }
/Users/admin/builder/spi-builder-workspace/Sources/MediaUtilities/MediaPicker/MediaOptions.swift:19:23: warning: static property 'images' is not concurrency-safe because non-'Sendable' type 'MediaTypeOptions' may have shared mutable state; this is an error in the Swift 6 language mode
9 |
10 | @available(iOS 14.0, macOS 11, *)
11 | public struct MediaTypeOptions: OptionSet {
| `- note: consider making struct 'MediaTypeOptions' conform to the 'Sendable' protocol
12 | public let rawValue: Int
13 |
:
17 |
18 | public static let livePhotos = MediaTypeOptions(rawValue: 1 << 0)
19 | public static let images: MediaTypeOptions = [MediaTypeOptions(rawValue: 1 << 1), livePhotos]
| |- warning: static property 'images' is not concurrency-safe because non-'Sendable' type 'MediaTypeOptions' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'images' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
20 | public static let videos = MediaTypeOptions(rawValue: 1 << 2)
21 |
/Users/admin/builder/spi-builder-workspace/Sources/MediaUtilities/MediaPicker/MediaOptions.swift:20:23: warning: static property 'videos' is not concurrency-safe because non-'Sendable' type 'MediaTypeOptions' may have shared mutable state; this is an error in the Swift 6 language mode
9 |
10 | @available(iOS 14.0, macOS 11, *)
11 | public struct MediaTypeOptions: OptionSet {
| `- note: consider making struct 'MediaTypeOptions' conform to the 'Sendable' protocol
12 | public let rawValue: Int
13 |
:
18 | public static let livePhotos = MediaTypeOptions(rawValue: 1 << 0)
19 | public static let images: MediaTypeOptions = [MediaTypeOptions(rawValue: 1 << 1), livePhotos]
20 | public static let videos = MediaTypeOptions(rawValue: 1 << 2)
| |- warning: static property 'videos' is not concurrency-safe because non-'Sendable' type 'MediaTypeOptions' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'videos' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
21 |
22 | /// All media types.
/Users/admin/builder/spi-builder-workspace/Sources/MediaUtilities/Holistic/VideoPicker.swift:181:51: warning: string interpolation produces a debug description for an optional value; did you mean to make this explicit?
179 | switch result {
180 | case let .success(urls):
181 | print("mediaImportComplete URL: \(urls.first)")
| | |- note: use 'String(describing:)' to silence this warning
| | `- note: provide a default value to avoid this warning
| `- warning: string interpolation produces a debug description for an optional value; did you mean to make this explicit?
182 | DispatchQueue.main.async {
183 | pickedVideoURL = urls.first
/Users/admin/builder/spi-builder-workspace/Sources/MediaUtilities/DropDelegate/DropDelegateService.swift:33:13: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
31 | func setIsAllowed(to bool: Bool) {
32 | DispatchQueue.main.async {
33 | self.isAllowed = bool
| |- 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
34 | self.processAttempts()
35 | }
/Users/admin/builder/spi-builder-workspace/Sources/MediaUtilities/DropDelegate/DropDelegateService.swift:40:13: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
38 | func setIsCopying(to bool: Bool) {
39 | DispatchQueue.main.async {
40 | self.isCopyingFile = bool
| |- 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
41 | }
42 | }
[47/47] Compiling MediaUtilities VideoPicker.swift
/Users/admin/builder/spi-builder-workspace/Sources/MediaUtilities/DropDelegate/DropDelegateService.swift:33:13: warning: capture of 'self' with non-sendable type 'DropDelegateService' in a `@Sendable` closure; this is an error in the Swift 6 language mode
10 |
11 | @available(iOS 13.0, macOS 10.15, *)
12 | class DropDelegateService: ObservableObject {
| `- note: class 'DropDelegateService' does not conform to the 'Sendable' protocol
13 | @Published var isActive: Bool = false
14 | @Published var isValidated: Bool = false {
:
31 | func setIsAllowed(to bool: Bool) {
32 | DispatchQueue.main.async {
33 | self.isAllowed = bool
| `- warning: capture of 'self' with non-sendable type 'DropDelegateService' in a `@Sendable` closure; this is an error in the Swift 6 language mode
34 | self.processAttempts()
35 | }
/Users/admin/builder/spi-builder-workspace/Sources/MediaUtilities/DropDelegate/DropDelegateService.swift:40:13: warning: capture of 'self' with non-sendable type 'DropDelegateService' in a `@Sendable` closure; this is an error in the Swift 6 language mode
10 |
11 | @available(iOS 13.0, macOS 10.15, *)
12 | class DropDelegateService: ObservableObject {
| `- note: class 'DropDelegateService' does not conform to the 'Sendable' protocol
13 | @Published var isActive: Bool = false
14 | @Published var isValidated: Bool = false {
:
38 | func setIsCopying(to bool: Bool) {
39 | DispatchQueue.main.async {
40 | self.isCopyingFile = bool
| `- warning: capture of 'self' with non-sendable type 'DropDelegateService' in a `@Sendable` closure; this is an error in the Swift 6 language mode
41 | }
42 | }
/Users/admin/builder/spi-builder-workspace/Sources/MediaUtilities/DropDelegate/ImageDropDelegate.swift:56:21: warning: main actor-isolated property 'dropService' can not be referenced from a Sendable closure; this is an error in the Swift 6 language mode
11 | @available(iOS 14.0, macOS 11, *)
12 | struct ImageDropDelegate: DropDelegate {
13 | @ObservedObject var dropService: DropDelegateService
| `- note: property declared here
14 | var dropCompleted: (Result<UnifiedImage, Error>) -> Void
15 |
:
54 | }
55 | if utType.conforms(to: .image) || utType.conforms(to: .url) || utType.conforms(to: .fileURL) {
56 | dropService.setIsAllowed(to: true)
| `- warning: main actor-isolated property 'dropService' can not be referenced from a Sendable closure; this is an error in the Swift 6 language mode
57 | print("Here 7 11")
58 | } else {
/Users/admin/builder/spi-builder-workspace/Sources/MediaUtilities/DropDelegate/ImageDropDelegate.swift:59:21: warning: main actor-isolated property 'dropService' can not be referenced from a Sendable closure; this is an error in the Swift 6 language mode
11 | @available(iOS 14.0, macOS 11, *)
12 | struct ImageDropDelegate: DropDelegate {
13 | @ObservedObject var dropService: DropDelegateService
| `- note: property declared here
14 | var dropCompleted: (Result<UnifiedImage, Error>) -> Void
15 |
:
57 | print("Here 7 11")
58 | } else {
59 | dropService.setIsAllowed(to: false)
| `- warning: main actor-isolated property 'dropService' can not be referenced from a Sendable closure; this is an error in the Swift 6 language mode
60 | print("Here 7 22")
61 | }
/Users/admin/builder/spi-builder-workspace/Sources/MediaUtilities/DropDelegate/ImageDropDelegate.swift:71:21: warning: main actor-isolated property 'dropService' can not be referenced from a Sendable closure; this is an error in the Swift 6 language mode
11 | @available(iOS 14.0, macOS 11, *)
12 | struct ImageDropDelegate: DropDelegate {
13 | @ObservedObject var dropService: DropDelegateService
| `- note: property declared here
14 | var dropCompleted: (Result<UnifiedImage, Error>) -> Void
15 |
:
69 | let img = UnifiedImage(data: data)
70 | guard img != nil else {
71 | dropService.setIsAllowed(to: false)
| `- warning: main actor-isolated property 'dropService' can not be referenced from a Sendable closure; this is an error in the Swift 6 language mode
72 | return
73 | }
/Users/admin/builder/spi-builder-workspace/Sources/MediaUtilities/DropDelegate/ImageDropDelegate.swift:75:17: warning: main actor-isolated property 'dropService' can not be referenced from a Sendable closure; this is an error in the Swift 6 language mode
11 | @available(iOS 14.0, macOS 11, *)
12 | struct ImageDropDelegate: DropDelegate {
13 | @ObservedObject var dropService: DropDelegateService
| `- note: property declared here
14 | var dropCompleted: (Result<UnifiedImage, Error>) -> Void
15 |
:
73 | }
74 | print("here 10")
75 | dropService.setIsAllowed(to: true)
| `- warning: main actor-isolated property 'dropService' can not be referenced from a Sendable closure; this is an error in the Swift 6 language mode
76 | }
77 | } else {
/Users/admin/builder/spi-builder-workspace/Sources/MediaUtilities/DropDelegate/ImageDropDelegate.swift:109:57: warning: non-sendable type 'any NSSecureCoding' returned by implicitly asynchronous call to nonisolated function cannot cross actor boundary; this is an error in the Swift 6 language mode
107 | #endif
108 | #if os(macOS)
109 | let nsSecureCoding = try await item.loadItem(forTypeIdentifier: UTType.url.identifier, options: nil)
| `- warning: non-sendable type 'any NSSecureCoding' returned by implicitly asynchronous call to nonisolated function cannot cross actor boundary; this is an error in the Swift 6 language mode
110 | if let urlData = nsSecureCoding as? Data {
111 | let url = NSURL(absoluteURLWithDataRepresentation: urlData, relativeTo: nil) as URL
Foundation.NSSecureCoding:1:17: note: protocol 'NSSecureCoding' does not conform to the 'Sendable' protocol
1 | public protocol NSSecureCoding : NSCoding {
| `- note: protocol 'NSSecureCoding' does not conform to the 'Sendable' protocol
2 | static var supportsSecureCoding: Bool { get }
3 | }
/Users/admin/builder/spi-builder-workspace/Sources/MediaUtilities/DropDelegate/ImageDropDelegate.swift:8:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Foundation'
6 | //
7 |
8 | import SwiftUI
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Foundation'
9 | import UniformTypeIdentifiers
10 |
/Users/admin/builder/spi-builder-workspace/Sources/MediaUtilities/DropDelegate/ImageDropDelegate.swift:123:25: warning: main actor-isolated property 'dropCompleted' can not be referenced from a Sendable closure; this is an error in the Swift 6 language mode
12 | struct ImageDropDelegate: DropDelegate {
13 | @ObservedObject var dropService: DropDelegateService
14 | var dropCompleted: (Result<UnifiedImage, Error>) -> Void
| `- note: property declared here
15 |
16 | func dropEntered(info: DropInfo) {
:
121 | item.loadDataRepresentation(forTypeIdentifier: UTType.image.identifier) { data, _ in
122 | guard let data = data else {
123 | dropCompleted(.failure(MediaUtilitiesError.badImage))
| `- warning: main actor-isolated property 'dropCompleted' can not be referenced from a Sendable closure; this is an error in the Swift 6 language mode
124 | return
125 | }
/Users/admin/builder/spi-builder-workspace/Sources/MediaUtilities/DropDelegate/ImageDropDelegate.swift:127:25: warning: main actor-isolated property 'dropCompleted' can not be referenced from a Sendable closure; this is an error in the Swift 6 language mode
12 | struct ImageDropDelegate: DropDelegate {
13 | @ObservedObject var dropService: DropDelegateService
14 | var dropCompleted: (Result<UnifiedImage, Error>) -> Void
| `- note: property declared here
15 |
16 | func dropEntered(info: DropInfo) {
:
125 | }
126 | guard let img = UnifiedImage(data: data) else {
127 | dropCompleted(.failure(MediaUtilitiesError.badImage))
| `- warning: main actor-isolated property 'dropCompleted' can not be referenced from a Sendable closure; this is an error in the Swift 6 language mode
128 | return
129 | }
/Users/admin/builder/spi-builder-workspace/Sources/MediaUtilities/DropDelegate/ImageDropDelegate.swift:130:21: warning: main actor-isolated property 'dropCompleted' can not be referenced from a Sendable closure; this is an error in the Swift 6 language mode
12 | struct ImageDropDelegate: DropDelegate {
13 | @ObservedObject var dropService: DropDelegateService
14 | var dropCompleted: (Result<UnifiedImage, Error>) -> Void
| `- note: property declared here
15 |
16 | func dropEntered(info: DropInfo) {
:
128 | return
129 | }
130 | dropCompleted(.success(img))
| `- warning: main actor-isolated property 'dropCompleted' can not be referenced from a Sendable closure; this is an error in the Swift 6 language mode
131 | }
132 | }
/Users/admin/builder/spi-builder-workspace/Sources/MediaUtilities/DropDelegate/VideoDropDelegate.swift:62:21: warning: main actor-isolated property 'dropService' can not be referenced from a Sendable closure; this is an error in the Swift 6 language mode
20 | @available(iOS 13.4, macOS 10.15, *)
21 | struct VideoDropDelegate: DropDelegate {
22 | @ObservedObject var dropService: DropDelegateService
| `- note: property declared here
23 | var dropCompleted: (Result<URL, Error>) -> Void
24 | @State private var subscriptions: Set<AnyCancellable> = []
:
60 | if asset.isPlayable {
61 | print("Conforms")
62 | dropService.setIsAllowed(to: true)
| `- warning: main actor-isolated property 'dropService' can not be referenced from a Sendable closure; this is an error in the Swift 6 language mode
63 | } else {
64 | print("Does Not CONFORM")
/Users/admin/builder/spi-builder-workspace/Sources/MediaUtilities/DropDelegate/VideoDropDelegate.swift:65:21: warning: main actor-isolated property 'dropService' can not be referenced from a Sendable closure; this is an error in the Swift 6 language mode
20 | @available(iOS 13.4, macOS 10.15, *)
21 | struct VideoDropDelegate: DropDelegate {
22 | @ObservedObject var dropService: DropDelegateService
| `- note: property declared here
23 | var dropCompleted: (Result<URL, Error>) -> Void
24 | @State private var subscriptions: Set<AnyCancellable> = []
:
63 | } else {
64 | print("Does Not CONFORM")
65 | dropService.setIsAllowed(to: false)
| `- warning: main actor-isolated property 'dropService' can not be referenced from a Sendable closure; this is an error in the Swift 6 language mode
66 | }
67 | }
/Users/admin/builder/spi-builder-workspace/Sources/MediaUtilities/DropDelegate/VideoDropDelegate.swift:98:61: warning: non-sendable type 'any NSSecureCoding' returned by implicitly asynchronous call to nonisolated function cannot cross actor boundary; this is an error in the Swift 6 language mode
96 | #endif
97 | #if os(macOS)
98 | let nsSecureCoding = try await itemProvider.loadItem(forTypeIdentifier: DropDelegateService.urlIndentifier, options: nil)
| `- warning: non-sendable type 'any NSSecureCoding' returned by implicitly asynchronous call to nonisolated function cannot cross actor boundary; this is an error in the Swift 6 language mode
99 | guard let urlData = nsSecureCoding as? Data else {
100 | return
Foundation.NSSecureCoding:1:17: note: protocol 'NSSecureCoding' does not conform to the 'Sendable' protocol
1 | public protocol NSSecureCoding : NSCoding {
| `- note: protocol 'NSSecureCoding' does not conform to the 'Sendable' protocol
2 | static var supportsSecureCoding: Bool { get }
3 | }
/Users/admin/builder/spi-builder-workspace/Sources/MediaUtilities/DropDelegate/VideoDropDelegate.swift:8:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Foundation'
6 | //
7 |
8 | import SwiftUI
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Foundation'
9 | import UniformTypeIdentifiers
10 | import AVFoundation
/Users/admin/builder/spi-builder-workspace/Sources/MediaUtilities/DropDelegate/VideoDropDelegate.swift:116:21: warning: main actor-isolated property 'dropCompleted' can not be referenced from a Sendable closure; this is an error in the Swift 6 language mode
21 | struct VideoDropDelegate: DropDelegate {
22 | @ObservedObject var dropService: DropDelegateService
23 | var dropCompleted: (Result<URL, Error>) -> Void
| `- note: property declared here
24 | @State private var subscriptions: Set<AnyCancellable> = []
25 |
:
114 | let progress: Progress = itemProvider.loadFileRepresentation(forTypeIdentifier: DropDelegateService.audioVisualContentIndentifier) { url, err in
115 | guard let url = url, err == nil else {
116 | dropCompleted(.failure(err!))
| `- warning: main actor-isolated property 'dropCompleted' can not be referenced from a Sendable closure; this is an error in the Swift 6 language mode
117 | return
118 | }
/Users/admin/builder/spi-builder-workspace/Sources/MediaUtilities/DropDelegate/VideoDropDelegate.swift:121:25: warning: main actor-isolated property 'dropService' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
20 | @available(iOS 13.4, macOS 10.15, *)
21 | struct VideoDropDelegate: DropDelegate {
22 | @ObservedObject var dropService: DropDelegateService
| `- note: property declared here
23 | var dropCompleted: (Result<URL, Error>) -> Void
24 | @State private var subscriptions: Set<AnyCancellable> = []
:
119 | MediaPicker.copyContents(of: url) { localURL, error in
120 | guard let localURL = localURL, error == nil else {
121 | dropService.setIsCopying(to: false)
| `- warning: main actor-isolated property 'dropService' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
122 | dropCompleted(.failure(error!))
123 | return
/Users/admin/builder/spi-builder-workspace/Sources/MediaUtilities/DropDelegate/VideoDropDelegate.swift:122:25: warning: main actor-isolated property 'dropCompleted' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
21 | struct VideoDropDelegate: DropDelegate {
22 | @ObservedObject var dropService: DropDelegateService
23 | var dropCompleted: (Result<URL, Error>) -> Void
| `- note: property declared here
24 | @State private var subscriptions: Set<AnyCancellable> = []
25 |
:
120 | guard let localURL = localURL, error == nil else {
121 | dropService.setIsCopying(to: false)
122 | dropCompleted(.failure(error!))
| `- warning: main actor-isolated property 'dropCompleted' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
123 | return
124 | }
/Users/admin/builder/spi-builder-workspace/Sources/MediaUtilities/DropDelegate/VideoDropDelegate.swift:126:21: warning: main actor-isolated property 'dropService' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
20 | @available(iOS 13.4, macOS 10.15, *)
21 | struct VideoDropDelegate: DropDelegate {
22 | @ObservedObject var dropService: DropDelegateService
| `- note: property declared here
23 | var dropCompleted: (Result<URL, Error>) -> Void
24 | @State private var subscriptions: Set<AnyCancellable> = []
:
124 | }
125 | print("localURl", localURL)
126 | dropService.setIsCopying(to: false)
| `- warning: main actor-isolated property 'dropService' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
127 | dropCompleted(.success(localURL))
128 | }
/Users/admin/builder/spi-builder-workspace/Sources/MediaUtilities/DropDelegate/VideoDropDelegate.swift:127:21: warning: main actor-isolated property 'dropCompleted' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
21 | struct VideoDropDelegate: DropDelegate {
22 | @ObservedObject var dropService: DropDelegateService
23 | var dropCompleted: (Result<URL, Error>) -> Void
| `- note: property declared here
24 | @State private var subscriptions: Set<AnyCancellable> = []
25 |
:
125 | print("localURl", localURL)
126 | dropService.setIsCopying(to: false)
127 | dropCompleted(.success(localURL))
| `- warning: main actor-isolated property 'dropCompleted' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
128 | }
129 | }
/Users/admin/builder/spi-builder-workspace/Sources/MediaUtilities/MediaPicker/MediaOptions.swift:19:23: warning: static property 'images' is not concurrency-safe because non-'Sendable' type 'MediaTypeOptions' may have shared mutable state; this is an error in the Swift 6 language mode
9 |
10 | @available(iOS 14.0, macOS 11, *)
11 | public struct MediaTypeOptions: OptionSet {
| `- note: consider making struct 'MediaTypeOptions' conform to the 'Sendable' protocol
12 | public let rawValue: Int
13 |
:
17 |
18 | public static let livePhotos = MediaTypeOptions(rawValue: 1 << 0)
19 | public static let images: MediaTypeOptions = [MediaTypeOptions(rawValue: 1 << 1), livePhotos]
| |- warning: static property 'images' is not concurrency-safe because non-'Sendable' type 'MediaTypeOptions' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'images' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
20 | public static let videos = MediaTypeOptions(rawValue: 1 << 2)
21 |
/Users/admin/builder/spi-builder-workspace/Sources/MediaUtilities/MediaPicker/MediaOptions.swift:20:23: warning: static property 'videos' is not concurrency-safe because non-'Sendable' type 'MediaTypeOptions' may have shared mutable state; this is an error in the Swift 6 language mode
9 |
10 | @available(iOS 14.0, macOS 11, *)
11 | public struct MediaTypeOptions: OptionSet {
| `- note: consider making struct 'MediaTypeOptions' conform to the 'Sendable' protocol
12 | public let rawValue: Int
13 |
:
18 | public static let livePhotos = MediaTypeOptions(rawValue: 1 << 0)
19 | public static let images: MediaTypeOptions = [MediaTypeOptions(rawValue: 1 << 1), livePhotos]
20 | public static let videos = MediaTypeOptions(rawValue: 1 << 2)
| |- warning: static property 'videos' is not concurrency-safe because non-'Sendable' type 'MediaTypeOptions' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'videos' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
21 |
22 | /// All media types.
/Users/admin/builder/spi-builder-workspace/Sources/MediaUtilities/Holistic/VideoPicker.swift:181:51: warning: string interpolation produces a debug description for an optional value; did you mean to make this explicit?
179 | switch result {
180 | case let .success(urls):
181 | print("mediaImportComplete URL: \(urls.first)")
| | |- note: use 'String(describing:)' to silence this warning
| | `- note: provide a default value to avoid this warning
| `- warning: string interpolation produces a debug description for an optional value; did you mean to make this explicit?
182 | DispatchQueue.main.async {
183 | pickedVideoURL = urls.first
/Users/admin/builder/spi-builder-workspace/Sources/MediaUtilities/DropDelegate/DropDelegateService.swift:33:13: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
31 | func setIsAllowed(to bool: Bool) {
32 | DispatchQueue.main.async {
33 | self.isAllowed = bool
| |- 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
34 | self.processAttempts()
35 | }
/Users/admin/builder/spi-builder-workspace/Sources/MediaUtilities/DropDelegate/DropDelegateService.swift:40:13: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
38 | func setIsCopying(to bool: Bool) {
39 | DispatchQueue.main.async {
40 | self.isCopyingFile = bool
| |- 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
41 | }
42 | }
Build complete! (35.08s)
Build complete.
{
"dependencies" : [
],
"manifest_display_name" : "MediaUtilities",
"name" : "MediaUtilities",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
],
"products" : [
{
"name" : "MediaUtilities",
"targets" : [
"MediaUtilities"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "MediaUtilitiesTests",
"module_type" : "SwiftTarget",
"name" : "MediaUtilitiesTests",
"path" : "Tests/MediaUtilitiesTests",
"sources" : [
"MediaUtilitiesTests.swift"
],
"target_dependencies" : [
"MediaUtilities"
],
"type" : "test"
},
{
"c99name" : "MediaUtilities",
"module_type" : "SwiftTarget",
"name" : "MediaUtilities",
"path" : "Sources/MediaUtilities",
"product_memberships" : [
"MediaUtilities"
],
"sources" : [
"DropDelegate/DropDelegateService.swift",
"DropDelegate/ImageDropDelegate.swift",
"DropDelegate/VideoDropDelegate.swift",
"Holistic/ImagePicker.swift",
"Holistic/VideoPicker.swift",
"ImageEditor/CropImageView.swift",
"ImageEditor/HoleShapeMask.swift",
"ImageEditor/ImageEditor.swift",
"ImageEditor/WhiteGridOverlay.swift",
"MediaPicker/MediaOptions.swift",
"MediaPicker/MediaPicker-iOS.swift",
"MediaPicker/MediaPicker-macOS.swift",
"MediaPicker/MediaPicker.swift",
"MediaUtilities.swift",
"Modifiers/GrayBackgroundRound.swift",
"Modifiers/OnTapModifier.swift",
"Modifiers/Shake Modifier.swift",
"Modifiers/SwiftUI+Extentions.swift",
"Shared/EditorControlButton.swift",
"Shared/MediaUtilitiesError.swift",
"Shared/SpinnerView.swift",
"Shared/UnifiedImage.swift",
"VideoEditor/Sliders/Base/DefaultHorizontalValueView.swift",
"VideoEditor/Sliders/Base/DefaultThumb.swift",
"VideoEditor/Sliders/Base/DefaultVerticalValueView.swift",
"VideoEditor/Sliders/Base/LinearRangeMath.swift",
"VideoEditor/Sliders/Base/LinearValueMath.swift",
"VideoEditor/Sliders/RangeSlider/RangeSlider.swift",
"VideoEditor/Sliders/RangeSlider/Style/AnyRangeSliderStyle.swift",
"VideoEditor/Sliders/RangeSlider/Style/EnvironmentValues+RangeSliderStyle.swift",
"VideoEditor/Sliders/RangeSlider/Style/RangeSliderStyle.swift",
"VideoEditor/Sliders/RangeSlider/Style/RangeSliderStyleConfiguration.swift",
"VideoEditor/Sliders/RangeSlider/Styles/HorizontalRangeSliderStyle.swift",
"VideoEditor/Sliders/RangeSlider/Styles/RangeSliderOptions.swift",
"VideoEditor/Sliders/RangeTrack/EnvironmentValues+RangeTrackConfiguration.swift",
"VideoEditor/Sliders/RangeTrack/EnvironmentValues+TrackRange.swift",
"VideoEditor/Sliders/RangeTrack/Horizontal/HorizontalRangeTrack.swift",
"VideoEditor/Sliders/RangeTrack/RangeTrackConfiguration.swift",
"VideoEditor/VideoDownloader.swift",
"VideoEditor/VideoEditor.swift",
"VideoEditor/VideoSliderView.swift",
"VideoEditor/VideoUtil.swift",
"VideoPlayer/CustomVideoPlayer.swift",
"VideoPlayer/PlayerViewModel.swift"
],
"type" : "library"
}
],
"tools_version" : "5.5"
}
Done.