How to modify Xcode project settings from command line? - so it produces a MacAppStore app and a non-MacAppStore app
<p>I have a Xcode project that outputs a Mac app that is distributed outside the Mac App Store. It works fine. Now, the client wants it in the Mac App Store. To achieve this I've disabled several features of the original app. Now, I'm facing the question: <strong>how to integrate the build process of the Mac App Store app in a painful-less way?</strong> For the Non-Mac App Store app we use Jenkins. </p>

<p>I thought it could be possible to keep the non-Mac App Store project settings and then enable/disable/modify it with command line. Errrrr!. I'm wondering if anyone else have faced the same situation and how did you solve it?. Or maybe I'm opening Pandora's box wit my current approach.</p>

<p>To list the stuff I need to enable/disable:   </p>

<ol>
<li>Disable source code. Solution: ifdefs</li>
<li>Enable the app-sandbox. Solution: adding 'com.apple.security.app-sandbox' to  entitlements.</li>
<li>Delete dependencies in the 'Target dependencies'. Solution: ????.</li>
<li>Delete libraries in the "link binary with libraries". Please, note that the libraries are already listed in Xcode project settings, I want to delete them.</li>
<li>Change the signing profile. Solution: Add a new scheme with the right values (Mac App Store).</li>
</ol>

<p>FYI. I'm using Xcode 5.1.1. </p>