我在使用Phonegap的CLI (Phonegap 3.4.1)构建一个黑莓10版本的应用程序时遇到了一些困难。
从逻辑上讲,该命令应该是:
phonegap build blackberry10但这将返回以下错误:
/usr/local/lib/node_modules/phonegap/lib/phonegap/build.js:73
self.phonegap.emit('log', 'detecting', platform.human, 'SDK environment...
^
TypeError: Cannot read property 'human' of undefined
at BuildCommand.execute (/usr/local/lib/node_modules/phonegap/lib/phonegap/build.js:73:52)
at BuildCommand.run (/usr/local/lib/node_modules/phonegap/lib/phonegap/build.js:55:10)
at PhoneGap.build (/usr/local/lib/node_modules/phonegap/lib/phonegap/util/command.js:28:25)
at CLI.module.exports [as build] (/usr/local/lib/node_modules/phonegap/lib/cli/build.js:35:14)
at CLI.module.exports [as argv] (/usr/local/lib/node_modules/phonegap/lib/cli/argv.js:66:17)
at Object.<anonymous> (/usr/local/lib/node_modules/phonegap/bin/phonegap.js:26:21)
at Module._compile (module.js:456:26)
at Object.Module._extensions..js (module.js:474:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)对于android和iOS,一切都很好,我安装了BlackBerry10SDK,目录在我的PATH变量中。似乎blackberry10没有被识别,也许我的命令是错的?(我试过黑莓-10,qnx .)
发布于 2014-04-11 22:18:38
Phonegap构建服务不支持BlackBerry10。
platforms.md.html#Supported%20Platforms
如果您已经添加了平台
cordova platform add blackberry10最好的选择是使用cordova语法直接访问引擎。
cordova build blackberry10这肯定会给您带来预期的结果(只要您配置了签名密钥:)
https://stackoverflow.com/questions/23016563
复制相似问题