我正在尝试在altool中使用带-p开关的@keychain选项,以便从钥匙串加载我的iTunes Connect密码:
altool --validate-app -f "${IPA}" -u "redacted" -p "@keychain:?????"
我想知道在@keychain之后我需要输入什么:我尝试的一切(钥匙串文件的路径,钥匙串条目的名称,钥匙串条目中的用户名)都会产生以下错误:
*** Error: The specified item Could not be found in the keychain.
altool提供有关-p param的以下信息:
-p,--password Password. required if username specified. Password is read from stdin if one is not supplied.
May use @keychain: or @env: prefixes followed by the keychain or environment variable lookup name.
e.g. -p @env:SECRET which would use the value in the SECRET environment variable.
解决方法
对我有用的方法是使用Application Loader本身登录(检查“保持登录状态”选项)并使用Application Loader的keychain条目.
所以我的命令看起来像这样:
altool --validate-app -f APPLICATION.ipa -u my@apple.id -p @keychain:"Application Loader: my@apple.id"