Xcode 不允许我上传我的应用程序

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/33630860/
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-15 08:11:07  来源:igfitidea点击:

Xcode won't let me upload my app

iosxcodecordova

提问by Alesh Houdek

I have an iOS app created with Cordova, and have just paid my $99 to apple to upload it to the App Store. I've created the app archive, but in the Organizer Upload to App Store…is grayed out, and I've got "Distribution requires enrollment in the Apple Developer Program."

我有一个用 Cordova 创建的 iOS 应用程序,我刚刚向苹果支付了 99 美元,将它上传到 App Store。我已经创建了应用程序存档,但在管理器中显示Upload to App Store…为灰色,并且显示“分发需要注册 Apple Developer Program”。

enter image description here

在此处输入图片说明

Here is my account in preferences, which I have tried removing and re-adding

这是我在首选项中的帐户,我已尝试删除并重新添加

enter image description here

在此处输入图片说明

What am I missing?

我错过了什么?

回答by Dai

I see you have two Team entries. I believe the issue might be because you have the "Personal Team" option selected under your Project settings page.

我看到你有两个团队条目。我相信问题可能是因为您在项目设置页面下选择了“个人团队”选项。

In Xcode, in the Filesystem sidebar, select the Project node, select your main Target, and choose the non-Personal Team entry. Ensure you have a device selected so you can provision it, then rebuild and rearchive, then it should work.

在 Xcode 中,在 Filesystem 侧栏中,选择 Project 节点,选择您的主 Target,然后选择 non-Personal Team 条目。确保您选择了一个设备,以便您可以配置它,然后重建和重新存档,然后它应该可以工作。

回答by Alex Tarkowski

What happened to work for me was to "Enable Bitcode: Yes" under Build Options in my project target in Xcode. With that enabled I was able to upload to app store via the Application Loader.

对我有用的是在 Xcode 的项目目标中的 Build Options 下“Enable Bitcode: Yes”。启用后,我可以通过应用程序加载器上传到应用程序商店。

I had to archive the project and export with bitcode attached.

我必须存档项目并导出附加位码。

I know this is way past the time for the original post, but hopefully it can help someone looking for a similar solution.

我知道这已经超过了原始帖子的时间,但希望它可以帮助寻找类似解决方案的人。