|
48 | 48 | - name: Install xcpretty |
49 | 49 | run: gem install xcpretty |
50 | 50 |
|
51 | | - - name: Select Xcode version |
52 | | - run: sudo xcode-select -switch /Applications/Xcode_26.4.app/Contents/Developer |
| 51 | + - uses: maxim-lobanov/setup-xcode@v1 |
| 52 | + with: |
| 53 | + xcode-version: latest-stable |
| 54 | + - name: Workaround Simulator Availability issues |
| 55 | + run: | |
| 56 | + # Just listing the installed simulators fixes availability inconsistency |
| 57 | + # Without this, runs fail *intermittently* with build target not available because simulators not available |
| 58 | + # See https://github.com/actions/runner-images/issues/13459#issuecomment-3681674842 |
| 59 | + xcrun simctl list |
53 | 60 | |
54 | 61 | - name: Run FirebaseSwiftUI Package Unit Tests |
55 | 62 | run: | |
@@ -104,9 +111,17 @@ jobs: |
104 | 111 | - name: Install xcpretty |
105 | 112 | run: gem install xcpretty |
106 | 113 |
|
107 | | - - name: Select Xcode version |
108 | | - run: sudo xcode-select -switch /Applications/Xcode_26.4.app/Contents/Developer |
109 | | - |
| 114 | + - uses: maxim-lobanov/setup-xcode@v1 |
| 115 | + with: |
| 116 | + xcode-version: latest-stable |
| 117 | + |
| 118 | + - name: Workaround Simulator Availability issues |
| 119 | + run: | |
| 120 | + # Just listing the installed simulators fixes availability inconsistency |
| 121 | + # Without this, runs fail *intermittently* with build target not available because simulators not available |
| 122 | + # See https://github.com/actions/runner-images/issues/13459#issuecomment-3681674842 |
| 123 | + xcrun simctl list |
| 124 | +
|
110 | 125 | - name: Build for Integration Tests |
111 | 126 | run: | |
112 | 127 | cd ./e2eTest/FirebaseSwiftUIExample |
@@ -170,9 +185,17 @@ jobs: |
170 | 185 | - name: Install xcpretty |
171 | 186 | run: gem install xcpretty |
172 | 187 |
|
173 | | - - name: Select Xcode version |
174 | | - run: sudo xcode-select -switch /Applications/Xcode_26.4.app/Contents/Developer |
| 188 | + - uses: maxim-lobanov/setup-xcode@v1 |
| 189 | + with: |
| 190 | + xcode-version: latest-stable |
175 | 191 |
|
| 192 | + - name: Workaround Simulator Availability issues |
| 193 | + run: | |
| 194 | + # Just listing the installed simulators fixes availability inconsistency |
| 195 | + # Without this, runs fail *intermittently* with build target not available because simulators not available |
| 196 | + # See https://github.com/actions/runner-images/issues/13459#issuecomment-3681674842 |
| 197 | + xcrun simctl list |
| 198 | + |
176 | 199 | - name: Build for UI Tests |
177 | 200 | run: | |
178 | 201 | cd ./e2eTest/FirebaseSwiftUIExample |
|
0 commit comments