pkpassvalidator icon indicating copy to clipboard operation
pkpassvalidator copied to clipboard

passbook works on IOS and MacOS, but generates: Failed to process the pkpass file.

Open Henner opened this issue 1 year ago • 4 comments

our pass generates the following error: Failed to process the pkpass file.

It opens fine on all iOS devices and MacOS preview.

Whats wrong? File renamed as zip ticket.zip

Henner avatar Sep 11 '24 10:09 Henner

Let me have a look.

tomasmcguinness avatar Oct 22 '24 14:10 tomasmcguinness

I have a similar issue, however mine fails to open on any devices but the validator shows "Failed to process the pkpass file." Which doesn't help much.

Sharing mine as well to follow on this ticket

vcard.zip

Vesli avatar Feb 04 '25 11:02 Vesli

@Henner The issue with your pass.json file is that it appears to contain a strange leading character after it's read from the file.

Image

This prevents my code from reading the JSON. I don't know if that's the BOM at the start of a UTF-8 or what.

@Vesli Your issues is related to your certificates. My validator couldn't open your signature file because the certificate signing change wasn't what was expected.

I have made this code a little more defensive, so it will open now and indicate that the code doesn't appear to be signed with the correct WWDR certificate.

Image

tomasmcguinness avatar Feb 12 '25 07:02 tomasmcguinness

Thats a BOM and is valid for UTF files. Removing it works, but it should even work with.

Henner avatar Jun 05 '25 11:06 Henner