简体   繁体   English

钥匙串已添加两次分发证书

[英]Keychain have twice Distribution certificate added

When I build an app it shows me this error: 当我构建应用程序时,它向我显示此错误:

在此处输入图片说明

When I deleted the previous one certificate, everything starts working fine. 当我删除上一个证书时,一切开始正常运行。 So my question is if deleted it once how it again added in the keychain? 所以我的问题是,是否将其删除一次,如何再次添加到钥匙串中? and why it is added again instead of one certificate being there in the keychain? 以及为什么再次添加它而不是在钥匙串中添加一个证书?

I think you are getting an error message about having an extra distribution certificate - because you have an extra distribution certificate! 我认为您收到有关额外发行证书的错误消息-因为您拥有额外发行证书!

My guess is that you are getting it pulled back down to your machine from the Provisioning Portal by Xcode. 我的猜测是,您正在通过Xcode将其从Provisioning Portal拉回到您的计算机。

Have you recently revoked a distribution certificate and then tried to delete from KeychainAccess? 您最近是否撤销了发行证书,然后尝试从KeychainAccess中删除? If so, did you delete the public and private keys associated with it? 如果是这样,您是否删除了与其关联的公钥和私钥?

Go into KeychainAccess and check if you have any orphan private keys, if you have any which could be linked to an old distribution certificate then delete them (deleting a developer or distribution certificate without deleting its public and private key is not deleting it properly - you need to delete both keys AND the certificate) 进入KeychainAccess并检查是否有孤立的私钥,是否有任何可以链接到旧发行证书的私钥,然后将其删除(删除开发者或发行证书而不删除其公钥和私钥不会正确删除它-您需要同时删除密钥和证书)

then go back to Xcode and in the Organiser screen hit the 'refresh' button - then check KeychainAccess again - with any luck Xcode will not have downloaded the naughty certificate and your problem has been solved. 然后返回Xcode,在管理器屏幕中,单击“刷新”按钮-然后再次检查KeychainAccess-运气好的Xcode不会下载顽皮的证书,并且您的问题已得到解决。 However if you now have your rogue certificate back then it may be that the provisioning profile you have been using needs to be changed... 但是,如果您现在又获得了流氓证书,则可能是您需要更改一直在使用的配置文件...

BTW, make sure you look in the 'system' and 'system roots' keychains as well as the 'login' keychain. 顺便说一句,请确保您查看“系统”和“系统根目录”钥匙串以及“登录”钥匙串。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM