Skip to content

Setting up for development on CocoaPods

yas375 edited this page Mar 19, 2012 · 27 revisions
  1. Create a clone of the CocoaPods source and update the git submodules that are used in the integration spec.

     $ git clone git://github.com/CocoaPods/CocoaPods.git
     $ cd CocoaPods
     $ git submodule update --init
    
  2. Install the dependencies.

    If you are using RVM:

     $ echo "rvm use --create ruby-1.9.3-p125@cocoapods" > .rvmrc
     $ echo ".rvmrc" >> .git/info/exclude
     $ cd .. && cd -   # to reload rvm config. follow rvm instructions
     $ gem install bundler # if it's not already installed into global gemset for selected ruby version
     $ bundle install
    

    Otherwise:

     $ sudo gem install bundler
     $ bundle install
    
  3. Verify that all specs pass and all examples build. (See rake -T for other tasks.)

     $ rake spec
     $ rake examples:build
    
  4. Start kicker, which will run the specs relevant to the files you update.

     $ kicker -c
    
  5. Create your patch, verify all specs still pass and examples still build, and create a pull request.