Guest User

Untitled

a guest
May 25th, 2018
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.55 KB | None | 0 0
  1. if [[ $# == 0 ]]; then
  2. echo "ERROR: Please supply target name"
  3. echo "Required usage: xdist <target-name>"
  4. echo "Optional usage: xdist <target-name> <destination-directory> (defaults to Desktop)"
  5. exit 1
  6. elif [[ $# == 1 ]]; then
  7. target="$1"
  8. dest=~/Desktop
  9. elif [[ $# == 2 ]]; then
  10. target="$1"
  11. dest="$2"
  12. fi
  13.  
  14. xcodebuild clean
  15. xcodebuild -target $target -sdk /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS4.2.sdk/ -configuration Release
  16. mkdir Payload
  17. mv build/Release-iphoneos/$target.app Payload/
  18. zip -r $dest/$target.ipa Payload
  19. rm -rf Payload
Add Comment
Please, Sign In to add comment