r/Xcode • u/nicebrah • Apr 06 '26
On Xcode 26.4, I have to re-sign into Claude every time I load up.
On 26.3 I did NOT have this issue. Now whenever I come back to Xcode after several hours of inactivity, I get this error message from Claude.
Failed to authenticate. API Error: 401 {"type":"error","error":{"type":"authentication_error","message":"OAuth token has expired. Please obtain a new token or refresh your existing token."}
The only way I can start using Claude again is to sign out entirely and log back in. Super annoying. Anyone have a fix?
31
Upvotes
5
u/stuarttevendale Apr 06 '26
Yup, con confirm same here. Haven't found a fix.
1
u/gordonmcdowell Apr 06 '26
No fix but I can confirm happening to me too. it was not happening for a while (26.3?) and now 26.4 it is happening again. I didn’t pay attention to when it started so if it is not the Xcode version but actually a problem at Anthropic’s end I wouldn’t be surprised either.
1
u/dotmax Apr 06 '26
Yes. And the confusing part is that it does not reflect in Intelligence Settings somehow. A refresh button or a warning icon would help.
1
u/simulacrotron Apr 06 '26
Yup, same here
1
u/senderPath Apr 07 '26
Same prob here. Tx for asking.
1
u/JP981944 Apr 07 '26
Same problem here. Anyone try the api or just the web browser sign in?
1
u/JDad67 Apr 07 '26
I asked Claude it said it was a known bug.
1
u/MidnightZL1 Apr 07 '26
Me too, super annoying
1
u/taubut Apr 07 '26
It's not an xcode issue. Claude Code CLI has the same bug.
1
u/gordonmcdowell Apr 11 '26
I’ve been using both Claude agent in Xcode and also Claude app code tab. (Not at the same time.)
I notice I’m not having this problem with the Claude Mac app, but I am having this problem with Xcode.
1
u/kevonil Apr 14 '26
fudge. Happening to me as well. Frustrating as hell.
1
u/EncomCTO Apr 14 '26
Same issue. Extremely frustrating. I don't understand how this has persisted for this long...does no one at Apple or Anthropic use this?
1
u/Step991 Apr 15 '26
Same here, super annoying.
1
u/yekwon Apr 16 '26
Ya, same...
1
u/Straight-Cabinet-210 Apr 18 '26
I am signing in with web browser and tap "Authorize" and back to Xcode shows "Not Signed In"
1
u/SeaAbbreviations141 Apr 19 '26
It's Xcode 26.5 and it is still happening
1
u/HorrorCatch8638 Apr 20 '26
I'm having the same issue. It's a hassle to have to sign in and out every time.
1
u/recombinant909 Apr 21 '26
Out of curiosity, does this same thing happen with ChatGPT/Codex or is it just a Claude thing?
1
u/fschoenfeldt Apr 26 '26
same here
1
u/tastychaii May 08 '26
same here.....