未找到具有有效签名身份(即证书和私钥对)的配置文件 [英] No provisioning profiles with a valid signing identity (i.e. certificate and private key pair) were found

查看:47
本文介绍了未找到具有有效签名身份(即证书和私钥对)的配置文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是的,我知道这个问题有很多重复,但我尝试了其他人建议的所有方法.此时我没有重复,我从头开始撤销并重新生成证书和密钥,我将我的证书与相应的密钥配对.

Yes, I am aware of the numerous duplicates of this question, but I tried everything suggested by others. At this point I don't have duplicates, I revoked and regenerated the certificates and keys from the scratch, I have my certificates paired with the corresponding keys.

我面临的问题如下:如果我尝试在我的构建设置中发布带有分发配置文件的版本,我会不断收到我的标题中指定的错误,尽管有一个开发配置文件,但它可以工作并且不会引起任何问题.如果我继续使用开发配置文件并创建存档,在尝试分发它时,我无法再次指定我的分发配置文件,因为我不断收到此 Mac 上未安装"的私钥.

The problem that I am facing is as follows: if I try to have the release with a distribution profile in my build settings I keep getting the error specified in my header, having a development profile though, works and doesn't provoke any problems. In case, I continue with a development profile and create the archive, when trying to distribute it, I can not specify my distribution profile again as I keep getting The private key for "" is not installed on this mac.

为了生成证书和密钥,我使用了 xCodes Preferences -> Account.对于我的开发证书,xCode 自己下载了证书,而我必须手动下载发行版.它也为我下载了所有配置文件,因为我可以在我的 iPhone 配置实用程序中将它们可视化.

For generating certificates and keys,I used xCodes Preferences -> Account. For my development certificate xCode downloaded the certificate on it's own, while the distribution one I had to download manually. It did as well download all the profiles for me as I can visualise them in my iPhone configuration utility.

问题是:我是否遗漏了分发配置文件中的某些内容?错误消息说:没有找到与您的构建设置"中指定的配置文件匹配的代码签名身份(即证书和私钥对).这是否意味着我必须将我的证书与个人资料不知何故?

The question is: Am I missing something for the distribution profile? The error message says: No codesigning identities (i.e. certificate and private key pairs) that match the provisioning profile specified in your build settings "" were found. does this mean that I have to link my certificate with the profile somehow?

推荐答案

您应该转到 KeyChain 访问并检查您的分发证书是否包含 私钥.如果没有,您需要重新生成您的分发证书,无法从开发者站点获取私钥,这意味着您永远丢失了密钥.

You should go to KeyChain Access and check if your distribution certificate contains a private key. If it doesn't, you need to regenerate your distribution certificate, the private key can't be retrieve from developer site, which means you have lost the key forever.

分发证书应如下所示:

这篇关于未找到具有有效签名身份(即证书和私钥对)的配置文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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