App crashes with AVAudioSession privateBeginInterruption

后端 未结 1 656
甜味超标
甜味超标 2021-01-14 06:33

I\'m testing my app on device (a soundboard) and it crashes with a EXC_BAD_ACCESS, I have use Breakpoints and the error came from [AVAudioSession privateB

相关标签:
1条回答
  • 2021-01-14 07:25

    The crash happens because you had set the delegate of session to your controller in this line

    [[AVAudioSession sharedInstance] setDelegate: self];
    

    but didn't implemented the required delegate method (interruption one)

    either remove the delegate setting line or implement the delegate method to solve crash

    0 讨论(0)
提交回复
热议问题