Archive Cordova Project - Path does not exist: www

787 views Asked by At

I am trying to submit a iOS iPhone/iPad Cordova project to the App Store through XCode.

I am able to build the app successfully on all simulators and devices. When I try to archive the app, I get an error.

Shell Script Invocation Error - Path does not exist: www

So for some reason, my Shell Script called in my project's Build Phases is not able to find my 'www' folder.

The closest I have gotten to solving, is I heard Archive uses a different directory structure when archiving. In which I've tried to add

 "$(PLATFORM_NAME)/../IntermediateBuildFilesPath/UninstalledProducts/include/"

to the User Header Search Paths, but that did not solve anything.

2

There are 2 answers

0
Soyab Shaikh On BEST ANSWER

This error occurs if you don't have full cordova project and only have ios folder from platforms and your www folder is located as ios/{your_app_name_folder}/www

Solution : move www folder from 'ios/{your_app_name_folder}/www' to 'ios/www'

0
B Isaac On

For new apps or upgraded projects run cordova build ios and it should move/create the WWW folder inside of platform/ios/