Installation

Install ipa-forge from PyPI and run your first patch in under a minute.

ipa-forge is a published PyPI package. You don't need to clone the repository to use it — that's only needed if you're building patch definitions alongside their assets in a git-tracked project, or contributing to the engine itself.

Install

pipx installs forge as an isolated, globally available command — the standard way to install a Python CLI tool without touching your other projects' environments.

pipx install ipa-forge

Either way, this installs the forge command:

forge --version

Platform and tool requirements

Python 3.11+ is required. The table describes the tools each path actually uses; availability of a Python wheel alone does not establish OS support.

TaskRequired tools / platform
forge lintPython dependencies only
forge inspect, forge validateunzip; macOS or Linux
forge analysis strings, symbols, security, il2cppPython/LIEF; unzip when using --ipa
forge hooks verify/find/audit/diff, analysis classdump/diffmacOS Xcode Command Line Tools (lipo, otool); unzip for IPA input
forge hooks manifestSource scanning only; no Apple tools
forge patch --dry-rununzip; also lipo/otool when the definition declares hooks
forge patch --no-signAbove, plus zip; no signing identity/profile needed
Signed forge patchmacOS codesign/security, a Keychain signing identity, and a matching .mobileprovision

Windows is not currently covered by CI. Archive extraction/repacking uses Unix unzip/zip semantics, including symlink preservation.

Check your setup

New in the source checkout after 0.2.0:

forge doctor
forge doctor --definition /path/to/patches.yaml
forge doctor --gui
forge doctor --objc --signing --json

By default this checks unzip and zip. --definition also lints the YAML and checks Apple analysis tools if it declares hooks. --gui checks the configured patch-set root. --objc and --signing request the corresponding Apple tools. Exit 1 means a requested check failed; every failure includes a suggested fix. This checks tool presence, not signing credentials or on-device behavior.

Before using the GUI

The GUI discovers your own patch definitions; the package ships no third-party patch sets. Put each definition at /path/to/patches/<app>/<app>.yaml, keep its assets alongside it, then run:

IPA_FORGE_PATCHES_DIR=/path/to/patches forge gui

See GUI setup. For a single definition anywhere on disk, use forge patch --patches /path/to/definition.yaml instead.

Verify it works

New in the source checkout after 0.2.0, the bundled demo runs offline:

forge demo
# or, for automation:
forge demo --json

It lints the synthetic definition, dry-runs it, applies two unsigned operations, and verifies the output against the recorded manifest. Everything runs in a temporary directory and is removed afterward. It requires zip and unzip; no Apple tools, signing credentials, downloads, or device are needed. This tests the patch engine, not installation on a real iPhone.

Released 0.2.0 quickstart

This example is tested against release 0.2.0 and uses fixtures pinned to that release. No app of your own needed yet — the repository ships a synthetic test fixture you can patch immediately after installing:

curl -LO https://raw.githubusercontent.com/nandan-varma/ipa-forge/v0.2.0/fixtures/synthetic_app.ipa
curl -LO https://raw.githubusercontent.com/nandan-varma/ipa-forge/v0.2.0/fixtures/patches/example.yaml
mkdir -p assets && curl -Lo assets/patched_asset.txt \
  https://raw.githubusercontent.com/nandan-varma/ipa-forge/v0.2.0/fixtures/patches/assets/patched_asset.txt

forge inspect synthetic_app.ipa
forge patch --ipa synthetic_app.ipa --patches example.yaml \
  --output /tmp/patched.ipa --dry-run

A clean Dry run OK confirms the install works end to end, no signing identity required.

Next steps

Installing from source

Only needed to develop ipa-forge itself

Contributing to the engine (a new patch operation type, a signing provider, a bug fix) needs an editable install against a clone of the repository — regular usage never does.

git clone https://github.com/nandan-varma/ipa-forge.git
cd ipa-forge
python3 -m venv .venv && source .venv/bin/activate
pip install -e ".[dev]"
pytest tests/

See Architecture and Extensibility before making engine changes.

On this page