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?
相关问题
- $ENV{$variable} in perl
- Xcode debugger displays incorrect values for varia
- Image loads in simulator but not device?
- Using getenv function in Linux
- importing files from other directories in xcode
相关文章
- How should I configure log4net to write to %LOCALA
- xcode 4 garbage collection removed?
- Override env values defined in container spec
- Xcode: Is there a way to change line spacing (UI L
- Unable to process app at this time due to a genera
- Popover segue to static cell UITableView causes co
- “Storyboard.storyboard” could not be opened
- didBeginContact:(SKPhysicsContact *)contact not in
Please see this answer: How do I set up NSZombieEnabled in Xcode 4?
EDIT: You can also go to this menu from Product => Edit Scheme
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...
If you want act on the value of environment variable in your own code, use the following:
Edit Scheme... / Run / Arguments / Environment
is where to go to edit the environment variables for runs from Xcode.