diff --git a/Natives/LauncherMenuViewController.m b/Natives/LauncherMenuViewController.m index 772d263b..14ff1535 100644 --- a/Natives/LauncherMenuViewController.m +++ b/Natives/LauncherMenuViewController.m @@ -134,7 +134,7 @@ [self.tableView selectRowAtIndexPath:indexPath animated:YES scrollPosition:UITableViewScrollPositionNone]; [self tableView:self.tableView didSelectRowAtIndexPath:indexPath]; - if (!getEntitlementValue(@"dynamic-codesigning")) { + if (getEntitlementValue(@"get-task-allow")) { [self displayProgress:localize(@"login.jit.checking", nil)]; if (isJITEnabled(false)) { [self displayProgress:localize(@"login.jit.enabled", nil)]; @@ -142,6 +142,17 @@ } else { [self enableJITWithAltKit]; } + } else { + [self displayProgress:localize(@"login.jit.fail", nil)]; + [self displayProgress:nil]; + UIAlertController* alert = [UIAlertController alertControllerWithTitle:localize(@"login.jit.fail.title", nil) + message:localize(@"login.jit.fail.description_unsupported", nil) + preferredStyle:UIAlertControllerStyleAlert]; + UIAlertAction* okAction = [UIAlertAction actionWithTitle:localize(@"OK", nil) style:UIAlertActionStyleDefault handler:^(id action){ + exit(-1); + }]; + [alert addAction:okAction]; + [self presentViewController:alert animated:YES completion:nil]; } } diff --git a/Natives/main.m b/Natives/main.m index 6ba8fbf1..0ecb1f02 100644 --- a/Natives/main.m +++ b/Natives/main.m @@ -140,7 +140,7 @@ void init_logDeviceAndVer(char *argument) { printEntitlementAvailability(@"com.apple.developer.kernel.extended-virtual-addressing"); printEntitlementAvailability(@"com.apple.developer.kernel.increased-memory-limit"); printEntitlementAvailability(@"com.apple.private.security.no-sandbox"); - printEntitlementAvailability(@"dynamic-codesigning"); + //printEntitlementAvailability(@"dynamic-codesigning"); } void init_migrateDirIfNecessary() { diff --git a/Natives/resources/en.lproj/Localizable.strings b/Natives/resources/en.lproj/Localizable.strings index bb4f6cab..bdf53bda 100644 --- a/Natives/resources/en.lproj/Localizable.strings +++ b/Natives/resources/en.lproj/Localizable.strings @@ -88,6 +88,7 @@ "login.jit.fail" = "JIT could not be enabled."; "login.jit.fail.title" = "JIT could not be enabled on your device."; "login.jit.fail.description" = "No integrations could be used to automatically enable JIT on your device, and it must now be enabled manually. Errors have been logged to latestlog.txt."; +"login.jit.fail.description_unsupported" = "An unsupported installation method has been detected. Please reinstall using one of supported methods."; // Login buttons "login.menu.sendlogs" = "Send your logs";