SwiftUI MusicKit Queue for ApplicationMusicPlayer

When setting the queue with ApplicationMusicPlayer.Queue(for: , startingAt:) in my app built with XCode Version 13.4.1 the app crashes with the message: Thread 1: EXC_BAD_ACCESS (code=1, address=0x8)

But the same app with the same code built in Xcode Version 14 beta runs without any single problem.

Any ideas how to fix this problem?

remove startingAt

SwiftUI MusicKit Queue for ApplicationMusicPlayer
 
 
Q