Xcode 8显示配置配置文件不包含签名证书的错误。
此问题仅适用于Xcode-8和Xcode 7,相同的配置文件显示相关已识别的证书。
Xcode 8显示配置配置文件不包含签名证书的错误。
此问题仅适用于Xcode-8和Xcode 7,相同的配置文件显示相关已识别的证书。
当前回答
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 Beta 11.5上,应用程序的签名方式发生了变化,所以只要确保调试/发布的供应证书都正确设置了
有很多方法可以解决这个问题,比如启用自动签名等。但是如果您想了解这个错误的原因,您需要查看错误消息。
它表示您在“常规”选项卡中选择的配置文件不包含您在“构建设置”中选择的签名证书->“代码签名标识”。
通常,如果在“生成设置”下为调试标识选择了分发证书->“代码签名标识”,则会发生这种情况。
如果这发生在“签名(调试)”下,也可能是“签名身份”->“iOS开发”不包括在配置配置文件中。
我为此挣扎了很多天。
步骤1: 删除所有证书,配置文件,appID,密钥等从开发帐户。
步骤2: 重新创建推送通知证书、配置文件、应用ID等。
步骤3: 从keychain中删除所有证书。
步骤4: 清除~/Library/MobileDevice/ provisioning Profiles中的所有配置文件。
步骤5: 只添加了所需的配置文件并进行了测试。它工作得很好。
此问题是由于您的配置文件中的证书中的私钥与您的密钥链中的私钥不匹配。我解决这个问题的方法是
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的代码签名问题也是如此。
我有我撤销的证书的剩余私钥,证书没有了,但私钥没有。删除它们就解决了问题。
要找到他们:
打开钥匙串访问 点击左侧菜单类别下的“键” 寻找未绑定证书的iOS Developer:…"密钥 我删除了它们,问题就解决了
图中高亮显示的密钥是一个没有证书的样例私钥。