Closed saunptit97 closed 1 year ago
Hi @saunptit97 When opening an issue, please try to provide all information indicated in the template so that we can address this issue properly.
More specifically, please provide the missing information indicated below:
flutter doctor -v
flutter run -v
Regarding the error message ERROR: Unknown FLUTTER_BUILD_MODE
, this could be a duplicate of https://github.com/flutter/flutter/issues/85643. Please check reproduction case there and confirm if it's a similar one.
Sorry about the delay. My repository: https://github.com/saunptit97/add-to-app This problem when I create a new flutter build mode It is difference with ticket #85643. I created a build mode test. Please clone this project and run build mode app_test and it will be show error
Thanks for your update. I ran your sample code and also see the same error but it seems to be clear on the error message.
When I choose debug
here, the build is succeed:
Could you try it as well? And please also share about the initial test
build config setup.
Re-checking and comparing this to a normal case (flavor on non-add to app
project), I can't see this issue. Labeling this as a separate issue from https://github.com/flutter/flutter/issues/85643 as that issue seems to solve a different issue at https://github.com/flutter/flutter/issues/85643#issuecomment-871690330.
cc @vashworth
So I'm unsure of long-term how we'd want to support this. But as a workaround, you can try doing:
pod install
(This should generate config files specific for your Test config)
In my case it's Pods-AddToAppOptionA.test.xcconfig
FLUTTER_BUILD_MODE=Debug
You can alternatively set this to Profile or Release
Note: After doing pod install
, you would need to re-add FLUTTER_BUILD_MODE
Thank you for your support. I have fixed this issue.
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.
Is there an existing issue for this?
Steps to reproduce
Expected results
Run UT success on config "test"
Actual results
Code sample
Code sample
```dart [Paste your code here] ```Screenshots or Video
Screenshots / Video demonstration
[Upload media here]Logs
Logs
```console [Paste your logs here] ```Flutter Doctor output
Doctor output
```console [Paste your output here] ```