开发者

How do you set file-specific build settings in XCode 4?

开发者 https://www.devze.com 2023-03-06 19:37 出处:网络
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 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 featu开发者_运维知识库re, in projects imported from xcode 3.x.

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号