Claude integration in Xcode 26.4 results in 401 after some time

Setup:

  • macOS 26.4
  • Xcode 26.4
  • Claude premium subscription
  • Claude account logged in Xcode settings

The issue usually surfaces after initially setting up Claude integration in Xcode and then leaving Xcode open for at least a day or so.

The integration works initially (right after logging in). But then after some time it starts responding with this error.

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."},"request_id":"req_011Ya....."}

Restarting Xcode does not help. The only thing that helps is log out from Claude account and log back in.

Sounds like the token refresh logic is broken or missing. Please improve moving forward.

Answered by DTS Engineer in 883368022

Thanks for the post.

There is a thread about this issue here:

https://developer.apple.com/forums/thread/819968

I would recommend to move your post there, create a bug as the message suggests and post the FB number on that thread.

Thanks

Albert 
  Worldwide Developer Relations.

Accepted Answer

Thanks for the post.

There is a thread about this issue here:

https://developer.apple.com/forums/thread/819968

I would recommend to move your post there, create a bug as the message suggests and post the FB number on that thread.

Thanks

Albert 
  Worldwide Developer Relations.

Claude integration in Xcode 26.4 results in 401 after some time
 
 
Q