错误签名Playbook应用程序:代码签名请求失败,因为此文件先前已签名

时间:2011-04-16 23:31:31

标签: signing blackberry-playbook

当我签署我的剧本应用程序时,我收到错误:

    Connecting to url http://www.rim.net/Websigner/servlet/RDK-Waterloo
Sending properties to server...
Properties of response := [
Version = 1
Response = Signature Response
Confirm = null
Error = Code signing request failed because this file has been previously signed
.
]
barsigner error: server error: Code signing request failed because this file has
 been previously signed.

我知道这个错误意味着我必须破坏我的应用版本。我在哪里指定版本?我尝试了<widget>版本,我甚至添加了<versionNumber>标记。似乎没什么用。有人可以看看我config.xml并告诉我我做错了吗?

<?xml version="1.0" encoding="utf-8"?>
<widget xmlns=" http://www.w3.org/ns/widgets"
        xmlns:rim="http://www.blackberry.com/ns/widgets"
        version="3.0.2">

    <rim:navigation mode="focus" />
    <name>AppName</name>
    <description>My Description.</description>
    <author href="" rim:copyright="Copyright © 2011 TG.">TG</author>
    <versionNumber>3.0.2</versionNumber>
    <content src="index.html" />
    <icon src="assets/icon.png"/>
    <access uri="*" subdomains="true" />
    <license>
        Copyright © 2011 TG.
        THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
        EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
        MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
        NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS
        BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
        ACTION OF CONTRACT, INSULT OR OTHERWISE, ARISING FROM, OUT OF OR IN
        CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
        SOFTWARE.
    </license>
</widget>

我使用以下命令进行签名:

"C:\Program Files (x86)\Research In Motion\BlackBerry WebWorks Packager for PlayBook\bbwp\bbwp" "D:\work\App.zip" -gcsk pass -gp12 pass -buildId 1 -o "D:\work\bin"

"C:\Program Files (x86)\Research In Motion\BlackBerry WebWorks Packager for PlayBook\bbwp\blackberry-tablet-sdk\bin\blackberry-signer" -verbose -cskpass pass -keystore sigtool.p12 -storepass pass "D:\work\bin\App.bar" RDK

2 个答案:

答案 0 :(得分:1)

要签署WebWorks包,只需要以下命令:

"C:\Program Files (x86)\Research In Motion\BlackBerry WebWorks Packager for PlayBook\bbwp\bbwp" "D:\work\App.zip" -gcsk pass -gp12 pass -buildId 1 -o "D:\work\bin"

显然,第二个命令后续报告说,自第一个命令注册版本以来,应用程序版本已经签名了!

答案 1 :(得分:1)

在“blackberry-tablet.xml”上更改字段“buildId”。