我想创建一个 Flutter 模块,然后将其嵌入到本机 iOS 项目中。
我在此 选项 B >Flutter文档创建模块。
正如文档中所示,我执行了这个命令:
flutter build ios-framework --output=some/path/MyApp/Flutter/
将 Flutter 代码生成到框架中。
但是,当我导入 App.xcframework 和 Flutter.xcframework (来自同一文件夹 Release)时,出现此错误:
经过研究,我遵循了这Flutter的文档,我更新了Thin Binary脚本并添加其他链接器标志。
但是当我将Flutter的代码构建到框架中时,只有Debug文件夹中的App.xcframework有kernel_blob.bin文件。

这是我的颤动配置:

如何让Release文件夹中的App.xcframework有kernel_blob.bin文件?
预先感谢您的帮助
I want to create a Flutter module, then I will embbed it to native iOS project.
I'm following Option B in this document of Flutter to create a module.
As in the document, I executed this command:
flutter build ios-framework --output=some/path/MyApp/Flutter/
to generate Flutter code into frameworks.
But when I imported App.xcframework and Flutter.xcframework (from same folder Release), I got this error:
After researched, I followed this document of Flutter, I updated Thin Binary script and add Other Linker Flags.
But when I build Flutter's code into frameworks, only App.xcframework in Debug folder have kernel_blob.bin file.


This is my flutter config:

How to make App.xcframework in Release folder have kernel_blob.bin file?
Thank in advance for your help
发布评论