Slide 1

Slide 1 text

Javi%Lorbada CocoaPods

Slide 2

Slide 2 text

Javi%Lorbada CocoaPods is an easy-to-use dependency management tool for iOS and OS X development. Instead of downloading some code from GitHub, or even our own libraries and copying them to our projects (and thus making future updates a pain), we can let CocoaPods do it all for us! What’s CocoaPods? According their website cocoapods is: “The best way to manage library dependencies in Objective-C projects.” and, so far, at least at the present time the advertising is true :)

Slide 3

Slide 3 text

Javi%Lorbada Make our life easier Save time Automate everything Consistent Workspaces Easy updates Dependency resolution Huge community Docs for free Why CocoaPods? Working with third party libraries in an Xcode project isn’t always easy and it can often be a pain, especially when integrating non-ARC libraries in an ARC-enabled project.

Slide 4

Slide 4 text

Javi%Lorbada Pod Specifies a dependency of the project, represents a library. Podfile The Podfile is a specification that describes the dependencies of the targets of one or more Xcode. projects. Podspec Is the specs of the pods, our library. Podfile.lock The lock versions of our pods. How CocoaPods works?

Slide 5

Slide 5 text

Javi%Lorbada Pod Specifies a dependency of the project, represents a library. Podfile The Podfile is a specification that describes the dependencies of the targets of one or more Xcode. projects. Podspec Is the specs of the pods, our library. Podfile.lock The lock versions of our pods. How CocoaPods works?

Slide 6

Slide 6 text

Javi%Lorbada Pod Specifies a dependency of the project, represents a library. Podfile The Podfile is a specification that describes the dependencies of the targets of one or more Xcode. projects. Podspec Is the specs of the pods, our library. Podfile.lock The lock versions of our pods. How CocoaPods works?

Slide 7

Slide 7 text

Javi%Lorbada Pod Specifies a dependency of the project, represents a library. Podfile The Podfile is a specification that describes the dependencies of the targets of one or more Xcode. projects. Podspec Is the specs of the pods, our library. Podfile.lock The lock versions of our pods. How CocoaPods works?

Slide 8

Slide 8 text

Javi%Lorbada How to start with CocoaPods? Create Xcode project Install CocoaPods Configure for your private Pods Create our Podfile Install dependencies (Pods) Open Workspace and enjoy!

Slide 9

Slide 9 text

Javi%Lorbada Create Xcode Project

Slide 10

Slide 10 text

Javi%Lorbada Install CocoaPods. $"[sudo]"gem"install"cocoapods $"pod"setup Configure for TMC Pods. $"pod"repo"add"" Create our Podfile. $"cd"/../../ $"vim"Podfile Install dependencies. $"pod"install Open workspace and"enjoy! Demo

Slide 11

Slide 11 text

Javi%Lorbada Install CocoaPods. $"[sudo]"gem"install"cocoapods $"pod"setup Configure for TMC Pods. $"pod"repo"add"" Create our Podfile. $"cd"/../../ $"vim"Podfile Install dependencies. $"pod"install Open workspace and"enjoy! Demo

Slide 12

Slide 12 text

Javi%Lorbada Install CocoaPods. $"[sudo]"gem"install"cocoapods $"pod"setup Configure for TMC Pods. $"pod"repo"add"" Create our Podfile. $"cd"/../../ $"vim"Podfile Install dependencies. $"pod"install Open workspace and"enjoy! Demo

Slide 13

Slide 13 text

Javi%Lorbada Install CocoaPods. $"[sudo]"gem"install"cocoapods $"pod"setup Configure for TMC Pods. $"pod"repo"add"" Create our Podfile. $"cd"/../../ $"vim"Podfile Install dependencies. $"pod"install Open workspace and"enjoy! Demo

Slide 14

Slide 14 text

Javi%Lorbada Install CocoaPods. $"[sudo]"gem"install"cocoapods $"pod"setup Configure for TMC Pods. $"pod"repo"add"" Create our Podfile. $"cd"/../../ $"vim"Podfile Install dependencies. $"pod"install Open workspace and"enjoy! Demo

Slide 15

Slide 15 text

Javi%Lorbada Questions?

Slide 16

Slide 16 text

Javi%Lorbada Sources • Cocoapods • Using CocoaPods for in-house components • Getting Started With CocoaPods • Advanced dependencies with CocoaPods • Streamlining Cocoa Development With CocoaPods

Slide 17

Slide 17 text

Thank you!! Javi%Lorbada javilorbada.me