Skip to content

Instantly share code, notes, and snippets.

@quocble
Created May 28, 2014 18:51
Show Gist options
  • Save quocble/747104425b7f2caa5cbe to your computer and use it in GitHub Desktop.
Save quocble/747104425b7f2caa5cbe to your computer and use it in GitHub Desktop.
#!/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