Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Redefinition of module 'Firebase' in Swift 3

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?

like image 282
Vijay Pal Avatar asked May 29 '17 05:05

Vijay Pal


1 Answers

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.

like image 124
Chrstpsln Avatar answered Sep 19 '22 01:09

Chrstpsln