title: Xcode build step to verify if Cocoapods are up to date
body: <p>I have an iOS project that is already set up with Cocoapods. I use a bunch of libraries, but sometimes I add/remove/update libraries between different branches and forget to run <code>pod update</code> in the terminal to make sure I have all the correct pods for the branch I'm working on.</p>
  
  <p>What I'm trying to set up a build step in my project (iOS 7, Xcode 5) that performs the following actions:</p>
  
  <ol>
  <li>Check if the Pods are currently up to date, i.e. determine the need to run <code>pod update</code>.</li>
  <li>If the Pods are up to date, do nothing.</li>
  <li>If the Pods are NOT up to date, run <code>pod update</code>/<code>pod install</code></li>
  </ol>
  
  <p>I'm looked through the documentation in the <a href="http://docs.cocoapods.org/" rel="nofollow">Cocoapods</a> website and couldn't find the solution to my problem.</p>
  
  <p>Any pointers are appreciated!</p>
  
  <p>Cheers,
  Mário</p>