Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-23253] Windows: Build errors when building to device and selecting second option in device prompt

GitHub Issuen/a
TypeBug
PriorityCritical
StatusClosed
ResolutionFixed
Resolution Date2016-04-27T20:36:20.000+0000
Affected Version/sRelease 5.3.0
Fix Version/sRelease 5.3.0, windowslib 0.4.9, windowslib 0.4.10
ComponentsWindows
Labelsqe-5.3.0
ReporterEwan Harris
AssigneeChristopher Williams
Created2016-04-20T21:40:50.000+0000
Updated2016-05-12T22:27:42.000+0000

Description

Description

When building to wp-device and selecting the second option in the prompt, the build will fail with \[ERROR] Unable to find an Windows Phone device with the UDID "undefined". Although this second option is more user friendly as it contains information about the device being built to, rather than just Device,we should not present the option if it will fail the build *To workaround this issue just select the first option*

Steps to reproduce

Build a project using appc run -p windows -T wp-device and select option 2

Actual result

The build will fail with \[ERROR] Unable to find an Windows Phone device with the UDID "undefined"

Expected result

The build should not fail, we should no present the second option if it will fail the build

Comments

  1. Christopher Williams 2016-04-21

    [~eharris] Do you have the output for the options and from ti info -o json to take a look? It'd be good to see what we're offering the user as a valid value and what the model of the device looks like in our ti info model.
  2. Christopher Williams 2016-04-21

    The relevant section of the info for me:
       "devices": [
                               {
                                       "name": "Device",
                                       "udid": 0,
                                       "index": 0,
                                       "version": "10.0",
                                       "wpsdk": "10.0"
                               },
                               {
                                       "name": "Windows 10 Mobile Device",
                                       "udid": "00000045-8aab-6667-0000-000000000000",
                                       "index": 0,
                                       "wpsdk": null,
                                       "ip": "127.0.0.1"
                               }
                       ]
       
  3. Ewan Harris 2016-04-21

    [~cwilliams] here you go, pretty much matches your output
       "devices": [
                               {
                                       "name": "Device",
                                       "udid": 0,
                                       "index": 0,
                                       "version": "10.0",
                                       "wpsdk": "10.0"
                               },
                               {
                                       "name": "Lumia 930 (RM-1045)",
                                       "udid": "00000015-4e57-1877-0000-000000000000",
                                       "index": 0,
                                       "wpsdk": null,
                                       "ip": "127.0.0.1"
                               }
                       ]
       
  4. Ewan Harris 2016-05-12

    Verified using: Windows 10 Pro Visual Studio 2015 Community Update 2 Appc Core: 5.3.0-43 Appc NPM: 4.2.5-5 Ti SDK: 5.3.0.v20160512105713 When building to a Windows device there is no longer a duplicate entry for the device and the process no longer prompts to select a device, the process is successful for both 8.1 and 10.0 phones. Filed TIMOB-23371 to improve handling of multiple devices. Closing ticket

JSON Source