如何使用XCode 4在iPhone可执行文件中设置环境变量? [英] How to set environment variables in iPhone executable using XCode 4?

查看:168
本文介绍了如何使用XCode 4在iPhone可执行文件中设置环境变量?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

自从切换到XCode 4以来,我一直在找到如何在iPhone可执行文件中设置环境变量(如NSZombies)的问题。在XCode 3中,您可以右键单击.app文件,选择获取信息并设置环境变量。但是在XCode 4中看起来似乎不可能做到这一点。新的UI中有哪些?

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?

推荐答案

如果您单击方案下拉栏 - >编辑方案 - >参数选项卡,然后在环境变量列中添加NSZombieEnabled,并在值列中添加是...

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

这篇关于如何使用XCode 4在iPhone可执行文件中设置环境变量?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆