提交AppStore 提示:ERROR ITMS-90085: "No architectures in the binary. Lipo failed to detect any archit...

问题描述

项目中遇到了这个问题,寻找了baidu,overflow,Google,biying,都没能解决。寻找到了解决方案,贴出来 供参考哈

Xcode12 提交审核 提示:

ERROR ITMS-90085: "No architectures in the binary. Lipo failed to detect any architectures in the bundle executable.”

网上好多说法,删除Pod重新pod install、升级xcode、升级Transpoter,我都试过了,都不能解决问题。于是尝试自己分析日志,找问题的根源:

最终找到原因是因为项目中使用了百度的OCR。由于OCR的SDK中包含了x86_64。而我只是在Build Pahases中添加了个Run Script脚本,导致了该错误。

解决方法是:

将脚本删除,然后删除skd中包含的X86_64的文件。

以下为百度给出移除X86_64框架的方法:

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
©著作权归作者所有,转载或内容合作请联系作者
【社区内容提示】社区部分内容疑似由AI辅助生成,浏览时请结合常识与多方信息审慎甄别。
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

相关阅读更多精彩内容

友情链接更多精彩内容