title: Specific compiler flags for specific files in Xcode
body: <p>I've been tasked to work on a project that has some confusing attributes.</p>
  
  <p>The project is of the nature that it won't compile for the iPhone Simulator And the iPhone Device with the same compile settings. I think it has to do with needing to be specifically compiled for x86 or arm6/7 depending on the target platform.</p>
  
  <p>So the project's build settings, when viewed in Xcode's Build Settings view doesn't enable me to set specific compiler flags per specific files. However, the previous developer that worked on this project has somehow declared the line:</p>
  
  <pre><code>CE7FEB5710F09234004DE356 /* MyFile.m in Sources */ = {isa = PBXBuildFile; fileRef = CE7FEB5510F09234004DE356 /* MyFile.m */; settings = {COMPILER_FLAGS = "-fasm-blocks -marm -mfpu=neon"; }; };
  </code></pre>
  
  <p>Is there any way to do this without editing the project file by hand? I know that editing the project file can result in breaking it completely, so I'd rather not do that, as I obviously don't know as much as the previous developer.</p>
  
  <p>So to clarify, the question is:</p>
  
  <p>The build fails when compiling for simulator unless I remove the <code>-fasm-blocks</code> flag. The build fails when compiling for device unless I add the <code>-fasm-blocks</code> flag. Is there a way to set this flag per file without editing the project file by hand?</p>