Skip to content

Commit df764ae

Browse files
committed
Merge pull request #64 from gawadrian/fix_bundleid_verification_bug
Fix Bundle ID verification bug
2 parents 8e3300a + 7ae73a8 commit df764ae

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

iReSign/iReSign/iReSignAppDelegate.m

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -338,8 +338,8 @@ - (void)checkProvisioning:(NSTimer *)timer {
338338

339339
NSLog(@"Mobileprovision identifier: %@",identifierInProvisioning);
340340

341-
NSString *infoPlist = [NSString stringWithContentsOfFile:[appPath stringByAppendingPathComponent:@"Info.plist"] encoding:NSASCIIStringEncoding error:nil];
342-
if ([infoPlist rangeOfString:identifierInProvisioning].location != NSNotFound) {
341+
NSDictionary *infoplist = [NSDictionary dictionaryWithContentsOfFile:[appPath stringByAppendingPathComponent:@"Info.plist"]];
342+
if ([identifierInProvisioning isEqualTo:[infoplist objectForKey:kKeyBundleIDPlistApp]]) {
343343
NSLog(@"Identifiers match");
344344
identifierOK = TRUE;
345345
}

0 commit comments

Comments
 (0)