Show a error message in the console, if an older PLCrashReporter version is actually linked and give a hint on what to do

This commit is contained in:
Andreas Linde 2012-08-20 13:08:49 +02:00
parent 4707e0c8d1
commit 6b7f405868

View File

@ -429,6 +429,13 @@
PLCrashReporter *crashReporter = [PLCrashReporter sharedReporter];
NSError *error = NULL;
// Make sure the correct version of PLCrashReporter is linked
id plCrashReportReportInfoClass = NSClassFromString(@"PLCrashReportReportInfo");
if (!plCrashReportReportInfoClass) {
NSLog(@"[HockeySDK] ERROR: An old version of PLCrashReporter framework is linked! Please check the framework search path in the target build settings and remove references to folders that contain an older version of CrashReporter.framework and also delete these files.");
}
// Check if we previously crashed
if ([crashReporter hasPendingCrashReport]) {
_didCrashInLastSession = YES;