title: Unity PostProcess Build script fails when running from command line
body: <p>I am trying to build my project from the command line targeting iOS.
  When I build this from the editor, everything works! I have a PostProcess build script that I use.</p>
  
  <p>When I try to build form the command line using the following command:
  <strong>/Applications/Unity/Unity.app/Contents/MacOS/Unity -quit -batchmode -executeMethod BuildScript.BuildIOS -nographics -buildTarget iOS</strong></p>
  
  <p>I am getting an error from my PostProcess build script saying:
  <strong>Assets/Editor/MyBuildPostprocessor.cs(9,23): error CS0234: The type or namespace name <code>Xcode' does not exist in the namespace</code>UnityEditor.iOS'. Are you missing an assembly reference?</strong></p>
  
  <p>The line that generates the error is a simple using clause:</p>
  
  <pre><code>using UnityEditor.iOS.Xcode;
  </code></pre>
  
  <p>So it seems that for some reason, the command line build mechanism does not recognise the UnityEditor.iOS.Xcode assembly, and my PostProcess build script cannot run.</p>
  
  <p>Any ideas?</p>