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

Viewed 6387

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..

3 Answers

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

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

1.> sudo gem install cocoapods

2.> xcrun simctl erase all

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

Related