lipo -detailed_info
显示可执行文件信息
lipo -detailed_info Flutter
输出如下:
Fat header in: Flutter
fat_magic 0xcafebabe
nfat_arch 2
architecture armv7
cputype CPU_TYPE_ARM
cpusubtype CPU_SUBTYPE_ARM_V7
capabilities 0x0
offset 16384
size 6017072
align 2^14 (16384)
architecture arm64
cputype CPU_TYPE_ARM64
cpusubtype CPU_SUBTYPE_ARM64_ALL
capabilities 0x0
offset 6045696
size 7250216
align 2^14 (16384)
lipo -extract
拆分可执行文件
lipo -extract arm64 Flutter -o Flutter64
lipo -detailed_info Flutter64
输出如下:
Fat header in: Flutter64
fat_magic 0xcafebabe
nfat_arch 1
architecture arm64
cputype CPU_TYPE_ARM64
cpusubtype CPU_SUBTYPE_ARM64_ALL
capabilities 0x0
offset 16384
size 7250216
align 2^14 (16384)
lipo -create
将多个架构产物合成一个
lipo -extract armv7 Flutter -o Flutter32
lipo -create Flutter32 Flutter64 -o FlutterNew
lipo -detailed_info FlutterNew
输出如下:
Fat header in: FlutterNew
fat_magic 0xcafebabe
nfat_arch 2
architecture armv7
cputype CPU_TYPE_ARM
cpusubtype CPU_SUBTYPE_ARM_V7
capabilities 0x0
offset 16384
size 6017072
align 2^14 (16384)
architecture arm64
cputype CPU_TYPE_ARM64
cpusubtype CPU_SUBTYPE_ARM64_ALL
capabilities 0x0
offset 6045696
size 7250216
align 2^14 (16384)