Xcode 4 禁用“修复它”弹出窗口

发布于 2024-11-28 14:08:58 字数 63 浏览 2 评论 0原文

我很高兴 Xcode 4 告诉我有一个错误。但该弹出窗口几乎总是提供错误的解决方案。有什么办法可以永久摆脱它吗?

I'm fine with Xcode 4 telling me that I have an error. But that pop-up pretty much always has the wrong solution. Is there any way I can get rid of it permanently?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

吹梦到西洲 2024-12-05 14:08:58

据我所知,您可能需要一一禁用各种类型的警告。可以在此处找到列表:

http://developer.apple.com/library/mac/#documentation/DeveloperTools/gcc-4.0.1/gcc/Warning-Options.html#Warning-Options

要更改它们:

调出项目导航器并选择您的项目。在出现的主窗口中,选择“全部”。在“LLVM 编译器 2.0 - 警告”部分下,选择“其他警告标志”。为“调试”和“发布”添加标志“Wno-idiomatic-parentheses”。现在清理并重新编译(来自 if(self = [super init]) - LLVM 警告!你如何处理它?<​​/a>)

我在苹果开发链接中指出,以下选项应该禁止所有警告:

-w Inhibit all warning messages. 

From what I've seen, it looks like you may need to disable the various types of warnings one by one. A list is found here:

http://developer.apple.com/library/mac/#documentation/DeveloperTools/gcc-4.0.1/gcc/Warning-Options.html#Warning-Options

To change them:

Bring up the project navigator and choose your project. In the main window that appears, choose "All". Under the section "LLVM compiler 2.0 - Warnings", choose "Other Warning Flags". Add the flag "Wno-idiomatic-parentheses" for both "Debug" and "Release." Now clean and recompile ( from if(self = [super init]) - LLVM warning! How are you dealing with it?)

I noted in the apple dev link that the following option should inhibit all warnings:

-w Inhibit all warning messages. 
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文