diff --git a/iReSign/iReSign/iReSignAppDelegate.m b/iReSign/iReSign/iReSignAppDelegate.m index d536f4e..163b0c3 100755 --- a/iReSign/iReSign/iReSignAppDelegate.m +++ b/iReSign/iReSign/iReSignAppDelegate.m @@ -497,10 +497,12 @@ - (void)signFile:(NSString*)filePath { */ NSString *infoPath = [NSString stringWithFormat:@"%@/Info.plist", filePath]; - NSMutableDictionary *infoDict = [NSMutableDictionary dictionaryWithContentsOfFile:infoPath]; - [infoDict removeObjectForKey:@"CFBundleResourceSpecification"]; - [infoDict writeToFile:infoPath atomically:YES]; - [arguments addObject:@"--no-strict"]; // http://stackoverflow.com/a/26204757 + if ([[NSFileManager defaultManager]fileExistsAtPath:infoPath]) { + NSMutableDictionary *infoDict = [NSMutableDictionary dictionaryWithContentsOfFile:infoPath]; + [infoDict removeObjectForKey:@"CFBundleResourceSpecification"]; + [infoDict writeToFile:infoPath atomically:YES]; + [arguments addObject:@"--no-strict"]; // http://stackoverflow.com/a/26204757 + } } if (![[entitlementField stringValue] isEqualToString:@""]) {