Repository navigation
Foundry is a workshop for building iPhone apps on your iPhone, with Claude Code
doing the work. You say what you want ("port this open-source game"), Claude writes the code,
builds it on the phone and fixes the errors. You get an unsigned IPA to sideload.
New? Read docs/GETTING-STARTED.md first. It takes you from
install to your first IPA.
What's new
- New name and icon: Foundry. Updating from an older build? Install over it; your files stay.
- Claude tab is the first tab: the Claude Code terminal (bring your own
claudeprogram). - Screenshots and files for Claude: attach a screenshot or any file in the Claude tab so
Claude can see what went wrong. - Dev mode on by default: clang, Swift, Rust, cmake, meson, GNU make and Python run inside the app.
- Rust works: rustc no longer crashes the app when it exits.
- Helper scripts (shims) for things the phone cannot do on its own: Windows resources
(henge-windres.py),llvm-readobj(readobj_shim.py),.aarchives (ws-pack.py),
app icons (henge-appicon.py). Seetools/foundry/. - Guides: GETTING-STARTED, BUILD-YOUR-TOOLCHAIN,
BUILD-NOTES (every phone workaround we found).
What you need
- iPhone/iPad with A14 or M1 or newer, iOS 17+, a sideloader and JIT.
- Your own AI: your own Claude account for the Claude tab, and/or your own OpenAI-style server or API key for the Chat tab. Foundry ships with no AI account, key or server: see "Use your own AI" in GETTING-STARTED.
- Your own Toolchain folder (not included: it contains Apple's SDK). Make it once with a Mac,
or with the macOS VM built into Foundry if you have no Mac: see BUILD-YOUR-TOOLCHAIN.
Known issues
- A tool exits with 127: the code area is full. Close and reopen Foundry. Normal on long builds.
- Keep Foundry on screen while building; iOS pauses or drops GPU work in the background.
- Games using MoltenVK may crash when started a second time in one session: reopen Foundry.
./configurescripts that run test programs can crash the app. Claude uses the recipes in BUILD-NOTES instead.- One build job at a time (
make -j1).
Installation
Sideload Foundry-0.4.0-101.209-unsigned.ipa with SideStore or AltStore. If you already have Henge or an older Foundry, install over it; your files stay.
Foundry is built on the engine by Leviidev. Thank you.