Skip to content

Instantly share code, notes, and snippets.

@joshuaseltzer
Last active October 5, 2025 02:09
Show Gist options
  • Select an option

  • Save joshuaseltzer/7b5798c5cc8548b8c3a39b3d8c77bd76 to your computer and use it in GitHub Desktop.

Select an option

Save joshuaseltzer/7b5798c5cc8548b8c3a39b3d8c77bd76 to your computer and use it in GitHub Desktop.
Spoof Version Hook
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