flutter 运行iOS项目报错解决方式

Warning: CocoaPods not installed. Skipping pod install.
  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 install see https://guides.cocoapods.org/using/getting-started.html#installation for instructions.

Exception: CocoaPods not installed or not in valid state.

出现上面问题是我点击Android studio 上面面的运行按钮报错。使用命令或者使用vscode 不会出现这个问题,重启电脑,重启Adored studio 都无济于事,最后使用终端执行下面命令 再次点几运行按钮可以正常运行

cd ~/
open /Applications/Android\ Studio.app

有知道这是为什么的吗?

你可能感兴趣的:(flutter 运行iOS项目报错解决方式)