37

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.

ragul ml
  • 703
  • 2
  • 7
  • 18

3 Answers3

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
  • 2
    ERROR: 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
  • 1
    If 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
  • When I run pod --version, I get bad interpreter – Bradley Thomas Dec 06 '21 at 18:11
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.

Roberto
  • 11,557
  • 16
  • 54
  • 68
ragul ml
  • 703
  • 2
  • 7
  • 18
0

Enter this line and see if you get error:

 pod search realm
Lumialxk
  • 6,239
  • 6
  • 24
  • 47