Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

FirebaseMessaging module not found

When ever I write @import FirebaseMessaging; is says -

Module 'FirebaseMessaging' not found

What I did - I install the pods with only Firebase/Core, but after that I realised Firebase/Messaging is also necessary to enable push notifications.

Sample Image

Then I wrote pod 'Firebase/Messaging' in the pod file and install the pods again.

The pod folder contains the folder as Firebase Messaging, but when I import it it says no module found.

like image 359
Mukie Avatar asked Dec 14 '22 15:12

Mukie


2 Answers

You dont need to import FirebaseMessaging

Just add @import Firebase and you will get access to FIRMessaging

like image 124
Piotr Golinski Avatar answered Dec 30 '22 11:12

Piotr Golinski


I had this issue and I could solve it this way:

if you have a framework that has Firebase/Messaging as it's dependency, and if you have set your framework's build settings to:

Build Active Architecture only
    Debug    No
    Release  No

you will get FirebaseMessaging module not found error. just try to make it like this:

Build Active Architecture only
    Debug    Yes
    Release  No
like image 39
Jafar Khoshtabiat Avatar answered Dec 30 '22 12:12

Jafar Khoshtabiat