General Middleware

Setup Cocoa Pods for IOS Apps

Cocoa Pods is a platform that provides a seamless method to install, update and uninstall external modules required in your App. There are few basic steps to follow to setup the environment in order to use the Pods

  1. Navigate to your projects directory in the Terminal
  2. Initiate the Pod Environment
pod init

3. A file called Podfile will be created.

4. Insert the Pods you want to install as part of your project

# Uncomment the next line to define a global platform for your project
# platform :ios, '9.0'

target 'Sliding Images' do
  # Comment the next line if you don't want to use dynamic frameworks
  use_frameworks!

  # Pods for Sliding Images

pod 'ImageSlideshow', '~> 1.9.0'

end

Note : The text in bold in the above Podfile is the one that represents your new pod to install. Feel free to add as many pods as needed, one after the other.

5. Install the Pods

pod install

This will install all the Pods mentioned in the Podfile

6. Once installation is done, you can use the modules in your Application.

Important Note : Once installation and setup is done, you need to use the <project_name>.xcworkspace file to open the project, otherwise, the modules will not be found.

One thought on “Setup Cocoa Pods for IOS Apps

Leave a Reply

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