iPhone应用程序提交:错误ITMS-90171:无效的捆绑结构(constants.o) [英] iPhone App Submitting: ERROR ITMS-90171: Invalid Bundle Structure (constants.o)

查看:538
本文介绍了iPhone应用程序提交:错误ITMS-90171:无效的捆绑结构(constants.o)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经做了很多研究,并做了很多尝试来消除此错误.绝对没有用. =(

I have done a TON of research and done several things to try and get rid of this error. Absolutely nothing works. =(

当我从Xcode将档案上传到应用商店时,出现以下错误:

When I go to upload my archive to the app store from within Xcode, I get the following error:

错误ITMS-90171:无效的捆绑包结构-不允许二进制文件'.app/constants.o'.您的应用除了包含受支持的捆绑包的CFBundleExecutable之外,不能包含独立的可执行文件或库.请参阅 https://developer.apple.com/go/?id= bundle-structure 获取有关iOS应用程序bundle结构的信息."

ERROR ITMS-90171: "Invalid Bundle Structure - The binary file '.app/constants.o' 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."

我看了几个引用此错误的StackOverflow页面.他们都无法解决错误.

I have looked at several StackOverflow pages that reference this error. None of them resolve the error.

我什至在我的文件目录结构(在Xcode中)或通过命令行都找不到"constants.o".

I can't even find "constants.o" in my file directory structure (in Xcode) or via command line.

对于我的副本构建资源,我只有以下内容:

For my Copy Build Resources, I only have the following:

  • 字体文件(file.ttf)
  • 图像资产文件
  • Main.Storyboard文件

所以,这不是问题.

我在功能"中启用的唯一权利是推送通知".

The only entitlement I have enabled in Capabilities is Push Notifications.

我可以确定问题出在我执行上传存档过程时显示在第一页上的"constants.o".但是,我不知道它从哪里来.有人知道此文件来自何处吗?我如何摆脱它?

I'm pretty certain the issue is the "constants.o" that shows up on the first page when I go through the upload archive process. But, I do not know where it's coming from. Does anyone know where this file is coming from? How do I get rid of it??

推荐答案

我将Xprofile的配置文件设置为自动",以确定要使用的正确配置文件.这就是问题所在. Xcode没有选择正确的个人资料

I had the provisioning profile set to Automatic for Xcode to determine the correct profile to use. This was the issue. Xcode was not picking the correct profile

设置配置文件设置为自动"时设置不正确.我必须专门在构建设置"中进行设置.

The provisioning profile wasn't setting correctly when it was set to Automatic. I had to specifically set this in the Build Settings instead.

Constants.o不应出现在存档过程中.检查您的配置文件,并确保已为发布版本正确设置.

Constants.o should not show up in the archive process. Check your provisioning profile and make sure it is set correctly for Release Version.

这篇关于iPhone应用程序提交:错误ITMS-90171:无效的捆绑结构(constants.o)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆