【问题标题】:Error Module 'flutter_secure_storage' not found when try Product ->Build for -> Profiling尝试产品 -> 构建 -> 分析时未找到错误模块 \'flutter_secure_storage\'
【发布时间】:2022-11-08 04:00:57
【问题描述】:

当我尝试将我的应用程序投入生产时,这个错误发生在我身上。 该应用程序是用颤振创建的,我能够为 android 创建 apk,但是当我尝试为 ios 做它时,它不会让我这样做。 我要打开的文件是 Runner.xcworkspace,问题是导入了颤振库,在我看来,我必须与 Pod 建立某种联系。

here is the error, I want to tell you that I do not want to run the app, but to make an installer

构建版本(即flutter build ipa)而不是运行调试构建时发生的错误是:

 /[REDACTED]/ios/Runner/GeneratedPluginRegistrant.m:48:9: fatal error: module
    'flutter_secure_storage' not found
    @import flutter_secure_storage;
     ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~
    1 error generated.
    note: Using new build system

【问题讨论】:

    标签: swift xcode flutter product release


    【解决方案1】:

    对我来说,通过以下方式重新生成 Podfile 解决了这个问题:

    rm ios/Podfile && flutter build ios
    

    Closed [ios][release] GeneratedPluginRegistrant.m Module not found #43986

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2022-07-11
      • 2022-01-05
      • 2019-01-14
      • 2022-10-21
      • 1970-01-01
      • 2020-01-21
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多