Skip to content

Instantly share code, notes, and snippets.

@qnblackcat
Last active August 15, 2025 11:37
Show Gist options
  • Save qnblackcat/4f7b77f685ccda2ff4ef916a27d66107 to your computer and use it in GitHub Desktop.
Save qnblackcat/4f7b77f685ccda2ff4ef916a27d66107 to your computer and use it in GitHub Desktop.
Downloading older versions of iOS apps using ipatool

Downloading older versions of iOS apps using ipatool

πŸ‘‰ ipatool is an open-source tool developed by Majd, a highly trustworthy and talented developer in the iOS community. Recently, ipatool got a significant update that allows users to easily download older versions of iOS apps on macOS/Windows/Linux!.

πŸ‘‰ Since ipatool doesn't have a graphical user interface (GUI), some of you might think it's tricky to use. But trust me, it's not! Here's a simple guide if you're still a bit scared of the terminal. (Tbh, everything in this *guide can be found on ipatool's repo)

πŸ‘‰ Note: You need to log into your Apple ID via ipatool for the tool to work. Unless you prioritize security above all, you can trust logging into your Apple account with ipatool. As explained earlier, it’s an open-source tool developed by a well-known and reliable developer, minimizing security risks to the lowest level.

Obtain the Build Number of the version you want to download

  • Method 1: You can get the Build Number of most apps on the App Store from ipafilezone or Appstore.bilin (backup).
  • Method 2: Ask a jailbroken user who has AppStore++ installed to get the Build version number for you.
  • If you still can't find the Build Number, see this.

Windows ⊞

1. Install ipatool

  • Grab the ipatool binary from ipatool realeases. Use ...windows-arm64.tar.gz for ARM Windows, ...windows-amd64.tar.gz for x86 Windows.
  • Unzip.

2. Usage

πŸ‘‰ Step 1: Sign in with your Apple account

  • Open Command Prompt (search "cmd" in Start menu) or PowerShell.

  • Drag & drop the extracted ipatool binary into the Command Prompt or PowerShell window. Then, run: /path/to/ipatool.exe auth login -β€”email [email protected]

  • Enter your Apple Account password and 2FA code when prompted (your password won't be displayed, just type it normally).

  • Enter your PC password (passphrase) when prompted. If you do not set a password for your computer, press Enter to skip.

1

  • ipatool should respond with something like: INF [email protected] name="Your Name" success=true

πŸ‘‰ Step 2: Run ipatool

  • Get the app's bundle ID (com.abc.xyz): /path/to/ipatool.exe search Yourapp

4

  • Combine with the prepared Build Number, we can now download the exact version we want. Note that if you don't specify the --external-version-id flag, ipatool will simply download the latest version available.

πŸ’» /path/to/ipatool.exe download -b [app's bundle ID] --external-version-id [Build Number]

  • That's it! The IPA is saved in your Home folder.

3

  • Example: Download YouTube (com.google.ios.youtube) version 20.16.7(874149063)

πŸ’» ipatool download -b com.google.ios.youtube --external-version-id 874149063


macOS ο£Ώ

1. Install ipatool

πŸ‘‰ Method 1: Package Manager (Homebrew - recommended)

  • Install Homebrew (if not installed): /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"

  • Use Homebrew to install ipatool: brew install ipatool

  • Now you can call ipatool directly in the Terminal window.

πŸ‘‰ Method 2: Manual install (not recommended)

  • Grab the ipatool binary from ipatool realeases. Use ...macos-arm64.tar.gz for Apple silicon Mac, ...macos-amd64.tar.gz for Intel Mac.
  • Unzip.
  • Drag & drop the binary into the Terminal.

2. Usage

πŸ‘‰ Step 1: Sign in with your Apple account

  • In Terminal, run: ipatool auth login -β€”email [email protected]

  • Enter your password and 2FA code when prompted (your password won't be displayed, just type it normally).

CleanShot 16-06at 11 39

  • If ipatool responds with INF [email protected] name="Your Name" success=true, then you're good to go.

  • You also will be prompted to enter your device’s password to allow ipatool to access the keychain (Select Always Allow).

πŸ‘‰ Step 2: Run ipatool

  • Get the app's bundle ID (com.abc.xyz): ipatool search Yourapp CleanShot 16-06at 17 35

  • Combine with the prepared Build Number, we can now download the exact version we want. Note that if you don't specify the --external-version-id flag, ipatool will simply download the latest version available.

πŸ’» ipatool download -b [app's bundle ID] --external-version-id [Build Number]

  • That's it! The IPA is saved in your Home folder. CleanShot 16-06at 17 43

  • Example: Download YouTube (com.google.ios.youtube) version 20.16.7(874149063)

πŸ’» ipatool download -b com.google.ios.youtube --external-version-id 874149063

Linux 🐧

(Don't think a Linux user has to read this guide)


Install the IPA


@mrlionman
Copy link

I'm on a Windows PC and it is asking me to enter passphrase to unlock "C:\Users\m*******n\.ipatool" (this is separate from your Apple ID password):. However I don't have never setup a passphrase. I got the password and 2FA code done correctly, but can't get past the passphrase. Please advise

@qnblackcat
Copy link
Author

I'm on a Windows PC and it is asking me to enter passphrase to unlock "C:\Users\m*******n.ipatool" (this is separate from your Apple ID password):. However I don't have never setup a passphrase. I got the password and 2FA code done correctly, but can't get past the passphrase. Please advise

Maybe it’s your pc passcode?

@mrlionman
Copy link

correct, it was the PC login password.

Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment