There is a nifty command called “file” which will give you the architecture and type information about a library file.
Eg.
file /usr/lib/libosg.3.0.1.dylib
Gives me the following information
libosg.3.0.1.dylib: Mach-O 64-bit dynamically linked shared library x86_64
This information is especially useful when searching for explanations to strange Xcode linker errors
Tested on OSX 10.6.8 and file v5.03
0 Comments.