In my Universal-App i have some issues where the app crashes. I could not reproduce the cause of the crash so i want at least make the app "save" so that it can restart again if it has crashed. Problem is, if my app crashes, it can happen that it cannot be started again due to some messed up user defaults. So, if i could delete my user defaults after my app has crashed while starting, the user could at least use the app furthermore.
So far for my goals. Now i only need to know how i can detect and save it, when my app has crashed during starting.
My first intention was to set a flag in user defaults when the app crashes and then ,if the flag is set, to reset the user defaults. But i don't know if - (void)applicationWillTerminate:(UIApplication *)application
will be called when my app crashes. And even if it is called. How can i detect if it crashed during starting?
Any suggestions would be welcome.
Greetings and thx in advance Maverick1st