Description
Building a blackberry project will fail using the command 'ti build -p blackberry -b'
Steps To Reproduce
1) Create a blackberry project
2) Run 'ti build -p blackberry -b'
Expected Result
Blackberry project should build succesfully
Actual Result
BlackBerry project fails to run build command
+Extra Information+
[ERROR] Failed to run command "build"
[ERROR] TypeError: Cannot read property '0' of undefined
at BlackberryNDK.self.build (/Users/sdowse/Library/Application Support/Titanium/mobilesdk/osx/3.2.1.v20140206170116/blackberry/cli/common/blackberryndk.js:408:62)
at build.<anonymous> (/Users/sdowse/Library/Application Support/Titanium/mobilesdk/osx/3.2.1.v20140206170116/blackberry/cli/commands/_build.js:140:15)
at CLI._fireHookCallback (/usr/local/lib/node_modules/titanium/lib/hook.js:245:12)
at /usr/local/lib/node_modules/titanium/lib/hook.js:224:10
at /usr/local/lib/node_modules/titanium/node_modules/async/lib/async.js:232:13
at /usr/local/lib/node_modules/titanium/node_modules/async/lib/async.js:142:25
at /usr/local/lib/node_modules/titanium/node_modules/async/lib/async.js:229:17
at /usr/local/lib/node_modules/titanium/node_modules/async/lib/async.js:556:34
at /usr/local/lib/node_modules/titanium/lib/hook.js:215:9
at cli.addHook.post (/Applications/Appcelerator Studio 3.2.1/plugins/com.appcelerator.titanium.liveview.core_1.1.0.1391713432/node_modules/liveview/hook/lvhook.js:116:5)
---------------------------------------------
at run (/Users/sdowse/Library/Application Support/Titanium/mobilesdk/osx/3.2.1.v20140206170116/node_modules/node-appc/lib/subprocess.js:59:8)
at /Users/sdowse/Library/Application Support/Titanium/mobilesdk/osx/3.2.1.v20140206170116/iphone/cli/lib/detect.js:356:9
at /Users/sdowse/Library/Application Support/Titanium/mobilesdk/osx/3.2.1.v20140206170116/node_modules/async/lib/async.js:511:21
at /Users/sdowse/Library/Application Support/Titanium/mobilesdk/osx/3.2.1.v20140206170116/node_modules/async/lib/async.js:227:13
at /Users/sdowse/Library/Application Support/Titanium/mobilesdk/osx/3.2.1.v20140206170116/node_modules/async/lib/async.js:111:13
at Array.forEach (native)
at _each (/Users/sdowse/Library/Application Support/Titanium/mobilesdk/osx/3.2.1.v20140206170116/node_modules/async/lib/async.js:32:24)
at async.each (/Users/sdowse/Library/Application Support/Titanium/mobilesdk/osx/3.2.1.v20140206170116/node_modules/async/lib/async.js:110:9)
Since not directly achievable via Studio, deferring to post-3.2.1
As a workaround, explicitly pass in the --target.
PR: https://github.com/appcelerator/titanium_mobile_blackberry/pull/205
Tested and verified the fix, running command
in my case it is a simulator IP address Appcelerator Studio, build: 3.3.0.201404221437 Titanium SDK, build 3.3.0.v20140418162516 Node.JS Version: v0.10.13 NPM Version: 1.3.2 ├── acs@1.0.14 ├── alloy@1.4.0-dev ├── node-appc@0.2.0 ├── npm@1.3.2 ├── titanium@3.3.0-dev └── titanium-code-processor@1.1.1-beta1 npm -g ls titanium: /usr/local/lib └── titanium@3.3.0-dev (git://github.com/appcelerator/titanium.git#93414d143051df4578b7aa42670008e5ef02c422)