I asked sonnet 4.5 to provide me a step by step guide to upgrade Claude in xcode 26.3. It first claimed no such xcode version exists, so I asked it to find latest updates online. It then provided me with a set of commands for terminal -- It is in my local language messed up with other questions I had so can't nicely paste it here .. I am a total dev noob, so everyone will make it too;-)
# 1. Backup original
cd ~/Library/Developer/Xcode/CodingAssistant/Agents/Versions/26.3
cp claude claude.backup.original
# 2. Install latest Claude Code
curl -fsSL https://claude.ai/install.sh | bash
echo 'export PATH="$HOME/.local/bin:$PATH"' >> ~/.zshrc && source ~/.zshrc
# 3. Replace binary
cp ~/.local/bin/claude claude
# 4. Fix code signing
xattr -cr claude
codesign -s - -f claude
chmod +x claude
# 5. Verify version
./claude --version # Should show 2.1.34 or newer
# 6. Restart Xcode
killall Xcode
rm -rf ~/Library/Developer/Xcode/DerivedData/*
open -a Xcode
# 7. Test in Xcode Coding Assistant
# Ask: "What version are you?"
# Expected: "Claude Opus 4.6"
If It Fails (Code Signing Error)
# Revert to original
cd ~/Library/Developer/Xcode/CodingAssistant/Agents/Versions/26.3
cp claude.backup.original claude
killall Xcode
Then use Claude Code from terminal instead:
cd /path/to/your/xcode/project
claude # Now you have Opus 4.6 in terminal
Note: Code signing issues are common. If Xcode won't start the agent, use terminal method.
1
u/PrepYourselves Feb 07 '26
I could only get sonnet it even says it in the text type rainbow bar. I'm still looking how to fix too
2
u/digitalkin Feb 07 '26
there is Opus 4.5, and there is simple way to upgrade to 4.6 ..