Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Testing and Deployment

Code signing request failed because this file has been previously signed

by BlackBerry Development Advisor ‎02-16-2011 10:01 AM - edited ‎05-16-2012 10:49 AM (15,048 Views)

Summary

 

This article applies to the following:

  • BlackBerry® PlayBook SDK for Adobe® AIR®
  • BlackBerry WebWorks SDK
  • BlackBerry NDK
  • BlackBerry Tools for Android Applications

Problem

 

 

The following error is received when attempting to sign your application.

 

Code signing request failed because this file has been previously signed.

 

Cause

 

A specific version of a BlackBerry Tablet OS application can only be signed once.  If you modify the application without incrementing its version and try to sign the application a second time you will receive this error.  It is recommended to sign only the final iteration of a BlackBerry Tablet OS application that you plan to deploy.

 

Resolution for BlackBerry Native Applications

Increment the version number and rebuild the BlackBerry Native application.  Use the following steps to increment the version number.

 

  1. Open the bar-descriptor.xml file.
  2. Click on the General tab.
  3. Increment the value in the Package Version and/or Package Build ID fields.
  4. Build and sign the application.

 

Resolution for BlackBerry Tablet OS Air Applications

 

Increment the version number and rebuild the BlackBerry Tablet OS application.  Use the following steps to increment the version number.

 

  1. Open the YourApplicationName-app.xml file.
  2. Locate the <versionNumber>1.0.0</versionNumber> tag.
  3. Increment the value within the versionNumber tag.
  4. Build and sign the application.

Resolution for BlackBerry Tablet OS Webworks Applications

Increment the version number and rebuild your application using the BlackBerry® WebWorks™ SDK for Tablet OS.  Use the following steps to increment the version number.

 

  1. Open the config.xml file
  2. Locate the version=”X.X.X.X” property within the <widget> tag
  3. Increment the value of this property and save the config.xml file
  4. Build and sign the application

Resolution for BlackBerry Android Runtime Applications

 

Increment the Version code value and rebuild your Android™ APK file within the ADT plug-in for Eclipse®. Use the following steps to increment the version code value.

 

  1. Open the AndroidManifest.xml file.
  2. Locate the <versionCode>1</versionCode> tag.
  3. Increment the value within the versionCode tag.
  4. Build and sign the application.

 

Comments
by Developer
on ‎03-11-2012 05:14 PM

blackberry-signer has these options also:

   -incrementPackageVersion     - increments the Package-Version before signing
   -incrementApplicationVersion - increments the Application-Version before signing

 

Users Online
Currently online: 18 members 1,241 guests
Please welcome our newest community members: