diff --git a/FBControlCore/Crashes/FBCrashLog.m b/FBControlCore/Crashes/FBCrashLog.m index f7fc37b82..4be72a651 100644 --- a/FBControlCore/Crashes/FBCrashLog.m +++ b/FBControlCore/Crashes/FBCrashLog.m @@ -279,7 +279,7 @@ - (nullable NSString *)loadRawCrashLogStringWithError:(NSError **)error; for (NSString *basePath in self.diagnosticReportsPaths) { NSArray *crashInfos = [[FBConcurrentCollectionOperations filterMap:[NSFileManager.defaultManager contentsOfDirectoryAtPath:basePath error:nil] - predicate:[FBCrashLogInfo predicateForFilesWithBasePath:basePath afterDate:date withExtension:@"crash"] + predicate:[FBCrashLogInfo predicateForFilesWithBasePath:basePath afterDate:date withExtensions:@[@"crash", @"ips"]] map:^ FBCrashLogInfo * (NSString *fileName) { NSString *path = [basePath stringByAppendingPathComponent:fileName]; NSError *error = nil; @@ -377,7 +377,7 @@ + (FBCrashLogInfoProcessType)processTypeForExecutablePath:(NSString *)executable return FBCrashLogInfoProcessTypeCustom; } -+ (NSPredicate *)predicateForFilesWithBasePath:(NSString *)basePath afterDate:(NSDate *)date withExtension:(NSString *)extension ++ (NSPredicate *)predicateForFilesWithBasePath:(NSString *)basePath afterDate:(NSDate *)date withExtensions:(NSArray *)extensions { NSFileManager *fileManager = NSFileManager.defaultManager; NSPredicate *datePredicate = [NSPredicate predicateWithValue:YES]; @@ -389,7 +389,7 @@ + (NSPredicate *)predicateForFilesWithBasePath:(NSString *)basePath afterDate:(N }]; } return [NSCompoundPredicate andPredicateWithSubpredicates:@[ - [NSPredicate predicateWithFormat:@"pathExtension == %@", extension], + [NSPredicate predicateWithFormat:@"pathExtension in %@", extensions], datePredicate ]]; }