can‘t find gem cocoapods (>= 0.a) with executable pod (Gem::GemNotFoundException)

Posted iOSTianNan

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了can‘t find gem cocoapods (>= 0.a) with executable pod (Gem::GemNotFoundException)相关的知识,希望对你有一定的参考价值。

RN 0.67.0及以上版本, 需要
ruby 2.7.4 cocoapods >= 1.11.2

但是通过rvm 切换到 ruby 2.7.4,
执行 pod --version
会报错如下

 can't find gem cocoapods (>= 0.a) with executable pod (Gem::GemNotFoundException)

操作同
Could not find ‘json‘ (>= 1.5.1) among 45 total gem(s)

应该是切换到新版本的ruby , 需要重新安装

以上是关于can‘t find gem cocoapods (>= 0.a) with executable pod (Gem::GemNotFoundException)的主要内容,如果未能解决你的问题,请参考以下文章