Error DEP10402: Could not locate the start page. You may need to build your project

Corey Roth picture Corey Roth · Apr 14, 2016 · Viewed 14.3k times · Source

One of my Visual Studio 2015 Cordova projects has recently started exhibiting this error when trying to debug with IOS / Ripple - iPhone (any):

Error DEP10402: Could not locate the start page. You may need to build your project.

Oddly it only occurs in this one project and it works fine with Android / Ripple. I can also deploy and debug to local / remote devices just fine.

I've tried rebuilding of course as well as clearing the Cordova cache as well as rebooting.

Any ideas?

Answer

asanga15 picture asanga15 · Aug 13, 2016

Both the above solutions didn't work for me. I did this steps:

1. Locate the start page in config.xml. Usually, it is index.html.
2. Make a copy the index.html and paste it back. The filename is like "index - Copy.html".
3. Delete the original index.html
4. Rename "index - Copy.html" back to index.html
5. Start Debug.

It worked for me.