配置环境变量

国内镜像
export PUB_HOSTED_URL=https://pub.flutter-io.cn export FLUTTER_STORAGE_BASE_URL=https://storage.flutter-io.cn
mkdir ~/development mv ~/Downloads/flutter_macos_3.3.4-stable.zip ~/development cd ~/development unzip flutter_macos_3.3.4-stable.zip vim ~/.zshrc
export PATH="$PATH:`pwd`/flutter/bin"

Xcode

配置

配置 Xcode 命令行工具以使用新安装的 Xcode 版本
sudo xcode-select --switch /Applications/Xcode.app/Contents/Developer sudo xcodebuild -runFirstLaunch
Xcode 许可协议
sudo xcodebuild -license

CocoaPods

sudo gem install cocoapods

模拟器

open -a Simulator

Android Studio

Install

notion image
notion image

SDK

notion image
flutter doctor --android-licenses

常用命令

使用最新Flutter SDK

flutter channel stable flutter upgrade
badge