File tree Expand file tree Collapse file tree 1 file changed +15
-6
lines changed
Expand file tree Collapse file tree 1 file changed +15
-6
lines changed Original file line number Diff line number Diff line change @@ -49,16 +49,25 @@ jobs:
4949 defaults write com.apple.dt.Xcode IDESkipMacroFingerprintValidation -bool YES
5050 defaults write com.apple.dt.Xcode IDESkipPackagePluginFingerprintValidatation -bool YES
5151
52+ - name : Select Xcode version
53+ run : sudo xcodes select ${{ matrix.xcode }}
54+
55+ - name : List Runtimes & Simulators
56+ run : xcrun simctl list
57+
5258 - if : matrix.platform != 'mac-catalyst'
5359 name : Download Required Runtimes
5460 run : |
5561 sudo xcodes select ${{ matrix.xcode }}
56- if ! xcodebuild -downloadPlatform ${{ matrix.platform }}; then
57- code=$?
58- if [ $code -ne 70 ]; then
59- exit $code
60- else
61- echo "Ignoring exit code 70 from xcodebuild -downloadPlatform"
62+ RUNTIME="${{ fromJSON(env.SIMULATORS_JSON)[matrix.xcode][matrix.platform].runtime }}"
63+ if ! xcrun simctl list runtimes | grep -q "$RUNTIME"; then
64+ if ! xcodebuild -downloadPlatform ${{ matrix.platform }}; then
65+ code=$?
66+ if [ $code -ne 70 ]; then
67+ exit $code
68+ else
69+ echo "Ignoring exit code 70 from xcodebuild -downloadPlatform"
70+ fi
6271 fi
6372 fi
6473
You can’t perform that action at this time.
0 commit comments