Skip to content

Instantly share code, notes, and snippets.

@bohdaq
Last active January 16, 2016 22:34
Show Gist options
  • Save bohdaq/c9c1c46eea0bd7366d33 to your computer and use it in GitHub Desktop.
Save bohdaq/c9c1c46eea0bd7366d33 to your computer and use it in GitHub Desktop.
Build xCode iOS Application via command line/terminal and upload it to iTunes Connect (App Store review)
#!/bin/bash
# Make sure you have installed https://github.com/fastlane/deliver#installation and finished Installation and Quick Start sections
# To use this script, simply put it in app directory and execute:
# ./automation.sh YOUR_PROJECT_NAME YOUR_EXPORT_PROVISIONING_PROFILE
rm -f $1.ipa
xcodebuild archive -workspace $1.xcworkspace -scheme $1 -archivePath $1.xcarchive
xcodebuild -exportArchive -archivePath $1.xcarchive -exportPath $1 -exportFormat ipa -exportProvisioningProfile "$2"
deliver --ipa "$1.ipa" --force
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment