繁体   English   中英

运行命令 fastlane init 时,Fastlane 永远卡住

[英]Fastlane stuck forever when run command fastlane init

我在 xcode 9 中使用 fastlane,但我在使用 fastlane (2.95.0) 时遇到了问题。 当我运行命令 fastlane init 时,它显示了 4 个可供选择的选项。 然后我选择了选项 4,但它永远卡住了。 如何解决这个问题呢?

在此处输入图片说明

使用sudo fastlane init 这为我解决了这个问题

https://github.com/fastlane/fastlane/issues/12500

这个问题在我的机器上也出现过一次。 问题出在默认 Ruby 环境中。 您可以尝试“宝石清理”,看看是否可以加快速度?

另外,如果这不起作用,请尝试以下命令 -

gem cleanup
gem update -p
rvm reinstall ruby-2.5.1 --with-openssl-dir=/usr/local
gem install fastlane --verbose

其他选项只是将 fastlane 移动到您的用户文件夹并使其在没有 sudo 的情况下工作:

https://www.michaelehead.com/2016/02/06/installing-gems-without-sudo.html

之后,卸载所有以前安装的 fastlane(可以同时从brew installsudo gem install )并使用gem install fastlane -NV重新安装 fastlane,而无需 sudo。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM