Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
471 views
in Technique[技术] by (71.8m points)

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

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?

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

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.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...