xcrun notarytool store-credentials -> HTTP status code: 401. Invalid credentials error

Hi,

I am getting following error from following command, although I am 100% sure that I am entering the right credentials:

Command: xcrun notarytool store-credentials "MY_PROFILE" --apple-id “***” --team-id "yyy" --password "zzz"

Error: Error: HTTP status code: 401. Invalid credentials. Username or password is incorrect. Use the app-specific password generated at appleid.apple.com. Ensure that all authentication arguments are correct.

***->https://appleid.apple.com/account/manage/email and phone number -> apple id email (email address used for developer account)

yyy->https://developer.apple.com/account#MembershipDetailsCard/Team ID -> 10 digit nummer

zzz->https://appleid.apple.com/account/manage/App-Specific Passwords created and used

I just copy pasted every single item from the defined locations above.

I would appreciate for an answer.

Best Regards

Answered by EmreGun in 794641022

I was entering the password into command which I entered into app-specific password window, but the correct password which will be produced automatically after my password entry . In the first 10 attempt it was not created. but then a new window popped up and showed me a new created password in such a format: ex: texe-crtt-wrrg-tftz

this was working fine.

xcrun notarytool submit /Users/test/Downloads/test_launch_gui_stop_signed.pkg --progress --apple-id *** --password zzz --team-id yyy --wait giving also the same error

Accepted Answer

I was entering the password into command which I entered into app-specific password window, but the correct password which will be produced automatically after my password entry . In the first 10 attempt it was not created. but then a new window popped up and showed me a new created password in such a format: ex: texe-crtt-wrrg-tftz

this was working fine.

xcrun notarytool store-credentials -> HTTP status code: 401. Invalid credentials error
 
 
Q