Skip to content

Commit de75039

Browse files
Force XCode version for macos15 build (#1633)
After recent changes in runners environment current setup is giving error: iOS 18.0 Platform Not Installed Relates-To: MINOR Signed-off-by: Rustam Gamidov <[email protected]>
1 parent 7c47304 commit de75039

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

.github/workflows/psv_pipelines.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,7 @@ jobs:
223223
run: scripts/ios/azure_ios_build_psv.sh
224224
shell: bash
225225
env:
226-
USE_LATEST_XCODE: 0
226+
SELECT_XCODE_LOCATION: "/Applications/Xcode_14.3.app"
227227

228228
psv-ios-os15-arm64-xcode-16-build:
229229
name: PSV.iOS.MacOS15.Xcode16
@@ -234,6 +234,8 @@ jobs:
234234
- name: iOS Xcode 16 Build
235235
run: scripts/ios/azure_ios_build_psv.sh
236236
shell: bash
237+
env:
238+
SELECT_XCODE_LOCATION: "/Applications/Xcode_16.4.app"
237239

238240
psv-ios-os14-arm64-xcode-15-build:
239241
name: PSV.iOS.MacOS14.Xcode15

scripts/ios/azure_ios_build_psv.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,11 @@
2222
# Sometimes there is no boost and there is no need to fail in this case.
2323
brew uninstall --ignore-dependencies boost || true
2424

25-
if [[ ${USE_LATEST_XCODE} == 0 ]]; then
25+
if [[ -n ${SELECT_XCODE_LOCATION} ]]; then
2626
# Due to some bug which is cmake cannot detect compiler while called
2727
# from cmake itself when project is compiled with XCode 12.4 we must
2828
# switch to old XCode as a workaround.
29-
sudo xcode-select -s /Applications/Xcode_14.3.app
29+
sudo xcode-select -s ${SELECT_XCODE_LOCATION}
3030
fi
3131

3232
mkdir -p build && cd build

0 commit comments

Comments
 (0)