【问题标题】:Phonegap iphone device not find the www/Shelf/index.htmlPhonegap iphone 设备找不到 www/Shelf/index.html
【发布时间】:2011-07-27 12:31:16
【问题描述】:

我制作了一个显示离线页面的 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? 提前感谢您的帮助!

巴拉兹

【问题讨论】:

    标签: iphone cordova device


    【解决方案1】:

    这是 xcode 中的常见问题。将您的 www 文件夹拖到您的 xcode 可执行 sdk 中。欲了解更多信息,请查看链接。Go to the link for xcode application

    【讨论】:

      【解决方案2】:

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

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

      在 phonegap 库中的 phonegapdeligate.m 文件中

      【讨论】:

      • 我试过了,但没有。当我在设备上打开应用程序时,出现相同的错误消息,问题是什么。
      • 我找到了答案:当我在设备上上传应用程序时,应用程序中的每个目录都是700。右边是755。没关系。谢谢解答。
      猜你喜欢
      • 1970-01-01
      • 2013-07-29
      • 1970-01-01
      • 1970-01-01
      • 2012-05-12
      • 1970-01-01
      • 1970-01-01
      • 2015-06-21
      • 1970-01-01
      相关资源
      最近更新 更多