hi,
when i run ionic 4 project show error
IN case you havenāt fixed it, try this solution https://stackoverflow.com/questions/57218066/build-failed-xcode-10-cordova-firebase-project
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
-
Add āpod āFirebase/Messagingāā into
platforms/ios/Podfile
:platform :ios, ā10.0ā
target āHire Rubyā do
project āHire Ruby.xcodeprojā
pod āFirebase/Messagingā
end -
Run
pod install
:cd platforms/ios
pod install -
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.
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.
@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.
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 .
I tried all suggestions but nothing worked.
hi,
I am also facing the same issue with capacitor 3 and ionic 5. Have u got any luck on this issue ?
Closing this now since itās a relatively old post. Please open a new topic if you are still facing this issue