Skip to content

Commit

Permalink
may fix [BUG] LiveContainer broken on iOS 18.2 beta 1 khanhduytran0#195
Browse files Browse the repository at this point in the history
  • Loading branch information
hugeBlack committed Nov 6, 2024
1 parent 06ae3c2 commit 0aacb0d
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 5 deletions.
2 changes: 1 addition & 1 deletion LCSharedUtils.m
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ + (BOOL)launchToGuestApp {
if (!access(tsPath.UTF8String, F_OK)) {
urlScheme = @"apple-magnifier://enable-jit?bundle-id=%@";
} else if (self.certificatePassword) {
tries = 8;
tries = 2;
urlScheme = [NSString stringWithFormat:@"%@://livecontainer-relaunch", lcAppUrlScheme];
} else {
urlScheme = @"sidestore://sidejit-enable?bid=%@";
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -106,4 +106,4 @@ To install tweaks, you can use the built-in tweak manager in LiveContainer, whic
- @hugeBlack for SwiftUI contribution
- @Staubgeborener for automatic AltStore/SideStore source updater
- @fkunn1326 for improved app hiding
- @slds1 for dynamic color frature
- @slds1 for dynamic color feature
2 changes: 1 addition & 1 deletion TweakLoader/UIKit+GuestHooks.m
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ void LCOpenWebPage(NSString* webPageUrlString, NSString* originalUrl) {
NSString *message = @"lc.guestTweak.openWebPageTip".loc;
UIWindow *window = [[UIWindow alloc] initWithFrame:UIScreen.mainScreen.bounds];
UIAlertController *alert = [UIAlertController alertControllerWithTitle:@"LiveContainer" message:message preferredStyle:UIAlertControllerStyleAlert];
UIAlertAction* okAction = [UIAlertAction actionWithTitle:@"lc.common.ok" style:UIAlertActionStyleDefault handler:^(UIAlertAction * action) {
UIAlertAction* okAction = [UIAlertAction actionWithTitle:@"lc.common.ok".loc style:UIAlertActionStyleDefault handler:^(UIAlertAction * action) {
[NSClassFromString(@"LCSharedUtils") setWebPageUrlForNextLaunch:webPageUrlString];
[NSClassFromString(@"LCSharedUtils") launchToGuestApp];
}];
Expand Down
2 changes: 1 addition & 1 deletion control
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Package: com.kdt.livecontainer
Name: livecontainer
Version: 2.1.2
Version: 3.0.0
Architecture: iphoneos-arm
Description: Run iOS app without actually installing it!
Maintainer: khanhduytran0
Expand Down
5 changes: 4 additions & 1 deletion main.m
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,10 @@ static void overwriteExecPath(NSString *bundlePath) {
char currPath[PATH_MAX];
uint32_t len = PATH_MAX;
_NSGetExecutablePath(currPath, &len);
if (strncmp(currPath, newPath, newLen)) {
// trying to overrite config.process.mainExecutablePath will result in app crash and confuse dylb in 18.2+, so we skip it for now
if(@available(iOS 18.2, *)) {

} else if (strncmp(currPath, newPath, newLen)) {
struct sigaction sa, saOld;
sa.sa_sigaction = overwriteExecPath_handler;
sa.sa_flags = SA_SIGINFO;
Expand Down

0 comments on commit 0aacb0d

Please sign in to comment.