Flutter 在 MacOS M1(13.4) Ventura 上安装问题

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

我下载了flutter_macos_arm64_3.13.9-stableXcode 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.
flutter dart installation cocoapods
1个回答
0
投票

根据我的经验,我强烈建议使用 HomeBrew 作为包管理器,我也在 sudo gem 上苦苦挣扎,然后切换到 Homebrew :)

看完这篇文章我已经转行了

https://www.geeksforgeeks.org/how-to-install-cocoapods-in-flutter/

如何安装Homebrew?

https://www.geeksforgeeks.org/homebrew-installation-on-macos/

https://formulae.brew.sh/formula/cocoapods

© www.soinside.com 2019 - 2024. All rights reserved.