How to set environment variables in iPhone executable using XCode 4?

Jason picture Jason · Mar 14, 2011 · Viewed 10.9k times · Source

Since switching to XCode 4, I have been having issues finding how to set environment variables (such a NSZombies) in iPhone executables. In XCode 3, you could right-click on your .app file, select "Get Info" and set environment variables. But it doesn't seem possible to do this in XCode 4. Where is it in the new UI?

Answer

learner2010 picture learner2010 · Mar 16, 2011

another way would be if you click on the scheme drop down bar -> edit scheme -> arguments tab and then add NSZombieEnabled in the Environment Variables column and YES in the value column...