iOS Flutter环境搭建体验

Flutter中文网(参考步骤)

https://flutterchina.club/setup-macos/

可以使用下面链接下载

git clone https://github.com/flutter/flutter.git

报错问题:

flutter doctor

Downloading Dart SDK from Flutter engine 54ad777fd29b031b87c7a68a6637fb48c0932862... % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 0 0 0 0 0 0 0 0 --:--:-- 0:03:01 --:--:-- 0curl: (35) LibreSSL SSL_connect: SSL_ERROR_SYSCALL in connection to storage.googleapis.com:443 Failed to retrieve the Dart SDK from: https://storage.googleapis.com/flutter_infra/flutter/54ad777fd29b031b87c7a68a6637fb48c0932862/dart-sdk-darwin-x64.zipIf you're located in China, please see this page: https://flutter.dev/community/china


解决方法:

export PUB_HOSTED_URL=https://pub.flutter-io.cn export FLUTTER_STORAGE_BASE_URL=https://storage.flutter-io.cn git clone -b dev https://github.com/flutter/flutter.git export PATH="$PWD/flutter/bin:$PATH" cd ./flutter flutter doctor


总结:

环境搭建参考上述链接,开发环境容易配置的。

你可能感兴趣的:(iOS Flutter环境搭建体验)