如何在XCode 4中设置文件特定的构建设置? [英] How do you set file-specific build settings in XCode 4?

查看:117
本文介绍了如何在XCode 4中设置文件特定的构建设置?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在xcode 3中,可以为构建项目的每个文件配置特定选项,例如禁用特定警告,拇指代码生成等.
在xcode 4中,这种功能不可用,或者至少不是直观的方式.但是,从xcode 3.x导入的项目中至少支持此功能,至少是向后兼容功能.

In xcode 3 it was possible to configure specific option for building every single file of a project, like for example disabling specific warnings, thumb code generation and so on.
In xcode 4 such feature is not available, or at least not in an intuitive way. This is however supported, at least as a backward compatibility feature, in projects imported from xcode 3.x.

有人知道一种方法来指定那些设置,而不必在较早的xcode中打开项目或为每个文件创建一个项目吗?

Does anyone knows a way to specify those settings without having to open the project back in older xcode or creating a project for every single file?

推荐答案

在导航器中选择项目,然后从列表中选择目标.选择构建阶段"选项卡,然后展开编译源"阶段.您可以在编译器标志"列中指定每个文件的编译器标志.

Select the project in the navigator, then select the target from the list. Select the Build Phases tab, then expand the Compile Sources phase. The Compiler Flags column is where you specify per-file compiler flags.

这篇关于如何在XCode 4中设置文件特定的构建设置?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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