方法一: 这是因为code 新的build System造成的,一个避免延误开发打包的方法展示给大家:
进入xcode -file-workSpace settings :
屏幕快照 2018-09-19 下午5.00.23.png
选择 legacy build System 重新打包导出解决问题。
方法二:
为了方便开发者调试,AipBase.framework合并了模拟器和真机架构,上线前,使用lipo工具移除相关架构即可,就可以解决这个问题,这个解决的比较彻底,建议用这个方法:
cd lib
使用lipo -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
作者:不伟心
链接:https://www.jianshu.com/p/e6ebce606745