Run this in your project terminal,
sudo gem install cocoapods pod setup
then run this,
cd ios pod install cd ..
Close the editor and reopen and then run your project. I hope this will solve the problem.