AVFAudio playback crash on iOS 10 AVFAudio playback crash on iOS 10 ios ios

AVFAudio playback crash on iOS 10


This exception with code 561015905 - related to AVAudioSessionErrorCodeCannotStartPlaying. This error type can occur if the app’s Information property list does not permit audio use, or if the app is in the background and using a category which does not allow background audio.

Please take a look at documentation to AVAudioSessionErrorCodeCannotStartPlaying. Hope this help.


This is an Apple bug that has 2 workarounds while we wait for the fix in iOS 10.2:

(1) (worse) enable background audio

(2) (better) see Apple message below

message from Apple: This is a known issue that will be fixed in 10.2. In the meantime another simpler workaround should work: Trigger the audio engine creation yourself before entering the background (for example at setup). You can trigger this simply by getting the audio engine from the SCNView:

scnView.audioEngine;