炒股网站开发,车险网站模版,黑龙江省农业网站建设情况,个性化网站有哪些MAC安装CocoaPods遇到的错误Failed to build gem native extension.
配置flutter环境的时候报错cocoapods不可用 发现已经安装了CocoaPods#xff0c;但是不能用
重新安装CocaPods
sudo gem install cocoapods重新安装报错如下#xff1a; 安装RVM
curl -L https://get.r…MAC安装CocoaPods遇到的错误Failed to build gem native extension.
配置flutter环境的时候报错cocoapods不可用 发现已经安装了CocoaPods但是不能用
重新安装CocaPods
sudo gem install cocoapods重新安装报错如下 安装RVM
curl -L https://get.rvm.io | bash -s stable使用RVM管理Ruby 先下载ruby
rvm install ruby-2.6如果你的电脑是M1的下载过程会出现一些错误解决办法 点击查看解决办法
再次尝试下载下载
sudo gem install cocoapods又又又又报错了
ERROR: Error installing cocoapods:The last version of drb ( 0) to support your Ruby RubyGems was 2.0.6. Try installing it with gem install drb -v 2.0.6 and then running the current command againdrb requires Ruby version 2.7.0. The current ruby version is 2.6.10.210.这个错误是我目前的Ruby是2.6.10.210版本的版本比较低 需要下载2.7.0版本的 使用ruby管理工具rvm没安装要先安装进行下载 查看已经安装的Ruby
rvm list安装高版本的Ruby
rvm install ruby-2.7.2下载完成切换到2.7.2版本
rvm use 2.7.2然后再次下载cocoapods
sudo gem install cocoapods搞定