Mac OS X Command line tools for Application Analysis

I was looking into a lib file provided by some SDK, I need to extract lib by architecture. The first choice was the super 7-Zip which can extract almost every file on the Earth, but unfortunately files cannot be recognized by Hopper/IDA.

Here we go on OS X 10.9.

file

otool

Display all architectures and object files

lipo

Display architectures

Display architecture details

Extract file by arch

output is still a universal binary file

Extract file by arch

output is an archive file

ar

Extract all obj files

Input file must be an archive file.

TBC.

Mac OS X Command line tools for Application Analysis by @sskaje: https://sskaje.me/2013/10/mac-os-x-command-line-tools-for-application-analysis/