Search code examples
iosxcodexcode-botsxcode-server-bots

Which password I should use for altool command line?


Trying to execute altool command, but it fails, that password is incorrect:

xcrun altool --list-apps -u [email protected] -p PASSWORD
  • I did try to use my user name password.
  • I did try to use @keychain functionality failing, that it is failing because keychain item not found. I did fallow this instructions. It is failing with this message: Error: Failed to read legacy keychain item

Solution

    1. Login to https://appleid.apple.com/
    2. Generate APP-SPECIFIC PASSWORD enter image description here
    3. Save generated password as later it will not be able to view and edit
    4. Use generated password in the altool.
    Example:
    xcrun altool --validate-app -f best/my/app.ipa -u [email protected] -p "APP-SPECIFIC-PASSWORD"
    

    Notes: After changing users password all app specific passwords will be revoked.