Direct answer
Yes, but the installation step has to be done in a terminal inside the remote desktop. On macOS, GitLab Runner is only supported running as the logged-in user and depends on a graphical login session.
Basis
- GitLab's documentation (Install GitLab Runner on macOS, checked 2026-11-12) states that on macOS the Runner runs as a user-level LaunchAgent, that this is the only supported mode, and that a system-level LaunchDaemon is not supported.
- The same document says the Runner runs as the currently logged-in user, starts when that user logs in and stops when they log out. It also tells you not to install it from an SSH session but from a graphical terminal on the machine, because a LaunchAgent needs a graphical login session to load. What you see through UU Remote or RustDesk is that graphical session, so opening Terminal there and installing meets the requirement.
- The document also names the benefit of this design: the Runner can reach that user's keychain and UI session, which are exactly what the iOS simulator and code signing need.
- The Runner connects out to the GitLab instance and waits for jobs. The direction is from the machine outward.
Boundaries: when the answer is different
Pick the right executor. iOS builds use the shell executor, where jobs run on this Mac as that user; container executors run Linux containers and cannot compile iOS apps. If your GitLab is a self-managed instance that only accepts traffic from fixed source addresses, this machine is not a fit: it uses US residential broadband, the public exit may be shared with other machines, and it is not a fixed address. For Runner and GitLab versions, the official advice is to keep major and minor versions in sync; with a large gap some features may not work properly. Whether the Runner comes back on its own after a restart depends on the login configuration. Ask support to check that rather than changing login and encryption settings yourself.
How to do it
- Open the desktop with UU Remote and, in Terminal, download the Runner and make it executable as the official documentation describes.
- Register it with the token generated on the GitLab page, entering shell as the executor.
- Still in that graphical terminal, run
gitlab-runner installandgitlab-runner start. - Confirm it shows as online in GitLab's runner list, then add the matching tags to your jobs.
- Run a minimal pipeline and confirm that
xcodebuild -versionprints the version you expect.
Related questions
- Rented Mac mini as an always-on build machine for small teams? Count your build minutes first
- 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?
- How to connect to a rented Mac mini from a Windows PC with UU Remote
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 a rented Mac mini work as a Jenkins build agent?
- Can a self-hosted runner keep DerivedData and dependency caches between builds?
- Can I run XCUITest and the iOS simulator on a remote Mac mini?
- Can I use a rented Mac mini for automatic nightly builds?
Pricing and availability: see the plans page · Help center (中文) · Refund policy (中文) · Telegram Contact support