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.
检查你的钥匙链,也许你有一个重复的证书。
其他回答
我也有同样的问题。 我换了mac。当我下载Xcode证书时,我收到了一条错误消息:“错误是安全配置文件不包括证书签名。”
1)登录https://developer.apple.com/account/ios/profile/limited/edit Select the project => edit => Certificates => Select All => Create => Download
2)在Xcode中:项目文件=>签名(调试)=>配置文件=>导入文件=>选择带1的文件
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.
我为此挣扎了很多天。
步骤1: 删除所有证书,配置文件,appID,密钥等从开发帐户。
步骤2: 重新创建推送通知证书、配置文件、应用ID等。
步骤3: 从keychain中删除所有证书。
步骤4: 清除~/Library/MobileDevice/ provisioning Profiles中的所有配置文件。
步骤5: 只添加了所需的配置文件并进行了测试。它工作得很好。
我也有同样的问题,原因是佩妮。在生成设置中选择了错误的配置文件和证书。我几天前才这么做过。所以,你不需要在xcode中启用“automatic”。在执行此操作之前,请检查构建设置中的配置文件。
我在最近将Xcode更新到9.3版本后遇到了这个问题 问题是在代码签名(在调试下)证书被设置为分发证书而不是开发证书,所以这阻止了我在我的设备上安装应用程序。
以下是我解决这个问题的方法。
项目->目标->选择你的应用程序->构建设置->代码签名身份->调试->双击“iPhone Distribution”并将其更改为“iPhone Developer”。