WinAppDeployCmd - 即使使用PIN也拒绝访问

时间:2016-04-25 14:12:54

标签: deployment windows-10-mobile

我正在尝试使用WinAppDeployCmd将应用部署到运行Windows 10 Mobile(版本10.0.10586.164)的手机上。我已拉起窗口将设备与PIN配对,但输入该PIN无法正常工作。例如,以下命令会出错。

C:\Users\Hodor\>WinAppDeployCmd.exe install -file app_1.0.0.0_arm.appxbundle -ip 192.168.1.132 -pin L8J4d2

Windows App Deployment Tool
Version 10.0.0.0
Copyright (c) Microsoft Corporation. All rights reserved.

Opening connection to device at '192.168.1.132'.

Access denied while connecting to the remote device.
Please retry the command with the "-pin" option and a valid pin as shown in the device settings.
The pin is a one time requirement to establish a pairing relationship with the device.

我能够毫无问题地ping手机。我能够通过USB部署应用程序,但我正在尝试立即设置CI解决方案,以便在成功构建时自动部署到多个手机。

我缺少一步吗?我去年夏天成功使用了WinAppDeployCmd,没有任何问题。

1 个答案:

答案 0 :(得分:0)

我有一个类似的问题,对我有用的是使用-guid参数而不是-ip参数来指定目标。

使用WinAppDeployCmd devices命令找到要定位的设备的GUID。

然后,仅使用WinAppDeployCmd而不是-guid运行-ip

C:\Users\Hodor\>WinAppDeployCmd.exe install -file app_1.0.0.0_arm.appxbundle -guid <guid> -pin L8J4d

相关问题