终端执行
export PUB_HOSTED_URL=https://pub.flutter-io.cn
export FLUTTER_STORAGE_BASE_URL=https://storage.flutter-io.cn
替换flutter/package/flutter_toools/lib/src/http_host_validator.dart
const String kCloudHost = 'https://storage.googleapis.com/';
const String kCocoaPods = ' https://maven.aliyun.com/repository/google/';
const String kGitHub = 'https://github.com/';
const String kMaven = ' https://maven.aliyun.com/repository/google/';
const String kPubDev = 'https://mirrors.tuna.tsinghua.edu.cn/dart-pub;
/bin/zsh -c "$(curl -fsSL https://gitee.com/cunkai/HomebrewCN/raw/master/Homebrew.sh)"
brew install git
brew install cocoapods
pod repo add tuna https://mirrors.tuna.tsinghua.edu.cn/git/CocoaPods/Specs.git
source 'https://mirrors.tuna.tsinghua.edu.cn/git/CocoaPods/Specs.git'
sudo xcode-select --switch /Applications/Xcode.app/Contents/Developer
flutter doctor -V
flutter pub get
cd ios
pod install