Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to upload to App Store from command line with Xcode 11?

Previously, with Xcode 10, we were using altool to upload to App Store:

ALTOOL="/Applications/Xcode.app/Contents/Applications/Application Loader.app/Contents/Frameworks/ITunesSoftwareService.framework/Support/altool" "$ALTOOL" --upload-app --file "$IPA_PATH" --username "$APP_STORE_USERNAME" --password @keychain:"Application Loader: $APP_STORE_USERNAME" 

But with Xcode 11, "Application Loader.app" doesn't exist anymore, as part of the Xcode 11 changes:

Xcode supports uploading apps from the Organizer window or from the command line with xcodebuild or xcrun altool. Application Loader is no longer included with Xcode. (29008875)

So how do we upload from command line to TestFlight or App Store now?

like image 601
Cœur Avatar asked Jun 04 '19 01:06

Cœur


People also ask

How do I upload to the Xcode app store?

Archive and upload your app using Xcode Choose Product from the top menu and click on Archive. The Xcode Organizer will launch, displaying any archives you've created in the past. Make sure the current build is selected and click on Upload to App Store in the right-hand panel. Select your credentials and click Choose.

How do I submit an IPA file to the app store?

Using Transporter app Once you click on the Add button you will need to pick the *. ipa file that you want to upload from your hard drive. Having done that you should see the below screen and a DELIVER button next to your application's icon. Clicking on it will push the app to the Apple Store Connect.

How do I run Xcode from command line app?

go to the 'Info' tab and in a menu 'Executable' choose 'Other...' in file window go to search input field and type 'terminal' and click on its icon when you find it. Now you should see 'Terminal. app' in 'Executable' field.

What happened to application loader in Xcode 11?

But with Xcode 11, "Application Loader.app" doesn't exist anymore, as part of the Xcode 11 changes: Xcode supports uploading apps from the Organizer window or from the command line with xcodebuild or xcrun altool. Application Loader is no longer included with Xcode. (29008875) So how do we upload from command line to TestFlight or App Store now?

How do I deploy to the App Store using Xcode 11?

To deploy to the App Store using Xcode 11 (for iOS 13), you should use Visual Studio for Macto build and upload your app. Application Loaderwill not be available for Xcode 11. On the Mac build host, open Application Loader.

How do you distribute an app in Xcode?

For example, if you want to distribute your app using TestFlight or through the App Store, assign all the targets in a project to a team that belongs to the Apple Developer Program. When you upload or export your build, Xcode creates the necessary signing assets in the associated developer account.

How to download and install apps with commands on Windows 11?

Here are the steps to download and install apps with commands on Windows 11. On Windows 11, in addition to using a standalone (.exe or .msi) installer or the Microsoft Store, you can also use the Windows Package Manager (winget) to download and install apps on your laptop or desktop computer.


2 Answers

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.

like image 178
Cœur Avatar answered Sep 22 '22 07:09

Cœur


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

like image 35
forgot2015 Avatar answered Sep 19 '22 07:09

forgot2015