I\'m trying to use the @keychain option with the -p switch in altool in order to load my iTunes Connect password from the keychain:
Prerequisites:
AC_USERNAME.AC_PASSWORD.altool's @keychain parameter. We call this ITEM_NAME.In the instructions below, replace AC_USERNAME, AC_PASSWORD and ITEM_NAME with the values you need. Do not type these names verbatim.
Now:
Keychain Access.app File > New Password Item … . In the Keychain Item Name, enter the name you want for ITEM_NAME, the Account Name is your AC_USERNAME and the AC_PASSWORD goes into the Password field.security add-generic-password -a "AC_USERNAME" -w "AC_PASSWORD" -s "ITEM_NAME"altool, you now pass -u AC_USERNAME -p "@keychain:ITEM_NAME" to make it fetch the password from the keychain.altool, you get a security confirmation dialog asking you whether to allow altool to read the password. Enter your keychain password and click on Always allow.To prevent the security confirmation dialog from appearing, either click on Always allow or modify the appropriate keychain entry. This works like this:
altool by opening a shell and typing xcrun -find altool.-T when creating the password using the security add-generic-password command or:
Keychain Access.app.File > Get Info (or press Cmd+I or click the ⓘ icon).Access Control tab and press the + button. A file selection dialog opens.Go > Go to Folder… and paste the path to altool (the directory part, without altool itself, e.g. /Applications/Xcode.app/Contents/Developer/usr/bin/).altool to the open panel of Keychain Access and press the Add button.