Table of Contents
In this post
- Understanding CocoaPods
- Installing CocoaPods
- Installing
- Configuring
- Generating a PodFile
- CocoaPods Basic CheatSheet
- References
1. Understanding Cocoa Pods (PodFiles)
Every project uses external libraries, these libraries are called dependencies. Management of these dependencies are time consuming, so there should be better ways to manage that! This is where CocoaPods comes into the game.
“CocoaPods is a dependency manager for Swift and Objective-C Cocoa projects. It has over 22 thousand libraries and is used in over 1 million apps. CocoaPods can help you scale your projects elegantly.”
….
4. CocoaPods Basic CheatSheet
$ sudo gem install cocoapods //install cocoapods
platform :ios, '8.0' use_frameworks! target 'MyApp' do pod 'AFNetworking', '~> 2.6' pod 'ORStackView', '~> 3.0' pod 'SwiftyJSON', '~> 2.3' end
$pod install //install dependencies for the project
$open App.xcworkspace //open the project with dependencies
#import SomeLibrary //start using the libraries in your project
5. References
https://cocoapods.org/
What do you think?