Can anyone help to find if cocoaPod is installed in my machine. I was trying to use Google Map in my application. So i was asked to install CocoaPods. Could any one help me explain me the purpose.
Asked
Active
Viewed 5.0k times
3 Answers
77
try to find pod version by running this in terminal
pod --version
If command not found then you didn't installed
To install cocoapods
sudo gem install cocoapods
Reference : https://cocoapods.org

Anshad Rasheed
- 2,526
- 1
- 14
- 32
-
2ERROR: Could not find a valid gem 'cocoapod' (>= 0), here is why: Unable to download data from https://rubygems.org/ - Errno::ETIMEDOUT: Operation timed out - connect(2) (https://rubygems.org/latest_specs.4.8.gz) – ragul ml May 11 '16 at 08:14
-
1If you want to install specific version https://stackoverflow.com/questions/20487849/how-to-downgrade-or-install-an-older-version-of-cocoapods – Rajneesh071 Jan 02 '20 at 05:23
-
19
Solution found: Initially the Cocoapods has to be installed using the command sudo gem install cocoapods
(I had some problem with proxies so it dint work for me initially and i resolved it).
To find if Cocoapods is installed or not run cmd (pod --version). if theresult is (Not Found) Pods is not installed. Please check for the internet connection and their proxies, these things took me huge time.