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

被刻印的时光 ゝ 提交于 2019-12-01 04:19:15

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...

Basel

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

If you want act on the value of environment variable in your own code, use the following:

NSDictionary *env = [[NSProcessInfo processInfo] environment];

Edit Scheme... / Run / Arguments / Environment is where to go to edit the environment variables for runs from Xcode.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!