Xcode 4: Setting Compiler Flags for a Single File

October 24th, 2011

Filed under: Xcode

In Xcode 4 you can set compiler flags for a single file from the target’s Compile Sources build phase.

  1. Select the project file from the project navigator to open the project editor.
  2. Select the target from the left side of the project editor.
  3. Click the Build Phases button at the top of the editor.
  4. Click the disclosure triangle next to the Compile Sources build phase.

Compiler Flags Single File

Select the file where you want to set the compiler flags. Double-click the Compiler Flags column to open a pop-up editor, which is where you enter the flags.

Tags:


Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

*