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

Native Development

Reply
Highlighted
Developer
Posts: 142
Registered: ‎07-27-2011
My Device: Red Z10, 32GB PlayBook, Numerous Android/WP8/FirefoxOS/Other devices
My Carrier: T-Mobile
Accepted Solution

Signing Problem with Marmalade App

I made an app with Marmalade, compiled/signed it, and it sideloads just fine onto my PlayBook.

But when I try to submit it to App World, I get "Error: Some files are missing signatures". I also get that same error when I run blackberry-signer -verbose -verify:

 

blackberry-signer -verbose -verify shipwrecked.bar

3129 Wed Oct 24 11:31:06 MDT 2012 META-INF/MANIFEST.MF
2091 Wed Oct 24 11:31:06 MDT 2012 META-INF/AUTHOR.SF
617 Wed Oct 24 11:31:06 MDT 2012 META-INF/AUTHOR.EC
2091 Wed Oct 24 11:31:00 MDT 2012 META-INF/RDK.SF
280 Wed Oct 24 11:31:00 MDT 2012 META-INF/RDK.EC
0 Tue Jan 01 00:00:00 MST 1980 META-INF/
0 Tue Jan 01 00:00:00 MST 1980 native/
sm 5683 Wed Oct 24 11:30:12 MDT 2012 native/back.png
sm 5806 Wed Oct 24 11:30:12 MDT 2012 native/back_pushed.png
sm 698 Wed Oct 24 11:30:16 MDT 2012 native/blackberry-tablet.xml
sm 343980 Wed Oct 24 11:30:12 MDT 2012 native/FreeMono.ttf
sm 714456 Wed Oct 24 11:30:12 MDT 2012 native/FreeSans.ttf
sm 1687516 Wed Oct 24 11:30:12 MDT 2012 native/FreeSerif.ttf
sm 6738 Wed Oct 24 11:30:16 MDT 2012 native/icon.png
sm 129747 Wed Oct 24 11:30:12 MDT 2012 native/island.png
sm 168252 Wed Oct 24 11:30:12 MDT 2012 native/island2.png
sm 338161 Wed Oct 24 11:30:12 MDT 2012 native/iwui_style.group.bin
sm 488362 Wed Oct 24 11:30:16 MDT 2012 native/Shipwrecked
sm 527402 Wed Oct 24 11:30:16 MDT 2012 native/Shipwrecked.s3e
sm 379174 Wed Oct 24 11:30:12 MDT 2012 native/wrecked.png

s = signature was verified
m = entry is listed in manifest
k = at least one certificate was found in keystore
i = at least one certificate was found in identity scope

Error: Some files are missing signatures

But it looks to me like all the files are signed; anyone have any suggestions?

-----------------------------------------------------------------------------------------



Developer
Posts: 142
Registered: ‎07-27-2011
My Device: Red Z10, 32GB PlayBook, Numerous Android/WP8/FirefoxOS/Other devices
My Carrier: T-Mobile

Re: Signing Problem with Marmalade App

Ok, so I figured it out thanks to Justin Tokarchuk (@jtokarchuk), who directed me to http://www.madewithmarmalade.com/devnet/forum/playbook-submission-builds.

 

The problem, posted in the marmalade forums by Lester-Madden, is incorect verification paths.

 


Lester-Madden wrote:

To fix verification errors you need to delete verification paths from your bar file.

This is done using -d command with zip.exe (attached)

To identify entries that require deletion, examine the verification output for lines date marked

0 Tue Jan 01 00:00:00 GMT 1980

Example:

sm 758 Thu Mar 22 18:34:10 GMT 2012 native/blackberry-tablet.xml
sm 19055 Thu Mar 22 18:34:10 GMT 2012 native/icon.png
sm 1250853 Thu Mar 22 18:34:10 GMT 2012 native/Lara Croft.s3e
sm 481675 Thu Mar 22 18:34:10 GMT 2012 native/LaraCroft
sm 85808698 Thu Mar 22 18:34:08 GMT 2012 native/lara_playbook.dz
0 Tue Jan 01 00:00:00 GMT 1980 native/lib/
sm 121904 Thu Mar 22 18:34:10 GMT 2012 native/lib/libbps.so.1
0 Tue Jan 01 00:00:00 GMT 1980 native/music/

***NOTE the meta-inf file has this mark but is excluded automatically and does not require removal. Do not run this command on this entry:

0 Tue Jan 01 00:00:00 GMT 1980 META-INF/
***

to delete the entrys run this command:

C:\PATH\CONTAINING\ZIP.EXE>zip.exe -d "Full\path\to\your\barfile.bar" native/lib/

example on my machine:

C:\Users\spearce\Downloads>zip.exe -d "P:\QA Documentation\Zombie road\Builds\ri
m\2-4-12\ZombieRoad.bar" native/lib/

when run you should see this:
deleting: native/lib/

and when verify is ran again this should no longer appear in the output. Continue this for every entry.

Once all files are removed and verify is run you should receive this message:

s = signature was verified
m = entry is listed in manifest
k = at least one certificate was found in keystore
i = at least one certificate was found in identity scope

Info: Bar verified.

One thing I would add is that once this has been done users should try to install the build to their device because if they delete something by mistake the install will fail and the CMS won't catch it when uploading it.


You can download the zip.exe from that post, or by clicking on http://www.madewithmarmalade.com/sites/default/files/forum/zip.exe_.txt and renaming it to zip.exe.

 

Hope that helps anyone else who has this problem!

-----------------------------------------------------------------------------------------