You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Debug Description
Encountered unknown tag html on line 1
Error Description
AltServer could not sign in with your Apple ID. The data is not in the correct format.
Failure
AltServer could not sign in with your Apple ID.
Failure Reason
The data is not in the correct format.
Title
AltStore could not be installed onto Mike哥哥的iPad.
kCFPropertyListOldStyleParsingError
Error Domain=NSCocoaErrorDomain Code=3840 "Malformed data byte group at line 1; invalid hex" UserInfo={NSDebugDescription=Malformed data byte group at line 1; invalid hex}
Yes, you are right. The domain gsa.apple.com is key, and it's generally not on the redirection list. Normally, the entire apple.com domain wouldn't be included in the redirection list either.
The signing was successfully completed after adding the rule. (Strangely, I tried global rules yesterday and didn't find the cause of the problem.)
Yes, you are right. The domain gsa.apple.com is key, and it's generally not on the redirection list. Normally, the entire apple.com domain wouldn't be included in the redirection list either. The signing was successfully completed after adding the rule. (Strangely, I tried global rules yesterday and didn't find the cause of the problem.)
I use AI to assist diagnosis yesterday: maybe Apple has adjusted the global CDN load balancing rules, and CN users are assigned to some nodes which do not support the Grandslam interface, but it's what Altstore needed.
Practical summary for anyone landing here with NSCocoaErrorDomain 3840 / "Encountered unknown tag html on line 1".
The technical detail is already in this thread; this is just what to actually do, in one place.
What is happening
AltServer sends an outdated User-Agent (akd/1.0 CFNetwork/978.0.7 Darwin/18.7.0, Mojave-era). Apple's servers accept the first two sign-in requests and then return a 503 HTML error page on the third (apptokens). AltSign hands that HTML straight to the plist parser, so a server error surfaces as "your data isn't in the correct format" — which reads like a credentials problem but isn't. Your Apple ID is fine, and a new Apple ID will not help.
If you would rather not run a third-party binary (reasonable — it is unsigned by Apple and not from the official repo), build AltSign yourself with these two open PRs applied, or patch at runtime:
AltSign#49 — fresh URLSession per attempt, so a retry does not reuse the connection pinned to the failing node
On macOS 26/27 you also need the anisette fix, otherwise you will instead hit -80009 MID is invalid: AOSKit returns empty anisette data (AOSKit WARN: Info request failed: -45070). See kimziro/altserver-macos27-anisette-fix. Note that patch supplies X-Apple-MD/X-Apple-MD-M only; on newer betas the remaining ALTAnisetteData fields also come back empty and need filling from the anisette helper.
Verified working here on macOS 27.0 beta (26A5416b) with AltServer 1.7.2: sign-in completes (init 200, complete 200, apptokens 200) and AltStore installs onto the device.
After that: the iOS side is still broken
AltStore on the device carries its own copy of AltSign, with the same outdated User-Agent. So AltStore installs fine, but signing in inside the app still fails with the same 3840 error. Nothing you do on the Mac can fix that — it needs a rebuilt AltStore IPA, and no one has published one yet.
Until then, @FrakesH's workaround: with the AltServer menu open, hold Option — "Install AltStore" becomes "Sideload .ipa…", which installs IPAs directly and skips AltStore's own sign-in. Apps signed with a free Apple ID still expire after 7 days, and you will have to re-sideload from the Mac since AltStore cannot refresh them without logging in.
Windows
I could not find a fix path. AltServer for Windows is not open source (there is no AltServer-Windows repo under altstoreio), so the community cannot patch it the way the macOS build was patched. If you are on Windows, as far as I can tell you are waiting for an official release.
The easiest way working only with MacOS 27? Its now giving me -80009 error ahahah
@DANIEL48055 That -80009 MID is invalid is a different failure than the one this thread is about — it means the anisette identity Apple received doesn't match. Most likely cause: FrakesH's build bundles kimziro's macOS-27 anisette patch, which is only needed if you're actually on macOS 27. If you're on macOS 26, that patch mixes real local device identifiers with anisette-server-sourced ones from a different identity, and Apple rejects the mismatch. What macOS version are you on? That'll confirm it.
@TheDogHusky Partial good news, a day after I said otherwise: someone did publish a fix for AltStore's own sign-in on iOS. See the guide above (updated) or directly: #1776 (comment) — no rebuild needed, just a find/replace on the stale User-Agent string inside the stock IPA before sideloading it.
Windows: the same User-Agent fix is possible after all
I said earlier in this thread that Windows users had no path forward because AltServer for Windows isn't open source. That was wrong — the fix doesn't need source, just the same string replacement @spaceace90 used on the AltStore IPA.
What I verified, by pulling apart the official installer (altinstaller.zip → AltInstaller.msi → embedded CAB):
AltServer.exe1.7.4.0 contains the same stale User-Agent, stored as UTF-16LE at offset 0x14D6A8, exactly one occurrence.
In the binary it sits directly next to /grandslam/GsService2 and viewDeveloper.action — the same endpoints captured returning the 503 on macOS.
The two strings are both 39 characters, so the replacement is length-preserving: nothing in the PE shifts, file size is unchanged.
AltServer.exe carries no Authenticode signature (certificate directory is empty), so patching doesn't invalidate one.
Applying the patch leaves a structurally valid PE32, with 0 occurrences of the old string and 1 of the new.
PowerShell script (no extra tooling; backs up first, refuses to run if it finds anything other than exactly one occurrence):
$exe=@(
"${env:ProgramFiles(x86)}\AltServer\AltServer.exe","$env:ProgramFiles\AltServer\AltServer.exe"
) |Where-Object { Test-Path$_ } |Select-Object-First 1if (-not$exe) { Write-Error"AltServer.exe not found - pass the path manually."; exit1 }
Write-Host"Found: $exe"$bytes= [System.IO.File]::ReadAllBytes($exe)
$old= [System.Text.Encoding]::Unicode.GetBytes("akd/1.0 CFNetwork/978.0.7 Darwin/18.7.0")
$new= [System.Text.Encoding]::Unicode.GetBytes("AuthKit/1 (com.apple.dt.Xcode/3594.4.1)")
if ($old.Length-ne$new.Length) { Write-Error"Length mismatch - aborting."; exit1 }
# ISO-8859-1 maps bytes 0-255 to chars 1:1, so this round-trips losslessly.$latin1= [System.Text.Encoding]::GetEncoding(28591)
$hay=$latin1.GetString($bytes)
$needle=$latin1.GetString($old)
$idx=$hay.IndexOf($needle, [System.StringComparison]::Ordinal)
if ($idx-lt0) {
Write-Host"String not found - already patched, or a different AltServer build."exit0
}
if ($hay.IndexOf($needle,$idx+1, [System.StringComparison]::Ordinal) -ge0) {
Write-Error"More than one occurrence found - aborting so nothing unexpected is touched."exit1
}
Copy-Item$exe"$exe.bak"-Force
Write-Host"Backup: $exe.bak"
[Array]::Copy($new,0,$bytes,$idx,$new.Length)
[System.IO.File]::WriteAllBytes($exe,$bytes)
Write-Host ("Patched 1 occurrence at offset 0x{0:X}."-f$idx)
Write-Host"Restart AltServer and sign in again."
Close AltServer first, run it in an elevated PowerShell (it writes into Program Files), then reopen AltServer. To undo, restore AltServer.exe.bak.
What I have not verified, to be clear about the limits of this: I don't have a Windows machine. I verified the string's presence, encoding, offset, uniqueness, adjacency to the GrandSlam endpoints, the absence of a signature, and that the byte patch applies cleanly and preserves PE validity — all against the real binary from the official installer. I have not run the PowerShell script on Windows, and I have not confirmed a patched AltServer.exe completes sign-in there. What I can say is that this exact string change is what fixed it on macOS, where I captured apptokens going from 503 to 200 on the first attempt.
If someone on Windows tries it, please report back either way — if it works this unblocks everyone on that platform, and if it doesn't, that's worth knowing too (it would suggest the connection-reuse half of the problem, AltSign#49, also matters there and can't be fixed by a string patch).
The anisette fix bundled in FrakesH's build hooks only retrieveOTPHeadersForDSID:. The identity it provisions is synthetic — on my machine it carries serialNumber: "0" and a random deviceID of 87175D2C-706D-4127-99C9-49B53A81F9E8.
So AltServer ends up sending a machineID that belongs to the synthetic identity, next to the host Mac's real serial and UDID, which AOSKit is still happily returning. The request describes two different machines, and Apple rejects it as MID is invalid. That's -80009.
This is exactly the gap @oddharsh identified in kimziro/altserver-macos27-anisette-fix#4, which hooks machineSerialNumber and machineUDID as well so the whole set describes one identity. That PR isn't merged, so it isn't in FrakesH's build.
What you can do:
If you're comfortable with a terminal: clone kimziro/altserver-macos27-anisette-fix, apply PR Unable to compile due to missing libimobiledevice #4, and run ./scripts/build_release.sh /path/to/original/AltServer.app. You'll want the User-Agent fix too — that one isn't in kimziro's repo, so either use FrakesH's already-patched AltServer.app as the input to that script, or patch the string separately.
Sanity check first, though: is your identity file actually synthetic? Run this — if serialNumber is 0 and deviceID doesn't match your Mac's real hardware UUID, that's the mismatch:
on my windows : run your powershell script/ patch (thanks for this) for altserver.exe. install sideloadly. (I've reinstalled Apple root certificate too , not sure it helps).
on my iphone : deployed altstore.ipa with sideloadly.
(patched version reviewed by chatgpt because it wasn't working at first : "The cause of the launch hang was identified by querying the iPhone: the app declares the shared group group.com.rileytestut.AltStore, but its Sideloadly signature grants it no shared groups. The code then attempts to move "Apps" into itself".)
---> Sign In ok : (big plus here !)
--->Side install from altstore: NSCocoaErrorDoamin 3840 : the data couldn't be read because it isn't in the correct format.
Also : I did some AI on the source code for altserver and there's an exception that I don't see anyone speaking about : some data that used to be received in xml is now (or sometimes ?) in gzip format and that would explain it cannot be parsed and failed at line 1 (see detailed screenshot in a post by above acoustic-git-ar). (Don't want to parasite however with false or outdated tips , just wanted to give it a try)
If someone on Windows tries it, please report back either way — if it works this unblocks everyone on that platform, and if it doesn't, that's worth knowing too (it would suggest the connection-reuse half of the problem, AltSign#49, also matters there and can't be fixed by a string patch).
@kisnner26 I tried it on Windows 11x 64. The script ran successfully, and a checksum plus second run confirms that it patched the executable correctly. However, trying to sideload altStore returns the same -22410 error code that was showing up before the patch, so either this didn't fix the problem or it didn't fix all the problems.
EDIT However, just for kicks, I went into AltStore on my device and tried refreshing it despite several days of repeated failures, and lo and behold, after failing two or three times, it eventually worked. (Then subsequent tries continued to fail with the usual error.)
But before anyone gets excited, I suspect this is just luck. Going by the description of the problem, I'd guess that Apple has a pool of servers doing the signing, and at least one of them didn't get updated with the code to block the older user agent (yet).
Updating to 1.7.5 will not fix sign-in. Same stale UA as 1.7.2.
Updating will silently undo your patch. Sparkle replaces the binary, so a patched 1.7.2 becomes an unpatched 1.7.5. If sign-in suddenly breaks again after working, check whether AltServer auto-updated.
The file to patch changed. AltSign is statically linked in 1.7.5 — there is no longer an AltSign-Dynamic.framework. Patch Contents/MacOS/AltServer instead. Same string, same two occurrences (one per architecture slice), same ad-hoc re-sign required afterwards; I verified the patch applies cleanly and codesign --verify --deep --strict passes on 1.7.5.
Good news on this front — @rileytestut merged AltSign#52 ("Use a separate connection for each GrandSlam request") at 22:13 today. That's the connection-reuse half of the problem, fixed properly in code.
But it landed about seven hours after 1.7.5 was cut, so it is not in any released build yet. Still open:
AltSign#51 — the User-Agent change, notarized branch
AltSign#54 — separate connection for the 2FA code verification too
So the next release after these land should be the one that actually ends this. Until then, patching is still the answer.
@kswartz26 thanks for testing on Windows 11 and for reporting the failure honestly — that data point is more useful than another "it worked".
Your intermittent result is, I think, exactly the mechanism the merged PR describes, and your guess is close to right. The two halves of this bug are:
Stale User-Agent — what the string patch fixes.
Connection reuse — AltServer pools connections, so all three sign-in requests ride the same TCP connection to the same Apple backend node. If that node rejects you, retrying can't help, because you never leave that node.
The string patch only fixes (1). On Windows, (2) is a code change, so no amount of binary patching addresses it. That predicts precisely what you saw: mostly failure, occasional success when a fresh connection happens to land somewhere that serves you, and no reliable pattern.
I hit exactly this earlier in #1699 — I added retries on the 503 and got six identical failures in seven seconds, which made me wrongly conclude Apple was refusing outright. The retries were reusing the pinned connection. Once each attempt got its own fresh session, it worked first try.
So on Windows, the string patch gets you half the fix. The other half needs AltServer-Windows#51 (currently closed) or an equivalent rebuild.
Thank you @kisnner26 - your explanations are fantastic, by the way - detailed, professionally writing, easy to follow. You're an open source guru.
One quick question, for clarification: you're saying the -22410 error being returned by AltServer is the result of issue #2 (the connection reuse bug)? So waiting for some period of time and trying again may be the only fix there until it's hopefully patched in a 1.7.6 release, right?
@kswartz26 Thank you, and good catch pushing on that — I should be precise rather than just confirming what I speculated earlier.
I don't actually have direct proof that -22410 specifically is the connection-reuse bug, and I want to correct something before it spreads: the official error code list documents -22410 as "Failed to write to disk" — a literal disk-space problem, and it has its own long, separate history of reports going back to February (issues #1705–#1709 here), unrelated to anything from this thread.
So the honest answer is: I don't know for certain that's what's happening in your case. Two things point toward it being the same upstream issue anyway, but they're inference, not confirmation:
Disk-space failures are consistent — they fail every time until you free up space. What you described (fails repeatedly, then works once after 2-3 retries, then back to failing) is not that pattern. It's exactly the retry-sensitive pattern connection pinning produces.
A plausible mechanism: if the earlier signing/token exchange gets a malformed response from the pinned connection (the 503-HTML issue), whatever AltServer tries to write to disk afterward could be built from that bad data and fail the write step — surfacing as -22410 even though the real problem is upstream, not your actual disk.
But I can't verify that chain for your specific setup without a capture of what AltServer actually sent/received right before that error, the way I could on my own machine. Worth ruling out the literal explanation first since it's a 10-second check: is there definitely free space on both the PC and the iPhone?
On 1.7.6 — I want to be careful here too: I haven't seen anyone commit to that specific version number. What's confirmed is AltSign#52 — the connection-reuse fix — merged, and @rileytestut said "will release an update ASAP." No date or version number attached to that yet, and separately, the User-Agent fix (AltSign#51) is still open, unmerged. So yes, waiting/retrying is the practical answer for now, but I'd frame it as "waiting for the next release" rather than "1.7.6" specifically, since that number isn't something I can back up.
@kisnner26 thanks. I should clarify that “ What you described (fails repeatedly, then works once after 2-3 retries, then back to failing) is not that pattern. It's exactly the retry-sensitive pattern connection pinning produces.” was AltStore on iOS not AltServer. That’s why I wanted to check. I’ll definitely do some more experimenting.
@kswartz26 Good catch, and thank you for separating those out — I conflated two different symptoms on two different pieces of software, which was sloppy on my part.
To restate cleanly with that correction: the retry-sensitive pattern (fails, then works after 2-3 tries, then fails again) is from AltStore on iOS. The -22410 is from AltServer on the PC. Those are two separate programs, each with their own copy of AltSign, and I don't actually have evidence they share a cause — I inferred a connection between them without checking which component each symptom came from. That was the actual mistake, not just an unverified guess about -22410 itself.
Given that, my "disk-space vs connection-pinning" reasoning about -22410 still stands on its own (that one's just about the PC-side AltServer behavior), but I'd drop the link I drew to the iOS retry pattern — that inference doesn't hold once they're properly separated.
If you do get to experiment more, the useful split would be: does AltServer (PC) alone ever succeed after retries, independent of what AltStore on the phone is doing? That would tell you whether AltServer itself has the connection-pinning issue, separate from whatever's happening on iOS.
Activity
suhli commentedon Jan 11, 2026
same here
dengpingsong commentedon Jan 12, 2026
same here
kevin-963976 commentedon Jan 12, 2026
I also encountered the same problem. It should be the problem of apple id double verification. There is no solution at present
wwwrising commentedon Jan 12, 2026
If u r in China, add gsa.apple.com into your proxy(VPN), and problem solved.
kevin-963976 commentedon Jan 12, 2026
PhoenixZeta-play commentedon Jan 12, 2026
You resolved my issue!!! A big thank you!
mawen233 commentedon Jan 12, 2026
thank you!
88265189 commentedon Jan 12, 2026
So can you advise how to add it?
Many thanks.
809662683 commentedon Jan 12, 2026
809662683 commentedon Jan 12, 2026
如果你用clash,直接找到代理那边,配置苹果所有的通过就可以了。1. 打开 ClashX
点击菜单栏图标 → 配置 → 打开配置文件夹
编辑你的配置文件(通常是 .yaml 或 .yml 文件)
在 rules: 部分添加: - DOMAIN-SUFFIX,apple.com,代理名称 (代理名称就是你的vpn的名称了。)
yshtcn commentedon Jan 12, 2026
是的你是对的,gsa.apple.com这个域名是关键,而且此前一般不在分流名单里。一般情况也不不会将整个apple.com纳入分流名单。
添加了规则后成功的完成了签名。(很奇怪的是昨天我尝试了全局规则竟然没发现问题的原因)
Yes, you are right. The domain gsa.apple.com is key, and it's generally not on the redirection list. Normally, the entire apple.com domain wouldn't be included in the redirection list either.
The signing was successfully completed after adding the rule. (Strangely, I tried global rules yesterday and didn't find the cause of the problem.)
PhoenixZeta-play commentedon Jan 13, 2026
I use AI to assist diagnosis yesterday: maybe Apple has adjusted the global CDN load balancing rules, and CN users are assigned to some nodes which do not support the Grandslam interface, but it's what Altstore needed.
88265189 commentedon Jan 13, 2026
altstore装上iphone了,然而在手机端altstore里,无法刷新第三方程序。是需要在手机端也作上述配置吗?
DANIEL48055 commentedon Jan 13, 2026
Thats works. Thank you very much!
809662683 commentedon Jan 13, 2026
手机端也是一样的,要配置才行,不然登录不了,必须是apple.com,不然后面还会出现其他异常提示。这个写法是一劳永逸。Shadowrocket--> config(配置) --> 修改配置文件 一般是default.conf, 加上面的规则。 操作是一样的
29 remaining items
Scope666 commentedon Sep 7, 2026
@kisnner26 , thank you for the detailed write up, your solution worked for me. :)
DANIEL48055 commentedon Sep 7, 2026
The easiest way working only with MacOS 27? Its now giving me -80009 error ahahah
TheDogHusky commentedon Sep 7, 2026
So we have to wait until the AltStore team fixes the altstore ios app and altserver?
I already did use the patched AltServer, but would love the ios app to be patched as well.
kisnner26 commentedon Sep 8, 2026
@DANIEL48055 That
-80009 MID is invalidis a different failure than the one this thread is about — it means the anisette identity Apple received doesn't match. Most likely cause: FrakesH's build bundles kimziro's macOS-27 anisette patch, which is only needed if you're actually on macOS 27. If you're on macOS 26, that patch mixes real local device identifiers with anisette-server-sourced ones from a different identity, and Apple rejects the mismatch. What macOS version are you on? That'll confirm it.@TheDogHusky Partial good news, a day after I said otherwise: someone did publish a fix for AltStore's own sign-in on iOS. See the guide above (updated) or directly: #1776 (comment) — no rebuild needed, just a find/replace on the stale User-Agent string inside the stock IPA before sideloading it.
kisnner26 commentedon Sep 8, 2026
Windows: the same User-Agent fix is possible after all
I said earlier in this thread that Windows users had no path forward because AltServer for Windows isn't open source. That was wrong — the fix doesn't need source, just the same string replacement @spaceace90 used on the AltStore IPA.
What I verified, by pulling apart the official installer (
altinstaller.zip→AltInstaller.msi→ embedded CAB):AltServer.exe1.7.4.0 contains the same stale User-Agent, stored as UTF-16LE at offset0x14D6A8, exactly one occurrence./grandslam/GsService2andviewDeveloper.action— the same endpoints captured returning the 503 on macOS.AltServer.execarries no Authenticode signature (certificate directory is empty), so patching doesn't invalidate one.PowerShell script (no extra tooling; backs up first, refuses to run if it finds anything other than exactly one occurrence):
Close AltServer first, run it in an elevated PowerShell (it writes into Program Files), then reopen AltServer. To undo, restore
AltServer.exe.bak.What I have not verified, to be clear about the limits of this: I don't have a Windows machine. I verified the string's presence, encoding, offset, uniqueness, adjacency to the GrandSlam endpoints, the absence of a signature, and that the byte patch applies cleanly and preserves PE validity — all against the real binary from the official installer. I have not run the PowerShell script on Windows, and I have not confirmed a patched
AltServer.execompletes sign-in there. What I can say is that this exact string change is what fixed it on macOS, where I capturedapptokensgoing from 503 to 200 on the first attempt.If someone on Windows tries it, please report back either way — if it works this unblocks everyone on that platform, and if it doesn't, that's worth knowing too (it would suggest the connection-reuse half of the problem, AltSign#49, also matters there and can't be fixed by a string patch).
cc @JK-NayJoebaba @Angelos2008new @akgang-rgb — you were all asking about Windows.
kisnner26 commentedon Sep 8, 2026
@DANIEL48055 I can be more specific now — I measured this on my own machine, and your
-80009has a concrete cause.On macOS 27, only one of the AOSKit calls is broken. I probed them directly:
The anisette fix bundled in FrakesH's build hooks only
retrieveOTPHeadersForDSID:. The identity it provisions is synthetic — on my machine it carriesserialNumber: "0"and a randomdeviceIDof87175D2C-706D-4127-99C9-49B53A81F9E8.So AltServer ends up sending a
machineIDthat belongs to the synthetic identity, next to the host Mac's real serial and UDID, which AOSKit is still happily returning. The request describes two different machines, and Apple rejects it asMID is invalid. That's-80009.This is exactly the gap @oddharsh identified in kimziro/altserver-macos27-anisette-fix#4, which hooks
machineSerialNumberandmachineUDIDas well so the whole set describes one identity. That PR isn't merged, so it isn't in FrakesH's build.What you can do:
./scripts/build_release.sh /path/to/original/AltServer.app. You'll want the User-Agent fix too — that one isn't in kimziro's repo, so either use FrakesH's already-patched AltServer.app as the input to that script, or patch the string separately.Sanity check first, though: is your identity file actually synthetic? Run this — if
serialNumberis0anddeviceIDdoesn't match your Mac's real hardware UUID, that's the mismatch:akgang-rgb commentedon Sep 8, 2026
on my windows : run your powershell script/ patch (thanks for this) for altserver.exe. install sideloadly. (I've reinstalled Apple root certificate too , not sure it helps).
on my iphone : deployed altstore.ipa with sideloadly.
(patched version reviewed by chatgpt because it wasn't working at first : "The cause of the launch hang was identified by querying the iPhone: the app declares the shared group
group.com.rileytestut.AltStore, but its Sideloadly signature grants it no shared groups. The code then attempts to move "Apps" into itself".)---> Sign In ok : (big plus here !)
--->Side install from altstore: NSCocoaErrorDoamin 3840 : the data couldn't be read because it isn't in the correct format.
Also : I did some AI on the source code for altserver and there's an exception that I don't see anyone speaking about : some data that used to be received in xml is now (or sometimes ?) in gzip format and that would explain it cannot be parsed and failed at line 1 (see detailed screenshot in a post by above acoustic-git-ar). (Don't want to parasite however with false or outdated tips , just wanted to give it a try)
kswartz26 commentedon Sep 8, 2026
@kisnner26 I tried it on Windows 11x 64. The script ran successfully, and a checksum plus second run confirms that it patched the executable correctly. However, trying to sideload altStore returns the same -22410 error code that was showing up before the patch, so either this didn't fix the problem or it didn't fix all the problems.
EDIT However, just for kicks, I went into AltStore on my device and tried refreshing it despite several days of repeated failures, and lo and behold, after failing two or three times, it eventually worked. (Then subsequent tries continued to fail with the usual error.)
But before anyone gets excited, I suspect this is just luck. Going by the description of the problem, I'd guess that Apple has a pool of servers doing the signing, and at least one of them didn't get updated with the code to block the older user agent (yet).
kisnner26 commentedon Sep 9, 2026
Heads-up: AltServer 1.7.5 shipped today and does not fix this
I downloaded 1.7.5 from the official Sparkle feed (published Sep 8, 15:00) and checked it. The stale User-Agent is still in there:
So three things to know before you update:
AltSign-Dynamic.framework. PatchContents/MacOS/AltServerinstead. Same string, same two occurrences (one per architecture slice), same ad-hoc re-sign required afterwards; I verified the patch applies cleanly andcodesign --verify --deep --strictpasses on 1.7.5.Updated command for 1.7.5:
Where the upstream fixes stand
Good news on this front — @rileytestut merged AltSign#52 ("Use a separate connection for each GrandSlam request") at 22:13 today. That's the connection-reuse half of the problem, fixed properly in code.
But it landed about seven hours after 1.7.5 was cut, so it is not in any released build yet. Still open:
notarizedbranchmarketplace, which still has the bugSo the next release after these land should be the one that actually ends this. Until then, patching is still the answer.
@kswartz26 thanks for testing on Windows 11 and for reporting the failure honestly — that data point is more useful than another "it worked".
Your intermittent result is, I think, exactly the mechanism the merged PR describes, and your guess is close to right. The two halves of this bug are:
The string patch only fixes (1). On Windows, (2) is a code change, so no amount of binary patching addresses it. That predicts precisely what you saw: mostly failure, occasional success when a fresh connection happens to land somewhere that serves you, and no reliable pattern.
I hit exactly this earlier in #1699 — I added retries on the 503 and got six identical failures in seven seconds, which made me wrongly conclude Apple was refusing outright. The retries were reusing the pinned connection. Once each attempt got its own fresh session, it worked first try.
So on Windows, the string patch gets you half the fix. The other half needs AltServer-Windows#51 (currently closed) or an equivalent rebuild.
kswartz26 commentedon Sep 9, 2026
Thank you @kisnner26 - your explanations are fantastic, by the way - detailed, professionally writing, easy to follow. You're an open source guru.
One quick question, for clarification: you're saying the -22410 error being returned by AltServer is the result of issue #2 (the connection reuse bug)? So waiting for some period of time and trying again may be the only fix there until it's hopefully patched in a 1.7.6 release, right?
kisnner26 commentedon Sep 9, 2026
@kswartz26 Thank you, and good catch pushing on that — I should be precise rather than just confirming what I speculated earlier.
I don't actually have direct proof that -22410 specifically is the connection-reuse bug, and I want to correct something before it spreads: the official error code list documents
-22410as "Failed to write to disk" — a literal disk-space problem, and it has its own long, separate history of reports going back to February (issues #1705–#1709 here), unrelated to anything from this thread.So the honest answer is: I don't know for certain that's what's happening in your case. Two things point toward it being the same upstream issue anyway, but they're inference, not confirmation:
But I can't verify that chain for your specific setup without a capture of what AltServer actually sent/received right before that error, the way I could on my own machine. Worth ruling out the literal explanation first since it's a 10-second check: is there definitely free space on both the PC and the iPhone?
On 1.7.6 — I want to be careful here too: I haven't seen anyone commit to that specific version number. What's confirmed is AltSign#52 — the connection-reuse fix — merged, and @rileytestut said "will release an update ASAP." No date or version number attached to that yet, and separately, the User-Agent fix (AltSign#51) is still open, unmerged. So yes, waiting/retrying is the practical answer for now, but I'd frame it as "waiting for the next release" rather than "1.7.6" specifically, since that number isn't something I can back up.
Calvin-Zikakis commentedon Sep 9, 2026
My god, GitHub issues have turned into agents talking to agents
kswartz26 commentedon Sep 9, 2026
@kisnner26 thanks. I should clarify that “ What you described (fails repeatedly, then works once after 2-3 retries, then back to failing) is not that pattern. It's exactly the retry-sensitive pattern connection pinning produces.” was AltStore on iOS not AltServer. That’s why I wanted to check. I’ll definitely do some more experimenting.
@Calvin-Zikakis I’ll take that as a compliment!
kisnner26 commentedon Sep 9, 2026
@kswartz26 Good catch, and thank you for separating those out — I conflated two different symptoms on two different pieces of software, which was sloppy on my part.
To restate cleanly with that correction: the retry-sensitive pattern (fails, then works after 2-3 tries, then fails again) is from AltStore on iOS. The -22410 is from AltServer on the PC. Those are two separate programs, each with their own copy of AltSign, and I don't actually have evidence they share a cause — I inferred a connection between them without checking which component each symptom came from. That was the actual mistake, not just an unverified guess about -22410 itself.
Given that, my "disk-space vs connection-pinning" reasoning about -22410 still stands on its own (that one's just about the PC-side AltServer behavior), but I'd drop the link I drew to the iOS retry pattern — that inference doesn't hold once they're properly separated.
If you do get to experiment more, the useful split would be: does AltServer (PC) alone ever succeed after retries, independent of what AltStore on the phone is doing? That would tell you whether AltServer itself has the connection-pinning issue, separate from whatever's happening on iOS.
kisnner26 commentedon Sep 10, 2026
haha fair enough, and the timing's brutal — my rizin PR literally got closed today for the exact same reason lol. guilty as charged I guess 😅