Mac flutter 安装~ CocoaPods installed but not initialized.

版权声明:本文为博主原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。
本文链接: https://blog.csdn.net/weixin_30512027/article/details/102743607

1、下载android studio

2、下载flutter sdk 去官网下就可以

3、在studio 安装flutter 并插件配置flutter sdk

4、运行 flutter doctor

5、根据提示安装插件

6、其他都没有问题 然后就CocoaPods一直提示not initialized 各种操作都没用

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

最后发现本地并没有文件直接从git中下载:

cd ~/.cocoapods/repos

git clone https://mirrors.tuna.tsinghua.edu.cn/git/CocoaPods/Specs.git master

猜你喜欢

转载自blog.csdn.net/weixin_30512027/article/details/102743607