我正在使用ant在OSX 10.7上构建。我已经检查过我有JAVA(1.6.0)的好版本等等。我似乎无法运行PhoneGap 1.8或1.7的样本。输入 ant blackberry build :
后,终端的输出结果如下Buildfile: /Users/me/blackberry 1.8/sample/build.xml
blackberry:
build:
generate-cod-name:
[echo] Generated name: CordovaSample.cod
clean:
[delete] Deleting directory /Users/me/blackberry 1.8/sample/build
package-app:
[mkdir] Created dir: /Users/me/blackberry 1.8/sample/build/widget
[copy] Copying 8 files to /Users/me/blackberry 1.8/sample/build/widget
[zip] Building zip: /Users/me/blackberry 1.8/sample/build/CordovaSample.zip
build:
[exec] [INFO] Populating application source
[exec] [INFO] Parsing config.xml
[exec] [WARN] Build ID set in config.xml [version], but signing key file was not found: author.p12
[exec] [WARN] Build ID set in config.xml [version], but no signing password was provided [-g]. Bar will be unsigned
[exec] [INFO] Generating output files
[exec] [ERROR] Failed to find feature with id: org.apache.cordova
我已将下载和安装的BlackBerry webworks SDK(10)中的bbwp文件放入正确的链接。我把它放在 project.properties 中就像这样。
blackberry.bbwp.dir=/rim
我仍然收到错误消息:无法找到ID为org.apache.cordova
的功能答案:我找到了解决方案。我安装了旧版本的BlackBerry webworks(2.3)。您可以在此处找到旧版本:Older webworks versions