> For the complete documentation index, see [llms.txt](https://docs.payments.thalescloud.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.payments.thalescloud.io/nfc-wallet-sdk-ios/help/knowledge-base/retrieve-logs-from-an-ios-device.md).

# Retrieve logs from an iOS device

### Prerequisites

Before capturing logs from an iOS device, complete the following setup:

* Connect the iPhone to your Mac using a USB cable.
* Pair the iPhone with Xcode on the Mac.

Use Apple documentation for these steps:

* [Console User Guide](https://support.apple.com/en-sg/guide/console/welcome/mac)
* [Share log messages, activities, or reports in Console on Mac](https://support.apple.com/en-us/guide/console/cnsl2356/1.1/mac/11.0)

### Recommended steps for capturing logs

1. Open the Console app.
2. Select your iPhone under **Devices**.
3. Set the **Process** filter to your digital wallet application.
4. Start capturing logs.
5. Reproduce the issue.
6. Click **Pause** to stop capturing logs.
7. Export the log.

{% hint style="info" %}
For the most detailed logs, use a build of your digital wallet application that integrates the NFC Wallet SDK **Debug** build.

See [Deliverables](/nfc-wallet-sdk-ios/general/deliverables.md) for supported build types.

Capture logs only around the failing flow. Start right before the steps. Stop right after.
{% endhint %}

### Verify the setup

To verify the setup, call `DigitalCardManager.cardList` as described in [Display digital cards](/nfc-wallet-sdk-ios/implement-nfc-wallet/manage-digital-cards/display-digital-cards.md).

With the correct setup, the exported log includes:

* Each line starts with `[TSHPaySDK]`.
* Each line includes a timestamp and a message that indicates the API call.

The following example shows Console output with these features:

<figure><img src="/files/nzi5LxyaRDt4XoJTByLm" alt=""><figcaption><p>Example Console output showing NFC Wallet SDK logs (<code>[TSHPaySDK]</code>).</p></figcaption></figure>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.payments.thalescloud.io/nfc-wallet-sdk-ios/help/knowledge-base/retrieve-logs-from-an-ios-device.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
