Search code examples
cordovacordova-cli

Cordova Phonegap CLI is linking root www folder, not platforms/ios/www folder


I have a structure like: root | www | platforms | plugins (a typical cordova project structure)

Now I run cordova platform add ios which generate my ios project in platforms/ios/

Open the ios project in XCode, I cannot see cordova.js in side my project tree. Use the "Show in finder" to reveal where www is, shockingly it's the root/www, not the platforms/ios/www.

Is that a problem or an enhancement of cordova? It breaks my project now.


Solution

  • mine is ok. open your staging folder. You cordova.js located in www folder.

    enter image description here