【发布时间】:2020-10-17 00:11:37
【问题描述】:
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.
【问题讨论】:
-
您是否尝试过从错误消息
sudo gem install cocoapods运行命令 -
尝试相同的命令 sudo gem install cocoapods 仍然有同样的问题,
-
flutter doctor 您似乎安装了 CocoaPods,但它无法正常工作。如果安装 CocoaPods 的 Ruby 版本与用于调用它的版本不同,就会发生这种情况。