lipo -remove x86_64 AipBase -o AipBase

为了方便开发者调试,AipBase.framework合并了模拟器和真机架构,上线前,使用lipo工具移除相关架构即可,就可以解决这个问题,这个解决的比较彻底,建议用这个方法:

LK-Macmini:Xcode linknetwork$ cd /Users/linknetwork/Desktop/PortOfTrade/ThirdDeploy/BaiduOCR/AipBase.framework
LK-Macmini:AipBase.framework linknetwork$ pwd
/Users/linknetwork/Desktop/PortOfTrade/ThirdDeploy/BaiduOCR/AipBase.framework
LK-Macmini:AipBase.framework linknetwork$ ls
AipBase     Headers     Info.plist  Modules
LK-Macmini:AipBase.framework linknetwork$ lipo -info AipBase 
Architectures in the fat file: AipBase are: i386 x86_64 armv7 arm64 
LK-Macmini:AipBase.framework linknetwork$ lipo -remove i386 AipBase -o AipBase
LK-Macmini:AipBase.framework linknetwork$ lipo -remove x86_64 AipBase -o AipBase
LK-Macmini:AipBase.framework linknetwork$ lipo -info AipBase
Architectures in the fat file: AipBase are: armv7 arm64 
LK-Macmini:AipBase.framework linknetwork$ cd /Users/linknetwork/Desktop/PortOfTrade/ThirdDeploy/BaiduOCR/AipOcrSdk.framework
LK-Macmini:AipOcrSdk.framework linknetwork$ lipo -remove x86_64 AipOcrSdk -o AipOcrSdk
LK-Macmini:AipOcrSdk.framework linknetwork$ lipo -remove i386 AipOcrSdk -o AipOcrSdk
LK-Macmini:AipOcrSdk.framework linknetwork$ lipo -info AipOcrSdk
Architectures in the fat file: AipOcrSdk are: armv7 arm64 

你可能感兴趣的:(lipo -remove x86_64 AipBase -o AipBase)