Phonegap iphone设备找不到www / Shelf / index.html

时间:2011-07-27 12:31:16

标签: iphone cordova device

我制作了一个显示离线页面的phonegap应用程序。这些网站位于www。

的子目录中

例如:

www/ListView/index.html
www/Login/index.html
www/Shelf/index.html

当我在iPhone模拟器上构建应用程序并且起始页面是www / Shelf / index.html时,一切都很完美。 当我安装(越狱iphone)应用程序到设备时,我有以下消息:

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

但是如果我不修改原始的www / index.html起始页面,那么一切都会显示在设备和模拟器上。 任何Ide? 提前感谢您的帮助!

的Balazs

2 个答案:

答案 0 :(得分:2)

这是xcode中的常见问题。将www文件夹拖到xcode可执行文件sdk中。有关详细信息,请链接。Go to the link for xcode application

答案 1 :(得分:0)

尝试编辑 + (NSString*) startPage { return @"index.html"; }

+ (NSString*) startPage { return @"Shelf/index.html"; }

在phonegap的库中的phonegapdeligate.m文件中