dotnet / dotnet/xharness

[apple] Consider adding an option for installing iOS/tvOS simulators when missing simulators cause test failures

Open
#1,378 1 comment 1 reaction 0 assignees View on GitHub
Dominant language
C#
Stars
189
Forks
67
Avg merge
1d 12h
Merged PRs (30d)
29

Description

## Description

It can happen that a test is marked as failed when an iOS/tvOS simulator is not found on the system.
Usually, this requires opening a ticket with dnceng/ddfun so that simulators become available on the host machines.
An alternative approach would be to introduce a new retry mechanism:
1. If a test fails due to a missing simulator
2. Install desired simulator via for example:
```
apple simulators install ios-simulator-64_18.0 --verbosity=Debug --xcode /Applications/Xcode_16_beta_6.app
```
3. Retry the test
which we could run when we experience said infra issues.

Contributor guide

No contributing guide indexed for this repository

Research direction

No source files or tests are named. Start by reviewing how missing iOS/tvOS simulators currently cause test failures, then examine the proposed `apple simulators install ios-simulator-64_18.0 --verbosity=Debug --xcode /Applications/Xcode_16_beta_6.app` command. Done means the relevant failure can trigger simulator installation and the test is retried afterward.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp, ios
Domain
cli, mobile-dev, testing
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.