We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 507ffb1 commit 6b1c373Copy full SHA for 6b1c373
1 file changed
.github/workflows/build-ipa.yml
@@ -36,10 +36,15 @@ jobs:
36
37
- name: Select Xcode Version
38
run: |
39
- # Use the latest Xcode that was just installed
40
- LATEST_XCODE=$(find /Applications -name "Xcode*.app" | sort -V | tail -1)
+ # Use the latest Xcode that was just installed, but exclude helper apps
+ LATEST_XCODE=$(find /Applications -maxdepth 1 -name "Xcode*.app" -not -path "*/Xcode Helper.app" | sort -V | tail -1)
41
echo "Using Xcode: $LATEST_XCODE"
42
- sudo xcode-select -switch "$LATEST_XCODE/Contents/Developer"
+ if [ -z "$LATEST_XCODE" ]; then
43
+ echo "No Xcode found, using default"
44
+ sudo xcode-select -switch /Applications/Xcode.app/Contents/Developer
45
+ else
46
+ sudo xcode-select -switch "$LATEST_XCODE/Contents/Developer"
47
+ fi
48
49
- name: Show Xcode Version
50
0 commit comments