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.
检查你的钥匙链,也许你有一个重复的证书。
其他回答
对于那些应该继续使用不自动的原因
打开keyChain访问,看看是否有两个相同的认证,如果有两个或更多,只需删除到一个,它将工作:)
我在最近将Xcode更新到9.3版本后遇到了这个问题 问题是在代码签名(在调试下)证书被设置为分发证书而不是开发证书,所以这阻止了我在我的设备上安装应用程序。
以下是我解决这个问题的方法。
项目->目标->选择你的应用程序->构建设置->代码签名身份->调试->双击“iPhone Distribution”并将其更改为“iPhone Developer”。
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.
因为我还没有看到这个具体的答案:
我的问题是我需要手动签名。所以我的错误是在构建设置->代码签名->代码签名标识
我有我的调试(自动签名风格,和苹果开发证书),分期和发布(手动和苹果分发(adHoc)变种设置正确。
我没有正确设置(由于我理解中的一些有缺陷的逻辑)是“任何IOS SDK”的值。一旦我将其设置为相同的手动Apple Distribution证书,错误就消失了。
最初我把它设置为自动值“iOS分布”,因为我认为它会更好地自动处理,因为我不知道它是什么意思。还是不要。哦,希望能有所帮助
我也有同样的问题。 我换了mac。当我下载Xcode证书时,我收到了一条错误消息:“错误是安全配置文件不包括证书签名。”
1)登录https://developer.apple.com/account/ios/profile/limited/edit Select the project => edit => Certificates => Select All => Create => Download
2)在Xcode中:项目文件=>签名(调试)=>配置文件=>导入文件=>选择带1的文件