简体   繁体   English

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

[英]Fastlane stuck forever when run command fastlane init

I am using fastlane with xcode 9 and I got a problem with fastlane (2.95.0).我在 xcode 9 中使用 fastlane,但我在使用 fastlane (2.95.0) 时遇到了问题。 When i run command fastlane init it shows me 4 options to choose.当我运行命令 fastlane init 时,它显示了 4 个可供选择的选项。 And then i chose option number 4 but it stuck forever.然后我选择了选项 4,但它永远卡住了。 How to solve this problem?如何解决这个问题呢?

在此处输入图片说明

Use sudo fastlane init .使用sudo fastlane init This fixed the issue for me这为我解决了这个问题

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

This issue also occurred in my machine once.这个问题在我的机器上也出现过一次。 The problem was with Default Ruby environment.问题出在默认 Ruby 环境中。 Can you give "gem cleanup" a try and see if that speeds things up for you?您可以尝试“宝石清理”,看看是否可以加快速度?

Also, if that doesn't work, can you please try below commands-另外,如果这不起作用,请尝试以下命令 -

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

The other options is just to move fastlane to your user's folder and make it working without sudo:其他选项只是将 fastlane 移动到您的用户文件夹并使其在没有 sudo 的情况下工作:

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

After that, uninstall all previous installations of fastlane (it can be from brew install and sudo gem install simultaneously) and reinstall fastlane with gem install fastlane -NV without sudo.之后,卸载所有以前安装的 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