> 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デバイスからログを取得する前に、次のセットアップを完了してください：

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

これらの手順については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="/files/7823a84a1269b88dd6377fe943547adb9ae71c71" 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.
