Strange thing is, it doesn’t happen when re-open the app after a longer time (~10 seconds). It seems that sounds are not closing properly when closing the app quickly after open.
OK it gets even weirder:
In my current app, I get this problem only when downloaded from testflight.
If I build the app in debug OR in release, with a developer identity:
I open the app
After 1s I close it and kill it
I open it back, everything works
On my testflight app:
I open the app
After 1s I close it and kill it
I open it back, 0x"badfood" 0x8BADF00D crash (see blog article above).
I’m thinking, maybe if the app is from the store/testflight, the watchdog (the one mentioned related to the “badfood” crash) gets activated. I’m only guessing though.
OK, turns out my app does crash also locally (ie. not from TestFlight). The crash happens when opening back the app, and the app restarts automatically, so it just looks like the app takes longer to open, whereas it’s actually crashing (I can see from the device logs).