My App is crashing on iOS 13.1 when i trace a issue then found App is crashing because of AVAudioPlayer
.
Below Is My Player Setup.
if let wrongURL = Bundle.main.url(forResource: "wrongAudio", withExtension: "mp3")
{
do {
wrongMusicPlayer = try AVAudioPlayer(contentsOf: wrongURL)
wrongMusicPlayer.prepareToPlay()
}
catch
{
print(error.localizedDescription)
}
}
Here All things found correctly but crash when AVAudioPlayer
try to initialise with URL
.