Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-13431] LiveView: iOS Simulator LiveView fails to build

GitHub Issuen/a
TypeBug
PriorityCritical
StatusClosed
ResolutionFixed
Resolution Date2013-04-13T03:44:29.000+0000
Affected Version/sRelease 3.1.0
Fix Version/s2013 Sprint 07, 2013 Sprint 08 JS, 2013 Sprint 08, Release 3.1.2, Release 3.2.0
ComponentsLiveView
Labelsliveview, qe-3.1.0, qe-testadded
ReporterDustin Hyde
AssigneeChristian Sullivan
Created2013-04-06T02:55:21.000+0000
Updated2013-12-03T20:59:52.000+0000

Description

LiveView: iOS Simulator LiveView fails to run. Disabling LiveView allows app to build and run successfully. Logs attached. Test Steps: 1. Open Appcelerator Studio. 2. Create Titanium Project w/Appcelerator Services. 3. Run Configurations... iOS Simulator => LiveView Enabled => Run. Actual Result: App fails to build. Fails on terminal and Appcelerator Studio. See logs.

Attachments

FileDateSize
live-ios-terminal.txt2013-04-06T02:56:43.000+000013959
liveview-ios-studio.txt2013-04-06T02:56:43.000+000017350

Comments

  1. Chris Barber 2013-04-06

    It seems that you have multiple LiveView servers running. Not sure how that's possible, but we should certainly fix it by randomly picking a port above 1024 until we get one that's available. This would be done here: https://github.com/appcelerator/liveview/blob/master/lib/fserver.js#L20.
  2. Christian Sullivan 2013-04-08

    The problem is the hook got installed twice. The port can not be randomly assigned since it is replaced in the liveview.js file on build. I will do a double check that the hook is not already installed.
  3. Christian Sullivan 2013-04-09

    Fixed https://github.com/appcelerator/liveview/tree/0.1.1-cr
  4. Federico Casali 2013-04-11

    Bug behavior is present in Appcelerator Studio 3.1.0.201304091724 Reopening and assigning to Michael.
  5. Michael Xia 2013-04-11

    The bin directories under packaged node_modules/liveview source were not included in the build due to .gitignore. Pushed the fix, and it's available in 3.1.0.201304111438 and after.
  6. Federico Casali 2013-04-12

    Reopening. Appcelerator Studio 3.1.0.201304111438 LiveView version 0.1.2-cr CLI version 3.1.0-cr ti config 'paths.hooks' output:
       paths.hooks        = ["/Users/fcasali/tools/Appcelerator_Studio_versions/Appcelerator_Studio 6/plugins/com.appcelerator.titanium.liveview.core_1.0.0.1365715671/node_modules/liveview/hook"]
       
    Steps to reproduce: 1. Create two separate projects. 2. Build/run first project with LiveView enabled Result: project runs correctly and LiveView works as expected 3. Build/run the first project again Result: project runs correctly and LiveView works as expected 4. build/run the second project Result: project fails to build and bug behavior is reproduced 5. kill node processes (killall node) and run again the second project Result: project runs correctly and LiveView works as expected. 6. Build/run the first project Result: project fails to build and bug behavior is reproduced Same results if directly running from terminal the liveView command used by Studio; in my case:
       "/usr/local/bin/titanium" "--no-colors" "--no-prompt" "build" "--platform" "iphone" "--sdk" "3.1.0.v20130411190058" "--log-level" "trace" "--target" "simulator" "--ios-version" "6.1" "--device-family" "iphone" "--sim-version" "6.1" "--liveview"
       
  7. Christian Sullivan 2013-04-12

    PR https://github.com/appcelerator/liveview/pull/12
  8. Michael Xia 2013-07-29

    Verified the default alloy app launches successfully with LiveView on the following configuration: Appcelerator Studio, build: 3.1.2.201307261628 LiveView feature 1.0.0.201307261639 LiveView version 0.1.29 CLI 3.1.1 SDK 3.1.2.v20130723160131

JSON Source