Try sudo xcode-select -r
If this does not help, let me know
it helps me
'pod --version' returned 0.37.2 (even after updating cocoa pods to 0.38.2) it would update but still for some reason use 0.37.2 for all pod commands So what I did: 1) run 'pod --verbose' to locate the 0.37.2, delete it manually 2) run 'gem list --local | grep cocoapods' to find all cocoa pods installed on machine 2.1) 'gem uninstall' everything returned by step2 2.2) run 'gem list --local | grep cocoapods' just to make sure everything is deleted 3) '[sudo] gem uninstall cocoapods' 4) '[sudo] gem install cocoapods'
Or try updating home-brew if you installed pod via brew before
source share