
Building Distribution Release
----------------------------------------

+ Update program version
+ Set Document.m DEBUG_DOC to 0
+ Change Scheme to 'Buffer Distribution'
  - Make sure iOS Device is selected when building
+ Archive the project (so that crash bugs can be related back)
  - Set the comments to be the version number
+ Produce > Build
  - If this fails, re-download the Distribution - Upstart Illustration App Store Profile
  - Double-click on the file that was downlaoded.
  - PROJECT / TARGETS > Buffer > Build Settings > Code Signing Identify > iPhone Distribution: Upstart Illustration LLC

Prepare Package
+ Open app in Finder
+ Compress built .app
+ Rename the zipped file to Buffer_x_x_x.app.zip and the dsym file
+ Open ~/Projects/Buffer/AppStore/
+ Copy the .zip and .dsym file into the AppStore directory

Deliver
+ Open Xcode
+ Xcode > Open Developer Tool > Application Loader

Notes:

You can only update an app when it is in an editable state. Example, if
there is already an app in review, you can't do anything.

Backing Up
----------------------------------------

zip -er buffer.encrypted.zip ./Buffer/
cp buffer.encrypted.zip ~/Dropbox\ Developer/Dropbox/Dev/

Symbolicating Crash Logs
----------------------------------------

# Find the Developer directory
$ /usr/bin/xcode-select -print-path
# Export the developer directory so that symbolicatecrash doesn't whine
$ export DEVELOPER_DIR=[path printed out from previous command]

# Symbolicate the crash
$ cd /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/Library/PrivateFrameworks/DTDeviceKit.framework/Versions/A/Resources
$ ./symbolicatecrash ~/path/to/my.crash ~/path/to/my.dSYM
# Example
$ ./symbolicatecrash ~/Projects/Buffer/Crash\ Logs/2012_08_19_frank.crash ~/Projects/Buffer/Crash\ Logs/Buffer_1_4_0RC5.app.dSYM/


If it still will not symbolicate the crash, theoritically you can use the below tool
to determine if the address contains a symbol.

$ dwarfdump --lookup [address to the left of exception] --arch armv6 my.app.dSYM
# Example
$ dwarfdump --lookup 0x00097af5 --arch armv6 Buffer_1_4_0RC5.app.dSYM


