claude-code - 💡(How to fix) Fix "Claude Code process exited with code 1" on macOS — real cause is folder privacy permission, no helpful error shown [3 comments, 4 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
anthropics/claude-code#51984Fetched 2026-04-23 07:39:39
View on GitHub
Comments
3
Participants
4
Timeline
8
Reactions
0
Timeline (top)
commented ×3labeled ×3cross-referenced ×2

Error Message

The error gives no indication of what went wrong. After extensive troubleshooting (checking .zprofile, PATH, binary versions), the real cause turned out to be a macOS privacy permission: the system was blocking Claude from accessing the folder. The problem: The error message is completely unhelpful. It should say something like "Access denied: go to System Settings > Privacy & Security and allow Claude to access this folder."

RAW_BUFFERClick to expand / collapse

When opening a project folder in the Claude Code desktop app, the session crashes immediately with:

Claude Code process exited with code 1

The error gives no indication of what went wrong. After extensive troubleshooting (checking .zprofile, PATH, binary versions), the real cause turned out to be a macOS privacy permission: the system was blocking Claude from accessing the folder.

Fix: System Settings > Privacy & Security > grant folder access to Claude.

The problem: The error message is completely unhelpful. It should say something like "Access denied: go to System Settings > Privacy & Security and allow Claude to access this folder."

Environment:

  • macOS (Apple Silicon)
  • Claude Code desktop app v2.1.111
  • Project folder path with accented characters and spaces: QGE Negócios Inteligentes/Prezo.psi

extent analysis

TL;DR

The issue can likely be resolved by granting the Claude Code desktop app permission to access the project folder through System Settings.

Guidance

  • Check the system's privacy settings to ensure Claude Code has the necessary permissions to access the project folder.
  • Verify that the project folder path is correctly formatted and accessible, considering the presence of accented characters and spaces.
  • If the issue persists, try resetting the app's permissions or reinstalling the Claude Code desktop app to ensure a clean configuration.
  • Consider reporting the unhelpful error message to the app developers to improve future troubleshooting experiences.

Example

No code snippet is necessary for this issue, as it is related to system permissions rather than code functionality.

Notes

This solution applies specifically to macOS (Apple Silicon) with the Claude Code desktop app v2.1.111. The presence of accented characters and spaces in the project folder path may require additional attention to ensure correct handling.

Recommendation

Apply the workaround by granting the necessary permissions through System Settings, as this directly addresses the identified root cause of the issue.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

claude-code - 💡(How to fix) Fix "Claude Code process exited with code 1" on macOS — real cause is folder privacy permission, no helpful error shown [3 comments, 4 participants]