I want to use a global exception handler.
Call applicationdidFinishLaunchingWithOptions:
NSSetUncaughtExceptionHandler(&uncaughtExceptionHandler);
And use this to exclude processing:
void uncaughtExceptionHandler(NSException *exception) {
}
But also I use sdk, which already uses NSSetUncaughtExceptionHandler. Then my uncaughtExceptionHandler method did not call when an exception occurs.
I know that this can be only one handler for one application. But I need it and sdk, and this code can handle exceptions globally.
Do you have any idea how I can use NSSetUncaughtExceptionHandler in this case? Or other ideas, how can I deal with exceptions globally? Many thanks.