Add preprocessor macro to a target in xcode 6

后端 未结 2 2001
庸人自扰
庸人自扰 2020-12-01 05:04

Probably this is pretty simple, but I can\'t find a way to define a preprocessor macro for a target in Xcode 6.

相关标签:
2条回答
  • 2020-12-01 05:53

    In Xcode 9 you have to add a preprocessor macros to Project, not Target. Also don't forget to add "D" as the firs letter. For example, "DDebug", then it works.

    0 讨论(0)
  • 2020-12-01 05:59

    I've done a screenshot to show where it is in Xcode, because it's easier :)

    enter image description here

    1. Select project file
    2. Select the target you want
    3. Go to Build Settings
    4. Search for 'preprocessor'
    5. Add your preprocessor macro either for Debug, Release, or both.
    0 讨论(0)
提交回复
热议问题