title: Error building app for ios in phonegap (for android is working fine)
body: <p>I am developing an app with phonegap and I have always been testing the app using the android simulator and I have not had any problems, but I can not get it to work for iOS.</p>
  
  <p>I'm working on a Mac OS mavericks and have installed Xcode.</p>
  
  <p>When I run the command "phonegap run ios", I get the following:</p>
  
  <pre><code>[phonegap] detecting iOS SDK environment...
  [phonegap] using the local environment
  [phonegap] compiling iOS...
  Build settings from command line:
  ARCHS = i386
  CONFIGURATION_BUILD_DIR = /Users/usuario/Desktop/desarrolloapp/nombreapp/platforms/ios/build/emulator
  SDKROOT = iphonesimulator7.1
  VALID_ARCHS = i386
  
  xcodebuild: error: The project ‘NombreApp.xcodeproj’ does not contain a target named ‘NombreApp’.
  [error] /Users/usuario/Desktop/desarrolloapp/nombreapp/platforms/ios/cordova/build: Command failed with exit code 65
  </code></pre>
  
  <p>Any idea about what's going on?</p>
  
  <p>EDIT: I solve this doing:</p>
  
  <ol>
  <li>Remove ios folder from platforms.</li>
  <li>Run again (phonegap run ios).</li>
  <li>Install ios-sim with command sudo npm install -g ios-sim.</li>
  <li>All worked fine!</li>
  </ol>
  
  <p>A lot of thanks.</p>
  
  <p>Best regards. </p>