Earlier, I had tried to integrate firebase in Xcode project manually but couldn't add it successfully. So Now I tried integrating firebase with cocoa pod but it resulted in build fail.
There are two pods which I have installed
Firebase/core
Firebase/messaging.
I have deleted old firebase.h file which was added in the process manually linking firebase to project.
I clean & build but still this Redifinition error is comming.
Any help?
Look in your project at the "Header Search Path" parameter, check if your project includes the "Firebase" directory (directly or by recursion).
In my case, my problem was that I had kept both old versions of Firebase (4.3.0 and 4.5.0) in this directory, so both versions were taken into account by Xcode.
This causes the error "Redefinition of module 'Firebase'".
If you are in the same situation, the solution is to delete the oldest version of Firebase.
And voilà :)
I hope this will help you.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With