使用 Flutter 2.0 / Dart 12 在 flutter_openvpn 中构建 win32 插件错误

问题描述

我在为 iOS 构建应用程序时收到此错误Command PhaseScriptExecution Failed with a nonzero exit code

Screenshot of the build error in Xcode

解决方法

此错误是由旧版本的 win32 包引起的,该包以 Dart 2.12 发布时禁止的方式使用 Dart FFI。

要解决此问题,请更新 win32 软件包。如果包是可传递依赖项,则可以使用 dependency_overrides