Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to upload an iOS app to the app store via command line

As part of the countinues integration process of my iPhone application, I want to create a process that will automatically upload the app (.ipa) file to the apple app store. I already managed to create the package and validate it. Is there a way to upload the ipa file to the appstore via command line?

like image 928
Tomer Shiri Avatar asked Aug 09 '12 16:08

Tomer Shiri


People also ask

Is there CMD for iOS?

Terminal is a sandboxed command line environment for iOS that has over 30 commands currently available, covering many of the most used command line tools and commands you know and love, like cat, grep, curl, gzip and tar, ln, ls, cd, cp, mv, rm, wc, and more, all available right on your iPhone or iPad.

How much does it cost to put an app on Apple Store?

Apple App Store Fee - 2020 To publish your app on the Apple App Store, you should get to know that Apple App Store Fee for the users an amount of $99 on an annual basis as a cost to publish apps.

Can you upload an app on Apple App Store for free?

Becoming an Apple developer is free, but this won't enable you to submit an app to the App Store — to do that you must pay the aforementioned US$99 fee.


2 Answers

  1. Make sure you have an application in "waiting to upload" state.

  2. Create a new keychain Item Named: Xcode:itunesconnect.apple.com provide your credentials to itunes connect.

  3. From the command line: xcrun -sdk iphoneos Validation -online -upload -verbose "path to ipa"

like image 92
Tomer Shiri Avatar answered Oct 05 '22 21:10

Tomer Shiri


The previous reply does not work with the new iTunes Connect any more.

You need to use the iTunes Transporter to upload your app to iTunes Connect. Check out the source code of deliver on GitHub: https://github.com/fastlane/fastlane/blob/master/fastlane_core/lib/fastlane_core/itunes_transporter.rb

You can use deliver to automatically upload new updates to the App Store: https://fastlane.tools/deliver

like image 21
KrauseFx Avatar answered Oct 05 '22 19:10

KrauseFx