Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-20212] Windows: Can't find windows device or emulators

GitHub Issuen/a
TypeBug
PriorityCritical
StatusClosed
ResolutionCannot Reproduce
Resolution Date2016-03-30T23:45:58.000+0000
Affected Version/sRelease 5.0.2, Release 5.1.1
Fix Version/sn/a
ComponentsWindows
Labelswindows
Reporter Ricardo Ramirez
AssigneeGary Mathews
Created2016-01-07T18:46:17.000+0000
Updated2019-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

FileDateSize
enumerate Devices log.png2016-03-07T16:26:58.000+000013383
log.txt2016-03-07T16:26:53.000+000038362
tiinfowindows.txt2016-01-07T18:46:08.000+00009337
tilogwindows.txt2016-01-07T18:46:00.000+000012191
windowsError.png2016-02-16T19:01:04.000+0000153853

Comments

  1. Kota Iguchi 2016-01-11

    I can see from appc info it detects Windows Phone 8.1 SDK correctly but it can't find any emulators nor devices.
       C:\Users\271391>appc info
       Microsoft (R) Windows Phone SDK
         8.0
           Path                      = C:\Program Files (x86)\Microsoft SDKs\Windows Phone\v8.0\
         8.1 (selected)
           Path                      = C:\Program Files (x86)\Microsoft SDKs\Windows Phone\v8.1\
       
       Windows Phone Emulators
       Windows Phone 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.
  2. Gary Mathews 2016-01-26

    I have had this problem before, to resolve it I ran the Visual Studio installer and selected Repair. This should hopefully fix your problem.
  3. Ricardo Ramirez 2016-02-16

    [~gmathews] [~kota] The issue persist after repair too, do you have any other suggestion ?
  4. Christopher Williams 2016-03-01

    [~rramirez] Can you please run ti info -o json with the latest SDK from master branch appc 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:
       "C:\Program Files (x86)\Microsoft SDKs\Windows Phone\v8.1\Tools\AppDeploy\AppDeployCmd.exe" /EnumerateDevices
       
    That's effectively what we're running under the hood to get the emulator and device listing.
  5. Christopher Williams 2016-03-01

    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?
  6. Ricardo Ramirez 2016-03-01

    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. (C:\ProgramData\Titanium\mobilesdk\win32\5.1.1.GA\windows\cli\commands\_build\config\d eviceID.js:76:11) at CLI. (C:\Users\271391\.appcelerator\install\5.1.0\package\node_modules\appc-cli-titanium\node_modules\ titanium\lib\cli.js:838:9) at C:\Users\271391\.appcelerator\install\5.1.0\package\node_modules\appc-cli-titanium\node_modules\titanium\node_mod ules\async\lib\async.js:945:13 at Immediate.q.process (C:\Users\271391\.appcelerator\install\5.1.0\package\node_modules\appc-cli-titanium\node_modu les\titanium\node_modules\async\lib\async.js:913:25) at processImmediate [as _immediateCallback] (timers.js:383:17) --------------------------------------------- at Object.setImmediate (C:\Users\271391\.appcelerator\install\5.1.0\package\node_modules\appc-cli-titanium\node_modu les\titanium\node_modules\async\lib\async.js:200:9) at _insert (C:\Users\271391\.appcelerator\install\5.1.0\package\node_modules\appc-cli-titanium\node_modules\titanium \node_modules\async\lib\async.js:861:19) at Object.q.push (C:\Users\271391\.appcelerator\install\5.1.0\package\node_modules\appc-cli-titanium\node_modules\ti tanium\node_modules\async\lib\async.js:888:17) at C:\Users\271391\.appcelerator\install\5.1.0\package\node_modules\appc-cli-titanium\node_modules\titanium\lib\cli. js:925:9 at Array.forEach (native) at CLI.prompt (C:\Users\271391\.appcelerator\install\5.1.0\package\node_modules\appc-cli-titanium\node_modules\titan ium\lib\cli.js:924:43) at CLI. (C:\Users\271391\.appcelerator\install\5.1.0\package\node_modules\appc-cli-titanium\node_modules\ titanium\lib\cli.js:640:13) at C:\Users\271391\.appcelerator\install\5.1.0\package\node_modules\appc-cli-titanium\node_modules\titanium\node_mod ules\node-appc\lib\async.js:66:6 at C:\Users\271391\.appcelerator\install\5.1.0\package\node_modules\appc-cli-titanium\node_modules\titanium\node_mod ules\async\lib\async.js:697:13 --------------------------------------------- at C:\Users\271391\.appcelerator\install\5.1.0\package\node_modules\appc-cli-titanium\node_modules\titanium\node_mod ules\async\lib\async.js:275:35 at C:\Users\271391\.appcelerator\install\5.1.0\package\node_modules\appc-cli-titanium\node_modules\titanium\node_mod ules\async\lib\async.js:44:16 at C:\Users\271391\.appcelerator\install\5.1.0\package\node_modules\appc-cli-titanium\node_modules\titanium\node_mod ules\async\lib\async.js:694:17 at C:\Users\271391\.appcelerator\install\5.1.0\package\node_modules\appc-cli-titanium\node_modules\titanium\node_mod ules\async\lib\async.js:173:37 at CLI. (C:\Users\271391\.appcelerator\install\5.1.0\package\node_modules\appc-cli-titanium\node_modules\ titanium\lib\cli.js:451:65) at C:\Users\271391\.appcelerator\install\5.1.0\package\node_modules\appc-cli-titanium\node_modules\titanium\node_mod ules\async\lib\async.js:689:13 at iterate (C:\Users\271391\.appcelerator\install\5.1.0\package\node_modules\appc-cli-titanium\node_modules\titanium \node_modules\async\lib\async.js:265:13) at doNTCallback0 (node.js:419:9) --------------------------------------------- at C:\Users\271391\.appcelerator\install\5.1.0\package\node_modules\appc-cli-titanium\node_modules\titanium\node_mod ules\async\lib\async.js:275:35 at C:\Users\271391\.appcelerator\install\5.1.0\package\node_modules\appc-cli-titanium\node_modules\titanium\node_mod ules\async\lib\async.js:44:16 at C:\Users\271391\.appcelerator\install\5.1.0\package\node_modules\appc-cli-titanium\node_modules\titanium\node_mod ules\async\lib\async.js:694:17 at C:\Users\271391\.appcelerator\install\5.1.0\package\node_modules\appc-cli-titanium\node_modules\titanium\node_mod ules\async\lib\async.js:173:37 at CLI. (C:\Users\271391\.appcelerator\install\5.1.0\package\node_modules\appc-cli-titanium\node_modules\ titanium\lib\cli.js:451:65) at C:\Users\271391\.appcelerator\install\5.1.0\package\node_modules\appc-cli-titanium\node_modules\titanium\node_mod ules\async\lib\async.js:689:13 at iterate (C:\Users\271391\.appcelerator\install\5.1.0\package\node_modules\appc-cli-titanium\node_modules\titanium \node_modules\async\lib\async.js:265:13) at doNTCallback0 (node.js:419:9) --------------------------------------------- at C:\Users\271391\.appcelerator\install\5.1.0\package\node_modules\appc-cli-titanium\node_modules\titanium\node_mod ules\async\lib\async.js:275:35 at C:\Users\271391\.appcelerator\install\5.1.0\package\node_modules\appc-cli-titanium\node_modules\titanium\node_mod ules\async\lib\async.js:44:16 at C:\Users\271391\.appcelerator\install\5.1.0\package\node_modules\appc-cli-titanium\node_modules\titanium\node_mod ules\async\lib\async.js:694:17 at C:\Users\271391\.appcelerator\install\5.1.0\package\node_modules\appc-cli-titanium\node_modules\titanium\node_mod ules\async\lib\async.js:173:37 at CLI. (C:\Users\271391\.appcelerator\install\5.1.0\package\node_modules\appc-cli-titanium\node_modules\ titanium\lib\cli.js:451:65) at C:\Users\271391\.appcelerator\install\5.1.0\package\node_modules\appc-cli-titanium\node_modules\titanium\node_mod ules\async\lib\async.js:689:13 at iterate (C:\Users\271391\.appcelerator\install\5.1.0\package\node_modules\appc-cli-titanium\node_modules\titanium \node_modules\async\lib\async.js:265:13) at doNTCallback0 (node.js:419:9) --------------------------------------------- at C:\Users\271391\.appcelerator\install\5.1.0\package\node_modules\appc-cli-titanium\node_modules\titanium\node_mod ules\async\lib\async.js:275:35 at C:\Users\271391\.appcelerator\install\5.1.0\package\node_modules\appc-cli-titanium\node_modules\titanium\node_mod ules\async\lib\async.js:44:16 at C:\Users\271391\.appcelerator\install\5.1.0\package\node_modules\appc-cli-titanium\node_modules\titanium\node_mod ules\async\lib\async.js:694:17 at C:\Users\271391\.appcelerator\install\5.1.0\package\node_modules\appc-cli-titanium\node_modules\titanium\node_mod ules\async\lib\async.js:173:37 at C:\Users\271391\.appcelerator\install\5.1.0\package\node_modules\appc-cli-titanium\node_modules\titanium\lib\cli. js:479:13 at WindowsBuilder. (C:\ProgramData\Titanium\mobilesdk\win32\5.1.1.GA\windows\cli\commands\_build\config\d eviceID.js:110:4) at CLI. (C:\Users\271391\.appcelerator\install\5.1.0\package\node_modules\appc-cli-titanium\node_modules\ titanium\lib\cli.js:474:16) at C:\Users\271391\.appcelerator\install\5.1.0\package\node_modules\appc-cli-titanium\node_modules\titanium\node_mod ules\async\lib\async.js:689:13 at iterate (C:\Users\271391\.appcelerator\install\5.1.0\package\node_modules\appc-cli-titanium\node_modules\titanium \node_modules\async\lib\async.js:265:13) --------------------------------------------- at C:\Users\271391\.appcelerator\install\5.1.0\package\node_modules\appc-cli-titanium\node_modules\titanium\node_mod ules\async\lib\async.js:275:35 at C:\Users\271391\.appcelerator\install\5.1.0\package\node_modules\appc-cli-titanium\node_modules\titanium\node_mod ules\async\lib\async.js:44:16 at C:\Users\271391\.appcelerator\install\5.1.0\package\node_modules\appc-cli-titanium\node_modules\titanium\node_mod ules\async\lib\async.js:694:17 at C:\Users\271391\.appcelerator\install\5.1.0\package\node_modules\appc-cli-titanium\node_modules\titanium\node_mod ules\async\lib\async.js:173:37 at CLI. (C:\Users\271391\.appcelerator\install\5.1.0\package\node_modules\appc-cli-titanium\node_modules\ titanium\lib\cli.js:523:9) at C:\Users\271391\.appcelerator\install\5.1.0\package\node_modules\appc-cli-titanium\node_modules\titanium\node_mod ules\async\lib\async.js:689:13 at iterate (C:\Users\271391\.appcelerator\install\5.1.0\package\node_modules\appc-cli-titanium\node_modules\titanium \node_modules\async\lib\async.js:265:13) at doNTCallback0 (node.js:419:9) --------------------------------------------- at C:\Users\271391\.appcelerator\install\5.1.0\package\node_modules\appc-cli-titanium\node_modules\titanium\node_mod ules\async\lib\async.js:275:35 at C:\Users\271391\.appcelerator\install\5.1.0\package\node_modules\appc-cli-titanium\node_modules\titanium\node_mod ules\async\lib\async.js:44:16 at C:\Users\271391\.appcelerator\install\5.1.0\package\node_modules\appc-cli-titanium\node_modules\titanium\node_mod ules\async\lib\async.js:694:17 at C:\Users\271391\.appcelerator\install\5.1.0\package\node_modules\appc-cli-titanium\node_modules\titanium\node_mod ules\async\lib\async.js:173:37 at CLI. (C:\Users\271391\.appcelerator\install\5.1.0\package\node_modules\appc-cli-titanium\node_modules\ titanium\lib\cli.js:523:9) at C:\Users\271391\.appcelerator\install\5.1.0\package\node_modules\appc-cli-titanium\node_modules\titanium\node_mod ules\async\lib\async.js:689:13 at iterate (C:\Users\271391\.appcelerator\install\5.1.0\package\node_modules\appc-cli-titanium\node_modules\titanium \node_modules\async\lib\async.js:265:13) at doNTCallback0 (node.js:419:9) --------------------------------------------- at C:\Users\271391\.appcelerator\install\5.1.0\package\node_modules\appc-cli-titanium\node_modules\titanium\node_mod ules\async\lib\async.js:275:35 at C:\Users\271391\.appcelerator\install\5.1.0\package\node_modules\appc-cli-titanium\node_modules\titanium\node_mod ules\async\lib\async.js:44:16 at C:\Users\271391\.appcelerator\install\5.1.0\package\node_modules\appc-cli-titanium\node_modules\titanium\node_mod ules\async\lib\async.js:694:17 at C:\Users\271391\.appcelerator\install\5.1.0\package\node_modules\appc-cli-titanium\node_modules\titanium\node_mod ules\async\lib\async.js:173:37 at CLI. (C:\Users\271391\.appcelerator\install\5.1.0\package\node_modules\appc-cli-titanium\node_modules\ titanium\lib\cli.js:523:9) at C:\Users\271391\.appcelerator\install\5.1.0\package\node_modules\appc-cli-titanium\node_modules\titanium\node_mod ules\async\lib\async.js:689:13 at iterate (C:\Users\271391\.appcelerator\install\5.1.0\package\node_modules\appc-cli-titanium\node_modules\titanium \node_modules\async\lib\async.js:265:13) at doNTCallback0 (node.js:419:9) --------------------------------------------- at C:\Users\271391\.appcelerator\install\5.1.0\package\node_modules\appc-cli-titanium\node_modules\titanium\node_mod ules\async\lib\async.js:275:35 at C:\Users\271391\.appcelerator\install\5.1.0\package\node_modules\appc-cli-titanium\node_modules\titanium\node_mod ules\async\lib\async.js:44:16 at C:\Users\271391\.appcelerator\install\5.1.0\package\node_modules\appc-cli-titanium\node_modules\titanium\node_mod ules\async\lib\async.js:694:17 at C:\Users\271391\.appcelerator\install\5.1.0\package\node_modules\appc-cli-titanium\node_modules\titanium\node_mod ules\async\lib\async.js:173:37 at CLI. (C:\Users\271391\.appcelerator\install\5.1.0\package\node_modules\appc-cli-titanium\node_modules\ titanium\lib\cli.js:523:9) at C:\Users\271391\.appcelerator\install\5.1.0\package\node_modules\appc-cli-titanium\node_modules\titanium\node_mod ules\async\lib\async.js:689:13 at iterate (C:\Users\271391\.appcelerator\install\5.1.0\package\node_modules\appc-cli-titanium\node_modules\titanium \node_modules\async\lib\async.js:265:13) at doNTCallback0 (node.js:419:9) PS C:\Users\271391\Documents\Appcelerator_Studio_Workspace\sampleWindowsApp> C:\Users\271391\Documents\Appcelerator_Stud io_Workspace\sampleWindowsApp
  7. Christopher Williams 2016-03-02

    [~rramirez] And what is the output of the other commands I posted in comments above?
  8. Ricardo Ramirez 2016-03-07

    [~cwilliams] I have attached the log and a screen shot.
  9. Christopher Williams 2016-03-09

    [~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.
  10. Christopher Williams 2016-03-21

    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.
  11. Ricardo Ramirez 2016-03-29

    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 :)

JSON Source