[BUG] Claude Code tab: exit code 127 + Malformed Mach-o on Intel Mac

Resolved 💬 1 comment Opened May 21, 2026 by Anniesweta Closed Jun 21, 2026

Preflight Checklist

  • [x] I have searched existing issues and this hasn't been reported yet
  • [x] This is a single bug report (please file separate reports for different bugs)
  • [x] I am using the latest version of Claude Code

What's Wrong?

What's Wrong?

The Claude Code tab in Claude Desktop fails to start on an Intel Mac with the following error:

Claude Code process exited with code 127
Failed to spawn process: Malformed Mach-o file

Chat works fine. Only the Claude Code tab is affected.

Environment

  • Mac chip: Intel (x86_64)
  • macOS version: [add your macOS version here — Apple menu → About This Mac]
  • Claude Desktop version: [add version here — Claude menu → About Claude]
  • Claude Code CLI version: 2.1.146 (installed via native installer, working in Terminal)
  • Downloaded from: claude.ai/download (not App Store)

Actual Behavior
Process exits with code 127 and "Malformed Mach-o file" — suggesting the bundled binary inside Claude Desktop is built for ARM (Apple Silicon) and is incompatible with Intel x86_64 architecture.

What I've Tried

  • Reinstalled Claude Desktop from claude.ai/download
  • Uninstalled npm version of Claude Code (sudo npm uninstall -g @anthropic-ai/claude-code)
  • Reinstalled via native installer (curl -fsSL https://claude.ai/install.sh | bash)
  • Claude Code CLI works correctly in Terminal (confirmed with claude --version → 2.1.146)

Workaround
Using Claude Code directly in Terminal as a temporary workaround.

Related Issues

  • #58495 (exit code 127, Intel Mac)
  • #54274 (exit code 127, Apple Silicon)

What Should Happen?

Expected Behavior
Claude Code tab launches successfully.

Error Messages/Logs

Steps to Reproduce

Steps to Reproduce

  1. Open Claude Desktop on Intel Mac
  2. Click the Claude Code tab
  3. Error appears immediately: "Claude Code binary is missing or damaged"

Claude Model

None

Is this a regression?

Yes, this worked in a previous version

Last Working Version

_No response_

Claude Code Version

Claude 1.8555.0 (8245b7) 2026-05-21T05:49:11.000Z

Platform

Anthropic API

Operating System

macOS

Terminal/Shell

Terminal.app (macOS)

Additional Information

_No response_

View original on GitHub ↗

This issue has 1 comment on GitHub. Read the full discussion on GitHub ↗