I was trying to update the existing pods with the pod install command, but it takes forever to run.
pod install
The verbose mode shows it was stuck at the following
I ran into the same problem, and I solved it by running the following commands which is given here
pod repo remove master pod setup pod install