> cordova platform add ios
This drops a .gitignore file here
platforms/ios/.gitignore file which includes the line
but it needs to be changed to:
Otherwise the actual shell script in the subdirectory platforms/ios/cordova/build is excluded from the commit and subsequent clones cannot run the cordova build ios command because it will complain that the cordova/build file doesn't exist. ( because it wasn't added to the git repo )
It took me some time to figure out what happened to my build file and I finally found that .gitignore issue.