提交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

你可能感兴趣的:(提交AppStore 提示:ERROR ITMS-90085: "No architectures in the binary. Lipo failed to detect any archit...)