Sign up with your email address to be the first to know about new products, VIP offers, blog features & more.

CocoaPods and PodFiles in 3 minutes

In this post
  1. Understanding CocoaPods
  2. Installing CocoaPods
    • Installing
    • Configuring
  3. Generating a PodFile
  4. CocoaPods Basic CheatSheet
  5. 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/

No Comments Yet.

What do you think?

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