Skip to content

Instantly share code, notes, and snippets.

@edopelawi
Created January 29, 2015 08:56
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 edopelawi/f2f42ff3c3702b3f8c7f to your computer and use it in GitHub Desktop.
Save edopelawi/f2f42ff3c3702b3f8c7f to your computer and use it in GitHub Desktop.
Simple script for exporting *.xcarchive to *.ipa using xcodebuild.
helptext="Usage: `basename $0` [*.xcarchive path] [*.ipa export path] [provisioning profile name]"
if [ "$1" == "-h" ] || [ "$1" == "--help" ]; then
echo $helptext
exit 0
fi
if [ "$#" -ne 3 ]; then
echo "Illegal number of parameters. $helptext"
exit 0
fi
archivepath=$1
exportpath=$2
provisioningprofile=$3
xcodebuild -exportArchive -archivePath "$archivepath" -exportPath "$exportpath" -exportProvisioningProfile "$provisioningprofile"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment