-
Notifications
You must be signed in to change notification settings - Fork 607
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
Duplication dart class in Mac OS product app #176
Comments
I'm a little confused as to why you've inlined If you provide the hashes for your Flutter tree and Flutter engine tree I can test a local engine override with the same versions to see if I can reproduce your issue with that version. |
Did you pass |
The script in the first screenshot is (a slightly modified version of) the script I linked to above that passes that flag, showing the relevant lines uncommented. |
You're right, apologies for missing that. |
Inline script is easier to modify in Xcode environment, since I don't need Linux built product. flutter commit SHA : Notice that I do commit some changes locally base on posted SHA. so current SHA locally is not same as posted. However my commit should not change the build pipeline |
After remove So no block for my work. Close this issue for this moment. When more time is available, I will do more check about whether dart class is duplicated. |
setup the engine development environment according this
I changed some code both
embedder.c
andflutter/lib/ui/*.dart
in flutter engine, add some instance variable to dart class.build and copy the
FlutterEmbedder.framework
to desired location:flutter_engine_framework/macos/FlutterEmbedder.framework
(in the original build pipeline,FlutterEmbedder.framework
is downloaded from network)Then change some code in flutter/flutter, this code depends on the dart code change in engine.
Build the macos example project with Debug configuration. Run the result
Example Embedder.app
.I found both my dart code changes in engine and flutter/flutter works (two logs both printed). But the code in flutter/flutter does not find the instance variable previously added to
flutter/lib/ui/*.dart
.And Application crashed.
After some debug, I found
flutter/lib/ui/*.dart
class is duplicated in product app.There are two files in app folder (Right click
Example Embedder.app
and clickShow Package Contents
):file 1: app build result by
flutter build bundle
file 2: engine build result by
ninja -C
Check the file contents by Mac command line
strings /path/to/file1or2 > output1or2.txt
Search for
flutter/lib/ui/
in these generated output.txt, you can findflutter/lib/ui/*.dart
class in both files.Is anything wrong with my build settings?
The text was updated successfully, but these errors were encountered: