I am building an app that runs sound files from within the main bundle with a url. When I tested this on iOS 13, everything is fine. But with the new update of 13.1 I am get
Change this:
var backgroundMusicPlayer = AVAudioPlayer()
To this:
var backgroundMusicPlayer : AVAudioPlayer!