"`pod repo update` does not happen" error in CocoaPods

The only way worked for me

pod repo update
pod update
cd ../
flutter run

You might have a broken Specs repository. Cocoapods suggest you delete your local copies and reclone. Try:

$ sudo rm -fr ~/.cocoapods/repos/master

And then:

$ pod setup

I'd also recommend running:

sudo rm -fr ~/Library/Caches/CocoaPods/

before you run pod setup to clear the cache.

Here's their link: http://blog.cocoapods.org/Repairing-Our-Broken-Specs-Repository/


Doing the following cleared my issue.

pod repo remove master
pod setup
pod install