THE MOST IMPORTANT PART:
If you don't know what you are doing, don't do this. Do this at your own risk.
NOTES:
- This will download, compile and install the latest PhoneGap source automatically, without user interaction. If you are using a project that references PhoneGap.framework, it will overwrite the old (shared) one automatically so you will NOT need to do anything.
- You'll need Xcode installed, bla bla bla goes without saying.
- Useful if you want to test whether a recent fix has solved your problem.
- However, you will need to grab the latest phonegap.js from /Users/Shared/PhoneGap/Frameworks/PhoneGap.framework/www . Either that, create a new project and build it once, you'll get a www in your project folder and you can grab the phonegap.js from that (we decided not to do this automatically for users because it creates more problems than it solves).
- Also, the latest code has the new white-list feature. If you are referencing external hosts, you will have to add the host in PhoneGap.plist under the "ExternalHosts" key. Wildcards are ok. So if you are connecting to "http://phonegap.com", you have to add "phonegap.com" to the list (or use the wildcard "*.phonegap.com" which will match subdomains as well).
- If you find the latest and greatest unstable and want to revert to 1.0 - open the 1.0 .dmg and run the uninstaller, then install 1.0 again.
EXAMINE THE GIST :
https://gist.github.com/1001486
INSTRUCTIONS:
1. Launch Terminal.app
2. Paste in the gist contents from above
ALTERNATE INSTRUCTIONS:
1. Launch Terminal.app
2. Paste in the command below (which will save you from needing to go get the gist):
curl https://raw.github.com/gist/1001486/b9de2d045242edaffe1e38b3b2d0e8ba89459261/gistfile1.sh | sh
If successful the last message will be "installer: The install was successful."
GIST RECREATED HERE:
PGTEMP=`mktemp -d -t 'phonegap'`
curl -L https://github.com/callback/callback-ios/zipball/master > $PGTEMP/latest.zip
unzip $PGTEMP/latest.zip -d $PGTEMP > /dev/null
make -C $PGTEMP/callback*
installer -pkg $PGTEMP/callback*/dist/files/PhoneGap*.pkg -target CurrentUserHomeDirectory