While installing cocoapods with Home-brew, its just installs older version (1.5.2), while the latest version of cocoapods is 1.11.3.Please help me out guys.its been two days I am struggling with cocoapods updation.
brew update && brew upgrade
Will update all packages and HomeBrew itself