How do I determine the target architecture of static library (.a) on Mac OS X?

后端 未结 5 535
再見小時候
再見小時候 2020-12-04 05:33

I\'m interested in verifying if a given iPhone static library has been built for ARM or Intel.

It\'s more curiosity than anything. Is there some kind of Mac OS X o

5条回答
  •  旧时难觅i
    2020-12-04 06:17

    Another option is lipo; its output is brief and more readable than otool's.

    An example:

    % lipo -info /usr/lib/libiodbc.a 
    Architectures in the fat file: /usr/lib/libiodbc.a are: x86_64 i386 ppc
    % lipo -info libnonfatarchive.a
    input file libnonfatarchive.a is not a fat file
    Non-fat file: libnonfatarchive.a is architecture: i386
    %
    

提交回复
热议问题