docker-images-flutter icon indicating copy to clipboard operation
docker-images-flutter copied to clipboard

Could not find an option named "flavor".

Open jacob-duong opened this issue 1 year ago • 3 comments

I got error when run flutter build ios but success for android.

$ flutter build ipa $DART_FILE --flavor $BUILD_ENV Could not find an option named "flavor". Run 'flutter -h' (or 'flutter -h') for available flutter commands and options. Cleaning up project directory and file based variables 00:00 ERROR: Job failed: exit code 1

My gitlab pipeline: stages:

  • build_android
  • build_ios

Build Android: stage: build_android image: ghcr.io/cirruslabs/flutter:3.7.12 script: - flutter clean - flutter pub get - flutter pub run intl_utils:generate - flutter build apk $DART_FILE --flavor=$BUILD_ENV artifacts: paths: - $APK_PATH

Build iOS: stage: build_ios image: ghcr.io/cirruslabs/flutter:3.7.12 script: - flutter clean - flutter pub get - flutter pub run intl_utils:generate - flutter build ipa $DART_FILE --flavor $BUILD_ENV artifacts: paths: - $IPA_PATH

jacob-duong avatar Jun 01 '23 11:06 jacob-duong

same issue for flutter build ios --release, cannot find option release

slorop41314 avatar Jun 02 '23 01:06 slorop41314

Are you running this on Mac runner?

BetterB0y avatar Aug 01 '23 08:08 BetterB0y

same issue here, any updates?

duykhanhhs1 avatar Oct 20 '23 03:10 duykhanhhs1