代码之家  ›  专栏  ›  技术社区  ›  Johan

当我在pubspec中看到“module flatter_native_splash”时,获取它时未发现错误?

  •  0
  • Johan  · 技术社区  · 2 年前

    正在获取 'module flutter_native_splash' not found error 当我试图构建和运行代码时,在Xcode中,而我在pubspec文件中看到了它。我已经安装了它,再次创建了它,我看到了资产,但当我试图在Xcode中构建它时,我得到了“Module”flaft_native_splash“not found”错误。

    有人知道为什么吗?使用最新的dep版本(pubspec.yaml中的flaft_native_ssplash:^2.3.8)。我从2.1.6版本升级。它是正确的缩进,没有什么疯狂的,在Flutter升级之前,一切都正常。

    设备:iPhone 15模拟器 操作系统:M2 Pro上的最新MacOS

    1. 在Xcode中构建应用程序获取错误“模块”flaft_native_splash“, 防止其在Runner>生成插件注册人。请注意,它还更改/删除了我设置的徽标 先前
    1 回复  |  直到 2 年前
        1
  •  1
  •   pixel    2 年前

    我遇到了同样的问题,以下步骤解决了它:

    flutter clean

    flutter pub cache repair

    flutter pub get

    cd ios 和 pod install

    希望它对你也有用。