In this post I will show how to Install Cocoa Pods for Xcode projects. Cocoa Pods is a dependency manager for Swift and Objective-C Cocoa projects.
Installation
When you install XCode, you also get the gem
(RubyGems, the Ruby package manager). This command allows you to install Cocoa Pods for Xcode, without any extra configuration. Execute the following command
sudo gem install cocoapods
After fetching a list of dependency packages, you can use cocoa pods calling the command pod
. However, each command must be executed in the root folder of your Xcode project:
pod init
: To create an empty initialPodFile
in your Xcode project folder.pod install
: To install packages defined in thePodFile
Continue reading “Install Cocoa Pods for XCode projects”