Created
July 27, 2015 12:06
-
-
Save sharat/77607240a80644a66480 to your computer and use it in GitHub Desktop.
create IPK file using xctool (xcrun)
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/bash | |
set -x | |
# codesigning and provisioning profile should be configured using Xcode | |
PROJECT=<your project name> | |
SCHEME=${PROJECT} # Setting project name as the default scheme. Update based on your scheme | |
ARCHIVEPATH=`pwd`/archive | |
IPA_NAME=${PROJECT} | |
PROJECT_BUILDDIR=${ARCHIVEPATH}/${IPA_NAME}.xcarchive/Products/Applications | |
xctool -project ${PROJECT}.xcodeproj -scheme ${SCHEME} archive -archivePath "${ARCHIVEPATH}/${IPA_NAME}" | |
xcrun -sdk iphoneos PackageApplication -v "${PROJECT_BUILDDIR}"/*.app -o "${ARCHIVEPATH}/${IPA_NAME}.ipa" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment