Fastlane “nokogiri requires Ruby version >= 2.3.0.” Error

試著忘記壹切 提交于 2019-12-12 18:13:32

问题


I finished this tutorial on medium in order to integrate my Xcode project with sonarQube to have some metrics. Setup SonarQube - Swift. I was able to make it through the last step that is: running "fastlane metrics" on the terminal while being in the root of the project directory. But i get this error on step "slather" nokogiri requires Ruby version >= 2.3.0., fastlane finished with errors: I have also found that someone had a similar question here, but no answers: Similar Question

If i run:

nicolas$ ruby --version
ruby 2.6.3p62 (2019-04-16 revision 67580) [universal.x86_64-darwin19]

I get ruby version 2.6.3 that is higher than the required 2.3

Does anyone knows how to fix this, or got any hunches? Thanks in advance i appreciate any help.


回答1:


After digging around and trying several solutions, i finally solved this. What happened was that i initially installed fastlane with this command:

brew cask install Fastlane

And it seems that it was using another version of ruby while i had a newer one. So i uninstalled it with:

brew cask uninstall Fastlane

And then i re-installed it with this command:

sudo gem install -n /usr/local/bin fastlane -NV

Because i was having problems with permissions and then all worked good.

References and other solutions:

Github thread

usr/local/bin



来源:https://stackoverflow.com/questions/58775795/fastlane-nokogiri-requires-ruby-version-2-3-0-error

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!