如何在Xcode 4中指定命令行参数? [英] How do you specify command line arguments in Xcode 4?

查看:75
本文介绍了如何在Xcode 4中指定命令行参数?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚刚升级到Xcode 4,但是由于它刚刚成为金牌大师,所以还没有找到太多文档。我需要指定一个命令行参数来测试我的应用程序。

I just upgraded to Xcode 4 and can't find much documentation on it yet, since it just went gold master. I need to specify a command line argument for testing my application.

由于一切都四处移动,因此Xcode 3.2建议无济于事。

The Xcode 3.2 advice doesn't help since everything got moved around.

推荐答案

可以在方案编辑器的运行部分中设置命令行参数和环境变量。

产品->编辑方案。 。->运行->参数
(从Jano提供的链接中复制粘贴)

Command line arguments and environment variables can be set up in the Run section of the scheme editor.
Product -> Edit Scheme... -> Run -> Arguments (Copy-Paste from the link given by Jano)

这篇关于如何在Xcode 4中指定命令行参数?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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