【问题标题】:Module 'flutter_local_notifications' not found in Xcode在 Xcode 中找不到模块“flutter_local_notifications”
【发布时间】:2020-11-16 19:24:46
【问题描述】:

在我的应用程序中,我使用颤振本地通知在本地推送通知,包的版本是:flutter_local_notifications: ^1.4.4+4。它在android上运行得很好。但它在 Xcode 上抛出一个错误,说“找不到模块 flutter_local_notifications”。不知道是什么导致了这个问题,感谢任何帮助。

这是我的错误:

fatal error: module 'flutter_local_notifications' not found
    @import flutter_local_notifications;
     ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~
    1 error generated.
    note: Using new build system
    note: Building targets in parallel
    note: Planning build
    note: Constructing build description

Could not build the application for the simulator.
Error launching application on iPhone 11 Pro Max.

【问题讨论】:

  • 能否指定Xcode版本和COCOAPODS版本?
  • CocoaPods:1.10.0 和 Xcode:12.2 版
  • 你在 Xcode 中打开 ios 模块并尝试构建它吗?
  • 是的,runner.xcworkspace
  • 也可以指定Flutter版本吗?

标签: ios xcode flutter


【解决方案1】:

使您的 pod 文件中的 iOS 版本与 Xcode 中的 Xcode 部署信息相同,请参阅下图

Xcode 部署信息

PodFile

【讨论】:

    猜你喜欢
    • 2020-09-09
    • 2020-09-29
    • 2023-03-04
    • 2020-12-16
    • 1970-01-01
    • 1970-01-01
    • 2022-01-16
    • 1970-01-01
    • 2021-08-09
    相关资源
    最近更新 更多