macOS Dev Setup
このコンテンツはまだ日本語訳がありません。
macOS Developer Setup
Section titled “macOS Developer Setup”This guide covers the necessary steps to build and run the CoderClaw macOS application from source.
Prerequisites
Section titled “Prerequisites”Before building the app, ensure you have the following installed:
- Xcode 26.2+: Required for Swift development.
- Node.js 22+ & pnpm: Required for the gateway, CLI, and packaging scripts.
1. Install Dependencies
Section titled “1. Install Dependencies”Install the project-wide dependencies:
pnpm install2. Build and Package the App
Section titled “2. Build and Package the App”To build the macOS app and package it into dist/CoderClaw.app, run:
./scripts/package-mac-app.shIf you don’t have an Apple Developer ID certificate, the script will automatically use ad-hoc signing (-).
For dev run modes, signing flags, and Team ID troubleshooting, see the macOS app README: https://github.com/SeanHogg/coderClaw/blob/main/apps/macos/README.md
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
Section titled “3. Install the CLI”The macOS app expects a global coderclaw CLI install to manage background tasks.
To install it (recommended):
- Open the CoderClaw app.
- Go to the General settings tab.
- Click “Install CLI”.
Alternatively, install it manually:
npm install -g coderclaw@<version>Troubleshooting
Section titled “Troubleshooting”Build Fails: Toolchain or SDK Mismatch
Section titled “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)
Checks:
xcodebuild -versionxcrun swift --versionIf versions don’t match, update macOS/Xcode and re-run the build.
App Crashes on Permission Grant
Section titled “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:
Terminal window tccutil reset All bot.molt.mac.debug -
If that fails, change the
BUNDLE_IDtemporarily inscripts/package-mac-app.shto force a “clean slate” from macOS.
Gateway “Starting…” indefinitely
Section titled “Gateway “Starting…” indefinitely”If the gateway status stays on “Starting…”, check if a zombie process is holding the port:
coderclaw gateway statuscoderclaw gateway stop
# If you’re not using a LaunchAgent (dev mode / manual runs), find the listener:lsof -nP -iTCP:18789 -sTCP:LISTENIf a manual run is holding the port, stop that process (Ctrl+C). As a last resort, kill the PID you found above.