【问题标题】:fatal error: module 'flutter_web_auth' not found致命错误:找不到模块“flutter_web_auth”
【发布时间】:2020-06-22 14:22:57
【问题描述】:

在模拟器上运行项目时,一切似乎都正常。一旦我尝试部署到实际设备,我会收到以下错误:

iOS 版本 - 13.0

Xcode 版本 - 11.3.1

Flutter 版本 - 1.12.13+hotfix.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 上运行应用程序时出错。

【问题讨论】:

    标签: flutter


    【解决方案1】:

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

    dependencies:
      flutter_web_auth: ^0.1.3
    

    如果添加后仍然无法正常工作,请确保 pod install 可以正常添加插件。

    【讨论】:

    • 如何确保 pod install 正常工作?抱歉,这是我第一次使用颤振。
    • 这取决于你的环境开发。你是用命令行还是IDE编译运行?
    猜你喜欢
    • 2020-05-11
    • 2021-01-08
    • 2022-01-16
    • 2021-09-07
    • 2021-05-24
    • 2021-06-15
    • 2020-04-22
    • 2016-10-14
    • 2021-06-03
    相关资源
    最近更新 更多