Swift PKPass eror 'The pass cannot be read because it isn’t valid'

前端 未结 1 1374
耶瑟儿~
耶瑟儿~ 2021-01-27 21:57

I\'m creating a Ticket from my server and passing it into my ios app but I keep getting this error when I try to pass the JSON data into the PKPass mod

1条回答
  •  被撕碎了的回忆
    2021-01-27 22:42

    Looking at your signature and you pass.json, your pass is failing to load because the certificate that has been used to create the signature is:

    • PassTypeId: pass.com.apple.devpubs.example
    • TeamName: A93A5CM278

    This doesn't match the passTypeIdentifier and teamName you have in your pass.json.

    Replace ./models/certs/signerCert.pem and ./models/certs/signerKey.pem with the correct certificate and key for your PassTypeId Certificate and you should get past this error.

    Any pass compiled with the pass.json above still will not load, but for a different reason. The eventTicket object cannot be empty.

    0 讨论(0)
提交回复
热议问题