Fastlane stuck forever when run command fastlane init
Use sudo fastlane init
.
This fixed the issue for me
https://github.com/fastlane/fastlane/issues/12500
This issue also occurred in my machine once. The problem was with Default Ruby environment. 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