Setting a #define from the command line in xcode 4.6
I'm trying get set a #define macro when doing a command line build using xcodebuild and having no luck. I've tried -DMYMACRO=1 and MYMACRO=1 everything else I can think of and nothing works. How do you set a #define from the command line? Roger, What you are looking for is a way to set GCC_PREPROCESSOR_MACROS via the command line tool xcodebuild. The man page for xcodebuild shows the format for applying these settings, however the SYNOPSIS section only refers to this as "setting=value ..." xcodebuild [-project projectname] -scheme schemename [-configuration configurationname] [-sdk