ios 将 iPhone 应用程序上传到 AppStore 的步骤
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/796482/
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
Steps to upload an iPhone application to the AppStore
提问by Arun Thakkar
I want to know the basic steps for uploading my iPhone application to AppStore.
我想知道将我的 iPhone 应用程序上传到 AppStore 的基本步骤。
How do I make a provisioning profile using a certificate and what other settings do I need to do to upload an application?
如何使用证书制作配置文件以及上传应用程序还需要进行哪些其他设置?
I have just made an application on my iMac using Xcode and the iPhone SDK V2.2.1. What do I need to do for uploading it on the Apple iTunes store?
我刚刚使用 Xcode 和 iPhone SDK V2.2.1 在我的 iMac 上制作了一个应用程序。我需要做什么才能将其上传到 Apple iTunes 商店?
I am member of that and I have also a distribution certificate.
我是其中的一员,而且我还有一个发行证书。
回答by Mitch Wheat
This arstechnica articledescribes the basic steps:
这篇arstechnica 文章描述了基本步骤:
Start by visiting the program portal and make sure that your developer certificate is up to date. It expires every six months and, if you haven't requested that a new one be issued, you cannot submit software to App Store. For most people experiencing the "pink upload of doom," though, their certificates are already valid. What next?
Open your Xcode project and check that you've set the active SDK to one of the device choices, like Device - 2.2. Accidentally leaving the build settings to Simulator can be a big reason for the pink rejection. And that happens more often than many developers would care to admit.
Next, make sure that you've chosen a build configuration that uses your distribution (not your developer) certificate. Check this by double-clicking on your target in the Groups & Files column on the left of the project window. The Target Info window will open. Click the Build tab and review your Code Signing Identity. It should be iPhone Distribution: followed by your name or company name.
You may also want to confirm your application identifier in the Properties tab. Most likely, you'll have set the identifier properly when debugging with your developer certificate, but it never hurts to check.
The top-left of your project window also confirms your settings and configuration. It should read something like "Device - 2.2 | Distribution". This shows you the active SDK and configuration.
If your settings are correct but you still aren't getting that upload finished properly, clean your builds. Choose Build > Clean (Command-Shift-K) and click Clean. Alternatively, you can manually trash the build folder in your Project from Finder. Once you've cleaned, build again fresh.
If this does not produce an app that when zipped properly loads to iTunes Connect, quit and relaunch Xcode. I'm not kidding. This one simple trick solves more signing problems and "pink rejections of doom" than any other solution already mentioned.
首先访问程序门户并确保您的开发人员证书是最新的。它每六个月到期一次,如果您没有要求发布新的,则不能向 App Store 提交软件。不过,对于大多数经历“粉红色末日上传”的人来说,他们的证书已经有效。接下来是什么?
打开您的 Xcode 项目并检查您是否已将活动 SDK 设置为设备选择之一,例如 Device - 2.2。不小心将构建设置留给模拟器可能是粉红色拒绝的一个重要原因。而且这种情况发生的频率比许多开发人员愿意承认的要多。
接下来,确保您选择了使用您的分发(而不是您的开发人员)证书的构建配置。通过在项目窗口左侧的 Groups & Files 列中双击您的目标来检查这一点。目标信息窗口将打开。单击构建选项卡并查看您的代码签名标识。它应该是 iPhone Distribution: 后跟您的姓名或公司名称。
您可能还想在“属性”选项卡中确认您的应用程序标识符。最有可能的是,在使用开发人员证书进行调试时,您已经正确设置了标识符,但检查起来没有什么坏处。
项目窗口的左上角还会确认您的设置和配置。它应该类似于“设备 - 2.2 | 分发”。这将向您显示活动的 SDK 和配置。
如果您的设置正确但仍然没有正确完成上传,请清理您的构建。选择“构建”>“清理”(Command-Shift-K),然后单击“清理”。或者,您可以从 Finder 手动删除项目中的构建文件夹。清洁后,重新构建。
如果这不会产生在压缩后正确加载到 iTunes Connect 的应用程序,请退出并重新启动 Xcode。我不是在开玩笑。这个简单的技巧比已经提到的任何其他解决方案解决了更多的签名问题和“粉红色拒绝厄运”。
回答by Tom Harrington
Apple provides detailed, illustrated instructions covering every step of the process. Log in to the iPhone developer site and click the "program portal" link. In the program portal you'll find a link to the program portal user's guide, which is a really good reference and guide on this topic.
Apple 提供了详细的插图说明,涵盖了该过程的每个步骤。登录 iPhone 开发者网站,点击“程序门户”链接。在程序门户中,您将找到指向程序门户用户指南的链接,这是有关此主题的非常好的参考和指南。
回答by Mampersat
Check that your singing identity IN YOUR TARGET properties is correct. This one over-rides what you have in your project properties.
检查您在您的目标属性中的歌唱身份是否正确。这个覆盖了您在项目属性中的内容。
Also: I dunno if this is true - but I wasn't getting emails detailing my binary rejections when I did the "ready for binary upload" from a PC - but I DID get an email when I did this on the MAC
另外:我不知道这是否属实 - 但是当我从 PC 执行“准备好二进制上传”时,我没有收到详细说明我的二进制拒绝的电子邮件 - 但是当我在 MAC 上执行此操作时我确实收到了一封电子邮件
回答by Suragch
Xcode 9
Xcode 9
If this is your first time to submit an app, I recommend going ahead and reading through the full Apple iTunes Connect documentationor reading one of the following tutorials:
如果这是您第一次提交应用程序,我建议您继续阅读完整的Apple iTunes Connect 文档或阅读以下教程之一:
- How to Submit an iOS App to the App Store
- How to Submit An App to Apple: From No Account to App Store
However, those materials are cumbersome when you just want a quick reminder of the steps. My answer to that is below:
但是,当您只想快速提醒步骤时,这些材料很麻烦。我的回答如下:
Step 1: Create a new app in iTunes Connect
第 1 步:在 iTunes Connect 中创建一个新应用
Sign in to iTunes Connect and go to My Apps. Then click the "+" button and choose New App.
登录 iTunes Connect 并前往“我的应用”。然后单击“+”按钮并选择“新建应用程序”。
Then fill out the basic information for a new app. The app bundle id needs to be the same as the one you are using in your Xcode project. There is probably a better was to name the SKU, but I've never needed it and I just use the bundle id.
然后填写新应用的基本信息。应用程序包 ID 需要与您在 Xcode 项目中使用的相同。命名SKU可能更好,但我从不需要它,我只使用捆绑包 ID。
Click Createand then go on to Step 2.
单击创建,然后继续执行步骤 2。
Step 2: Archive your app in Xcode
第 2 步:在 Xcode 中存档您的应用
Choose the Generic iOS Devicefrom the active scheme menu.
从活动方案菜单中选择通用 iOS 设备。
Then go to Product > Archive.
然后转到“产品”>“存档”。
You may have to wait a little while for Xcode to finish archiving your project. After that you will be shown a dialog with your archived project. You can select Upload to the App Store...and follow the prompts.
您可能需要等待 Xcode 完成对项目的归档。之后,您将看到一个包含存档项目的对话框。您可以选择上传到 App Store...并按照提示操作。
I sometimes have to repeat this step a few times because I forgot to include something. Besides the upload wait, it isn't a big deal. Just keep doing it until you don't get any more errors.
有时我不得不多次重复此步骤,因为我忘记包含某些内容。除了上传等待,这没什么大不了的。继续这样做,直到您不再遇到任何错误为止。
Step 3: Finish filling out the iTunes Connect info
第 3 步:完成 iTunes Connect 信息的填写
Back in iTunes Connect you will need to complete all the required information and resources.
返回 iTunes Connect,您需要完成所有必需的信息和资源。
Just go through all the menu options and make sure that you have everything entered that needs to be.
只需浏览所有菜单选项并确保您已输入需要的所有内容。
Step 4: Submit
第 4 步:提交
In iTunes Connect, under your app's Prepare for Submission section, click Submit for Review. That's it. Give it about a week to be accepted (or rejected), but it might be faster.
在 iTunes Connect 中,在您应用程序的准备提交部分下,单击提交以供审核。就是这样。给它大约一周的时间来接受(或拒绝),但可能会更快。