You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Create a regular project (ios/android) etc & define flavors (like "standard") in the Xcode workspace. I created it using the stable branch.
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!
The text was updated successfully, but these errors were encountered:
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.
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.
Steps to Reproduce
stable
branch.Attempting it first will show the following message:
Following this up with the
flavor
option raises a error:The text was updated successfully, but these errors were encountered: