Created
May 28, 2014 18:51
-
-
Save quocble/747104425b7f2caa5cbe to your computer and use it in GitHub Desktop.
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
#!/bin/sh | |
PROJDIR=`cd ..;pwd` | |
PROJECT_BUILDDIR="${PROJDIR}/build/Release-iphoneos" | |
DEVELOPPER_NAME="iPhone Distribution" | |
APPLICATION_NAME=SomeAppName | |
IPA_NAME=${APPLICATION_NAME}.ipa | |
# compile project | |
echo Building Project | |
cd "${PROJDIR}" | |
xcodebuild -configuration Release | |
#Check if build succeeded | |
if [ $? != 0 ] | |
then | |
exit 1 | |
fi | |
xcrun -sdk iphoneos PackageApplication -v "${PROJECT_BUILDDIR}/${APPLICATION_NAME}.app" -o "${PROJDIR}/Scripts/${IPA_NAME}" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment