Build Information
Successful build of SwiftAudioKit, reference 1.0.3 (c1edfa
), with Swift 6.0 (beta) for macOS (SPM) on 15 Sep 2024 12:37:40 UTC.
Swift 6 data race errors: 6
Build Command
env DEVELOPER_DIR=/Applications/Xcode-16.0.0-Release.Candidate.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete
Build Log
========================================
RunAll
========================================
Builder version: 4.53.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/dioKaratzas/swift-audio-kit.git
Reference: 1.0.3
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/dioKaratzas/swift-audio-kit
* tag 1.0.3 -> FETCH_HEAD
HEAD is now at c1edfad Remove BackgroundTaskCreator
Cloned https://github.com/dioKaratzas/swift-audio-kit.git
Revision (git rev-parse @):
c1edfadfea8fa92f1227a44dd029adbf07538aa7
SUCCESS checkout https://github.com/dioKaratzas/swift-audio-kit.git at 1.0.3
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 6.0
Building package at path: $PWD
https://github.com/dioKaratzas/swift-audio-kit.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.0.0-Release.Candidate.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-117DEE11B69C53C9.txt
[3/34] Emitting module SwiftAudioKit
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAudioKit/Event/PlayerEventProducer.swift:18:7: warning: non-final class 'PlayerEventProducer' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
16 | /// different playback states or changes. It communicates these events to an `EventListener` through the
17 | /// `startProducingEvents` and `stopProducingEvents` methods.
18 | class PlayerEventProducer: NSObject, EventProducer {
| `- warning: non-final class 'PlayerEventProducer' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
19 | /// The player to produce events with.
20 | ///
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAudioKit/Event/PlayerEventProducer.swift:22:9: warning: stored property 'player' of 'Sendable'-conforming class 'PlayerEventProducer' is mutable; this is an error in the Swift 6 language mode
20 | ///
21 | /// Note that setting it has the same result as calling `stopProducingEvents`.
22 | var player: AVPlayer? {
| `- warning: stored property 'player' of 'Sendable'-conforming class 'PlayerEventProducer' is mutable; this is an error in the Swift 6 language mode
23 | willSet {
24 | stopProducingEvents()
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAudioKit/Player/AudioPlayer.swift:61:21: warning: main actor-isolated property 'rate' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
59 | }
60 | player?.volume = volume
61 | player?.rate = rate
| `- warning: main actor-isolated property 'rate' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
62 | updatePlayerForBufferingStrategy()
63 |
AVFoundation.AVPlayer:2:25: note: mutation of this property is only permitted within the actor
1 | extension AVPlayer {
2 | @MainActor open var rate: Float { get set }
| `- note: mutation of this property is only permitted within the actor
3 | @available(macOS 13.0, *)
4 | nonisolated open var defaultRate: Float { get set }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAudioKit/Player/AudioPlayer.swift:87:25: warning: main actor-isolated property 'rate' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
85 | if let currentItem {
86 | // Stops the current player
87 | player?.rate = 0
| `- warning: main actor-isolated property 'rate' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
88 | player = nil
89 |
AVFoundation.AVPlayer:2:25: note: mutation of this property is only permitted within the actor
1 | extension AVPlayer {
2 | @MainActor open var rate: Float { get set }
| `- note: mutation of this property is only permitted within the actor
3 | @available(macOS 13.0, *)
4 | nonisolated open var defaultRate: Float { get set }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAudioKit/Player/AudioPlayer.swift:124:25: warning: main actor-isolated property 'rate' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
122 | delegate?.audioPlayer(self, willStartPlaying: currentItem)
123 | }
124 | player?.rate = rate
| `- warning: main actor-isolated property 'rate' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
125 | } else {
126 | stop()
AVFoundation.AVPlayer:2:25: note: mutation of this property is only permitted within the actor
1 | extension AVPlayer {
2 | @MainActor open var rate: Float { get set }
| `- note: mutation of this property is only permitted within the actor
3 | @available(macOS 13.0, *)
4 | nonisolated open var defaultRate: Float { get set }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAudioKit/Player/AudioPlayer.swift:213:25: warning: main actor-isolated property 'rate' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
211 | didSet {
212 | if case .playing = state {
213 | player?.rate = rate
| `- warning: main actor-isolated property 'rate' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
214 | if let metadata = currentItemDynamicMetadata() {
215 | nowPlayableService?.handleNowPlayablePlaybackChange(isPlaying: state.isPlaying, metadata: metadata)
AVFoundation.AVPlayer:2:25: note: mutation of this property is only permitted within the actor
1 | extension AVPlayer {
2 | @MainActor open var rate: Float { get set }
| `- note: mutation of this property is only permitted within the actor
3 | @available(macOS 13.0, *)
4 | nonisolated open var defaultRate: Float { get set }
[4/37] Compiling SwiftAudioKit Reachability.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAudioKit/Utils/Reachability.swift:42:9: warning: capture of 'reachability' with non-sendable type 'Reachability' in a `@Sendable` closure; this is an error in the Swift 6 language mode
40 | let reachability = Unmanaged<Reachability>.fromOpaque(info).takeUnretainedValue()
41 | DispatchQueue.main.async {
42 | reachability.reachabilityChanged(flags: flags)
| `- warning: capture of 'reachability' with non-sendable type 'Reachability' in a `@Sendable` closure; this is an error in the Swift 6 language mode
43 | }
44 | }
45 |
46 | class Reachability: NSObject {
| `- note: class 'Reachability' does not conform to the 'Sendable' protocol
47 | enum NetworkStatus {
48 | case notReachable, reachableViaWiFi, reachableViaWWAN
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAudioKit/Utils/Reachability.swift:42:9: warning: sending 'reachability' risks causing data races; this is an error in the Swift 6 language mode
40 | let reachability = Unmanaged<Reachability>.fromOpaque(info).takeUnretainedValue()
41 | DispatchQueue.main.async {
42 | reachability.reachabilityChanged(flags: flags)
| |- warning: sending 'reachability' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'reachability' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
43 | }
44 | }
[5/37] Compiling SwiftAudioKit SynchronizedLock.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAudioKit/Utils/Reachability.swift:42:9: warning: capture of 'reachability' with non-sendable type 'Reachability' in a `@Sendable` closure; this is an error in the Swift 6 language mode
40 | let reachability = Unmanaged<Reachability>.fromOpaque(info).takeUnretainedValue()
41 | DispatchQueue.main.async {
42 | reachability.reachabilityChanged(flags: flags)
| `- warning: capture of 'reachability' with non-sendable type 'Reachability' in a `@Sendable` closure; this is an error in the Swift 6 language mode
43 | }
44 | }
45 |
46 | class Reachability: NSObject {
| `- note: class 'Reachability' does not conform to the 'Sendable' protocol
47 | enum NetworkStatus {
48 | case notReachable, reachableViaWiFi, reachableViaWWAN
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAudioKit/Utils/Reachability.swift:42:9: warning: sending 'reachability' risks causing data races; this is an error in the Swift 6 language mode
40 | let reachability = Unmanaged<Reachability>.fromOpaque(info).takeUnretainedValue()
41 | DispatchQueue.main.async {
42 | reachability.reachabilityChanged(flags: flags)
| |- warning: sending 'reachability' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'reachability' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
43 | }
44 | }
[6/37] Compiling SwiftAudioKit URL+Offline.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAudioKit/Utils/Reachability.swift:42:9: warning: capture of 'reachability' with non-sendable type 'Reachability' in a `@Sendable` closure; this is an error in the Swift 6 language mode
40 | let reachability = Unmanaged<Reachability>.fromOpaque(info).takeUnretainedValue()
41 | DispatchQueue.main.async {
42 | reachability.reachabilityChanged(flags: flags)
| `- warning: capture of 'reachability' with non-sendable type 'Reachability' in a `@Sendable` closure; this is an error in the Swift 6 language mode
43 | }
44 | }
45 |
46 | class Reachability: NSObject {
| `- note: class 'Reachability' does not conform to the 'Sendable' protocol
47 | enum NetworkStatus {
48 | case notReachable, reachableViaWiFi, reachableViaWWAN
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAudioKit/Utils/Reachability.swift:42:9: warning: sending 'reachability' risks causing data races; this is an error in the Swift 6 language mode
40 | let reachability = Unmanaged<Reachability>.fromOpaque(info).takeUnretainedValue()
41 | DispatchQueue.main.async {
42 | reachability.reachabilityChanged(flags: flags)
| |- warning: sending 'reachability' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'reachability' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
43 | }
44 | }
[7/37] Compiling SwiftAudioKit AudioItemEventProducer.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAudioKit/Event/PlayerEventProducer.swift:18:7: warning: non-final class 'PlayerEventProducer' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
16 | /// different playback states or changes. It communicates these events to an `EventListener` through the
17 | /// `startProducingEvents` and `stopProducingEvents` methods.
18 | class PlayerEventProducer: NSObject, EventProducer {
| `- warning: non-final class 'PlayerEventProducer' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
19 | /// The player to produce events with.
20 | ///
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAudioKit/Event/PlayerEventProducer.swift:22:9: warning: stored property 'player' of 'Sendable'-conforming class 'PlayerEventProducer' is mutable; this is an error in the Swift 6 language mode
20 | ///
21 | /// Note that setting it has the same result as calling `stopProducingEvents`.
22 | var player: AVPlayer? {
| `- warning: stored property 'player' of 'Sendable'-conforming class 'PlayerEventProducer' is mutable; this is an error in the Swift 6 language mode
23 | willSet {
24 | stopProducingEvents()
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAudioKit/Event/PlayerEventProducer.swift:241:14: warning: call to main actor-isolated instance method 'add' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
236 | ///
237 | /// - Parameter item: The `AVPlayerItem` to which the metadata output should be added.
238 | private func setupMetadataOutput(for item: AVPlayerItem) {
| `- note: add '@MainActor' to make instance method 'setupMetadataOutput(for:)' part of global actor 'MainActor'
239 | let metadataOutput = AVPlayerItemMetadataOutput()
240 | metadataOutput.setDelegate(self, queue: DispatchQueue.main)
241 | item.add(metadataOutput)
| `- warning: call to main actor-isolated instance method 'add' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
242 | }
243 |
AVFoundation.AVPlayerItem:3:26: note: calls to instance method 'add' from outside of its actor context are implicitly asynchronous
1 | extension AVPlayerItem {
2 | @available(macOS 10.8, *)
3 | @MainActor open func add(_ output: AVPlayerItemOutput)
| `- note: calls to instance method 'add' from outside of its actor context are implicitly asynchronous
4 | @available(macOS 10.8, *)
5 | @available(swift, obsoleted: 3, renamed: "add(_:)")
[8/37] Compiling SwiftAudioKit EventProducer.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAudioKit/Event/PlayerEventProducer.swift:18:7: warning: non-final class 'PlayerEventProducer' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
16 | /// different playback states or changes. It communicates these events to an `EventListener` through the
17 | /// `startProducingEvents` and `stopProducingEvents` methods.
18 | class PlayerEventProducer: NSObject, EventProducer {
| `- warning: non-final class 'PlayerEventProducer' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
19 | /// The player to produce events with.
20 | ///
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAudioKit/Event/PlayerEventProducer.swift:22:9: warning: stored property 'player' of 'Sendable'-conforming class 'PlayerEventProducer' is mutable; this is an error in the Swift 6 language mode
20 | ///
21 | /// Note that setting it has the same result as calling `stopProducingEvents`.
22 | var player: AVPlayer? {
| `- warning: stored property 'player' of 'Sendable'-conforming class 'PlayerEventProducer' is mutable; this is an error in the Swift 6 language mode
23 | willSet {
24 | stopProducingEvents()
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAudioKit/Event/PlayerEventProducer.swift:241:14: warning: call to main actor-isolated instance method 'add' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
236 | ///
237 | /// - Parameter item: The `AVPlayerItem` to which the metadata output should be added.
238 | private func setupMetadataOutput(for item: AVPlayerItem) {
| `- note: add '@MainActor' to make instance method 'setupMetadataOutput(for:)' part of global actor 'MainActor'
239 | let metadataOutput = AVPlayerItemMetadataOutput()
240 | metadataOutput.setDelegate(self, queue: DispatchQueue.main)
241 | item.add(metadataOutput)
| `- warning: call to main actor-isolated instance method 'add' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
242 | }
243 |
AVFoundation.AVPlayerItem:3:26: note: calls to instance method 'add' from outside of its actor context are implicitly asynchronous
1 | extension AVPlayerItem {
2 | @available(macOS 10.8, *)
3 | @MainActor open func add(_ output: AVPlayerItemOutput)
| `- note: calls to instance method 'add' from outside of its actor context are implicitly asynchronous
4 | @available(macOS 10.8, *)
5 | @available(swift, obsoleted: 3, renamed: "add(_:)")
[9/37] Compiling SwiftAudioKit NetworkEventProducer.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAudioKit/Event/PlayerEventProducer.swift:18:7: warning: non-final class 'PlayerEventProducer' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
16 | /// different playback states or changes. It communicates these events to an `EventListener` through the
17 | /// `startProducingEvents` and `stopProducingEvents` methods.
18 | class PlayerEventProducer: NSObject, EventProducer {
| `- warning: non-final class 'PlayerEventProducer' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
19 | /// The player to produce events with.
20 | ///
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAudioKit/Event/PlayerEventProducer.swift:22:9: warning: stored property 'player' of 'Sendable'-conforming class 'PlayerEventProducer' is mutable; this is an error in the Swift 6 language mode
20 | ///
21 | /// Note that setting it has the same result as calling `stopProducingEvents`.
22 | var player: AVPlayer? {
| `- warning: stored property 'player' of 'Sendable'-conforming class 'PlayerEventProducer' is mutable; this is an error in the Swift 6 language mode
23 | willSet {
24 | stopProducingEvents()
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAudioKit/Event/PlayerEventProducer.swift:241:14: warning: call to main actor-isolated instance method 'add' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
236 | ///
237 | /// - Parameter item: The `AVPlayerItem` to which the metadata output should be added.
238 | private func setupMetadataOutput(for item: AVPlayerItem) {
| `- note: add '@MainActor' to make instance method 'setupMetadataOutput(for:)' part of global actor 'MainActor'
239 | let metadataOutput = AVPlayerItemMetadataOutput()
240 | metadataOutput.setDelegate(self, queue: DispatchQueue.main)
241 | item.add(metadataOutput)
| `- warning: call to main actor-isolated instance method 'add' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
242 | }
243 |
AVFoundation.AVPlayerItem:3:26: note: calls to instance method 'add' from outside of its actor context are implicitly asynchronous
1 | extension AVPlayerItem {
2 | @available(macOS 10.8, *)
3 | @MainActor open func add(_ output: AVPlayerItemOutput)
| `- note: calls to instance method 'add' from outside of its actor context are implicitly asynchronous
4 | @available(macOS 10.8, *)
5 | @available(swift, obsoleted: 3, renamed: "add(_:)")
[10/37] Compiling SwiftAudioKit PlayerEventProducer.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAudioKit/Event/PlayerEventProducer.swift:18:7: warning: non-final class 'PlayerEventProducer' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
16 | /// different playback states or changes. It communicates these events to an `EventListener` through the
17 | /// `startProducingEvents` and `stopProducingEvents` methods.
18 | class PlayerEventProducer: NSObject, EventProducer {
| `- warning: non-final class 'PlayerEventProducer' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
19 | /// The player to produce events with.
20 | ///
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAudioKit/Event/PlayerEventProducer.swift:22:9: warning: stored property 'player' of 'Sendable'-conforming class 'PlayerEventProducer' is mutable; this is an error in the Swift 6 language mode
20 | ///
21 | /// Note that setting it has the same result as calling `stopProducingEvents`.
22 | var player: AVPlayer? {
| `- warning: stored property 'player' of 'Sendable'-conforming class 'PlayerEventProducer' is mutable; this is an error in the Swift 6 language mode
23 | willSet {
24 | stopProducingEvents()
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAudioKit/Event/PlayerEventProducer.swift:241:14: warning: call to main actor-isolated instance method 'add' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
236 | ///
237 | /// - Parameter item: The `AVPlayerItem` to which the metadata output should be added.
238 | private func setupMetadataOutput(for item: AVPlayerItem) {
| `- note: add '@MainActor' to make instance method 'setupMetadataOutput(for:)' part of global actor 'MainActor'
239 | let metadataOutput = AVPlayerItemMetadataOutput()
240 | metadataOutput.setDelegate(self, queue: DispatchQueue.main)
241 | item.add(metadataOutput)
| `- warning: call to main actor-isolated instance method 'add' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
242 | }
243 |
AVFoundation.AVPlayerItem:3:26: note: calls to instance method 'add' from outside of its actor context are implicitly asynchronous
1 | extension AVPlayerItem {
2 | @available(macOS 10.8, *)
3 | @MainActor open func add(_ output: AVPlayerItemOutput)
| `- note: calls to instance method 'add' from outside of its actor context are implicitly asynchronous
4 | @available(macOS 10.8, *)
5 | @available(swift, obsoleted: 3, renamed: "add(_:)")
[11/37] Compiling SwiftAudioKit AudioPlayerMode.swift
[12/37] Compiling SwiftAudioKit AudioPlayerState.swift
[13/37] Compiling SwiftAudioKit AudioPlayer+AudioItemEvent.swift
[14/37] Compiling SwiftAudioKit AudioPlayer+Control.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAudioKit/Player/Extensions/AudioPlayer+Control.swift:19:17: warning: main actor-isolated property 'rate' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
13 | extension AudioPlayer {
14 | /// Resumes the player.
15 | public func resume() {
| `- note: add '@MainActor' to make instance method 'resume()' part of global actor 'MainActor'
16 | // Ensure pause flag is no longer set
17 | pausedForInterruption = false
18 |
19 | player?.rate = rate
| `- warning: main actor-isolated property 'rate' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
20 |
21 | // We don't wan't to change the state to Playing in case it's Buffering. That
AVFoundation.AVPlayer:2:25: note: mutation of this property is only permitted within the actor
1 | extension AVPlayer {
2 | @MainActor open var rate: Float { get set }
| `- note: mutation of this property is only permitted within the actor
3 | @available(macOS 13.0, *)
4 | nonisolated open var defaultRate: Float { get set }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAudioKit/Player/Extensions/AudioPlayer+Control.swift:33:17: warning: main actor-isolated property 'rate' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
29 |
30 | /// Pauses the player.
31 | public func pause() {
| `- note: add '@MainActor' to make instance method 'pause()' part of global actor 'MainActor'
32 | // We ensure the player actually pauses
33 | player?.rate = 0
| `- warning: main actor-isolated property 'rate' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
34 | state = .paused
35 |
AVFoundation.AVPlayer:2:25: note: mutation of this property is only permitted within the actor
1 | extension AVPlayer {
2 | @MainActor open var rate: Float { get set }
| `- note: mutation of this property is only permitted within the actor
3 | @available(macOS 13.0, *)
4 | nonisolated open var defaultRate: Float { get set }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAudioKit/Player/Extensions/AudioPlayer+Control.swift:48:21: warning: call to main actor-isolated instance method 'playImmediately(atRate:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
43 |
44 | /// Starts playing the current item immediately. Works on iOS/tvOS 10+ and macOS 10.12+
45 | func playImmediately() {
| `- note: add '@MainActor' to make instance method 'playImmediately()' part of global actor 'MainActor'
46 | if #available(iOS 10.0, tvOS 10.0, OSX 10.12, *) {
47 | self.state = .playing
48 | player?.playImmediately(atRate: rate)
| `- warning: call to main actor-isolated instance method 'playImmediately(atRate:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
49 |
50 | retryEventProducer.stopProducingEvents()
AVFoundation.AVPlayer:12:15: note: calls to instance method 'playImmediately(atRate:)' from outside of its actor context are implicitly asynchronous
10 | nonisolated open var reasonForWaitingToPlay: AVPlayer.WaitingReason? { get }
11 | @available(macOS 10.12, *)
12 | open func playImmediately(atRate rate: Float)
| `- note: calls to instance method 'playImmediately(atRate:)' from outside of its actor context are implicitly asynchronous
13 | @available(macOS 10.12, *)
14 | @available(swift, obsoleted: 3, renamed: "playImmediately(atRate:)")
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAudioKit/Player/Extensions/AudioPlayer+Control.swift:85:21: warning: main actor-isolated property 'rate' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
79 |
80 | /// Stops the player and clear the queue.
81 | public func stop() {
| `- note: add '@MainActor' to make instance method 'stop()' part of global actor 'MainActor'
82 | retryEventProducer.stopProducingEvents()
83 |
84 | if let _ = player {
85 | player?.rate = 0
| `- warning: main actor-isolated property 'rate' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
86 | player = nil
87 | }
AVFoundation.AVPlayer:2:25: note: mutation of this property is only permitted within the actor
1 | extension AVPlayer {
2 | @MainActor open var rate: Float { get set }
| `- note: mutation of this property is only permitted within the actor
3 | @available(macOS 13.0, *)
4 | nonisolated open var defaultRate: Float { get set }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAudioKit/Player/Extensions/AudioPlayer+Control.swift:202:17: warning: capture of 'completionHandler' with non-sendable type '(Bool) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
200 | toleranceAfter: toleranceAfter,
201 | completionHandler: { [weak self] finished in
202 | completionHandler(finished)
| |- warning: capture of 'completionHandler' with non-sendable type '(Bool) -> 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'
203 | if let metadata = self?.currentItemDynamicMetadata() {
204 | self?.nowPlayableService?.handleNowPlayablePlaybackChange(
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAudioKit/Player/Extensions/AudioPlayer+Control.swift:203:35: warning: capture of 'self' with non-sendable type 'AudioPlayer?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
201 | completionHandler: { [weak self] finished in
202 | completionHandler(finished)
203 | if let metadata = self?.currentItemDynamicMetadata() {
| `- warning: capture of 'self' with non-sendable type 'AudioPlayer?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
204 | self?.nowPlayableService?.handleNowPlayablePlaybackChange(
205 | isPlaying: self?.state == .playing,
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAudioKit/Player/AudioPlayer.swift:15:14: note: class 'AudioPlayer' does not conform to the 'Sendable' protocol
13 | ///
14 | /// You can get events (such as state change or time observation) by registering a delegate.
15 | public class AudioPlayer: NSObject {
| `- note: class 'AudioPlayer' does not conform to the 'Sendable' protocol
16 | // MARK: Handlers
17 |
[15/37] Compiling SwiftAudioKit AudioPlayer+CurrentItem.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAudioKit/Player/Extensions/AudioPlayer+Control.swift:19:17: warning: main actor-isolated property 'rate' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
13 | extension AudioPlayer {
14 | /// Resumes the player.
15 | public func resume() {
| `- note: add '@MainActor' to make instance method 'resume()' part of global actor 'MainActor'
16 | // Ensure pause flag is no longer set
17 | pausedForInterruption = false
18 |
19 | player?.rate = rate
| `- warning: main actor-isolated property 'rate' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
20 |
21 | // We don't wan't to change the state to Playing in case it's Buffering. That
AVFoundation.AVPlayer:2:25: note: mutation of this property is only permitted within the actor
1 | extension AVPlayer {
2 | @MainActor open var rate: Float { get set }
| `- note: mutation of this property is only permitted within the actor
3 | @available(macOS 13.0, *)
4 | nonisolated open var defaultRate: Float { get set }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAudioKit/Player/Extensions/AudioPlayer+Control.swift:33:17: warning: main actor-isolated property 'rate' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
29 |
30 | /// Pauses the player.
31 | public func pause() {
| `- note: add '@MainActor' to make instance method 'pause()' part of global actor 'MainActor'
32 | // We ensure the player actually pauses
33 | player?.rate = 0
| `- warning: main actor-isolated property 'rate' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
34 | state = .paused
35 |
AVFoundation.AVPlayer:2:25: note: mutation of this property is only permitted within the actor
1 | extension AVPlayer {
2 | @MainActor open var rate: Float { get set }
| `- note: mutation of this property is only permitted within the actor
3 | @available(macOS 13.0, *)
4 | nonisolated open var defaultRate: Float { get set }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAudioKit/Player/Extensions/AudioPlayer+Control.swift:48:21: warning: call to main actor-isolated instance method 'playImmediately(atRate:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
43 |
44 | /// Starts playing the current item immediately. Works on iOS/tvOS 10+ and macOS 10.12+
45 | func playImmediately() {
| `- note: add '@MainActor' to make instance method 'playImmediately()' part of global actor 'MainActor'
46 | if #available(iOS 10.0, tvOS 10.0, OSX 10.12, *) {
47 | self.state = .playing
48 | player?.playImmediately(atRate: rate)
| `- warning: call to main actor-isolated instance method 'playImmediately(atRate:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
49 |
50 | retryEventProducer.stopProducingEvents()
AVFoundation.AVPlayer:12:15: note: calls to instance method 'playImmediately(atRate:)' from outside of its actor context are implicitly asynchronous
10 | nonisolated open var reasonForWaitingToPlay: AVPlayer.WaitingReason? { get }
11 | @available(macOS 10.12, *)
12 | open func playImmediately(atRate rate: Float)
| `- note: calls to instance method 'playImmediately(atRate:)' from outside of its actor context are implicitly asynchronous
13 | @available(macOS 10.12, *)
14 | @available(swift, obsoleted: 3, renamed: "playImmediately(atRate:)")
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAudioKit/Player/Extensions/AudioPlayer+Control.swift:85:21: warning: main actor-isolated property 'rate' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
79 |
80 | /// Stops the player and clear the queue.
81 | public func stop() {
| `- note: add '@MainActor' to make instance method 'stop()' part of global actor 'MainActor'
82 | retryEventProducer.stopProducingEvents()
83 |
84 | if let _ = player {
85 | player?.rate = 0
| `- warning: main actor-isolated property 'rate' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
86 | player = nil
87 | }
AVFoundation.AVPlayer:2:25: note: mutation of this property is only permitted within the actor
1 | extension AVPlayer {
2 | @MainActor open var rate: Float { get set }
| `- note: mutation of this property is only permitted within the actor
3 | @available(macOS 13.0, *)
4 | nonisolated open var defaultRate: Float { get set }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAudioKit/Player/Extensions/AudioPlayer+Control.swift:202:17: warning: capture of 'completionHandler' with non-sendable type '(Bool) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
200 | toleranceAfter: toleranceAfter,
201 | completionHandler: { [weak self] finished in
202 | completionHandler(finished)
| |- warning: capture of 'completionHandler' with non-sendable type '(Bool) -> 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'
203 | if let metadata = self?.currentItemDynamicMetadata() {
204 | self?.nowPlayableService?.handleNowPlayablePlaybackChange(
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAudioKit/Player/Extensions/AudioPlayer+Control.swift:203:35: warning: capture of 'self' with non-sendable type 'AudioPlayer?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
201 | completionHandler: { [weak self] finished in
202 | completionHandler(finished)
203 | if let metadata = self?.currentItemDynamicMetadata() {
| `- warning: capture of 'self' with non-sendable type 'AudioPlayer?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
204 | self?.nowPlayableService?.handleNowPlayablePlaybackChange(
205 | isPlaying: self?.state == .playing,
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAudioKit/Player/AudioPlayer.swift:15:14: note: class 'AudioPlayer' does not conform to the 'Sendable' protocol
13 | ///
14 | /// You can get events (such as state change or time observation) by registering a delegate.
15 | public class AudioPlayer: NSObject {
| `- note: class 'AudioPlayer' does not conform to the 'Sendable' protocol
16 | // MARK: Handlers
17 |
[16/37] Compiling SwiftAudioKit AudioPlayer+NetworkEvent.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAudioKit/Player/Extensions/AudioPlayer+Control.swift:19:17: warning: main actor-isolated property 'rate' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
13 | extension AudioPlayer {
14 | /// Resumes the player.
15 | public func resume() {
| `- note: add '@MainActor' to make instance method 'resume()' part of global actor 'MainActor'
16 | // Ensure pause flag is no longer set
17 | pausedForInterruption = false
18 |
19 | player?.rate = rate
| `- warning: main actor-isolated property 'rate' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
20 |
21 | // We don't wan't to change the state to Playing in case it's Buffering. That
AVFoundation.AVPlayer:2:25: note: mutation of this property is only permitted within the actor
1 | extension AVPlayer {
2 | @MainActor open var rate: Float { get set }
| `- note: mutation of this property is only permitted within the actor
3 | @available(macOS 13.0, *)
4 | nonisolated open var defaultRate: Float { get set }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAudioKit/Player/Extensions/AudioPlayer+Control.swift:33:17: warning: main actor-isolated property 'rate' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
29 |
30 | /// Pauses the player.
31 | public func pause() {
| `- note: add '@MainActor' to make instance method 'pause()' part of global actor 'MainActor'
32 | // We ensure the player actually pauses
33 | player?.rate = 0
| `- warning: main actor-isolated property 'rate' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
34 | state = .paused
35 |
AVFoundation.AVPlayer:2:25: note: mutation of this property is only permitted within the actor
1 | extension AVPlayer {
2 | @MainActor open var rate: Float { get set }
| `- note: mutation of this property is only permitted within the actor
3 | @available(macOS 13.0, *)
4 | nonisolated open var defaultRate: Float { get set }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAudioKit/Player/Extensions/AudioPlayer+Control.swift:48:21: warning: call to main actor-isolated instance method 'playImmediately(atRate:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
43 |
44 | /// Starts playing the current item immediately. Works on iOS/tvOS 10+ and macOS 10.12+
45 | func playImmediately() {
| `- note: add '@MainActor' to make instance method 'playImmediately()' part of global actor 'MainActor'
46 | if #available(iOS 10.0, tvOS 10.0, OSX 10.12, *) {
47 | self.state = .playing
48 | player?.playImmediately(atRate: rate)
| `- warning: call to main actor-isolated instance method 'playImmediately(atRate:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
49 |
50 | retryEventProducer.stopProducingEvents()
AVFoundation.AVPlayer:12:15: note: calls to instance method 'playImmediately(atRate:)' from outside of its actor context are implicitly asynchronous
10 | nonisolated open var reasonForWaitingToPlay: AVPlayer.WaitingReason? { get }
11 | @available(macOS 10.12, *)
12 | open func playImmediately(atRate rate: Float)
| `- note: calls to instance method 'playImmediately(atRate:)' from outside of its actor context are implicitly asynchronous
13 | @available(macOS 10.12, *)
14 | @available(swift, obsoleted: 3, renamed: "playImmediately(atRate:)")
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAudioKit/Player/Extensions/AudioPlayer+Control.swift:85:21: warning: main actor-isolated property 'rate' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
79 |
80 | /// Stops the player and clear the queue.
81 | public func stop() {
| `- note: add '@MainActor' to make instance method 'stop()' part of global actor 'MainActor'
82 | retryEventProducer.stopProducingEvents()
83 |
84 | if let _ = player {
85 | player?.rate = 0
| `- warning: main actor-isolated property 'rate' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
86 | player = nil
87 | }
AVFoundation.AVPlayer:2:25: note: mutation of this property is only permitted within the actor
1 | extension AVPlayer {
2 | @MainActor open var rate: Float { get set }
| `- note: mutation of this property is only permitted within the actor
3 | @available(macOS 13.0, *)
4 | nonisolated open var defaultRate: Float { get set }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAudioKit/Player/Extensions/AudioPlayer+Control.swift:202:17: warning: capture of 'completionHandler' with non-sendable type '(Bool) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
200 | toleranceAfter: toleranceAfter,
201 | completionHandler: { [weak self] finished in
202 | completionHandler(finished)
| |- warning: capture of 'completionHandler' with non-sendable type '(Bool) -> 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'
203 | if let metadata = self?.currentItemDynamicMetadata() {
204 | self?.nowPlayableService?.handleNowPlayablePlaybackChange(
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAudioKit/Player/Extensions/AudioPlayer+Control.swift:203:35: warning: capture of 'self' with non-sendable type 'AudioPlayer?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
201 | completionHandler: { [weak self] finished in
202 | completionHandler(finished)
203 | if let metadata = self?.currentItemDynamicMetadata() {
| `- warning: capture of 'self' with non-sendable type 'AudioPlayer?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
204 | self?.nowPlayableService?.handleNowPlayablePlaybackChange(
205 | isPlaying: self?.state == .playing,
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAudioKit/Player/AudioPlayer.swift:15:14: note: class 'AudioPlayer' does not conform to the 'Sendable' protocol
13 | ///
14 | /// You can get events (such as state change or time observation) by registering a delegate.
15 | public class AudioPlayer: NSObject {
| `- note: class 'AudioPlayer' does not conform to the 'Sendable' protocol
16 | // MARK: Handlers
17 |
[17/37] Compiling SwiftAudioKit AudioItemQueue.swift
[18/37] Compiling SwiftAudioKit NowPlayableCommand.swift
[19/37] Compiling SwiftAudioKit NowPlayableError.swift
[20/37] Compiling SwiftAudioKit NowPlayableMetadata.swift
[21/37] Compiling SwiftAudioKit AudioPlayer+RetryEvent.swift
[22/37] Compiling SwiftAudioKit AudioPlayer+SeekEvent.swift
[23/37] Compiling SwiftAudioKit BackgroundHandler.swift
[24/37] Compiling SwiftAudioKit NowPlayableService.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAudioKit/NowPlayable/NowPlayableService.swift:126:55: warning: string interpolation produces a debug description for an optional value; did you mean to make this explicit?
124 | var nowPlayingInfo = [String: Any]()
125 |
126 | NSLog("%@", "**** Set track metadata: title \(metadata.title)")
| | |- 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?
127 | nowPlayingInfo[MPNowPlayingInfoPropertyAssetURL] = metadata.assetURL
128 | nowPlayingInfo[MPNowPlayingInfoPropertyMediaType] = metadata.mediaType.rawValue
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAudioKit/Player/AudioPlayer.swift:61:21: warning: main actor-isolated property 'rate' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
59 | }
60 | player?.volume = volume
61 | player?.rate = rate
| `- warning: main actor-isolated property 'rate' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
62 | updatePlayerForBufferingStrategy()
63 |
AVFoundation.AVPlayer:2:25: note: mutation of this property is only permitted within the actor
1 | extension AVPlayer {
2 | @MainActor open var rate: Float { get set }
| `- note: mutation of this property is only permitted within the actor
3 | @available(macOS 13.0, *)
4 | nonisolated open var defaultRate: Float { get set }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAudioKit/Player/AudioPlayer.swift:87:25: warning: main actor-isolated property 'rate' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
85 | if let currentItem {
86 | // Stops the current player
87 | player?.rate = 0
| `- warning: main actor-isolated property 'rate' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
88 | player = nil
89 |
AVFoundation.AVPlayer:2:25: note: mutation of this property is only permitted within the actor
1 | extension AVPlayer {
2 | @MainActor open var rate: Float { get set }
| `- note: mutation of this property is only permitted within the actor
3 | @available(macOS 13.0, *)
4 | nonisolated open var defaultRate: Float { get set }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAudioKit/Player/AudioPlayer.swift:124:25: warning: main actor-isolated property 'rate' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
122 | delegate?.audioPlayer(self, willStartPlaying: currentItem)
123 | }
124 | player?.rate = rate
| `- warning: main actor-isolated property 'rate' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
125 | } else {
126 | stop()
AVFoundation.AVPlayer:2:25: note: mutation of this property is only permitted within the actor
1 | extension AVPlayer {
2 | @MainActor open var rate: Float { get set }
| `- note: mutation of this property is only permitted within the actor
3 | @available(macOS 13.0, *)
4 | nonisolated open var defaultRate: Float { get set }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAudioKit/Player/AudioPlayer.swift:213:25: warning: main actor-isolated property 'rate' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
211 | didSet {
212 | if case .playing = state {
213 | player?.rate = rate
| `- warning: main actor-isolated property 'rate' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
214 | if let metadata = currentItemDynamicMetadata() {
215 | nowPlayableService?.handleNowPlayablePlaybackChange(isPlaying: state.isPlaying, metadata: metadata)
AVFoundation.AVPlayer:2:25: note: mutation of this property is only permitted within the actor
1 | extension AVPlayer {
2 | @MainActor open var rate: Float { get set }
| `- note: mutation of this property is only permitted within the actor
3 | @available(macOS 13.0, *)
4 | nonisolated open var defaultRate: Float { get set }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAudioKit/Player/AudioPlayer.swift:384:30: warning: main actor-isolated property 'rate' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
379 |
380 | /// Returns the current dynamic metadata for the currently playing item, including rate, position, and duration.
381 | func currentItemDynamicMetadata() -> NowPlayableDynamicMetadata? {
| `- note: add '@MainActor' to make instance method 'currentItemDynamicMetadata()' part of global actor 'MainActor'
382 | if let player, let currentItemDuration, let currentItemProgression {
383 | return NowPlayableDynamicMetadata(
384 | rate: player.rate,
| `- warning: main actor-isolated property 'rate' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
385 | position: Float(currentItemProgression),
386 | duration: Float(currentItemDuration),
AVFoundation.AVPlayer:2:25: note: property declared here
1 | extension AVPlayer {
2 | @MainActor open var rate: Float { get set }
| `- note: property declared here
3 | @available(macOS 13.0, *)
4 | nonisolated open var defaultRate: Float { get set }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAudioKit/Player/AudioPlayer.swift:523:21: warning: main actor-isolated property 'automaticallyWaitsToMinimizeStalling' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
519 | /// Updates the current player based on the current buffering strategy.
520 | /// Only has an effect on iOS 10+, tvOS 10+ and macOS 10.12+
521 | func updatePlayerForBufferingStrategy() {
| `- note: add '@MainActor' to make instance method 'updatePlayerForBufferingStrategy()' part of global actor 'MainActor'
522 | if #available(iOS 10.0, tvOS 10.0, OSX 10.12, *) {
523 | player?.automaticallyWaitsToMinimizeStalling = self.bufferingStrategy != .playWhenBufferNotEmpty
| `- warning: main actor-isolated property 'automaticallyWaitsToMinimizeStalling' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
524 | }
525 | }
AVFoundation.AVPlayer:3:25: note: mutation of this property is only permitted within the actor
1 | extension AVPlayer {
2 | @available(macOS 10.12, *)
3 | @MainActor open var automaticallyWaitsToMinimizeStalling: Bool { get set }
| `- note: mutation of this property is only permitted within the actor
4 | @available(macOS 10.8, *)
5 | open func setRate(_ rate: Float, time itemTime: CMTime, atHostTime hostClockTime: CMTime)
[25/37] Compiling SwiftAudioKit AudioPlayer.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAudioKit/NowPlayable/NowPlayableService.swift:126:55: warning: string interpolation produces a debug description for an optional value; did you mean to make this explicit?
124 | var nowPlayingInfo = [String: Any]()
125 |
126 | NSLog("%@", "**** Set track metadata: title \(metadata.title)")
| | |- 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?
127 | nowPlayingInfo[MPNowPlayingInfoPropertyAssetURL] = metadata.assetURL
128 | nowPlayingInfo[MPNowPlayingInfoPropertyMediaType] = metadata.mediaType.rawValue
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAudioKit/Player/AudioPlayer.swift:61:21: warning: main actor-isolated property 'rate' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
59 | }
60 | player?.volume = volume
61 | player?.rate = rate
| `- warning: main actor-isolated property 'rate' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
62 | updatePlayerForBufferingStrategy()
63 |
AVFoundation.AVPlayer:2:25: note: mutation of this property is only permitted within the actor
1 | extension AVPlayer {
2 | @MainActor open var rate: Float { get set }
| `- note: mutation of this property is only permitted within the actor
3 | @available(macOS 13.0, *)
4 | nonisolated open var defaultRate: Float { get set }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAudioKit/Player/AudioPlayer.swift:87:25: warning: main actor-isolated property 'rate' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
85 | if let currentItem {
86 | // Stops the current player
87 | player?.rate = 0
| `- warning: main actor-isolated property 'rate' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
88 | player = nil
89 |
AVFoundation.AVPlayer:2:25: note: mutation of this property is only permitted within the actor
1 | extension AVPlayer {
2 | @MainActor open var rate: Float { get set }
| `- note: mutation of this property is only permitted within the actor
3 | @available(macOS 13.0, *)
4 | nonisolated open var defaultRate: Float { get set }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAudioKit/Player/AudioPlayer.swift:124:25: warning: main actor-isolated property 'rate' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
122 | delegate?.audioPlayer(self, willStartPlaying: currentItem)
123 | }
124 | player?.rate = rate
| `- warning: main actor-isolated property 'rate' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
125 | } else {
126 | stop()
AVFoundation.AVPlayer:2:25: note: mutation of this property is only permitted within the actor
1 | extension AVPlayer {
2 | @MainActor open var rate: Float { get set }
| `- note: mutation of this property is only permitted within the actor
3 | @available(macOS 13.0, *)
4 | nonisolated open var defaultRate: Float { get set }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAudioKit/Player/AudioPlayer.swift:213:25: warning: main actor-isolated property 'rate' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
211 | didSet {
212 | if case .playing = state {
213 | player?.rate = rate
| `- warning: main actor-isolated property 'rate' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
214 | if let metadata = currentItemDynamicMetadata() {
215 | nowPlayableService?.handleNowPlayablePlaybackChange(isPlaying: state.isPlaying, metadata: metadata)
AVFoundation.AVPlayer:2:25: note: mutation of this property is only permitted within the actor
1 | extension AVPlayer {
2 | @MainActor open var rate: Float { get set }
| `- note: mutation of this property is only permitted within the actor
3 | @available(macOS 13.0, *)
4 | nonisolated open var defaultRate: Float { get set }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAudioKit/Player/AudioPlayer.swift:384:30: warning: main actor-isolated property 'rate' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
379 |
380 | /// Returns the current dynamic metadata for the currently playing item, including rate, position, and duration.
381 | func currentItemDynamicMetadata() -> NowPlayableDynamicMetadata? {
| `- note: add '@MainActor' to make instance method 'currentItemDynamicMetadata()' part of global actor 'MainActor'
382 | if let player, let currentItemDuration, let currentItemProgression {
383 | return NowPlayableDynamicMetadata(
384 | rate: player.rate,
| `- warning: main actor-isolated property 'rate' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
385 | position: Float(currentItemProgression),
386 | duration: Float(currentItemDuration),
AVFoundation.AVPlayer:2:25: note: property declared here
1 | extension AVPlayer {
2 | @MainActor open var rate: Float { get set }
| `- note: property declared here
3 | @available(macOS 13.0, *)
4 | nonisolated open var defaultRate: Float { get set }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAudioKit/Player/AudioPlayer.swift:523:21: warning: main actor-isolated property 'automaticallyWaitsToMinimizeStalling' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
519 | /// Updates the current player based on the current buffering strategy.
520 | /// Only has an effect on iOS 10+, tvOS 10+ and macOS 10.12+
521 | func updatePlayerForBufferingStrategy() {
| `- note: add '@MainActor' to make instance method 'updatePlayerForBufferingStrategy()' part of global actor 'MainActor'
522 | if #available(iOS 10.0, tvOS 10.0, OSX 10.12, *) {
523 | player?.automaticallyWaitsToMinimizeStalling = self.bufferingStrategy != .playWhenBufferNotEmpty
| `- warning: main actor-isolated property 'automaticallyWaitsToMinimizeStalling' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
524 | }
525 | }
AVFoundation.AVPlayer:3:25: note: mutation of this property is only permitted within the actor
1 | extension AVPlayer {
2 | @available(macOS 10.12, *)
3 | @MainActor open var automaticallyWaitsToMinimizeStalling: Bool { get set }
| `- note: mutation of this property is only permitted within the actor
4 | @available(macOS 10.8, *)
5 | open func setRate(_ rate: Float, time itemTime: CMTime, atHostTime hostClockTime: CMTime)
[26/37] Compiling SwiftAudioKit AudioPlayerBufferingStrategy.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAudioKit/NowPlayable/NowPlayableService.swift:126:55: warning: string interpolation produces a debug description for an optional value; did you mean to make this explicit?
124 | var nowPlayingInfo = [String: Any]()
125 |
126 | NSLog("%@", "**** Set track metadata: title \(metadata.title)")
| | |- 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?
127 | nowPlayingInfo[MPNowPlayingInfoPropertyAssetURL] = metadata.assetURL
128 | nowPlayingInfo[MPNowPlayingInfoPropertyMediaType] = metadata.mediaType.rawValue
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAudioKit/Player/AudioPlayer.swift:61:21: warning: main actor-isolated property 'rate' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
59 | }
60 | player?.volume = volume
61 | player?.rate = rate
| `- warning: main actor-isolated property 'rate' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
62 | updatePlayerForBufferingStrategy()
63 |
AVFoundation.AVPlayer:2:25: note: mutation of this property is only permitted within the actor
1 | extension AVPlayer {
2 | @MainActor open var rate: Float { get set }
| `- note: mutation of this property is only permitted within the actor
3 | @available(macOS 13.0, *)
4 | nonisolated open var defaultRate: Float { get set }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAudioKit/Player/AudioPlayer.swift:87:25: warning: main actor-isolated property 'rate' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
85 | if let currentItem {
86 | // Stops the current player
87 | player?.rate = 0
| `- warning: main actor-isolated property 'rate' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
88 | player = nil
89 |
AVFoundation.AVPlayer:2:25: note: mutation of this property is only permitted within the actor
1 | extension AVPlayer {
2 | @MainActor open var rate: Float { get set }
| `- note: mutation of this property is only permitted within the actor
3 | @available(macOS 13.0, *)
4 | nonisolated open var defaultRate: Float { get set }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAudioKit/Player/AudioPlayer.swift:124:25: warning: main actor-isolated property 'rate' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
122 | delegate?.audioPlayer(self, willStartPlaying: currentItem)
123 | }
124 | player?.rate = rate
| `- warning: main actor-isolated property 'rate' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
125 | } else {
126 | stop()
AVFoundation.AVPlayer:2:25: note: mutation of this property is only permitted within the actor
1 | extension AVPlayer {
2 | @MainActor open var rate: Float { get set }
| `- note: mutation of this property is only permitted within the actor
3 | @available(macOS 13.0, *)
4 | nonisolated open var defaultRate: Float { get set }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAudioKit/Player/AudioPlayer.swift:213:25: warning: main actor-isolated property 'rate' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
211 | didSet {
212 | if case .playing = state {
213 | player?.rate = rate
| `- warning: main actor-isolated property 'rate' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
214 | if let metadata = currentItemDynamicMetadata() {
215 | nowPlayableService?.handleNowPlayablePlaybackChange(isPlaying: state.isPlaying, metadata: metadata)
AVFoundation.AVPlayer:2:25: note: mutation of this property is only permitted within the actor
1 | extension AVPlayer {
2 | @MainActor open var rate: Float { get set }
| `- note: mutation of this property is only permitted within the actor
3 | @available(macOS 13.0, *)
4 | nonisolated open var defaultRate: Float { get set }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAudioKit/Player/AudioPlayer.swift:384:30: warning: main actor-isolated property 'rate' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
379 |
380 | /// Returns the current dynamic metadata for the currently playing item, including rate, position, and duration.
381 | func currentItemDynamicMetadata() -> NowPlayableDynamicMetadata? {
| `- note: add '@MainActor' to make instance method 'currentItemDynamicMetadata()' part of global actor 'MainActor'
382 | if let player, let currentItemDuration, let currentItemProgression {
383 | return NowPlayableDynamicMetadata(
384 | rate: player.rate,
| `- warning: main actor-isolated property 'rate' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
385 | position: Float(currentItemProgression),
386 | duration: Float(currentItemDuration),
AVFoundation.AVPlayer:2:25: note: property declared here
1 | extension AVPlayer {
2 | @MainActor open var rate: Float { get set }
| `- note: property declared here
3 | @available(macOS 13.0, *)
4 | nonisolated open var defaultRate: Float { get set }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAudioKit/Player/AudioPlayer.swift:523:21: warning: main actor-isolated property 'automaticallyWaitsToMinimizeStalling' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
519 | /// Updates the current player based on the current buffering strategy.
520 | /// Only has an effect on iOS 10+, tvOS 10+ and macOS 10.12+
521 | func updatePlayerForBufferingStrategy() {
| `- note: add '@MainActor' to make instance method 'updatePlayerForBufferingStrategy()' part of global actor 'MainActor'
522 | if #available(iOS 10.0, tvOS 10.0, OSX 10.12, *) {
523 | player?.automaticallyWaitsToMinimizeStalling = self.bufferingStrategy != .playWhenBufferNotEmpty
| `- warning: main actor-isolated property 'automaticallyWaitsToMinimizeStalling' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
524 | }
525 | }
AVFoundation.AVPlayer:3:25: note: mutation of this property is only permitted within the actor
1 | extension AVPlayer {
2 | @available(macOS 10.12, *)
3 | @MainActor open var automaticallyWaitsToMinimizeStalling: Bool { get set }
| `- note: mutation of this property is only permitted within the actor
4 | @available(macOS 10.8, *)
5 | open func setRate(_ rate: Float, time itemTime: CMTime, atHostTime hostClockTime: CMTime)
[27/37] Compiling SwiftAudioKit AudioPlayerDelegate.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAudioKit/NowPlayable/NowPlayableService.swift:126:55: warning: string interpolation produces a debug description for an optional value; did you mean to make this explicit?
124 | var nowPlayingInfo = [String: Any]()
125 |
126 | NSLog("%@", "**** Set track metadata: title \(metadata.title)")
| | |- 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?
127 | nowPlayingInfo[MPNowPlayingInfoPropertyAssetURL] = metadata.assetURL
128 | nowPlayingInfo[MPNowPlayingInfoPropertyMediaType] = metadata.mediaType.rawValue
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAudioKit/Player/AudioPlayer.swift:61:21: warning: main actor-isolated property 'rate' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
59 | }
60 | player?.volume = volume
61 | player?.rate = rate
| `- warning: main actor-isolated property 'rate' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
62 | updatePlayerForBufferingStrategy()
63 |
AVFoundation.AVPlayer:2:25: note: mutation of this property is only permitted within the actor
1 | extension AVPlayer {
2 | @MainActor open var rate: Float { get set }
| `- note: mutation of this property is only permitted within the actor
3 | @available(macOS 13.0, *)
4 | nonisolated open var defaultRate: Float { get set }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAudioKit/Player/AudioPlayer.swift:87:25: warning: main actor-isolated property 'rate' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
85 | if let currentItem {
86 | // Stops the current player
87 | player?.rate = 0
| `- warning: main actor-isolated property 'rate' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
88 | player = nil
89 |
AVFoundation.AVPlayer:2:25: note: mutation of this property is only permitted within the actor
1 | extension AVPlayer {
2 | @MainActor open var rate: Float { get set }
| `- note: mutation of this property is only permitted within the actor
3 | @available(macOS 13.0, *)
4 | nonisolated open var defaultRate: Float { get set }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAudioKit/Player/AudioPlayer.swift:124:25: warning: main actor-isolated property 'rate' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
122 | delegate?.audioPlayer(self, willStartPlaying: currentItem)
123 | }
124 | player?.rate = rate
| `- warning: main actor-isolated property 'rate' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
125 | } else {
126 | stop()
AVFoundation.AVPlayer:2:25: note: mutation of this property is only permitted within the actor
1 | extension AVPlayer {
2 | @MainActor open var rate: Float { get set }
| `- note: mutation of this property is only permitted within the actor
3 | @available(macOS 13.0, *)
4 | nonisolated open var defaultRate: Float { get set }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAudioKit/Player/AudioPlayer.swift:213:25: warning: main actor-isolated property 'rate' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
211 | didSet {
212 | if case .playing = state {
213 | player?.rate = rate
| `- warning: main actor-isolated property 'rate' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
214 | if let metadata = currentItemDynamicMetadata() {
215 | nowPlayableService?.handleNowPlayablePlaybackChange(isPlaying: state.isPlaying, metadata: metadata)
AVFoundation.AVPlayer:2:25: note: mutation of this property is only permitted within the actor
1 | extension AVPlayer {
2 | @MainActor open var rate: Float { get set }
| `- note: mutation of this property is only permitted within the actor
3 | @available(macOS 13.0, *)
4 | nonisolated open var defaultRate: Float { get set }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAudioKit/Player/AudioPlayer.swift:384:30: warning: main actor-isolated property 'rate' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
379 |
380 | /// Returns the current dynamic metadata for the currently playing item, including rate, position, and duration.
381 | func currentItemDynamicMetadata() -> NowPlayableDynamicMetadata? {
| `- note: add '@MainActor' to make instance method 'currentItemDynamicMetadata()' part of global actor 'MainActor'
382 | if let player, let currentItemDuration, let currentItemProgression {
383 | return NowPlayableDynamicMetadata(
384 | rate: player.rate,
| `- warning: main actor-isolated property 'rate' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
385 | position: Float(currentItemProgression),
386 | duration: Float(currentItemDuration),
AVFoundation.AVPlayer:2:25: note: property declared here
1 | extension AVPlayer {
2 | @MainActor open var rate: Float { get set }
| `- note: property declared here
3 | @available(macOS 13.0, *)
4 | nonisolated open var defaultRate: Float { get set }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAudioKit/Player/AudioPlayer.swift:523:21: warning: main actor-isolated property 'automaticallyWaitsToMinimizeStalling' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
519 | /// Updates the current player based on the current buffering strategy.
520 | /// Only has an effect on iOS 10+, tvOS 10+ and macOS 10.12+
521 | func updatePlayerForBufferingStrategy() {
| `- note: add '@MainActor' to make instance method 'updatePlayerForBufferingStrategy()' part of global actor 'MainActor'
522 | if #available(iOS 10.0, tvOS 10.0, OSX 10.12, *) {
523 | player?.automaticallyWaitsToMinimizeStalling = self.bufferingStrategy != .playWhenBufferNotEmpty
| `- warning: main actor-isolated property 'automaticallyWaitsToMinimizeStalling' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
524 | }
525 | }
AVFoundation.AVPlayer:3:25: note: mutation of this property is only permitted within the actor
1 | extension AVPlayer {
2 | @available(macOS 10.12, *)
3 | @MainActor open var automaticallyWaitsToMinimizeStalling: Bool { get set }
| `- note: mutation of this property is only permitted within the actor
4 | @available(macOS 10.8, *)
5 | open func setRate(_ rate: Float, time itemTime: CMTime, atHostTime hostClockTime: CMTime)
[28/37] Compiling SwiftAudioKit QualityAdjustmentEventProducer.swift
[29/37] Compiling SwiftAudioKit RetryEventProducer.swift
[30/37] Compiling SwiftAudioKit SeekEventProducer.swift
[31/37] Compiling SwiftAudioKit AudioItem.swift
[32/37] Compiling SwiftAudioKit AudioPlayer+PlayerEvent.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAudioKit/Player/Extensions/AudioPlayer+PlayerEvent.swift:157:21: warning: main actor-isolated property 'rate' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
151 |
152 | /// Handles the `readyToPlay` event.
153 | private func handleReadyToPlay() {
| `- note: add '@MainActor' to make instance method 'handleReadyToPlay()' part of global actor 'MainActor'
154 | if shouldResumePlaying {
155 | stateBeforeBuffering = nil
156 | state = .playing
157 | player?.rate = rate
| `- warning: main actor-isolated property 'rate' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
158 | playImmediately()
159 | } else {
AVFoundation.AVPlayer:2:25: note: mutation of this property is only permitted within the actor
1 | extension AVPlayer {
2 | @MainActor open var rate: Float { get set }
| `- note: mutation of this property is only permitted within the actor
3 | @available(macOS 13.0, *)
4 | nonisolated open var defaultRate: Float { get set }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAudioKit/Player/Extensions/AudioPlayer+PlayerEvent.swift:160:21: warning: main actor-isolated property 'rate' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
151 |
152 | /// Handles the `readyToPlay` event.
153 | private func handleReadyToPlay() {
| `- note: add '@MainActor' to make instance method 'handleReadyToPlay()' part of global actor 'MainActor'
154 | if shouldResumePlaying {
155 | stateBeforeBuffering = nil
:
158 | playImmediately()
159 | } else {
160 | player?.rate = 0
| `- warning: main actor-isolated property 'rate' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
161 | state = .paused
162 | }
AVFoundation.AVPlayer:2:25: note: mutation of this property is only permitted within the actor
1 | extension AVPlayer {
2 | @MainActor open var rate: Float { get set }
| `- note: mutation of this property is only permitted within the actor
3 | @available(macOS 13.0, *)
4 | nonisolated open var defaultRate: Float { get set }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAudioKit/Player/Extensions/AudioPlayer+PlayerEvent.swift:207:21: warning: main actor-isolated property 'rate' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
201 |
202 | /// Handles the state when buffering or paused during progression update.
203 | private func handleBufferingOrPausedState() {
| `- note: add '@MainActor' to make instance method 'handleBufferingOrPausedState()' part of global actor 'MainActor'
204 | if shouldResumePlaying {
205 | stateBeforeBuffering = nil
206 | state = .playing
207 | player?.rate = rate
| `- warning: main actor-isolated property 'rate' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
208 | } else {
209 | player?.rate = 0
AVFoundation.AVPlayer:2:25: note: mutation of this property is only permitted within the actor
1 | extension AVPlayer {
2 | @MainActor open var rate: Float { get set }
| `- note: mutation of this property is only permitted within the actor
3 | @available(macOS 13.0, *)
4 | nonisolated open var defaultRate: Float { get set }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAudioKit/Player/Extensions/AudioPlayer+PlayerEvent.swift:209:21: warning: main actor-isolated property 'rate' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
201 |
202 | /// Handles the state when buffering or paused during progression update.
203 | private func handleBufferingOrPausedState() {
| `- note: add '@MainActor' to make instance method 'handleBufferingOrPausedState()' part of global actor 'MainActor'
204 | if shouldResumePlaying {
205 | stateBeforeBuffering = nil
:
207 | player?.rate = rate
208 | } else {
209 | player?.rate = 0
| `- warning: main actor-isolated property 'rate' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
210 | state = .paused
211 | }
AVFoundation.AVPlayer:2:25: note: mutation of this property is only permitted within the actor
1 | extension AVPlayer {
2 | @MainActor open var rate: Float { get set }
| `- note: mutation of this property is only permitted within the actor
3 | @available(macOS 13.0, *)
4 | nonisolated open var defaultRate: Float { get set }
[33/37] Compiling SwiftAudioKit AudioPlayer+QualityAdjustmentEvent.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAudioKit/Player/Extensions/AudioPlayer+PlayerEvent.swift:157:21: warning: main actor-isolated property 'rate' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
151 |
152 | /// Handles the `readyToPlay` event.
153 | private func handleReadyToPlay() {
| `- note: add '@MainActor' to make instance method 'handleReadyToPlay()' part of global actor 'MainActor'
154 | if shouldResumePlaying {
155 | stateBeforeBuffering = nil
156 | state = .playing
157 | player?.rate = rate
| `- warning: main actor-isolated property 'rate' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
158 | playImmediately()
159 | } else {
AVFoundation.AVPlayer:2:25: note: mutation of this property is only permitted within the actor
1 | extension AVPlayer {
2 | @MainActor open var rate: Float { get set }
| `- note: mutation of this property is only permitted within the actor
3 | @available(macOS 13.0, *)
4 | nonisolated open var defaultRate: Float { get set }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAudioKit/Player/Extensions/AudioPlayer+PlayerEvent.swift:160:21: warning: main actor-isolated property 'rate' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
151 |
152 | /// Handles the `readyToPlay` event.
153 | private func handleReadyToPlay() {
| `- note: add '@MainActor' to make instance method 'handleReadyToPlay()' part of global actor 'MainActor'
154 | if shouldResumePlaying {
155 | stateBeforeBuffering = nil
:
158 | playImmediately()
159 | } else {
160 | player?.rate = 0
| `- warning: main actor-isolated property 'rate' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
161 | state = .paused
162 | }
AVFoundation.AVPlayer:2:25: note: mutation of this property is only permitted within the actor
1 | extension AVPlayer {
2 | @MainActor open var rate: Float { get set }
| `- note: mutation of this property is only permitted within the actor
3 | @available(macOS 13.0, *)
4 | nonisolated open var defaultRate: Float { get set }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAudioKit/Player/Extensions/AudioPlayer+PlayerEvent.swift:207:21: warning: main actor-isolated property 'rate' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
201 |
202 | /// Handles the state when buffering or paused during progression update.
203 | private func handleBufferingOrPausedState() {
| `- note: add '@MainActor' to make instance method 'handleBufferingOrPausedState()' part of global actor 'MainActor'
204 | if shouldResumePlaying {
205 | stateBeforeBuffering = nil
206 | state = .playing
207 | player?.rate = rate
| `- warning: main actor-isolated property 'rate' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
208 | } else {
209 | player?.rate = 0
AVFoundation.AVPlayer:2:25: note: mutation of this property is only permitted within the actor
1 | extension AVPlayer {
2 | @MainActor open var rate: Float { get set }
| `- note: mutation of this property is only permitted within the actor
3 | @available(macOS 13.0, *)
4 | nonisolated open var defaultRate: Float { get set }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAudioKit/Player/Extensions/AudioPlayer+PlayerEvent.swift:209:21: warning: main actor-isolated property 'rate' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
201 |
202 | /// Handles the state when buffering or paused during progression update.
203 | private func handleBufferingOrPausedState() {
| `- note: add '@MainActor' to make instance method 'handleBufferingOrPausedState()' part of global actor 'MainActor'
204 | if shouldResumePlaying {
205 | stateBeforeBuffering = nil
:
207 | player?.rate = rate
208 | } else {
209 | player?.rate = 0
| `- warning: main actor-isolated property 'rate' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
210 | state = .paused
211 | }
AVFoundation.AVPlayer:2:25: note: mutation of this property is only permitted within the actor
1 | extension AVPlayer {
2 | @MainActor open var rate: Float { get set }
| `- note: mutation of this property is only permitted within the actor
3 | @available(macOS 13.0, *)
4 | nonisolated open var defaultRate: Float { get set }
[34/37] Compiling SwiftAudioKit AudioPlayer+Queue.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAudioKit/Player/Extensions/AudioPlayer+PlayerEvent.swift:157:21: warning: main actor-isolated property 'rate' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
151 |
152 | /// Handles the `readyToPlay` event.
153 | private func handleReadyToPlay() {
| `- note: add '@MainActor' to make instance method 'handleReadyToPlay()' part of global actor 'MainActor'
154 | if shouldResumePlaying {
155 | stateBeforeBuffering = nil
156 | state = .playing
157 | player?.rate = rate
| `- warning: main actor-isolated property 'rate' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
158 | playImmediately()
159 | } else {
AVFoundation.AVPlayer:2:25: note: mutation of this property is only permitted within the actor
1 | extension AVPlayer {
2 | @MainActor open var rate: Float { get set }
| `- note: mutation of this property is only permitted within the actor
3 | @available(macOS 13.0, *)
4 | nonisolated open var defaultRate: Float { get set }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAudioKit/Player/Extensions/AudioPlayer+PlayerEvent.swift:160:21: warning: main actor-isolated property 'rate' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
151 |
152 | /// Handles the `readyToPlay` event.
153 | private func handleReadyToPlay() {
| `- note: add '@MainActor' to make instance method 'handleReadyToPlay()' part of global actor 'MainActor'
154 | if shouldResumePlaying {
155 | stateBeforeBuffering = nil
:
158 | playImmediately()
159 | } else {
160 | player?.rate = 0
| `- warning: main actor-isolated property 'rate' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
161 | state = .paused
162 | }
AVFoundation.AVPlayer:2:25: note: mutation of this property is only permitted within the actor
1 | extension AVPlayer {
2 | @MainActor open var rate: Float { get set }
| `- note: mutation of this property is only permitted within the actor
3 | @available(macOS 13.0, *)
4 | nonisolated open var defaultRate: Float { get set }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAudioKit/Player/Extensions/AudioPlayer+PlayerEvent.swift:207:21: warning: main actor-isolated property 'rate' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
201 |
202 | /// Handles the state when buffering or paused during progression update.
203 | private func handleBufferingOrPausedState() {
| `- note: add '@MainActor' to make instance method 'handleBufferingOrPausedState()' part of global actor 'MainActor'
204 | if shouldResumePlaying {
205 | stateBeforeBuffering = nil
206 | state = .playing
207 | player?.rate = rate
| `- warning: main actor-isolated property 'rate' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
208 | } else {
209 | player?.rate = 0
AVFoundation.AVPlayer:2:25: note: mutation of this property is only permitted within the actor
1 | extension AVPlayer {
2 | @MainActor open var rate: Float { get set }
| `- note: mutation of this property is only permitted within the actor
3 | @available(macOS 13.0, *)
4 | nonisolated open var defaultRate: Float { get set }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAudioKit/Player/Extensions/AudioPlayer+PlayerEvent.swift:209:21: warning: main actor-isolated property 'rate' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
201 |
202 | /// Handles the state when buffering or paused during progression update.
203 | private func handleBufferingOrPausedState() {
| `- note: add '@MainActor' to make instance method 'handleBufferingOrPausedState()' part of global actor 'MainActor'
204 | if shouldResumePlaying {
205 | stateBeforeBuffering = nil
:
207 | player?.rate = rate
208 | } else {
209 | player?.rate = 0
| `- warning: main actor-isolated property 'rate' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
210 | state = .paused
211 | }
AVFoundation.AVPlayer:2:25: note: mutation of this property is only permitted within the actor
1 | extension AVPlayer {
2 | @MainActor open var rate: Float { get set }
| `- note: mutation of this property is only permitted within the actor
3 | @available(macOS 13.0, *)
4 | nonisolated open var defaultRate: Float { get set }
[35/37] Compiling SwiftAudioKit CMTime+TimeIntervalValue.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAudioKit/Utils/PlayheadProgressPublisher.swift:71:17: warning: capture of 'self' with non-sendable type 'Publishers.PlayheadProgressSubscription<S>?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
39 | }
40 |
41 | private final class PlayheadProgressSubscription<S: Subscriber>: Subscription where S.Input == TimeInterval {
| `- note: generic class 'PlayheadProgressSubscription' does not conform to the 'Sendable' protocol
42 | private var subscriber: S?
43 | private var requested: Subscribers.Demand = .none
:
69 | let interval = CMTime(seconds: self.interval, preferredTimescale: CMTimeScale(NSEC_PER_SEC))
70 | timeObserverToken = player.addPeriodicTimeObserver(forInterval: interval, queue: DispatchQueue.main) { [weak self] time in
71 | self?.sendValue(time)
| `- warning: capture of 'self' with non-sendable type 'Publishers.PlayheadProgressSubscription<S>?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
72 | }
73 | }
[36/37] Compiling SwiftAudioKit MPNowPlayingInfoCenter+AudioItem.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAudioKit/Utils/PlayheadProgressPublisher.swift:71:17: warning: capture of 'self' with non-sendable type 'Publishers.PlayheadProgressSubscription<S>?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
39 | }
40 |
41 | private final class PlayheadProgressSubscription<S: Subscriber>: Subscription where S.Input == TimeInterval {
| `- note: generic class 'PlayheadProgressSubscription' does not conform to the 'Sendable' protocol
42 | private var subscriber: S?
43 | private var requested: Subscribers.Demand = .none
:
69 | let interval = CMTime(seconds: self.interval, preferredTimescale: CMTimeScale(NSEC_PER_SEC))
70 | timeObserverToken = player.addPeriodicTimeObserver(forInterval: interval, queue: DispatchQueue.main) { [weak self] time in
71 | self?.sendValue(time)
| `- warning: capture of 'self' with non-sendable type 'Publishers.PlayheadProgressSubscription<S>?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
72 | }
73 | }
[37/37] Compiling SwiftAudioKit PlayheadProgressPublisher.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAudioKit/Utils/PlayheadProgressPublisher.swift:71:17: warning: capture of 'self' with non-sendable type 'Publishers.PlayheadProgressSubscription<S>?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
39 | }
40 |
41 | private final class PlayheadProgressSubscription<S: Subscriber>: Subscription where S.Input == TimeInterval {
| `- note: generic class 'PlayheadProgressSubscription' does not conform to the 'Sendable' protocol
42 | private var subscriber: S?
43 | private var requested: Subscribers.Demand = .none
:
69 | let interval = CMTime(seconds: self.interval, preferredTimescale: CMTimeScale(NSEC_PER_SEC))
70 | timeObserverToken = player.addPeriodicTimeObserver(forInterval: interval, queue: DispatchQueue.main) { [weak self] time in
71 | self?.sendValue(time)
| `- warning: capture of 'self' with non-sendable type 'Publishers.PlayheadProgressSubscription<S>?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
72 | }
73 | }
Build complete! (19.06s)
Build complete.
{
"dependencies" : [
],
"manifest_display_name" : "SwiftAudioKit",
"name" : "SwiftAudioKit",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
{
"name" : "macos",
"version" : "10.15"
},
{
"name" : "ios",
"version" : "13.0"
},
{
"name" : "tvos",
"version" : "13.0"
},
{
"name" : "watchos",
"version" : "6.0"
}
],
"products" : [
{
"name" : "SwiftAudioKit",
"targets" : [
"SwiftAudioKit"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "SwiftAudioKitTests",
"module_type" : "SwiftTarget",
"name" : "SwiftAudioKitTests",
"path" : "Tests/SwiftAudioKitTests",
"resources" : [
{
"path" : "/Users/admin/builder/spi-builder-workspace/Tests/SwiftAudioKitTests/fakes/image.png",
"rule" : {
"copy" : {
}
}
}
],
"sources" : [
"AudioItemEventProducer_Tests.swift",
"AudioItemQueue_Tests.swift",
"AudioItem_Tests.swift",
"AudioPlayer+PlayerEvent_Tests.swift",
"AudioPlayer+SeekEvent_Tests.swift",
"AudioPlayerState_Tests.swift",
"BackgroundHandler_Tests.swift",
"NetworkEventProducer_Tests.swift",
"PlayerEventProducer_Tests.swift",
"QualityAdjustmentEventProducer_Tests.swift",
"RetryEventProducer_Tests.swift",
"SeekEventProducer_Tests.swift",
"URL+Offline_Tests.swift",
"fakes/Mocks.swift"
],
"target_dependencies" : [
"SwiftAudioKit"
],
"type" : "test"
},
{
"c99name" : "SwiftAudioKit",
"module_type" : "SwiftTarget",
"name" : "SwiftAudioKit",
"path" : "Sources/SwiftAudioKit",
"product_memberships" : [
"SwiftAudioKit"
],
"sources" : [
"Event/AudioItemEventProducer.swift",
"Event/EventProducer.swift",
"Event/NetworkEventProducer.swift",
"Event/PlayerEventProducer.swift",
"Event/QualityAdjustmentEventProducer.swift",
"Event/RetryEventProducer.swift",
"Event/SeekEventProducer.swift",
"Item/AudioItem.swift",
"Item/AudioItemQueue.swift",
"NowPlayable/NowPlayableCommand.swift",
"NowPlayable/NowPlayableError.swift",
"NowPlayable/NowPlayableMetadata.swift",
"NowPlayable/NowPlayableService.swift",
"Player/AudioPlayer.swift",
"Player/AudioPlayerBufferingStrategy.swift",
"Player/AudioPlayerDelegate.swift",
"Player/AudioPlayerMode.swift",
"Player/AudioPlayerState.swift",
"Player/Extensions/AudioPlayer+AudioItemEvent.swift",
"Player/Extensions/AudioPlayer+Control.swift",
"Player/Extensions/AudioPlayer+CurrentItem.swift",
"Player/Extensions/AudioPlayer+NetworkEvent.swift",
"Player/Extensions/AudioPlayer+PlayerEvent.swift",
"Player/Extensions/AudioPlayer+QualityAdjustmentEvent.swift",
"Player/Extensions/AudioPlayer+Queue.swift",
"Player/Extensions/AudioPlayer+RetryEvent.swift",
"Player/Extensions/AudioPlayer+SeekEvent.swift",
"Utils/BackgroundHandler.swift",
"Utils/CMTime+TimeIntervalValue.swift",
"Utils/MPNowPlayingInfoCenter+AudioItem.swift",
"Utils/PlayheadProgressPublisher.swift",
"Utils/Reachability.swift",
"Utils/SynchronizedLock.swift",
"Utils/URL+Offline.swift"
],
"type" : "library"
}
],
"tools_version" : "5.10"
}
Done.