mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-06-16 05:55:20 +00:00
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:
parent
4707e0c8d1
commit
6b7f405868
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user