As I mentioned I am trying to recover the line of a crash and also the function in wich it occurs.
I need to metion that I have tried the next code in AppDelegate and I get the stack not symbolicated and the class and also the error throwed:
NSSetUncaughtExceptionHandler(&uncaughtExceptionHandler);
void uncaughtExceptionHandler(NSException *exception) {
NSLog(@"Exception description - %@",[exception description]);
NSLog(@"Exception name - %@", [exception name]);
NSLog(@"Reason - %@", [exception reason]);
NSLog(@"\n\n - %@", [exception callStackSymbols]);
NSLog(@"\n\n - %@", [exception callStackReturnAddresses]);
}
But by using these I don't get the line of the crash, as I intend to save it in CoreData.
Also I am not interested in xcode aproaches as: "Add Exception Breakpoint" or other aproaces as: XCode > Window > Devices > view crash logs on a device, Test Flight aproaches or implementing other frameworks in the app as Crashlytics.
I mention these because I am very interested in the way it can be done by code.
Also am able to get dsym of the app archive it when an app archive is made and upload it to a server using a RunScript written using Bash. So I can use the dsym if it is needed to achive the crash line.
Also I know that the next aproach can be used to obtain the current code line: LINE and _FUNCTION__ to get the function name.
Also if you can provide code examples from open source PLCrashReporter on how they do it I will much apreciate.
Than you all in advance! :)