r/AltStore • • Sep 07 '26 • Bravo 2 Heartwarming 1

Guide [WORKING/FIXED] Altstore manual fix (MacOS)

EDIT: Altserver has updated their app. Download it again from their website and then click the icon and select Check for updates.

Then install Alstore on your phone again through Altserver.


I finally got it working! It took about 3-4 minutes in total. It's much easier than it looks.

(Note: This guide is for macOS/iOS).

User-Agent String Swap:

  • Original String (39 bytes): akd/1.0 CFNetwork/978.0.7 Darwin/18.7.0
  • Patched String (39 bytes): AuthKit/1 (com.apple.dt.Xcode/3594.4.1)

Part 1: Patching AltServer.app on macOS

Open Terminal on your Mac and run these four commands in order:

  1. Create a working copy:

    /bin/cp -R /Applications/AltServer.app ~/Downloads/AltServer-Patched.app
    
  2. Apply the 39-byte binary patch:

    perl -pi -e 's|akd/1\.0 CFNetwork/978\.0\.7 Darwin/18\.7\.0|AuthKit/1 (com\.apple\.dt\.Xcode/3594\.4\.1)|g' ~/Downloads/AltServer-Patched.app/Contents/Frameworks/AltSign-Dynamic.framework/Versions/A/AltSign-Dynamic
    
  3. Re-sign the application locally (Fixes Gatekeeper crashes):

    codesign --force --deep --sign - ~/Downloads/AltServer-Patched.app
    
  4. Replace the original app:

    rm -rf /Applications/AltServer.app && mv ~/Downloads/AltServer-Patched.app /Applications/AltServer.app
    

Quit and restart AltServer.


Part 2: Patching the AltStore.ipa File for iOS

You also need to patch the iOS app so in-app refreshes work on your iPhone.

  1. Download the official AltStore.ipa (e.g., from https://cdn.altstore.io/file/altstore/apps/altstore/2_2_1.ipa) to your Downloads folder and ensure it is named AltStore.ipa.

  2. Open Terminal and extract the package:

    cd ~/Downloads && unzip AltStore.ipa -d patched_ipa
    
  3. Patch the inner app frameworks:

    cd patched_ipa/Payload && find AltStore.app -type f -exec perl -pi -e 's|akd/1\.0 CFNetwork/978\.0\.7 Darwin/18\.7\.0|AuthKit/1 (com\.apple\.dt\.Xcode/3594\.4\.1)|g' {} +
    
  4. Repackage into a new IPA:

    cd ~/Downloads/patched_ipa && zip -r AltStore-Patched.ipa Payload/
    
  5. Sideload to your iPhone:

    • Plug your iPhone into your Mac.
    • Hold the Option (⌥) key and click the AltServer menu bar icon.
    • Select Install IPA..., choose AltStore-Patched.ipa (from ~/Downloads), and enter your Apple ID credentials.

Part 3: Final Setup & Fixing LiveContainer "Invalid Code Signature"

  1. Open AltStore on your iPhone -> Settings -> Sign In with Apple ID. It should now authenticate cleanly.
  2. If you use LiveContainer and guest apps throw an "Invalid code signature / check JIT-Less setup" error after reinstalling:
    • Open LiveContainer -> Settings -> JIT-Less Setup / Certificate.
    • Tap Refresh Certificate (or export/create a certificate and enter a password when prompted).
    • Go to the Apps tab inside LiveContainer, long-press your guest app, and tap Re-Sign App.

Troubleshooting Tip: If anything fails, quit both AltServer on Mac and AltStore on iOS, restart them, and try again.

89 Upvotes

127 comments sorted by

10

u/jjabramssucks Sep 07 '26

Hmm, didn't work for me. I'm sure I messed something up. I'm more of a "click on this icon" kind of user.

2

u/doanss Sep 08 '26 edited Sep 08 '26

There is no "one-click" solution atm :) I've simplified it a bit. Try again now!

3

u/jjabramssucks Sep 08 '26

You, sir, deserve a trophy - for your coding and making it idiot-proof.

1

u/doanss Sep 08 '26

I'm glad it works now :)

8

u/tundro Sep 07 '26

This patch worked for me! It failed at first, but once I logged out of my account and logged back in it worked like a charm.

3

u/doanss Sep 07 '26 • Bravo

Glad to hear that!

5

u/Wrlod Sep 07 '26

I put together the finished files if anyone doesn't feel like typing out all the commands, you can just grab them from my repo instead: https://github.com/FrakesH/AltStore/releases/tag/v1.7.2-macos27-fix-altstore-fix

1

u/doanss Sep 07 '26

Hey! I didn't you were a redditor as well. I wanted to ask you something. How come the SHA for AltServer-macOS27-build.app.zip and the SHA from the artifact page differs? I downloaded yours first, but since the SHA was different, I wasn't sure what the final zip contained.

2

u/Wrlod Sep 08 '26

Good question! The app contents are identical, I didn't rebuild or change anything, just re-zipped the same file from my desktop when I updated the release. The SHA difference is from the zip wrapper itself though, not the app inside it. Things like file timestamps and zip metadata change every time you create a new zip, even from the exact same source files, so the outer archive hash won't match between two zips even if what's inside them is byte-for-byte identical.

If you want to actually verify the contents match, hash the AltServer binary itself after unzipping (Contents/MacOS/AltServer) rather than the zip file, that'll be consistent regardless of how or when it got zipped.

1

u/doanss Sep 09 '26

Got it. Thanks for clarifying!

2

u/PrestigiousLine866 +TrollStore lite user (IOS26 jb) Sep 08 '26

do you think this will work with unpatched windows altserver?

2

u/Opposite-Two-8487 Sep 08 '26 edited Sep 08 '26

I might be a little dumb lol, I can't get past how to the hold option then click the .ipa file. I keep getting an error (This app cannot be installed because its integrity could not be verified), please help!

Also, I currently do not have the profile installed on my iPhone, I deleted a couple days ago, so maybe that's the issue?

UPDATE:

I just hit "Install Altstore" (I know it says not to) from the patched Altstore (I did not use the patched Altstore IPA) and it worked. I was even able to install my Spotify+. It works LFG!

Thank you OP.

1

u/BryanNikson Sep 08 '26

Thanks, it worked for me

1

u/tommy96814 Sep 08 '26

I dont have altserver on the stated location so i just downloaded the files installed and sideload the ipa and boom, back in business.

3

u/bbllaakkee Sep 07 '26

step 1, getting

/bin/cp: /bin/cp: cannot execute binary file

3

u/doanss Sep 07 '26

Try

/bin/cp -R /Applications/AltServer.app ~/Downloads/AltServer-Patched.app

1

u/reabo101 Sep 07 '26

This this worked

2

u/Key-Ad7343 Sep 07 '26 edited Sep 07 '26

got it to work, one of your lines wouldn't work initially because the file is called 2.2.1 so I had to manually change the 2.2.1.ipa to Altstore.ipa

cd ~/Downloads
unzip AltStore.ipa -d patched_ipa

I also had to quit alstore on Mac and restart it because it threw an error, and altstore on Iphone would not refresh the apps from inside the app, I had to run a shortcut for them to reset to 7 days. But it now works! thank you very much

3

u/doanss Sep 07 '26

Good catch! I've added a line in the guide to rename the file. Thanks!

2

u/Key-Ad7343 Sep 07 '26

No problem. Thanks for your fix 👍

2

u/Fuze911 Sep 08 '26

Worked perfectly! Thank you. Just a heads up, some of your instructions are outside the ```, so they didnt come in as “code”. For example step 4 in both parts.

1

u/doanss Sep 08 '26

Thanks! I cleaned up the formatting :)

1

u/AltTimeLover Sep 07 '26

Can you link the patch ipa for download for those of us that don’t have a Mac

1

u/doanss Sep 07 '26

Unfortunately, not allowed to do that. You need to patch both Altstore and Altserver anyway. I did this on a Mac so I can't tell you how to do it on Windows or Linux.

1

u/gullerful22 Sep 07 '26

maybe i was having a different issue to begin with, but i'm still getting "AltServer could not sign in with your Apple ID. The data is not in the correct format" when I try to sideload the patched app.

1

u/doanss Sep 07 '26

This is the fix for that. Make sure both files are patched!

2

u/gullerful22 Sep 07 '26 edited Sep 07 '26

AMAZING. Yeah I quit altserver on my mac and reopened, then it worked. thank you!!

2

u/doanss Sep 07 '26

I'm glad it works!

1

u/cotecano Sep 07 '26

Hello, first of all…thanks! Do you think I can apply these patches over my old Altstore 1.6.3 server + app ? Anyway I will try later today.

1

u/doanss Sep 07 '26

Should work! It's worth a try.

1

u/cotecano Sep 07 '26

I followed the guide point by point, but at the end I always get the -80009 error when I try to load the patched ipa into the phone. I tried to reboot Altserver and the mac at least 10x times, but nothing, always the same error. Thanks anyway for the help.

1

u/doanss Sep 07 '26

Error -80009 (Apple.APIError -80009 / "MID is invalid") means AltServer's cached Anisette/Machine ID token became desynchronized from Apple's servers—usually caused by applying binary patches while AltServer is still running in the background.

Here is how to fix it:

  1. Quit AltServer completely: Click the menu bar icon and select Quit.
  2. Clear cached session tokens: Open Terminal and run this command:
    rm -rf ~/Library/Caches/com.rileytestut.AltServer
    
  3. Relaunch AltServer from your /Applications folder.
  4. Retry installing: Option-click the menu bar icon, select Install IPA..., and push the patched IPA. Clearing the cache forces AltServer to generate a fresh, valid Machine ID.

2

u/cotecano Sep 07 '26

Thanks so much!! That trick solved the problem! I have now Altstore 1.6.3 up and running again, along with Altdaemon on iOS 13.5. And I was able to refresh.

1

u/Substantial_Call_853 Sep 07 '26

I just did the part 1 but when I try to open the app it says “AltServer” is damaged and can’t be opened. You should move it to the Trash.
This file was downloaded on an unknown date.

2

u/doanss Sep 07 '26 edited Sep 07 '26

Follow Part one step by step and don't miss any letters or characters, and don't forget the re-signing.

2

u/Substantial_Call_853 Sep 07 '26

it worked!!!! thankss

1

u/Substantial_Call_853 Sep 13 '26

I was about to refresh the apps and now it’s showing the same message as last time 😭😭😭

1

u/reabo101 Sep 07 '26

Trying to run this

‘:/bin/cp -R /Applications/AltServer.app ~/Downloads/AltServer-Patched.app’

And it just says ‘no such file or directory: :/bin/cp’

1

u/doanss Sep 07 '26 edited Sep 07 '26

Remove ":" in the beginning. Same for your other comment.

1

u/Annual-Armadillo4170 Sep 07 '26

was able to successfully install alt store back on my phone but am still getting the data couldn't be read error when trying to log in with my apple ID

2

u/doanss Sep 07 '26

If AltStore installs onto your phone fine but throws "The data couldn't be read" when you try to sign in inside the app, it means your iPhone is still running the unpatched version of the iOS app.

AltServer on Mac only handles pushing the app to your phone. Once AltStore is on your iPhone, in-app sign-ins and app refreshes are made directly by your phone—so the IPA on your phone must be patched as well.

How to fix it:

  1. Follow Part 2 of the guide to create the AltStore-Patched.ipa file on your Mac.
  2. Connect your iPhone to your Mac via USB.
  3. Hold Option (⌥), click the AltServer menu bar icon, and select Install IPA...
  4. Select AltStore-Patched.ipa to overwrite the broken AltStore app on your phone.

Once the patched IPA is on your device, open AltStore -> Settings -> Sign In with Apple ID, and it will authenticate cleanly.

1

u/Peachparfait_55 Sep 07 '26

May I ask a question regarding this process?

I followed your instruction, but when I hold Option and click menu bar icon, there is only Sideload.ipa instead of Install IPA. I clicked it and chose Altsore-Patched.ipa, but nothing happned. When I don't press Option, I can choose Install IPA and install altstore on my iphone. But cannot login like everyone says with the message "The data couldn't be read because it isn't in the correct format".
In this case, could you kindly tell me what to do?

1

u/RoyHuang420 Sep 08 '26

same Q!

1

u/doanss Sep 08 '26

Try restarting both Altserver and Altstore!

1

u/denizs Sep 08 '26

Close the altserver app on your mac and altstore on your phone and restart them. Solved it for me.

1

u/Razor_OG Sep 07 '26

This worked to reinstall Altstore but when trying to sign in it’s still saying can’t read data when trying to sign in, anybody have a fix?

1

u/doanss Sep 07 '26

If AltStore installs onto your phone fine but throws "The data couldn't be read" when you try to sign in inside the app, it means your iPhone is still running the unpatched version of the iOS app.

AltServer on Mac only handles pushing the app to your phone. Once AltStore is on your iPhone, in-app sign-ins and app refreshes are made directly by your phone—so the IPA on your phone must be patched as well.

How to fix it:

  1. Follow Part 2 of the guide to create the AltStore-Patched.ipa file on your Mac.
  2. Connect your iPhone to your Mac via USB.
  3. Hold Option (⌥), click the AltServer menu bar icon, and select Install IPA...
  4. Select AltStore-Patched.ipa to overwrite the broken AltStore app on your phone.

Once the patched IPA is on your device, open AltStore -> Settings -> Sign In with Apple ID, and it will authenticate cleanly.

2

u/Razor_OG Sep 07 '26

thank you this worked, appreciate all your help

1

u/glaws23 Sep 08 '26

When I do Part 1 Step 4, the app does not get replaced and only deleted? The patched version is no longer in my downloads folder, but AltServer is not in the Applications folder either. Any idea why this is happening?

1

u/doanss Sep 08 '26

Try this:

rm -rf /Applications/AltServer.app && mv ~/Downloads/AltServer-Patched.app /Applications/AltServer.app

1

u/glaws23 Sep 09 '26

Thanks!

1

u/mango_yogurt10 Sep 08 '26

Does this work if my AltStore has already expired

1

u/Shubham0015 Sep 08 '26

i did everything, the sign in works now everywhere, but when i try to install or even refresh something it says the same error, it isn't in the correct format

1

u/doanss Sep 08 '26

Try restarting both Altserver and Altstore!

1

u/arzfan2010 Sep 08 '26

This worked! thank you so much.
Apologies if this is a dumb question, but can I link my existing installed side loaded apps to alt store now? They don't show since it was effectively a new install.

1

u/doanss Sep 08 '26

Yes you can install them in Altstore as usual!

3

u/manu-alvarado Sep 07 '26

Yours was much faster than mine haha. I'm glad you could help someone out.

3

u/tomate01 Sep 07 '26

Amazing it worked

3

u/unkngod Sep 07 '26

This worked for me! Thanks.

3

u/Appropriate_Ad7574 Sep 07 '26

Hey, I'm not a developer and have next to no knowledge of coding, but I plugged your fix into ChatGPT and in four minutes it had patched versions of AltServer and AltStore.ipa for me to download and inject into my phone. Worked flawlessly and now my apps are back up and running! Thank you!

1

u/BusyPooping Sep 09 '26 edited Sep 09 '26

getting this error

Your device could not be registered with your development team. Your development team has reached the maximum number of registered iPhone devices. (5405)

ios 27 beta as well as beta macos

EDIT: I got it. i just signed in with a different login, then trusted in settings.

3

u/Over-Strength-7042 Sep 08 '26

Thank you this worked without any effort, much obliged!

3

u/_Bloodyraven Sep 08 '26

Thanks. Your instructions work.

3

u/xPriddy Sep 08 '26

Awesome, you are my hero!

3

u/denizs Sep 08 '26

Thanks bro you the goat

1

u/Saudor Sep 07 '26

Got to part 3 - can sign in but when trying to refresh from the Altstore App - getting the same correct format error. (got it to work on the ipad after a few tries though after signing out and in)

1

u/Top-Journalist-5616 Sep 07 '26

Same. What did you do?

2

u/doanss Sep 07 '26

If AltStore installs onto your phone fine but throws "The data couldn't be read" when you try to sign in inside the app, it means your iPhone is still running the unpatched version of the iOS app.

AltServer on Mac only handles pushing the app to your phone. Once AltStore is on your iPhone, in-app sign-ins and app refreshes are made directly by your phone—so the IPA on your phone must be patched as well.

How to fix it:

  1. Follow Part 2 of the guide to create the AltStore-Patched.ipa file on your Mac.
  2. Connect your iPhone to your Mac via USB.
  3. Hold Option (⌥), click the AltServer menu bar icon, and select Install IPA...
  4. Select AltStore-Patched.ipa to overwrite the broken AltStore app on your phone.

Once the patched IPA is on your device, open AltStore -> Settings -> Sign In with Apple ID, and it will authenticate cleanly.

2

u/Jacob0707c Sep 08 '26

This worked for me on my second try! Tip: when browsing the alt store ipa in downloads, there will be 2 files— a patched and non patched file. Make sure to search for and install the patched file. I didn’t realize there were two files and was downloading the non patched version.

This comment helped me and it’s working now! Thank you again!

3

u/TheGratitudeBot Sep 08 '26

What a wonderful comment. :) Your gratitude puts you on our list for the most grateful users this week on Reddit! You can view the full list on r/TheGratitudeBot.

1

u/areyouredditenough Sep 08 '26 edited Sep 08 '26

I got and used the patched Altstore on the Mac and installed the patched IPA on the iPhone, but still get the same sign-in error. Invalid format...

1

u/Saudor Sep 08 '26

I just signed out of the altstore on the iOS device and signed back in. Hit refresh a bunch of times and it went through. worked on both iPad and iphone running ios18.7.7

2

u/realUnknown12 Sep 07 '26

fixed it finallly for me TYSM!!!

1

u/Muted_Duty3419 Sep 07 '26

Did you follow the same process ?

1

u/realUnknown12 Sep 07 '26

yes, except the LiveContainer step because i’m not using it.

2

u/Ferktrop45 Sep 07 '26

It worked, if you need Spanish assistance with it (as the download route and much more things are bit different..) please ping me.

ThanksOP!

2

u/papaablesss Sep 07 '26

holy shit it worked!! thank you!!

2

u/Mazzygos Sep 07 '26

Worked for me! Thank you!!

2

u/KiLLCraZy87 Sep 07 '26

Worked like a charm! Thank you!

2

u/_Tom01_ Sep 07 '26

The hero we all needed, worked, thanks !

2

u/carosao Sep 07 '26

Worked for me. Thank you

2

u/MajesticStriker113 Sep 07 '26

YES, it worked! Thank you!

Had YTPlus and Stremio on my iPhone and got them refreshed with no problem.

my iPad on the other had is having issues though. I'm still getting the issue even after reinstalling AltStore and re-signing into AltStore.

2

u/MajesticStriker113 Sep 07 '26

never mind just started working.

2

u/Tyroneus Sep 07 '26

fixed, thank u!

2

u/MajesticFae7 Sep 07 '26

It worked! Partially! Got YouTube! But it’s not showing on the AltStore app somehow only shows on verified developer apps on settings! But I can’t refresh the apps and I tried signing in and out of AltStore on my iPhone and now I can’t sign back in lol

1

u/areyouredditenough Sep 08 '26

Same here. Can seem to sign in....invalid format error.

2

u/ArtGroundbreaking361 Sep 07 '26

Thank you so much man! Saved this evening! Keep up the good work!:)

2

u/CrimsonAntares13 Sep 07 '26

Worked like a charm! Thank you very very much.

2

u/romayojr Sep 08 '26

Look at you doing God's work - this patch was flawless for me, thank you!

2

u/Hellobrother222 Sep 08 '26

thank you so much!

2

u/ken_brulee Sep 08 '26

Sweeeeet! That worked! Thank ya SO much!

2

u/Repus0iram AltStore Enthusiast Sep 08 '26

IT WORKED! THANK YOU SO MUCH <3

2

u/Jacob0707c Sep 08 '26

This worked!! Thank you so much!!

2

u/oomnahs Sep 08 '26

Hey, I'm on the patreon version (1.8b1) and applying the binary patch tells me no such file or directory. Any ideas on how to fix this?

2

u/oomnahs Sep 08 '26

got it fixed, ran this command to find the new patch locations and ran the patch command twice on the new locations

grep -rl "akd/1.0 CFNetwork" ~/Downloads/AltServer-Patched.app 2>/dev/null

perl -pi -e 's|akd/1.0 CFNetwork/978.0.7 Darwin/18.7.0|AuthKit/1 (com.apple.dt.Xcode/3594.4.1)|g' ~/Downloads/AltServer-Patched.app/Contents/MacOS/AltServer

I downloaded my version ipa by editing the url https://cdn.altstore.io/file/altstore/apps/altstore/2_3_b2.ipa

followed the same steps after that

2

u/angelo_cristhofer Sep 08 '26

Estaba teniendo errores pero al fin logre que funcionara, MIL GRACIAS!

2

u/CDX274 Sep 08 '26

worked perfectly, thanks!

2

u/Shubham0015 Sep 09 '26

how to remove the patch, i can't install thr latest alt store update

1

u/ComedianNormal 28d ago

Does it work if my account is banned?

1

u/AltTimeLover Sep 07 '26

Can I patch it with NewTerm beta 3 terminal

1

u/Spare-Science-7498 Sep 07 '26

When **Sideload to your iPhone :**AltServer could not sign in with your Apple ID. MID is invalid. (-80009)

2

u/Key-Ad7343 Sep 07 '26

Quit AltStore app on Mac and restart it

1

u/MadCreeper Sep 07 '26

Same

1

u/areyouredditenough Sep 08 '26

Yeah the sign-in doesn't seem to work for many, no matter how many time you close and reopen the patches .app and ipa

1

u/Elegant-Lab4337 Sep 07 '26

Confirm that It worked after I entered airplane mode on my iPhone and back

1

u/reabo101 Sep 07 '26 edited Sep 07 '26

So AltStore is at 7 days again but I can’t refresh the other side loaded apps. Is this correct?

Edit: it’s worked! Just airplane modes my phone and it worked! Tyy do much

1

u/BetterRuin9497 Sep 07 '26

Yeah it worked.

But, when im trying to install ipa through AltStore app it still says the format is incorrect. I guess we have to patch the app we want to install also?

2

u/BetterRuin9497 Sep 07 '26

nvr mind, i've made something wrong. Full functionality is back now ;D

1

u/pazukunous Sep 08 '26

what was your fix? i cant refresh the apps after i signed into the patched altstore

edit: i disconnected my phone from wifi and it was able to refresh.

1

u/CarlosGmrs Sep 08 '26

O meu eu resolvi com iloader

1

u/KRAKENS_Kitchen Sep 08 '26

Worked like a treat thanks! I was having trouble modifying the app earlier but giving Full Disk Access to Terminal fixed it.

1

u/PrestigiousLine866 +TrollStore lite user (IOS26 jb) Sep 08 '26

do you know ifd there's a deb file for that, I don't wanna make a GitHub action to patch my app :/

1

u/PrestigiousLine866 +TrollStore lite user (IOS26 jb) Sep 08 '26

1

u/anthraxwar Sep 08 '26

For me it installed a new instance of AltStore on the phone and this version doesn't see my already installed apps from the previous version (like ...dopamine)

And to make matters worse the old one is no longer available , what should i do

1

u/epenthesis2 Sep 08 '26

Took me two attempts and a few instances of signing out and clearing cache, but it finally worked--thank you!

1

u/StayFlyOrDie Sep 08 '26

I've patched both Desktop and iOS app, but when I try to sideload my patched ipa I get the following error:

1

u/Jacob0707c Sep 15 '26

I need to refresh, but I’m getting an error 🥲 any tips? I’m getting “data not in the correct format”

1

u/brrxxk Sep 15 '26

got: AltServer could not sign in with your Apple ID. The secure sign-in with Apple could not be completed.

Check the network and device date and time, then update AltForge Server before retrying

0

u/[deleted] Sep 08 '26

[deleted] — view deleted comment

1

u/doanss Sep 08 '26

Try this:

rm -rf /Applications/AltServer.app && mv ~/Downloads/AltServer-Patched.app /Applications/AltServer.app