Cordova black berry 10编译问题(Package-Author-Id)

时间:2015-01-12 13:53:21

标签: cordova build blackberry-10

我无法使用cordova编译我的应用程序的黑莓版本。

命令:cordova build blackberry10 --verbose

输出:

Running command: /home/MyUser/dev/git/cmaApp/platforms/blackberry10/cordova/build 
[INFO]    Populating application source
[INFO]    Parsing config.xml
[INFO]    Generating output files
[WARN]    Failed to find debug token. If you have an existing debug token, please copy it to /home/MyUser/.cordova/blackberry10debugtoken.bar. To generate a new debug token, execute the 'run' command.
[INFO]    Warning: Cannot find application or default icon
[INFO]    Package created: /home/MyUser/dev/git/cmaApp/platforms/blackberry10/build/simulator/bb10app.bar
[ERROR]   MANIFEST.MF: Invalid value 'testTCfDqXF1aXBlIEZvcmdlIFpv' for attribute 'Package-Author-Id'.
[ERROR]   Native Packager exception occurred
[WARN]    Failed to find debug token. If you have an existing debug token, please copy it to /home/MyUser/.cordova/blackberry10debugtoken.bar. To generate a new debug token, execute the 'run' command.
[INFO]    Warning: Cannot find application or default icon
[INFO]    Package created: /home/MyUser/dev/git/cmaApp/platforms/blackberry10/build/device/bb10app.bar
[ERROR]   MANIFEST.MF: Invalid value 'testTCfDqXF1aXBlIEZvcmdlIFpv' for attribute 'Package-Author-Id'.
[ERROR]   Native Packager exception occurred
An error has occurred
Command finished with error code 2: /home/MyUser/dev/git/cmaApp/platforms/blackberry10/cordova/build 
Error: /home/MyUser/dev/git/cmaApp/platforms/blackberry10/cordova/build: Command failed with exit code 2
    at ChildProcess.whenDone (/home/MyUser/app/node_modules/cordova/node_modules/cordova-lib/src/cordova/superspawn.js:135:23)
    at ChildProcess.EventEmitter.emit (events.js:98:17)
    at maybeClose (child_process.js:735:16)
    at Process.ChildProcess._handle.onexit (child_process.js:802:5)

配置文件中的Black Berry部分:

<platform name="blackberry10">
    <rim:permissions>
        <rim:permit system="true">_sys_use_consumer_push</rim:permit>
        <rim:permit>access_location_services</rim:permit>
        <rim:permit>bbm_connect</rim:permit>
        <rim:permit>post_notifications</rim:permit>
        <rim:permit>read_device_identifying_information</rim:permit>
        <rim:permit>access_shared</rim:permit>
        <rim:permit>run_when_backgrounded</rim:permit>
    </rim:permissions>
    <feature id="blackberry.system" required="true" version="1.0.0.0" />
    <feature id="org.apache.cordova" required="true" version="1.0.0" />
    <feature id="blackberry.app" required="true" version="1.0.0.0" />
    <feature id="blackberry.app.event" required="true" version="1.0.0.0" />
    <feature id="blackberry.system.event" required="true" version="1.0.0.0"/>
    <access subdomains="false" uri="http://mywebsite.com"/>
</platform>

在搜索时,我发现“Package-Author-Id”必须是小写但我不知道testTCfDqXF1aXBlIEZvcmdlIFpv字符串来自哪里(我在项目应用程序中搜索,〜/ .cordova,sdk文件夹) 。
我搜索了MANIFEST.MF文件,但我没有找到它,我猜它是在cordova构建过程中生成的。

如何修改Package-Author-Id或构建我的应用?

科尔多瓦:3.6.3-0.2.13
黑莓网络sdk:2.2

1 个答案:

答案 0 :(得分:0)

Package-Author-Id不是问题,这个字符串似乎是用config.xml中的author字符串生成的。
我没有找到如何更改它,但黑莓不接受config.xml文件中author(至少使用cordova 3.6.3)的重音。
我只是更换口音,一切正常。