Home/Q&A/Can I run XCUITest and the iOS simulator on a remote Mac mini?

Can I run XCUITest and the iOS simulator on a remote Mac mini?

Updated · airankrush

Direct answer

Yes. The simulator and UI tests need a logged-in graphical session, and this machine has a full desktop. The condition is that the runner runs inside the logged-in user's session rather than in a pure background environment.

Basis

  • GitLab's macOS installation documentation spells out the relationship: the Runner runs as a LaunchAgent of the logged-in user, so it can reach that user's keychain and UI session, which the iOS simulator and code signing need (source, checked 2026-11-12).
  • A GitHub Actions runner installed with svc.sh likewise lands in the current user's LaunchAgents folder and follows that user's login session.
  • The desktop you see through UU Remote and the session the runner lives in are the same session. Connect while tests are running and you can watch what happens in the simulator window, a way of investigating that a cloud runner cannot offer.
  • Save the result bundle from xcodebuild test with -resultBundlePath and upload it as an artifact, and you can view failure screenshots and logs on your own computer.

Information as of .

Boundaries: when the answer is different

Real-device testing is not possible: the machine is at a site in the United States and you cannot plug a phone into it. If the machine stops at the login window after a restart, there is no graphical session and every UI test fails. That depends on the login configuration set at delivery, so ask support to check it. A locked screen or a system permission dialog can also make tests hang; for the first run it is best to stay connected to the desktop and click through any permission prompts. Simulator runtimes are very large and each extra OS version takes considerable disk space. We have no measured data on how fast tests run.

How to do it

  1. Open Xcode in the remote desktop and download the simulator runtimes your tests need.
  2. Launch the simulator by hand once and deal with the first-run system prompts.
  3. In the workflow, state the simulator model and OS version with -destination.
  4. Add -resultBundlePath and upload the result bundle as a build artifact.
  5. Watch the desktop the first time the pipeline triggers it, and confirm the simulator starts normally.

Use case

This question belongs to the use case: Rented Mac mini as an always-on build machine for small teams? Count your build minutes first

Other questions in the same use case:

Pricing and availability: see the plans page · Help center (中文) · Refund policy (中文) · Telegram Contact support

Back to home · All Q&A