title: How to enable ARC programmatically for specific files in a non-ARC xcode project?
body: <p>I have a situation where I need to enable ARC for many files in  few Non-ARC xcode projects. I don't want complete conversion to ARC only few files needs to be enabled with arc.</p>
  
  <p>There are many solutions that includes <strong>-fobjc-arc</strong> flag to specific files in the Compile Sources using the XCode console. But I have too many files in multiple xcode-projects to change it individually through XCode. </p>
  
  <p>Is there a method by which I can modify the build phase settings programmatically. 
  I found few posts like </p>
  
  <ul>
  <li><a href="https://stackoverflow.com/questions/7557273/tutorial-or-guide-for-scripting-xcode-build-phases">Tutorial or Guide for Scripting XCode Build Phases</a> </li>
  <li><a href="https://stackoverflow.com/questions/19751074/per-file-compiler-flags-in-xcode-project-template">Per-file compiler flags in Xcode project template</a></li>
  </ul>
  
  <p>Both of which are good solutions but I need to setup a mechanism where I can write scripts to manage them. As some of these run on servers and the resultant xcode is distributed to other people to test.</p>
  
  <p>Manipulations of <strong>project.pbxproj</strong> code seems to be the most likely choice. But I am not sure how to go about it.</p>