-
-
Save keith/5b5f61f4cc690aec403afd92aab020c3 to your computer and use it in GitHub Desktop.
#!/bin/bash | |
set -euo pipefail | |
xcrun altool --upload-app --type ios --file "path/to/foo.ipa" --username "$ITC_USER" --password "$ITC_PASSWORD" |
@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
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
I've updated the gist with the new path, and now that I know that validating the app just to upload it is redundant
Nice! Even shorter than I thought ! 👌
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)
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
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
We've seen that before intermittently. You should rerun later or check your auth credentials.
What are usernane
and password
values ?
And Where can I find them?
It's the ones you login to the developer portal with
Is there a way to use a script to upload to appstore?
This pretty much does that, it just requires you to submit it manually still (or you could use the App Store Connect API) for that piece
Hey @keith thanks for the script. Do you know any command to submit uploaded ipa file for TestFlight review?
@khindemit you can use the App Store connect api for that
is there a way to set build version in the altool?
@villimin I personally use a git tag for the version.
I've used this command but receiving the Appstore Connect's email message: "ITMS-90426: Invalid Swift Support - The SwiftSupport folder is missing. Rebuild your app using the current public (GM) version of Xcode and resubmit it."
I've used this command but receiving the Appstore Connect's email message: "ITMS-90426: Invalid Swift Support - The SwiftSupport folder is missing. Rebuild your app using the current public (GM) version of Xcode and resubmit it."
that sounds unrelated to this tool
This script is uploading to testflight, how can i upload to appstore?