构建失败,“命令失败,退出代码非零"; [英] Build fails with "Command failed with a nonzero exit code"

查看:47
本文介绍了构建失败,“命令失败,退出代码非零";的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我尝试使用 Xcode 构建我的应用程序时,一个错误中断了构建过程:

When I try to build my app with Xcode, an error interrupts the build process:

命令 CompileStoryboard 失败,退出代码非零

Command CompileStoryboard failed with a nonzero exit code

有时,它会显示此错误:

Sometimes, it shows this error instead:

Command CompileSwift 失败,退出代码非零

Command CompileSwift failed with a nonzero exit code

我已打开新构建系统.

我该怎么做才能解决这个问题?

What can I do to fix this?

推荐答案

关闭 Xcode 对我没有任何影响.相反,我使用 CommandShiftK 清理了项目.

Closing Xcode for me didn't have an effect. Instead, I cleaned the project using CommandShiftK.

我还发现了另一个原因:我有一个故事板引用了另一个我已删除的故事板.快速修复是删除它.

I also found another reason: I had a storyboard reference to another storyboard which I had removed. The quick fix was deleting this.

这篇关于构建失败,“命令失败,退出代码非零";的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆