在 Windows Phone 10 中安装 appx 或 appxbundle? [英] Install an appx or appxbundle in a Windows Phone 10?

查看:83
本文介绍了在 Windows Phone 10 中安装 appx 或 appxbundle?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在开发一个 UWP 应用,该应用在使用 VS2015 调试但使用 appx 或 appxbundle 安装时运行没有任何问题.

我已经阅读了许多打包和安装指南,似乎我并没有遗漏步骤(我只需要在设备中部署应用程序仅用于测试目的),但这种行为让我怀疑我是否可能我...

我不确定我是否提供了足够的信息,但我真的不知道还有什么要解释的:(

谁能告诉我我该怎么做才能找出导致应用程序崩溃的原因?或者有什么可以解决的?

非常感谢!

解决方案

调试此问题的一种方法是使用 Visual Studio 中的工具导出 appx 文件并在导出过程中确保包含调试符号并该应用程序已使用调试配置文件导出(请参阅此 有关打包通用 Windows 应用程序的 MSDN 文章 但不是为商店上传构建它们,而是选择不为商店上传构建它们).这应确保应用输出任何调试消息.

拥有 appx 文件(或 appxbundle,可以使用任何一个)后,将其上传到设备.您可以使用 WinAppDeployCmd 工具(请参阅上一个链接的旁加载部分),或使用手机的设备门户(仅在 Windows 10 版本 1511 之后可用,请参阅 MSDN 上启用设备进行开发的文章 了解有关如何使用它的详细信息)或将文件复制到手机的存储空间,然后从那里安装它们.>

要从本地存储安装,请将整个 AppPackages 文件夹复制到您的设备,然后在设备的文件管理器中打开该文件夹.首先,打开证书文件将其安装到您的设备上,这意味着设备信任您的应用程序包,因为它是使用该证书签名的.接下来,转到依赖项文件夹并打开其中的所有文件以将所有依赖项安装到设备(从 Visual Studio 或 Windows 应用商店部署时,此步骤会自动完成).安装完所有依赖后,打开设备架构的 appx 文件(应该是 ARM 文件)进行安装.

在您的设备上安装了具有所有依赖项的应用程序后,启动它.如果它运行良好,则意味着它不是依赖项问题,如果不是,并且如果您使用的是 1511 版或更高版本的 Windows 10,则应在手机的 Documents/Dumps 文件夹中创建转储文件(请参阅 MSDN关于启用设备进行开发的文章,并转到页面底部的错误报告部分).

I'm developing an UWP app which is running without any troubles when it's being debugged using VS2015 but when it's installed using an appx or appxbundle.

I've read many packaging and installation guides and it doesn't seem I'm leaving steps out (I just need to deploy the app in a device for testing purposes only), but this behavior makes me wonder if maybe I am...

I'm not sure if I've let enough information but I really don't know what else to explain :(

Could anyone tell me what should I do to find out what is making the app crash? Or something to fix it?

Thanks much in advance!

解决方案

One way of debugging this would be to export the appx files using the tool in Visual Studio and during the export process to make sure that the debug symbols are included and the app has been exported using the debug profile (see this MSDN article on packaging Universal Windows Apps but instead of building them for store upload, choose to not build them for store upload). This should ensure that the app is outputting any debug messages.

Once you have the appx files (or the appxbundle, either one can be used) upload it to the device. You can either use the WinAppDeployCmd tool (see the sideloading part of the previous link), use the phone's device portal (only available after Windows 10 version 1511, see MSDN article on Enabling the device for development for details on how to use it) or copy the files to the phone's storage then install them from there.

To install from the local storage, copy the entire AppPackages folder to your device then open that folder in the device's file manager. First of all, open the certificate file to install it to your device, this will mean that the device trusts your app package because it was signed with that certificate. Next, go to the dependencies folder and open all the files in there to install all the dependencies to the device (this step is done automatically when deploying from Visual Studio or the Windows Store). Once all the dependencies have been installed, open the appx file for the device's architecture (should be the ARM file) to install it.

Once you have the app installed on your device with all the dependencies, launch it. If it runs fine, it means it wasn't a dependencies issue, if it doesn't and if you have version 1511 or newer of Windows 10, a dump file should have been created in your phone's Documents/Dumps folder (see the MSDN article on Enabling the device for development and go down to the error reporting part at the bottom of the page).

这篇关于在 Windows Phone 10 中安装 appx 或 appxbundle?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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