Skip to content

Commit

Permalink
Fix iOS 18 bugs for real now
Browse files Browse the repository at this point in the history
Turns out I left out a faulty hook in -[NSBundle bundlePath] which would otherwise resolve system framework paths to /private/System. Why did not not break on earlier versions?
Huge thanks to @haxi0 for testing every. single. build. on iOS 18
Fixes #100, #93, #69
  • Loading branch information
khanhduytran0 committed Jul 26, 2024
1 parent d27e1f1 commit a2ac65c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions NSBundle+FixCydiaSubstrate.m
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ @implementation NSBundle(FixCydiaSubstrate)

- (NSString *)bundlePath {
NSString *path = self.bundleURL.path;
if ([path hasPrefix:@"/private"]) {
return path;
if ([path hasPrefix:@"/var"]) {
return [@"/private" stringByAppendingPathComponent:path];
}
return [@"/private" stringByAppendingPathComponent:path];
return path;
}

@end

0 comments on commit a2ac65c

Please sign in to comment.