[英]How to specify username in the command line for Fastlane?
我正在尝试将Apple ID作为命令行选项传递给Fastlane,因此所有用户和我们的构建服务器都可以使用相同的脚本。
MacBook-Pro-6:whisper-ios Nick$ fastlane hockeyglobal username:nlocking@whisper.sh
[18:00:44]: -------------------------------------------------
[18:00:44]: --- Step: Verifying required fastlane version ---
[18:00:44]: -------------------------------------------------
[18:00:44]: fastlane version valid
[18:00:44]: ------------------------------
[18:00:44]: --- Step: default_platform ---
[18:00:44]: ------------------------------
[18:00:44]: Driving the lane 'hockeyglobal' 🚀
[18:00:44]: ------------------
[18:00:44]: --- Step: sigh ---
[18:00:44]: ------------------
+-------------------------------------+-----------------------+
| Summary for sigh 1.8.0 |
+-------------------------------------+-----------------------+
| adhoc | true |
| skip_install | false |
| development | false |
| force | false |
| app_identifier | sh.whisper.whisperapp |
| team_id | B3NYR7PARX |
| ignore_profiles_with_different_name | false |
| skip_fetch_profiles | false |
| skip_certificate_verification | false |
+-------------------------------------+-----------------------+
[18:00:45]: To not be asked about this value, you can specify it using 'username'
Your Apple ID Username:
疯狂地, username:nlocking@whisper.sh
似乎完全没有被Fastlane注意到, apple_id:nlocking@whisper.sh
, -u nlocking@whisper.sh
以及我尝试的其他所有内容。 我究竟做错了什么?
尝试删除用户名,只添加app_identifier
, apple_id
(电子邮件)和team_id
在Appfile
它将在您的fastlane/Appfile
使用apple_id
的值。 确保从fastlane/
所在的文件夹中运行命令。
不确定hockeyglobal
lane,但通常传递username
参数的正确语法如下:
fastlane hockeyglobal --username 'nlocking@whisper.sh'
例如,对于默认cert
通道,这适用:
fastlane cert --username 'me@myemailcom'
要么
fastlane cert -u 'me@myemailcom'
我通过使用fastlane参数实现了这一点。 在你的Fastfile中做这样的事情:
lane :beta do |options|
cert(username: options[:username])
...
end
(注意上面的|options|
参数)
然后像这样调用fastlane:
fastlane beta username:email@example.com
其中email@example.com是您的用户名。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.