【问题标题】:PhoneGap 2.1.0 - window.RequestFileSystemPhoneGap 2.1.0 - window.RequestFileSystem
【发布时间】:2012-09-25 10:42:14
【问题描述】:

我已经更新到 iOS6,因此一直在尝试更新到 PhoneGap 2.1.0 版。 (因为相机等似乎在此之前的版本中不起作用 - 我现在已经让这部分工作了)但是当我尝试通过运行以下代码行来访问文件系统时:

window.requestFileSystem(LocalFileSystem.PERSISTENT, 0,  success, fail);

应用程序崩溃了,没有错误等。如果我将此行放在主页上并从模拟器中启动,则会收到以下错误:

2012-09-25 11:26:38.741 MobileManager[4866:15b03] Multi-tasking -> Device: YES, App: YES
2012-09-25 11:26:59.756 MobileManager[4866:17f03] void SendDelegateMessage(NSInvocation     *): delegate (webView:runJavaScriptAlertPanelWithMessage:initiatedByFrame:) failed to return after waiting 10 seconds. main run loop mode: kCFRunLoopDefaultMode
2012-09-25 11:26:59.766 MobileManager[4866:15b03] -[NSNull intValue]: unrecognized selector sent to instance 0x275678
2012-09-25 11:26:59.767 MobileManager[4866:15b03] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[NSNull intValue]: unrecognized selector sent to instance 0x275678'
*** First throw call stack:
(0x144012 0x257de7e 0x1cf4bd 0x133bbc 0x13394e 0xd953 0x60812 0x5ff9e 0x60379 0x25916b0     0x1119035 0xc7f3f 0xc796f 0xea734 0xe9f44 0xe9e1b 0x33ae7e3 0x33ae668 0x37f65c 0x22b6 0x21e5)
libc++abi.dylib: terminate called throwing an exception

这个错误是什么意思,我该如何解决?

提前致谢。

【问题讨论】:

    标签: ipad cordova filesystems ios6 xcode4.5


    【解决方案1】:

    我不小心将 LocalFileSystem 变量设置为其他值(LocalFileSystem.PERSISTENT 未定义。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2012-09-26
      • 2012-09-26
      相关资源
      最近更新 更多