ios 在Phonegap生成的App Store中部署.ipa文件?

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

Deploy .ipa file in App store generated by Phonegap?

ioscordovajquery-mobile

提问by Ruchi Agarwal

I have created an iOS apps using Phonegap. I also registered with apple developer program and generated all required certificates. Now, I want to deploy this .ipa file to app store. What I have to do now to publish this .ipa file to app store?

我已经使用 Phonegap 创建了一个 iOS 应用程序。我还注册了苹果开发者计划并生成了所有必需的证书。现在,我想将此 .ipa 文件部署到应用商店。我现在必须做什么才能将此 .ipa 文件发布到应用商店?

采纳答案by Stuart M

Once you've got the .ipafile ready to submit, you just need to visit iTunes Connect at https://itunesconnect.apple.com, create a record for your app, and fill in the required information. From the official documentation:

一旦你的.ipa文件,准备提交,你只需要访问iTunes Connect中在https://itunesconnect.apple.com,为您的应用程序创建一个记录,并填写所需的信息。从官方文档

The record in iTunes Connect includes a field for a bundle ID; the value you place in this field must exactly match the bundle ID for your app. Some Apple technologies, including Game Center and In-App Purchase, require that an iTunes Connect record be created earlier in the development process. For example, with In-App Purchase, you need to create the app record so that you can add the details of the items you want to sell. This content needs to be created before the development process is complete so that you can use it to test the code you added to implement In-App Purchase.

iTunes Connect 中的记录包含一个捆绑 ID 字段;您放置在此字段中的值必须与您的应用程序的包 ID 完全匹配。某些 Apple 技术(包括 Game Center 和应用内购买)要求在开发过程的早期创建 iTunes Connect 记录。例如,对于应用内购买,您需要创建应用记录,以便您可以添加要销售的项目的详细信息。此内容需要在开发过程完成之前创建,以便您可以使用它来测试为实现应用内购买而添加的代码。

So it should mostly just be a matter of submitting your app via iTunes Connect and waiting for approval.

所以这应该只是通过 iTunes Connect 提交您的应用程序并等待批准的问题。

回答by Simon Woodside

Here is an overview of how to submit a PhoneGap app to the App Store aka iTunes Connect. Amazingly, PhoneGap doesn't seem to provide these instructions.

以下是如何将 PhoneGap 应用程序提交到 App Store 又名 iTunes Connect 的概述。令人惊讶的是,PhoneGap 似乎没有提供这些说明。

  1. In the iOS Provisioning Portal, create a distribution certificate. As part of this process you will use Keychain Manager to create a Distribution Certificate. Export this certificate to Certificates.p12by right-clicking on it and choosing Export. Record the password because you will need it every time you do a build on build.phonegap.com.

  2. In the iOS Provisioning Portal create an app ID for your app.

  3. Create an App Store distribution profile and make sure you use the same private key/certificate to sign it as above. Download it.

  4. Now go to build.phonegap.comand go to your iOS build, and "add a key ...". Call it "App Store" and upload the .p12file and the .mobileprovisionfile.

  5. Rebuild and download the IPA file from PhoneGap Build.

  6. Make sure that your app is set to Ready to Upload Binaryin iTunes Connect.

  7. Upload the app using Application Loader(see also Where to find Application Loader app in Mac?) which comes with Xcode. You will upload the IPA file.

  1. 在 iOS Provisioning Portal 中,创建分发证书。作为此过程的一部分,您将使用 Keychain Manager 创建分发证书。Certificates.p12通过右键单击该证书并选择导出来导出该证书。记录密码,因为每次在 build.phonegap.com 上进行构建时都需要它。

  2. 在 iOS Provisioning Portal 中,为您的应用创建一个应用 ID。

  3. 创建一个 App Store 分发配置文件,并确保您使用与上述相同的私钥/证书对其进行签名。下载它。

  4. 现在转到build.phonegap.com并转到您的 iOS 版本,然后“添加密钥...”。称其为“App Store”并上传.p12文件和.mobileprovision文件。

  5. 从 PhoneGap Build 重建并下载 IPA 文件。

  6. 确保您的应用程序在 iTunes Connect 中设置为准备上传二进制文件

  7. 使用Xcode 附带的Application Loader上传应用程序(另请参阅在 Mac 中在哪里可以找到 Application Loader 应用程序?)。您将上传 IPA 文件。