Screencast CocoaPods iOS

  • Alvise Susmel
Badge student

Locked Content

A subscription is required for viewing this video. Enroll now to get full access to all Code School courses and content.

Enroll Now Sign in


  1. br911info said

    I receive "command not found" instead. Does Ruby have to be installed first? I am a 2GB Mac OSX 10.6.8

  2. br911info said

    I receive "command not found" instead. Does Ruby have to be installed first? I am a 2GB Mac OSX 10.6.8 Thank you very much for sharing this information!

  3. Faculty

    Alvise Susmel said

    Hi! Mac OS X 10.6.8 doesn't have ruby installed by default, but it's easy to install. You need at first to install "rvm" (ruby version manager), so open the terminal and run:

    "\curl -sSL | bash -s stable"

    Once done you can install ruby using the rvm command:

    rvm install 2.0

    Once ruby 2.0 is installed you can install cocoapods using the details in the screencast:

    gem install cocoapods

    Let me know if it works!


  4. Sergio Barrera said

    Hi! I have 2 Qs. Let's say I have a couple of libraries inside my podFile: AFNetworking and Facebook-iOS-SDK. 1st) How do you manage the library updates? Is it like the Gemfile in Rails, where you specify the version? 2) Once the iOS project is finished do I need to change anything in order to submit my binary to Apple? Since I'm opening the project with the workspace. Thanks Alvise for the tutorial!

  5. Khairul Akmal said

    Hey Alvise, thanks for the screencast! How do I want to update the pods once there's an update. What I meant was, do I just update the Podfile? Thanks once again and stay AWESOME! :)

  6. Faculty

    Alvise Susmel said

    @sergio: 1) yes it's like a Gemfile, so if you want to update the libraries you need to don't specify the versions in the podfile and do a "pod update" 2) You just need to use the workspace. Once you have done, just select your project and archive the application. Let me know if you have troubles but you shouldn't!

  7. Faculty

    Alvise Susmel said

    @khairul: You can use the "pod update" command. Inside the Podfile you do not have to specify the versions. So, in the case of the example in the screencast, just : pod "FPPopover". And run "pod update". CocoaPods will keep the latest version to all the libraries listed.

  8. br911info said

    Alvise! Thank you! The only other command i needed was source "/Users/___mydrive___/.rvm/scripts/rvm" ...the shell responded that and the "rvm install 2.0" but i couldn't get success ...Installing RVM to /Users/mydrive/.rvm/ Adding rvm PATH line to /Users/mydrive/.profile /Users/mydrive/.bashrc /Users/mydrive/.zshrc. Adding rvm loading line to /Users/mydrive/.bash_profile /Users/mydrive/.zlogin. Installation of RVM in /Users/mydrive/.rvm/ is almost complete:

    • To start using RVM you need to run source /Users/mydrive/.rvm/scripts/rvm in all your open shell windows, in rare cases you need to reopen all shell windows.



    Thank you for using RVM!

    We sincerely hope that RVM helps to make your life easier and more enjoyable!!!


    ~Wayne, Michal & team.

    In case of problems: and MyMacName:~ mydrive$ rvm install 2.0 -bash: rvm: command not found MyMacName:~ mydrive$ source /Users/mydrive/.rvm/scripts/rvm MyMacName:~ mydrive$ rvm install 2.0 Searching for binary rubies, this might take some time. No binary rubies available for: osx/10.6/i386/ruby-2.0.0-p451. Continuing with compilation. Please read 'rvm help mount' to get more information on binary rubies. Checking requirements for osx. Can not find compiler and 'make' tool - make sure Xcode and/or Command Line Tools are installed. Requirements installation failed with status: 11. MyMacName:~ mydrive$ $ sudo gem install cocoapods -bash: $: command not found MyMacName:~ mydrive$ gem install cocoapods WARNING: Installing to ~/.gem since /Library/Ruby/Gems/1.8 and /usr/bin aren't both writable. WARNING: You don't have /Users/mydrive/.gem/ruby/1.8/bin in your PATH, gem executables will not run. ERROR: Error installing cocoapods: cocoapods-core requires activesupport (>= 3.2.15, < 4, runtime) MyMacName:~ mydrive$

  9. Faculty

    Alvise Susmel said

    @br911info: you don't have the gcc compiler, just install this and retry to install ruby

  10. Sammy said

    Do you use CocoaPods to update to iOS 7.1?

  11. Faculty

    Alvise Susmel said

    @sammy: what do you mean exactly ?

  12. Joon said

    CocoaPods tries to do what Bundler does for Ruby. The problem is, Cocoa/Obj-C does not work like Ruby. If you make any changes to code in the pods (and you shouldn't!), it's almost impossible to update. Another issue is that if any of dependent library causes issues, fixing them will eat up your time. CocoaPods is a great tool, but you just need to understand that there are caveats.

  13. Abner said

    Great post!

  14. danielng01 said


You need to be an enrolled student in order to view this video and subscribe.

Enroll Now