Re-Assigning instance of AVAudioPlayer in iOS13 leads to BAD_ACCESS runtime error

后端 未结 2 881
耶瑟儿~
耶瑟儿~ 2020-12-10 16:44

I have an app, that is for many years in the AppStore and runs without any crashes (last deployment target iOS 12.4). I have some code for playing a sound on certain events

2条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2020-12-10 17:07

    Just remove the initialisation and it will work

    private var mySoundPlayer: AVAudioPlayer!

    Cheers!!!

提交回复
热议问题