macsim, open source (MIT)

Build and test iOS apps from Linux

macsim lets me write code on Linux while a Mac builds and runs the iPhone Simulator. The same workflow supports inspecting and testing the app remotely.

Code on Linux, builds on a Mac

I wrote the tool in Bash. It syncs the project over SSH, runs xcodebuild or Expo, installs the app and launches it. Metro stays on Linux through a reverse SSH tunnel. Builds are serialised on the Mac to avoid competing for its memory.

macsim integrates agent-device for simulator interaction and serve-sim for the browser view. I use it for TrueSky and Keenwit. The repository contains installation instructions and CI checks for shell compatibility.