App Store提交错误无效的捆绑结构 [英] App store submission error Invalid Bundle Structure
问题描述
在尝试提交以前成功提交的应用程序版本升级时,我从XCode 8.1收到以下错误:
I am receiving the following error from XCode 8.1 when trying to submit a previously successful submitted app version upgrade:
错误ITMS-90171:无效的捆绑包结构-不允许二进制文件'Particle.app/Particle_armv7'.除了受支持的捆绑包的CFBundleExecutable之外,您的应用程序不能包含独立的可执行文件或库.请参阅捆绑包 https://developer.apple.com/go/?id=bundle上的编程指南-structure 获取有关iOS应用捆绑包结构的信息."
错误ITMS-90171:无效的捆绑包结构-不允许二进制文件'Particle.app/Particle_armv7'.除了受支持的捆绑包CFBundleExecutable外,您的应用程序不能包含独立的可执行文件或库.请参阅捆绑包编程指南,网址为 https://developer.apple.com/go/?id=bundle-structure 获取有关iOS应用捆绑包结构的信息."
ERROR ITMS-90171: "Invalid Bundle Structure - The binary file 'Particle.app/Particle_armv7' is not permitted. Your app can’t contain standalone executables or libraries, other than the CFBundleExecutable of supported bundles. Refer to the Bundle Programming Guide at https://developer.apple.com/go/?id=bundle-structure for information on the iOS app bundle structure."
ERROR ITMS-90171: "Invalid Bundle Structure - The binary file 'Particle.app/Particle_armv7' is not permitted. Your app can’t contain standalone executables or libraries, other than the CFBundleExecutable of supported bundles. Refer to the Bundle Programming Guide at https://developer.apple.com/go/?id=bundle-structure for information on the iOS app bundle structure."
对于此构建的体系结构,我没有进行任何修改.有什么想法可以解决这个问题吗?
I did not modify anything in regards to architectures this build. Any idea where I should look to solve this problem?
推荐答案
当静态库文件被错误地复制到应用程序包中时,会发生此错误.
This error occurs when a static library file is mistakenly copied into the app bundle.
您应通过带有库的链接二进制文件构建阶段将libYourLibrary.a静态库链接.
You should link the libYourLibrary.a static library via a Link Binary with Libraries build phase.
应该不将其添加到目标的副本捆绑资源构建阶段.
It should NOT be added to the target's Copy Bundle Resources build phase.
这篇关于App Store提交错误无效的捆绑结构的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!