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?

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. :slight_smile: