NSCocoaErrorDomain 3840
Guys, I'm running into this problem while using it. Do you know what could be causing it? I can't install the app properly - my IPA file won't workSideloadlyI installed the app normally, but I can't use italtstoreDo you know what's causing the problem with installing apps on my phone? I'm on iOS 26.5, and I got my IPA files through Demons Unpacker. I used another phone to download the apps I wanted, then unpacked them with Demons Unpacker, and sent the unpacked files over to my iOS 26 phone to install them, but they won't install properly
I got this a lot when my AltStore worked. Usually ending the task in task manager and relaunching it works
I too am running into this error code on my iPhone and IPad. I am trying to refresh my AltStore app and uYourEnhanced. I am able to get the AltStore app to "reinstall" but sideloaded apps will not refresh.
Here's the error log details:
Debug Description Encountered unknown tag html on line 1
Error Description The data couldn’t be read because it isn’t in the correct format.
Failure Reason The data is not in the correct format.
Title Failed to Refresh YouTube
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}
- Connect iphone to you pc/mac and open altserver in it.
- Now open the altstore app in iphone go to settings and sign out of apple account and close the app by removing it from recents
- open the altstore again and now from my apps section click on the days icon of the app that you want to refresh it will get refreshed
I can vouch for this issue. When trying to click refresh or sideload an IPA file, I'm hit with the NSCocoaErrorDomain 3840 error. I've tried many 'solutions', but none of them have worked. Hopefully, this gets fixed soon.
In the meantime, here are some workarounds I found:
-
If refreshing apps gives you the NSCocoaErrorDomain 3840 error, make sure you are on the same wifi as the server, go to the homescreen of your iPhone, swipe down, and search AltStore. You should see a shortcut next to the app icon called 'refresh all apps.' Click that, and it should work.
-
If downloading an IPA from your iPhone gives you the NSCocoaErrorDomain 3840 error, you can install it through your altstore server. Just follow these steps:
- Connect your iPhone to the Mac by cable.
- Click on the AltServer diamond in the menu bar.
- Hold the Option key
- The 'install altstore...' should be replaced by 'Sideload .ipa…'
- Choose your phone
- Select the IPA file
- Enter your credentials in the Apple ID prompt.
That should work. The only downside is that you can't refresh the IPA anymore. You have to manually follow those steps each time the IPA expires.
Neither of these options work. I can't install Altstore on my iPhone 15 Pro anymore either:
Neither of AltDaemon nor AltServer works and following the options above doesn't work either, even with different ansiette server. I can't log in or refresh apps. I'm using AltStore Classic through AltStore PAL, not the beta.
I'm using ios 17.5.1.
same problem on iOS26, I could download altstore, but i can't anymore :/
Same error, tried other mac + fresh altserver install, other iphone, hotspot,vpn, nothing works, interesting to know Sidestore had the same error when try to login in app, so this error maybe is caused by the 2FA or something else related to apple servers and login communication
Temporally its possible to install .ipa from iloader until this issue is solved
Seems a 503 from Apple's GrandSlam API.
Task <...>.<18> sent request, body S 2184 Task <...>.<18> received response, status 503 content K Task <...>.<18> summary for task success {response_status=503, response_bytes=477, ...}
That's the auth POST to https://gsa.apple.com/grandslam/GsService2 - TLS handshake completed fine but the server returned 503 with a 477 byte body. A raw curl to the same endpoint gets a clean response from Apple, so the endpoint is reachable. It's specifically the authenticated GrandSlam request that's failing server-side.
Hitting same issue on iPad OS 26.2 for past week. I'm not being able to refresh my apps and it's now expired.
Received auth response status code: 503
I saw it posted on Reddit from a couple months ago but my temporary workaround solution has been a bit silly and also points to there being some sort of iPv6 issue possibly or Apple server issue. It involves enabling and disabling Airplane Mode while connected to the Mac with a USB cable.
- Connect device to Mac running AltServer with a USB cable
- Open AltStore on device
- Go to My Apps tab
- Go to Control Center and Enable Airplane Mode briefly
- Disable Airplane Mode and wait for WiFi to reestablish a connection to local network
- Hit Refresh All (it may take a couple of attempts if the WiFi is still connecting
- This should allow any sideloaded apps to refresh very slowly
Neither of these options work. I can't install Altstore on my iPhone 15 Pro anymore either:
![]()
Same here. I missed the window for the refresh and can't install AltStore now either. So can't sign out of it
I saw it posted on Reddit from a couple months ago but my temporary workaround solution has been a bit silly and also points to there being some sort of iPv6 issue possibly or Apple server issue. It involves enabling and disabling Airplane Mode while connected to the Mac with a USB cable.
- Connect device to Mac running AltServer with a USB cable
- Open AltStore on device
- Go to My Apps tab
- Go to Control Center and Enable Airplane Mode briefly
- Disable Airplane Mode and wait for WiFi to reestablish a connection to local network
- Hit Refresh All (it may take a couple of attempts if the WiFi is still connecting
- This should allow any sideloaded apps to refresh very slowly
this worked for me, thank you. unfortunately not able to update apps with this method though
I have found the Airplane Mode workaround does not appear to work for me any longer. I tried it on both my iPad and iPhone running a VPN on both connected to a US server as well as not connected to a VPN (I am US based). I'm going to guess this is a greater Apple server or handshake issue.
I have tried logging out of alt server Apple ID and now trying to login again and failed to do so. It says every time I click sign in:
Failed to Log In
The data couldn't be read because it isn't in the correct format.
tried using altstore today and ran into this issue, one thing of note is its horribly inconsistent. i tried a few times and it finally installed altstore, but im stuck at the point where i need to refresh expired apps. as others have noted above, its a server side issue (whether the intent is malice is up in the air), ive had issues with and without cf warp + other proxies so it doesnt seem to be location or isp based
other extra details in the offchance it matters: Altstore Type: Classic Altserver Version: 1.7.2 Altserver OS: macOS 15.7.3 (x64) Type: Free Developer Account iOS: 18.7.8 (iPhone 12), 26.6.1 (iPhone 17e)
I'm also having this issue both with altserver1.6.2 and 1.7.2 when trying to install on ipad.
cant install / cant sign out. blocked because apple is responding with some html response I guess instead of whatever installer expects.
I am able to replicate this issue when trying to install altstore 1.7.2 on an iPhone 15 Pro running iOS 26.6.1 from a M3 Macbook Pro running 26.6.2.
NSCocoaErrorDomain 3840
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 <REDACTED> iPhone.
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}
Found the cause.
Sign in makes three calls to gsa.apple.com. Apple returns an HTML error page for some of them, and AltSign hands that straight to the plist parser, which fails with "unknown tag html on line 1". That is the 3840.
Two things drive it. The old User-Agent AltSign sends gets rejected far more often than a current one, and AltSign reuses a single connection for all three calls, so once Apple's edge sours that connection the rest of the sign in is doomed.
Measured on an affected Mac, 25 full sign in attempts per row:
old UA new UA
one shared connection (current) 2/25 19/25
fresh connection per request 0/25 18/25
fresh connection + retry on 5xx 5/25 25/25
So the User-Agent matters most, and retrying on a fresh connection closes the rest of the gap.
I've successfully reinstalled AltStore by patching User-Agent: https://github.com/rileytestut/AltSign/pull/47/changes, though I don't have Mac computer and cannot recompile app which is required for refreshing on device.
But I can now at least refresh my apps on my computer. I'm not hitting 503 errors so far.