title: Building using Jenkins and CocoaPods - 'Update CocoaPods' marked build as failure
body: <p>I'm working on a Unity game that's to be exported as an iOS project and built with Xcode. We've got an existing Jenkins setup that does the job for me at a click of a button, but recently I've been asked to add WebTrends to my project.</p>
  
  <p>The manual process for that is as follows:</p>
  
  <ul>
  <li>Copy over a podfile, a pre-made webtrends.plist file, and the pods folder (so I don't have to download that over again).</li>
  <li>Do a <code>pod install</code> on the project directory.</li>
  <li>Open xcworkspace file and build as normal.</li>
  </ul>
  
  <p>So I went to Jenkins Plugin Manager, and installed (without restarting) CocoaPods Jenkins Integration. This, however, unhelpfully added a Build Step called Update CocoaPods. Upon adding that to my Build Steps and running it, it resulted in the following:</p>
  
  <pre><code>[workspace] $ pod repo update
  Build step 'Update CocoaPods' marked build as failure
  Archiving artifacts
  Finished: FAILURE
  </code></pre>
  
  <p>The documentation wasn't very helpful either, only saying that, currently, this has no advantage over running an execute shell script. So I did just that, and added a <code>pod install</code> to the Build Step, which resulted in the following:</p>
  
  <pre><code>/Users/Shared/Jenkins/tmp/afesefgwedc.sh: line 26: pod: command not found
  Build step 'Execute shell' marked build as failure
  Archiving artifacts
  Finished: FAILURE
  </code></pre>
  
  <p>So clearly pod was not installed. I don't have the credentials or the rights to install it myself, I would have thought installing CocoaPods via Jenkins would have done it. And even if I did, there's that previous error to contend with. I could try to reboot the server, but that's a last resort.</p>
  
  <p>Has anyone successfully integrated pods with Jenkins? What else could I try, or what else did I miss?</p>
  
  <p>I'm quite new at Jenkins, so I apologize in advance if this seems lacking. I would be happy to provide other information if requested.</p>