本文介绍了Fastlane"nokogiri需要Ruby版本> = 2.3.0."错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在Medium上完成了本教程,以便将我的Xcode项目与SonarQube集成在一起以获取一些指标. 设置SonarQube-Swift .我能够通过最后一步做到这一点:在终端上,在项目目录的根目录中运行fastlane metrics.但是我在步骤"slather"上遇到此错误.

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".

我还发现有人在这里有类似的问题,但没有答案:类似问题

I have also found that someone had a similar question here, but no answers:Similar Question

如果我跑步:

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

我得到的红宝石版本2.6.3高于所需的2.3

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.

推荐答案

在研究并尝试了几种解决方案之后,我终于解决了这个问题.发生的事情是我最初使用以下命令安装了Fastlane:

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线程

usr /local/bin

这篇关于Fastlane"nokogiri需要Ruby版本> = 2.3.0."错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-17 11:50