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