# Portal 2 gets a static recomp that runs natively on Apple silicon Macs and iPhones

> A fan project turned Portal 2's Linux build into native ARM64 code for macOS and iOS. It took about two days, with AI writing most of the code.

- Published: 2026-10-28T06:12:55Z
- Score: 9/10
- Tags: recomp, pc, port
- Port / platforms: PC (Windows) -> Mac, iOS (Recompilation)
- Web page: https://emu-radar.customfw.xyz/news/portal-2-apple-silicon-static-recomp/
- Sources: https://www.reddit.com/r/decomps/comments/1xgoc5n/i_statically_recompiled_portal_2_to_run_natively/ , https://www.reddit.com/r/macgaming/comments/1xgyqod/portal_2_running_natively_on_apple_silicon_via/

A fan project has statically recompiled Portal 2 into native ARM64 code, and it runs on Apple silicon Macs and iPhones. The developer, Reddit user u/kanapitsas, says the work took about two days, with Claude Code and Codex writing most of the code under their direction.

The [portal2-recomp](https://github.com/kanapitsas/portal2-recomp) repo takes the game's x86 Linux machine code and translates it into C, then compiles that for macOS and iOS. The README says the project uses no emulator, Wine or Rosetta. About 125,000 functions and 15 million instructions go through the translator. Unsupported instructions or imports stop the game at their address instead of being skipped silently.

On a Mac, the README reports 235-280 fps on an M3 Pro at 1280×720 to 1512×982. On an iPhone 15 Pro Max it holds a locked 60 fps with 4× MSAA. Portals fire when you tap the left or right side of the back of the phone, detected with the accelerometer and gyroscope. The author calls that feature an experiment. The iOS port is single player and offline, with no co-op or achievements, and the menus still have a few bugs. Only one iPhone model has been tested.

To build it, you need your own copy of Portal 2 on Steam, an Apple silicon Mac, the Xcode command line tools, Python 3 and Homebrew. A setup script does the rest and takes about 10 to 30 minutes the first time. The repo contains no game files. Don't share the built apps or the generated code, since they contain Valve's game. With a free Apple account, the iPhone build expires after 7 days and needs a rebuild and reinstall.

The project is unofficial and not affiliated with Valve. The full development log is in the repo, so you can check how much of the work the AI did.
