Is there a tool/script which can help me iterate over (or just count) all the selectors in a objective-c binary. I want to statically analyze objective c binaries and get that metric. I tried otool -tV
but all it dumps is hex-data which I'm unable to parse. Some people suggest using lldb
but I'm unsure how to do that.
Counting the number of selectors in an objective-c binary
435 Views Asked by A. K. At
2
You can print all of the selectors like this:
If you want to count them, grep out the two header lines and pipe the rest into wc: