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