[ 
https://issues.apache.org/jira/browse/CB-12059?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15607061#comment-15607061
 ] 

Graeme Mawson commented on CB-12059:
------------------------------------

Thanks Vladimir!  The list command works well for me.  I have also found that 
the deployment command works, but it is strange....  

I always get the following two errors:

Cannot launch the app with current version of Windows 10 SDK tools.  You will 
have to launch the app after installation is completed.
Error: Unexpected error from installation: C:\Program Files (x86)\Windows 
Kits\10\bin\x86\WinAppDeployCmd.exe: Command failed with exit code 2147943860 
You may have previously installed the app with an earlier version of 
cordova-windows.  Ensure the app is uninstalled from the phone and then try to 
run again.

However, I've found that if the app is not installed, about 30s after this 
second error is reported and the cordova command stops, the app appears on the 
phone in the installed apps list and I can manually launch it.

If the app is already installed, about 30s after this second error is reported 
and the cordova command stops, the app is updated on the phone and sometimes it 
is automatically launched.

I've googled these errors and this behaviour, but found nothing.  Although this 
bug is correctly closed as 'not a problem', I'd appreciate any assistance you 
may be able to provide in understanding these errors and this behaviour.  
Thanks.

> No devices returned by cordova run windows --list
> -------------------------------------------------
>
>                 Key: CB-12059
>                 URL: https://issues.apache.org/jira/browse/CB-12059
>             Project: Apache Cordova
>          Issue Type: Bug
>    Affects Versions: 6.3.1
>            Reporter: Graeme Mawson
>              Labels: reproduced, triaged
>
> Cordova CLI v6.3.1, Cordova Windows v4.4.2 on Surface Pro 4.
> I have Visual Studio 2015 installed and the Win 10 SDK and can successfully 
> deploy my apps to the SurfacePro using the Cordova command line via:
> cordova run windows
> I have a Lumia 550 Windows 10 phone connected via USB to the SurfacePro and 
> have enabled Developer Mode, Device discovery and Device Portal (without 
> Authentication) on the phone in the Settings under "For Developers".
> I can deploy to this phone by opening the CordovaApp.sln file generated by 
> Cordova in Visual Studio, selecting ARM and deploying to the attached device. 
> It works well.
> When I run this command:
> WinAppDeployCmd devices
> I get this output which indicates that my phone is found:
> Discovering devices...
> IP Address  GUID                       Model/Name
> 127.0.0.1     <GUID removed>   Lumia 550 (RM-1127)
> Done.
> However, when I run the following Cordova CLI command:
> cordova run windows --list
> I get this output which indicates no devices found:
> Available windows devices:
> Available windows virtual devices:
> Given that Cordova doesn't recognise my attached device, I am not able to 
> deploy directly to it using the Cordova CLI.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to