source-recomp v0.3.1 Brings Native Portal 2 and Half-Life 2 to Apple Silicon Macs and iPhones
source-recomp v0.3.1 fixes startup crashes on incomplete Portal 2 installs, bringing statically recompiled Source games to Apple Silicon.
The static recompilation project kanapitsas/source-recomp reached version 0.3.1. The release fixes a startup crash that Portal 2 users reported on Reddit on Apple Silicon hardware.
Previously, missing or empty puzzle-editor files (portal2_dlc2/scripts/editoritems.txt) caused the game to dereference a null pointer during campaign loading, triggering a SIGBUS error. Version 0.3.1 adds file checks to both the setup script and the app, which show a clear error message with instructions to verify game files through Steam instead of crashing. An empty placeholder file does not help; the game needs the real one.
This project translates Linux x86 binaries of Valve’s Source engine games into native C code via custom lifting tools, compiling them straight to ARM64 executables for macOS and iOS without relying on emulators, Wine, or Rosetta. Portal 2 is fully playable: 122 fps on an M3 Pro using Metal in one test scene at 2560×1440 with 4× MSAA, and a steady 60 fps on an iPhone 15 Pro Max with touch controls. Half-Life 2 and its episodes run experimentally, and the episodes and Lost Coast have only loaded their first maps.
To try it out, grab the signed Natif Installer app or clone the repository and run ./setup.sh using the Xcode command line tools. You must supply your own game files.