Describe the bug
Getting 'Firebase.h' file not found error while doing ios build
To Reproduce
Steps to reproduce the behavior:
Expected behavior
A clear and concise description of what you expected to happen.
Screenshots
If applicable, add screenshots to help explain your problem.

Console Logs
After running platform add ios
ionic cordova platform add ios@latest
> cordova platform add ios@latest
Using cordova-fetch for cordova-ios@latest
Adding ios project...
Creating Cordova project for the iOS platform:
Path: platforms/ios
Package: com.lh.eticket.anz
Name: eTicket
iOS project created with [email protected]
Installing "cordova-plugin-add-swift-support" for ios
Installing "cordova-plugin-android-permissions" for ios
Installing "cordova-plugin-androidx" for ios
Installing "cordova-plugin-androidx-adapter" for ios
Installing "cordova-plugin-app-version" for ios
Installing "cordova-plugin-badge" for ios
Installing "cordova-plugin-cartegraph-datepicker" for ios
Installing "cordova-plugin-cocoapod-supportx" for ios
Installing "cordova-plugin-compat" for ios
Installing "cordova-plugin-device" for ios
Installing "cordova-plugin-firebasex" for ios
Plugin dependency "[email protected]" already fetched, using that version.
Dependent plugin "cordova-plugin-cocoapod-supportx" already installed on ios.
Plugin dependency "[email protected]" already fetched, using that version.
Dependent plugin "cordova-plugin-androidx" already installed on ios.
Installing "cordova-plugin-geolocation" for ios
Installing "cordova-plugin-ionic-keyboard" for ios
Installing "cordova-plugin-local-notification" for ios
Plugin dependency "[email protected]" already fetched, using that version.
Dependent plugin "cordova-plugin-device" already installed on ios.
Plugin dependency "[email protected]" already fetched, using that version.
Dependent plugin "cordova-plugin-badge" already installed on ios.
Installing "cordova-plugin-nativegeocoder" for ios
Plugin dependency "[email protected]" already fetched, using that version.
Dependent plugin "cordova-plugin-add-swift-support" already installed on ios.
Installing "cordova-plugin-network-information" for ios
Installing "cordova-plugin-permission" for ios
Installing "cordova-plugin-request-location-accuracy" for ios
Installing "cordova-plugin-screen-orientation" for ios
Installing "cordova-plugin-splashscreen" for ios
Installing "cordova-plugin-uid" for ios
Installing "cordova-plugin-whitelist" for ios
Installing "cordova-sqlite-storage" for ios
installing external dependencies via npm
for package name: cordova-sqlite-storage
npm install of external dependencies ok
Installing "es6-promise-plugin" for ios
Installing "sentry-cordova" for ios
Searching for new pods
Checking cordova-plugin-add-swift-support for pods.
Checking cordova-plugin-android-permissions for pods.
Checking cordova-plugin-androidx for pods.
Checking cordova-plugin-androidx-adapter for pods.
Checking cordova-plugin-app-version for pods.
Checking cordova-plugin-badge for pods.
Checking cordova-plugin-cartegraph-datepicker for pods.
Checking cordova-plugin-compat for pods.
Checking cordova-plugin-device for pods.
Checking cordova-plugin-firebasex for pods.
cordova-plugin-firebasex requires pod: Firebase/Core
cordova-plugin-firebasex requires pod: Firebase/Auth
cordova-plugin-firebasex requires pod: Firebase/Messaging
cordova-plugin-firebasex requires pod: Firebase/Performance
cordova-plugin-firebasex requires pod: Firebase/RemoteConfig
cordova-plugin-firebasex requires pod: Fabric
cordova-plugin-firebasex requires pod: Crashlytics
Checking cordova-plugin-geolocation for pods.
Checking cordova-plugin-ionic-keyboard for pods.
Checking cordova-plugin-local-notification for pods.
Checking cordova-plugin-nativegeocoder for pods.
Checking cordova-plugin-network-information for pods.
Checking cordova-plugin-permission for pods.
Checking cordova-plugin-request-location-accuracy for pods.
Checking cordova-plugin-screen-orientation for pods.
Checking cordova-plugin-splashscreen for pods.
Checking cordova-plugin-uid for pods.
Checking cordova-plugin-whitelist for pods.
Checking cordova-sqlite-storage for pods.
Checking es6-promise-plugin for pods.
Checking sentry-cordova for pods.
Checking config.xml for pods.
Checking config.xml for plugin variables
Checking package.json for plugin variables
Installing pods
Sit back and relax this could take a while.
/System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib/ruby/2.3.0/universal-darwin18/rbconfig.rb:215: warning: Insecure world writable dir /Users/Tushar/Projects/sign_on_glass/node_modules/.bin in PATH, mode 040777
Analyzing dependencies
[!] Unable to satisfy the following requirements:
- `Firebase/Core (= 6.3.0)` required by `Podfile`
None of your spec sources contain a spec satisfying the dependency: `Firebase/Core (= 6.3.0)`.
You have either:
* out-of-date source repos which you can update with `pod repo update` or with `pod install --repo-update`.
* mistyped the name or version.
* not added the source repo that hosts the Podspec to your Podfile.
Note: as of CocoaPods 1.0, `pod repo update` does not happen on `pod install` by default.
Preparing Firebase on iOS
--save flag or autosave detected
Saving ios@latest into config.xml file ...
Sentry: running after_platform_add - set SENTRY_SKIP_WIZARD=true to skip this
***********************************************
Sentry - Warning
https://docs.sentry.io/clients/cordova/ionic/
***********************************************
You've run this command with the ionic prefix
either run it without 'ionic' or do run:
$ sentry-wizard
See: https://github.com/getsentry/sentry-wizard
***********************************************
***********************************************
Update IOS build setting SWIFT_OBJC_BRIDGING_HEADER to: "$(PROJECT_DIR)/$(PROJECT_NAME)/Bridging-Header.h" for build configuration Debug
Update IOS build setting SWIFT_OBJC_BRIDGING_HEADER to: "$(PROJECT_DIR)/$(PROJECT_NAME)/Bridging-Header.h" for build configuration Release
Importing NativeGeocoder-Bridging-Header.h into /Users/Tushar/Projects/sign_on_glass/platforms/ios/eTicket/Bridging-Header.h
Update IOS build setting ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES to: YES for build configuration Debug
Update IOS build setting LD_RUNPATH_SEARCH_PATHS to: @executable_path/Frameworks for build configuration Debug
Update SWIFT version to 4.0 Debug
Update IOS build setting SWIFT_OPTIMIZATION_LEVEL to: -Onone for build configuration Debug
Update IOS build setting ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES to: YES for build configuration Release
Update IOS build setting LD_RUNPATH_SEARCH_PATHS to: @executable_path/Frameworks for build configuration Release
Update SWIFT version to 4.0 Release
Plugin Version
Run cordova plugin list to find out what version of cordova-plugin-firebase you are running with
macbook-pro:ios Tushar$ cordova plugin list
cordova-plugin-add-swift-support 2.0.2 "AddSwiftSupport"
cordova-plugin-android-permissions 1.0.0 "Permissions"
cordova-plugin-androidx 1.0.2 "cordova-plugin-androidx"
cordova-plugin-androidx-adapter 1.0.2 "cordova-plugin-androidx-adapter"
cordova-plugin-app-version 0.1.9 "AppVersion"
cordova-plugin-badge 0.8.8 "Badge"
cordova-plugin-cartegraph-datepicker 0.9.2 "DatePicker"
cordova-plugin-cocoapod-supportx 1.7.3 "Cordova CocoaPods Dependency Support"
cordova-plugin-compat 1.2.0 "Compat"
cordova-plugin-device 2.0.2 "Device"
cordova-plugin-firebasex 3.0.8 "Google Firebase Plugin"
cordova-plugin-geolocation 4.0.1 "Geolocation"
cordova-plugin-ionic-keyboard 2.1.3 "cordova-plugin-ionic-keyboard"
cordova-plugin-local-notification 0.9.0-beta.3 "LocalNotification"
cordova-plugin-nativegeocoder 3.2.2 "NativeGeocoder"
cordova-plugin-network-information 2.0.1 "Network Information"
cordova-plugin-permission 0.1.0 "Permission"
cordova-plugin-request-location-accuracy 2.2.3 "Request Location Accuracy"
cordova-plugin-screen-orientation 3.0.1 "Screen Orientation"
cordova-plugin-splashscreen 5.0.2 "Splashscreen"
cordova-plugin-uid 1.3.1 "UID"
cordova-plugin-whitelist 1.3.3 "Whitelist"
cordova-sqlite-storage 3.2.0 "Cordova sqlite storage plugin - cordova-sqlite-storage plugin version"
es6-promise-plugin 4.2.2 "Promise"
sentry-cordova 0.15.0 "Sentry"
macbook-pro:ios Tushar$
Desktop (please complete the following information):
Smartphone (please complete the following information):
Additional context
Just an additional check , below is the PodFile
platform :ios, '9.0'
use_frameworks!
target 'eTicket' do
pod 'Firebase/Core', '6.3.0'
pod 'Firebase/Auth', '6.3.0'
pod 'Firebase/Messaging', '6.3.0'
pod 'Firebase/Performance', '6.3.0'
pod 'Firebase/RemoteConfig', '6.3.0'
pod 'Fabric', '1.10.2'
pod 'Crashlytics', '3.13.0'
end
None of your spec sources contain a spec satisfying the dependency:
Firebase/Core (= 6.3.0).
Run pod repo update as documented
Thanks @dpa99c , i've already done that, but the issue was i was opening project with.xcodeproj instead of .xcworkspace.
Hello, i try the sample project and it build well, but with mine it allways ask for Firebase.h. even if i open it with the xcworkspace. i update the plugin to 4.0.0 version and it's the same problem. have you an idea please ?
fix it by adding $(inherited) to Header Search Paths in Build Settings
Hi to all I'm using Xcode 10.3 and cordova and I tried all the steps listed here, but I still get the same error message.
Thanks for any suggestion.
I also am still getting this error. I'm not sure why it's been marked as closed. It's still an issue for a number of people
I am getting this error also.
I receive this error too.
Please help us
I just solved my problem : 'firebase.h' not found.
I did a lot of things and I do not know which one worked ... but it worked!
1 / open Terminal> direct to your project> run: pod deintegrate
2 / open xcode with the .xcworkspace, choose the target> go to Build Settings> click "+" sign and add:
and it works (for me)!
I think adding workspace 'yourWorkspaceName' in the Podfile file has solved this problem because, according to the document, this allows to add cocoapods to an existing project
Opening the workspace instead of the proj file worked for me
Same error here! :(
+1
Hello !
Verify your "pods-debug.xcconfig" and "pods-release.xcconfig" files. for me, the automatic generation of these files did not register the right paths. check that it looks like something like this:
pods-debug.xcconfig:
// DO NOT MODIFY -- auto-generated by Apache Cordova
#include "Pods/Target Support Files/Pods-MyProjectName/Pods-MyProjectName.debug.xcconfig"
pods-release.xcconfig :
// DO NOT MODIFY -- auto-generated by Apache Cordova
#include "Pods/Target Support Files/Pods-MyProjectName/Pods-MyProjectName.release.xcconfig"
cordova>=9.0.0 very necessary, in my case.
Most helpful comment
fix it by adding $(inherited) to Header Search Paths in Build Settings