Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

PhoneGap application: "ERROR: Start Page at `www/index.html` was not found"

Tags:

ios

cordova

I have created a Phone Gap based application on iPhone. After the first run, I have dragged my www folder, containing index.html into the project, but still I am getting the following error in the simulator:

ERROR: Start Page at www/index.html was not found.

Do I have to mention the name of index.html in a plist file or anywhere else? How can I resolve this; can any one help me?

like image 968
sujay Avatar asked May 17 '11 04:05

sujay


1 Answers

It's an incompatibility between PhoneGap and XCode 4. To resolve:

  • right click on your project and choose "Add files to [project name]...";
  • choose the www folder from your curent project's folder (it's included in there, but not added as a reference);
  • when you select the folder, make sure you choose "Copy items into destination group's folder" as well as "Create folder references for any added folders".

Note: if you choose "Create groups for any added folders", the app will still fail at runtime.

like image 194
Tim S Avatar answered Oct 07 '22 03:10

Tim S