diff --git a/azure-pipelines-ios.yaml b/azure-pipelines-ios.yaml index df1d791f6..40da5f60f 100644 --- a/azure-pipelines-ios.yaml +++ b/azure-pipelines-ios.yaml @@ -1,6 +1,6 @@ pool: name: Azure Pipelines - vmImage: 'macOS-13' + vmImage: 'macOS-14' demands: - xcode - msbuild @@ -59,13 +59,35 @@ steps: **/TestSecrets.cs actionOnMissing: fail keepToken: true + + - task: PowerShell@2 + displayName: Select Xcode Version + inputs: + targetType: 'inline' + script: | + echo Mac OS version: + sw_vers -productVersion + echo Installed Xcode versions: + ls /Applications | grep 'Xcode' + echo currently selected xcode: + xcrun xcode-select --print-path + echo selecting latest xcode... + sudo xcode-select -s /Applications/Xcode_16.1.app + xcrun xcode-select --print-path + xcodebuild -version - bash: | /bin/bash -c "sudo $AGENT_HOMEDIRECTORY/scripts/select-xamarin-sdk.sh 6_12_7" - xcodeRoot=/Applications/Xcode_12.4.app + xcodeRoot=/Applications/Xcode_15.4.app /bin/bash -c "echo '##vso[task.setvariable variable=MD_APPLE_SDK_ROOT;]'${xcodeRoot};sudo xcode-select --switch ${xcodeRoot}/Contents/Developer" displayName: 'Force SDK and Xcode version' enabled: false + + - bash: | + xcodeRoot=/Applications/Xcode_16.0.app + /bin/bash -c "echo '##vso[task.setvariable variable=MD_APPLE_SDK_ROOT;]'${xcodeRoot};sudo xcode-select --switch ${xcodeRoot}/Contents/Developer" + displayName: 'Force Xcode version' + enabled: false - bash: | URL="https://bmm-api.brunstad.org/AppVersion/iOSVersionCode"