xcode 如何让我的phonegap ipa文件上传到苹果应用商店

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

How to get my phonegap ipa file uploaded to the apple app store

iosxcodecordovaipaapplication-loader

提问by Nate Norman

I have successfully built and tested an app using phonegap. Now I want to upload it to the apple store, but when I run the IPA file through application loader it warns me the bundle id doesnt match what I put into the itunes connect. Can I configure the bundle id through phonegap or do I have to pull it into xcode and configure it through the info.plist?

我已经使用 phonegap 成功构建并测试了一个应用程序。现在我想将它上传到苹果商店,但是当我通过应用程序加载器运行 IPA 文件时,它警告我捆绑 ID 与我放入 iTunes 连接的内容不匹配。我可以通过 phonegap 配置 bundle id 还是必须将它拉入 xcode 并通过 info.plist 配置它?

What is the easiest way to get my app uploaded to the store with matching information?

使用匹配信息将我的应用上传到商店的最简单方法是什么?

回答by Zathrus Writer

In order to get your app into App Store, you will need to create an application (in App IDs) with the same Bundle Identifier as you presently use in your application..

为了让您的应用程序进入 App Store,您需要创建一个应用程序(在App IDs 中),其捆绑标识符与您目前在应用程序中使用的相同。

Also, you will need valid provisioning profile set up for use on the App Store. You'll find this in Provisioning Portalunder Members Center. Don't forget to create this profile in the Distributiontab and choose the appropriate App ID (the new one you have created).

此外,您需要设置有效的配置文件以在 App Store 上使用。您可以在Member Center下的Provisioning Portal 中找到它。不要忘记在“分发”选项卡中创建此配置文件并选择适当的应用程序 ID(您创建的新应用程序 ID)。

Then, you will need to download that provisioning profile, drag it into your XCode to install it and use it in Code Signing part under Build Settings.

然后,您需要下载该配置文件,将其拖到您的 XCode 中进行安装,并在构建设置下的代码签名部分使用它。

At last, you will need to visit iTunes Connect, where you'd create a new application request (under Manager Your Applications). Be sure to use the same App ID that you use in your application.

最后,您需要访问iTunes Connect,您在其中创建一个新的应用程序请求(在Manager Your Applications 下)。请务必使用您在应用程序中使用的相同 App ID。

After this, archive your application in XCode (using Project - Archivemenu item). Make sure your current scheme (top left dropdown) is set for production use, not debug. You can edit your schemes to verify (not sure under which menu it is now).

在此之后,在 XCode 中存档您的应用程序(使用项目 - 存档菜单项)。确保您当前的方案(左上角下拉菜单)设置为生产使用,而不是调试。您可以编辑您的方案进行验证(不确定现在在哪个菜单下)。

Last step is to click the archived application and select Distribute(or Sharein older XCode) and choose to export into App Store.

最后一步是单击存档的应用程序并选择分发(或在旧版 XCode 中共享)并选择导出到 App Store。

I hope this helps you a bit :)

我希望这对你有所帮助:)