如何在 XCode 4 中为“调试”配置全局添加预处理器定义

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

How to add preprocessor define globally for "Debug" configuration in XCode 4

xcodexcode4

提问by niveuseverto

Greetings, There are a lot of such questions on stackoverflow, but all of them about xcode version < 4, so I asking once more time:

问候,stackoverflow 上有很多这样的问题,但都是关于 xcode 版本 < 4,所以我再问一次:

How add preprocessor define globally for "Debug" configuration in XCode 4?

如何在 XCode 4 中为“调试”配置全局添加预处理器定义?

Thank you in advance.

先感谢您。

回答by Eimantas

Select project in file browser, go to "build settings" and search for "preprocessor macros". Also .pch file is for global includes as well as global defines.

在文件浏览器中选择项目,转到“构建设置”并搜索“预处理器宏”。.pch 文件也用于全局包含和全局定义。