After updating to El Capitan I stumbled upon an serious issue. I couldn’t update pods on my projects. Pod command could not be found. I had find a way to re-install cocoapods.
Simple solution. Go to terminal and run the following command
sudo gem install -n /usr/local/bin cocoapods
Original command gem install
sudo gem install cocoapods was not working cause of writing permissions.