> 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/ja/help/knowledge-base/retrieve-logs-from-an-ios-device.md). Agents can also search and read this documentation through its [MCP server](https://docs.payments.thalescloud.io/~gitbook/mcp).

# iOS デバイスからログを取得する

### 前提条件

iOSデバイスからログを取得する前に、次の設定を完了してください。

* USBケーブルでiPhoneをMacに接続します。
* Mac上のXcodeとiPhoneをペアリングします。

これらの手順については、Appleのドキュメントを参照してください。

* [「コンソールユーザガイド」](https://support.apple.com/en-sg/guide/console/welcome/mac)
* [Macの「コンソール」でログメッセージ、アクティビティ、またはレポートを共有する](https://support.apple.com/en-us/guide/console/cnsl2356/1.1/mac/11.0)

### ログ取得の推奨手順

1. 「コンソール」アプリを開きます。
2. 「 **デバイス**.
3. 「 **プロセス** 」フィルタをデジタルウォレットアプリケーションに設定します。
4. ログの取得を開始します。
5. 問題を再現します。
6. 「 **一時停止** 」をクリックしてログの取得を停止します。
7. ログを書き出します。

{% hint style="info" %}
最も詳細なログを取得するには、NFC Wallet SDKを統合したデジタルウォレットアプリケーションのビルドを使用してください。 **デバッグ** ビルドを使用します。

対応しているビルドタイプについては、「 [成果物](https://docs.payments.thalescloud.io/nfc-wallet-sdk-ios/ja/general/deliverables.md) 」を参照してください。

失敗する操作の前後に限ってログを取得してください。手順を開始する直前に取得を開始し、終了直後に停止します。
{% endhint %}

### 設定を確認する

設定を確認するには、 `DigitalCardManager.cardList` 「 [デジタルカードを表示する](https://docs.payments.thalescloud.io/nfc-wallet-sdk-ios/ja/implement-nfc-wallet/manage-digital-cards/display-digital-cards.md).

正しく設定されている場合、書き出したログには次の情報が含まれます。

* 各行は `[TSHPaySDK]`.
* で始まります。各行にはタイムスタンプと、API呼び出しを示すメッセージが含まれます。

次の例は、これらの特徴を備えた「コンソール」の出力を示しています。

<figure><img src="https://3629066568-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6bUtiXdSFHu8lmOj8A0X%2Fuploads%2FPgXOcP60F63GZT60doyC%2Fimage.png?alt=media&amp;token=a82680dc-87ae-429a-9a0e-638da3583938" alt=""><figcaption><p>NFC Wallet SDKのログを示す「コンソール」の出力例（<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 by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

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

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
