Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Use of unresolved identifier 'Messaging', 'MessagingDelegate', 'MessagingRemoteMessage'

Yesterday I cleared the Derived data folder enitrely and started facing this error.

I tried :

  1. Clearing Derived Data and Clean and rebuild
  2. Deleting all pods using pod deintegrate and reinstall using pod install
  3. Deleting the Podfile.lock file
  4. Run pod update to update the pods

My podfile contains these Firebase pods:

  pod 'Firebase/Core'
  pod 'Firebase/Messaging'
  pod 'Firebase/Firestore'
  pod 'Firebase/Database' 

But the error still remains. Anyone faced this error lately.

enter image description here

like image 927
user121095 Avatar asked Dec 18 '22 13:12

user121095


1 Answers

Simply explicitly import 'FirebaseMessaging' in your project, I had to call it explicitly to make it work.

import FirebaseMessaging
like image 198
Abdul Karim Khan Avatar answered May 10 '23 15:05

Abdul Karim Khan