我使用的是MacBook-Pro,由于我也是iOS开发,所以CocoaPods属于必装工具,而且其他的项目一直也是正常运行。
这个项目报错提示是未安装CocoaPods,很明显不对,再搜寻解决办法的时候,看到了有篇文章下面的评论提到了原因,我也这里也是记录下
原因:是Android Studio的问题!
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.
CocoaPods not installed or not in valid state.
Error launching application on iPhone 14 Pro Max.
解决办法:
在终端输入
open /Applications/Android\ Studio.app
然后打开报错项目,就可以正常运行项目了,具体这个open到底操作了什么,我没搞明白,有知道的大佬,还望指点一下!!!Thanks♪(・ω・)ノ