I usually have four configurations per target (Debug, Release, Distribution, Ad Hoc) for my Apps.
我的应用程序通常有四个配置(调试、发布、发布、临时)。
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).
是否有一种方法可以为所有4个都添加一个通用宏,而不破坏我目前设置的宏(在编辑器中可以看到“多个值”)。
Thanks in advance, Obiwahn
谢谢你提前,Obiwahn
3 个解决方案
#1
3
Define the macro in the prefix header file (will be included in all source files).
在前缀头文件中定义宏(将包含在所有源文件中)。
#2
0
Another way do do this, which might work better for certain cases, is to use the $(inherited) macro to include the settings from the parent context. This works well with the way Xcode 4 lets you see the settings cascade.
另一种方法是使用$(继承的)宏来包含来自父上下文的设置,这样做可能对某些情况更好。这与Xcode 4让您看到设置级联的方式很好。
#3
0
You could have all of your targets use the same .xcconfig file; see apple documentation under the heading "Build Configuration Files". Note that even though the screenshots are out of date, the material seems to be accurate.
可以让所有目标都使用相同的.xcconfig文件;参见“构建配置文件”标题下的apple文档。请注意,尽管截屏已经过时,但材料似乎是准确的。
#1
3
Define the macro in the prefix header file (will be included in all source files).
在前缀头文件中定义宏(将包含在所有源文件中)。
#2
0
Another way do do this, which might work better for certain cases, is to use the $(inherited) macro to include the settings from the parent context. This works well with the way Xcode 4 lets you see the settings cascade.
另一种方法是使用$(继承的)宏来包含来自父上下文的设置,这样做可能对某些情况更好。这与Xcode 4让您看到设置级联的方式很好。
#3
0
You could have all of your targets use the same .xcconfig file; see apple documentation under the heading "Build Configuration Files". Note that even though the screenshots are out of date, the material seems to be accurate.
可以让所有目标都使用相同的.xcconfig文件;参见“构建配置文件”标题下的apple文档。请注意,尽管截屏已经过时,但材料似乎是准确的。