Xcode 8显示配置配置文件不包含签名证书的错误。
此问题仅适用于Xcode-8和Xcode 7,相同的配置文件显示相关已识别的证书。
Xcode 8显示配置配置文件不包含签名证书的错误。
此问题仅适用于Xcode-8和Xcode 7,相同的配置文件显示相关已识别的证书。
当前回答
您还可以使用Fastlane工具包解决代码签名问题。作者投入了大量精力来有效地自动化构建、签名iOS应用程序(等等)。
因此,在上述套件中,有一个工具sigh,它神奇地解决了任何签名问题,因此得名:)这里的好处是,这个工具封装了关于常见签名问题的知识,可以检测和解决大多数问题。
Fastlane安装为Ruby gem:
Gem安装fastlane
然后简单地引用:
快速的叹息——发展
回答两个问题,瞧:
[11:56:55]: No existing profiles found, that match the certificates you have installed locally! Creating a new provisioning profile for you
[11:57:01]: Creating new provisioning profile for 'com.myapp' with name 'com.myapp Development'
[11:57:06]: Downloading provisioning profile...
[11:57:09]: Successfully downloaded provisioning profile...
[11:57:09]: Installing provisioning profile...
最后,进入Build Settings -> Signing,切换到新创建的配置文件,其名称您刚刚在命令回显中看到。
此示例用于开发代码签名问题(在设备上运行)。查看所有其他选项的叹息文档。
其他回答
为了解决这个问题,
我只是在项目设置通用选项卡上启用了“自动管理签名”,在启用之前,我担心它可能会有一些副作用,但一旦我启用,它就为我工作了。
我尝试了很多方法,但唯一解决这个问题的方法是在xcode中配置一些东西:
构建设置->签名:
代码签名标识:所有选项均选择iOS Developer。 代码签名风格:自动 配置文件:自动
有很多方法可以解决这个问题,比如启用自动签名等。但是如果您想了解这个错误的原因,您需要查看错误消息。
它表示您在“常规”选项卡中选择的配置文件不包含您在“构建设置”中选择的签名证书->“代码签名标识”。
通常,如果在“生成设置”下为调试标识选择了分发证书->“代码签名标识”,则会发生这种情况。
如果这发生在“签名(调试)”下,也可能是“签名身份”->“iOS开发”不包括在配置配置文件中。
检查您的钥匙串,查找缺少私钥的身份。我为同一个团队安装了多个分发证书,其中一个缺少私钥。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.