How to debug your .pkpass
/ 1 min read
Table of Contents
Introduction
Debugging Apple Wallet passes (.pkpass files) can be challenging, especially when you open and… nothing happens. It just fails silently.
Awesome DX right ?
But don’t worry, I’ve got three simple methods to help you debug your passes.
Method 1: Use Pkpass Validator
Pkpass Validator is a tool to help you validate and debug your passes. You also can use it via its online version.
But sometimes, even Pkpass Validator does not work so we will need to use the second or third method.
Method 2: Use the Console application on MacOS
On MacOS, we have a native application called Console
that lets you view system logs. And we can use it to have access to the Pass Viewer
logs.
Here’s how:
- Open the
Console
application - Set the search to the process name
Pass Viewer
- Click the start button on the top
- Try to open your pass
- Logs should appear in the console
Method 3: Use the iOS Simulator
You can also test your .pkpass files using the iOS Simulator:
- Launch the iOS Simulator.
- Drag and drop your .pkpass file onto the simulator.
- Open the system logs with Command + / (⌘ + /).
- Logs should appear in the console, helping you see what went wrong.
