Phonegap黑莓未知选项buildConfig?

时间:2015-10-13 21:42:27

标签: cordova blackberry buildconfig

行。这可能听起来像我过于沮丧,因为我。我正在尝试构建一个Blackberry应用程序,以便为我正在为之工作的人发布。在添加构建配置并添加密钥库之后,我很好地构建了Android。但是,好吧,即使我只是运行phonegap build blackberry 10,我也会得到以下结果:

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]$ 

我的一个大问题是我甚至没有添加buildConfig参数,而Phonegap只是自己动手,就像它运行一样!

HELP ???

2 个答案:

答案 0 :(得分:4)

对我来说,删除 my build.json(我曾用于android版本),然后运行" cordova build blackberry10"命令,解决了问题。

答案 1 :(得分:2)

我有同样的问题。您可以通过自己调用build.bat来解决此问题,而无需在comandline(CMD)中使用任何参数。 build.bat位于blackberry10文件夹中:

Blackberry10 path

  1. 打开你的Phonegap projekt文件夹
  2. 平台文件夹
  3. blackberry10文件夹
  4. cordova文件夹
  5. 启动此文件夹内的comandline工具(Windows中的CMD)
  6. type:build.bat
  7. 类型:run.bat
  8. build.bat只构建.bar文件,run.bat将应用程序部署到您的设备。

    Commandline in windows