Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to find if cocoaPods is installed in my mac

Tags:

ios

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.

like image 229
ragul ml Avatar asked May 11 '16 06:05

ragul ml


People also ask

What is CocoaPods in Mac?

CocoaPods manages library dependencies for your Xcode projects. The dependencies for your projects are specified in a single text file called a Podfile. CocoaPods will resolve dependencies between libraries, fetch the resulting source code, then link it together in an Xcode workspace to build your project.


2 Answers

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

like image 133
Anshad Rasheed Avatar answered Sep 23 '22 11:09

Anshad Rasheed


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.

like image 40
ragul ml Avatar answered Sep 22 '22 11:09

ragul ml