Common preprocessor macros for all target configurations in the Xcode iPhone Project

Usually I have four configurations for each target (Debug, Release, Distribution, Ad Hoc) for my applications.

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

Thanks in advance, Obiwahn

+3
source share
3 answers

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

+3
source

, , $() . , Xcode 4 .

0

You can use all your targets with the same .xcconfig file; see the Apple documentation under the heading "Assembly configuration files." Please note that even if the screenshots are out of date, the material seems accurate.

0
source

Source: https://habr.com/ru/post/1787551/