Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-19332] Intermittently, if you try to install to an iOS device, then the Appc CLI will install your app to iTunes

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionInvalid
Resolution Date2015-08-12T23:23:57.000+0000
Affected Version/sRelease 5.0.0
Fix Version/sn/a
ComponentsTooling
Labelsn/a
ReporterWilson Luu
AssigneeEric Merriman
Created2015-08-07T21:30:30.000+0000
Updated2017-03-21T17:00:48.000+0000

Description

*Details:* Intermittently, if you try to install to an iOS device, then the Appc CLI will install your app to iTunes. *Possible steps to reproduce:*

Create a Titanium project from Appc CLI: appc new

Install your project to an iOS device: appc run -p ios -T device -l trace

Then, clean your project: appc ti clean

Install your project again to an iOS device: appc run -p ios -T device -l trace

*Actual:* Occasionally, the CLI will install your app to iTunes; see below for a short version of the trace logs and see attachment for the verbose trace logs:
WilsonComputer:monkey19326 wluu$ appc ti clean
Appcelerator Command-Line Interface, version 4.2.0-18
Copyright (c) 2014-2015, Appcelerator, Inc.  All Rights Reserved.

Preproduction Environment Active

[DEBUG] Detecting plugins in /Users/wluu/monkey19326/plugins
[DEBUG] Detected plugin: ti.alloy @ /Users/wluu/monkey19326/plugins/ti.alloy
[DEBUG] Detecting plugins in /Users/wluu/Library/Application Support/Titanium/plugins
[DEBUG] Detected plugin: com.appcelerator.test @ /Users/wluu/Library/Application Support/Titanium/plugins/com.appcelerator.test
[DEBUG] Looking for Titanium plugin id=ti.alloy version=1.0
[INFO]  Found Titanium plugin id=ti.alloy version=1.0
[DEBUG] Deleting all platform build directories
[DEBUG] Deleting /Users/wluu/monkey19326/build/.alloynewcli
[DEBUG] Deleting /Users/wluu/monkey19326/build/alloy
[DEBUG] Deleting /Users/wluu/monkey19326/build/build_iphone.log
[DEBUG] Deleting /Users/wluu/monkey19326/build/iphone
[DEBUG] Deleting /Users/wluu/monkey19326/build/map
[INFO]  Project cleaned successfully in 2s 719ms

WilsonComputer:monkey19326 wluu$ appc run -p ios -T device -l trace
Appcelerator Command-Line Interface, version 4.2.0-18
Copyright (c) 2014-2015, Appcelerator, Inc.  All Rights Reserved.

LOTS OF TRACE LOGS APPEAR HERE; LOOK AT ATTACHMENT FOR MORE DETAILS

[INFO]  Finished building the application in 2m 1s 96ms
[INFO]  Installing application into iTunes
[INFO]  Initiating iTunes sync
[TRACE] updating tiapp metadata with Appcelerator Platform...
[TRACE] Uploaded tiapp metadata with Appcelerator Platform!
TRACE  | titanium exited with exit code 0
*Expected:* The CLI should not install your app to iTunes when you specify to install to device.

Attachments

FileDateSize
trace_logs.txt2015-08-07T21:26:23.000+00002458616

Comments

  1. Chris Barber 2015-08-11

    If you're having issues reproducing this issue, then it's possible it's not an issue at all. If you don't explicitly pass in a \-\-device\-id and ios.autoSelectDevice is set to true, then it will try to use a physical device before resorting to iTunes Sync. It's possible there's a hiccup in node-ios-device where your device is not seen and fallback to iTunes Sync, but disconnecting and reconnecting should fix the issue.
  2. Chee Kiat Ng 2015-08-12

    As Chris has explained. Closing this as invalid.
  3. Lee Morris 2017-03-21

    Closing ticket as invalid.

JSON Source