XCode iPhone Project中目标的所有配置的通用预处理器宏 [英] Common preprocessor macros for all configurations of a target in XCode iPhone Project

查看:143
本文介绍了XCode iPhone Project中目标的所有配置的通用预处理器宏的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的应用程序通常每个目标有四个配置(调试,发布,分发,Ad Hoc)。

I usually have four configurations per target (Debug, Release, Distribution, Ad Hoc) for my Apps.

有没有办法为所有人添加一个公共宏其中4个,虽然没有破坏我到目前为止设置的宏(你在编辑器中看到多个值)。

Is there a way to add a common macro for all 4 of them, while not destroying the macros that I have set so far (you see "multiple values" in the editor).

提前致谢,
Obiwahn

Thanks in advance, Obiwahn

推荐答案

在前缀头文件中定义宏(将包含在所有源文件中)。

Define the macro in the prefix header file (will be included in all source files).

这篇关于XCode iPhone Project中目标的所有配置的通用预处理器宏的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆