简体   繁体   English

webview_flutter 在 iOS 存档时导致问题

[英]webview_flutter cause issues while archive in iOS

I have a flutter module and integrated in the existing iOS app ( add to app ).我有一个 flutter 模块并集成在现有的 iOS 应用程序中(添加到应用程序)。 Everything was working but when I try to Archive it produces an error in webview_flutter module:一切正常,但当我尝试存档时,它会在webview_flutter模块中产生错误:

bitcode bundle could not be generated because '/Users/flutter-module/.ios/Flutter/engine/Flutter.framework/Flutter' was built without full bitcode.无法生成位码包,因为“/Users/flutter-module/.ios/Flutter/engine/Flutter.framework/Flutter”是在没有完整位码的情况下构建的。 All frameworks and dylibs for bitcode must be generated from Xcode Archive or Install build file '/Users/flutter-module/.ios/Flutter/engine/Flutter.framework/Flutter' for architecture armv7 bitcode 的所有框架和 dylib 必须从 Xcode Archive 或 Install build file '/Users/flutter-module/.ios/Flutter/engine/Flutter.framework/Flutter' for architecture armv7 生成

I checked the build setting and the Bitcode enabled is set to "Yes" for obvious reasons, what might be the reason for this error?我检查了构建设置,出于明显的原因,启用的位码设置为“是”,这个错误的原因可能是什么? Does it have something to do with the webview_flutter module?跟webview_flutter模块有关系吗?

EDIT编辑

macOS: 10.15.3 (Catalina) macOS:10.15.3(卡特琳娜)

Xcode version: 11.0 (11A420a) Xcode 版本:11.0 (11A420a)

Flutter version: Channel stable, 1.20.2 Flutter 版本:频道稳定,1.20.2

To archive an iOS app with Flutter module:要使用 Flutter 模块归档 iOS 应用程序:

  1. Run flutter build ios in your flutter module directory to create a release build.在 flutter 模块目录中运行flutter build ios以创建发布版本。
  2. Return to Xcode, then clean build folder (optional) and perform archive.返回 Xcode,然后清理构建文件夹(可选)并执行存档。

This part is not well-documented in Add-to-app section.这部分在 Add-to-app 部分没有详细记录。 For more detail, see create a build archive in official document.更多详细信息,请参见官方文档中 的create a build archive

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM