如何通过 Xcode 4 的组织者提交应用程序?我收到一个错误

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/5412004/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-14 20:38:03  来源:igfitidea点击:

How do I submit an app through Xcode 4's organizer? I'm getting an error

xcodeapp-storexcode4

提问by Slee

I installed Xcode 4, thinking it would be similar to Xcode 3, and now I cannot get my binary to the App Store using organizer which I believe is the proper way to do this.

我安装了 Xcode 4,认为它与 Xcode 3 类似,现在我无法使用管理器将我的二进制文件发送到 App Store,我认为这是执行此操作的正确方法。

Has anyone got this working properly? Not sure what setting I need to update - All I get is an "invalid binary" message. Of course, it is a critical update I need to submit.

有没有人让它正常工作?不确定我需要更新什么设置 - 我得到的只是“无效的二进制”消息。当然,这是我需要提交的重要更新。

回答by Moshe

I've had something similar. You should check your code signing settings. Xcode 4 introduces "schemes", which are a little complicated. Think of them as sets of configurations. In Xcode 3, you could only have one such set of settings.

我有过类似的事情。您应该检查您的代码签名设置。Xcode 4 引入了“方案”,这有点复杂。将它们视为一组配置。在 Xcode 3 中,您只能有一组这样的设置。

I believe that you need to check your code signing settings for your active scheme. Check the "Archive" option.

我相信您需要检查您的活动方案的代码签名设置。选中“存档”选项。

Edit your code signing settings:

编辑您的代码签名设置:

Set up code signing

设置代码签名

Then, ensure that your "Archive" option is using the correct signing settings. Click on the "Edit Scheme" entry in the menu on the top left of your window.

然后,确保您的“存档”选项使用正确的签名设置。单击窗口左上角菜单中的“编辑方案”条目。

enter image description here

在此处输入图片说明

And then verify that the proper signing setting is being used:

然后验证是否正在使用正确的签名设置:

enter image description here

在此处输入图片说明

Depending on how you've set up your code signing and Build Settings, you may need to adjust your schemes appropriately.

根据您设置代码签名和构建设置的方式,您可能需要适当调整您的方案。

回答by Hyman BeNimble

After trying a wide variety of options over a period of two intensive and enormously frustrating days, only to be faced with the cryptic and utterly unhelpful "invalid binary" message, I reviewed this post again.

在两天密集且极其令人沮丧的日子里尝试了多种选择后,却面临着神秘且毫无帮助的“无效二进制”消息,我再次查看了这篇文章。

When I reviewed avaynshtok's question - "You mean when you submit the binary, you have to select the distribution profile. However in the Code Signing section of the build settings, you still want the developer profile selected for the release build configuration, correct?"

当我查看 avaynshtok 的问题时 - “您的意思是当您提交二进制文件时,您必须选择分发配置文件。但是在构建设置的代码签名部分,您仍然希望为发布构建配置选择开发人员配置文件,对吗?”

Although it wasn't answered, it got me to think about the profile you select when you are in Organizer and select the "Submit" button. I took another look and realized that you need to set the distribution profile there, for which I had been just accepting the default until now.

虽然没有得到答复,但它让我想到了您在管理器中选择的个人资料并选择“提交”按钮。我又看了一眼,意识到您需要在那里设置分发配置文件,直到现在我才接受默认设置。

So, I set my "AppStore" archiving profile back to use the development certificates, as suggested above. I then resubmitted using the distribution profile at the Organizer "submit" time, and voila - it passed.

因此,我将我的“AppStore”归档配置文件重新设置为使用开发证书,如上所述。然后我在组织者“提交”时间使用分发配置文件重新提交,瞧——它通过了。

Question to Apple: you guys have $70,000,000,000 in cash. Can you afford to update the apps store submission procedure docs and "invalid binary" message to be a tad more clear? I'd be fired if I produced such low quality work.

对 Apple 的问题:你们有 70,000,000,000 美元现金。您能负担得起更新应用商店提交程序文档和“无效二进制”消息以使其更加清晰吗?如果我制作出质量如此低的作品,我会被解雇。