ios - CocoaPods 未安装或未处于有效状态
问题描述
Launching lib/main.dart on iPhone 11 Pro Max in debug mode...
Warning: CocoaPods is installed but broken. Skipping pod install.
You appear to have CocoaPods installed but it is not working.
This can happen if the version of Ruby that CocoaPods was installed with is different from the one being used to invoke it.
This can usually be fixed by re-installing CocoaPods. For more info, see https://github.com/flutter/flutter/issues/14293.
To re-install:
sudo gem install cocoapods
CocoaPods not installed or not in valid state.
Error launching application on iPhone 11 Pro Max.
解决方案
这通常是由于 Visual Studio 或 IntelliJ 无法找到路径或关联的插件或扩展而发生的。
这是解决方案:
- sudo gem 卸载 cocoapods && sudo gem 安装 cocoapods
- 重新启动 IDE 或编辑器
如果不完全关闭项目,最后一步应该可以解决问题
推荐阅读
- reactjs - Devextreme react datagrid Sorting最大调用堆栈大小超出extend.js
- kubernetes - 入场 webhook 创建连接被拒绝错误 Minikube
- python-3.x - 为语料库中的某些文档分配更多权重 - LDA - Gensim
- openrefine - Openrefine - 由第二个或第三个候选人协调
- java - 触摸输入和带有 JavaFX 11 的 OpenJDK 11 的问题
- c# - 我应该使用什么样的数据库来跟踪模型铁路的操作?
- sql - 将 Access SQL 重建为 Oracle SQL 时找不到语法错误 - SQL 命令未正确结束
- javascript - 用户不活动或非常活跃时的 jQuery 事件
- android - 完成所有活动,作为单个实例开始一个新活动
- php - 如何在 PHP 中编写 OOP