How to Use Otool

How to Use Otool

apple suggested me to use "strings" or "otool" to dect the private api (isinf) in my code , I am totally newbie so any help how to use those tools

1

3 Answers

Open Terminal ( Ctrl + Space -> Type 'Terminal')..

and print example:

otool -MVv yourlib.a

for help:

otool --help
4

I use nm to inspect my binaries. Usage can't be simpler:

 nm <filename>

It will list some weird memory-address or whatever, then a visibility character and lastly the symbol. T is public, but check out the man page of nm to find out more about this.

Press Ctrl+space to open up the terminal.

2

On macOS, the otool tools is alternative to the objdump on the Windows. You should open Terminal and print example:

$ man otool  //Usage for otool

If you want to disassemble a file, Just type like this:

$ otool -tV filename

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Sarah Jenkins
Author

Sarah Jenkins

Sarah Jenkins is a veteran tech journalist with over 12 years of experience covering artificial intelligence, mobile innovations, and digital ethics. Her insights have appeared in leading technology publications worldwide.