Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-23414] iOS: titanium_mobile master is broken

GitHub Issuen/a
TypeBug
PriorityCritical
StatusClosed
ResolutionFixed
Resolution Date2016-05-20T09:27:11.000+0000
Affected Version/sn/a
Fix Version/sRelease 5.4.0
ComponentsiOS
Labelsqe-5.4.0
ReporterAndrew McElroy
AssigneeChee Kiat Ng
Created2016-05-19T18:24:03.000+0000
Updated2016-07-11T20:59:29.000+0000

Description

When I download from http://builds.appcelerator.com/#master and try to install this OSX build from http://builds.appcelerator.com/mobile/master/mobilesdk-5.4.0.v20160517164706-osx.zip or when I clone down appcelerator/titanium_mobile and run scons ( my environment is set up correctly) in both cases I get: ti build --platform=iphone SyntaxError: missing ) after argument list at exports.runInThisContext (vm.js:53:16) at Module._compile (module.js:373:25) at Object.Module._extensions..js (module.js:416:10) at Module.load (module.js:343:32) at Function.Module._load (module.js:300:12) at Module.require (module.js:353:17) at require (internal/module.js:12:17) at /Users/andrewmcelroy/Library/Application Support/Titanium/mobilesdk/osx/5.4.0.v20160517164706/node_modules/titanium-sdk/lib/titanium.js:86:14 at /Users/andrewmcelroy/Library/Application Support/Titanium/mobilesdk/osx/5.4.0.v20160517164706/node_modules/async/lib/async.js:718:13 at async.forEachOf.async.eachOf (/Users/andrewmcelroy/Library/Application Support/Titanium/mobilesdk/osx/5.4.0.v20160517164706/node_modules/async/lib/async.js:233:13) --------------------------------------------- at Object.run (/usr/local/lib/node_modules/titanium/node_modules/node-appc/lib/subprocess.js:59:8) at find (/usr/local/lib/node_modules/titanium/node_modules/node-appc/lib/subprocess.js:96:14) at /usr/local/lib/node_modules/titanium/node_modules/async/lib/async.js:945:13 at Immediate.q.process (/usr/local/lib/node_modules/titanium/node_modules/async/lib/async.js:913:25) at processImmediate [as _immediateCallback] (timers.js:383:17) --------------------------------------------- at Object.setImmediate (/usr/local/lib/node_modules/titanium/node_modules/async/lib/async.js:200:9) at _insert (/usr/local/lib/node_modules/titanium/node_modules/async/lib/async.js:861:19) at Object.q.push (/usr/local/lib/node_modules/titanium/node_modules/async/lib/async.js:888:17) at Object.findExecutable (/usr/local/lib/node_modules/titanium/node_modules/node-appc/lib/subprocess.js:113:8) at resolveNode (/usr/local/lib/node_modules/titanium/lib/titanium.js:97:34) at /usr/local/lib/node_modules/titanium/lib/titanium.js:74:5 at Object. (/usr/local/lib/node_modules/titanium/lib/titanium.js:80:2) at Module._compile (module.js:409:26) at Object.Module._extensions..js (module.js:416:10) FYI, Master is currently broken.

Comments

  1. Andrew McElroy 2016-05-19

    More information: hash aafdb83 compiles and builds iOS apps successfully. I will try updating git commits until I find the busted version of titanium_mobile master.
  2. Andrew McElroy 2016-05-19

    anything after this commit https://github.com/appcelerator/titanium_mobile/commit/b8cc9b614644c6ff17bd09da79e158450fc7b0ca will produce a bad build. Yes, I sat down and one commit by one scons each commit until ti build --platform=iphone no longer works
  3. Andrew McElroy 2016-05-19

    just to be clear it doesn't matter if I do appc ti build --platform=iphone or just ti build --platform=iphone.
  4. Andrew McElroy 2016-05-19

    also, this isn't iphone specific, if i --platform=android I get the same error: ti build --platform=android SyntaxError: missing ) after argument list at exports.runInThisContext (vm.js:53:16) at Module._compile (module.js:373:25) at Object.Module._extensions..js (module.js:416:10) at Module.load (module.js:343:32) at Function.Module._load (module.js:300:12) at Module.require (module.js:353:17) at require (internal/module.js:12:17) at /Users/andrewmcelroy/Library/Application Support/Titanium/mobilesdk/osx/5.4.0/node_modules/titanium-sdk/lib/titanium.js:86:14 at /Users/andrewmcelroy/Library/Application Support/Titanium/mobilesdk/osx/5.4.0/node_modules/async/lib/async.js:718:13 at async.forEachOf.async.eachOf (/Users/andrewmcelroy/Library/Application Support/Titanium/mobilesdk/osx/5.4.0/node_modules/async/lib/async.js:233:13) --------------------------------------------- at Object.run (/usr/local/lib/node_modules/titanium/node_modules/node-appc/lib/subprocess.js:59:8) at find (/usr/local/lib/node_modules/titanium/node_modules/node-appc/lib/subprocess.js:96:14) at /usr/local/lib/node_modules/titanium/node_modules/async/lib/async.js:945:13 at Immediate.q.process (/usr/local/lib/node_modules/titanium/node_modules/async/lib/async.js:913:25) at processImmediate [as _immediateCallback] (timers.js:383:17) --------------------------------------------- at Object.setImmediate (/usr/local/lib/node_modules/titanium/node_modules/async/lib/async.js:200:9) at _insert (/usr/local/lib/node_modules/titanium/node_modules/async/lib/async.js:861:19) at Object.q.push (/usr/local/lib/node_modules/titanium/node_modules/async/lib/async.js:888:17) at Object.findExecutable (/usr/local/lib/node_modules/titanium/node_modules/node-appc/lib/subprocess.js:113:8) at resolveNode (/usr/local/lib/node_modules/titanium/lib/titanium.js:97:34) at /usr/local/lib/node_modules/titanium/lib/titanium.js:74:5 at Object. (/usr/local/lib/node_modules/titanium/lib/titanium.js:80:2) at Module._compile (module.js:409:26) at Object.Module._extensions..js (module.js:416:10)
  5. Chee Kiat Ng 2016-05-20

    Thanks for the find [~sophrinix]! Your log really helps to pinpoint the issue. Fix coming soon!
  6. Chee Kiat Ng 2016-05-20

    PR here: https://github.com/appcelerator/titanium_mobile/pull/8007

    Steps to test

    Do a ti build -p ios and there won't be an error.
  7. Josh Longton 2016-07-11

    Verified as fixed. Tested on:
 iPhone 6 plus (9.1) iOS Simulator (9.3) 
Mac OSX El Capitan 10.11.5 Studio: 4.7.0.201607111053 
Ti SDK: 5.4.0.v20160705213725 
Appc NPM: 4.2.8-1 Appc CLI: 5.4.0-29 
Xcode 7.3.1 Node v4.4.4 *
Closing Ticket*

JSON Source