Skip to content

Commit 3d5cc9a

Browse files
ci: use latest xcode stable and attempt to fix simulator availability issues
1 parent e37303b commit 3d5cc9a

1 file changed

Lines changed: 30 additions & 7 deletions

File tree

.github/workflows/swiftui-auth.yml

Lines changed: 30 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,15 @@ jobs:
4848
- name: Install xcpretty
4949
run: gem install xcpretty
5050

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
5360
5461
- name: Run FirebaseSwiftUI Package Unit Tests
5562
run: |
@@ -104,9 +111,17 @@ jobs:
104111
- name: Install xcpretty
105112
run: gem install xcpretty
106113

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+
110125
- name: Build for Integration Tests
111126
run: |
112127
cd ./e2eTest/FirebaseSwiftUIExample
@@ -170,9 +185,17 @@ jobs:
170185
- name: Install xcpretty
171186
run: gem install xcpretty
172187

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
175191

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+
176199
- name: Build for UI Tests
177200
run: |
178201
cd ./e2eTest/FirebaseSwiftUIExample

0 commit comments

Comments
 (0)