[ci] Try better fix for iOS simulator (#32108)#32124
[ci] Try better fix for iOS simulator (#32108)#32124rmarinho merged 1 commit intorelease/10.0.1xxfrom
Conversation
* tweak * delete all simulator runtimes if failing to install one --------- Co-authored-by: Rolf Bjarne Kvinge <rolf@xamarin.com> # Conflicts: # eng/pipelines/common/provision.yml
There was a problem hiding this comment.
Pull Request Overview
This PR updates the iOS simulator provisioning logic in the CI pipeline to address compatibility issues with Xcode 26.0. The key change is adding conditional logic to explicitly install the iOS 26.0 simulator with the universal architecture variant when using Xcode 26.0.x, as the iOS 26.0.1 simulator doesn't work correctly. It also includes a retry mechanism that deletes all simulator runtimes if the initial installation fails.
- Adds conditional check for Xcode 26.0.x versions
- Implements retry logic with simulator runtime cleanup on installation failure
- Explicitly specifies universal architecture variant for broader simulator compatibility
| echo " still $C simulators left..." | ||
| break |
There was a problem hiding this comment.
The condition logic is inverted. The message 'still $C simulators left...' is printed when C equals 0 (no simulators remaining), but it should be printed when C is greater than 0. The break statement should execute when C equals 0, and the echo should execute when C is greater than 0.
| echo " still $C simulators left..." | |
| break | |
| break | |
| else | |
| echo " still $C simulators left..." |
Description of Change
Updates for simulator install