onnxruntime/tools/ci_build/github/azure-pipelines/templates/use-xcode-version.yml
2024-03-26 12:20:11 -07:00

14 lines
355 B
YAML

# Specify use of a specific Xcode version.
parameters:
- name: xcodeVersion
type: string
default: "14.2"
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 }}