flutter_flavorizr icon indicating copy to clipboard operation
flutter_flavorizr copied to clipboard

Misleading error message: `The following fields were missing: [ios]`

Open dJani97 opened this issue 2 years ago • 5 comments

When I tried to run the latest version of Flavorizr with an older config, I got this error:

The following fields were missing: [ios]. Read the docs for further details

Contrary to what the error says, the solution was to REMOVE the ios field from the beginning of the config.

So instead of this:

app:
  android:
    flavorDimensions: "flavor-type"
  ios:

I had to use this:

app:
  android:
    flavorDimensions: "flavor-type"

Or alternatively, I did get rid of the entire app: section anf Flavorizr still works fine. I like this solution the most.

I think this error message should be improved.

Also, the 2.2.0 changelog of "Android and iOS definitions are no longer required" should contain something like:

"BREAKING: must remove ios if it's unused."

dJani97 avatar Sep 24 '23 11:09 dJani97

Same error with latest flutter version

mhmzdev avatar Sep 29 '23 13:09 mhmzdev

Hey @dJani97 can you please take a look here to see if everything works fine now?

AngeloAvv avatar Oct 27 '23 10:10 AngeloAvv

Alguma correção para esse erro ?

brenomenosso avatar Nov 28 '23 22:11 brenomenosso

@brenomenosso there's an open PR for a fix but I'm waiting for feedback

AngeloAvv avatar Dec 03 '23 09:12 AngeloAvv

Do you know, if it is okay to delete ios? I mean making it like this:

app:
  android:
    flavorDimensions: "flavor-type"

aktumut avatar Feb 01 '24 12:02 aktumut