4

它产生以下输出:

Generating config.xml from defaults for platform "blackberry10"
    Preparing blackberry10 project
    Running on emulator for platform "blackberry10" via command "cmd" /c "project_root"\platforms\blackberry10\cordova\run --emulator
    [Error: An error occurred while emulating/deploying the blackberry10 project.
    fs.js:418
      binding.open(pathModule._makeLong(path),
              ^
    TypeError: path must be a string
        at Object.fs.open (fs.js:418:11)
        at Object.fs.readFile (fs.js:206:6)
        at _self.findConnectedSimulator ("project_root"\PLATFO~1\BLACKB~1\cordova\lib\target-utils.js:182:12)
        at Object.async.series.ip ("project_root"\PLATFO~1\BLACKB~1\cordova\lib\run:111:21)
        at "project_root"\PLATFO~1\BLACKB~1\cordova\node_modules\async\lib\async.js:561:25
        at iterate ("project_root"\PLATFO~1\BLACKB~1\cordova\node_modules\async\lib\async.js:131:13)
        at Object.async.eachSeries ("project_root"\PLATFO~1\BLACKB~1\cordova\node_modules\async\lib\async.js:147:9)
        at Object.async.series ("project_root"\PLATFO~1\BLACKB~1\cordova\node_modules\async\lib\async.js:560:19)
        at getTargetName ("project_root"\PLATFO~1\BLACKB~1\cordova\lib\run:108:15)
        at fn ("project_root"\PLATFO~1\BLACKB~1\cordova\node_modules\async\lib\async.js:579:34)
    ]

cordova build blackberry10工作正常。模拟器也正常工作。

4

1 回答 1

7

正如bryanhiggins 建议的那样

platforms\blackberry10\cordova\target add mysim <ip address> -t simulator --pin <simulator PIN>
cordova emulate blackberry10 --target=mysim

由于科尔多瓦的错误,看起来普通cordova build blackberry10的不起作用。如果找到更好的解决方案或将其修复,我将更新答案。

于 2013-11-21T08:21:54.103 回答