The main issue with this bug is that I can’t have my device connected to xCode to debug, since to get it to crash, I have to close the app (terminating the debug session), and open again quickly. Keyword: quickly… I don’t have time to close, and rebuild through xCode, otherwise it won’t crash for me (needs to be within a second or two)… I don’t see anything notable in Organizer > Crashes… I’m not looking for specific solutions since I don’t have an error code yet, I’m just looking for ideas/ways to get this error code.
Again, just to clarify, this crash can only happen within a second or two of closing the app. Open > Close > Open again within a second -> Crash. The crash happens consistently.
2
Answers
This is not a bug in your app, this thing happen on Simulator when you consistently close open app on simulator like when you launch the app soo fast that the previous session is still not cleared from memory then your app close immediately and you might thought that it is bug in your app but it is not.
It’s not only your app that’s doing this. If you have opened some nested VCs and you quickly close/reopen the app – it crashes. I have experienced this crash on every single app, even the native iOS apps like AppStore or Notes.
In my opinion this is because when you kill it and relaunch it very quickly, the killing process wasn’t finish so it terminates the new session.
Anyway this is bug in iOS for sure.