-
Notifications
You must be signed in to change notification settings - Fork 26.9k
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
iOS: Issues with multiple flavors. command-line builds #18342
Comments
+1 here. I'm having the same issue on iOS builds - especially point 1. Case is:
When building it, it does build and install the right flavor. But then when launching it on the iOS emulator it launches the wrong one. In other words: each build scheme has a different bundle ID. When launching the app, although it installs the right one, Flutter can only launch the one that has the bundle ID of the configuration set in "Use <configuration> for command-line builds". |
Having this issue too - this is a very common workflow setup and needs to be addressed asap. Flutter should launch the app with bundle identifier that has just been built |
I have a problem with building too. Will it be fixed? |
Regarding the Im using fastlane
My
And my
Which this kind of dirty solution Im able to switch between different flavour configurations and build on CI |
@eikebartels good job. |
Any update on this issue ? I also have this problem, the command line is trying to launch the wrong app in the simulator... |
Please help on this. |
Please check if #27691 fixes this as well |
Hi! I've run into the same problem on Flutter 1.2.1, channel stable.
|
I tried setting up Flutter Flavor for iOS apps following this blog: https://www.tengio.com/blog/multiple-firebase-environments-with-flutter/ but even though the (Have added my Flutter verbose output for reference: http://pasted.co/7b85a2f9) Would be great if we can have an official way of setting up flavor on iOS and Android. Hoping that #32761 pull request might solve a few issues. |
I am having the same issue here. We have multiple flavors which are represented with schemes in iOS project. Using command line |
Confirmed. Same problem with |
I believe @jonahwilliams is looking at our underlying build infrastructure as we speak, which likely will affect our support of flavors: https://github.com/flutter/flutter/projects/35 |
Great to see this is being worked on - it's sorely needed for a lot of build setups! |
Is there a workaround?? My app uses flavors to separate prod and dev config for Firebase... Currently I can not start my app in with dev Firebase... blocks further development |
How to add ios flavors appname for multiple languages |
Any updates? Also Please add proper documentation on flutter Website... just dont link other people's blog in it.. |
Any updates on this one? It's difficult to manage multiple environments (especially when using multiple Firebase projects for staging and production) to configure without using flavors. |
As @eseidelGoogle already mentioned you can track progress at this project https://github.com/flutter/flutter/projects/35 |
@eikebartels I have flavors/schemes configured in my project and could set the configuration using command line while building/archiving. Just pass the
I am using Circle CI, here is a gist with example for the config.yml |
Any further development on this one? I'm currently manually changing |
@jpcarreira I have patched my local stable channel with the changes from ccfdf95 - this seems to work |
Thanks for your tip, I did something similar: branched-out of the current stable branch and cherry-picked that commit. And it has been working so far, hopefully soon this commit will be part of the stable channel. |
This is now working on the |
Closing as fixed by #42964. Please reopen if you think there's still an issue. |
My issue is not getting resolved even after changing command-line builds option. I am using different scheme in iOS for multiple firebase project. It seems to work on Android. If I add release version of Google service info plist file after dev version then it uses release version irrespective of flavor and vice versa.Even changing to master branch, did not work for me. For more details, check this https://stackoverflow.com/questions/59944278/configuring-multiple-scheme-in-ios-causes-mismatch-in-flavors |
I experiencing that if i'am building dev flavor, or any other, bundle id is always same, for production. Building from terminal/cmd line. UPDATE: It looks like it is some error on CLI from flutter because i debug it with package_info flutter package to get info about build, and i saw that it is correct bundle_id, as i wanted, but still in CLI when run flutter build ios -flavors dev -t lib/main_dev.dart , it still shows up production bundle id. Im concerned about this because of separate Firebase projects plist files in config folder. My push does not work and dont know is it related with this maybe, or i didnt setup in project firebase properly. |
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 |
Hello,
Im having a couple of problems with flavors. Manly on iOS but also on Android.
I have one code base for 2 different apps. Each app has a live and staging configuration. Each of this configuration has one for release and one for debug.
My configuration in Xcode looks like:
And my configuration in Android Studio looks like
Things going wrong.
flutter build ios --release --flavor instructor_live --target lib/main_instructor_live.dart
Im getting errors likeBut archiving via Xcode works
Doctor output
(Im still using cocoa pods v 4.0 because otherwise nothing works anymore.
The text was updated successfully, but these errors were encountered: