Build Issues
swiftc: command not found
Problem: Swift compiler not found when running npm run build:native
Solution:
Install Xcode Command Line Tools
Restart Terminal
Verify Installation
npm install fails on native modules
Problem: Installation fails with node-gyp or native module errors
Solution:
Update Xcode Command Line Tools
Check Node.js Version
Clean and Reinstall
Apple Silicon (M1/M2/M3) issues
Problem: Build fails or native features don’t work on Apple Silicon Macs Solution:Native features missing after npm run dev
Problem: Native features don’t work in development mode
Solution:
The dev script doesn’t compile Swift binaries. Run this first:
Runtime Issues
App launches but hotkeys don’t work
Problem: Global hotkeys and launcher shortcut don’t respond Solution:Grant Input Monitoring Permission
Restart the App
Verify Native Binary
Window management doesn’t work
Problem: Window tiling and positioning features fail Solution:Grant Accessibility Permission
Check window-adjust Binary
window-adjust.swift binary checks AXIsProcessTrusted()Restart the App
Extensions fail to install
Problem: Extension installation fails with git errors Solution:Verify Homebrew is Installed
git to clone extensions:Install Homebrew if Missing
Check Git is Available
Check Console Logs
Cmd+Option+I) and look for specific error messagesVoice input not working
Problem: Hold-to-speak or Whisper STT doesn’t work Solution:Grant Microphone Permission
Grant Speech Recognition Permission
Verify Native Binaries
Test Microphone Access
Development Issues
Changes not reflected in app
Problem: Code changes don’t appear after saving Solution:Troubleshooting Steps
Troubleshooting Steps
DevTools won’t open
Problem:Cmd+Option+I doesn’t open Chrome DevTools
Solution:
Ensure you’re running in development mode:
TypeScript errors in editor
Problem: Editor shows TypeScript errors but build succeeds Solution:Restart TypeScript Server
Cmd+Shift+P → “TypeScript: Restart TS Server”Check tsconfig.json
tsconfig.main.jsonfor main processtsconfig.jsonfor renderer
Reinstall Dependencies
Extension Compatibility Issues
Extension loads but crashes immediately
Problem: Extension starts then fails with errors Solution:Open DevTools
Cmd+Option+I to see error messagesCheck for Missing APIs
Verify Extension Bundling
Test in Raycast
Extension preferences not working
Problem: Extension can’t read or save preferences Solution:Debug Steps
Debug Steps
Extension actions don’t fire
Problem: Clicking actions or using shortcuts does nothing Solution:- Check that ActionPanel is rendered
- Verify action callbacks are defined
- Look for JavaScript errors in console
- Test keyboard shortcuts match expected format
- Check action registry is collecting actions correctly
IPC Issues
IPC calls timeout or fail
Problem: Renderer → Main IPC calls fail or hang Solution:Verify Handler Exists
ipcMain.handle() is registered in src/main/main.ts:Check Preload Exposure
src/main/preload.ts:Check for Errors
AI Feature Issues
AI chat not working
Problem: AI responses don’t stream or fail Solution:Check AI Configuration
- AI is enabled
- Provider is selected (OpenAI, Claude, or Ollama)
- API key is set (if using cloud providers)
Test API Key
Check Console Logs
Verify Streaming Works
ai-provider.ts is handling streaming correctlyOllama not connecting
Problem: Ollama integration fails Solution:Check Ollama is Running
Verify Base URL
ollamaBaseUrl is set to http://localhost:11434Install Models
Performance Issues
App is slow or laggy
Problem: UI feels sluggish or unresponsive Solution:Performance Optimization
Performance Optimization
Large extension lists are slow
Problem: Scrolling through many items is laggy Solution:- Implement virtual scrolling for long lists
- Add search filtering to reduce visible items
- Check if pagination is working correctly
- Profile render performance in React DevTools
macOS-Specific Issues
Permission dialogs keep appearing
Problem: macOS asks for permissions repeatedly Solution: This happens when the app bundle identifier changes or the app is rebuilt:- Go to System Settings → Privacy & Security
- Remove SuperCmd from all permission lists
- Relaunch SuperCmd
- Grant permissions when prompted
- Restart the app
App crashes on macOS Sonoma
Problem: App crashes or freezes on macOS Sonoma (14.x) Solution:Update Electron
Check Native Binaries
Check Console Logs
Getting Help
If you’re still stuck:- Search GitHub Issues — Check if someone else has reported the same problem: GitHub Issues
- Ask on Discord — Join our Discord server for real-time help
-
Create an Issue — If it’s a bug, create a new issue with:
- macOS version
- Node.js version (
node -v) - SuperCmd version
- Steps to reproduce
- Console logs (if available)
- Screenshots (if relevant)
- Check Documentation — Read CLAUDE.md for architecture details
Next Steps
- Learn about Contributing to SuperCmd
- Understand Code Organization
- Review Testing strategies