I'm building application using Cordova (PhoneGap). The directory structure it create is I have my source code in www root and when I add iOS platform it generate the required XCode project in platforms/ios/
As far as I can tell all the content of platforms/ios is automatically generated so it should not be committed, right?
The problem is it looks like cordova command line tool is not built to read and "rebuild" the platforms directory according to platforms/platforms.json
The problem is that when another developer or the CI server will checkout the project from git they will not be able to simply run 'cordova build' and have the project built.
I have workaround this problem by adding shell-scripts that run the following commands:
cordova platform remove ios
cordova platform add ios
The problem it is getting more compilcated as I have plugins so I also have to add script to add them. I expected platforms.json act like package.json file in node and have cordova re-generate the files.