Jay V
Jay V

Reputation: 131

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???

Upvotes: 2

Views: 398

Answers (2)

contactabbas
contactabbas

Reputation: 832

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

Upvotes: 4

Martin Godzina
Martin Godzina

Reputation: 1575

I have the same issue. You can solve this by calling the build.bat by yourself without any parameters inside your comandline(CMD). The build.bat is inside the blackberry10 folder:

Blackberry10 path

  1. Open you Phonegap projekt folder
  2. platforms folder
  3. blackberry10 folder
  4. cordova folder
  5. start the comandline tool inside this folder (CMD in windows)
  6. type: build.bat
  7. type: run.bat

build.bat only build the .bar files and run.bat deploys the app to your device.

Commandline in windows

Upvotes: 2

Related Questions