今天
IPA签名小编着重来讲一讲,如何判断IPA包是不是64位的问题:
准备工作 on Mac OS: 1) tar xf xxx.ipa 2) cd xxx/Payload/.app/ 方案1 lipo -info $ProjectName 支持64位的结果 SDK
$ lipo -info WiScale
Architectures in the fat file: WiScale are: armv7 arm64
不支持64位的结果
$ lipo -info Basest1
Architectures in the fat file: Basest1 are: armv7
方案二 otool -hv $ProjectName
支持64位的结果
$ otool -hv WiScale
WiScale (architecture armv7):
Mach header
magic cputype cpusubtype caps filetype ncmds sizeofcmds flags
MH_MAGIC ARM V7 0x00 EXECUTE 72 6948 NOUNDEFS DYLDLINK TWOLEVEL WEAK_DEFINES BINDS_TO_WEAK PIE
WiScale (architecture arm64):
Mach header
magic cputype cpusubtype caps filetype ncmds sizeofcmds flags
MH_MAGIC_64 ARM64 ALL 0x00 EXECUTE 72 7592 NOUNDEFS DYLDLINK TWOLEVEL BINDS_TO_WEAK PIE
不支持64位的结果
$ otool -hv Basest1
Basest1 (architecture armv7):
Mach header
magic cputype cpusubtype caps filetype ncmds sizeofcmds flags
MH_MAGIC ARM V7 0x00 EXECUTE 45 4708 NOUNDEFS DYLDLINK TWOLEVEL BINDS_TO_WEAK PIE