简体   繁体   English

在 Xcode 中找不到模块“flutter_local_notifications”

[英]Module 'flutter_local_notifications' not found in Xcode

In my app I am using flutter local notifications to push the notifications locally and the version of the package is: flutter_local_notifications: ^1.4.4+4<\/code> .在我的应用程序中,我使用颤振本地通知在本地推送通知,包的版本是: flutter_local_notifications: ^1.4.4+4<\/code> 。 It is working perfectly fine on android.它在android上运行得很好。 But it is throwing an error on Xcode saying "Module flutter_local_notifications is not found".但是它在 Xcode 上抛出一个错误,说“找不到模块 flutter_local_notifications”。 Not sure what is causing this issue any help is appreciated.不知道是什么导致了这个问题,任何帮助表示赞赏。

This is my error:这是我的错误:

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.

Make your iOS version in pod file same as Xcode deployment info in Xcode refer to below images使您的 pod 文件中的 iOS 版本与 Xcode 中的 Xcode 部署信息相同,请参阅下图

Xcode deployment info Xcode 部署信息

在此处输入图像描述

PodFile播客文件

在此处输入图像描述

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM