20

I am using fastlane with xcode 9 and I got a problem with fastlane (2.95.0). When i run command fastlane init it shows me 4 options to choose. And then i chose option number 4 but it stuck forever. How to solve this problem?

enter image description here

Eric Aya
  • 69,473
  • 35
  • 181
  • 253
seyha
  • 554
  • 5
  • 16

3 Answers3

24

Use sudo fastlane init. This fixed the issue for me

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

rogerstone
  • 7,541
  • 11
  • 53
  • 62
8

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
0

The other options is just to move fastlane to your user's folder and make it working without sudo:

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.

fend25
  • 143
  • 1
  • 6