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

Cannot extend a "flavored" product with web #66486

Closed
ened opened this issue Sep 23, 2020 · 3 comments
Closed

Cannot extend a "flavored" product with web #66486

ened opened this issue Sep 23, 2020 · 3 comments

Comments

@ened
Copy link
Contributor

ened commented Sep 23, 2020

Steps to Reproduce

  1. Create a regular project (ios/android) etc & define flavors (like "standard") in the Xcode workspace. I created it using the stable branch.
  2. Attempt to extend the project with web support by calling flutter create again (this time from the beta branch)

Attempting it first will show the following message:

$ flutter create --platforms web .

The Xcode project defines schemes: standard
You must specify a --flavor option to select one of the available schemes.

Following this up with the flavor option raises a error:

$ flutter create --platforms web --flavor standard .
Could not find an option named "flavor".


Run 'flutter -h' (or 'flutter <command> -h') for available flutter commands and options.
[✓] Flutter (Channel beta, 1.22.0-12.1.pre, on Mac OS X 10.15.6 19G2021, locale en-US)
    • Flutter version 1.22.0-12.1.pre at /Users/ened/dev/flutter
    • Framework revision 8b3760638a (8 days ago), 2020-09-15 17:47:13 -0700
    • Engine revision 4654fc6cf6
    • Dart version 2.10.0 (build 2.10.0-110.3.beta)

 
[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.2)
    • Android SDK at /usr/local/share/android-sdk
    • Platform android-30, build-tools 30.0.2
    • ANDROID_HOME = /usr/local/share/android-sdk
    • Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6222593)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 12.0)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Xcode 12.0, Build version 12A7209
    • CocoaPods version 1.9.3

[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 4.0)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin version 49.0.2
    • Dart plugin version 193.7547
    • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6222593)

[✓] VS Code (version 1.49.1)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.14.1

[✓] Connected device (2 available)
    • Web Server (web) • web-server • web-javascript • Flutter Tools
    • Chrome (web)     • chrome     • web-javascript • Google Chrome 83.0.4103.116

• No issues found!
@darshankawar
Copy link
Member

Hi @ened,
flavor is not supported on web and Flutter doesn't have plans to implement it. Please see this comment and possible workarounds.
I am going ahead and closing this. If you disagree, write in comments and I'll reopen.
Thanks.

@ened
Copy link
Contributor Author

ened commented Sep 24, 2020

@darshankawar in that case the ticket could be renamed to reflect that the flutter command output is misleading.

@github-actions
Copy link

This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of flutter doctor -v and a minimal reproduction of the issue.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 12, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants