1
0
mirror of https://github.com/opa334/TrollStore.git synced 2025-01-18 13:05:42 +08:00

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

View File

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