Skip to content

Instantly share code, notes, and snippets.

@skhatri
Created February 11, 2014 10:54
Show Gist options
  • Save skhatri/8932838 to your computer and use it in GitHub Desktop.
Save skhatri/8932838 to your computer and use it in GitHub Desktop.
XCode command line build to create IPA file.
#$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.
@rikki622000
Copy link

where i put the script?

@daniilshumkoidt
Copy link

daniilshumkoidt commented Feb 24, 2021

-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