-
-
Save edopelawi/f2f42ff3c3702b3f8c7f to your computer and use it in GitHub Desktop.
Simple script for exporting *.xcarchive to *.ipa using xcodebuild.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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