Notarytool failed to authenticate

Hi Guys, I am facing a problem I find difficult to debug.

I had a company Apple ID, member of team, that I used for notaryzation of an app via:

res=$(xcrun notarytool submit ${file_to_notarize} --apple-id stepan.svoboda@memsource.com --password ${password} --team-id PK8H4S4HPF --wait 2>&1)

But I will be leaving the company soon so we created new apple ID. desktop@phrase.com We invited this ID to team. And assigned it admin role.

I generated app specific password and I am using it with this new apple ID

But then running:

res=$(xcrun notarytool submit ${file_to_notarize} --apple-id desktop@phrase.com --password ${password} --team-id PK8H4S4HPF --wait 2>&1)

Fails with:

Error: HTTP status code: 401. Unable to authenticate. Invalid session. Ensure that all authentication arguments are correct.

And I run out of ideas what to check, what could be wrong.

Try using the store-credentials subcommand of notarytool to authenticate. It’s an interactive process, so it might offer some insight into what’s going wrong.

Note I’m not suggesting that you change your ultimate process. You may or may not want to do that, independent of this issue. For the moment, however, this is just a diagnostic test.

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

Notarytool failed to authenticate
 
 
Q