Notarization - invalid credentials

Hello, After my developer Id had expired after 5 years, I created a new one, codesigned the app successfully, but could not notarize:

xcrun notarytool submit mac_release/flow5.zip --keychain-profile "XFLR5" --wait

Conducting pre-submission checks for flow5.zip and initiating connection to the Apple notary service...
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

I don't think I was using an app specific password before, but the last time I went through this process was 5 years ago.

Thanks in advance for any help.

Answered by DTS Engineer in 816229022

Notarisation has always required either an app-specific password (or an App Store Connection API key).

If you’re having problem authenticating, run the store-credentials subcommand interactively:

% xcrun notarytool store-credentials

This process stores your credentials securely in the Keychain. You reference these credentials later using a profile name.

Profile name:
…

That’ll walk you through the process, identifying problems as they occur.

Share and Enjoy

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

If your account has got 2 factor authentication enabled, an app specific password is required, just like the message says.

Notarisation has always required either an app-specific password (or an App Store Connection API key).

If you’re having problem authenticating, run the store-credentials subcommand interactively:

% xcrun notarytool store-credentials

This process stores your credentials securely in the Keychain. You reference these credentials later using a profile name.

Profile name:
…

That’ll walk you through the process, identifying problems as they occur.

Share and Enjoy

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

Notarization - invalid credentials
 
 
Q