Run Your First Test

Get Started

For test engineers setting up a new node: get one test passing, then split your regression suite into parallel lanes. Your environment is a dedicated physical Mac mini, not a virtual machine. Simulator tests are not the same as tests on a physical iPhone.

Run Your First Test

Start with a repeatable smoke test that does not depend on external services. Verify connectivity, toolchain, runtimes, and project dependencies separately so environment issues are not mistaken for product regressions.

01

Check Your Credentials

Sign in to the console, open your provisioned instance, and verify its connection address, SSH port, username, and rental term. Use the details shown for your instance, not the example address or username.

Check the host fingerprint before your first login. If it changes after a reinstall, confirm the reinstall record before updating your local record. Do not bypass host verification.

Done when: You have the instance connection details
02

Connect to the Command Line

Start an SSH connection from a trusted team workstation. Replace the address, port, and username with the values provided in the console. After logging in, use sw_vers to record the macOS version.

For a timeout, check the address, port, and local network. For an authentication failure, check the username, credentials, or key. Never include passwords in troubleshooting notes.

Done when: You can run a remote command
03

Set Up the Toolchain

First, run xcodebuild -version and xcrun simctl list devices availableto confirm that Xcode is installed and a simulator is available. If you need a different version, use a support ticket to confirm the installation path and runtime setup.

Keep the project commit, Xcode version, runtime, and dependency lockfile consistent across nodes. Initialize the toolchain after installation, then hand off to CI.

Done when: The target simulator is available
04

Run a Smoke Test

Run one Test Plan on a single node first. Confirm the test target, Scheme, and simulator UDID, then enable parallel execution. Use a separate results directory for each run.

Save the command, exit code, and xcresult. Expand test coverage or add nodes only after the first run succeeds, so you can avoid troubleshooting the project and scheduler at the same time.

Done when: You have a results bundle you can open

Check Commands

The abbreviated commands below are examples, not live node output or a performance guarantee. The address 192.0.2.10 is reserved for documentation examples. Replace the project name, Scheme, Test Plan, and simulator UDID with your team's values.

qa@usw-03 — zsh
$ ssh -p 22 qa@192.0.2.10
$ sw_vers
$ xcodebuild -version
$ xcrun simctl list devices available

$ export SIMULATOR_UDID="YOUR_SIMULATOR_UDID"
$ xcodebuild test \
  -workspace QAApp.xcworkspace \
  -scheme QAApp \
  -testPlan Smoke \
  -destination "platform=iOS Simulator,id=$SIMULATOR_UDID" \
  -parallel-testing-enabled YES \
  -resultBundlePath results/smoke-01.xcresult

Test Suite 'Smoke' passed
** TEST SUCCEEDED **

$ bundle exec fastlane scan \
  --workspace QAApp.xcworkspace \
  --scheme QAApp \
  --testplan Smoke \
  --destination "platform=iOS Simulator,id=$SIMULATOR_UDID"

Executed 412 tests, 0 failures

Choose one way to run the tests:xcodebuild and fastlane scan are two different execution methods. You do not need to run the same test suite with both. The fastlane example assumes your repository pins its dependencies with Bundler.

Understand the two levels of parallelism:-parallel-testing-enabled YES controls parallel testing on a single Mac; it does not distribute work to other physical nodes. Multi-node scheduling is handled by Test Plan sharding and CI jobs, covered in the next section.

Preserve failure signals:CI must read the test process's actual exit code. A success summary in the logs is no substitute for checking the exit code, and a successful report upload must not override a test failure.

Split Tests into Parallel Lanes

Assign each node a clearly defined test shard. Split by test module, workflow, or resource dependencies rather than dividing files evenly. Differences in execution time determine when the last lane finishes.

  1. 01

    Pin the Baseline

    Check out the same commit on every node and use the same dependency lockfile and toolchain. Assign a shared run ID for each run, and include the shard and node IDs in artifact paths.

  2. 02

    Assign Test Cases

    Maintain Test Plans in your repository, such as ShardA, andShardB . Check that the test sets have no unintended overlap or gaps. Keep tests that depend on the same test data in one shard, or use isolated data namespaces.

  3. 03

    Run Each Shard

    CI routes each shard to its assigned node. Save the xcresult, standard output, and exit code from each node. Tune per-node concurrency based on memory use and simulator startup; do not assume a fixed number of simulators.

  4. 04

    Collect Reports

    Upload the raw results from each node before merging the result bundles. If any shard fails or its results are missing, the overall run must not be marked as passed. Keep the original bundles so you can trace failures to a specific node and test.

Merge Result Bundles

Run this on a summary node with a compatible Xcode toolchain. Check the help output to confirm which options your version supports, and choose an output directory that does not conflict with an existing result bundle.

xcrun xcresulttool merge --help

xcrun xcresulttool merge \
  artifacts/shard-a.xcresult \
  artifacts/shard-b.xcresult \
  --output-path artifacts/merged.xcresult

Merging reports only collects results; it does not rerun missing shards. When retrying failed tests, use a new run ID and keep the original failure record so a passing retry does not hide flaky tests.

Integrate with Your CI Pipeline

Keep the build stage unchanged and move only the test stage to the new nodes first. Pass registration tokens only through CI secrets management. Never store node passwords, private keys, or long-lived access tokens in your repository.

Connect GitHub Actions

Register a self-hosted runner and use custom labels to identify test nodes. Set the workflow's runs-on to the matching label. Pass a different Test Plan name to each matrix entry.

Validate jobs in a controlled repository first. Restrict credentials and permissions for untrusted code, and do not let external pull requests run on nodes that have sensitive credentials.

Check: Jobs run on the intended node

Connect GitLab Runner

Register a Runner with an executor suited to macOS testing, then use tags to route test jobs to the node. Configure artifact upload in a step that runs even when the job fails.

Set project-level and node-level concurrency separately. Give jobs on the same node their own working directories to prevent DerivedData, simulators, and result directories from overwriting one another.

Check: Reports are available for failed jobs

Connect a Jenkins Agent

Configure a dedicated agent and label for the node, then use the label to select where pipeline jobs run. Inject connection details from the credential store; never print keys in script arguments or console output.

Validate the toolchain with a single executor first, then adjust based on resource use. For GUI tests, confirm the agent's session can launch the simulator successfully.

Check: The session and execution identity match

Before your rental ends, stop accepting new jobs, wait for running jobs to finish and upload reports, then deregister the Runner or agent from CI. Do not let the pipeline keep routing jobs to a reclaimed node.

Know These Eight Terms

Start by distinguishing the provisioned resource, connection methods, and test artifacts. Specify which one you mean in support tickets to reduce back-and-forth.

Physical node
A Mac mini running macOS on physical hardware. The node is neither a test case nor a simulator device; it can run test processes based on its available resources.
Dedicated
The entire machine is assigned to one customer for the rental term. Your team still needs to coordinate jobs, permissions, and test data to avoid conflicts.
Not a virtual machine
Your Mac is not a virtual instance carved out of a shared host. The iOS Simulator in Xcode is a testing tool, which is separate from how the Mac itself is provisioned.
VNC
A way to view and interact with the remote macOS desktop, useful for checking the simulator screen. Find the connection details in your instance details after signing in.
SSH
A secure way to run remote commands and transfer files. Use it to install project dependencies, launch tests, and collect logs; it does not display the simulator screen.
self-hosted runner
A CI job executor managed by your team. It receives jobs only after you register it with your Mac; provisioning a node does not automatically configure a test pipeline.
Test Plan sharding
Split a complete test suite into independently runnable plans and assign them to different nodes. You will also need to check test coverage, data isolation, and failure retry rules.
xcresult
An Xcode test results bundle that may include execution records, diagnostics, and screenshots. Save one for each run ID and download it before your rental ends; do not keep only the terminal summary.

View the Simulator Screen

Use the command line to run jobs and remote desktop to inspect the screen. If a UI test stalls on a dialog, focus, or permission prompt, inspect the session before retrying so you do not lose evidence by restarting.

  1. 01

    Get Connection Details

    Sign in to the console, open the relevant instance details, and connect using the remote desktop method provided. Use the address, port, and authentication details for that instance, not another node's credentials.

  2. 02

    Adjust the Display

    For troubleshooting, start at 1440 × 900 so you can see both the simulator and logs. This is an operating suggestion, not a node specification. For screenshot comparisons, use your team's fixed baseline resolution and scaling.

  3. 03

    Capture the Session

    Check whether the test is stuck on a permission prompt or waiting screen. Record the time, test identifier, and a screenshot. While a job is running, do not move the simulator, change window focus, or click the app under test.

An open remote desktop connection does not guarantee that SSH authentication works. Likewise, being able to run SSH commands does not mean the GUI session for UI tests is ready. Verify each connection separately before troubleshooting the test itself.

Troubleshoot Three Common Issues

Start with checks you can reverse before making changes to the environment. Before resetting a simulator, deleting caches, or reinstalling, confirm no other jobs are using the node and archive the current test evidence.

Simulator startup times out. What should I check first?

First, run xcrun simctl list devices available to confirm the target UDID and runtime are available, then run xcrun simctl bootstatus "$SIMULATOR_UDID" -b to check startup status. A missing runtime and a simulator that is still booting are different issues.

If several simulators are starting at once, reduce per-node concurrency first, then check memory, disk space, and the GUI session. Increase concurrency gradually once the first simulator starts reliably; do not simply keep extending the test timeout.

When filing a support ticket, include the Xcode version, runtime version, target UDID, command exit code, and relevant startup logs. Avoid reporting only that the simulator is slow.

Tests fail during signing. How can I narrow down the cause?

First, check whether the target is iOS Simulator or a device build, and confirm the command's destination is correct. Simulator tests should not be routed to a target that requires device signing.

For workflows that require signing, your team must provide properly authorized certificates and provisioning profiles, imported through CI secrets management. Check the certificate's validity, the profile's match with the Bundle Identifier, and whether the execution user can access the required keychain.

Do not upload private keys, certificate passwords, or full credentials by email or support ticket. Provide a redacted error excerpt, the failing stage, and the project's signing settings instead.

Disk space is low. Should I clean up or expand storage?

First, run df -h to check available space, then review usage from the project working directory, DerivedData, simulator runtimes, and previous xcresult bundles. Remove only files that are safe to regenerate and are not in use by a current job.

Download any reports you need to keep before deleting old artifacts. Do not run cleanup commands across the entire user directory or delete files by age from paths shared by multiple jobs.

If you need to keep multiple runtimes or a large number of result bundles, check the +1TB SSD add-on in the order configuration: $2.1/day, $5.7/week, $10.5/month, or $28.6/quarter. To change an existing instance, confirm the options through a support ticket.

Stuck? Contact Support

Sign in to the console and submit the instance ID, failure time and time zone, reproduction command, exit code, and redacted logs. For regression results, include the failing shard and Xcode version. Download reports and test data before your rental ends.

If you can't sign in, email support@vpsmacos.com. Do not include passwords, private keys, or payment card details.