ios 未找到具有有效签名身份(即证书和私钥对)的配置文件

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/24381216/
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

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-31 01:04:19  来源:igfitidea点击:

No provisioning profiles with a valid signing identity (i.e. certificate and private key pair) were found

iosxcode

提问by Alexandru Barbarosie

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.

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

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.

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

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.

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

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?

问题是:我是否缺少分发配置文件中的某些内容?错误消息说:找不到与您的构建设置“”中指定的配置文件匹配的代码签名身份(即证书和私钥对)。这是否意味着我必须以某种方式将我的证书与配置文件相关联?

回答by CarmeloS

You should go to KeyChainAccess 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.

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

The distribution certificate should look like this: enter image description here

分发证书应如下所示: 在此处输入图片说明

回答by benjist

You need a valid signing certificate for distribution. You seem to have a signing cert only for development. When you can't figure what is wrong kn your own after a while: Delete your private development and dist keys from keychain (be sure to delete the private keys, these are the ones visible when you expand an item in the tree viw in keychain. otherwise it may delete the public key and just silently hide the private key). selete all provisioning profiles. and recreTe both provisioning and develop and dist signibg certs.

您需要一个有效的签名证书才能分发。您似乎只有用于开发的签名证书。一段时间后,当您无法弄清楚自己出了什么问题时:从钥匙串中删除您的私有开发和 dist 密钥(确保删除私有密钥,这些是您在钥匙串中展开树视图中的项目时可见的那些) . 否则它可能会删除公钥而只是默默地隐藏私钥)。选择所有配置文件。并重新提供和开发和分发签名证书。

you will develop some skills kver time when dealing with this every day. though when you can't figure, just go the hard reset path.

这一天天打交道时,你会培养一些技能kver时间。不过,当你想不通,只是去硬复位路径。