Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if [[ $# == 0 ]]; then
- echo "ERROR: Please supply target name"
- echo "Required usage: xdist <target-name>"
- echo "Optional usage: xdist <target-name> <destination-directory> (defaults to Desktop)"
- exit 1
- elif [[ $# == 1 ]]; then
- target="$1"
- dest=~/Desktop
- elif [[ $# == 2 ]]; then
- target="$1"
- dest="$2"
- fi
- xcodebuild clean
- xcodebuild -target $target -sdk /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS4.2.sdk/ -configuration Release
- mkdir Payload
- mv build/Release-iphoneos/$target.app Payload/
- zip -r $dest/$target.ipa Payload
- rm -rf Payload
Add Comment
Please, Sign In to add comment