Skip to content

Instantly share code, notes, and snippets.

@DavidFrahm
Created January 27, 2015 22:58
Show Gist options
  • Save DavidFrahm/4409d6b74e46377e7be7 to your computer and use it in GitHub Desktop.
Save DavidFrahm/4409d6b74e46377e7be7 to your computer and use it in GitHub Desktop.
Ionic build iOS app for release, open in HockeyApp for deploying to team
#!/bin/bash
echo "Building Ionic/Cordova iOS release..."
ionic build --release ios
# Save current directory and cd to other dir
pushd platforms/ios/
# Build archive
xcodebuild -scheme "MyApp" -configuration Release clean archive
# Can also specify archive path:
# xcodebuild <all_other_args> archive -archivePath build/MyApp
# Return current directory
popd
# Uncomment if you have disabled HockeyApp auto-watching for archives
# This path needs to be edited based on IPA from earlier command
#echo "Opening IPA (in HockeyApp)..."
#open platforms/MyApp.ipa
echo "Done"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment