title: Ionic CLI Build Error
body: <p>I've been able to successfully using the Ionic CLI to build my iOS packages in the past, but I have a set of errors that I can't get rid of. The archive is succeeding, but I'm still having a few issues.</p>
  
  <p>1) Even if I'm using the <code>ionic build ios</code> command, it's creating an archive package and not the build package.</p>
  
  <p>2) I'm getting some IDEDistribution errors:</p>
  
  <pre><code>** ARCHIVE SUCCEEDED **
  
  Non-system Ruby in use. This may cause packaging to fail.
  If you use RVM, please run `rvm use system`.
  If you use chruby, please run `chruby system`.
  
  2017-03-15 10:00:54.132 xcodebuild[11254:474630] [MT] IDEDistribution: -[IDEDistributionLogging _createLoggingBundleAtPath:]: Created bundle at path '/var/folders/v9/dqmqkj455rjbmq4n9gg4dc4m0000gn/T/ExampleSQLite_2017-03-15_10-00-54.131.xcdistributionlogs'.
  
  1.2.840.113635.100.1.61
  
  Exported ExampleSQLite.xcarchive to: /Applications/XAMPP/xamppfiles/htdocs/dev/_ionic/ExampleSQLite/platforms/ios/build/device
  
  ** EXPORT SUCCEEDED **
  </code></pre>
  
  <p>This error occurs even after I've run the <code>rvm use system</code> command.</p>
  
  <p>Is the archive setting something in XCode settings? If I try <code>ionic build android</code> it builds properly (meaning it doesn't archive, I get a <code>BUILD SUCCEEDED</code> message).</p>
  
  <p>For reference, here is my system info:
  Your system information:</p>
  
  <pre><code>Cordova CLI: 6.5.0 
  Ionic Framework Version: 2.2.0
  Ionic CLI Version: 2.2.1
  Ionic App Lib Version: 2.2.0
  Ionic App Scripts Version: 1.1.4
  ios-deploy version: 1.9.1 
  ios-sim version: 5.0.4 
  OS: macOS Sierra
  Node Version: v7.5.0
  Xcode version: Xcode 8.2.1 Build version 8C1002
  </code></pre>
  
  <p>I've tried uninstalling and reinstalling XCode with no change.</p>