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

Tomer Shiri picture Tomer Shiri · Aug 9, 2012 · Viewed 18.1k times · Source

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?

Answer

Tomer Shiri picture Tomer Shiri · Nov 5, 2012
  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"