The script stash for Hopper Disassembler v5. Focus on Apple platforms and personal use cases.
- Clone the repo for scripts
cd ~/Library/Application\ Support/Hopper/Scripts/
(or open Hopper and typeCommand + Shift + P
and open scripts folder)- Copy the scripts into scripts folder
- Reload scripts and run from
When deployment target on iOS 14+/tvOS 14+/watchOS 7+/macOS 11+, Objective-C runtime will use the relative method list to optimize memory usage. Learn WWDC 2020 - Advancements in the Objective-C runtime
However Hopper (v5.5.3) seems could not parse the selector and calls. So this scripts fix this and add the XRef between calls.
You can teach ld64 to force enable relative method list via
-objc_relative_method_lists
as well.
- Demo
- (void)viewDidLoad {
[super viewDidLoad];
self.username = [Utils currentUserName];
[Utils storeContents:@"Teststring"];
}
- Before Script
- After Script