如何在 Xcode 4 中指定命令行参数? | 珊瑚贝

How do you specify command line arguments in Xcode 4?


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

Xcode 3.2 的建议无济于事,因为一切都被转移了。


命令行参数和环境变量可以在方案编辑器的运行部分中设置。
产品 -> 编辑方案… -> 运行 -> 参数
(从 Jano 给出的链接复制粘贴)

  • 如何在命令行 Xcode 项目中显式获取参数?当你从终端运行它时
  • (加1,谢谢)这行得通,但我真的必须深入到每次运行中更改参数吗?
  • 在 Xcode 7.3 Beta 5 中:[产品 > 方案 > 编辑方案…]
  • 如果参数是文件或目录的路径,则应给出完整路径: /Users/MyUser/Documents/Folder/ ,相对用户目录路径 (~) 未解析。它会在从命令行运行时工作。
  • @SibbsGambling 你能做到吗?<


快捷方式 cmd

在 Xcode 7(更新)、XCode 10.1

快捷方式:Shift cmd


来源:https://www.codenong.com/5025256/

微信公众号
手机浏览(小程序)

Warning: get_headers(): SSL operation failed with code 1. OpenSSL Error messages: error:14090086:SSL routines:ssl3_get_server_certificate:certificate verify failed in /mydata/web/wwwshanhubei/web/wp-content/themes/shanhuke/single.php on line 57

Warning: get_headers(): Failed to enable crypto in /mydata/web/wwwshanhubei/web/wp-content/themes/shanhuke/single.php on line 57

Warning: get_headers(https://static.shanhubei.com/qrcode/qrcode_viewid_8825.jpg): failed to open stream: operation failed in /mydata/web/wwwshanhubei/web/wp-content/themes/shanhuke/single.php on line 57
0
分享到:
没有账号? 忘记密码?