Monday, January 26, 2009

How do I define preprocessor macros in the xcode project settings? - iPhone Dev SDK Forum

If you're having problems finding the "Other C Flags" section in your project's build properties, you must first select the Device - iPhone xxx (Project Setting) under the Active SDK section with your iPhone attached to your workstation. Only then will you see the additional GCC flags you can modify. After doing this, selecting the simulator will allow the added flags to take effect in addition to building directly to the device.


Derek Neighbors said...

Thank you for sharing this.. I was looking for this for 10 minutes before decided to google and changing the SDK from simulator to iphone did the trick. I did not have to have the phone plugged in.