进入Xcode4,选择菜单“Product”->“Manage Schemes”,出现下图:
Xcode4的使用-编译器设定Release/Debug
选择一个项目,点击“Edit”,如图:
Xcode4的使用-编译器设定Release/Debug

Bulid Configuration

在调试中,如果需要传入参数,在上图中Arguments上设置。
一般这个设置常用于控制台程序,比如:A.exe -p boy
那么,在Arguments上添加-p boy
说明下,在XCode上,可以这么设定:
Xcode4的使用-编译器设定Release/Debug
也可以这样:
Xcode4的使用-编译器设定Release/Debug

当然,个人建议使用后一种


另外:追加编译宏:选择项目,找到“Bulid Setting”,下面有一项:Preprocessor Macros


相关文章:

  • 2022-12-23
  • 2021-09-10
  • 2021-06-01
  • 2022-12-23
  • 2021-05-18
  • 2022-12-23
  • 2019-07-15
  • 2021-05-16
猜你喜欢
  • 2022-12-23
  • 2021-10-26
  • 2022-12-23
  • 2021-12-02
  • 2022-12-23
  • 2019-02-01
相关资源
相似解决方案