Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Upload an ipa to testflight using altool
#!/bin/bash
set -euo pipefail
xcrun altool --upload-app --type ios --file "path/to/foo.ipa" --username "$ITC_USER" --password "$ITC_PASSWORD"
@HerrNiklasRaab

This comment has been minimized.

Copy link

@HerrNiklasRaab HerrNiklasRaab commented Dec 4, 2018

This script is uploading to testflight, how can i upload to appstore?

@Khronoss

This comment has been minimized.

Copy link

@Khronoss Khronoss commented May 7, 2019

@HerrNiklasRaab Actually the binary is uploaded to iTunesConnect, which allows you to send it to TestFlight (not mandatory) AND upload it to the AppStore after sending it to Apple's review process

@MartinDelille

This comment has been minimized.

Copy link

@MartinDelille MartinDelille commented Jul 13, 2019

altool is available via a shorter path: /Applications/Xcode.app/Contents/Developer/usr/bin/altool (which in fact is a symlink to /Applications/Xcode.app/Contents/Developer/Applications/Application Loader.app/Contents/Frameworks/ITunesSoftwareService.framework/Versions/Current/Support/altool

@keith

This comment has been minimized.

Copy link
Owner Author

@keith keith commented Jul 15, 2019

I've updated the gist with the new path, and now that I know that validating the app just to upload it is redundant

@MartinDelille

This comment has been minimized.

Copy link

@MartinDelille MartinDelille commented Jul 16, 2019

Nice! Even shorter than I thought ! 👌

@praveen2917

This comment has been minimized.

Copy link

@praveen2917 praveen2917 commented Apr 29, 2020

I had started to upload using altool but i pressed ctrl + z and now i am not able to upload again . Error: code -18000 (Cannot proceed with delivery: an existing transporter instance is currently uploading this package)

@keith

This comment has been minimized.

Copy link
Owner Author

@keith keith commented Apr 29, 2020

You'll need to stop the existing one, you can foreground it first https://www.gnu.org/software/bash/manual/html_node/Job-Control-Basics.html or pkill it

@nhanv

This comment has been minimized.

Copy link

@nhanv nhanv commented Sep 28, 2020

This command can run now? I try running it and get an error: *** Error: code -22014 (Unable to validate your application. We are unable to create an authentication session.)
Sorry I just start with iOS

@keith

This comment has been minimized.

Copy link
Owner Author

@keith keith commented Sep 28, 2020

We've seen that before intermittently. You should rerun later or check your auth credentials.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.