I need to automatise the process of notarising MacOS application. In order to achieve that I have created generic password:
security add-generic-password -a <apple_id> -w <app specific passwd> -s "ALIAS" build.keychain-db
Now to avoid having to enter the password I have added as well:
security set-generic-password-partition-list -S apple-tool:,apple: -s "ALIAS" -k <keychain_passwd> <keychain>
And finally I run altool command, but I still get popup asking me for keychain password.
Does anyone know how to avoid this popup? Everything must be done on command line, so if you could provide with the commands to run, it would be great
To prevent the security confirmation dialog from appearing, either click on
Always allowonce or modify the appropriate keychain entry. This works like this:altoolby opening a shell and typingxcrun -find altool.-T <path>when creating the password using thesecurity add-generic-passwordcommand:security add-generic-password -a <apple_id> -w <app specific passwd> -s "ALIAS" -T <path_to_altool> build.keychain-dbKeychain Access.app.File > Get Info(or press Cmd+I or click theⓘicon).Access Controltab and press the+button. A file selection dialog opens.Go > Go to Folder…and paste the path toaltool(the directory part, withoutaltoolitself, e.g./Applications/Xcode.app/Contents/Developer/usr/bin/).altoolto the open panel ofKeychain Accessand press theAddbutton.