I want to print the names of all Objective-C classes found in an iOS binary using "otool" or "objdump". I am doing this on macOS, on an iOS binary that is not encrypted.
What I tried:
- Solution suggested here How to statically dump all ObjC methods called in a Cocoa App?
otool -oV /path to executable/ | grep name | awk '{print $3}'
but i don't know how to only parse the objective-c class names.
- Solution using "nm" but i dont really like it:
nm /path to executable/ | grep _OBJC_CLASS_
Can you guys help me with a cmd/script to print the names of all Objective-C classes in an iOS binary?