1.拆分多架构支持的静态库
比如 AipBase.framework,cd到库的文件夹
cd /Users/qiuzhongwei/Desktop/HaveCar_Pad\ -\ ww\ 2/HaveCar_Pad/Framework
# 使用lifo -info 可以查看包含的架构
lipo -info AipBase.framework/AipBase
# Architectures in the fat file: AipBase are: i386 x86_64 armv7 armv7s arm64
# 移除x86_64, i386
lipo -remove x86_64 AipBase.framework/AipBase -o AipBase.framework/AipBase
lipo -remove i386 AipBase.framework/AipBase -o AipBase.framework/AipBase
lipo -remove x86_64 AipOcrSdk.framework/AipOcrSdk -o AipOcrSdk.framework/AipOcrSdk
lipo -remove i386 AipOcrSdk.framework/AipOcrSdk -o AipOcrSdk.framework/AipOcrSdk
# 再次查看
lipo -info AipBase.framework/AipBase # Architectures in the fat file: AipBase are: armv7 armv7s arm64
2.合并多个架构静态库
lipo -create /Users/qiuzhongwei/Desktop/HaveCar_Pad\ -\ ww\ 2/HaveCar_Pad/Framework/AipBase.framework/AipBase.i386.a /Users/qiuzhongwei/Desktop/HaveCar_Pad\ -\ ww\ 2/HaveCar_Pad/Framework/AipBase.framework/AipBase.arm.a -output /Users/qiuzhongwei/Desktop/HaveCar_Pad\ -\ ww\ 2/HaveCar_Pad/Framework/AipBase.framework/AipBase.a