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
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.
https://github.com/appcelerator/titanium_mobile/pull/6427
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