Build flavors always defaults to command line default on IoS flutter

Viewed 1879

In my project, I have set up build flavor debug and staging. But when I try and run it or build an ios app on IoS, it always defaults to the command line default set on the XCode. It runs fine on android, only problem is with IoS. Both of this command build for the debug configuration which is command line default.

flutter build ios -t lib/main.dev.dart --flavor dev
flutter build ios -t lib/main.staging.dart --flavor staging

I have no way of not selecting the default. Is there any way to resolve this?

1 Answers

Did you get this to work? I had similar issue. It is to do with the xcode setting as shown below

enter image description here

Currently I am manually changing this every time I do a build. Looking for an automatic solution

Related