Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

iOS app crashes when closing/opening quickly

Tags:

xcode

ios

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.

like image 429
Tyler Hough Avatar asked Aug 31 '25 11:08

Tyler Hough


1 Answers

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.

like image 84
Stefo Avatar answered Sep 03 '25 01:09

Stefo