Tuesday, December 23, 2014

Cocoapods


Installing/Updating Cocoapods on MacOSX:
=======================================
$sudo gem install cocoapods

$sudo gem update --system



Using Cocoapods:
================
1. Create a 'Podfile' and store in xcode project root folder
2. Write pod '{pod_module}' in the created Podfile.
3. Then from the Terminal command line execute the file as
    $pod install
4. The above command will create an ProjectName.xworkspace file. Use that file instead of ProjectName.xcodeproj file.


  
Contents of Podfile:
====================
source 'https://github.com/CocoaPods/Specs.git'
platform :ios, '8.0'

pod 'AFNetworking', '~> 2.0'
pod 'ARAnalytics', '~> 2.7'


#import <Reachability/Reachability.h>

No comments: