How can I find out for which architecture the * .a file is created?

I am working on Mac OS 10.7.4. using Xcode 4.3.2.

I had a * .a static library file from my partner. I want to know what architecture it is built for. Is it ARMv6, ARMv7, i386 or another architecture?

Is there any command or method to get information about the file architecture?

+4
source share
2 answers

You can use otool to search for file architecture (s): otool man page

otool -hv mylibrary.a 
+8
source

The Unix / Linux file command will tell you which file:

 % file a.out a.out: Mach-O 64-bit executable x86_64 
+2
source

All Articles