我的应用程序可以正常使用Cordova iOS 3.6.3。但是,如果iOS 3.7.0出现错误,应用程序无法启动。这是我在日志中看到在模拟器中唯一信息:Cordova iOS 3.7.0问题 - [__NSCFString JSONObject]:无法识别的选择器
2014-11-23 23:55:21.149 App[68461:5278465] -[__NSCFString JSONObject]: unrecognized selector sent to instance 0x122db42b0
2014-11-23 23:55:21.151 App 68461:5278465] *** WebKit discarded an uncaught exception in the webView:decidePolicyForNavigationAction:request:frame:decisionListener: delegate: <NSInvalidArgumentException> -[__NSCFString JSONObject]: unrecognized selector sent to instance 0x122db42b0
2014-11-23 23:55:21.176 App[68461:5278465] -[__NSCFString JSONObject]: unrecognized selector sent to instance 0x122db4278
2014-11-23 23:55:21.176 App 68461:5278465] *** WebKit discarded an uncaught exception in the webView:decidePolicyForNavigationAction:request:frame:decisionListener: delegate: <NSInvalidArgumentException> -[__NSCFString JSONObject]: unrecognized selector sent to instance 0x122db4278
感谢,
该项目是否有正确的cordova.js(3.7.0)文件?你是如何从3.6.3更新到3.7的? – 2014-11-25 17:42:46
它的确有正确的cordova.js。在我的情况下,这个问题与需要Facebook SDK的parse.com插件有关。我能够在以前的版本中删除-ObjC。现在要做的是打破3.7.0中可能需要的其他库。我已经添加了Facebook SDK来解决这个问题。 – archman 2014-12-02 23:01:34