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-forgeEither way, this installs the forge command:
forge --versionPlatform 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.
| Task | Required tools / platform |
|---|---|
forge lint | Python dependencies only |
forge inspect, forge validate | unzip; macOS or Linux |
forge analysis strings, symbols, security, il2cpp | Python/LIEF; unzip when using --ipa |
forge hooks verify/find/audit/diff, analysis classdump/diff | macOS Xcode Command Line Tools (lipo, otool); unzip for IPA input |
forge hooks manifest | Source scanning only; no Apple tools |
forge patch --dry-run | unzip; also lipo/otool when the definition declares hooks |
forge patch --no-sign | Above, plus zip; no signing identity/profile needed |
Signed forge patch | macOS 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 --jsonBy 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 guiSee 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 --jsonIt 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-runA clean Dry run OK confirms the install works end to end, no signing
identity required.
Next steps
Usage
The forge CLI and web GUI, end to end
Patch Reference
Write your own patch definition YAML
Adding a New App
Build a complete patch set for an app you want to modify
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.