-
Notifications
You must be signed in to change notification settings - Fork 51
Open
Labels
Description
Without temporary entitlements and some changes to FRCrashLogFinder, the app can't find any crash reports.
This can be solved by adding a temporary entitlement com.apple.security.temporary-exception.files.home-relative-path.read-only to:
- /Library/Logs/HangReporter/
- /Library/Logs/DiagnosticReports/
- /Library/Logs/CrashReporter/
and also update the way we find libraryDirectory in FRCrashLogFinder.m's findCrashLogsSince:
const char *home = getpwuid(getuid())->pw_dir;
NSString *path = [[NSFileManager defaultManager]
stringWithFileSystemRepresentation:home
length:strlen(home)];
NSURL *url = [NSURL fileURLWithPath:path isDirectory:YES];
libraryDirectory = [url.path stringByAppendingPathComponent:@"Library"];