title: Read Xcode Build Settings from terminal
body: <p>I found you can get a list of all environment variables from my project`s build settings by doing:</p>
  
  <pre><code>xcodebuild -showBuildSettings -project &lt;project&gt;.xcodeproj
  </code></pre>
  
  <p>It also prints out the PROVISIONING_PROFILE, which I want to use for a build script</p>
  
  <pre><code>PROVISIONING_PROFILE = d0eff791-6b39-4d9b-a164-3e768f63b333
  </code></pre>
  
  <p>however if I do a</p>
  
  <pre><code>echo $PROVISIONING_PROFILE
  </code></pre>
  
  <p>or</p>
  
  <pre><code>sudo echo $PROVISIONING_PROFILE
  </code></pre>
  
  <p>it prints nothing.</p>
  
  <p>How can I access the <code>${PROVISIONING_PROFILE}</code> variable from outside XCode, like in terminal or a build script?</p>