找不到模块cordova / plugin / ios / nativecomm-PhoneGap 2.1 / Sencha 2.0 [英] module cordova/plugin/ios/nativecomm not found - PhoneGap 2.1 / Sencha 2.0

查看:63
本文介绍了找不到模块cordova / plugin / ios / nativecomm-PhoneGap 2.1 / Sencha 2.0的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个用PhoneGap 2.1和Sencha Touch 2.0实现的现有iPhone项目。该应用程序在历史上运行良好,但再次使用时遇到了一些问题。

I have an existing iPhone project implemented with PhoneGap 2.1 and Sencha Touch 2.0. The app has run perfectly historically but I've run into some issues when picking it up again.

首先,我在CordovaLib.xcodeproj上遇到了问题,它只是彩色的在项目浏览器中为红色。我通过此博客文章

First, I had problem with the CordovaLib.xcodeproj, which was just colored red in the project explorer. I solved that by adding the CordovaLib folder from the Phonegap-2.1 folder to the project, according to this blog post.

现在,我可以构建和运行该应用了,但它在启动屏幕上冻结了。日志输出为多任务->设备:是,应用程序:是,仅此而已。甚至没有启动功能:

Now I can build and run the app, but it freezes on the splash screen. There is the "Multi-tasking -> Device: YES, App: YES" log output but nothing more. Not even from the launch function:

launch: function() {
   console.log("Main controller launch:");
   […]
}

我在js中放了一个window.onerror文件并显示以下弹出窗口:

I put a window.onerror in the js file and got this pop-up:

ERROR: module cordova/plugin/ios/nativecomm not found
URL: undefined
Linenumber:0

应该是,我应该只运行cordova_upgrade_subproject,但是没有帮助。

Supposedly, I should just run cordova_upgrade_subproject, but that didn't help.

为什么找不到../nativecomm?如何找到它?

Why is ../nativecomm not found? How do I make it found?

推荐答案

好了,现在可以使用了。我唯一要做的就是将console.log()放在window.onerror()函数中,而不只是一个alert()。这似乎不太可能以任何方式影响应用程序,但是无论如何……它起作用了!

Well, it works now. The only thing I did was putting a console.log() in the window.onerror() function, instead of just an alert(). It seems unlikely that this would affect the application in any way, but anyhow… it works!

这篇关于找不到模块cordova / plugin / ios / nativecomm-PhoneGap 2.1 / Sencha 2.0的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆