title: Unable to setup Cocoapods, pod setup --verbose command failed
body: <p>I'm trying to install cocoapods on my mac to use for iOS apps. So before finding a cocoapod tutorial, I may have tried to install a cocoapod for an xcode project with <code>pod init</code> and some other random things. I don't think <code>pod init</code> worked but another similar command did something</p>
  
  <p>I then decided it would be a better idea to follow a tutorial from the beginning, so I started with installing cocoapods with the <code>sudo gem install cocoapods</code>, which worked. </p>
  
  <p>However, when I typed <code>pod setup --verbose</code>, terminal threw an error which also happened when I typed <code>pod setup</code></p>
  
  <pre><code>    /Library/Ruby/Gems/2.3.0/gems/cocoapods-1.5.3/lib/cocoapods/command.rb:118:in `git_version': Failed to extract git version from `git --version` ("xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun\n") (RuntimeError)
      from /Library/Ruby/Gems/2.3.0/gems/cocoapods-1.5.3/lib/cocoapods/command.rb:130:in `verify_minimum_git_version!'
      from /Library/Ruby/Gems/2.3.0/gems/cocoapods-1.5.3/lib/cocoapods/command.rb:49:in `run'
      from /Library/Ruby/Gems/2.3.0/gems/cocoapods-1.5.3/bin/pod:55:in `&lt;top (required)&gt;'
      from /usr/local/bin/pod:22:in `load'
      from /usr/local/bin/pod:22:in `&lt;main&gt;'
  </code></pre>
  
  <p>Please help, I can't find any answers on stackoverflow or any other website.</p>