Xcode 8显示配置配置文件不包含签名证书的错误。
此问题仅适用于Xcode-8和Xcode 7,相同的配置文件显示相关已识别的证书。
Xcode 8显示配置配置文件不包含签名证书的错误。
此问题仅适用于Xcode-8和Xcode 7,相同的配置文件显示相关已识别的证书。
当前回答
我在最近将Xcode更新到9.3版本后遇到了这个问题 问题是在代码签名(在调试下)证书被设置为分发证书而不是开发证书,所以这阻止了我在我的设备上安装应用程序。
以下是我解决这个问题的方法。
项目->目标->选择你的应用程序->构建设置->代码签名身份->调试->双击“iPhone Distribution”并将其更改为“iPhone Developer”。
其他回答
此问题是由于您的配置文件中的证书中的私钥与您的密钥链中的私钥不匹配。我解决这个问题的方法是
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的代码签名问题也是如此。
值得注意的是,自动签名每次都失败了,直到我手动删除了本地配置文件: ~ /图书馆/ MobileDevice /配置概要文件
在这之后,自动签名工作得很好,它从苹果服务器上获得了正确的配置文件。
这只影响了一些构建,特别是那些我手动为手表应用程序创建配置文件的构建。
对于那些仍然在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.
检查你的钥匙链,也许你有一个重复的证书。
对我来说,以上的解决方案都没用。我从两个旧的mac迁移到一个新的mac,试图让发布/调试配置文件在Xcode上工作,而不需要Xcode自动管理它们。
我的解决方案是,当我创建两个新的证书时,我还必须进入我的配置配置文件,并将新证书添加到配置配置文件中,以便识别它们。下载完成后,xcode删除了所有错误,一切就绪。
希望这能帮助到一些人!
这个问题似乎在Xcode 11开始出现。
去苹果开发者 找到正确的供应概要文件 单击右上角的“编辑” 在证书中选择(分发)选项。(我认为这是苹果公司引入的一种新的选项/证书类型,尽管我找不到任何文档) 可选:删除(~/Library/MobileDevice/Provisioning profiles /)中的所有配置文件 去Xcode ->首选项->帐户->下载手动配置