Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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.

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?

like image 724
pqnet Avatar asked May 19 '11 10:05

pqnet


1 Answers

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.

like image 184
Joshua Nozzi Avatar answered Oct 30 '22 02:10

Joshua Nozzi