Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-16425] CLI: Blackberry throws error while building

GitHub Issuen/a
TypeBug
PriorityMedium
StatusClosed
ResolutionFixed
Resolution Date2014-03-25T18:06:29.000+0000
Affected Version/sRelease 3.2.1
Fix Version/sRelease 3.3.0
ComponentsBlackBerry, CLI
Labelsmodule_build, qe-3.2.1, qe-closed-3.3.0, qe-testadded
ReporterSamuel Dowse
AssigneePedro Enrique
Created2014-02-08T00:14:50.000+0000
Updated2014-07-27T00:22:21.000+0000

Description

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)

Comments

  1. Ingo Muschenetz 2014-02-08

    Since not directly achievable via Studio, deferring to post-3.2.1
  2. Chris Barber 2014-02-08

    As a workaround, explicitly pass in the --target.
  3. Pedro Enrique 2014-02-25

    PR: https://github.com/appcelerator/titanium_mobile_blackberry/pull/205
  4. Olga Romero 2014-04-23

    Tested and verified the fix, running command
       ti build -p blackberry --ip-address 192.168.45.129
       
    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)

JSON Source