Cordova black berry 10 编译问题(Package-Author-Id)
Cordova black berry 10 compile issue (Package-Author-Id)
我无法使用 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)
config.xml 中的黑莓部分:
<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
字符串是从哪里来的(我在项目app,~/.cordova,sdk文件夹中搜索) .
我搜索了 MANIFEST.MF
文件但没有找到,我猜它是在 cordova 构建过程中生成的。
我如何修改 Package-Author-Id
或构建我的应用程序?
科尔多瓦:3.6.3-0.2.13
黑莓 webworks sdk:2.2
Package-Author-Id
大小写不是问题,这个字符串似乎是用 config.xml.
中的 author
字符串生成的
我没有找到如何更改它,但黑莓不接受 config.xml 文件中 author
中的重音(至少对于 cordova 3.6.3)。
我只是更换口音,一切正常。
我无法使用 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)
config.xml 中的黑莓部分:
<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
字符串是从哪里来的(我在项目app,~/.cordova,sdk文件夹中搜索) .
我搜索了 MANIFEST.MF
文件但没有找到,我猜它是在 cordova 构建过程中生成的。
我如何修改 Package-Author-Id
或构建我的应用程序?
科尔多瓦:3.6.3-0.2.13
黑莓 webworks sdk:2.2
Package-Author-Id
大小写不是问题,这个字符串似乎是用 config.xml.
中的 author
字符串生成的
我没有找到如何更改它,但黑莓不接受 config.xml 文件中 author
中的重音(至少对于 cordova 3.6.3)。
我只是更换口音,一切正常。