Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-13856] BlackBerry : Classic & alloy app's fail to build since sdk 3.1.1.v20130509083909

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionFixed
Resolution Date2013-05-14T23:35:16.000+0000
Affected Version/sn/a
Fix Version/s2013 Sprint 10 BB, 2013 Sprint 10, Release 3.1.1, Release 3.2.0
ComponentsBlackBerry
Labelsqe-testadded, sdk-bb
ReporterLokesh Choudhary
AssigneeRussell McMahon
Created2013-05-14T20:27:08.000+0000
Updated2014-06-19T12:43:22.000+0000

Description

Description: 1. Install the sdk version 3.1.1.v20130509083909 or above in studio 2. Create a classic app & an alloy app in studio 3. Build & run it on device or simulator. Actual Results: 1. The app build fails with the following error:

Path to BlackBerry NDK is: /Applications/bbndk
[DEBUG] :  Copying /Users/lokeshchoudhary/Desktop/bb-mobilesdk-osx/mobilesdk/osx/3.1.1.v20130509083909/blackberry/tibb/titanium/javascript => /Users/lokeshchoudhary/Desktop/BB_test_workspace/label/build/blackberry/framework
[DEBUG] :  Copying /Users/lokeshchoudhary/Desktop/BB_test_workspace/label/i18n => /Users/lokeshchoudhary/Desktop/BB_test_workspace/label/build/blackberry/assets/i18n

/usr/local/lib/node_modules/titanium/node_modules/longjohn/dist/longjohn.js:181
        throw e;
              ^
Error: ENOENT, no such file or directory '/Users/lokeshchoudhary/Desktop/BB_test_workspace/label/i18n'
    at fs.statSync (fs.js:524:18)
    at exports.copyDirSyncRecursive (/Users/lokeshchoudhary/Desktop/bb-mobilesdk-osx/mobilesdk/osx/3.1.1.v20130509083909/node_modules/node-appc/lib/fs.js:152:20)
    at package (/Users/lokeshchoudhary/Desktop/bb-mobilesdk-osx/mobilesdk/osx/3.1.1.v20130509083909/blackberry/cli/common/blackberryndk.js:111:6)
    at self.run (/Users/lokeshchoudhary/Desktop/bb-mobilesdk-osx/mobilesdk/osx/3.1.1.v20130509083909/blackberry/cli/common/blackberryndk.js:328:20)
    at exports.init (/Users/lokeshchoudhary/Desktop/bb-mobilesdk-osx/mobilesdk/osx/3.1.1.v20130509083909/blackberry/cli/hooks/run.js:33:12)
    at cli.createHook.async.series.next (/usr/local/lib/node_modules/titanium/lib/cli.js:110:12)
    at async.series.results (/usr/local/lib/node_modules/titanium/node_modules/async/lib/async.js:486:21)
    at _asyncMap (/usr/local/lib/node_modules/titanium/node_modules/async/lib/async.js:185:13)
    at async.forEachSeries.iterate (/usr/local/lib/node_modules/titanium/node_modules/async/lib/async.js:108:13)
    at async.forEachSeries.iterate (/usr/local/lib/node_modules/titanium/node_modules/async/lib/async.js:119:25)
---------------------------------------------
    at exports.execFile (child_process.js:594:9)
    at exports.exec (child_process.js:481:18)
    at runCommandFromArray (/Users/lokeshchoudhary/Desktop/bb-mobilesdk-osx/mobilesdk/osx/3.1.1.v20130509083909/blackberry/cli/common/blackberryndk.js:59:2)
    at self.build (/Users/lokeshchoudhary/Desktop/bb-mobilesdk-osx/mobilesdk/osx/3.1.1.v20130509083909/blackberry/cli/common/blackberryndk.js:238:4)
    at build.<anonymous> (/Users/lokeshchoudhary/Desktop/bb-mobilesdk-osx/mobilesdk/osx/3.1.1.v20130509083909/blackberry/cli/commands/_build.js:140:15)
    at cli.createHook.async.series.next (/usr/local/lib/node_modules/titanium/lib/cli.js:116:18)
    at _asyncMap (/usr/local/lib/node_modules/titanium/node_modules/async/lib/async.js:190:13)
    at async.forEachSeries.iterate (/usr/local/lib/node_modules/titanium/node_modules/async/lib/async.js:116:25)
---------------------------------------------
    at exports.execFile (child_process.js:594:9)
    at exports.exec (child_process.js:481:18)
    at exports.detect.async.series.cached (/Users/lokeshchoudhary/Desktop/bb-mobilesdk-osx/mobilesdk/osx/3.1.1.v20130509083909/node_modules/node-appc/lib/android.js:86:4)
    at async.series.results (/Users/lokeshchoudhary/Desktop/bb-mobilesdk-osx/mobilesdk/osx/3.1.1.v20130509083909/node_modules/async/lib/async.js:486:21)
    at _asyncMap (/Users/lokeshchoudhary/Desktop/bb-mobilesdk-osx/mobilesdk/osx/3.1.1.v20130509083909/node_modules/async/lib/async.js:185:13)
    at async.forEachSeries.iterate (/Users/lokeshchoudhary/Desktop/bb-mobilesdk-osx/mobilesdk/osx/3.1.1.v20130509083909/node_modules/async/lib/async.js:108:13)
    at async.forEachSeries.iterate (/Users/lokeshchoudhary/Desktop/bb-mobilesdk-osx/mobilesdk/osx/3.1.1.v20130509083909/node_modules/async/lib/async.js:119:25)
    at _asyncMap (/Users/lokeshchoudhary/Desktop/bb-mobilesdk-osx/mobilesdk/osx/3.1.1.v20130509083909/node_modules/async/lib/async.js:187:17)
---------------------------------------------
    at exports.execFile (child_process.js:594:9)
    at exports.exec (child_process.js:481:18)
    at exports.detect.async.series.exec.cwd (/Users/lokeshchoudhary/Desktop/bb-mobilesdk-osx/mobilesdk/osx/3.1.1.v20130509083909/node_modules/node-appc/lib/android.js:73:4)
    at async.series.results (/Users/lokeshchoudhary/Desktop/bb-mobilesdk-osx/mobilesdk/osx/3.1.1.v20130509083909/node_modules/async/lib/async.js:486:21)
    at _asyncMap (/Users/lokeshchoudhary/Desktop/bb-mobilesdk-osx/mobilesdk/osx/3.1.1.v20130509083909/node_modules/async/lib/async.js:185:13)
    at async.forEachSeries.iterate (/Users/lokeshchoudhary/Desktop/bb-mobilesdk-osx/mobilesdk/osx/3.1.1.v20130509083909/node_modules/async/lib/async.js:108:13)
    at async.forEachSeries.iterate (/Users/lokeshchoudhary/Desktop/bb-mobilesdk-osx/mobilesdk/osx/3.1.1.v20130509083909/node_modules/async/lib/async.js:119:25)
    at _asyncMap (/Users/lokeshchoudhary/Desktop/bb-mobilesdk-osx/mobilesdk/osx/3.1.1.v20130509083909/node_modules/async/lib/async.js:187:17)
Expected Result: 1. The app should build successfully

Comments

  1. Lokesh Choudhary 2013-05-14

    According to the error it looks & can't find the i18n folder in the app.
  2. Lokesh Choudhary 2013-05-15

    Verified the fix & now we can build & run classic & alloy apps on BB simulator & device. Thus closing the issue. Environment: Ti Studio : 3.1.1.201305150313 Ti BB SDK : 3.1.1.v20130514180723 Mac OSX : 10.8.2 win 7 Win 8 Z10 BB simulator : 10.0.10.822 Z10 device running 10.0.10.88 Q10 Simulator : 10.1.0.1720 Q10 Dev alpha C device running 10.1.0.138

JSON Source