Changed the containsString to rangeOfString.

containsString is supported from iOS 8 only.
This commit is contained in:
Philip Kramarov 2014-11-10 23:49:54 +02:00
parent ef82814471
commit 5f43886974

View File

@ -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)