Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to use swift to detect app crash?

I am currently working on code to log a user's behavior in the app and to report crashes and the sequence leading up to them. I have one big problem, I do not know how to make my app detect if it has crashed. Does anybody know how to do this in swift? Your help would be much appreciated!

like image 431
Stewart Hering Avatar asked Jul 10 '15 15:07

Stewart Hering


1 Answers

I don't think there is currently a way to do this. When your app crashes it ceases to function and all processes stop. Usually any crash and diagnostic data is sent via the user settings panel.

Edit: There is an helpful post here: https://stackoverflow.com/a/8242215/4891259

Hope that helps.

like image 160
user72982708 Avatar answered Sep 18 '22 19:09

user72982708