'`GoogleAppMeasurement` requires CocoaPods version `>= 1.10.2`, which is not satisfied by your current version, `1.10.1`

While installing pods getting error - GoogleAppMeasurement requires CocoaPods version >= 1.10.2, which is not satisfied by your current version, 1.10.1...Tried other commands like brew cleanup -d -v,brew link cocoapods, brew install cocoapods but not solving problem..



Solution 1:[1]

You need to update cocoaPods. Your version is currently not supported by what you want to use.Try sudo gem install cocoapods

Solution 2:[2]

For me this solution of @Marijn was not enough. I solved finally updating the ruby version on my MacOS

Check the version of Ruby installed on your Mac

ruby -v

Install the Ruby Version Manager rvm

curl -L https://get.rvm.io | bash -s stable

Once this command has finished running you need to restart your terminal for rvm to be recognised.

Install the latest version of Ruby

rvm install ruby --latest

Install cocoapods

sudo gem install cocoapods

then setup and install all dependencies again

pod setup
pod install

Solution 3:[3]

1.> sudo gem install cocoapods

2.> xcrun simctl erase all

Run 1 and 2 commands in same sequence worked for me.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Marijn Kneppers
Solution 2 Cristian Zumelzu
Solution 3 heyom