X code:设置GCC_ prePROCESSOR_DEFINITIONS不同的构建配置? [英] Xcode: Setting GCC_PREPROCESSOR_DEFINITIONS for different build configurations?
问题描述
我想设置 GCC_ prePROCESSOR_DEFINITIONS
每个我的四个构建配置(调试,发布,特设和分发。)我想有不同的设置每个。
I want to set GCC_PREPROCESSOR_DEFINITIONS
for each of my four build configurations (Debug, Release, Ad Hoc, and Distribution.) I'd like to have a different setting for each.
我在看屏幕是目标信息窗口的生成选项卡。当我设置配置弹出来调试我可以看到我的 GCC_ prePROCESSOR_DEFINITIONS
设置那里。当我切换到释放,或任何其他的配置,它不再可见。然而,当我尝试将其添加到这些配置,它说 GCC_ prePROCESSOR_DEFINITIONS
已经存在,而且我不能再增加了。
The screen I'm looking at is the Target Info window's "Build" tab. When I set the Configuration pop-up to "Debug" I can see my GCC_PREPROCESSOR_DEFINITIONS
setting there. When I switch to "Release," or any of the other configurations, it's no longer visible. Yet when I try to add it to those configurations, it says GCC_PREPROCESSOR_DEFINITIONS
already exists, and that I can't add it again.
正如我所说的,我想为我的各种构建不同的设置。我怎样才能做到这一点?
As I said, I want to have a different setting for my various builds. How can I accomplish this?
非常感谢。
推荐答案
请确保没有一个名为preprocessor宏设置。这是一样的 GCC_ prePROCESSOR_DEFINITIONS
。
Make sure there isn't a setting called "Preprocessor Macros". This is the same as GCC_PREPROCESSOR_DEFINITIONS
.
这篇关于X code:设置GCC_ prePROCESSOR_DEFINITIONS不同的构建配置?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!