Compile PhoneGap Source Code in Your iOS PhoneGap Project

This post explains how to¬†configure an iOS PhoneGap project to include the open source PhoneGap code as a sub-project in XCode 4. I successfully achieved this with PhoneGap 1.5 through 1.61. I’m not sure if it works with other versions of PhoneGap.

I included the PhoneGap source code when troubleshooting a consistent crash on the iPad as the camera app opened. Including the Cordova source code allowed me to step through the camera related code in XCode.