Remove Firebase dependencies on iOS in React Native 0.61 - firebase

I have read a lot of articles similar my title. But they are not working for me.
I am working on React Native iOS project and need to delete firebase dependencies from iOS project.
So I have removed firebase core import line in ios/Podfile and then pod clean and pod install. But it is not working for me.
Firebase is installed so on. Please help me with correct solution.

Remove the line from the Podfile
pod deintegrate
pod install

Go through with these steps:
1.Remove the line pod/firebase from your pod file
2.run command npm uninstall react-native-firebase in your project root folder
3.Run pod install in ios folder.

Related

CocoaPods could not find compatible versions for pod "GTMSessionFetcher/Core"

I am making a React-Native mobile application and want to incorporate Firebase and Firebase Authentication. However, I am facing this error when I run 'pod install' or 'pod update':
I did some research and found out that this issue has not yet been resolved by Google (https://issuetracker.google.com/issues/254418199), but I came across a workaround (https://github.com/firebase/firebase-ios-sdk/issues/10359) which said to add a version specifier to the Podfile: pod 'FirebaseAuth', '>= 9.6.0'. However, even after I added the line into the Podfile in my iOS folder, the same error still persists. May I know if I'm doing something wrongly?
I stumbled upon the same issue. It seems it's a compatibility issue with the latest Firesbase SDK version (10).
For now something that worked for me is to place this at the top of the Podfile:
$FirebaseSDKVersion = '9.6.0' (Docs)
This overrides the default firebase sdk and assures it uses the downgraded version.
Now just execute pod install and give a try. If it doesn't work try removing the Podfile.lock and the Pods folder and try again.
BTW I didn't need this line in the Podfile as one of the resources you shared mentioned:
pod 'FirebaseAuth', '>= 9.6.0'
What helped me is to add this into my pod file.
pod 'GTMSessionFetcher', :modular_headers => true
and then run
arch -x86_64 pod update GTMSessionFetcher/Core
Unfortunately, while Alex's answer did help with my original error, I was unable to solve the 2nd error in my comment above. What I did instead was to restart the creation of the app. This time, however, rather than connecting the app to Dialogflow first, I linked the app to Firebase Auth first, and then adding Dialogflow. This worked for me and I managed to build the app with no issues. Hope this helps someone.
try to delete Podfile.lock and run cd ios && pod install --repo-update

I am getting Error during connecting firebase with react native ios

At first i did npm install --save #react-native-firebase/app then cd ios and then pod install and get error like that..
[!] The following Swift pods cannot yet be integrated as static libraries:
The Swift pod FirebaseCoreInternal depends upon GoogleUtilities, which does not define modules. To opt into those targets generating module maps (which is necessary to import them from Swift when building as static libraries), you may set use_modular_headers! globally in your Podfile, or specify :modular_headers => true for particular dependencies.
then i use my pod file use_modular_headers! globally...then pod install done ,but when i ran the project from xcode it gives me the Error..."glog.glog.log_severity' appears within namespace 'google" please help i dont know xcode and can't solve the issue ...please help ...thanks advance
I just initialized a bare react native project yesterday and ran into this exact same problem when setting up Firebase. I can't remember the exact sequence of steps I took to fix it, but my current Podfile doesn't include use_modular_headers!. Instead, I used "use_frameworks!" globally in my Podfile, and commented out the use_flipper!() at the bottom as recommended in the comments. If you get the same initial error about static libraries, try switching the environment you're running from. I.E. if you've been trying from terminal by "npx react-native run..." use Xcode to compile the build, and vice versa. Hopefully that works, it did for me!

Firebase modular (v9) incompatible with Expo

I'm using Expo v42.0.1 and trying to install Firebase v9.0.2 and am unable to do so.
Issue
From running expo install firebase, firebase version 8.2.3 is installed. When changing the package.json to use firebase version 9.0.2, I get an error when running the app:
"firebase" is added as a dependency in your project's package.json but it doesn't seem to be installed. Please run "yarn" or "npm install" to fix this issue.
What I've tried
Running yarn / npm install
Running expo install firebase#9.0.2 (which ends up just downloading 8.2.3)
Has anyone seen this before or know why it is happening? I believe it is because Expo v42 is not yet compatible with the modular version of firebase (v9).
You are correct.
Has anyone seen this before or know why it is happening? I believe it is because Expo v42 is not yet compatible with the modular version of firebase (v9).
But you can make it work with using it like this in you package.json:
"#firebase": "^9.0.2",
Discussion about this: "firebase" is added as a dependency in your project's package.json but it doesn't seem to be installed
I have used this solution in 2 projects. 1 works perfectly but in another I faced issued where version firebase#9.0.0-beta.7 works perfectly but in version firebase#9.0.2 everything but Firestore works
More about it here: Expo + firebase#9.0.1/9.0.0: #firebase/firestore:, Firestore (9.0.0): Could not reach Cloud Firestore backend

Module 'cloud_firestore' not found

I am coding an app that is made on Flutter. I use Firebase Firestore as a database. I added cloud_firestore as a dependency in pubspec.yaml. When I build the apk for android it works perfectly fine, but in Xcode when I'm trying to build the app for iOS I have an error ( attached image ) 'Module cloud_firestore' not found, all the other dependencies are working. I've tried everything: pod install, pod update, remove Podfile, remove Podfile.lock, I even created a blank app and added cloud_firestore as dependency and it still happens.
inxcode, clean build folder.
In terminal, flutter clean
flutter pub get in terminal.
Don't touch the pods, build your file.

XCode 12 : 'FirebaseCore/FirebaseCore.h' file not found and Could not build Objective-C module 'Firebase'

My iOS project is working fine in Xcode 11.2.1.
When I'm trying to run it with Xcode 12.4 then I'm not able to run it.
I installed Firebase through cocoapods and below is the Podfile content.
pod 'Firebase'
pod 'FirebaseAnalytics'
pod 'FirebaseDynamicLinks'
pod 'Firebase/RemoteConfig'
pod 'Firebase/Crashlytics'
I tried the steps according to some suggestion -
Quit Xcode.
2. Delete project's temp files located at ~/Library/Developer/Xcode/DerivedData
3. Delete ProjectName.xcworkspace
4. Delete Podfile.lock file and Pods folder
5. Run pod install.
6. Open the newly created ProjectName.xcworkspace file and build.
But it is not working for me.
Please give Some suggestion on that.
Thanks

Resources