CocoaPods未安装或未处于有效状态 [英] CocoaPods not installed or not in valid state

查看:95
本文介绍了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无法找到路径或关联的插件或扩展名而导致的.解决方案:

usually this happens due to visual studio or IntelliJ not able to find the path or associated plugin or extension. solution:

  1. sudo gem卸载cocoapodssudo gem install cocoapods
  2. 重新启动IDE或编辑器

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

the last step should solve the issue if not close the project entirely

这篇关于CocoaPods未安装或未处于有效状态的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆