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.shlikewise 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 testwith-resultBundlePathand upload it as an artifact, and you can view failure screenshots and logs on your own computer.
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
- Open Xcode in the remote desktop and download the simulator runtimes your tests need.
- Launch the simulator by hand once and deal with the first-run system prompts.
- In the workflow, state the simulator model and OS version with
-destination. - Add
-resultBundlePathand upload the result bundle as a build artifact. - Watch the desktop the first time the pipeline triggers it, and confirm the simulator starts normally.
Related questions
- Rented Mac mini as an always-on build machine for small teams? Count your build minutes first
- Can I debug on a real iPhone with a remote Mac?
- Runner did not come back online after the Mac mini restarted: what to do
- Can I install a CI runner as a system boot service on a rented Mac mini?
- How many build jobs can one Mac mini run at the same time?
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:
- Can I use a rented Mac mini for automatic nightly builds?
- Can code signing on a build machine be fully automated with no prompts?
- Build machine: buy a Mac mini for the office or rent one?
- Self-hosted Mac mini runner vs GitHub-hosted macOS runner: which to choose?
Pricing and availability: see the plans page · Help center (中文) · Refund policy (中文) · Telegram Contact support