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

# Database model perangkat

Aplikasi pendamping macOS menampilkan nama model perangkat Apple yang mudah dikenali di UI **Instances** dengan memetakan identifier model Apple (misalnya `iPad16,6`, `Mac16,6`) ke nama yang dapat dibaca manusia.

Pemetaan tersebut divendor sebagai JSON di bawah:

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

## Sumber data

Saat ini kami memvendor pemetaan dari repositori berlisensi MIT:

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

Agar build tetap deterministik, file JSON dipin ke commit upstream tertentu (dicatat di `apps/macos/Sources/OpenClaw/Resources/DeviceModels/NOTICE.md`).

## Memperbarui database

1. Pilih commit upstream yang ingin Anda pin (satu untuk iOS, satu untuk macOS).
2. Perbarui hash commit di `apps/macos/Sources/OpenClaw/Resources/DeviceModels/NOTICE.md`.
3. Unduh ulang file JSON, dipin ke commit tersebut:

```bash theme={"theme":{"light":"min-light","dark":"min-dark"}}
IOS_COMMIT="<commit sha untuk ios-device-identifiers.json>"
MAC_COMMIT="<commit sha untuk 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. Pastikan `apps/macos/Sources/OpenClaw/Resources/DeviceModels/LICENSE.apple-device-identifiers.txt` masih cocok dengan upstream (ganti jika lisensi upstream berubah).
5. Verifikasi bahwa aplikasi macOS berhasil dibangun dengan bersih (tanpa peringatan):

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

## Terkait

* [Node](/id/nodes)
* [Pemecahan masalah Node](/id/nodes/troubleshooting)
