[TIMOB-20212] Windows: Can't find windows device or emulators
GitHub Issue | n/a |
Type | Bug |
Priority | Critical |
Status | Closed |
Resolution | Cannot Reproduce |
Resolution Date | 2016-03-30T23:45:58.000+0000 |
Affected Version/s | Release 5.0.2, Release 5.1.1 |
Fix Version/s | n/a |
Components | Windows |
Labels | windows |
Reporter | Ricardo Ramirez |
Assignee | Gary Mathews |
Created | 2016-01-07T18:46:17.000+0000 |
Updated | 2019-05-09T06:44:59.000+0000 |
Description
Issue Description
Studio and CLI can't find the windows phone device when the user is trying to build on windows device, Visual Studio is detecting and building on device so, this is not a hardware issue.
*Appc Info and logs attached
Attachments
I can see from
appc info
it detects Windows Phone 8.1 SDK correctly but it can't find any emulators nor devices.I'm interested in how it works when you try very latest Titanium SDK to see if it works. Could you try it? You can get latest SDK by executing
appc ti idk install -b master
from console.I have had this problem before, to resolve it I ran the Visual Studio installer and selected
Repair
. This should hopefully fix your problem.[~gmathews] [~kota] The issue persist after repair too, do you have any other suggestion ?
[~rramirez] Can you please run
ti info -o json
with the latest SDK from master branchappc ti sdk install -b master
and paste/attach the output here? It'd be good to see what we are detecting from their environment. Another good command to try inside a command prompt and attach the output is:That's effectively what we're running under the hood to get the emulator and device listing.
Another interesting thing here is that the device-id from the error output is just plain "0" but should be something like "8-1-0". Have you tried running from the CLI outside Studio?
this is the result from shell: PS C:\Users\271391\Documents\Appcelerator_Studio_Workspace\sampleWindowsApp> appc ti build -p windows -T wp-device Appcelerator Command-Line Interface, version 5.1.0 Copyright (c) 2014-2015, Appcelerator, Inc. All Rights Reserved. C:\ProgramData\Titanium\mobilesdk\win32\5.1.1.GA\windows\cli\commands\_build\config\deviceID.js:76 throw new Error( ^ Error: No Windows Phone devices found at WindowsBuilder.
[~rramirez] And what is the output of the other commands I posted in comments above?
[~cwilliams] I have attached the log and a screen shot.
[~rramirez] Looks like even MS's native tooling isn't listing the emulators either. Do they have the Windows 8.1 Phone emulators installed? https://www.microsoft.com/en-us/download/details.aspx?id=43719 Maybe a bad/broken VS2013 installation? They may want to try and repair their VS2013 installation.
OK, so maybe our tooling is just going wonky when it gets no emulator listing? We should support the use case where they want to build for device on a machine with no emulators. It looks like they're trying with some older versions of the SDK, however. We may have already actually fixed this? [~rramirez] Can you have them update the SDK they're trying the app with (in tiapp.xml) ? The last logs you gave indicate they were trying 5.1.1GA. Can they try 5.2.0GA or a 5.3.0 nightly build (appc ti idk install -b 5_3_X -d)? They not only have to install the SDK, but update the app's tiapp.xml to use it.
Hello ! The problem is resolved after installing the windows emulators. We have tried on other machine which had hyper v support, device is detected only after installing the emulators. You may close this ticket :)