首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
MCP广场
社区首页 >问答首页 >CocoaPods未安装或未处于有效状态

CocoaPods未安装或未处于有效状态
EN

Stack Overflow用户
提问于 2020-06-26 19:39:21
回答 31查看 41.6K关注 0票数 57
代码语言:javascript
运行
复制
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.
EN

回答 31

Stack Overflow用户

发布于 2020-09-22 23:13:51

通常,这是由于visual studio或IntelliJ无法找到路径或关联的插件或扩展而导致的。

以下是解决方案:

cocoapods

  • restart
  1. sudo gem卸载cocoapods && sudo gem安装

或编辑器

如果没有完全关闭项目,最后一步应该可以解决问题。

票数 58
EN

Stack Overflow用户

发布于 2020-07-13 15:55:11

这个问题可能是因为您安装了cocoapods的多个版本。

您可以运行以下命令来检查和解决该问题:

  • gem list检查多个版本的cocoapod是否为installed
  • sudo gem uninstall cocoapods它将提示您选择要卸载的版本,或者是否要卸载all
  • sudo gem install cocoapods

如果您卸载了所有cocoapods,则需要执行其他步骤

切换到Flutter project

  • pod install

  • iOS目录

这样就可以在iOS设备上运行xcode构建了。

票数 18
EN

Stack Overflow用户

发布于 2020-09-20 19:09:42

在可视化代码上重新安装flutter扩展已修复此问题

票数 16
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/62593939

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档