From afb45b110eff6957aaa42ee759a2845c3ae4b02e Mon Sep 17 00:00:00 2001 From: Dhinak G <17605561+dhinakg@users.noreply.github.com> Date: Thu, 21 Dec 2023 21:38:47 -0500 Subject: [PATCH] Fix issue in entitlement checking --- RootHelper/main.m | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/RootHelper/main.m b/RootHelper/main.m index 6f99537..565fdb8 100644 --- a/RootHelper/main.m +++ b/RootHelper/main.m @@ -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; } } }