- Home /
How to log uncaught exceptions on iOS?
I am trying to log all exceptions in my Android and iOS game. I have managed to log all native exceptions for both iOS and Android. I have also managed to log all uncaught exceptions within Unity on Android using the Application.RegisterLogCallback function.
However on iOS the callback isn't called when there is an uncaught exception on Unity. It just seems to exit the app. Has anyone got any experience of logging uncaught C# exceptions from iOS?
Answer by gulgi · Dec 18, 2012 at 05:01 PM
I have been trying to get this to work as well.
Only way I have gotten it to work is by setting "Script Call Optimization" to "Slow and Safe". Then you can use RegisterLogCallback for this. I have been unsuccessful with setting up my own Uncaught Exceptionhandler to solve it.. (weird crashes in the handler) If anyone have any suggestions; please reply. ^_^
Your answer
Follow this Question
Related Questions
4.2 iOS Exceptions Not Printed 2 Answers
Does receipt verification require an internet connection? 0 Answers
Open GL ES 2.0 on Android and iOS 1 Answer
Built Android game for iOS, it overwrote my assets folder 1 Answer
Admob on iOS and Android. Interstitial ads are showing but events are not firing. 1 Answer