私は BlackBerry プラットフォーム用のアプリケーションを構築した経験があり、現在、 BlackBerry 10 Beta (QNX)用の BlackBerry WebWorks を使用してPhoneGap (Cordova)でサンプル アプリケーションを展開しようとしていますが、あまり成功していません。開発者ブログからリンクされている、BlackBerry ガイドの PhoneGap 入門ガイドの指示に従っています。
上記のガイドの 6 番目のステップで、org.apache.cordova機能とすべてのblackberry.*機能が見つからないといういくつかの問題が発生しています。
D:\Work\Development\PhoneGap\workspace\sample>ant qnx build
Buildfile: D:\Work\Development\PhoneGap\workspace\sample\build.xml
qnx:
build:
generate-cod-name:
[echo] Generated name: cordovaExample.bar
clean:
[delete] Deleting directory D:\Work\Development\PhoneGap\workspace\sample\build
package-app:
[mkdir] Created dir: D:\Work\Development\PhoneGap\workspace\sample\build\widget
[copy] Copying 24 files to D:\Work\Development\PhoneGap\workspace\sample\build\widget
[copy] Copying 1 file to D:\Work\Development\PhoneGap\workspace\sample\build\widget
[copy] Copying 1 file to D:\Work\Development\PhoneGap\workspace\sample\www\js
[zip] Building zip: D:\Work\Development\PhoneGap\workspace\sample\build\cordovaExample.zip
build:
[exec]
[exec] D:\Work\Development\PhoneGap\workspace\sample>"C:\Program Files\Research In Motion\BlackBerry 10 WebWorks SDK 1.0.2.9\dependencies\node\node.exe" "C
:\Program Files\Research In Motion\BlackBerry 10 WebWorks SDK 1.0.2.9\lib\bbwp.js" D:\Work\Development\PhoneGap\workspace\sample\build\cordovaExample.zip -o D:\
Work\Development\PhoneGap\workspace\sample\build
[exec] [INFO] Populating application source
[exec] [INFO] Parsing config.xml
[exec] [WARN] Build ID set in config.xml [version], but no signing password was provided [-g]. Bar will be unsigned
[exec] [WARN] Failed to find feature with id: org.apache.cordova
[exec] [WARN] Failed to find feature with id: blackberry.find
[exec] [WARN] Failed to find feature with id: blackberry.identity.phone
[exec] [WARN] Failed to find feature with id: blackberry.pim.Address
[exec] [WARN] Failed to find feature with id: blackberry.pim.Contact
[exec] [WARN] Failed to find feature with id: blackberry.io.file
[exec] [WARN] Failed to find feature with id: blackberry.utils
[exec] [WARN] Failed to find feature with id: blackberry.io.dir
[exec] [WARN] Failed to find feature with id: blackberry.app.event
[exec] [WARN] Failed to find feature with id: blackberry.system.event
[exec] [WARN] Failed to find feature with id: blackberry.widgetcache
[exec] [WARN] Failed to find feature with id: blackberry.media.camera
[exec] [WARN] Failed to find feature with id: blackberry.media.microphone
[exec] [INFO] Generating output files
[exec] [INFO] Info: Package created: D:\Work\Development\PhoneGap\workspace\sample\build\simulator\cordovaExample.bar
[exec] [INFO] Info: Package created: D:\Work\Development\PhoneGap\workspace\sample\build\device\cordovaExample.bar
[exec] [INFO] BAR packaging complete
BUILD SUCCESSFUL
Total time: 8 seconds
D:\Work\Development\PhoneGap\workspace\sample>
すべてのblackberry.*フィーチャーと同様に、 org.apache.cordovaフィーチャーが見つからないことに注意してください。
警告を無視して BB10 シミュレーターにデプロイすると、次のエラーが発生します: i.imgur.com/aUcPM.png
BlackBerry 10 の代わりに PlayBook を展開する場合、上記の警告や実行時のエラーは発生しないことに注意してください。
この問題の解決に役立つガイダンスを提供できれば幸いです。
どうもありがとうございました。