mirror of
https://github.com/opa334/TrollStore.git
synced 2026-07-02 11:17:51 +08:00
Back to Security.framework on iOS 16+, apparently ldid signed binaries don't work on 16+
This commit is contained in:
@@ -54,12 +54,12 @@ extern NSUserDefaults* trollStoreUserDefaults();
|
||||
errorDescription = @"The app's main executable does not exist.";
|
||||
break;
|
||||
case 175: {
|
||||
//if (@available(iOS 15, *)) {
|
||||
// errorDescription = @"Failed to sign the app.";
|
||||
//}
|
||||
//else {
|
||||
if (@available(iOS 16, *)) {
|
||||
errorDescription = @"Failed to sign the app.";
|
||||
}
|
||||
else {
|
||||
errorDescription = @"Failed to sign the app. ldid returned a non zero status code.";
|
||||
//}
|
||||
}
|
||||
}
|
||||
break;
|
||||
case 176:
|
||||
|
||||
@@ -76,7 +76,7 @@
|
||||
// or if it's the one from an old TrollStore version that's no longer supported
|
||||
- (void)handleLdidCheck
|
||||
{
|
||||
//if (@available(iOS 15, *)) {} else {
|
||||
if (@available(iOS 16, *)) {} else {
|
||||
NSString* tsAppPath = [NSBundle mainBundle].bundlePath;
|
||||
|
||||
NSString* ldidPath = [tsAppPath stringByAppendingPathComponent:@"ldid"];
|
||||
@@ -86,7 +86,7 @@
|
||||
{
|
||||
[TSInstallationController installLdid];
|
||||
}
|
||||
//}
|
||||
}
|
||||
}
|
||||
|
||||
- (void)scene:(UIScene *)scene willConnectToSession:(UISceneSession *)session options:(UISceneConnectionOptions *)connectionOptions {
|
||||
|
||||
@@ -34,7 +34,7 @@ extern NSUserDefaults* trollStoreUserDefaults(void);
|
||||
}
|
||||
});
|
||||
|
||||
//if (@available(iOS 15, *)) {} else {
|
||||
if (@available(iOS 16, *)) {} else {
|
||||
fetchLatestLdidVersion(^(NSString* latestVersion)
|
||||
{
|
||||
NSString* ldidVersionPath = [NSBundle.mainBundle.bundlePath stringByAppendingPathComponent:@"ldid.version"];
|
||||
@@ -54,7 +54,7 @@ extern NSUserDefaults* trollStoreUserDefaults(void);
|
||||
});
|
||||
}
|
||||
});
|
||||
//}
|
||||
}
|
||||
}
|
||||
|
||||
- (NSMutableArray*)specifiers
|
||||
@@ -113,7 +113,7 @@ extern NSUserDefaults* trollStoreUserDefaults(void);
|
||||
|
||||
[_specifiers addObject:rebuildIconCacheSpecifier];
|
||||
|
||||
//if (@available(iOS 15, *)) { } else {
|
||||
if (@available(iOS 16, *)) { } else {
|
||||
NSString* ldidPath = [NSBundle.mainBundle.bundlePath stringByAppendingPathComponent:@"ldid"];
|
||||
NSString* ldidVersionPath = [NSBundle.mainBundle.bundlePath stringByAppendingPathComponent:@"ldid.version"];
|
||||
BOOL ldidInstalled = [[NSFileManager defaultManager] fileExistsAtPath:ldidPath];
|
||||
@@ -188,7 +188,7 @@ extern NSUserDefaults* trollStoreUserDefaults(void);
|
||||
installLdidSpecifier.buttonAction = @selector(installOrUpdateLdidPressed);
|
||||
[_specifiers addObject:installLdidSpecifier];
|
||||
}
|
||||
//}
|
||||
}
|
||||
|
||||
PSSpecifier* persistenceGroupSpecifier = [PSSpecifier emptyGroupSpecifier];
|
||||
persistenceGroupSpecifier.name = @"Persistence";
|
||||
|
||||
Reference in New Issue
Block a user