Xcode 4.2 中的“未找到有效签名身份”
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/9030457/
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
'Valid Signing Identity Not Found' in Xcode 4.2
提问by RaysonK
I know there are other questions that are very similar to this, but their symptoms aren't quite the same as mine.
我知道还有其他问题与此非常相似,但他们的症状与我的不太一样。
I have an app that I've been trying to submit to the App Store. I was running Xcode 3.2.6, and I kept getting an Invalid Binary error from iTunes Connect. I eventually found an answer that points to upgrading Xcode, so I downloaded 4.2.
我有一个应用程序,我一直在尝试提交到 App Store。我正在运行 Xcode 3.2.6,并且不断从 iTunes Connect 收到无效二进制错误。我最终找到了一个指向升级 Xcode 的答案,所以我下载了 4.2。
Now the problem is that Xcode won't recognize the distribution certificate that I used for the provisioning profile. I tried adding the profile and it gives the error message in the title. Also, if I try the Automatic Device Provisioning, the Distribution profile disappears completely.
现在的问题是 Xcode 无法识别我用于配置文件的分发证书。我尝试添加配置文件,它在标题中给出了错误消息。此外,如果我尝试自动设备配置,分发配置文件会完全消失。
This has been causing me some trouble for quite some time now. I know I have the Distribution certificate in my Keychain, so I think that Xcode is having a hard time seeing it for some strange reason. If you have an answer, please give it. If you need more info, go ahead and ask. I just need to find a solution...
一段时间以来,这一直给我带来一些麻烦。我知道我的钥匙串中有分发证书,所以我认为 Xcode 由于某些奇怪的原因很难看到它。如果你有答案,请给出。如果您需要更多信息,请继续询问。我只需要找到一个解决方案......
EDIT:
I'm thinking of diving into the project file through text edit and manually adding the distribution profile. At the part that says PROVISIONING_PROFILE = ""
, what do I put between the quotation marks?
编辑:我正在考虑通过文本编辑和手动添加分发配置文件来深入研究项目文件。在说的部分,PROVISIONING_PROFILE = ""
我在引号之间加了什么?
回答by Hymanslash
It sounds like you might not have the private key that you used to generate the certificate with Apple originally. If you have the private key installed when you open keychain access and click on certificates there would be a disclosure triangle you should be able to drop down and see the private key for that certificate like so:
听起来您可能没有最初用于与 Apple 生成证书的私钥。如果您在打开钥匙串访问并单击证书时安装了私钥,则会出现一个显示三角形,您应该能够下拉并查看该证书的私钥,如下所示:
If you don't have this key you need to delete the certificate you currently have, go to the iOS provisioning portal, revoke your current certificate and create a new one. The whole process shouldn't take more than 10 minutes.
如果您没有此密钥,则需要删除您当前拥有的证书,转到 iOS 配置门户,撤销您当前的证书并创建一个新证书。整个过程不应超过10分钟。