[BUG] WORK AROUND for Claude Agent OAuth sign-in fails in Xcode 26.5

Open 💬 2 comments Opened Jul 10, 2026 by mr-wellick

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?

Refer to this issue for additional information, https://github.com/anthropics/claude-code/issues/39189.

What Should Happen?

We should be able to download Claude agent and log in.

<img width="696" height="147" alt="Image" src="https://github.com/user-attachments/assets/d67b1bb9-5d3f-4d4d-9102-9fe78fd773ed" />

Error Messages/Logs

Steps to Reproduce

I was able to fix this. When you go to Intelligence Tab in Xcode, make sure to just download claude agent. Then go here and do a Claude native install, https://code.claude.com/docs/en/overview#native-install-recommended. Next, close Xcode.

It seems like Xcode is downloading the arm binary instead of the intel binary. I'm on a Mac running an intel processor.

I ran the following commands

# 1. Force quit Xcode to prevent file lock issues (overkill maybe, haha)
killall Xcode 2>/dev/null

# 2. Overwrite the broken binary with your working Intel (x86_64) version
cp ~/.local/bin/claude /Users/mr.robot/Library/Developer/Xcode/CodingAssistant/Agents/claude/2.1.118/claude

# 3. Strip the security quarantine block from the new binary
xattr -dr com.apple.quarantine /Users/mr.robot/Library/Developer/Xcode/CodingAssistant/Agents/claude/2.1.118/

# 4. Verify it now says "Mach-O 64-bit executable x86_64"
file /Users/mr.robot/Library/Developer/Xcode/CodingAssistant/Agents/claude/2.1.118/claude

This worked for me. I can see Claude agent working in Xcode.

<img width="1691" height="646" alt="Image" src="https://github.com/user-attachments/assets/0d635fbf-12d1-48ee-957f-fe4409c3fb7c" />

Claude Model

_No response_

Is this a regression?

I don't know

Last Working Version

_No response_

Claude Code Version

2.1.206 (Claude Code)

Platform

Anthropic API

Operating System

macOS

Terminal/Shell

Terminal.app (macOS)

Additional Information

_No response_

View original on GitHub ↗

This issue has 2 comments on GitHub. Read the full discussion on GitHub ↗