简体   繁体   English

如何使用Xcode 4.3或Application Loader将应用程序提交到App Store

[英]How do I submit an app to the App Store using Xcode 4.3 or Application Loader

I have my first iOS app in "Waiting for upload" status in iTunes Connect but I am unable to submit it to the App Store because of issues I am having in Xcode 4.3 in Application Loader. 我在iTunes Connect的“等待上传”状态下有我的第一个iOS应用程序,但由于我在Application Loader中的Xcode 4.3中遇到的问题,我无法将其提交到App Store。

In Xcode 4.3 I have 3 provisioning profiles 在Xcode 4.3中,我有3个配置文件

  • Ad hoc provisioning profile 临时配置文件
  • App Store provisioning profile (valid signing identity not found) <-- What signing identity? App Store配置文件(找不到有效的签名身份)< - 签名身份是什么? I downloaded this from the Provisioning Portal! 我从Provisioning Portal下载了这个!
  • iOS Team provisioning profile iOS团队配置文件

After building and archiving my application I click "Distribute" and choose iOS App Store. 构建和归档我的应用程序后,单击“分发”并选择iOS App Store。 I enter my iTunes Connect username and password but get the following error message - No Identities Available for signing. 我输入我的iTunes Connect用户名和密码,但收到以下错误消息 - 没有可用于签名的身份。 What does that mean? 那是什么意思?

错误消息 - 没有可用于签名的身份

So I tried using Application Loader. 所以我尝试使用Application Loader。 I chose Ad Hoc or Enterprise Distribution in Xcode and exported the application file into a folder. 我在Xcode中选择了Ad Hoc或Enterprise Distribution,并将应用程序文件导出到一个文件夹中。 I selected that file in Application Loader but got the following error "Application failed codesign verification". 我在Application Loader中选择了该文件,但收到以下错误“Application failed codesign verification”。 When did Xcode sign the application and with which profile? 什么时候Xcode签署应用程序和使用哪个配置文件?

It looks like most of the tutorials and documentation I have found online are for older versions of Xcode. 看起来我在网上找到的大多数教程和文档都是旧版本的Xcode。 I have changed several of my Code Signing and Build Settings with no luck. 我已经更改了几个代码签名和构建设置而没有运气。

Could you please help? 能否请你帮忙?

Thanx 感谢名单

I am not sure about the certificates - but for my app I have it like this. 我不确定证书 - 但对于我的应用程序,我有这样的。 In the provisioning portal go to Certificates/Distribution and make sure you have certificate here and it is valid and you downloaded it - you must also have the private keys! 在配置门户中,转到证书/分发,并确保您在此处拥有证书并且该证书有效并且您已下载它 - 您还必须拥有私钥! (don't forget on the apple WWDR certificate). (不要忘记苹果WWDR证书)。 Then in Provisioning/Distribution make sure you had created a certificate for your app ID. 然后在配置/分发中确保您已为应用程序ID创建了证书。 It should work after setting them up in Xcode (below). 它应该在Xcode(下面)中设置后工作。

But, I know one thing. 但是,我知道一件事。 You don't have to submit your app through the Application Loader. 您不必通过Application Loader提交您的应用程序。 When you open Xcode, go to your project Build settings and setup your distribution certificates. 打开Xcode时,转到项目构建设置并设置分发证书。 Then you should Archive your app - simply change the run scheme to iOS device (in the upper left part of Xcode), then tap Product (in the Mac status bar) and Archive. 然后你应该存档您的应用程序 - 只需将运行方案更改为iOS设备(在Xcode的左上角),然后点击产品(在Mac状态栏中)和存档。

Once the archiving has been done, open Organizer and find Archives tab. 归档完成后,打开“管理器”并找到“归档”选项卡。 Then select your archive and click on Verify/Submit the app. 然后选择您的存档并单击验证/提交应用程序。 That should be it :) 那应该是:)

NB: Taken from the iOS provisioning portal guide, "Confirm that you are selecting “Request a Certificate From a Certificate Authority...” and not selecting “Request a Certificate From a Certificate Authority with …” meaning make sure that a private key is NOT selected in Key Chain when creating the certificate. 注意:取自iOS配置门户指南,“确认您正在选择”从证书颁发机构申请证书...“而不是选择”从证书颁发机构申请证书......“意味着确保私钥是创建证书时未在密钥链中选择

Somewhat obvious but check that your bundle identifier matches exactly. 有点明显但请检查您的包标识符是否完全匹配。 I was up all night trying to submit to the App Store and got the 'No Identities are available for signing' error. 我整夜都试图提交到App Store并得到“没有可用于签名的身份”错误。 Turns out one letter was capitalized on the distribution profile and lower case on the bundle identifier set in Xcode. 事实证明,在Xcode中设置的包标识符上,一个字母大写在分发配置文件和小写字母上。

It's actually a very common problem. 这实际上是一个非常普遍的问题。 If you want to upload it, when exporting from XCode, choose 'Save as enterprise or Ad Hoc Deployment' 如果要上传,从XCode导出时,选择“另存为企业或Ad Hoc部署”

导出应用时选择此项

not submit it to the ios app store. 不要将其提交到ios应用商店。 It should generate a .ipa file. 它应该生成一个.ipa文件。 Open application loader, choose the application you would like to add to iTunesConnect, and when it asks you for the file, select the .ipa file that XCode created. 打开应用程序加载器,选择要添加到iTunesConnect的应用程序,当它要求您输入文件时,选择XCode创建的.ipa文件。

发布应用程序的重要一点是检查您的Bundle Identifier是否与iTunes Connect中App的Bundle Identifier匹配。

I had this same issue. 我有同样的问题。 To fix it I went to the iOS Provisioning Portal, then selected "Provisioning" on the left. 为了解决这个问题,我去了iOS Provisioning Portal,然后在左边选择了“Provisioning”。 Then, I selected the "Distribution" tab and hit the "New Profile" button to create a new app distribution provisioning profile. 然后,我选择了“分发”选项卡并点击“新建配置文件”按钮以创建新的应用程序分发配置文件。

I'd bump up Chris Livdah's answer but my rep isn't high enough. 我会提高Chris Livdah的答案,但我的代表不够高。 Chris - thanks, this led to the solution for me. 克里斯 - 谢谢,这导致我的解决方案。 In fact I already had distribution provisioning profiles created but they had just recently expired. 事实上,我已经创建了分发配置文件,但它们刚刚过期。 The error message xCode was giving just said "No identities were available for signing" even though the private/public keys were correctly in the Key Store. 错误消息xCode刚刚给出了“没有可用于签名的身份”,即使私钥/公钥正确地存在于密钥库中。 To fix I just did the following: 要修复我只是做了以下事情:

  1. From the iOS Provisioning Portal, select "Provisioning" on the left 在iOS Provisioning Portal中,选择左侧的“Provisioning”
  2. Under "Provisioning Profiles" select "Distribution" (this is where I could see that the provisioning profiles had expired 在“Provisioning Profiles”下,选择“Distribution”(这是我可以看到供应配置文件已过期的地方)
  3. Click on the expired Provisioning Profile 单击过期的Provisioning Profile
  4. Click "Edit" 点击“编辑”
  5. Select the Certificate you want to use for the Provisioning Profile 选择要用于配置配置文件的证书
  6. Click "Generate" 点击“生成”
  7. Click "Download" 点击“下载”
  8. Open the file (it should launch xCode and add it to the Organizer) 打开文件(它应该启动xCode并将其添加到管理器)

After this I was able to submit the update to the App Store no problem. 在此之后,我能够将更新提交到App Store没问题。 They really need a better error message. 他们真的需要更好的错误信息。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何使用 Application Loader 将我的应用提交到应用商店? - How do I use Application Loader to submit my app to the app store? 如何将 .xcarchive 转换为 .ipa 以便客户端使用 Application Loader 将应用程序提交到应用程序商店 - How to convert .xcarchive to .ipa for client to submit app to app store using Application Loader Xcode 4.3如何保存应用程序屏幕的区域? - Xcode 4.3 How do I save a region of my app screen? 使用XCode 5中的两种方法将iOs App上载到App Store时出现问题-XCode Organizer和Application Loader - Problems upload iOs App to App Store using both methods from XCode 5 - XCode Organizer and Application Loader 如何使用Xcode将iOS应用程序提交到App Store(iTunes Connect) - How to Submit an iOS app to the App Store (iTunes Connect) using Xcode 从 Xcode 和 Application Loader 向 App Store 提交应用程序时出错 - Errors submitting app to App Store from Xcode and Application Loader 在Xcode 4.3中捆绑应用程序商店分发的应用程序 - Bundling app for app store distribution in Xcode 4.3 Xcode将应用提交到商店 - Xcode submit the app to the store Application Loader / Xcode坚持&#39;使用App Store验证资产“ - Application Loader/Xcode Stuck on 'Verifying Assets with the App Store" Xcode 12 停留在“使用 App Store 进行身份验证”(不再有应用程序加载程序) - Xcode 12 stuck at "Authenticating with App Store" (There is no Application Loader anymore)
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM