title: Checking for Errors Running xcodebuild (Command Line) for iOS
body: <p>I'm currently working on a script to build my iOS projects.</p>
  
  <p>I am able to run the archive command using... </p>
  
  <pre><code>xcodebuild -workspace &lt;workspace_name&gt; -scheme &lt;scheme_name&gt; 'archive'
  </code></pre>
  
  <p>But what is the best way to check for errors? If there is a way to do it without parsing the logs, it would be great. However, if parsing the logs is the best way, what's the best string to look for?</p>
  
  <p>I tested for return codes. xcodebuild returns 0 on success, but also when there are build errors.</p>
  
  <p>Thanks in advance!</p>