Mac平台flutter环境搭建

1、去flutter官网下载安装包,下载Dev channel,macOS

https://flutter.io/sdk-archive/#macos

2、macOS下是自动解压了,进入flutter/bin目录后执行。如果提示有问题,看后面几点解决办法。

./flutter doctor

如果提示xcrun不存在,执行以下命令安装

xcode-select --install

3、安装brew

/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
brew update
brew uninstall --ignore-dependencies libimobiledevice
brew uninstall --ignore-dependencies usbmuxd
brew install --HEAD usbmuxd
brew unlink usbmuxd
brew link usbmuxd
brew install --HEAD libimobiledevice
brew install ideviceinstaller ios-deploy cocoapods
pod setup

 

你可能感兴趣的:(flutter,flutter)