This crashes every time:
Any app that uses a SCNView will crash when the device is locked then unlocked!
Steps to Reproduce:
-Launch Xcode
-File / New / Project / Game / SceneKit (note this template app has no audio)
-(objective C or Swift does not matter)
-Run the app on your device
-Lock then unlock the device
-Crash (
AVAudioEngineGraph - even though this app has no audio)
I have filed a bug.
iOS 10.1 does not fix the bug, as the crash still happens in iOS 10.1 beta 3 (14B71) released October 10, 2016
Only workaround I have found is to allow background audio (even though no audio is playing!), but in my app I do have audio, and I don't want to allow background audio (otherwise I'd have to manage pausing/unpausing the audio).