Fix issue in entitlement checking

This commit is contained in:
Dhinak G 2023-12-21 21:38:47 -05:00
parent a56bf738bd
commit afb45b110e
No known key found for this signature in database
1 changed files with 2 additions and 3 deletions

View File

@ -625,9 +625,8 @@ int signApp(NSString* appPath)
@"com.apple.private.cs.debugger" @"com.apple.private.cs.debugger"
]) { ]) {
NSObject *restrictedEntitlement = entitlementsToUse[restrictedEntitlementKey]; NSObject *restrictedEntitlement = entitlementsToUse[restrictedEntitlementKey];
if (restrictedEntitlement && [restrictedEntitlement isKindOfClass:[NSNumber class]]) { if (restrictedEntitlement && [restrictedEntitlement isKindOfClass:[NSNumber class]] && [(NSNumber *)restrictedEntitlement boolValue]) {
requiresDevMode |= [(NSNumber *)restrictedEntitlement boolValue]; requiresDevMode = YES;
break;
} }
} }
} }