将 Flutter 代码构建到框架中时,Release 文件夹中缺少 kernel_blob.bin 文件

发布于 2025-01-10 06:59:50 字数 1381 浏览 2 评论 0 原文

我想创建一个 Flutter 模块,然后将其嵌入到本机 iOS 项目中。 我在此 选项 B >Flutter文档创建模块。

正如文档中所示,我执行了这个命令: flutter build ios-framework --output=some/path/MyApp/Flutter/ 将 Flutter 代码生成到框架中。

但是,当我导入 App.xcframeworkFlutter.xcframework (来自同一文件夹 Release)时,出现此错误:在此处输入图像描述

经过研究,我遵循了这Flutter的文档,我更新了Thin Binary脚本并添加其他链接器标志

但是当我将Flutter的代码构建到框架中时,只有Debug文件夹中的App.xcframeworkkernel_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:enter image description here

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.

enter image description here
enter image description here

This is my flutter config:
enter image description here

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

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文