Module 'flutter_local_notifications' not found in Xcode

Viewed 899

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. It is working perfectly fine on android. But it is throwing an error on Xcode saying "Module flutter_local_notifications is not found". 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.
1 Answers

Make your iOS version in pod file same as Xcode deployment info in Xcode refer to below images

Xcode deployment info

enter image description here

PodFile

enter image description here

Related