Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-16162] CLI: iOS: Add support to node-ios-device to tail system log

GitHub Issuen/a
TypeNew Feature
PriorityHigh
StatusClosed
ResolutionFixed
Resolution Date2014-08-05T16:11:02.000+0000
Affected Version/sRelease 3.2.0
Fix Version/s2014 Sprint 08, 2014 Sprint 08 Tooling, Release 3.3.0
ComponentsCLI, iOS
Labelsmodule_build, qe-closed-3.3.0, qe-manualtest
ReporterChris Barber
AssigneeChris Barber
Created2014-01-10T14:29:24.000+0000
Updated2014-08-05T16:11:02.000+0000

Description

When doing a iOS device build, the only way to get log output is via the Xcode console. It should be possible to add support to node-ios-device for streaming the syslog to the CLI. Check out the deviceconsole (https://github.com/eswick/deviceconsole) project for some implementation details.

Comments

  1. Chris Barber 2014-04-01

    Master pull request: https://github.com/appcelerator/titanium_mobile/pull/5564
  2. Dan Tamas 2014-04-01

    Yay :D
  3. Chris Barber 2014-04-01

    You still need to manually launch the app. :( I'm working on an idea of how to start the app automatically, but I haven't been able to get it to work yet.
  4. Dan Tamas 2014-04-01

    Like this :)
       instruments -t '/Applications/Xcode.app/Contents/Applications/Instruments.app/Contents/PlugIns/AutomationInstrument.bundle/Contents/Resources/Automation.tracetemplate' -D /tmp/sti.trace -w 845ff06d84d091526fd6c7502aa1894b8d8377b8  test.app 
       
    however for some reason on my device it dies with
       2014-04-01 19:52:34.945 instruments[4393:1207] Permission to debug info.rborn.test was denied.  The app must be signed with a development identity (e.g. iOS Developer).
       Instruments Trace Error : Error Starting Recording
       
    I think there is some solution on [this SO](http://stackoverflow.com/a/20276258) but don't have the time right now to investigate more :(
  5. Dan Tamas 2014-04-01

    Oh, don't forget to delete the output after you finish cause the trace logs are pretty big (/tmp/sti.trace)
  6. Dan Tamas 2014-04-01

    Hope I didn't sound like a smart a** :|
  7. Neha Mittal 2014-04-29

    Verified fix using below environment: Appc Studio: 3.3.0.201404281355 SDK build: 3.3.0.v20140425191906 acs: 1.0.14 npm: 1.3.2 alloy: 1.4.0-dev CLI: titanium-3.3.0-dev titanium-code-processor:1.1.1-beta1 Xcode: 5.1.1 Osx: Mavericks(10.9.2) Device: iPhone 5S (7.1.1) Able to see the logs from both Xcode and studio console. Hence closing the issue.

JSON Source