title: How do I fix PhoneGap build errors?
body: <p>I am trying to build a <a href="http://phonegap.com/" rel="nofollow noreferrer">PhoneGap</a>-based iPhone application, but I keep getting the following two errors:</p>
  
  <pre><code>./build-phonegap.sh: line 6: ./configure: No such file or directory
  cp: lib/iphone/phonegap-min.js: No such file or directory
  </code></pre>
  
  <p>I built and installed the latest version of PhoneGap from the source on GitHub. I have checked to make sure that the <code>PHONEGAPLIB</code> variable is indeed set in XCode.</p>
  
  <p>Where do I get the files listed? Where do I put them (to what are those paths relative)? And why aren't they already there?</p>
  
  <p><strong>Later</strong></p>
  
  <p>It seems the problem was that the project had been created with one version of PhoneGap (one that doesn't reference an external <code>lib</code> directory), but I was trying to run it with a newer one. Recreating the project with my latest version and copying over the <code>www</code> directory fixed the problem.</p>