Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Firebase.h file not found with CocoaPods

I am trying to add Firebase into my project. I just added below pods into my Xcode project.

  pod 'Firebase'
  pod 'Firebase/Core'
  pod 'Firebase/Messaging'
  pod 'Firebase/Database'
  pod 'Firebase/Auth'

After installing podfile, I try to import firebase into my project. But it gives me an error that Firebase.h is not found.

na

Above issue will occur when I uncheck the Run script only when installing from [CP] Check pods Manifest.lock. After that I will installed pod using pod install. And then issue will occur.

Error which I got after uncheck the checkbox:

error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.
like image 997
Nirmalsinh Rathod Avatar asked May 04 '19 12:05

Nirmalsinh Rathod


1 Answers

I had the same issues on my project,

I wrote manually link the project and its libraries to solve the problem I followed this link steps it worked https://github.com/invertase/react-native-firebase-docs/blob/master/docs/installation/ios.md

Also, you must check you link binary with libraries on your Xcode project.

Another solution you can delete all pod depend on libs then you pod init add manual pod libs after pod install

like image 115
errorau Avatar answered Sep 20 '22 15:09

errorau