module cordova/plugin/ios/nativecomm not found - PhoneGap 2.1 / Sencha 2.0

我们两清 提交于 2019-12-12 00:34:35

问题


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.

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:");
   […]
}

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

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

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


回答1:


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!



来源:https://stackoverflow.com/questions/14384780/module-cordova-plugin-ios-nativecomm-not-found-phonegap-2-1-sencha-2-0

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!