when I am using this command to install fastlane in macOS Catalina 10.15:
sudo gem install fastlane -v 2.177.0
or
sudo gem update fastlane
shows this error:
ERROR: While executing gem ... (NoMethodError)
undefined method `request' for nil:NilClass
(base)
I tried searching from internet but seems no issue about this problem.what should I do to fix it? This is my ruby version info:
$ ruby -v ‹ruby-3.0.0›
ruby 3.0.0p0 (2020-12-25 revision 95aff21468) [x86_64-darwin19]
(base)
and this is my rubygem info:
$ gem -v ‹ruby-3.0.0›
3.2.3
(base)
I tried following steps and issue resolved
gem cleanup
brew uninstall cocoapods
sudo gem uninstall cocoapods
sudo gem install cocoapods -n /usr/local/bin
sudo gem install cocoapods-user-defined-build-types
pod install --repo-update
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With