title: how do I pass argument to a shell script from xcode build phases
body: <p>I have a "run script" phase as one of my build phases in XCode 5.
  Now I want to pass arguments to my script. For instance I want XCode to invoke my script this way:</p>
  
  <pre><code>/path/myscript DEBUG IPHONESIMULATOR
  </code></pre>
  
  <p>if the current build configuration is Debug for iphone simulator </p>
  
  <p>or this way :</p>
  
  <pre><code>/path/myScript RELEASE IPHONEOS 
  </code></pre>
  
  <p>if the current build configuration is Release for iphone os</p>
  
  <p>or this way:</p>
  
  <pre><code>/path/myScript DEBUG IPHONEOS
  </code></pre>
  
  <p>if the current build configuration is Debug for iphone os</p>
  
  <p>How Can I achieve that?</p>
  
  <p>Thanks,</p>
  
  <p>baba</p>