First, in the Podfile, replace the https://github.com/CocoaPods/Specs "source with" source " https://github.com/CocoaPods/Old-Specs "
Navigate to the root folder of the workspace using the following command:
cd <path to your workspace> Pod install
If this does not work, try the following steps after completing the following steps.
In the terminal, do the following:
gem list --local | grep cocoapods
You see a result similar to this:
cocoapods (0.27.1, 0.20.2) cocoapods-core (0.27.1, 0.20.2) cocoapods-downloader (0.2.0, 0.1.2)
now for the safer side, remove all local modules using the following command:
sudo gem uninstall cocoapods sudo gem uninstall cocoapods-core sudo gem uninstall cocoapods-downloader
safe side cocoa pods removal version 0.39.0
sudo gem uninstall cocoapods -v 0.39.0
reinstall cocoa pods version 0.39.0
sudo gem install cocoapods -v 0.39.0
Then run the commands in the terminal:
cd <path to your workspace> pod install (this time it would fail again, but that fine) cd ~/.cocoapods/repos git clone https://github.com/CocoaPods/Specs.git cd specs git checkout v0.32.1
Navigate to the root folder of the workspace using the following command:
cd <path to your workspace>
run the commands below:
rm -rf Pods rm -rf Podfile.lock pod install (this time you should be able to see it working)