关于CodeSign error : Certificate identity 'iPhone Distribution *** : ...问题

有的童鞋们可以在将ios项目进行Archive打包时,Xcode提示以下错误:

[BEROR]CodeSign error: Certificate identity ‘iPhone Distribution: ***.’ appears more than once in the keychain. The codesign tool requires there only be one.

 

那么出现此问题的原因是多个证书之间冲突造成,我是用了以下解决方式:

-> 打开你mac系统的“实用工具”-“钥匙串访问”-“我的证书”中,会看到有证书名一模一样的, 如下图:

当然,一般而言相同的证书名称里只有一个证书是有效的,只要把无效的证书删除,就可以再打包了。

原文地址:https://www.cnblogs.com/SnailFish/p/2681731.html