XcodesOrg / XcodesOrg/xcodes

Non-specific 2FA failure

Open
#251 6 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Swift
Stars
4.8k
Forks
182
Avg merge
2d 12h
Merged PRs (30d)
1

Description

Thanks for making this tool. I attempted to use it to install xcode 14.1 but had some kind of auth issue. After entering email and password, it prompted for a six digit code. That did pop up on this laptop, but after I entered it and hit enter I got some kind of low-level error:

  $ xcodes install 14.1
  Apple ID: [my email]
  Apple ID Password: [my password]
  Two-factor authentication is enabled for this account.
  
  Enter "sms" without quotes to exit this prompt and choose a phone number to send an SMS security code to.
  Enter the 6 digit code from one of your trusted devices: [six digit code]
  Invalid HTTP response (400) for https://idmsa.apple.com/appleauth/auth/verify/trusteddevice/securitycode.
  Invalid HTTP response (400) for https://idmsa.apple.com/appleauth/auth/verify/trusteddevice/securitycode.

I'm at a loss for how to help debug this, but I'm happy to try suggestions. Thanks in advance for any help.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the reported xcodes install 14.1 flow with two-factor authentication and inspect the trusted-device security-code entry point. Trace the HTTP 400 response from Apple's verification endpoint and determine why it is surfaced as a low-level error. Done means the failure is diagnosed and the command provides a targeted resolution or clearer error.

Written by the indexing model from the issue text.

Assessment

Tech stack
macos, swift
Domain
authentication, cli
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.