# Ionic 4 xcode firebase.h not found

**URL:** <https://forum.ionicframework.com/t/ionic-4-xcode-firebase-h-not-found/176404>\
**Category:** Ionic Native\
**Created:** [October 27, 2019, 10:51pm UTC](https://forum.ionicframework.com/t/ionic-4-xcode-firebase-h-not-found/176404 "2019-10-27T22:51:18Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![sehsah2020](https://avatars.discourse-cdn.com/v4/letter/s/7ea924/32.png) [@sehsah2020](https://forum.ionicframework.com/u/sehsah2020)\
**Post date:** [October 27, 2019, 10:51pm UTC](https://forum.ionicframework.com/t/ionic-4-xcode-firebase-h-not-found/176404/1 "2019-10-27T22:51:18Z")

</div>

hi,  
when i run ionic 4 project show error

![Screenshot_3](https://global.discourse-cdn.com/ionicframework/original/3X/7/3/7345faf4f33a0b6bf20cba70dac8e5b2df6fb6c0.jpeg)

---

<div class="post-metadata">

**Author:** ![obinnae](https://avatars.discourse-cdn.com/v4/letter/o/a183cd/32.png) [@obinnae](https://forum.ionicframework.com/u/obinnae)\
**Post date:** [December 5, 2019, 3:39am UTC](https://forum.ionicframework.com/t/ionic-4-xcode-firebase-h-not-found/176404/2 "2019-12-05T03:39:46Z")

</div>

IN case you haven’t fixed it, try this solution [https://stackoverflow.com/questions/57218066/build-failed-xcode-10-cordova-firebase-project](https://stackoverflow.com/questions/57218066/build-failed-xcode-10-cordova-firebase-project)

---

<div class="post-metadata">

**Author:** ![michalby](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/michalby/32/131897_2.png) [@michalby](https://forum.ionicframework.com/u/michalby)\
**Post date:** [April 21, 2020, 7:46am UTC](https://forum.ionicframework.com/t/ionic-4-xcode-firebase-h-not-found/176404/3 "2020-04-21T07:46:21Z")

</div>

It took me some serious time to figure this out.

# Error: ‘firebase.h’ file not found

And also these errors if you encounter them:

- The sandbox is not in sync with the Podfile.lock…
- ‘Cordova/CDV.h’ file not found

## WHAT TO DO

1. Add “pod ‘Firebase/Messaging’” into `platforms/ios/Podfile`:

2. Run `pod install`:

3. In XCode, select TARGET. In the select box select PROJECT. Then select the Info tab. In there, change Configurations to this:

Debug -\> Your Project Name -\> build  
Debug -\> Your Project Name -\> build -\> None  
Release -\> Your Project Name -\> build  
Release -\> Your Project Name -\> build -\> None

Notice, one should be “build” and the other one (the one below) should be “None”.

## WHY TO DO THAT (got this from the Internet somewhere…)

After changing target name

My problem was xcconfig with old target names.

- Went to project file -\> info -\> configuration
- Removed old xcconfig (both Debug & Release)
- pod install  
It would update to new ones.

Also if you had missing .h files that’s the reason (pods header search path is in these xcconfig)

Choosing None worked for me as well. I was struggling with this for a day trying to integrate the Gimbal2 SDK into an Ionic4 project.

---

<div class="post-metadata">

**Author:** ![harveyelsisura](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/harveyelsisura/32/137874_2.png) [@harveyelsisura](https://forum.ionicframework.com/u/harveyelsisura)\
**Post date:** [May 4, 2020, 4:54pm UTC](https://forum.ionicframework.com/t/ionic-4-xcode-firebase-h-not-found/176404/4 "2020-05-04T16:54:57Z")

</div>

Hello @michalby Did you find any solution? I was struggling for a few days also. I cant build ios. It seems we both didn’t find a working solution for this.

---

<div class="post-metadata">

**Author:** ![michalby](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/michalby/32/131897_2.png) [@michalby](https://forum.ionicframework.com/u/michalby)\
**Post date:** [May 4, 2020, 5:17pm UTC](https://forum.ionicframework.com/t/ionic-4-xcode-firebase-h-not-found/176404/5 "2020-05-04T17:17:57Z")

</div>

@harveyelsisura Try the steps I mentioned above. It did work for me.

If it does not work for you, try to update Cordova cli. It solved some other error for me as well.

Good luck.

---

<div class="post-metadata">

**Author:** ![amroa](https://avatars.discourse-cdn.com/v4/letter/a/c89c15/32.png) [@amroa](https://forum.ionicframework.com/u/amroa)\
**Post date:** [January 13, 2021, 2:42am UTC](https://forum.ionicframework.com/t/ionic-4-xcode-firebase-h-not-found/176404/6 "2021-01-13T02:42:09Z")

</div>

Hello,  
I’m using ionic 5 and I’m getting the same error when adding capacitor firebase-crashlytics [https://ionicframework.com/docs/native/firebase-crashlytics](https://ionicframework.com/docs/native/firebase-crashlytics) .

 ![Screen Shot 2021-01-12 at 9.41.02 PM](https://global.discourse-cdn.com/ionicframework/original/3X/e/2/e29b0cfa6628189f145d03ec863375f00a47891e.png)

I tried all suggestions but nothing worked.

---

<div class="post-metadata">

**Author:** ![monikav00](https://avatars.discourse-cdn.com/v4/letter/m/3da27b/32.png) [@monikav00](https://forum.ionicframework.com/u/monikav00)\
**Post date:** [March 28, 2022, 2:54pm UTC](https://forum.ionicframework.com/t/ionic-4-xcode-firebase-h-not-found/176404/7 "2022-03-28T14:54:10Z")

</div>

hi,  
I am also facing the same issue with capacitor 3 and ionic 5. Have u got any luck on this issue ?

---

<div class="post-metadata">

**Author:** ![mhartington](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/mhartington/32/137757_2.png) [@mhartington](https://forum.ionicframework.com/u/mhartington)\
**Post date:** [March 28, 2022, 3:11pm UTC](https://forum.ionicframework.com/t/ionic-4-xcode-firebase-h-not-found/176404/8 "2022-03-28T15:11:20Z")

</div>



---

<div class="post-metadata">

**Author:** ![mhartington](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/mhartington/32/137757_2.png) [@mhartington](https://forum.ionicframework.com/u/mhartington)\
**Post date:** [March 28, 2022, 3:11pm UTC](https://forum.ionicframework.com/t/ionic-4-xcode-firebase-h-not-found/176404/9 "2022-03-28T15:11:45Z")

</div>

Closing this now since it’s a relatively old post. Please open a new topic if you are still facing this issue
