为什么我每次都会遇到安装cocoapods时出错?

问题描述 投票:0回答:1

尝试在 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
我希望它能起作用

flutter macos terminal cocoapods macbookpro
1个回答
0
投票

就我而言,它有帮助:

brew install cocoapods

brew link cocoapods
© www.soinside.com 2019 - 2024. All rights reserved.