tags:

views:

204

answers:

2

Hi,

I have a XCode project and I can 'build and debug' with it. But how can I pass a 'command line switch' so that XCode to invoke with that command line switch when I 'build and debug'?

Thank you.

A: 

If you want to pass extra compiler flags to the compiler, open up your Project Settings, find the setting named Other C Flags, and add your desired compiler switches.

Adam Rosenfield
+1  A: 

In the executables group, you can get info for the executable and set arguments and environment variables in the Arguments tab.

Zydeco