When I recently connected ios5.0.1 to a real machine for debugging, I found that uncaughtexception caused crash and then *** first throw call Stack: No readable call stack is printed, the detailed call method name and other information will be displayed after the previous crash, but now there are a bunch of memory addresses 0x ..... 0x ......
I didn't know what was going on at first, and I didn't seem to have met it before. Google once saw an articleArticle(Http://stackoverflow.com/questions/7841610/xcode-4-2-debug-doesnt-symbolicate-stack-call) it seems that ios5.0 started to make some changes, resulting in the method name cannot print. However, there are also remedial measures:
Define a method by yourself:
Static void uncaughtexceptionhandler (nsexception * exception ){
Nslog (@ "crash: % @", exception );
Nslog (@ "stack trace: % @", [Exception callstacksymbols]);
// Internal Error Reporting
}
ThenProgramCall during initialization (for example, put it in-(bool) Application :( uiapplication *) Application didfinishlaunchingwitexceptions :( nsdictionary *) the first line in launchoptions ):
Nssetuncaughtexceptionhandler (& uncaughtexceptionhandler );