diff --git a/ci_build/azure_pipelines/templates/xcode-build-and-test-step.yml b/ci_build/azure_pipelines/templates/xcode-build-and-test-step.yml index 54a6e00e1..81f5cf886 100644 --- a/ci_build/azure_pipelines/templates/xcode-build-and-test-step.yml +++ b/ci_build/azure_pipelines/templates/xcode-build-and-test-step.yml @@ -20,7 +20,13 @@ steps: packageApp: false destinationPlatformOption: 'iOS' destinationTypeOption: 'simulators' - destinationSimulators: 'iPhone 15' + # Note: The simulator version should be compatible with the Xcode version. + # Refer to the table here: https://developer.apple.com/support/xcode/ + # Pick a simulator version that is supported by the Xcode version. + # + # Xcode version: "/Applications/Xcode_.app/Contents/Developer" in xcodeDeveloperDir + # Simulator version: "OS=" in destinationSimulators + destinationSimulators: 'iPhone 15,OS=17.5' ${{ if ne(parameters.args, '') }}: args: ${{ parameters.args }} displayName: "Xcode build and test"