0
votes

I just create a pass by following http://developer.apple.com/library/ios/#documentation/userexperience/conceptual/PassKit_PG/Chapters/YourFirst.html#//apple_ref/doc/uid/TP40012195-CH2-SW1

I can test it in simulator of xcode, but how can I test it in real device such as iPod ?

2
You could either - email the .pkpass bundle to yourself and retrieve it on the iPod, or put it on a webserver and serve it with a MIME type of application/vnd.apple.pkpassPassKit
I email to myself already but cannot open it. It doesn't show icon image; it's just like a simple file !malinchhan
When I open it with safari in iPod, it shows the message : "safari cannot download this file".malinchhan

2 Answers

0
votes

Here is a tutorial on how to deploy your code to your device. You will need to use a valid iOS Developer account, with a signing key, to sign your app, and then use xCode to push it to your device.

0
votes

The case you describe where a pass loads on the simulator but you receive a "Safari cannot download this file" message on the device is normally caused by an error with the pass signature.

After a the user clicks 'Add' on a device, the validity of the manifest and pass signature is checked. On the simulator, there is no signature check and the pass is added to passbook regardless of whether the signature is valid or not.

The validation check will fail if:

  • the manifest in the package is different to the manifest that has been signed
  • the SHA1 hashes in the manifest don't match the SHA1 hashes of each file in the package
  • the certificate is invalid (expired, revoked, or not an Apple issued PassID certificate)

To diagnose your problem, try hooking your device up to Xcode and viewing the console output while you add your pass to Passbook.

Alternatively, post a link to your .pkpass bundle and we can help you identify the problem.