xcode “现在停止发出太多错误” - 如何增加或删除限制?

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

"too many errors emitted stopping now" - How to increase or remove the limit?

xcodecompiler-errorsllvm

提问by Erik B

So I'm doing some refactoring and it's really annoying that I don't get all the errors up front. How can I either increase the limit or remove the limit, so that the compiler will output all the errors it can find?

所以我正在做一些重构,而且我没有预先得到所有的错误真的很烦人。如何增加限制或删除限制,以便编译器输出它可以找到的所有错误?

回答by Erik B

So I found how to do it. You add this compiler flag:

所以我找到了怎么做。你添加这个编译器标志:

-ferror-limit=0

0 means that it will not stop because of too many errors.

0 表示不会因为错误太多而停止。

This seems to be a question and answer that explains how to add a compiler flag in Xcode 4:

这似乎是一个问答,解释了如何在 Xcode 4 中添加编译器标志:

Xcode Project-Wide compiler flag

Xcode 项目范围的编译器标志

回答by James O'Brien

Maybe this:

也许这个:

Preferences > General > Continue Building After Errors

首选项 > 常规 > 出错后继续构建

https://developer.apple.com/library/ios/recipes/xcode_help-general_preferences/Recipe.html

https://developer.apple.com/library/ios/recipes/xcode_help-general_preferences/Recipe.html

回答by John Nash

Here is the complete syntax to compile and pass the flags to the make command

这是编译并将标志传递给 make 命令的完整语法

make install CFLAGS="-ferror-limit=0"

使安装 CFLAGS="-ferror-limit=0"

Also as outlined here: https://developer.apple.com/library/content/documentation/Porting/Conceptual/PortingUnix/compiling/compiling.html

也如此处所述:https: //developer.apple.com/library/content/documentation/Porting/Conceptual/PortingUnix/compiling/compiling.html