打包上传appsto错误 ERROR ITMS-90087: 和WARNING ITMS-90080: 问题
第一个错误 (环信问题)
ERROR ITMS-90087: “Unsupported Architectures. The executable for PDoctor.app/Frameworks/Hyphenate.framework contains unsupported architectures ‘[x86_64, i386]’.”
第二个错误
ERROR ITMS-90535: “Unexpected CFBundleExecutable Key. The bundle at ‘Payload/PDoctor.app/EaseUIResource.bundle’ does not contain a bundle executable. If this bundle intentionally does not contain an executable, consider removing the CFBundleExecutable key from its Info.plist and using a CFBundlePackageType of BNDL. If this bundle is part of a third-party framework, consider contacting the developer of the framework for an update to address this issue.”
警告
WARNING ITMS-90080: “The executable ‘Payload/PDoctor.app/Frameworks/Hyphenate.framework’ is not a Position Independent Executable. Please ensure that your build settings are configured to create PIE executables. For more information refer to Technical Q&A QA1788 – Building a Position Independent Executable in the iOS Developer Library.”
======================================================
终端操作,切换到SDK在的文件夹路径
zrq:HyphenateFullSDK apple$
zrq:HyphenateFullSDK apple$ mkdir ./bak
zrq:HyphenateFullSDK apple$
zrq:HyphenateFullSDK apple$
zrq:HyphenateFullSDK apple$ cp -r Hyphenate.framework ./bak
lipo Hyphenate.framework/Hyphenate -thin armv7 -output Hyphenate_armv7
lipo Hyphenate.framework/Hyphenate -thin arm64 -output Hyphenate_arm64
lipo -create Hyphenate_armv7 Hyphenate_arm64 -output Hyphenate
zrq:HyphenateFullSDK apple$ lipo Hyphenate.framework/Hyphenate -thin armv7 -output Hyphenate_armv7
zrq:HyphenateFullSDK apple$ lipo Hyphenate.framework/Hyphenate -thin arm64 -output Hyphenate_arm64
zrq:HyphenateFullSDK apple$ lipo -create Hyphenate_armv7 Hyphenate_arm64 -output Hyphenate
zrq:HyphenateFullSDK apple$
zrq:HyphenateFullSDK apple$
zrq:HyphenateFullSDK apple$
zrq:HyphenateFullSDK apple$
zrq:HyphenateFullSDK apple$
zrq:HyphenateFullSDK apple$ mv Hyphenate Hyphenate.framework/
zrq:HyphenateFullSDK apple$
zrq:HyphenateFullSDK apple$
======================================================
环信里图片惹的祸,也就是很多网上说的,第三方 info.plist文件 打开一看,果然里面暗藏这文件,找到 删除掉Executable file 字段,重新打包,上传应用商店就可以了。