Skip to content

Commit 5da4755

Browse files
committed
Uses setup-xcode action to select Xcode version
1 parent 4290f7b commit 5da4755

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

.github/workflows/deploy-legacy.yml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,16 @@ jobs:
4242
4343
- uses: actions/checkout@v4
4444

45-
- run: |
46-
sudo xcode-select -s /Applications/Xcode_${XCODE_VERSION}.app/Contents/Developer
45+
- name: Select Xcode Version
46+
uses: maxim-lobanov/setup-xcode@v1
47+
with:
48+
xcode-version: ${{ env.XCODE_VERSION }}
49+
50+
- name: Show selected Xcode
51+
run: |
52+
echo "Using Xcode at:"
53+
xcode-select -p
54+
xcodebuild -version
4755
4856
- name: (Optional) Download iOS Simulator runtimes (18.x)
4957
run: |

0 commit comments

Comments
 (0)