Hello, I am developing one ios application where I want to implement emergency reporting without using any third-party sdk or classes that I want to write when my application crashes. I implemented NSSetUncaughtExceptionHandler(exceptionHandlerPtr) in didFinishLaunchingWithOptions and added Objective-C code for its handler. The code for my CrashReporting .h file
volatile void exceptionHandler(NSException *exception); extern NSUncaughtExceptionHandler *exceptionHandlerPtr;
and CrashReporting.m Code:
volatile void exceptionHandler(NSException *exception) {
His work is fine, but not capable of handling all type errors. how can I do the same for Fatal Errors and Signal Errors in swift, I searched on Google but found nothing useful for quick. Help will be appreciated. Sorry for my bad english. Thank you
ios exception-handling swift error-handling
sohan vanani
source share