> 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).

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

### 前提条件

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

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

次の手順については、Appleのドキュメントを参照してください：

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

### ログを取得するための推奨手順

1. Consoleアプリを開きます。
2. 次の項目でiPhoneを選択します **デバイス**.
3. 次の項目を設定します **プロセス** フィルターをデジタルウォレットアプリケーションに設定します。
4. ログの取得を開始します。
5. 問題を再現します。
6. クリックします **一時停止** してログの取得を停止します。
7. ログをエクスポートします。

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

参照 [成果物](/nfc-wallet-sdk-ios/ja/general/deliverables.md) サポートされているビルド種別向けに使用します。

ログは失敗するフローの前後のみで取得してください。手順の直前に開始し、直後に停止します。
{% endhint %}

### 設定を確認する

設定を確認するには、 `DigitalCardManager.cardList` 次のとおりに呼び出します [デジタルカードを表示](/nfc-wallet-sdk-ios/ja/implement-nfc-wallet/manage-digital-cards/display-digital-cards.md).

正しく設定されている場合、エクスポートされたログには次が含まれます：

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

次の例は、これらの機能を含むConsoleの出力を示しています：

<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のログを示すConsole出力の例（<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/ja/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.
