How to upload to App Store from command line with Xcode 11?
With Xcode 11 as command line tools, to validate or upload an ipa, replace altool
with xcrun altool
:
xcrun altool --validate-app --file "$IPA_PATH" --username "$APP_STORE_USERNAME" --password @keychain:"Application Loader: $APP_STORE_USERNAME"xcrun altool --upload-app --file "$IPA_PATH" --username "$APP_STORE_USERNAME" --password @keychain:"Application Loader: $APP_STORE_USERNAME"
Get more help with xcrun altool --help
.
Use command line tools,
xcrun altool --upload-app -f path -u username -p password
If your apple account use TWO-FACTOR Authentication , your password would be wrong , you need to go to https://appleid.apple.com/account/manage "Security - Generate Password"
to get the password
If you get other wrong , you could add --verbose
to print detail errors log, just like
xcrun altool --upload-app -f path -u username -p password --verbose
And , get more help with xcrun altool --help
You can now also use a new app from Apple called "Transporter"that is a replacement for Xcode application loader.