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

后端 未结 4 1281
离开以前
离开以前 2020-12-12 12:00

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.

相关标签:
4条回答
  • 2020-12-12 12:13
    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"

    0 讨论(0)
  • 2020-12-12 12:19

    UPLOAD IPA TO TESTFLIGHT

    altool --upload-app -f "${APP_NAME}.ipa" -u $APP_STORE_USERNAME -p $APP_STORE_PASSWORD
    

    To use altool from anywhere in the terminal you could add it to your PATH env variable by typing in terminal:

    Previous to Xcode 11:

    MacBook-Pro:~ denis$ export PATH=$PATH:/Applications/Xcode.app/Contents/Applications/Application\ Loader.app/Contents/Frameworks/ITunesSoftwareService.framework/Support/
    MacBook-Pro:~ denis$ source ~/.bash_profile
    

    From Xcode 11 and later: (altool has changed location)

    MacBook-Pro:~ denis$ export PATH=$PATH:/Applications/Xcode.app/Contents/Developer/usr/bin/
    MacBook-Pro:~ denis$ source ~/.bash_profile
    
    0 讨论(0)
  • 2020-12-12 12:30

    You should use application loader tool: altool --upload-app -f file -u username [-p password] [--output-format xml]

    As describe in: https://help.apple.com/itc/apploader/#/apdATD1E53-D1E1A1303-D1E53A1126

    0 讨论(0)
  • 2020-12-12 12:32

    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

    0 讨论(0)
提交回复
热议问题