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

查看:118
本文介绍了如何连接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中的角色是管理员"和合法".我是一个团队的一员.援助将不胜感激,因为我已经走了很远,并且临近失败.

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的钥匙串中制作另一个证书,但是请不要担心,苹果会在这里告诉您如何完成此操作:

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天全站免登陆