Xcode 8显示配置配置文件不包含签名证书的错误。
此问题仅适用于Xcode-8和Xcode 7,相同的配置文件显示相关已识别的证书。
Xcode 8显示配置配置文件不包含签名证书的错误。
此问题仅适用于Xcode-8和Xcode 7,相同的配置文件显示相关已识别的证书。
当前回答
我在最近将Xcode更新到9.3版本后遇到了这个问题 问题是在代码签名(在调试下)证书被设置为分发证书而不是开发证书,所以这阻止了我在我的设备上安装应用程序。
以下是我解决这个问题的方法。
项目->目标->选择你的应用程序->构建设置->代码签名身份->调试->双击“iPhone Distribution”并将其更改为“iPhone Developer”。
其他回答
尝试直接从会员中心下载证书/配置文件,而不是从Xcode下载。
当我从会员中心手动下载它们时,它为我工作了。
在我的情况下,在钥匙串我有两个证书同名,我删除了其中一个证书是重复的,然后它解决了这个问题。
此问题是由于您的配置文件中的证书中的私钥与您的密钥链中的私钥不匹配。我解决这个问题的方法是
delete all iPhone Developer certificate in keychain. delete all certificate in apple account. using xcode "Manage Certificates" to add certificate, sometime you still have certificate in your Mac, but I do not know where it is for now, and if added successfully, your apple account will display that certificate too, and then you can create your profile with that certificate and download ... goto 5 if you use "Manage Certificates" can't add certificate, you can create a new certificate, and do remain steps. finish.
Xcode版本8的代码签名问题也是如此。
这意味着你需要做以下任何一件事:
你应该已经在开发者中心创建了一个证书,然后将该证书包含在配置文件中,然后导入到XCode中。 否则,如果您使用的证书是由其他人创建的,那么让他们共享/导出他们的证书和私钥(。P12文件)给你,你需要包括这个到你的钥匙链。请参考这里
当您无法从创建者那里获得证书& .p12文件时,#2的解决方案是选中“自动管理签名”选项。
对于那些仍然在Xcode8中与这个问题作斗争的人。对于我来说,这是一个重复的证书问题,这是我解决它的方法:
我读了尼克的回答,然后开始了我的调查。我检查了我的特定案例中的所有密钥和证书(在~/Library/Keychains/System.keychain中)。
When I opened the file, I found that I had two iPhone Distribution Certificates (that was the certificate that Xcode was requesting me), one with the iOS Distribution private key that I have been using since the beginning, and another iPhone Distribution Certificate which its private Key had a name (iOS Distribution:NAME) that wasn´t familiar for me. I deleted this last certificate, started Xcode again and the problem was gone. xCode wasn´t able to resolve that conflict and that´s why it was giving signing certificate error all the time.
检查你的钥匙链,也许你有一个重复的证书。