.a拆分合并

查看信息

lipo -info *.a

拆分为不同的框架

lipo *.a -thin arm64 -output *-arm64.a

提取对应框架.a中所有的.o

ar -x *-armX.a

合并.o为.a

libtool -static -o *-armX.a *.o

合并不同框架.a为一个.a

lipo -create *-armv7.a *-i386.a *-x86_64.a *-arm64.a -output *.a
原文地址:https://www.cnblogs.com/yuxiaoyiyou/p/13615535.html