Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-19313] iOS: appc info -t ios command lists device not physically connected

GitHub Issuen/a
TypeBug
PriorityNone
StatusClosed
ResolutionCannot Reproduce
Resolution Date2017-05-26T18:30:57.000+0000
Affected Version/sRelease 4.1.1
Fix Version/sn/a
ComponentsCLI, iOS
Labelsqe-4.1.1
ReporterEric Merriman
AssigneePraveen Innamuri
Created2015-08-04T21:42:06.000+0000
Updated2017-05-26T18:30:57.000+0000

Description

Description:

While doing some testing, I had my personal device "Eric's 6" sitting on my desk. After a few test installs to a device called "newton" I got this error:
[ERROR] :  Invalid "--device-id" value "08e438859cff384c07529d645ca188746afeb8c7"
Available iOS Devices:
  <removed for privacy>  Eric's 6
  itunes                                    iTunes Sync
For help, run: titanium help build
TRACE  | titanium exited with exit code 1
ERROR  | Error: ti run exited with error code 1
    at ChildProcess.<anonymous> (/Users/eric/.appcelerator/install/4.1.2/package/node_modules/appc-cli-titanium/plugins/run.js:84:66)
    at ChildProcess.emit (events.js:117:20)
    at Process.ChildProcess._handle.onexit (child_process.js:820:12)
Since I didn't have my device connected I was surprised to see it in the list of available devices. Doing some investigation I noted that "newton" seemed to be available unreliably when this issue occurs. Meaning if "Eric's 6" is listed, "newton" may not be in the list. It was sometimes however, as shown here:
Connected iOS Devices
  Newton
    UDID                      = 08e438859cff384c07529d645ca188746afeb8c7
    Type                      = iPhone (#3b3b3c)
    iOS Version               = 8.0.2
    CPU Architecture          = arm64
  Eric's 6
    UDID                      = <removed for privacy>
    Type                      = iPhone (#3b3b3c)
    iOS Version               = 8.3
    CPU Architecture          = arm64
*Please note:* iTunes wireless sync was not enabled, and iTunes running did not have an effect on this issue. My device is on the same wifi network. When wifi is turned off on the phone it isn't visible to "appc info" "newton" device is mostly not available when my phone is awake and listed in the appc info output

Steps to reproduce:

1) Connect a device via cable to test machine running Mac OS 10.10.x or better 2) run command
appc ti info -t ios
- verify device is visible 3) Using additional device connected to same wifi as Mac system, wake it up 4) run
appc ti info -t ios

Result:

Physically connected device is no longer shown in output. Wireless device is listed in output but can't be installed to.

Expected Result:

Only physically connected devices are shown in "appc ti info" output

Comments

  1. Lee Morris 2017-05-26

    Closing this ticket as the issue cannot be reproduced with the following environment; iPhone 7 (10.2) MacOS 10.11.6 (15G31) Studio 4.9.0.201705021158 Ti SDK 6.1.0.v20170519131839 Appc NPM 4.2.9 Appc CLI 6.2.1 Ti CLI 5.0.13 Alloy 1.9.11 Arrow 2.0.0 Xcode 8.2 (8C38) Node v4.8.2 Java 1.7.0_80

JSON Source