通过IntelliJ IDEA在mac执行Flutter项目出现错误

来源:4-6 手把手带你在macOS电脑上搭建Flutter开发环境

niume

2023-07-18

使用的是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.

CocoaPods not installed or not in valid state.
Error launching application on iPhone 14 Pro.

写回答

1回答

CrazyCodeBoy

2023-07-19

从log上看是CocoaPods没有安装,可以通过flutter doctor检查下看是否有安装CocoaPods,没有的话需要安装下
https://blog.csdn.net/haoxuhong/article/details/114975505
0
0

ChatGPT + Flutter快速开发多端聊天机器人App

ChatGPT + Flutter快速开发多端聊天机器人App

343 学习 · 90 问题

查看课程