致命错误:找不到模块'flutter_web_auth'



在模拟器上运行项目时,一切似乎都很好。一旦我试图部署到一个实际的设备,我得到以下错误:

iOS版本-13.0

Xcode版本-11.3.1

Flutter版本-1.12.13+修补程序.8

Building AOT snapshot in release mode (ios-release)...
Building App.framework for arm64...
Building App.framework for armv7...
Building AOT snapshot in release mode (ios-release)...             30.5s
Built to build/aot/.
warning: parsing line table prologue at offset 0x6f697463 found unsupported
version 0x00
warning: line table parameters mismatch. Cannot emit.
note: while processing
/Users/<Username>/Documents/flutter_test_app/build/aot/armv7/snapsho
t_assembly.o
Project /Users/<Username>/Documents/flutter_test_app built and
packaged successfully.
/Users/<Username>/Documents/flutter_test_app/ios/Runner/GeneratedPlu
ginRegistrant.m:10:9: fatal error: module 'flutter_web_auth' not found
@import flutter_web_auth;
~~~~~~~^~~~~~~~~~~~~~~~
1 error generated.
/Users/<Username>/Documents/flutter_test_app/ios/Runner/GeneratedPlu
ginRegistrant.m:10:9: fatal error: module 'flutter_web_auth' not found
@import flutter_web_auth;
~~~~~~~^~~~~~~~~~~~~~~~
1 error generated.
note: Using new build system
note: Planning build
note: Constructing build description

无法为设备生成预编译的应用程序。

在iPhone上运行应用程序时出错。

确保您在pubspec.yaml 中添加了flutter-we-bauth依赖插件

dependencies:
flutter_web_auth: ^0.1.3

如果添加了它,但仍然不起作用,请确保pod安装工作正常,以添加插件。

最新更新