pod install in xcode code example Example 1: how to install pod $ sudo gem install cocoapods Example 2: open podfile in xcode from terminal $ open -a XCode Podfile