在IPAD上调试Flutter应用

1.Flutter 环境 1.1 安装dart 1 2 brew tap dart-lang/dart brew install dart 1.2 安装flutter 1 git clone https://github.com/flutter/flutter.git 配置环境变量 1 2 3 4 5 export PUB_HOSTED_URL=https://pub.flutter-io.cn export FLUTTER_STORAGE_BASE_URL=https://storage.flutter-io.cn # 这里换成你自己clone的地址 export FLUTTER_HOME=$HOME/Sdks/flutter export PATH=$PATH:$FLUTTER_HOME/bin 2.Android 环境 2.1 sdk 1 brew install --cask android-sdk 配置环境变量 1 2 3 4 5 # 后面的数字会灵活变动,使用brew info android-sdk查看路径 export ANDROID_SDK_HOME=/usr/local/Caskroom/android-sdk/4333796 export ANDROID_SDK_ROOT=/usr/local/Caskroom/android-sdk/4333796 export ANDROID_NDK_HOME=/usr/local/Caskroom/android-sdk/4333796/ndk export PATH=$PATH:$ANDROID_SDK_ROOT/tools:$ANDROID_SDK_ROOT/platform-tools:$ANDROID_NDK_HOME:$ANDROID_SDK_ROOT/emulator:$ANDROID_SDK_HOME 2....

December 5, 2021 · 1 min · cui