### Hybrid development integrates two ways:
1. Official websiteGithub.com/flutter/flu…
2. Method of extracting Flutter, a third-party library
##### This article mainly introduces the second method, as follows:
Draw lessons from the practice of “Flutter Hybrid Engineering Retrofit Practice”, extract some implementation details of Flutter dependence to remote. This paper first introduces how to develop the hybrid Native engineering and its dependence on Flutter engineering is mainly as follows: 3, The self-implemented Flutter Plugin (I am not currently doing any Plugin development, so I will ignore it for now) 4, Flutter engineering products: Isolate_snapshot_data, isolate_SNAPshot_instr, vm_SNAPshot_data, vm_SNAPshot_instr, flutter_assets
Build iOS –release 1. Create a Flutter folder in Native and find the following folder XXX/ iOS/flutter in your Flutter project:
- Add flutter_assets to Build Phases->Copy Bundle Resources. This directory protects all flutter scripts and Resources
- Build Phases > “+” to create a New Copy Files Phase,Destination > Frameworks, name > app.framework and flutter. This step fails, indicating that the flutter image cannot be found
Problem 1: Cannot run on the emulator Problem a: Put kernel_blob.bin into Flutter_assets. Kernel_blob. Bin location as follows: XXX/ios/Runner. Xcworkspace, open the Runner with Xcode. Xcworkspace, under the open project flutter_assets. (No good method has been found, welcome to provide)
Question 2: failed to prompt a flutter image answer: step 4 above. Question 3: Bitcode ANSWER: Close Bitcode, build Settings->enable Bitcode Yes change to no
# # # # references and citations blog.csdn.net/langouster/… Blog.csdn.net/u010960265/… Yq.aliyun.com/articles/61…