title: How can i get scheme name in xcode build phase (shell script)
body: <p>I am trying to get the current scheme name and set it as a value in my plist. I am running the following shells script:</p>
  
  <pre><code>/usr/libexec/PlistBuddy -c "Set :SchemeName \"$SCHEME_NAME\"" "$INFOPLIST_FILE"
  </code></pre>
  
  <p>The result is that the scheme name is an empty string. If i set some constant string it works perfectly.
  How can i get the current scheme name?</p>