The Swift Package Index logo.Swift Package Index

Has it really been five years since Swift Package Index launched? Read our anniversary blog post!

Build Information

Successful build of SwiftAudioKit, reference 1.0.5 (de8b21), with Swift 6.0 for macOS (SPM) on 22 Mar 2025 22:46:40 UTC.

Swift 6 data race errors: 6

Build Command

env DEVELOPER_DIR=/Applications/Xcode-16.2.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures

Build Log

========================================
RunAll
========================================
Builder version: 4.60.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/dioKaratzas/swift-audio-kit.git
Reference: 1.0.5
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/dioKaratzas/swift-audio-kit
 * tag               1.0.5      -> FETCH_HEAD
HEAD is now at de8b216 fix: invalid beginBackgroundTask()
Cloned https://github.com/dioKaratzas/swift-audio-kit.git
Revision (git rev-parse @):
de8b216791cc08c8760ff4dde482dc24aa055ba0
SUCCESS checkout https://github.com/dioKaratzas/swift-audio-kit.git at 1.0.5
========================================
ResolveProductDependencies
========================================
Resolving dependencies ...
{
  "identity": ".resolve-product-dependencies",
  "name": "resolve-dependencies",
  "url": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
  "version": "unspecified",
  "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
  "dependencies": [
    {
      "identity": "swift-audio-kit",
      "name": "SwiftAudioKit",
      "url": "https://github.com/dioKaratzas/swift-audio-kit.git",
      "version": "unspecified",
      "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/swift-audio-kit",
      "dependencies": [
      ]
    }
  ]
}
Fetching https://github.com/dioKaratzas/swift-audio-kit.git
[1/710] Fetching swift-audio-kit
Fetched https://github.com/dioKaratzas/swift-audio-kit.git from cache (0.86s)
Creating working copy for https://github.com/dioKaratzas/swift-audio-kit.git
Working copy of https://github.com/dioKaratzas/swift-audio-kit.git resolved at 1.0.5 (de8b216)
warning: '.resolve-product-dependencies': dependency 'swift-audio-kit' is not used by any target
Found 0 product dependencies
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.0
Building package at path:  $PWD
https://github.com/dioKaratzas/swift-audio-kit.git
https://github.com/dioKaratzas/swift-audio-kit.git
{
  "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"
}
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.2.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-5BDAB9E9C0126B9D.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:59: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
 57 |             }
 58 |             player?.volume = volume
 59 |             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
 60 |             updatePlayerForBufferingStrategy()
 61 |
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:85: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
 83 |             if let currentItem {
 84 |                 // Stops the current 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/AudioPlayer.swift:122: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
120 |                     delegate?.audioPlayer(self, willStartPlaying: currentItem)
121 |                 }
122 |                 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
123 |             } else {
124 |                 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:211: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
209 |         didSet {
210 |             if case .playing = state {
211 |                 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
212 |                 if let metadata = currentItemDynamicMetadata() {
213 |                     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 AudioPlayer+RetryEvent.swift
[5/37] Compiling SwiftAudioKit AudioPlayer+SeekEvent.swift
[6/37] Compiling SwiftAudioKit BackgroundHandler.swift
[7/37] Compiling SwiftAudioKit Reachability.swift
/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 | }
[8/37] Compiling SwiftAudioKit SynchronizedLock.swift
/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 | }
[9/37] Compiling SwiftAudioKit URL+Offline.swift
/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 | }
[10/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(_:)")
[11/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(_:)")
[12/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(_:)")
[13/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(_:)")
[14/37] Compiling SwiftAudioKit AudioItemQueue.swift
[15/37] Compiling SwiftAudioKit NowPlayableCommand.swift
[16/37] Compiling SwiftAudioKit NowPlayableError.swift
[17/37] Compiling SwiftAudioKit NowPlayableMetadata.swift
[18/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
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
    |                 `- 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
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
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 |
[19/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
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
    |                 `- 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
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
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 |
[20/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
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
    |                 `- 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
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
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 |
[21/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 }
[22/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 }
[23/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 }
[24/37] Compiling SwiftAudioKit NowPlayableService.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAudioKit/Player/AudioPlayer.swift:59: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
 57 |             }
 58 |             player?.volume = volume
 59 |             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
 60 |             updatePlayerForBufferingStrategy()
 61 |
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:85: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
 83 |             if let currentItem {
 84 |                 // Stops the current 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/AudioPlayer.swift:122: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
120 |                     delegate?.audioPlayer(self, willStartPlaying: currentItem)
121 |                 }
122 |                 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
123 |             } else {
124 |                 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:211: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
209 |         didSet {
210 |             if case .playing = state {
211 |                 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
212 |                 if let metadata = currentItemDynamicMetadata() {
213 |                     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:400: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
395 |
396 |     /// Returns the current dynamic metadata for the currently playing item, including rate, position, and duration.
397 |     func currentItemDynamicMetadata() -> NowPlayableDynamicMetadata? {
    |          `- note: add '@MainActor' to make instance method 'currentItemDynamicMetadata()' part of global actor 'MainActor'
398 |         if let player, let currentItemDuration, let currentItemProgression {
399 |             return NowPlayableDynamicMetadata(
400 |                 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
401 |                 position: Float(currentItemProgression),
402 |                 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:539: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
535 |     /// Updates the current player based on the current buffering strategy.
536 |     /// Only has an effect on iOS 10+, tvOS 10+ and macOS 10.12+
537 |     func updatePlayerForBufferingStrategy() {
    |          `- note: add '@MainActor' to make instance method 'updatePlayerForBufferingStrategy()' part of global actor 'MainActor'
538 |         if #available(iOS 10.0, tvOS 10.0, OSX 10.12, *) {
539 |             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
540 |         }
541 |     }
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/Player/AudioPlayer.swift:59: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
 57 |             }
 58 |             player?.volume = volume
 59 |             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
 60 |             updatePlayerForBufferingStrategy()
 61 |
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:85: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
 83 |             if let currentItem {
 84 |                 // Stops the current 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/AudioPlayer.swift:122: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
120 |                     delegate?.audioPlayer(self, willStartPlaying: currentItem)
121 |                 }
122 |                 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
123 |             } else {
124 |                 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:211: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
209 |         didSet {
210 |             if case .playing = state {
211 |                 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
212 |                 if let metadata = currentItemDynamicMetadata() {
213 |                     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:400: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
395 |
396 |     /// Returns the current dynamic metadata for the currently playing item, including rate, position, and duration.
397 |     func currentItemDynamicMetadata() -> NowPlayableDynamicMetadata? {
    |          `- note: add '@MainActor' to make instance method 'currentItemDynamicMetadata()' part of global actor 'MainActor'
398 |         if let player, let currentItemDuration, let currentItemProgression {
399 |             return NowPlayableDynamicMetadata(
400 |                 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
401 |                 position: Float(currentItemProgression),
402 |                 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:539: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
535 |     /// Updates the current player based on the current buffering strategy.
536 |     /// Only has an effect on iOS 10+, tvOS 10+ and macOS 10.12+
537 |     func updatePlayerForBufferingStrategy() {
    |          `- note: add '@MainActor' to make instance method 'updatePlayerForBufferingStrategy()' part of global actor 'MainActor'
538 |         if #available(iOS 10.0, tvOS 10.0, OSX 10.12, *) {
539 |             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
540 |         }
541 |     }
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/Player/AudioPlayer.swift:59: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
 57 |             }
 58 |             player?.volume = volume
 59 |             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
 60 |             updatePlayerForBufferingStrategy()
 61 |
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:85: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
 83 |             if let currentItem {
 84 |                 // Stops the current 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/AudioPlayer.swift:122: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
120 |                     delegate?.audioPlayer(self, willStartPlaying: currentItem)
121 |                 }
122 |                 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
123 |             } else {
124 |                 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:211: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
209 |         didSet {
210 |             if case .playing = state {
211 |                 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
212 |                 if let metadata = currentItemDynamicMetadata() {
213 |                     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:400: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
395 |
396 |     /// Returns the current dynamic metadata for the currently playing item, including rate, position, and duration.
397 |     func currentItemDynamicMetadata() -> NowPlayableDynamicMetadata? {
    |          `- note: add '@MainActor' to make instance method 'currentItemDynamicMetadata()' part of global actor 'MainActor'
398 |         if let player, let currentItemDuration, let currentItemProgression {
399 |             return NowPlayableDynamicMetadata(
400 |                 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
401 |                 position: Float(currentItemProgression),
402 |                 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:539: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
535 |     /// Updates the current player based on the current buffering strategy.
536 |     /// Only has an effect on iOS 10+, tvOS 10+ and macOS 10.12+
537 |     func updatePlayerForBufferingStrategy() {
    |          `- note: add '@MainActor' to make instance method 'updatePlayerForBufferingStrategy()' part of global actor 'MainActor'
538 |         if #available(iOS 10.0, tvOS 10.0, OSX 10.12, *) {
539 |             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
540 |         }
541 |     }
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/Player/AudioPlayer.swift:59: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
 57 |             }
 58 |             player?.volume = volume
 59 |             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
 60 |             updatePlayerForBufferingStrategy()
 61 |
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:85: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
 83 |             if let currentItem {
 84 |                 // Stops the current 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/AudioPlayer.swift:122: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
120 |                     delegate?.audioPlayer(self, willStartPlaying: currentItem)
121 |                 }
122 |                 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
123 |             } else {
124 |                 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:211: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
209 |         didSet {
210 |             if case .playing = state {
211 |                 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
212 |                 if let metadata = currentItemDynamicMetadata() {
213 |                     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:400: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
395 |
396 |     /// Returns the current dynamic metadata for the currently playing item, including rate, position, and duration.
397 |     func currentItemDynamicMetadata() -> NowPlayableDynamicMetadata? {
    |          `- note: add '@MainActor' to make instance method 'currentItemDynamicMetadata()' part of global actor 'MainActor'
398 |         if let player, let currentItemDuration, let currentItemProgression {
399 |             return NowPlayableDynamicMetadata(
400 |                 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
401 |                 position: Float(currentItemProgression),
402 |                 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:539: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
535 |     /// Updates the current player based on the current buffering strategy.
536 |     /// Only has an effect on iOS 10+, tvOS 10+ and macOS 10.12+
537 |     func updatePlayerForBufferingStrategy() {
    |          `- note: add '@MainActor' to make instance method 'updatePlayerForBufferingStrategy()' part of global actor 'MainActor'
538 |         if #available(iOS 10.0, tvOS 10.0, OSX 10.12, *) {
539 |             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
540 |         }
541 |     }
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 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
 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
 72 |             }
 73 |         }
[33/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
 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
 72 |             }
 73 |         }
[34/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
 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
 72 |             }
 73 |         }
[35/37] Compiling SwiftAudioKit AudioPlayerMode.swift
[36/37] Compiling SwiftAudioKit AudioPlayerState.swift
[37/37] Compiling SwiftAudioKit AudioPlayer+AudioItemEvent.swift
Build complete! (20.17s)
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.