O'Reilly logo

Advanced Mac OS X Programming: The Big Nerd Ranch Guide by Mark Dalrymple

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

For the More Curious: otool

otool is another library-oriented tool. Even though it shares the last four letters with libtool, otool will output a lot of information about an object file, library, or executable. otool has a ton of options, so check out the manpage for the whole suite. Here are a couple of interesting commands.

List the names and version numbers of the shared libs an object file or executable uses:

$​ ​o​t​o​o​l​ ​-​L​ ​/​A​p​p​l​i​c​a​t​i​o​n​s​/​S​a​f​a​r​i​.​a​p​p​/​C​o​n​t​e​n​t​s​/​M​a​c​O​S​/​S​a​f​a​r​i​ /​A​p​p​l​i​c​a​t​i​o​n​s​/​S​a​f​a​r​i​.​a​p​p​/​C​o​n​t​e​n​t​s​/​M​a​c​O​S​/​S​a​f​a​r​i​:​ ​ ​ ​ ​ ​/​u​s​r​/​l​i​b​/​l​i​b​s​q​l​i​t​e​3​.​d​y​l​i​b​ ​(​c​o​m​p​a​t​i​b​i​l​i​t​y​ ​v​e​r​s​i​o​n​ ​9​.​0​.​0​,​ ​c​u​r​r​e​n​t​ ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required