如何连接 Xcode 和 iTunes Connect [英] How to connect Xcode and iTunes Connect

查看:25
本文介绍了如何连接 Xcode 和 iTunes Connect的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经完成了我的第一个应用程序.iTunes Connect 正在等待上传,并将该应用程序指定为等待上传".我开始了存档过程.完成后,我单击验证"按钮并收到以下信息:没有可用于签名的身份".我尝试下载身份并收到警告标志和消息管理员必须先请求身份才能下载".

I have completed my first app. iTunes Connect is waiting for its upload and has designated the app as "Waiting for Upload". I started the process of archiving. When complete, I clicked the Validate button and received this: "No identities available for signing". I tried to download identities and received the warning sign and message " An administrator must request identities before they can be downloaded".

验证提供了以下警告警告:应用程序未能通过协同设计验证.签名无效,包含不允许的权利,或者未使用 iPhone 分发证书签名.(-19011)".

The validation provided the following warning "warning: Application failed codesign verification. The signature was invalid, contains disallowed entitlements, or it was not signed with an iPhone Distribution Certificate. (-19011)".

我通过论坛研究了这些消息,虽然有几次目击,但我终生无法弄清楚该怎么做.我认为 Xcode 和 iTunes Connect 之间的通信存在某种故障.我在 iTunes Connect 中的角色是admin"和legal".我是一个人的团队.帮助将不胜感激,因为我已经走了很远,发现失败就在眼前.

I have researched these messages through the forum and though there are several sightings, I cannot for the life of me figure out what to do. I assume there is some sort of breakdown in communication between Xcode and iTunes Connect. My roles in iTunes connect are "admin" and "legal". I am a team of one. Assistance would be greatly appreciated, for I have come far and find defeat near at hand.

推荐答案

当你第一次这样做时,这个过程就像一场噩梦.
我觉得最重要的是证书和代码签名,其他的都不难.

The process is a nightmare the first time you do it.
I think the most important thing is the certificates and code signing, the rest is not too hard.

我建议您采取以下步骤:

I recommend you take these steps:

  1. 登录https://developer.apple.com/account/ios/certificate/certificateList.action 并且您必须创建 2 个证书(1 个用于开发,1 个用于分发)和 2 个配置文件(1 个用于开发,1 个用于分发).

  1. Log in to https://developer.apple.com/account/ios/certificate/certificateList.action and you will have to create 2 certificates (1 for development & 1 for distribution) and 2 provisioning profiles(1 for development & 1 for distribution).

证书比配置文件更难制作,因为它涉及从你的 MAC 的钥匙串制作另一个证书,但别担心,苹果在这里告诉你这是如何完成的:
https://developer.apple.com/account/ios/certificate/certificateLanding.action

The certificates are a bit harder to make than the provisioning profiles because it involves making another certificate from your MAC's keychain, but don't worry, apple tells you how this is done here:
https://developer.apple.com/account/ios/certificate/certificateLanding.action

制作完所有 2 个证书和 2 个配置文件后,您需要下载它们并双击每一个,以便 Xcode 和 Kaychain 可以读取它们.

After you have made all 2 certificates and 2 provisioning profiles, you will need to download them and double click on each one so that Xcode and Kaychain can read them.

现在这是最重要的事情……您必须将应用的代码签名设置为与您刚刚创建的新的 2 个配置文件相匹配.

Now this is the most important thing... you MUST set your app's code signing to match with the new 2 Provisioning Profiles that you just created.

您的项目和目标的代码签名都必须设置为与这些配置文件匹配.调试"代码签名应使用开发"配置文件设置,发布"代码签名必须使用分发"配置文件设置.

Both your project and your target's code signing MUST be set to match with these provisioning profiles. The 'debug' code signing should be set with the 'development' provisioning profile, and the 'release' code signing must be set with the 'distribution' provisioning profile.

以下是 2 个屏幕截图,其中一个是应用目标的代码签名,另一个是应用项目的代码签名:

Here are 2 screenshots, one of the code signing for the app's target, and one of the code signing for the app's project:

完成此操作后(假设您已在 Xcode 中设置了应用程序包 ID 以匹配用于创建配置文件的应用程序 ID),您现在需要做的就是将其存档并尝试一次再次上传到itunesconnect.

Once you have done that (assuming that you have set up your app Bundle ID in Xcode to match the app id that you used to create the provisioning profiles), all you will need to do now is archive it and attempt to once again upload it to itunesconnect.

这篇关于如何连接 Xcode 和 iTunes Connect的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆