Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can you batch change per-file compiler flags in Xcode 4?

Tags:

xcode

xcode4

I'd like to be able to change compiler flags for a whole set of files.

When accessing per-file compiler flags from the "Build Phases" area you can change flags one at a time, however say I'd like to change the flags for every file in a group (e.g., the DropBox or Facebook SDK).

Anyone know how to do this in Xcode 4.0.x?

like image 686
Ben Lachman Avatar asked Apr 24 '11 05:04

Ben Lachman


1 Answers

Fortunately, YES :-)

In Targets->Build Phaes->Compile Sources, mark all the files you like to set a compiler flag for, press RETURN (hit the enter key!), put the flag in the upcoming window and you're done!

like image 101
Frank Jüstel Avatar answered Oct 13 '22 01:10

Frank Jüstel