mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-02 12:48:45 +00:00
Changed the containsString to rangeOfString.
containsString is supported from iOS 8 only.
This commit is contained in:
parent
ef82814471
commit
5f43886974
@ -540,7 +540,7 @@ static const char *findSEL (const char *imageName, NSString *imageUUID, uint64_t
|
||||
NSString *appBundleContentsPath = [[report.processInfo.processPath stringByDeletingLastPathComponent] stringByDeletingLastPathComponent];
|
||||
|
||||
// exclude iOS swift dylibs
|
||||
if (![imageInfo.imageName containsString:@".app/Frameworks/libswift"]) {
|
||||
if ([imageInfo.imageName rangeOfString:@".app/Frameworks/libswift"].location == NSNotFound) {
|
||||
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)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user