iOS file lipo命令

lipo

是管理Fat File的工具, 可以查看cpu架构, 提取特定架构,整合和拆分库文件。

查看信息,支持的cpu架构列表

lipo -info xxxx.framework/xxxx或/xxxx.a

将多CPU架构的库整合成Fat文件

lipo -create xxxx xxxx -output xxxx

提取特定的cpu架构的thin文件

lipo xxxx -thin cpu(armv7/arm64等) -output xxxx

移除掉特定的cpu架构的文件

lipo -remove cpu(armv7/arm64等) xxxx -output xxxx

file

也可以查看支持的cpu架构

armv7/armv7s/arm64对应的机型

image.png

你可能感兴趣的:(iOS file lipo命令)