最终安装效果如图

 

mac air 安装flutter

 

 

首先配置环境变量

open -e ~/.bash_profile

 

[[ -s "$HOME/.profile" ]] && source "$HOME/.profile" # Load the default .profile

[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm" # Load RVM into a shell session *as a function*
PATH="/Users/chen/work/flutter/bin:$PATH"
 
export PUB_HOSTED_URL=https://pub.flutter-io.cn
export FLUTTER_STORAGE_BASE_URL=https://storage.flutter-io.cn

 

然后依次安装


         brew update
        brew install --HEAD usbmuxd
        brew link usbmuxd
        brew install --HEAD libimobiledevice
        brew install ideviceinstaller

尤其倒数第二步网速不稳定。

 

相关文章:

  • 2021-04-03
  • 2021-12-13
  • 2021-11-03
  • 2021-10-23
猜你喜欢
  • 2022-01-03
  • 2021-08-02
  • 2022-01-05
  • 2022-02-14
  • 2021-05-18
  • 2022-01-07
  • 2021-10-24
相关资源
相似解决方案