install pod in mac code example Example 1: how to install pod $ sudo gem install cocoapods Example 2: mac show cocoapods version pod --version