Xcode 4 禁用“修复它”弹出窗口
我很高兴 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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
据我所知,您可能需要一一禁用各种类型的警告。可以在此处找到列表:
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>)
我在苹果开发链接中指出,以下选项应该禁止所有警告:
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: