Skip to content

Instantly share code, notes, and snippets.

@Ilesh
Forked from keith/testflight.sh
Created February 13, 2019 06:17
Show Gist options
  • Save Ilesh/97ddc2e101aef6fc71340a54d8eb866c to your computer and use it in GitHub Desktop.
Save Ilesh/97ddc2e101aef6fc71340a54d8eb866c to your computer and use it in GitHub Desktop.
Upload an ipa to testflight using altool
#!/bin/bash
set -e
set -u
altool="$(dirname "$(xcode-select -p)")/Applications/Application Loader.app/Contents/Frameworks/ITunesSoftwareService.framework/Support/altool"
ipa="path/to/foo.ipa"
echo "Validating app..."
time "$altool" --validate-app --type ios --file "$ipa" --username "$ITC_USER" --password "$ITC_PASSWORD"
echo "Uploading app to iTC..."
time "$altool" --upload-app --type ios --file "$ipa" --username "$ITC_USER" --password "$ITC_PASSWORD"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment