当我尝试减少我的 flutter 应用程序的部署目标(iOS 12 到 9.3)时,我在运行 flutter build ios 时收到此错误:

=== BUILD TARGET Runner OF PROJECT Runner WITH CONFIGURATION Release ===
    fatal error: lipo: -extract armv7 specified but fat file:
    /Users/xxx/development/myapp/build/ios/Release-iphoneos/Runner.app/Frameworks/flutter_webview_plugin.framework/flutter_webview_plugin does not contain that architecture
    Failed to extract armv7 for /Users/xxx/development/myapp/build/ios/Release-iphoneos/Runner.app/Frameworks/flutter_webview_plugin.framework/flutter_webview_plugin. Running
    lipo -info:
    Architectures in the fat file: /Users/xxx/development/myapp/build/ios/Release-iphoneos/Runner.app/Frameworks/flutter_webview_plugin.framework/flutter_webview_plugin are:
    arm64


我找不到有关如何更改相关架构的任何信息 - 我什至可以这样做吗?或者这是插件开发人员必须内置的东西?

我希望能够以尽可能低的 iOS 版本运行应用程序,以获得最大的兼容性。

最佳答案

在项目build设置中,有一个名为 Architectures 的部分,您可以在那里设置您需要的。据我所知,最新的iPhone需要使用arm64,但是在我的图片中您可以看到我也设置为有效的armv7,这似乎是您的问题。

ios - 如何将 flutter 插件架构从 arm64 切换到 armv7-LMLPHP

关于ios - 如何将 flutter 插件架构从 arm64 切换到 armv7,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/56330184/

10-11 21:44