EDIT: This answer is no longer completely correct.
The latest versions of Cordova / PhoneGap are not a compiled structure, and itβs much easier (especially since version 2.2.0) to configure the version of the cord that a specific application uses, since it is just a subproject in Xcode.
To get into the .m files, you will need to download the source of iOS PhoneGap (Cordova) and make changes to compiling their own version of PhoneGap framework.
It's not as complicated as it sounds, but it can be a little complicated if you are not very comfortable using Objective-C and command line compilation tools.
To rephrase README from an iOS source, for example:
$ git clone http://git-wip-us.apache.org/repos/asf/incubator-cordova-ios.git
Make your changes, then ...
- Run "Terminal.app"
- Go to the folder where the Makefile is located (./PhoneGapLib?)
- Type
make , then press Enter
This should create "PhoneGapInstaller.dmg" in the dist folder. This is what you use to install the new version of PhoneGap.
Another option is to take the .m and .h API files that you distribute (just by getting them from the GitHub source repository) and turning them into a new plugin with your own name. As an example, instead of expanding the camera API and making changes to Camera.m and recompiling, etc., I decided to make the plugin nameless MyCamera, which had code from the camera API and my own extensions. Most of the APIs in PhoneGap (at least in iOS) are basically plugins in their own right, so they donβt have to configure much to turn them into a plugin for your purposes.
This method also means that you can update PhoneGap later and not hide all your extensions.
source share