tschoffelen / php-pkpass

💳 PHP class for creating passes for Wallet on iOS.
https://includable.com
MIT License
916 stars 186 forks source link

Pass file has generated but not view. #128

Closed oboydak closed 1 year ago

oboydak commented 1 year ago

Hi

I have tried this project (Air company). The pass file has been generated but it can not be viewed via Pass viewer.

I have tried many different config files but the result is the same. (https://developer.apple.com/library/archive/documentation/UserExperience/Conceptual/PassKit_PG/YourFirst.html#//apple_ref/doc/uid/TP40012195-CH2-SW1)

Thank you.

tschoffelen commented 1 year ago

Hi there! Have you tried the debugging steps listed in the README to see what error the passkit viewer is returning?

oboydak commented 1 year ago

Thank you for response.

I think everthing is ok (No warning , no error) But pass viewer giving error. (The pass pass.pkpass could not be opened)

pass.pkpass.zip

You can see on attached zip file (pkpass file could not be attached)

tschoffelen commented 1 year ago

Check the Console app as described in the README. It is giving an error when opening that pass:

image
oboydak commented 1 year ago

The Console app is giving the following errors. I am using the same parameters with the signpass app and it does work.

Invalid data error reading pass pass.com.efdigital/123456. The passTypeIdentifier or teamIdentifier provided may not match your certificate, or the certificate trust chain could not be verified.

ERROR: Error Domain=PKPassKitErrorDomain Code=1 "The pass cannot be read because it isn’t valid." UserInfo={NSLocalizedDescription=The pass cannot be read because it isn’t valid., NSUnderlyingError=0x604000056c80 {Error Domain=PKPassKitErrorDomain Code=1 "The passTypeIdentifier or teamIdentifier provided may not match your certificate, or the certificate trust chain could not be verified." UserInfo={NSLocalizedDescription=The passTypeIdentifier or teamIdentifier provided may not match your certificate, or the certificate trust chain could not be verified.}}}

oboydak commented 1 year ago

Hi thomas

The problem has been resolved. Thank you for all.