Error CordovaModuleLoadError - 多设备混合应用程序在visual studio中 [英] Error CordovaModuleLoadError - multi device hybrid app in visual studio

查看:169
本文介绍了Error CordovaModuleLoadError - 多设备混合应用程序在visual studio中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我遵循此处此处在ios中构建和模拟多设备混合应用程序。

I am following the steps here and here to build and simulate a multi device hybrid app in ios.

我按照文章中的步骤,我可以看到,当我在Visual Studio中运行我的多设备混合应用程序使用iphone模拟器作为运行目标,连接的mac设备响应构建请求。然而,mac终端将结束构建过程与以下生成错误:

I followed the steps in the articles and I can see that when I run my multi device hybrid app in visual studio using iphone simulator as the run target, the connected mac device response to the build request. However, the mac terminal will end the build process with the following build error:

Done building  5116: error CordovaModuleLoadError  [ '3.5.0-0.2.4' ]

这里是完整的终端输出:

And here is the full terminal output:

 IBRAHIM-ALHUSSAINs-Mac-mini:cordova IBRAHIMALHUSSAIN$ vs-mda-remote --secure false
vs-mda-remote
Copyright (C) 2014 Microsoft Corporation. All rights reserved.
0.2.11

Loading resources for language en from /usr/local/lib/node_modules/vs-mda-remote/resources/en/resources.json
Build Retention initialized with baseBuildDir /Users/IBRAHIMALHUSSAIN/remote-builds/builds, maxBuildsToKeep 20
Initialized BuildManager with baseBuildDir /Users/IBRAHIMALHUSSAIN/remote-builds/builds; maxBuildsInQueue 10; deleteBuildsOnShutdown true; allowsEmulate true; nextBuildNumber 5115
Remote build server listening on [http] port 3000
ios-sim is installed on path at: /usr/local/lib/node_modules/vs-mda-remote/node_modules/ios-sim/build/release/ios-sim

New build request submitted:
/build/tasks?command=build&vcordova=3.5.0-0.2.4&cfg=release
{ 'accept-language': 'en-US',
  host: '192.168.1.11:3000',
  connection: 'keep-alive',
  'transfer-encoding': 'chunked' }
New build request submitted for cordovaVersion: 3.5.0-0.2.4; buildCommand: build; configuration: release
Build will be executed under: /Users/IBRAHIMALHUSSAIN/remote-builds/builds/5116
Saving build request payload to : /Users/IBRAHIMALHUSSAIN/remote-builds/builds/5116
Saved upload to /Users/IBRAHIMALHUSSAIN/remote-builds/builds/5116/upload_5116.tgz
Extracting /Users/IBRAHIMALHUSSAIN/remote-builds/builds/5116/upload_5116.tgz to /Users/IBRAHIMALHUSSAIN/remote-builds/builds/5116/cordovaApp...
POST /build/tasks?command=build&vcordova=3.5.0-0.2.4&cfg=release 202 1279ms - 529b
GET /build/tasks/5116 200 3ms - 529b
Extracted app contents from uploaded build request to /Users/IBRAHIMALHUSSAIN/remote-builds/builds/5116/cordovaApp. Requesting build.
Taking 5116 as current build
Building cordova app B8ak بيتك at appDir /Users/IBRAHIMALHUSSAIN/remote-builds/builds/5116/cordovaApp
Opened build log file /Users/IBRAHIMALHUSSAIN/remote-builds/builds/5116/build.log
GET /build/tasks/5116 200 2ms - 625b
GET /build/tasks/5116 200 1ms - 625b
GET /build/tasks/5116 200 1ms - 625b
GET /build/tasks/5116 200 1ms - 625b
GET /build/tasks/5116 200 1ms - 625b
GET /build/tasks/5116 200 1ms - 625b
GET /build/tasks/5116 200 1ms - 625b
GET /build/tasks/5116 200 1ms - 625b
GET /build/tasks/5116 200 0ms - 625b
GET /build/tasks/5116 200 1ms - 625b
GET /build/tasks/5116 200 2ms - 625b
GET /build/tasks/5116 200 1ms - 625b
GET /build/tasks/5116 200 0ms - 625b
GET /build/tasks/5116 200 0ms - 625b
GET /build/tasks/5116 200 1ms - 625b
GET /build/tasks/5116 200 0ms - 625b
GET /build/tasks/5116 200 0ms - 625b
GET /build/tasks/5116 200 0ms - 625b
GET /build/tasks/5116 200 1ms - 625b
GET /build/tasks/5116 200 0ms - 625b
GET /build/tasks/5116 200 1ms - 625b
GET /build/tasks/5116 200 1ms - 625b
GET /build/tasks/5116 200 1ms - 625b
GET /build/tasks/5116 200 1ms - 625b
GET /build/tasks/5116 200 2ms - 625b
GET /build/tasks/5116 200 0ms - 625b
GET /build/tasks/5116 200 1ms - 625b
GET /build/tasks/5116 200 1ms - 625b
GET /build/tasks/5116 200 0ms - 625b
GET /build/tasks/5116 200 1ms - 625b
GET /build/tasks/5116 200 1ms - 625b
GET /build/tasks/5116 200 1ms - 625b
GET /build/tasks/5116 200 1ms - 625b
Done building 5116 : error CordovaModuleLoadError [ '3.5.0-0.2.4' ]
Done with currentBuild. Checking for next build in queue.
GET /build/tasks/5116 200 2ms - 667b
GET /build/tasks/5116/log 200 4ms


推荐答案

这表明您正在为Apache Cordova使用CTP2工具。移动到CTP3.1或VS 2015 RC应该可以解决您的问题。

This indicates you are using CTP2 of tools for Apache Cordova. Moving to CTP3.1 or VS 2015 RC should resolve your issue.

VS 2015也将允许您选择您使用的Cordova版本,虽然您可能会看到像Cordova 3.5.0这样的年代版本的问题。在VS 2015 4.3.0的默认值应该是兼容的,并包含许多错误修复,包括安全性的改进。

VS 2015 will also allow you to select the version of Cordova you use though you could see problems with a year old release like Cordova 3.5.0. The default in VS 2015 of 4.3.0 should be compatible and contains numerous bug fixes including security improvements.

VS 2015将是Apache Cordova的支持版本的工具。以前的版本只是技术预览。

VS 2015 will be the supported version of Tools for Apache Cordova. Previous releases were only technology previews.

这篇关于Error CordovaModuleLoadError - 多设备混合应用程序在visual studio中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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