Practical Cocoapods
@MicheleTitolo
Objective-C Library
Dependency Manager
Specify Dependencies
Specify Versions
Dependency Resolution
Private Pods
Yes, this is a thing
Theory
You can add a .podspec
to anything
Any remote can be a pod
2 options
Your own Spec repo
└── [SPEC_NAME]
└── [VERSION]
└── [SPEC_NAME].podspec
$ pod repo add NAME SOURCE_URL
$ cd ~/.cocoapods/NAME
$ pod repo lint .
Don’t need a private fork of
CocoaPods/Specs
Any code, anywhere
Specify any remote
that has a .podspec
pod ‘BananaLib’, :git=>git@github.com/…
Podspecs should be in the root
folder of the repository
Specify a .podspec
pod ‘BananaLib’, :podspec => ‘https://…’
Specify a path
pod ‘BananaLib’, :path => ‘~/Projects/…’
Modular Code
Smaller dependencies
Independent pieces
Decouple
More dependencies
“Dependencies are bad!”
Choosing dependencies
Commits
Stars, Watchers, and Forks
Open : Closed Issues
Pull Requests
Look at the code
In Summary
Thank You
@MicheleTitolo