41. macOS Developer Setup
- Ushbu qo‘llanma OpenClaw macOS ilovasini manba koddan yig‘ish va ishga tushirish uchun zarur qadamlarni qamrab oladi.
43. Oldindan talablar
- Ilovani yig‘ishdan oldin quyidagilar o‘rnatilganligiga ishonch hosil qiling:
-
- Xcode 26.2+: Swift’da ishlab chiqish uchun zarur.
-
- Node.js 22+ & pnpm: Gateway, CLI va paketlash skriptlari uchun zarur.
47) 1) 48) Bog‘liqliklarni o‘rnatish
- Loyiha bo‘yicha umumiy bog‘liqliklarni o‘rnating:
2. Build and Package the App
To build the macOS app and package it intodist/OpenClaw.app, run:
Note: Ad-hoc signed apps may trigger security prompts. If the app crashes immediately with “Abort trap 6”, see the Troubleshooting section.
3. Install the CLI
Uni o‘rnatish uchun (tavsiya etiladi): To install it (recommended):- Open the OpenClaw app.
- Go to the General settings tab.
- Click “Install CLI”.
Troubleshooting
Build Fails: Toolchain or SDK Mismatch
The macOS app build expects the latest macOS SDK and Swift 6.2 toolchain. System dependencies (required):- Latest macOS version available in Software Update (required by Xcode 26.2 SDKs)
- Xcode 26.2 (Swift 6.2 toolchain)
App Crashes on Permission Grant
If the app crashes when you try to allow Speech Recognition or Microphone access, it may be due to a corrupted TCC cache or signature mismatch. Fix:-
Reset the TCC permissions:
-
If that fails, change the
BUNDLE_IDtemporarily inscripts/package-mac-app.shto force a “clean slate” from macOS.