Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-15341] Please update detect.js to use latest node-appc and make iOS build process work again

GitHub Issuen/a
TypeNew Feature
PriorityLow
StatusClosed
ResolutionWon't Fix
Resolution Date2013-09-25T17:14:42.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsiOS
Labelsn/a
ReporterAndrey Verbin
AssigneeChris Barber
Created2013-09-13T14:43:42.000+0000
Updated2017-03-22T21:40:02.000+0000

Description

iphone detect.js relies on node-appc function (subprocess.run) which is available in edge node-appc. But Titanium SDK is still uses old node-appc (but new detect.js) which does not have appc.subprocess.run function.

Comments

  1. Chris Barber 2013-09-25

    In order to use the latest bleeding edge Titanium SDK 3.2 (master), you MUST use the bleeding edge Titanium CLI 3.2. (master). If the Titanium SDK 3.2 you are using is a CI build, it will work just fine. If you are building Titanium SDK 3.2 from source (using scons), you MUST specify the node-appc-branch=master param.
       

    clean up npm cache

    sudo rm -rf ~/.npm

    get latest CLI

    sudo npm install -g git://github.com/appcelerator/titanium.git

    build titanium sdk from source

    cd titanium_mobile scons node-appc-branch=master
  2. Philippe Wueger 2013-09-27

    Just for documentation, the error message in the described case will look like this:
       /usr/local/lib/node_modules/titanium/node_modules/longjohn/dist/longjohn.js:181
               throw e;
                     ^
       TypeError: Cannot read property 'run' of undefined
           at Object.<anonymous> (/Users/Philippe/Library/Application Support/Titanium/mobilesdk/osx/3.2.0/iphone/cli/lib/detect.js:25:23)
           at Module._compile (module.js:456:26)
           at Module._extensions..js (module.js:474:10)
           at Module.load (module.js:356:32)
           at Module._load (module.js:312:12)
           at Module.require (module.js:364:17)
           at require (module.js:380:17)
           at Object.<anonymous> (/Users/Philippe/Library/Application Support/Titanium/mobilesdk/osx/3.2.0/iphone/cli/commands/_build.js:37:11)
           at Module._compile (module.js:456:26)
           at Module._extensions..js (module.js:474:10)
       
  3. Licco Wee 2013-10-03

    Hi Pilippe Wueger. I have follow your command. It build success but it cant make the file target. Below is the error BUILD SUCCESSFUL Total time: 7 minutes 18 seconds scons: Reading SConscript files ... scons: done reading SConscript files. scons: Building targets ... scons: *** Do not know how to make File target `node-appc-branch-master' (/Users/licco/titanium_mobile/node-appc-branch-master). Stop. scons: building terminated because of errors. Do you have any idea?
  4. Chris Barber 2013-10-03

    [~liccowee] You have a typo, you need to use an equal (=) sign between "node-appc-branch" and "master" like this:
       scons node-appc-branch=master
       
  5. Lee Morris 2017-03-22

    Closing ticket as "Won't Fix".

JSON Source