If you like my tutorials, you will love my book . It is chockful of advanced programming techniques and the only comprehensive barcode reference for serious iOS developers.
Our DNA is written in Objective-C

Updating CocoaPods

CocoaPods is being under constant development, and as the zero as major version number suggests, it is still in unstable status. So you should only be mildly surprised if calling the pod command outputs that a newer version is available. Here are some tricks for updating.

So when do for example following a pod repo update command:

CocoaPods Update Available

You can check your current version:

pod --version

Since CocoaPods is a ruby gem you can update it, and all other installed gems, just by:

sudo gem update

There will probably lots of loading and installing, but at the end you should see:

Fetching: cocoapods-core-0.28.0.gem (100%)
Successfully installed cocoapods-core-0.28.0
Fetching: cocoapods-0.28.0.gem (100%)


## 0.28.0
• [CocoaPods-core](
• [CLAide](

In general this is all it should take. Users on Mavericks might need something extra in case they see errors coming out of the above or gem update refusing to update anything.

On OS X 10.9 you might have to install the Xcode command line developer tools, those are a prerequisite for the whole Ruby shebang to work.

The fastest method to install them, thanks to yanzv for pointing this out.

xcode-select --install

Installing Command Line Developer Tools

Curiously I didn’t need this on my iMac, but I did on my MacBook Air. Both are running Mavericks.

Categories: Q&A

%d bloggers like this: