Xcode 8显示配置配置文件不包含签名证书的错误。
此问题仅适用于Xcode-8和Xcode 7,相同的配置文件显示相关已识别的证书。
Xcode 8显示配置配置文件不包含签名证书的错误。
此问题仅适用于Xcode-8和Xcode 7,相同的配置文件显示相关已识别的证书。
当前回答
以下是为我解决的步骤(对于那些在XCode 9.2中面临相同问题的人):
刚刚手动删除了~/Library/MobileDevice/Provisioning profiles中的本地配置文件。 删除并创建了开发人员帐户中的所有证书和配置配置文件。 从Xcode中删除了开发者帐户,并重新添加了它。
解决了我的问题!: -)
其他回答
同样的错误。 配置文件似乎更新了,添加了新的证书,我甚至在下载时检查了它。还撤销了前开发商的证书,排除在提供配置文件。 但是Xcode仍然在问我之前的证书有错误:
No certificate for team 'MY_TEAM' matching 'iPhone Developer: FORMER_DEVELOPER' found
那么,我是怎么解决的呢:
去构建设置->签名->代码签名标识 找到所有“FORMER_DEVELOPER”证书并选择所需的证书。
希望它能帮助到一些人。
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
值得注意的是,自动签名每次都失败了,直到我手动删除了本地配置文件: ~ /图书馆/ MobileDevice /配置概要文件
在这之后,自动签名工作得很好,它从苹果服务器上获得了正确的配置文件。
这只影响了一些构建,特别是那些我手动为手表应用程序创建配置文件的构建。
检查您的钥匙串,查找缺少私钥的身份。我为同一个团队安装了多个分发证书,其中一个缺少私钥。Xcode只检查密钥链中第一个匹配的标识,并自动使用这个标识,而不是包含私钥的标识。
删除没有私钥的匹配标识使Xcode再次检测到正确的标识。
I haven't seen this mentioned yet but if you are still having issues after recreating your provisioning profiles, deleting the existing ones you have in your Provision Profiles folder, checking for dupes in your Keychain, etc (all other answers ITT), open your Target > Build Settings > Code Signing and make sure everything looks consistent in there. For example, I had changed the Code Signing Identify for Debug to a Distribution identity, which obviously wouldn't work as the Development Provisioning Profile doesn't have the Distribution certificate and was causing the error in the first place.