[英]Xcode 4.2 - Code Signing Error
I finally succeeded in building my first iPhone app but now I am pulling some hair out over a code signing problem. 我终于成功构建了我的第一个iPhone应用程序,但是现在我在解决代码签名问题方面付出了很多努力。
This is the error message I get when I try to build the code in Xcode for my device - 这是我尝试在Xcode中为设备构建代码时收到的错误消息-
Code Sign error: The identity 'iPhone Developer' doesn't match any valid certificate/private key pair in the default keychain 代码签名错误:“ iPhone开发者”身份与默认钥匙串中的任何有效证书/私钥对都不匹配
In the organizer, I have a warning - Xcode could not find a valid private-key/certificate pair for this profile on your keychain. 在组织者中,我有一个警告-Xcode在您的钥匙串上找不到用于此配置文件的有效私钥/证书对。
I have tried the following things - 我尝试了以下方法-
I have deleted and re-created all the certificates from my Provisioning profile on developer.apple.com 我已经从developer.apple.com上的“供应”配置文件中删除并重新创建了所有证书。
In Utilities->Keychain, I have deleted the certificates from the System Keychain. 在实用程序->钥匙串中,我已从系统钥匙串中删除了证书。 The certificate is stored only in the login keychain. 证书仅存储在登录钥匙串中。
I have re-started my Xcode and also my Mac 我已经重新启动了Xcode和Mac
In the target, code signing section I have tried both iPhone Developer and also iPhone Distribution. 在目标的代码签名部分中,我尝试了iPhone Developer和iPhone Distribution。 For some reason the provisioning profile that I created has been grayed out. 由于某种原因,我创建的配置文件已灰显。
So now I have no idea what's going on and don't know what to do. 所以现在我不知道发生了什么,也不知道该怎么办。 I'll appreciate any help. 我将不胜感激。
Thanks a lot. 非常感谢。
In addition to the provisioning profiles, you also need the private keys for your developer account (one for development and one for distribution). 除了供应配置文件外,您还需要开发人员帐户的私钥(一个用于开发,一个用于分发)。
The provisioning profiles list all of the devices which the app is able to run on. 供应配置文件列出了该应用能够在其上运行的所有设备。 But the actual app is signed with your account's private key. 但是实际的应用程序是使用您帐户的私钥签名的。 This key is not stored in Xcode, it's stored in Keychain Access (to ensure it's encrypted with your user login credentials). 此密钥未存储在Xcode中,而是存储在“钥匙串访问”中(以确保使用您的用户登录凭据对其进行加密)。
At some point you will need to repeat those steps, but for the "Distribution" tab of the certificates section. 在某些时候,您将需要重复这些步骤,但是对于“证书”部分的“分发”选项卡。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.