title: Xcode5 post-archive script for Sparkle package no longer works
body: <p>Xcode 5 seems to have changed the way it stores the build application package (xxx.app) such that ditto no longer works. In the ../BuildProductsPath/Release/ directory, the app is actually a symlink to .../InstallationBuildProductsLocation/Applications/...</p>
  
  <p>MyApp.app -> ~/Library/Developer/Xcode/DerivedData/MyApp-emwilkqhlayanxahjpexlpbbkato/Build/Intermediates/ArchiveIntermediates/MyApp/InstallationBuildProductsLocation/Applications/MyApp</p>
  
  <p>This breaks the ditto command I was using to create a zip file of the application to put on my Sparkle update server.</p>
  
  <p>Anyone have an updated script for building the Sparkle XML and ZIP files?  Or know what environment variable I need to use to locate my actual binary after the Archive phase?</p>
  
  <p>Here's the relevant lines from the post-archive script:</p>
  
  <p>ARCHIVE_FILENAME="$HOME/Desktop/$PROJECT_NAME-$VERSION_STRING.zip"</p>
  
  <p>cd "$BUILT_PRODUCTS_DIR"</p>
  
  <p>ditto -ck --keepParent "$PROJECT_NAME.app" "$ARCHIVE_FILENAME"</p>
  
  <p>That's from the sample script on the Sparkle website.</p>