title: Cordova CLI: an error occurred during creation of ios sub-project
body: <p>I've tested the Cordova 3.0.0 CLI Tool.
  The command</p>
  
  <pre><code>$ sudo cordova platform add android
  </code></pre>
  
  <p>was done OK.
  But i've got error during the command</p>
  
  <pre><code>$ sudo cordova platform add ios
  </code></pre>
  
  <p>Error</p>
  
  <pre><code>[Error: An error occured during creation of ios sub-project. /bin/sh: /Users/user/.cordova/lib/ios/cordova/3.0.0/bin/create: No such file or directory ]
  </code></pre>
  
  <p>When I decided to install a previous version</p>
  
  <pre><code>$ sudo npm install -g cordova@2.9.0
  </code></pre>
  
  <p>Yes, -</p>
  
  <pre><code>$ cordova platform add ios
  </code></pre>
  
  <p>command done his job. I got  ios sub-project</p>
  
  <p>I've Xcode 4.6.3 and xCode's Command Line tools are installed.
  Thanks in advance for any clue.</p>
  
  <p>BTW, I'm not alone with such  problem. Please see - PhoneGap CLI: "An error
  occured during creation of ios sub project" <a href="https://groups.google.com/forum/#!msg/phonegap/woWZzT39osg/CpK_rUIKmYAJ">https://groups.google.com/forum/#!msg/phonegap/woWZzT39osg/CpK_rUIKmYAJ</a></p>
  
  <p><strong>Update:</strong>
  Fixed: the versioned folder was deleted i.e.</p>
  
  <pre><code>rm -rf ~/.cordova/lib/ios/cordova/3.0.0/
  </code></pre>
  
  <p>and after</p>
  
  <pre><code>$ sudo cordova platform add ios
  </code></pre>
  
  <p>ios platform was added with no errors.</p>