Sencha应用程序无法在Windows应用程序包中启动 [英] Sencha app doesn't start in Windows app package

查看:98
本文介绍了Sencha应用程序无法在Windows应用程序包中启动的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们有一个基于Cordova(版本6.1.1)和Sencha ExtJS(cmd版本6.1.2 ext版本6.0.2)的跨平台应用程序.该应用程序还使用jQuery(版本2.1.4). 现在,我们在Windows平台上发现了一个非常令人沮丧的问题.

We have a cross platform application based on Cordova (version 6.1.1) and Sencha ExtJS (cmd version 6.1.2 ext version 6.0.2). The application also uses the jQuery (version 2.1.4). Now we found a very frustrating problem on the Windows platform.

我们使用cordova创建了Visual Studio项目(sencha应用程序之前是使用测试选项构建的)

We created the Visual Studio project with cordova (the sencha app is built with testing option before)

当我们打开Visual Studio(版本14.0.25123.00更新2)并在设备上构建项目(处于发布模式)时,一切都会按预期进行.

When we open the Visual Studio (version 14.0.25123.00 Update 2) and build the project (in release mode) on a device, then everything works as expected.

如果我们从Visual Studio创建一个应用程序包并手动将其安装在任何设备上,则 ExtJS应用程序未加载,并且该应用程序在启动后将挂在初始屏幕上. (当我调试它时,脚本元素由microloader脚本添加到html,但是这些元素上附加的onload侦听器从未触发,因此该应用程序从未启动)

If we create an app package from the Visual Studio and install it any device manually, then seems like the ExtJS application is not loaded, and the application will hang on splash screen after start. (As I debugged it the script elements are added to the html by the microloader script, but the attached onload listeners on these elements are never fired, therefore the app never started)

这是最有趣的部分.如果您使用Visual Studio函数调试已安装的应用程序,然后连接到该应用程序,那么一切将正常进行,将加载ExtJS代码.

And here is coming the most funny part. If you use the Visual Studio function to debug an already installed application, and connect to this application, then everything will works as is should, the ExtJS codes will be loaded.

有人发现过这个东西,或者有类似的东西吗?

Anyone found this before, or any similar thing?

推荐答案

可能是Cordova在调试过程中无法正常工作,并且环境更宽容.但是,如果在没有调试器的情况下进行侧面加载和运行,则确实会使应用程序失败.

Could it be Cordova is failing something that works fine during debug, more forgiving environment. But truly fails the app when sideloading and running without debugger.. ?

这篇关于Sencha应用程序无法在Windows应用程序包中启动的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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