r/iosdev • u/bartek239 • 9d ago
Help Remote Linux box + iOS dev: how do you handle simulators?
Solo iOS dev here. I'd like to move most of my work to a cheap remote Linux server (Hetzner or similar) so my Mac isn't busy all the time.
Editing, git, scripts, CI orchestration and background jobs would all run there.
The problem is obviously simulators and builds, and I don't want to give those up. Has anyone got a setup where the Linux box does most of the work and only hands builds and simulator runs to a Mac or Cloud Simulator?
Like a Mac mini at home as a build node over Tailscale, or something cloud-based that doesn't cost a fortune every month?
Would love to hear what you actually run and roughly what it costs. Also curious if anyone tried this and went back to just working locally.
1
u/smooth-like-butter-0 9d ago
ypu aay you are an ios dev and you want to move to linux?how many weeks have you been a dev in the apple ecosystem? lol
1
u/bartek239 2d ago
Simulators really go hard on my Mac and ram, build and test time is m bottleneck time wise right now
2
u/dahiya_xa 9d ago
i'd keep it simple. a used m1 or m2 mac mini at home on tailscale as the build box. ssh in from the linux server, run xcodebuild and tests there, and use screen sharing when you actually need to poke at the simulator. one time cost and no monthly bill. cloud macs and github's mac runners work too but they add up fast if you build all day
2
u/newtablecloth 9d ago
did roughly this for a while. the mac mini on tailscale as a build node part works really well, the "edit everything on linux" part is where it gets annoying.
what works fine over ssh:
xcodebuild test -scheme YourApp -destination 'platform=iOS Simulator,name=<your sim>'xcrun simctl boot,simctl install,simctl launch,simctl io booted screenshotall work without anyone looking at the screenwhat doesn't: sourcekit-lsp on linux is fine for plain swift packages but it can't see UIKit or SwiftUI, so autocomplete and previews for app code are mostly gone. if your current mac is slow mainly because of xcode indexing and previews, moving editing to linux won't fix that, a faster mac doing everything will.
cost wise a used m1 or m2 mini is the cheapest long term, one time cost and maybe $2 a month of power. github hosted macos runners are around 6 cents a minute, fine for CI but no warm caches and no sim you can poke at.
full disclosure i run macrun, we rent dedicated m6 minis by the month ($139) or $15 a day, so you could try the build node setup for a day or two before buying hardware. but honestly if you're going to keep it long term a used mini at home wins on price
2
u/Stunning-Farmer185 5d ago
I run NoMac so I'm biased, but this is pretty much the setup we built it for. the linux box keeps doing everything, and when it needs a build it starts a cloud Mac (under a minute), runs xcodebuild and the tests there, and the Mac stops after. billed per minute, no subscription, so you're not paying for a Mac sitting idle all month.
for simulators there are cloud iOS Simulators too, up in a few seconds. your scripts or agent drive them from the linux side and you can watch them in the browser when you need to poke at something.
that said if you've already got a mac at home, the mini on tailscale thing people mentioned works great and costs nothing extra. nomac is more for when you don't want to keep a box running at home.
nomac.app
1
u/MagicAISu 6d ago
For a solo setup, Iād time one clean build and one incremental build on the Mac, then count how often you actually need to click around in the Simulator. That tells you whether a persistent Mac build node with a remote desktop is worth paying for, or whether occasional CI runs cover it. I work on Magicmac, a hosted Mac rental. Are your slowdowns mostly build/test time, Xcode indexing, or the Simulator itself?