Repository navigation
Fix Apple ID sign-in failing with HTTP 503 (Apple blocks the hardcoded Xcode client identifier) - #1790
Fix Apple ID sign-in failing with HTTP 503 (Apple blocks the hardcoded Xcode client identifier)#1790catdkny wants to merge 1 commit into
Conversation
Apple's authentication edge now returns HTTP 503 for any sign-in request whose X-MMe-Client-Info header identifies the client as Xcode. The request is refused before any credential is checked, so every sign-in failed with "Apple's authentication servers returned an error (HTTP 503)" regardless of the account used. Report the client as akd, the daemon that normally performs this request. The blocked value is a hardcoded literal, so this affects every user on every version.
My first thought was if the value was initialized with a random value each time to avoid being blocked in the future. If there is a better system value that also sounds ideal. Note: Just a user of this project, but a SWE for day to day :) |
|
So, if you don't know anything about IT, there's no way to fix this error yourself? |
Apple's GSA edge returns HTTP 503 for any request whose X-Mme-Client-Info contains 'com.apple.dt.Xcode' (since early September 2026). Report the client as akd, the daemon that actually performs these requests on macOS. Same root cause and fix as altstoreio/AltStore#1790.
|
I'm confused at what I'm looking at. How exactly do I use the "fix" |
This is a proposed code change to fix this. It would need to be approved by the maintainer(s) of AltStore and a new release would need to be made. I don't see anything posted on any of their channels that they are even aware of this breaking. |
|
@catdkny Just looking at the changes 2 days ago, should this maybe be targeting the |
Thanks for the feedback. Our platform relies on how Apple responds; I realize that Apple's servers could change things at any time—potentially without notice. I was previously using version 1.7.2 and had high hopes for 1.7.3, so I was surprised to see 1.7.5 arrive instead. However, 1.7.5 still has issues. Hope it helps. |
|
following , same issue here. |
|
Sidestore just released an update just have to wait for the live container devs to integrate the new version |
|
Amazing thank you so much for this! I've merged this in to the |
Apple's GSA edge returns HTTP 503 for any X-MMe-Client-Info containing com.apple.dt.Xcode since early September 2026. Anisette servers (ani.sidestore.io) still serve this stale identifier, breaking login/2FA/signing. Mirrors isideload a19f5f0 and AltStore SideStore#1790: replace com.apple.dt.Xcode/x.y.z with com.apple.akd/1.0 in deviceDescription at the single source (FetchAnisetteDataOperation), covering both V3 client_info and V1 X-MMe-Client-Info paths.
The community would highly appreciate it! |
Replace the upstream Xcode client description at Coffer's adapter boundary and wipe the source string before reusing its allocation. Share the fixed akd profile with provisioning so both paths report the same client role while preserving source validation. altstoreio/AltStore@c558994 altstoreio/AltStore#1790 Assisted-by: Codex:gpt-5.6-sol Assisted-by: Codex:gpt-6-astra Assisted-by: Claude Code:claude-opus-5
Replace the stale AuthKit platform description used by GSA with the public profile recently verified by xtool. Keep the Xcode token confined to the GSA User-Agent while reporting akd in client-info, and pin the current trusted-device Xcode version. Split authentication and provisioning client-info constants so the provisioning path retains its independently verified macOS 13 profile and AKD User-Agent pair without changing stored state or control flow. Add exact offline assertions for password exchange, 2FA, generation, and provisioning headers. xtool-org/xtool#244 xtool-org/xtool@893cf4f xtool-org/xtool#257 xtool-org/xtool@450223e altstoreio/AltStore#1790 Assisted-by: Codex:gpt-5.6-sol Assisted-by: Codex:gpt-6-astra Assisted-by: Claude Code:claude-opus-5
|
I’m sorry, I’m not very familiar with IT. Could you please tell me what software I need to download in order to modify the code you mentioned? |
They have released a new version, so you just need to "check for updates" and install it. |
Since early September 2026 a POST to `gsa.apple.com/grandslam/GsService2` whose
`X-MMe-Client-Info` contains `com.apple.dt.Xcode` is refused before any credential is looked at:
a 190-byte HTML page from `Server: Apple` in about 0.2s rather than a GSA plist. Clients see it
as HTTP 503 and report it as an Apple outage.
Naming `com.apple.akd` - the daemon that actually performs this request on macOS - reaches the
service. Verified with this library's own request shape and real Anisette data, one variable
changed:
akd -> HTTP 200 (818 bytes, a real GSA plist)
xcode -> HTTP 503 (190 bytes, the edge error page)
and without any account at all:
curl -so /dev/null -w '%{http_code}\n' -X POST --data-binary t \
-H 'X-MMe-Client-Info: <Mac14,2> <macOS;15.7.5;24G624> <com.apple.AuthKit/1 (com.apple.dt.Xcode/3594.4.19)>' \
https://gsa.apple.com/grandslam/GsService2 # 503
... (com.apple.akd/1.0)> ... # 401, i.e. it arrived
`client_akd` already existed for the endpoints that authenticate with a heartbeat token, so this
is the value this library already knew how to compose - it simply was not used here.
**Only this call site sends the identifier on the GSA path.** `get_cpd` does not request client
info, so the body carries none, and `_XCODE_BUNDLE` survives only in `client` and on the SMS 2FA
path. That matters because patching the Anisette header builder instead looks like a fix and
changes nothing - which is exactly the wrong turn taken while diagnosing this, and the reason a
whole afternoon went into eliminating the serial, the device ids, the provisioning, the network,
the account and the machine first.
Diagnosed by AltStore in altstoreio/AltStore#1790 and shipped in AltServer 1.7.6; the same block
took out SideStore, Macless Haystack, OpenBubbles and this library. Dadoum/anisette-v3-server#60
is the same one-token change. See OpenTagViewer#168, malmeloo#176 and malmeloo#181.
Since early September 2026 every sign-in fails with `Error response for GSA request: 503`.
Apple's edge refuses any POST to `gsa.apple.com/grandslam/GsService2` whose
`X-MMe-Client-Info` names `com.apple.dt.Xcode`, before any credential is examined -- it
answers a 190-byte HTML page from `Server: Apple` in about 0.2s instead of a GSA plist.
`com.apple.akd` is the daemon that performs this request on macOS and is answered normally.
Reproducible without an account:
curl -so /dev/null -w '%{http_code}\n' -X POST --data-binary t \
-H 'X-MMe-Client-Info: <MacBookPro18,3> <Mac OS X;13.4.1;22F8> <com.apple.AOSKit/282 (com.apple.dt.Xcode/3594.4.19)>' \
https://gsa.apple.com/grandslam/GsService2 # 503
curl -so /dev/null -w '%{http_code}\n' -X POST --data-binary t \
-H 'X-MMe-Client-Info: <MacBookPro18,3> <Mac OS X;13.4.1;22F8> <com.apple.AuthKit/1 (com.apple.akd/1.0)>' \
https://gsa.apple.com/grandslam/GsService2 # 401, i.e. it reached the service
And with this library's own request shape, real anisette data, one variable changed:
akd returns HTTP 200 with a GSA plist, Xcode returns HTTP 503 with the edge page.
Only the app token matters -- bumping the Xcode version does not help, and the user agent,
the hardware and OS portion of the header, and which edge IP is used make no difference.
That isolation is AltStore's, in altstoreio/AltStore#1790, shipped in AltServer 1.7.6.
The same block took out SideStore, Macless Haystack, OpenBubbles and OpenTagViewer;
Dadoum/anisette-v3-server#60 is the same one-token change.
Closes #268.
Every sign-in has been failing with HTTP 503 from Grand Slam since late August. Apple's edge refuses any POST to `gsa.apple.com/grandslam/GsService2` whose `X-MMe-Client-Info` names `com.apple.dt.Xcode`, before a credential is examined - a 190-byte HTML page from `Server: Apple` instead of a GSA plist. Naming `com.apple.akd`, the daemon that really makes this call on macOS, is answered normally. Fixed in the fork at `b6f544b` and repinned here, in all four places rule 14 lists. Verified end to end against a real Apple ID: a sign-in that had failed for days now completes, and the library's own request shape returns HTTP 200 with akd against 503 with Xcode, one variable changed. **Not our diagnosis.** AltStore found it (altstoreio/AltStore#1790, shipped in AltServer 1.7.6); the same block took out SideStore, Macless Haystack, OpenBubbles and every Anisette server. Upstream fix offered as malmeloo/FindMy.py#271, and Dadoum/anisette-v3-server#60 is the same one-token change. Four files claimed the shared constant serial was the leading suspect for wanderdev0#168, wanderdev0#176 and wanderdev0#181. It was not, and the correction is in each of them rather than only in the rule: serials were eliminated on the way to the real cause - a drawn one, the old constant, and upstream's bare `0` all refused identically - and a QEMU macOS VM signs in with a fabricated `C02...` serial that is not unique across installs. The per-install serial stays on its own merits; it explains none of the 503s. Rule 18 records the two things that cost the afternoon: the answer was already published by a neighbouring project two days earlier, and the Xcode identifier was tested and wrongly cleared early because the patch went to the Anisette header builder while `_gsa_request` composes that header at a separate call site.
Problem
Since early September 2026 every Apple ID sign-in fails with:
Nobody can install or refresh AltStore. The error message blames Apple, and it is
half right: Apple's authentication edge now refuses any request whose
X-MMe-Client-Infoheader identifies the client as Xcode. That identifier ishardcoded in this repo, so the request is rejected before any credential is checked —
it fails identically with a nonexistent account.
Root cause
POST https://gsa.apple.com/grandslam/GsService2is refused at the edge (190-byteHTML page from
Server: Apple, ~0.2s, not a real GSA plist) wheneverX-MMe-Client-Infocontains the substringcom.apple.dt.Xcode.Isolated by elimination — none of these affect the outcome:
com.apple.dt.Xcode/9999.9.99,/23500,/1.0→ all 503. Theblock is on
com.apple.dt.Xcode, not the version.akd/1.0 CFNetwork/808.1.4,/978.0.7,/1568.100.1,curl/8.7.1and a browser UA → all 503.
Apple's five edge IPs is used → no effect.
Only the client token matters:
X-MMe-Client-Infoclient tokencom.apple.dt.Xcode/3594.4.19com.apple.akd/1.0ec=-20101 "Your account information was entered incorrectly."The 200 used a well-formed SRP
initplist with real anisette data and a deliberatelynonexistent account, so
-20101is the correct answer and confirms the request nowreaches the authentication service.
Fix
Report the client as
akd, the daemon that actually performs this request on macOS,in the three places the identifier is hardcoded:
AltServer/Anisette Data/AnisetteDataManager.swift:28—sanitize(byReplacingBundleID:)AltServer/Anisette Data/AnisetteDataManager.swift:165—serverFriendlyDescriptionAltDaemon/AnisetteDataManager.swift:59— hardcodeddeviceDescriptionVerify
Testing
Not compiled. Xcode is not installed on the machine this was written on, so the
project could not be built or run through its test suite. The change is three string
literals with no type or control-flow impact, but please build before merging.
End-to-end, on the shipping binary rather than this build: the same substitution was
applied to the four occurrences of the literal inside AltServer 1.7.5 (build 92) on
macOS 15.7.5, and a full sign-in, AltStore install and AltStore update then completed
successfully on a real iPhone.
One caveat, stated plainly: that binary patch had to preserve byte length, so it used
com.apple.accountsd/113.0.11(28 bytes, same as the original) rather thancom.apple.akd/1.0. Both return HTTP 200 with a valid GSA plist, so they are equivalentat the point of failure, but the complete install flow was exercised with the
accountsdvariant. Source has no length constraint, henceakdhere.Notes for maintainers
blocked for the same reason. They need the same change independently.
com.apple.akd/1.0next; the durable fixis to derive the identifier from the system instead of hardcoding it. Left out of this
PR to keep the diff to the bug.
a shared constant felt like it belonged in a separate change.