Xcode 9.2 中的“警告:无法为签名者构建到自签名根的链”警告

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/48911289/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-15 10:34:06  来源:igfitidea点击:

"Warning: unable to build chain to self-signed root for signer" warning in Xcode 9.2

xcodecertificaterootcode-signing

提问by Chewie The Chorkie

I'm attempting to migrate an Xcode project to another computer. It gives me the warning "Warning: unable to build chain to self-signed root for signer" and when it runs it crashes immediately similarly to what is shown in this Stack Overflow:

我正在尝试将 Xcode 项目迁移到另一台计算机。它给了我警告“警告:无法为签名者构建到自签名根的链”,当它运行时,它立即崩溃,类似于此堆栈溢出中显示的内容:

App working on simulator but not on iPhone( dyld`__abort_with_payload dyld`_dyld_start)

应用程序在模拟器上运行但不在 iPhone 上运行(dyld`__abort_with_payload dyld`_dyld_start)

My issue seems similar to what is described on the Apple Developer Forums here: https://forums.developer.apple.com/thread/86161

我的问题似乎与 Apple Developer Forums 上描述的类似:https: //forums.developer.apple.com/thread/86161

and similar to what is described on this Stack Overflow: Xcode ios app development code signing

并类似于此堆栈溢出中描述的内容: Xcode ios app development code signature

except the suggestions of deleting certificates and re-adding them, re-adding my account and restarting didn't seem to help. I have removed my developer cert for the second time and now I don't see it coming back, and I'm at a loss of knowing how to get it back since my dev portal doesn't appear to have a place to download it like it used to.

除了删除证书并重新添加证书的建议外,重新添加我的帐户并重新启动似乎没有帮助。我已经第二次删除了我的开发者证书,现在我看不到它回来了,而且我不知道如何取回它,因为我的开发门户似乎没有地方下载它像以前一样。

I've also tried deleting the derived data folder several times.

我也多次尝试删除派生数据文件夹。

e: I've determined ANY project on this computer results in the same crash and warning.

e:我已经确定这台计算机上的任何项目都会导致相同的崩溃和警告。

采纳答案by Euros

I have been facing same issue for days now. Finally i solved it by just changing my root CA from Key Chain Access. View in System/ Login key chains. which certificate authority is being used as signer for your personal provisioning profile's certificate. Enter a valid CA certificate and you are good to go! Hope it helps. Ciao!

我已经面临同样的问题好几天了。最后,我通过从 Key Chain Access 更改我的根 CA 来解决它。在系统/登录密钥链中查看。哪个证书颁发机构被用作您的个人配置文件的证书的签名者。输入有效的 CA 证书,一切顺利!希望能帮助到你。再见!