0

There is a .a lib in iOS project. I want to see the methods name in it, so I installed binutils on Mac. But when I run objdump [-h] xxx.a. It says:

"File format not recognized".

So, what format does objdump supports? And how can I see the methods in that .a lib without using objdump?

VividD
  • 10,456
  • 6
  • 64
  • 111
EVA
  • 375
  • 1
  • 6
  • 18

1 Answers1

3

There are several tools to this.

  1. strings tool.
  2. nm tool
  3. otool
  4. For Objective C code, use class dump
RLT
  • 4,219
  • 4
  • 37
  • 91
  • Thanks Rahul, the strings works. but why it works? I tried dumpbin on windows, not work. – EVA Nov 16 '11 at 10:33
  • Read the documentation. All have there specific purpose and using style. I never tried dumpbin. – RLT Nov 16 '11 at 11:39