Two Step to install cocoa pod into your project
A. Step to install cocoa pods in your system
1. Update RubyGems
sudo gem update --system (on terminal)
2. Enter your password when requested.
3. Install CocoaPods
sudo gem install cocoapods (on terminal)
4 . Lastly, enter this command in Terminal to complete the setup of CocoaPods:
pod setup (on terminal)
B.Installing SDK in your project
1. Open Terminal and navigate to the directory containing your project by using the cd command:
e.g. cd ~/Path/To/Folder/Containing/Project (on terminal)
2. Next, pod init (on terminal)
3. Open pod file by open -a Xcode Podfile (on terminal)
4. Finally add your first dependency using CocoaPods in pod file
e.g. pod 'AFNetworking', ‘2.5.0’
5. Save and closed the pod file and run
pod install command on terminal
#xcode #happycoding #iOS #iPhone #iPad #GirijeshBlog
1 comment:
Thanks for this knowledgeable blog!
Post a Comment