我下载了flutter_macos_arm64_3.13.9-stable
和Xcode 14.3.1(1 4 E 300 c)
我在终端写的
sudo gem install cocoapods
ERROR: 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.
根据我的经验,我强烈建议使用 HomeBrew 作为包管理器,我也在 sudo gem 上苦苦挣扎,然后切换到 Homebrew :)
看完这篇文章我已经转行了
https://www.geeksforgeeks.org/how-to-install-cocoapods-in-flutter/
如何安装Homebrew?
https://www.geeksforgeeks.org/homebrew-installation-on-macos/