当我尝试在 ios 模拟器中运行 Flutter 应用程序时,它显示此错误。
[!] The version of CocoaPods used to generate the lockfile (1.14.3) is higher than the version of the current executable (1.11.3).
Incompatibility issues may arise.
我尝试过的:我删除了 Podfile.lock 并尝试了
pod install
,但它给出了这个错误
Analyzing dependencies
[!] `GoogleAppMeasurement` requires CocoaPods version `>= 1.12.0`, which is not satisfied by your current version, `1.11.3`.
操作系统:macOS 蒙特利
这对我有用
运行此命令
brew cleanup -d -v
然后运行以下命令
brew install cocoapods