iOS查看、分离、合并库framework的架构,这些操作需要cd到当前framework文件夹目录下
查询framework支持哪些架构,命令为:
lipo -info XXXX.framework/XXXX
从framework中分离出armv7 arm64,或者还有armv7s、x86_64
lipo XXXX.framework/XXXX -thin arm64 -output XXXX.framework/XXXX-arm64
lipo XXXX.framework/XXXX -thin armv7 -output XXXX.framework/XXXX-armv7
lipo XXXX.framework/XXXX -thin armv7s -output XXXX.framework/XXXX-armv7s
lipo XXXX.framework/XXXX -thin x86_64 -output XXXX.framework/XXXX-x86_64
合并分离出的两种架构
lipo -create XXXX.framework/XXXX-armv7 XXXX.framework/XXXX-arm64 -output XXXX.framework/XXXX