Created
February 11, 2014 10:54
-
-
Save skhatri/8932838 to your computer and use it in GitHub Desktop.
XCode command line build to create IPA file.
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
#$1 = scheme name. usually project name. | |
export ARCHIVE_PATH=/usr/home/source/archives | |
rm -rf $ARCHIVE_PATH/$1* | |
rm -rf build | |
mkdir build | |
xcodebuild -scheme $1 archive -archivePath $ARCHIVE_PATH/$1.xcarchive | |
xcodebuild -exportArchive -exportFormat IPA -exportPath "build/$1.ipa" -archivePath "$ARCHIVE_PATH/$1.xcarchive" -exportProvisioningProfile "iOS Team Provisioning Profile: *" | |
#1. use testflight | |
#2. open using itunes to sync it up to the client device. |
-exportFormat
no longer exists in the new versions of Xcode
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
where i put the script?