--store-password-in-keychain-item is not adding the entry in keychain

Hi,

I am trying to add the NOTARIZE_PASSWORD entry in keychain to automate the notarization process. I have Mac 10.15.1 and XCode 11.2.1 installed. Following command does not add an entry in the keychain. Could you please help?


xcrun altool --store-password-in-keychain-item "NOTARIZE_PASSWORD" -u "user" -p "password"


regards

Prema Kumar

Replies

This is working for me (I spent a lot of time playing around with it as part of responding to this DevForums question). Does

altool
output anything relevant? How are you testing for new keychain items?

Share and Enjoy

Quinn “The Eskimo!”
Apple Developer Relations, Developer Technical Support, Core OS/Hardware

let myEmail = "eskimo" + "1" + "@apple.com"

Hi,


I have three machines with same configuration. In one machine it worked and other two it did not. Terminal is not printing any errrors. No output in terminal after running the command.


I check in the "Keychain access" utility whether it is added or not.


regards


Prema Kumar

Did you try quitting and relaunching Keychain Access. I’ve definitely seen situations where it doesn’t update after other processes make changes behind its back.

Failing that, do a

security dump-keychain
before and after the
--store-password-in-keychain-item
invocation and then diff those dumps to see if anything changes.

Share and Enjoy

Quinn “The Eskimo!”
Apple Developer Relations, Developer Technical Support, Core OS/Hardware

let myEmail = "eskimo" + "1" + "@apple.com"