在xcode 中不小心导入了多余的provision profile,在编译项目的时候会提示有重复的证书,每次在keychain access中的我的证书中删除多余的以后就可以正常编译项目,但是重新启动后,证书又回来了。。。
在网上查了一下,是如下原因
Point is, it is the private key that xcode looks for for the certificates that you already have. Since you have a private key, xcode lists that as a available option for signing. So, its the private key that you want to delete and not the certi. So go to Keys section in the keychain access, find the culprit key, and shoot it.
最后在keychain access 中的密钥 section中将多余的private key 删除就可以了。
这下重启计算机后,多余的证书就不会在回来了。