flutter doctor问题解决

mac端未安装CocoaPods

复制代码
gem install cocoapods --user-install

gem依赖Ruby,系统自带的2.5Ruby和新版cocoapods不兼容

安装homebrew

复制代码
/bin/bash -c "$(curl -fsSL https://gitee.com/cunkai/HomebrewCN/raw/master/Homebrew.sh)"

选择gitee

选择中科大

复制代码
brew install ruby
复制代码
echo 'export PATH="/opt/homebrew/opt/ruby/bin:$PATH"' >> ~/.zshrc  
source ~/.zshrc
复制代码
gem which cocoapods
复制代码
echo 'export PATH="/opt/homebrew/lib/ruby/gems/4.0.0/bin:$PATH"' >> ~/.zshrc
source ~/.zshrc
复制代码
sudo xcode-select --switch /Applications/Xcode.app/Contents/Developer
sudo xcodebuild -runFirstLaunch
相关推荐
G_dou_18 小时前
Flutter+OpenHarmony 实战:stopwatch 秒表应用
flutter·harmonyos
hxy060119 小时前
Flutter 定时器相关
flutter
G_dou_19 小时前
Flutter三方库适配OpenHarmony【compass】罗盘 UI 项目完整实战
flutter·ui
G_dou_21 小时前
Flutter +OpenHarmony 实战:clock 时钟应用
flutter·harmonyos
G_dou_21 小时前
Flutter+OpenHarmony 实战:weather 天气查询应用
flutter·harmonyos
韩曙亮1 天前
【错误记录】flutter pub get 执行报错 ( 打开 Windows 开发者模式 )
windows·flutter
G_dou_1 天前
Flutter+OpenHarmony实战:flashlight】手电筒项目
flutter·harmonyos
坚果的博客1 天前
Flutter OHOS SDK 版本目录校验 Bug 修复实战
flutter·bug
坚果的博客1 天前
Flutter 开发鸿蒙 6 应用,祝贺六一儿童节 [特殊字符]
flutter·华为·harmonyos
jingling5551 天前
Flutter | 从基本跳转到路由守卫
服务器·前端·网络·flutter·前端框架