My question pertaining to phonegap is simple and yet I cannot find an answer.
I'm about to get started on writing a simple phone app that I can deploy to many platforms, which Phonegap claims to be able to do.
If I am writing one codebase and compiling to many apps, why do I have to choose a platform to code against? Surely I write generic code and compile it afterwards for each device?
If you build your project, phonegap needs to know for which platform it must link it's binaries. That way you get a working package for your testing platform, so you can run and debug it before publishing.
Once the application is finished you strip the platform dependent binaries and upload your source to their webservice.
The webservice will then build the binaries for other platforms.
With phonegap, you still create a HTML5/CSS3 project but phonegap adds a per platform library to extend its functionality. Then you need to build the project in a kind of full-screen browser app.