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

Comments are closed.

Niklas Tech Blog
Privacy Overview

This website uses cookies so that we can provide you with the best user experience possible. Cookie information is stored in your browser and performs functions such as recognising you when you return to our website and helping our team to understand which sections of the website you find most interesting and useful.