Skip to content

Instantly share code, notes, and snippets.

@elpsk
Created December 17, 2015 11:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save elpsk/8a1b4079d9c6d1c5c9d6 to your computer and use it in GitHub Desktop.
Save elpsk/8a1b4079d9c6d1c5c9d6 to your computer and use it in GitHub Desktop.
Auto Archive IPA files
#!/bin/sh
xcodebuild -scheme AppName clean archive -archivePath /Users/pasky/Desktop/AppName
xcodebuild -exportArchive -exportFormat ipa -archivePath "/Users/pasky/Desktop/AppName.xcarchive" -exportPath "/Users/pasky/Desktop/AppName.ipa" -exportProvisioningProfile "XC Ad Hoc: com.AppName.iphone.app"
rm -rf "/Users/pasky/Desktop/AppName.xcarchive"
mv "/Users/pasky/Desktop/AppName.ipa" "/Volumes/DATA/Dropbox/Public/AppName.ipa"
echo "done."
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment