Last active
October 5, 2025 02:09
-
-
Save joshuaseltzer/7b5798c5cc8548b8c3a39b3d8c77bd76 to your computer and use it in GitHub Desktop.
Spoof Version Hook
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| static NSString *spoofVersion = @"2518.1"; | |
| %hook NSBundle | |
| - (NSDictionary *)infoDictionary | |
| { | |
| NSMutableDictionary *mutableInfoDictionary = [NSMutableDictionary dictionaryWithDictionary:%orig]; | |
| [mutableInfoDictionary setValue:spoofVersion forKey:@"CFBundleShortVersionString"]; | |
| [mutableInfoDictionary setValue:spoofVersion forKey:@"CFAppReleaseVersion"]; | |
| return [mutableInfoDictionary copy]; | |
| } | |
| %end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment