Managed account can't upload with altool

I had a personal Apple account which I used to upload apps to App Store Connect for our company. I used altool with an app-specific password, like this:

xcrun altool --upload-app -u mylogin%mycompany.com -p my-app-specific-password --file MyApp.ipa --type ios --verbose

Recently I was asked to convert to it a company-managed account. Once I did this, altool stopped working, with the error "Failed to determine the appleID from bundleID com.mycompany.myapp with platform IOS. Unable to generate an Apple Connect token at this time due to a general error." The complete error log is below.

I tried creating a new app-specific password, but had the same result.

If I deliberately use the wrong password, I get a different error: "Failed to determine the appleID from bundleID com.mycompany.myapp with platform IOS. Your Apple ID or password was entered incorrectly." So I don't think it's a password problem.

I can manually upload to App Store Connect using Xcode with this same account, so it seems like it has the right permission. Any idea why altool wouldn't work?

Answered by JW123 in 877393022

I repeated the same issue with another Apple ID on our team — it worked before conversion to a managed account, but not after. So I'm guessing something is broken with app-specific passwords in managed accounts.

I was able to get the upload working by switching from app-specific passwords to API keys. In Users and Access > Integrations > Keys > App Store Connect API > Team Keys, I created a key, and passed the --apiKey, --apiIssuer, and --p8-file-path arguments to altool.

Accepted Answer

I repeated the same issue with another Apple ID on our team — it worked before conversion to a managed account, but not after. So I'm guessing something is broken with app-specific passwords in managed accounts.

I was able to get the upload working by switching from app-specific passwords to API keys. In Users and Access > Integrations > Keys > App Store Connect API > Team Keys, I created a key, and passed the --apiKey, --apiIssuer, and --p8-file-path arguments to altool.

Managed account can't upload with altool
 
 
Q