> ## Documentation Index
> Fetch the complete documentation index at: https://openclawdoc.org/llms.txt
> Use this file to discover all available pages before exploring further.

# デバイスモデルデータベース

> macOS コンパニオン アプリは、Apple モデル識別子 (例: iPad16,6、Mac16,6) を人間が読める名前にマッピングすることにより、インスタンス UI にわかりやすい Apple デバイス モデル名を表示します。

macOS コンパニオン アプリは、Apple モデル識別子 (例: `iPad16,6`、`Mac16,6`) を人間が読める名前にマッピングすることにより、**インスタンス** UI にわかりやすい Apple デバイス モデル名を表示します。

マッピングは次の場所で JSON として販売されます。

* `apps/macos/Sources/OpenClaw/Resources/DeviceModels/`

## データソース

現在、MIT ライセンスのリポジトリからマッピングを提供しています。

* `kyle-seongwoo-jun/apple-device-identifiers`

ビルドを決定論的に保つために、JSON ファイルは特定のアップストリーム コミットに固定されます (`apps/macos/Sources/OpenClaw/Resources/DeviceModels/NOTICE.md` に記録されています)。

## データベースの更新

1. ピン留めするアップストリーム コミットを選択します (iOS 用に 1 つ、macOS 用に 1 つ)。
2. `apps/macos/Sources/OpenClaw/Resources/DeviceModels/NOTICE.md` のコミット ハッシュを更新します。
3. これらのコミットに固定された JSON ファイルを再ダウンロードします。

```bash theme={"theme":{"light":"min-light","dark":"min-dark"}}
IOS_COMMIT="<commit sha for ios-device-identifiers.json>"
MAC_COMMIT="<commit sha for mac-device-identifiers.json>"

curl -fsSL "https://raw.githubusercontent.com/kyle-seongwoo-jun/apple-device-identifiers/${IOS_COMMIT}/ios-device-identifiers.json" \
  -o apps/macos/Sources/OpenClaw/Resources/DeviceModels/ios-device-identifiers.json

curl -fsSL "https://raw.githubusercontent.com/kyle-seongwoo-jun/apple-device-identifiers/${MAC_COMMIT}/mac-device-identifiers.json" \
  -o apps/macos/Sources/OpenClaw/Resources/DeviceModels/mac-device-identifiers.json
```

4. `apps/macos/Sources/OpenClaw/Resources/DeviceModels/LICENSE.apple-device-identifiers.txt` がアップストリームと一致していることを確認します (アップストリーム ライセンスが変更された場合は置き換えます)。
5. macOS アプリが正常にビルドされることを確認します (警告なし)。

```bash theme={"theme":{"light":"min-light","dark":"min-dark"}}
swift build --package-path apps/macos
```
