Created
January 15, 2015 22:53
-
-
Save pkh/ae68f4fd894cdb0ad97e to your computer and use it in GitHub Desktop.
Two commands to archive and build an iOS ipa file from the command line. Used to be able to build an ipa file without a provisioning profile (for later re-wrapping).
This file contains hidden or 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
# Create an .xcarchive and an .ipa file from the command line (in order to build the ipa without a provisioning profile). | |
# It was build with 2 successive commands, one to create the .xcarchive file, and the second to build the actual ipa file. | |
# Your "SchemeName" here is typically the name of your app. | |
# To create the .xcarchive file: | |
xcodebuild -scheme SchemeName clean archive -archivePath build/SchemeName | |
# To create the .ipa file: | |
xcodebuild -exportArchive -exportFormat ipa -archivePath "build/SchemeName.xcarchive" -exportPath "build/SchemeName.ipa" | |
# This website: | |
# http://codingfingers.com/building-xcode-ios-projects-and-creating-ipa-file-from-the-command-line/ | |
# and this website: | |
# http://www.thecave.com/2014/09/16/using-xcodebuild-to-export-a-ipa-from-an-archive/ | |
# were used as a guide. The key to signing without a provisioning profile was to omit the -exportProvisioningProfile option from the second command. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment