1) Install homebrew via terminal. 2) After homebrew is successfully installed, type in the terminal '$ brew install cocoapods'