onnxruntime/tools/ci_build/github/azure-pipelines/templates/use-xcode-version.yml
2025-01-08 13:02:10 -08:00

14 lines
357 B
YAML

# Specify use of a specific Xcode version.
parameters:
- name: xcodeVersion
type: string
default: "15.3.0"
steps:
- bash: |
set -e -x
XCODE_DEVELOPER_DIR="/Applications/Xcode_${{ parameters.xcodeVersion }}.app/Contents/Developer"
sudo xcode-select --switch "${XCODE_DEVELOPER_DIR}"
displayName: Use Xcode ${{ parameters.xcodeVersion }}