Search code examples
cordovablackberrybuildconfig

Phonegap blackberry unknown option buildConfig?


OK. This may sound like I'm overly frustrated, because I am. I'm trying to build a Blackberry app for release for the guy I'm working for. I built the Android one just fine after adding a build config and adding the keystore. But then, well, even if I just run phonegap build blackberry 10, I get the following:

Javy@MacBookJ [/clientProject]$ phonegap build blackberry10
[phonegap] executing 'cordova build blackberry10'...
Running command: /clientProject/platforms/blackberry10/cordova/build --buildConfig=/clientProject/build.json



  error: unknown option `--buildConfig=/clientProject/build.json'



ERROR building one of the platforms: Error: /clientProject/platforms/blackberry10/cordova/build: Command failed with exit code 1
You may not have the required environment or OS to build this project

Error: /clientProject/platforms/blackberry10/cordova/build: Command failed with exit code 1
    at ChildProcess.whenDone (/usr/local/lib/node_modules/phonegap/node_modules/cordova-lib/src/cordova/superspawn.js:139:23)
    at emitTwo (events.js:87:13)
    at ChildProcess.emit (events.js:172:7)
    at maybeClose (internal/child_process.js:817:16)
    at Process.ChildProcess._handle.onexit (internal/child_process.js:211:5)

Javy@MacBookJ [/clientProject]$ 

My big problem is that I'm not even adding the buildConfig parameter, and Phonegap is just DOING IT ALL ON ITS OWN LIKE IT RUNS THE PLACE!

HELP???


Solution

  • For me, deleting my build.json (which I had used for android build) and then running the "cordova build blackberry10" command, solved the problem.