钥匙串选项应该如何用于 altool?

编程入门 行业动态 更新时间:2024-10-23 20:29:29
本文介绍了钥匙串选项应该如何用于 altool?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

限时送ChatGPT账号..

我正在尝试将 @keychain 选项与 altool 中的 -p 开关一起使用,以便从钥匙串加载我的 iTunes Connect 密码:

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:

altool --validate-app -f "${IPA}" -u "redacted" -p "@keychain:?????"

我想弄清楚在 @keychain: 之后我需要输入什么.我尝试的所有操作(钥匙串文件的路径、钥匙串条目的名称、钥匙串条目中的用户名)都会产生以下错误:

I'm trying to figure out what I need to enter after @keychain:. Everything I try (path of the keychain file, name of the keychain entry, username in the keychain entry) produces the following error:

*** 错误:在钥匙串中找不到指定的项目.

*** Error: The specified item could not be found in the keychain.

altool 提供有关 -p 参数的以下信息:

altool supplies the following info about the -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.

推荐答案

正确的用法是输入钥匙串物品的名称(不是钥匙串本身的名称,也不是钥匙串物品的Account"字段).

The correct usage is to enter the name of the keychain item (not the name of the keychain itself, and not the "Account" field for the keychain item).

我的问题实际上与访问控制有关.我必须在 Keychain Access 中编辑钥匙串项目并调整访问控制设置以允许 altool 查看钥匙串项目.

My problem was actually related to access control. I had to edit the keychain item in Keychain Access and tweak the Access Control settings to allow altool to see the keychain item.

这篇关于钥匙串选项应该如何用于 altool?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

更多推荐

[db:关键词]

本文发布于:2023-04-17 07:11:14,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/908676.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:选项   钥匙   altool

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!