title: Appcelerator liveview build fails for "development" deployment with appc CLI
body: <p>I'm using the latest tooling (as below) to build my project with the command</p>
  
  <pre><code>appc ti build -p ios -T device -D development --liveview
  </code></pre>
  
  <p>All generally works as expected until I quit the liveview session and attempt to build with the same command again.</p>
  
  <p>Failed Output:</p>
  
  <pre><code>[INFO]  App thinning disabled, skipping asset image sets
  [INFO]  Processing JavaScript files
  An uncaught exception was thrown!
  ENOTDIR: not a directory, open '/Users/gb/Documents/Work/Project/workspaces/appcelerator/Project/build/iphone/build/Products/Debug-iphoneos/Project.app/project/controller.js'
  ENOTDIR: not a directory, open '/Users/gb/Documents/Work/Project/workspaces/appcelerator/Project/build/iphone/build/Products/Debug-iphoneos/Project.app/project/controller.js'
  </code></pre>
  
  <p>If I then attempt to build again I get this output...</p>
  
  <pre><code>[INFO]  Processing JavaScript files
  [INFO]  Writing app properties
  [INFO]  Writing i18n files
  [INFO]  Processing Titanium symbols
  [INFO]  Removing files
  [INFO]  Optimizing .plist and .png files
  [INFO]  Invoking xcodebuild
  [ERROR] ** BUILD FAILED **
  [ERROR] The following build commands failed:
  [ERROR]         GenerateDSYMFile build/Products/Debug-iphoneos/Project.app.dSYM build/Products/Debug-iphoneos/Project.app/Project
  [ERROR] (1 failure)
  </code></pre>
  
  <p>This output will be the same on each subsequent attempt to build</p>
  
  <p>By chance, I found that if I reboot my machine I can build again, so I attempted all sorts of workarounds (cleaning build folders, derived data in xcode, restarting appc studio, building in studio....) to no avail, but eventually found a best case undesirable workaround to this issue in the form of:</p>
  
  <pre><code>appc logout
  appc login 
  </code></pre>
  
  <p>If I then attempt to build again it will succeed!</p>
  
  <p>I can only assume therefore that the build issue has something to do with perhaps cached files associated with my dev cert as I understand this is regenerated on each login logout...  <strong>Appc folks - any ideas?</strong></p>
  
  <p>The tooling seems to have become terribly unreliable over the last number of releases and needs some attention from the folks at Appcelerator IMO.  Liveview is meant to speedup development time and it's great when it works (still probably lagging behind the awesome TiShadow of old), however in this instance it is breaking  the build process and sucking up endless hours with indeterminate build behaviour.  <strong>Am I doing something wrong???</strong></p>
  
  <p>Has anyone else discovered a better workaround or <strong>is this a known issue?</strong></p>
  
  <p>For reference, if I've built as above for development and then try to build for a "test" deployment with the command </p>
  
  <pre><code>appc ti build -p ios -T device -D test --liveview
  </code></pre>
  
  <p>I get the error (even after logging in and out and cleaning the project with <em>appc ti clean</em>)</p>
  
  <pre><code>[INFO] :   Invoking xcodebuild
  [ERROR] :  ** BUILD FAILED **
  [ERROR] :  The following build commands failed:
  [ERROR] :   CompileC build/Intermediates/Project.build/Debug-iphoneos/Project.build/Objects-normal/armv7/TiUIiOSProxy.o Classes/TiUIiOSProxy.m normal armv7 objective-c com.apple.compilers.llvm.clang.1_0.compiler
  [ERROR] :  (1 failure)
  </code></pre>
  
  <p>This cannot be fixed until I do a reboot AFAICT!!!</p>
  
  <p>Then, finally, the test deployment builds as expected and can usually be repeated (unlike development deployments). </p>
  
  <p><strong>All help greatly appreciated :)</strong></p>
  
  <p>Environment:</p>
  
  <pre><code>Operating System
    Name                        = Mac OS X
    Version                     = 10.11.6
    Architecture                = 64bit
    # CPUs                      = 8
    Memory                      = 8.0GB
  
  Node.js
    Node.js Version             = 4.2.6
    npm Version                 = 2.14.12
  
  Appcelerator CLI
    Installer                   = 4.2.7
    Core Package                = 5.4.0
  
  Titanium CLI
    CLI Version                 = 5.0.9
    node-appc Version           = 0.2.31
  
  Titanium SDKs
    5.4.0.GA
      Version                   = 5.4.0
      Install Location          = /Users/gb/Library/Application Support/Titanium/mobilesdk/osx/5.4.0.GA
      Platforms                 = android, mobileweb, iphone
      git Hash                  = 4ba4c0a
      git Timestamp             = 08/10/16 05:43
      node-appc Version         = 0.2.35
  </code></pre>
  
  <p>...</p>
  
  <pre><code>Xcode
    7.3.1 (build 7D1014) - Xcode default
      Install Location          = /Applications/Xcode.app/Contents/Developer/
      iOS SDKs                  = 9.3
      iOS Simulators            = 9.3
      Watch SDKs                = 2.2
      Watch Simulators          = 2.2
      Supported by TiSDK 5.4.0.GA = yes
      EULA Accepted             = yes
      Teams                     = ********* (active)
  </code></pre>