Skip to content

Login: unknown au step "managedAppleId" treated as logged in, then -22411 on the Xcode token (macOS, 2.4.3) #1458

Backlog

Description

@roboSam85

Describe the issue

Sign-in looks like it works, then installing fails with -22411 when iloader asks for the Xcode token. The debug log shows why: after the password proof, Apple's response has au set to managedAppleId. isideload doesn't recognise that step, so it logs it and then treats the account as logged in. The token request fails because the step was never done.

It happened the same way on all 3 sign-ins today, including right after a fresh anisette provisioning (no saved state, provisioned again from mac-ani.jkcoxson.com). No 2FA code was asked for at any point.

The Apple ID is a personal @outlook.com account, not one from Apple Business or School Manager, so it's odd that Apple calls it a managed Apple ID.

Relevant log lines (~/Library/Application Support/me.nabdev.iloader/logs, email removed):

isideload::anisette::remote_v3: No existing anisette state found
isideload::anisette::remote_v3: Provisioning required...
isideload::anisette::remote_v3: Starting provisioning at wss://mac-ani.jkcoxson.com/v3/provisioning_session
isideload::anisette::remote_v3: Provisioning successful
isideload::auth::apple_account: Sending initial login request
isideload::auth::apple_account: Login step 1 completed
isideload::auth::apple_account: Selected SRP protocol: s2k, iterations: 20286
isideload::auth::apple_account: Sending proof login request
isideload::auth::apple_account: Login step 2 response received, verifying server proof
isideload::auth::apple_account: Server proof verified
isideload::auth::apple_account: Login step 2 completed
isideload::auth::apple_account: Initial login successful
 INFO isideload::auth::apple_account: Additional authentication step required: managedAppleId
 INFO isideload::auth::apple_account: Successfully logged in to Apple ID
iloader_lib::account: Logged in

In isideload, any au value it doesn't know becomes NeedsExtraStep, and that turns into LoggedIn as long as get_pet() succeeds:

So the -22411 hides the real cause. Two suggestions:

  1. When au is something isideload doesn't know, say so in the error (for example "Apple asked for an extra sign-in step: managedAppleId") rather than continuing and failing later at the app token.
  2. If anyone knows what Apple expects for managedAppleId, handle it, or tell the user what to do (for example, sign in to account.apple.com or Xcode first).

I couldn't find managedAppleId mentioned in any iloader, isideload, SideStore or AltStore issue.

Error message

 ● Failed to get xcode token from Apple account
 ├ /Users/runner/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/isideload-0.5.2/src/dev/developer_session.rs:55
 │
 ● GrandSlam error during app token request
 ├ /Users/runner/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/isideload-0.5.2/src/auth/apple_account.rs:980
 │
 ● Auth error -22411: This action cannot be completed at this time
 ╰ /Users/runner/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/isideload-0.5.2/src/auth/grandslam.rs:282

Computer OS

macOS 27.0 (26A428)

iloader version

2.4.3

What distribution of iloader did you download?

Other: Homebrew cask (macOS)

iOS Version

Not relevant here. It fails at the Apple ID token step, before any work on the device.

Two-factor auth (2FA) type

No 2FA prompt was shown. Apple returned au=managedAppleId instead of a trusted-device or SMS step.

Activity

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions