Check library information of a dylib file

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

Leave a Comment


NOTE - You can use these HTML tags and attributes:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong> <pre lang="" line="" escaped="" cssfile="">

This site uses Akismet to reduce spam. Learn how your comment data is processed.