Skip to content

Commit 7f231f0

Browse files
authored
ci: show list of simulators to avoid CI errors due to missing simulator (#1270)
## 📜 Description Added a job for requesting available simulators before proceeding to builds. ## 💡 Motivation and Context As described in actions/runner-images#12948 I added a logger for querying all devices before making any builds commands. For example sometimes this step may take 1 minute to complete, but will list all available devices and will complete job successfully: <img width="1290" height="311" alt="image" src="https://github.com/user-attachments/assets/6e3ae7d5-a7d0-4b96-bf5a-08c953ba2d4a" /> If job is not failing this step executed very fast: <img width="1292" height="256" alt="image" src="https://github.com/user-attachments/assets/62c63979-e979-402b-951b-b1b84501b98b" /> So let's keep this job (it's used not only for debugging step, but also helps to fix random failures). Workaround for actions/runner-images#12948 ## 📢 Changelog <!-- High level overview of important changes --> <!-- For example: fixed status bar manipulation; added new types declarations; --> <!-- If your changes don't affect one of platform/language below - then remove this platform/language --> ### CI - run `xcrun simctl list` before XCode builds; ## 🤔 How Has This Been Tested? Tested via this PR. ## 📸 Screenshots (if appropriate): <img width="262" height="96" alt="image" src="https://github.com/user-attachments/assets/0343dd42-71bb-493b-ae3a-2af49e0b4734" /> ## 📝 Checklist - [x] CI successfully passed - [x] I added new mocks and corresponding unit-tests if library API was changed
1 parent 68395bf commit 7f231f0

3 files changed

Lines changed: 6 additions & 0 deletions

File tree

.github/workflows/build-ios-fabric.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,8 @@ jobs:
4141
- uses: maxim-lobanov/setup-xcode@v1
4242
with:
4343
xcode-version: "16.4"
44+
- name: List all available simulators
45+
run: xcrun simctl list
4446

4547
- name: Get yarn cache directory path
4648
id: fabric-yarn-cache-dir-path

.github/workflows/build-ios.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,8 @@ jobs:
3737
- uses: maxim-lobanov/setup-xcode@v1
3838
with:
3939
xcode-version: "16.4"
40+
- name: List all available simulators
41+
run: xcrun simctl list
4042

4143
- name: Get yarn cache directory path
4244
id: yarn-cache-dir-path

.github/workflows/verify-ios.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,8 @@ jobs:
6666
- uses: maxim-lobanov/setup-xcode@v1
6767
with:
6868
xcode-version: "16.4"
69+
- name: List all available simulators
70+
run: xcrun simctl list
6971

7072
- name: Install xcpretty
7173
run: gem install xcpretty

0 commit comments

Comments
 (0)