Flutter 开发环境配置 执行 flutter doctor CocoaPods 报错解决方法

Flutter 开发环境配置 执行 flutter doctor 总有 CocoaPods 报错

CocoaPods installed but not initialized.
        CocoaPods is used to retrieve the iOS and macOS platform side's plugin
        code that responds to your plugin usage on the Dart side.
        Without CocoaPods, plugins will not work on iOS or macOS.
        For more info, see https://flutter.dev/platform-plugins
      To initialize CocoaPods, run:
        pod setup
      once to finalize CocoaPods' installation.

1

开发环境配置,一直卡在CocoaPods,解决办法:
~/.cocoapods/repos/master 目录是空的,需要下载下面的包解压进去,就OK 下载很慢,我下载好了,放百度网盘了

 https://github.com/CocoaPods/Specs/archive/master.zip

百度网盘下载:

链接: https://pan.baidu.com/s/1zmgtc0qPezUDScXjiMfnhQ 提取码: nqeq


下载后 执行 flutter doctor 不报错了~

1581619982329


Flutter 1.9.1 (flutter_macos_v1.9.1+hotfix.2-stable_mac.zip )环境配齐了,真心有点累,硬盘占了好多 AndroidStudio VsCode Xcode 这些都需要 相应的更新


flutter_macos_v1.9.1+hotfix.2-stable_mac.zip 这个从谷歌下载也很慢, 百度网盘下载:

链接: https://pan.baidu.com/s/1I_LJQR3oh5iAccw9Tl34xQ 提取码: mxkf