尝试在 mac 上下载 flutter,当我运行 flutter doctor 时,xcode 出现错误,提示 CocoaPods 未安装
所以我尝试用
"sudo gem install cocoapods"
Error installing cocoapods:
There are no versions of cocoapods-downloader (>= 2.0) compatible with your Ruby & RubyGems. Maybe try installing an older version of the gem you're looking for?
cocoapods-downloader requires Ruby version >= 2.7.4. The current ruby version is 2.6.10.210.
我能做什么?
安装cocoapods
我希望它能起作用
就我而言,它有帮助:
brew install cocoapods
和
brew link cocoapods