I hit this problem occasionally too, and this sequence has worked for me every time. The key seems to be clearing every session at once rather than one at a time:
Sign out of the Claude Agent in Xcode (if it still shows you as signed in).
Sign out of your Claude sessions in Safari.
Close all Safari windows — including Safari Technology Preview if you have it installed.
Quit the Claude desktop app.
Quit Xcode and restart the Mac.
Then sign in again from Xcode → Settings → Intelligence.
Topic:
Developer Tools & Services
SubTopic:
Xcode
Tags: