xcode 错误:安装 Xcode10 beta 5 后,Command CodeSign 失败并显示非零退出代码?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/51644349/
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:43:35  来源:igfitidea点击:

Error: Command CodeSign failed with a nonzero exit code after installing Xcode10 beta 5?

swiftxcodecode-signingxcode10

提问by DaleK

Briefly since downloading and installing Xcode 10 beta 5 I have not been able to get any Provisional Profiles to work. In fact, my application fails immediately with the following error message.

自从下载和安装 Xcode 10 beta 5 以来,我一直无法让任何临时配置文件工作。事实上,我的应用程序立即失败并显示以下错误消息。

Command CodeSign failed with a nonzero exit code.

命令 CodeSign 失败,退出代码非零。

It appears there's a disconnect with provisioning profiles and certificates within Xcode.

Xcode 中的配置文件和证书似乎存在脱节。

Interestingly, when I switch on the Automatically manage signing option Xcode generates certificates. However my developer Provisional Profiles can't seem to find certificates. I have updated to the latest beta versions for Mac OS, iOS, and of course Xcode.

有趣的是,当我打开自动管理签名选项时,Xcode 会生成证书。但是,我的开发人员临时配置文件似乎找不到证书。我已经更新到 Mac OS、iOS 和 Xcode 的最新测试版。

Honestly, I have tried manually creating certificates as well as profiles with no luck. I have been trying to find a solution since downloading the beta version a few days ago.

老实说,我尝试过手动创建证书以及没有运气的配置文件。自从几天前下载测试版以来,我一直在努力寻找解决方案。

I would greatly appreciate any feedback and or suggestions for possible solutions.

对于可能的解决方案的任何反馈和/或建议,我将不胜感激。

Thank you for your time.

感谢您的时间。

回答by ttorbik

Hopefully this will help someone. I updated from Xcode 9 -> Xcode 10 beta 6 and received the non-zero exit code error. My fix was to go to Product -> Clean Build Folder.

希望这会帮助某人。我从 Xcode 9 -> Xcode 10 beta 6 更新并收到非零退出代码错误。我的解决方法是转到产品-> 清理构建文件夹。

After doing this all the errors went away and I was able to run my project.

这样做之后,所有错误都消失了,我能够运行我的项目。