aloisdeniel / vsts-flutter-tasks

Flutter build tasks for Azure DevOps Pipelines/TFS.
https://marketplace.visualstudio.com/items?itemName=aloisdeniel.flutter
107 stars 83 forks source link

Is it possible to specify the Xcode version? #65

Closed flbaue closed 3 years ago

flbaue commented 3 years ago

I currently have an issue with building a Flutter App on azure. I need to use Xcode 12, which is available on the azure VM Images but not as default.

https://github.com/actions/virtual-environments/blob/main/images/macos/macos-10.15-Readme.md

There is an article how to specify the Xcode version when working with Xamarin. But I guess that Flutter won't use the same environment variables (MD_APPLE_SDK_ROOT)

https://docs.microsoft.com/en-us/azure/devops/pipelines/agents/hosted?view=azure-devops&tabs=yaml#how-can-i-manually-select-versions-of-tools-on-the-hosted-macos-agent

So what can I do?

flbaue commented 3 years ago

Don't mind, I solved it by using Xcode-select.

sudo xcode-select -switch /Applications/Xcode_12.2.app