我试图学习如何使用 PhoneGap 来构建 BlackBerry 应用程序。我按照PhoneGap 的指南整理了 Webworks SDK 并检索了签名密钥。
然后我ant blackberry load-device
尝试将示例应用程序部署到真实设备上。但是签名过程似乎永远冻结了,一些 *.cod 文件已签名,但其中大多数只显示“接收响应”:
和命令行输出:
Buildfile: /path-to-sample/sample/build.xml
blackberry:
load-device:
generate-cod-name:
[echo] Generated name: cordovaExample.cod
clean:
[delete] Deleting directory /path-to-sample/sample/build
package-app:
[mkdir] Created dir: /path-to-sample/sample/build/widget
[copy] Copying 22 files to /path-to-sample/sample/build/widget
[zip] Building zip: /path-to-sample/sample/build/cordovaExample.zip
load-device:
[exec] [INFO] Parsing command line options
[exec] [INFO] Parsing bbwp.properties
[exec] [INFO] Validating application archive
[exec] [INFO] Parsing config.xml
[exec] [INFO] Populating application source
[exec] [INFO] Compiling BlackBerry WebWorks application
[exec] [INFO] Starting signing tool
我已经尝试了两次,其中任何一个都没有运气。不同之处在于签名工具中签署了哪个 *.cod 文件。
所以你们能帮我弄清楚为什么它卡在那里吗?干杯。
更新
如果我强制退出签名工具,我将得到如下输出:
[exec] [ERROR] Signing failed
[exec] RIM Wireless Handheld Java Loader
[exec] Copyright 2001-2010 Research In Motion Limited
[exec] Connecting to device...
[exec]
[exec] Connected Loading /path-to-sample/sample/build/StandardInstall/cordovaExampleError: unable to open file
[exec] Disconnected
BUILD SUCCESSFUL
Total time: 22 minutes 4 seconds
我确定我的设备已连接并能够与我的计算机通信。