Xcode 4: Setting Compiler Flags for a Single File
·1 min
In Xcode 4 you can set compiler flags for a single file from the target’s Compile Sources build phase.
- Select the project file from the project navigator to open the project editor.
- Select the target from the left side of the project editor.
- Click the Build Phases button at the top of the editor.
- Click the disclosure triangle next to the Compile Sources build phase.
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.