[TIMOB-19332] Intermittently, if you try to install to an iOS device, then the Appc CLI will install your app to iTunes
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | High |
Status | Closed |
Resolution | Invalid |
Resolution Date | 2015-08-12T23:23:57.000+0000 |
Affected Version/s | Release 5.0.0 |
Fix Version/s | n/a |
Components | Tooling |
Labels | n/a |
Reporter | Wilson Luu |
Assignee | Eric Merriman |
Created | 2015-08-07T21:30:30.000+0000 |
Updated | 2017-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:
Install your project to an iOS device:
Then, clean your project:
Install your project again to an iOS device:
*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:
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
File | Date | Size |
---|---|---|
trace_logs.txt | 2015-08-07T21:26:23.000+0000 | 2458616 |
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
andios.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.As Chris has explained. Closing this as invalid.
Closing ticket as invalid.