Xcode 27 beta Codex sign-in fails only for ChatGPT Pro account requiring email OTP; Go account works
What version of the IDE extension are you using?
Xcode Codex agent 0.132.0 Codex CLI 0.139.0
What subscription do you have?
ChatGPT Pro (ChatGPT Go account signs into Xcode Codex successfully on the same Mac/Xcode/network.)
Which IDE are you using?
Xcode 27.0 beta Build 27A5194q
What platform is your computer?
Darwin 25.5.0 arm64 arm
What issue are you seeing?
Xcode 27 beta Codex sign-in fails only for my ChatGPT Pro account. Browser/Safari login succeeds and shows “Signed in to Codex. You may now close this page,” but Xcode remains “Not Signed In” / “Requires Eligible Account or API Key.”
If I close the browser success page, Xcode stops loading and remains not signed in. If I do not close the browser success page, Xcode keeps loading.
This appears account-specific:
- Same Mac
- Same Xcode beta
- Same Safari/auth flow
- Same network
- ChatGPT Go account signs into Xcode Codex successfully
- ChatGPT Pro account fails
- Pro account requires email one-time passcode verification during login
- MFA/passkey were disabled for testing, but email OTP is still required
Codex CLI and Codex app both work with the same ChatGPT Pro account.
No VPN, corporate network, or SSL inspection is in use.
What steps can reproduce the bug?
- Open Xcode 27 beta.
- Go to Xcode → Settings → Intelligence → Codex.
- Choose “Sign in with ChatGPT Account.”
- Log in with a ChatGPT Pro account that requires email OTP verification.
- Complete the email OTP step.
- Safari/browser shows “Signed in to Codex. You may now close this page.”
- Return to Xcode.
- Xcode remains “Not Signed In” / “Requires Eligible Account or API Key.”
What is the expected behavior?
After successful browser authentication, Xcode should receive the callback/session and show my ChatGPT Pro account as signed in.
Additional information
Environment:
- macOS: 26.5.1 (25F80)
- Xcode beta: 27.0, build 27A5194q
- Xcode app CFBundleVersion: 25183.29.15
- xcode-select: /Applications/Xcode-beta.app/Contents/Developer
- Codex CLI: 0.139.0
- Xcode Codex agent: 0.132.0
- Codex CLI status: Logged in using ChatGPT
- Browser/auth session: Safari
- Apple Feedback Assistant: FB23120788
Already tried:
- Cleared OpenAI/ChatGPT/Safari session data
- Codex CLI login works
- Codex app login works
- Device auth / browser auth
- Passkey disabled
- MFA disabled
- Safari HTTP warning setting checked/unchecked
- File-based Codex auth config
- Confirmed xcode-select points to Xcode beta
- Quit/reopened Xcode
- Tried changing default browser, but Xcode still opens Safari/auth session
- Retried multiple times
- No VPN is in use
- No corporate network or SSL inspection is in use
Related:
- #10989 — Xcode/Safari localhost callback issue, related but not identical because my browser reaches the success page.
- #23109 — Xcode Codex agent regression after Codex agent update.
22 Comments
See https://developer.apple.com/forums/thread/832539 and links in the reply. There's many Codex & Xcode users running into this issue. For me the workaround suggested in various threads didn't work, can't use Codex in Xcode for now.
same issue
Having the same issue, has anyone been able to log in at all?
have you tried config.toml? it works for me
Can you elaborate on this?
config.toml only works for API key method
Having the same issue
I’ve been having the same issue regardless of whether I’m in the latest production or beta versions of Xcode. I’ve tried everything, including removing Xcode and all Apple Developer Tools, ChatGPT macOS app, Apple Intelligence ChatGPT extension in System Settings, and the Codex CLI tools and reinstalling them all.
I have two OpenAI accounts: one on Plus and one on Pro. Plus works, Pro doesn't (can't log in). Via "xcrun agent codex" in the terminal, both work fine. Tried Xcode 26.6 and 27.0 beta 3.
Me too
Same here.
Not on Xcode beta, but I solved the Not logged in problem with using config.toml for the login: https://github.com/openai/codex/issues/34639#issuecomment-5040110223
Same. I was using the
config.tomlway too. But are you able to use GPT-5.6 Sol?No, if you set
model = "gpt-5.6", the chat says that it's not available for ChatGPT accounts.gpt-5.5works.model_reasoning_effort = "xhigh"didn't throw an error.Yup. I am stuck with GPT-5 only.
Apple provided me the below resolution today in my Feedback ticket; I've tried it and can't get it to work (still having the exact same issue noted in the original post in both Xcode 26 and Xcode 27), but maybe it will help someone else:
Yeah, not possible. I tried these too
Vibe clowning broke vibe clowning. Color me surprised. 🤡
The vibes I am getting right now is that the reset games on social media is more important than fixing this to get the ChatGPT Pro plans working with Xcode.
Tbh maybe the issue is not that bad - it works with config.toml login (ok it still takes unnecessary time to figure out this workaround), plus:
I worked with the Xcode integration for a few days, it feels good and looks great
But although it's working, I switched to the Codex app - when you use it with a project, you can have parallel tasks, it has a better permission check (the auto-approve from Codex doesn't work in the Xcode integration, and it would often stop and ask you for permission - unless you give it * permissions with network access, which feels like a significant downgrade since the Codex auto-review feature).
For me bugs in the current Xcode plugin:
Xcode 27 Beta 5 should be released today, but I doubt this is going to be fixed.
I just checked and the problem is fixed in Xcode 27 Beta 5 with Codex version 0.145.0 (at least in my case). They also added a new way of signing in "Sign In With a ChatGPT Device Code...", however I used standard "Sign In With a ChatGPT Account...".