Skip to content

Instantly share code, notes, and snippets.

@edopelawi
Created January 29, 2015 08:56
Embed
What would you like to do?
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