How to install Cocoapods for Objective-C/Swift development on Mac OS?

by | 11 Feb 2017 | Apple, iOS, Mobile Phones, Objective-C, Programming, Swift, Technology | 0 comments

Steps to install Cocoapods

Cocoapods is used in Xcode IDE for development from iOS apps using Objective-C/Swift. Cocoapods helps developers add external libraries to their iOS project easily. The following tutorial guides you on the steps to install Cocoapods on your Mac in order to make use of its features.

Step 1

mkdir -p $HOME/Software/ruby

Step 2

export GEM_HOME=$HOME/Software/ruby

Step 3

gem install cocoapods

You should see the message “1 gem installed“.

Step 4

export PATH=$PATH:$HOME/Software/ruby/bin

You should be done if you never encounter any errors along the way.

(Optional) Step 5

pod --version

Running the above command will show you your current pod version.

That’s it!

0 Comments

Submit a Comment

Your email address will not be published. Required fields are marked *

Related Posts

Amazon Web Services (AWS)ApacheCentOSDatabaseLinuxMySQLOSProgrammingServerTechnology
8 Simple Steps to Setup a Web Server with Apache Virtual Hosts & MySQL in Centos

8 Simple Steps to Setup a Web Server with Apache Virtual Hosts & MySQL in Centos

This tutorial will be guiding you in setting up a web server with pre-installed Centos. In summary, you will be installing Apache and MySQL, and learning how to configure virtual hosts in Apache. Note: before proceeding with this tutorial. Make sure you figure out...

AndroidAndroidAppleiOSJavaMobile PhonesObjective-CProgramming
iPhone Camera
Complete overview of the mobile app development process (Infographic)

Complete overview of the mobile app development process (Infographic)

Clients always have the misperception that developing a mobile app is as easy as developing a mobile application would be a walk in a park without much effort involved. The following infographic pretty much sums up the total cost and effort for mobile app...