$30 off During Our Annual Pro Sale. View Details »

Introduction to Cocoapods

Introduction to Cocoapods

A talk about Cocoapods and how we can go faster with using it.

I gave this talk to the "The Mobile Company" (http://themobilecompany.com/) developers on May 22th, 2013.

Javi Lorbada

May 22, 2013
Tweet

More Decks by Javi Lorbada

Other Decks in Programming

Transcript

  1. 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 :)
  2. 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.
  3. 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?
  4. 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?
  5. 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?
  6. 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?
  7. 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!
  8. Javi%Lorbada Install CocoaPods. $"[sudo]"gem"install"cocoapods $"pod"setup Configure for TMC Pods. $"pod"repo"add"<repo5name>"<private5repo5url>

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

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

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

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

    Create our Podfile. $"cd"/../../<Project> $"vim"Podfile Install dependencies. $"pod"install Open workspace and"enjoy! Demo
  13. Javi%Lorbada Sources • Cocoapods • Using CocoaPods for in-house components

    • Getting Started With CocoaPods • Advanced dependencies with CocoaPods • Streamlining Cocoa Development With CocoaPods