Xcode 8显示配置配置文件不包含签名证书的错误。
此问题仅适用于Xcode-8和Xcode 7,相同的配置文件显示相关已识别的证书。
Xcode 8显示配置配置文件不包含签名证书的错误。
此问题仅适用于Xcode-8和Xcode 7,相同的配置文件显示相关已识别的证书。
当前回答
对于那些仍然在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.
检查你的钥匙链,也许你有一个重复的证书。
其他回答
我取消勾选,然后勾选“自动管理签名”选项。这为我解决了问题。
Delete the developer certificate that does not have a private key. Delete the provisioning profile from your machine using go to folder (~/Library/MobileDevice/Provisioning Profiles) Then first check then uncheck the Automatically manage signing option in the project settings with selecting team. Sing in Apple developer account and edit the provisioning profile selecting all available developer certificates then download and add to XCODE. Select the provisioning profile and code signing identity in project build settings
以下是为我解决的步骤(对于那些在XCode 9.2中面临相同问题的人):
刚刚手动删除了~/Library/MobileDevice/Provisioning profiles中的本地配置文件。 删除并创建了开发人员帐户中的所有证书和配置配置文件。 从Xcode中删除了开发者帐户,并重新添加了它。
解决了我的问题!: -)
我为此挣扎了很多天。
步骤1: 删除所有证书,配置文件,appID,密钥等从开发帐户。
步骤2: 重新创建推送通知证书、配置文件、应用ID等。
步骤3: 从keychain中删除所有证书。
步骤4: 清除~/Library/MobileDevice/ provisioning Profiles中的所有配置文件。
步骤5: 只添加了所需的配置文件并进行了测试。它工作得很好。
尝试直接从会员中心下载证书/配置文件,而不是从Xcode下载。
当我从会员中心手动下载它们时,它为我工作了。