【问题标题】:remotebuild fails to run cordova application on device or simulatorremotebuild 无法在设备或模拟器上运行 cordova 应用程序
【发布时间】:2015-07-28 10:15:24
【问题描述】:

我使用 Visual Studio 2015 和 Cordova 工具。我在我的 Mac 上运行 remotebuild 并在 VS15 上运行程序。 Remotebuild 在屏幕上记录成功的标头,但没有运行。

GET /cordova/build/tasks/17748 200 2.065 ms - 692

我的 iphone 4 已经连接到 Mac。 我通过remotebuild --secure=false 运行它,上面写着remote build server listening on [http] port 3000。好像没问题。 我做错了什么?

我已经配置了VS,工具-> 选项-> Apache Cordova 的工具-> 远程代理配置,并将主机IP 设置为安全模式为false。当我构建时,会记录下来:

1>  ------ Build Settings:
1>  ------    platformConfigurationBldDir: C:\Users\ÖmerAlper\Documents\Visual Studio 2015\Projects\CordovaApp\CordovaApp\bld\iOS\Debug
1>  ------    platformConfigurationBinDir: C:\Users\ÖmerAlper\Documents\Visual Studio 2015\Projects\CordovaApp\CordovaApp\bin\iOS\Debug
1>  ------    buildCommand: build
1>  ------    platform: iOS
1>  ------    cordovaPlatform: ios
1>  ------    configuration: Debug
1>  ------    cordovaConfiguration: Debug
1>  ------    projectName: CordovaApp
1>  ------    projectSourceDir: C:\Users\ÖmerAlper\Documents\Visual Studio 2015\Projects\CordovaApp\CordovaApp
1>  ------    npmInstallDir: C:\Users\ÖmerAlper\AppData\Roaming\npm
1>  ------    buildServerUrl: http://192.168.1.21:3000/cordova
1>  ------    buildTarget: iOSEmulatoriPhone5S
1>  ------    language: en-US

我不断收到这条消息。我在尝试 100 时停止等待,因为我认为不会再发生任何事情。

05:34:27 Checking on build status from http://192.168.1.21:3000/cordova/build/tasks/7288 [Attempt 1]
1>  uploaded - Uploaded build request payload.

【问题讨论】:

    标签: visual-studio-2015 visual-studio-cordova


    【解决方案1】:

    感谢您使用 VS 2015 和 Tools for Apache Cordova。您是否为running 配置了 VS,您的应用程序是连接到远程 Mac 机器的远程设备?

    【讨论】:

      【解决方案2】:

      我发现了问题所在。我在我的科尔多瓦应用程序中使用了 wikiitude 插件,这个插件非常大!它大约为 113 mb。我的项目的总大小变得超过 250 mb。这就是为什么“上传的构建请求有效负载”阶段重复超过 100 次的原因。如果没有wikiitude插件,它可以在几分钟内工作,但现在无法使用wikiitude。

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 2020-05-23
        • 1970-01-01
        • 2022-01-12
        • 1970-01-01
        • 2023-03-24
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        相关资源
        最近更新 更多