Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Could not find an option named "flavor". #275

Open
jacob-duong opened this issue Jun 1, 2023 · 3 comments
Open

Could not find an option named "flavor". #275

jacob-duong opened this issue Jun 1, 2023 · 3 comments

Comments

@jacob-duong
Copy link

jacob-duong commented Jun 1, 2023

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

@slorop41314
Copy link

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

@BetterB0y
Copy link

Are you running this on Mac runner?

@duykhanhhs1
Copy link

same issue here, any updates?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants