6

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.
5
  • Can not reproduce, try upload a sample project. Commented May 4, 2019 at 13:40
  • Sorry, I am not able to upload the whole project l Commented May 4, 2019 at 13:41
  • Build the project. Commented May 4, 2019 at 13:45
  • @PaulBeusterien same issue dude Commented May 5, 2019 at 3:37
  • Please check stackoverflow.com/questions/55982440/… Commented Feb 4, 2023 at 7:40

2 Answers 2

3

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

Sign up to request clarification or add additional context in comments.

2 Comments

I updated any question and put steps through which error will occur.
Please delete lock file and again pod insall
0

Deintegrate pod then reinstall it.

Deintegrate:- pod deintegrate

install:- pod install

This works for me.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.