2012-09-25 36 views
1

我已更新到iOS6,並且由於這一直試圖更新到PhoneGap版本2.1.0。 (由於相機等似乎並不在此之前的版本工作 - 我現在拿到這部分工作),但是當我試圖通過運行下面的代碼行來訪問文件系統:PhoneGap 2.1.0 - window.RequestFileSystem

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 

這個錯誤是什麼意思,我怎麼能解決這個問題?

在此先感謝。

回答

2

我不小心將LocalFileSystem變量設置爲別的東西(LocalFileSystem.PERSISTENT未定義。

相關問題