Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-13768] LiveView: iOS simulator does not start when LiveView server is stopped

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionFixed
Resolution Date2013-05-10T17:10:49.000+0000
Affected Version/sn/a
Fix Version/s2013 Sprint 10 JS, 2013 Sprint 10, Release 3.1.1, Release 3.2.0
ComponentsLiveView
Labelsn/a
ReporterPraveen Innamuri
AssigneeChristian Sullivan
Created2013-05-06T22:51:20.000+0000
Updated2013-06-13T12:14:55.000+0000

Description

Comments

  1. Eric Merriman 2013-05-07

    This is related, from the console on a liveview enabled studio (or CLI) simulator build:
       /bin/sh: /Applications/Appcelerator: No such file or directory
       
    Here is the problem:
       cli.addHook('build.post.compile', function(build, finished) {
                       var fserverBin = path.normalize(__dirname + '/../bin/liveview-server');
                       debug('Running post:build.pre.compile hook');
                       if (cli.argv.liveview) {
                               require('child_process').spawn(process.execPath, [
                                       fserverBin,
                                       "start",
                                       "--project-dir", 
                                       cli.argv['project-dir'], 
                                       '--daemonize'
                               ]);
                               // exec(fserverBin + ' start --project-dir ' + cli.argv['project-dir'] + ' --daemonize');
                       } else {
                               exec(fserverBin + ' stop', {silent: true});
                       }
                       finished();
               });
       
    This section is not handling the space in the path correctly and so does not start the server.
  2. Christian Sullivan 2013-05-10

    Resolved in 0.1.16 https://github.com/appcelerator/liveview/tree/0.1.16
  3. Dhirendra Jha 2013-06-13

    Tested With: Appcelerator Studio: 3.1.1.201306121633 Titanium SDK: 3.1.1.v20130612114553 acs: 1.0.2 alloy: 1.1.3-cr npm: 1.2.14 titanium: 3.1.1-cr titanium-code-processor: 1.0.1-cr4 LiveView version 0.1.24 Xcode - 4.5 OS: Mac 10.8.4 Device: iPadMini v6.0, iOS Simulator 6.0 Result - Stop the liveview server. Execute the app with liveview flag. iOS simulator shows up and app launch successfully. Hence closing this issue.

JSON Source