I'm trying to build my own signal and uncaught exception handler for iOS. To do this i use these two functions :
NSSetUncaughtExceptionHandler(/*handler*/);
and
signal(/*signal const*/, /*signal handler*/);
My problem is that i can't make it work with EXC_BAD_ACCESS signal. Is there some signal constant (like SIGABRT, SIGBUS) to catch the EXC_BAD_ACCESS? If no, how can i handle it? Some crash analytics tools (lika PLCrashReporter, Crashlytics etc.) can trace it...
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…