Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-18130] CLI: Ti build command fails for all platforms due to "wrench undefined"

GitHub Issuen/a
TypeBug
PriorityCritical
StatusClosed
ResolutionFixed
Resolution Date2014-12-04T00:14:01.000+0000
Affected Version/sRelease 3.5.0
Fix Version/sRelease 4.0.0
ComponentsAndroid, BlackBerry, CLI, iOS, MobileWeb, Tooling
Labelsqe-3.5.0, regression
ReporterEric Merriman
AssigneePraveen Innamuri
Created2014-12-03T22:48:50.000+0000
Updated2014-12-05T23:25:22.000+0000

Description

Description:

Our automated SDK validations board went red for all platforms with SDK 3.5.0.v20141203112513. After working with Tim, it seems that a missing "require wrench" is the root of the problem. All build commands "ti build" fail with "wrench is undefined" There is some variance by platform: For iOS and blackberry, a simple error is shown:
[ERROR] wrench is not defined
For mobileweb and Android, you get the following:
/usr/local/lib/node_modules/titanium/node_modules/longjohn/dist/longjohn.js:185
        throw e;
              ^
ReferenceError: wrench is not defined
    at patchLogger (/Users/eric/Library/Application Support/Titanium/mobilesdk/osx/3.5.0.v20141203112513/cli/commands/build.js:273:29)
    at conf.options.appc.util.mix.project-dir.callback (/Users/eric/Library/Application Support/Titanium/mobilesdk/osx/3.5.0.v20141203112513/cli/commands/build.js:111:9)
    at /usr/local/lib/node_modules/titanium/lib/cli.js:632:28
    at conf.options.appc.util.mix.project-dir.validate (/Users/eric/Library/Application Support/Titanium/mobilesdk/osx/3.5.0.v20141203112513/cli/commands/build.js:175:9)
    at CLI.<anonymous> (/usr/local/lib/node_modules/titanium/lib/cli.js:622:14)
    at /usr/local/lib/node_modules/titanium/node_modules/async/lib/async.js:551:21
    at /usr/local/lib/node_modules/titanium/node_modules/async/lib/async.js:227:13
    at iterate (/usr/local/lib/node_modules/titanium/node_modules/async/lib/async.js:134:13)
THIS IS A REGRESSION

Steps to reproduce:

1) Download SDK 3.5.0.v20141203112513 2) Set this sdk as "selected" in the ti config or with the "-d" flag or by "ti sdk" command 3) Create a project with this sdk in the tiapp.xml 4) Run command "ti build" and choose any platform

Result:

Build failure due to missing wrench

Expected Result:

Build completes successfully

Comments

  1. Chris Barber 2014-12-03

    This is because there was no backport of TIMOB-18074. Someone needs to backport https://github.com/appcelerator/titanium_mobile/pull/6379 to 3_5_X and fast.
  2. Praveen Innamuri 2014-12-03

    https://github.com/appcelerator/titanium_mobile/pull/6427
  3. Wilson Luu 2014-12-05

    Closing ticket as fixed. Verified I was able to build a Titanium project using ti build for different platforms. Tested on: Appcelerator Studio, build: 3.4.1.201410281743 SDK build: 3.5.0.v20141205141717 CLI: 3.4.1 Alloy: 1.5.1 Xcode: 6.1.1 GM

JSON Source