title: Update CFBundleShortVersionString in dSYM at build?
body: <p>I'm using this as a build phase in my project:</p>
  
  <pre><code>export PLISTBUDDY="/usr/libexec/PlistBuddy"
  
  export INFO="${CODESIGNING_FOLDER_PATH}/Info.plist"
  export RXREVISION=`git describe --tags | perl -pi -E "s/[^-]+\-([^-]+).*/\1/"`
  export RXVERSION=`git describe --tags | perl -pi -E "s/([^-]+)\-[^-]+.*/\1/"`
  $PLISTBUDDY $INFO -c "add CFBundleVersion string $RXREVISION"
  $PLISTBUDDY $INFO -c "set :CFBundleVersion $RXREVISION"
  $PLISTBUDDY $INFO -c "add CFBundleShortVersionString string $RXVERSION"
  $PLISTBUDDY $INFO -c "set :CFBundleShortVersionString $RXVERSION"
  </code></pre>
  
  <p>This works perfectly for updating the build revision in the built application's Info.plist, and it doesn't mutate my source tree.</p>
  
  <p>I have tried putting my Update Version script both at the end and also before the link phase. Either way, it's able to affect changes to the built application, but the dSYM is built from the original source tree.</p>
  
  <p>This mismatch of version numbers between the built app and the built dSYM is a problem. (HockeyApp throws an error here.)</p>
  
  <p>If I update the Info.plist in my source tree, I need to deal with it changing. Which leaves me two options that I can see:</p>
  
  <ol>
  <li>Put Info.plist under source control, and have the script edit it directly. But this means I'll need to check in the changes after each build.</li>
  <li>Ignore Info.plist, and have the script edit it directly. But there's plenty of other things in Info.plist that I <strong>do</strong> want under source control.</li>
  </ol>
  
  <p>How can I get the version in the dSYM updating automatically, too, without having to deal with the Info.plist in my source tree changing every build?</p>
  
  <p>Also, tangentially: How do I see the version in the dSYM?</p>