记录安装的笔记
参考
https://blog.csdn.net/wangjunling888/article/details/80768285
https://www.jianshu.com/p/b50a92afbef1
这两个文章弄的😃😄
通过 clone Github 上的代码,来安装最新迭代的版本。
1.终端执行下载
git clone -b beta https://github.com/flutter/flutter.git
2.配置环境变量
终端执行
vim ~/.bash_profile
增加
export PUB_HOSTED_URL=https://pub.flutter-io.cn
export FLUTTER_STORAGE_BASE_URL=https://storage.flutter-io.cn
# FLUTTER_HOME 为你自己的gitclone下来到目录
export FLUTTER_HOME=/Users/hh/app/FlutterSdk/flutter
export PATH=${FLUTTER_HOME}/bin:$PATH
运行命令:
source ~/.bash_profile
3.检测环境:
flutter doctor
终端显示如下:打勾的就OK没打勾的就按照指示执行命令
image.png
执行
brew update
brew install --HEAD usbmuxd
brew link usbmuxd
brew install --HEAD libimobiledevice
brew install ideviceinstaller
brew install ios-deploy
执行以后再 flutter doctor
image.png
网友评论