mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2026-03-06 16:30:55 +00:00
Improve app binary detection in crash reports
- Fix iOS 8 issue with not remove part of a path when using `stringByStandardizingPath` (removed leading `/private`) - Exclude iOS swift libraries from being detect as app specific
This commit is contained in:
@@ -539,8 +539,13 @@ static const char *findSEL (const char *imageName, NSString *imageUUID, uint64_t
|
||||
NSString *imagePath = [imageInfo.imageName stringByStandardizingPath];
|
||||
NSString *appBundleContentsPath = [[report.processInfo.processPath stringByDeletingLastPathComponent] stringByDeletingLastPathComponent];
|
||||
|
||||
if ([imagePath isEqual: report.processInfo.processPath] || [imagePath hasPrefix:appBundleContentsPath])
|
||||
binaryDesignator = @"+";
|
||||
// exclude iOS swift dylibs
|
||||
if (![imageInfo.imageName containsString:@".app/Frameworks/libswift"]) {
|
||||
if ([imagePath isEqual: report.processInfo.processPath] ||
|
||||
[imagePath hasPrefix:appBundleContentsPath] ||
|
||||
[imageInfo.imageName hasPrefix:appBundleContentsPath]) // Fix issue with iOS 8 `stringByStandardizingPath` removing leading `/private` path (when not running in the debugger only)
|
||||
binaryDesignator = @"+";
|
||||
}
|
||||
|
||||
/* base_address - terminating_address [designator]file_name arch <uuid> file_path */
|
||||
NSString *fmt = nil;
|
||||
|
||||
Reference in New Issue
Block a user