Skip to content

2FA code never comes when using xtool setup. #283

Closed

Description

@necoarcc

Description

2FA code never comes when using xtool setup.

Environment

Latest windows 11, xtool running in Debian WSL. I run xtool setup and enter Apple account credentials. It stays on "logging in" for some time then asks me for a code, but the code never comes to my phone.

Host OS (macOS/Linux/WSL): WSL

Host OS version: Debian 13

iOS device version: 27

Swift version: 6.4

SDK version: n/a

Activity

  1. necoarcc commented on Sep 29, 2026

    @necoarcc
    Author

    When capturing the traffic with mitmproxy, https://gsa.apple.com/auth/verify/phone/put?mode=sms fails with response:

      <alert title="No Trusted Phone Numbers"
      message="You do not have any trusted phone numbers associated with your Apple Account.  You can add a trusted phone number by verifying your identity.">
        <button name="ak-button" ak-action="cancel">Cancel</button>
        <button httpMethod="GET" url="https://gsa.apple.com/iforgot/phone/add?context=donthaveaccess&amp;prs_account_nm=[email]&amp;autoSubmitAccount=true&amp;appId=93&amp;xa=showModal">Add</button>
      </alert>
    </xmlui>```
    
  2. necoarcc commented on Sep 29, 2026

    @necoarcc
    Author

    the apple account does have a phone number linked and logging in through web works

  3. necoarcc commented on Sep 30, 2026

    @necoarcc
    Author

    Could only solve the issue by adding an iphone to the apple account and using that to receive the code instead

  4. kabiroberai commented on Oct 4, 2026

    @kabiroberai
    Member

    Interesting, did you ever try logging into a sideloading tool like SideStore/AltStore with this Apple ID previously? I'm curious whether it succeeded, since the approach xtool takes is similar

  5. necoarcc commented on Oct 20, 2026

    @necoarcc
    Author

    Didn't try signing into other stuff with it before adding a phone, don't know

  6. kabiroberai commented on Oct 20, 2026

    @kabiroberai
    Member

    Gotcha. I think this should be solved by the workaround in #349 (see #345 for details).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions