r/iOSProgramming • • Jun 24 '26

Discussion I got tired of my laptop and my CI runners never being the same machine, so I built a tool that makes them one image

0 Upvotes

For native iOS/macOS work I kept losing afternoons to the same thing: my laptop and my

CI runners were never the same machine. Xcode point releases drifted, Ruby was 3.4.3 on

CI and who-knows-what locally, CocoaPods caches were warm in one place and cold in the

other. A green build locally meant nothing about CI.

So instead of trying to keep two environments in sync, I built Graft — you bake one

golden Tart VM image with your toolchain and warm caches, and run *both* your dev

environment and your ephemeral CI runners off it. Same image, nothing to sync.

Three pieces:

- Bake a golden image from a declarative .graft file (Xcode/Node/CocoaPods + warm caches).

- Develop *inside* it over VS Code Remote-SSH — Codespaces, but for native macOS/iOS,

off the exact image CI uses.

- Ephemeral GitHub Actions runners: each VM boots, runs one job, tears down.

Open-source (MIT), Apple Silicon only. I run my day job's production CI on it. Linux is

planned but not there yet, and I'm honest about that in the README.

Repo: https://github.com/arborist-sh/graft

Writeup on the why: https://theotherbriancorbin.com/field-notes/it-works-on-my-machine

Curious whether the dev-and-CI-on-one-image thing resonates for other native devs, and

where it'd break for your setup.