12

Greetings, There are a lot of such questions on stackoverflow, but all of them about xcode version < 4, so I asking once more time:

How add preprocessor define globally for "Debug" configuration in XCode 4?

Thank you in advance.

1 Answer 1

19

Select project in file browser, go to "build settings" and search for "preprocessor macros". Also .pch file is for global includes as well as global defines.

Sign up to request clarification or add additional context in comments.

3 Comments

Worked. I had to double click on the project from the file browser.
Nice. So how do you actually add a macro when you're there?
@dontWatchMyProfile - when in Prefix.pch, just type #define FOO, while in build settings - double-tap the value field and type your constant name without #define (like FOO or FOO=1).

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.