'RCTDevLoadingViewProtocol.h' file not found after adding firebase crashlytics - firebase

My problem started when I wanted to add the module #react-native-firebase/crashlytics. I had errors when I tried to add the module, so I hat to execute the following commands
rm -rf ios/Podfile.lock
pod install --repo-update
and I had to add the following line to the pod file
use_frameworks! :linkage => :static
and changed ios 12.1 to:
platform :ios, '13.0'
With this changes I was able to add crashlytics to the projects, but the app is not running anymore, I get a build error in xCode
RCTDevLoadingViewProtocol.h' file not found

I fixed the problem by removing use_frameworks from the Podfile and using older version of firebasemodule
#react-native-firebase/app": "14.12.0",
"#react-native-firebase/auth": "14.12.0",
"#react-native-firebase/database": "14.12.0",
"#react-native-firebase/dynamic-links": "14.12.0",
"#react-native-firebase/firestore": "14.12.0",
"#react-native-firebase/messaging": "14.12.0",
"#react-native-firebase/storage": "14.12.0",
"#react-native-firebase/crashlytics": "14.12.0",
"#react-native-firebase/in-app-messaging": "14.12.0",
"#react-native-firebase/analytics": "14.12.0",

Related

firestore unavailable The service is currently unavailable

[Error: [firestore/unavailable] The service is currently unavailable. This is a most likely a transient condition and may be corrected by retrying with a backoff.]
I encountered this sudden error with the same code which worked fine yesterday
This error occurred when I tried to get data from firebase firestore
using these versions
"#react-native-firebase/app": "^14.7.0",
"#react-native-firebase/auth": "^14.7.0",
"#react-native-firebase/database": "^14.7.0",
"#react-native-firebase/firestore": "^14.7.0",
"#react-native-firebase/messaging": "^14.7.0",
"#react-native-firebase/storage": "^14.7.0",
"react": "18.0.0",
"react-native": "0.68.0",
The problem is with Android Emulator v 31.3.10
Turning off wifi in the emulator and turning on its data connection
works for me. Check these for further details.
Firebase doesn't work on Android Studio Emulator
I fixed permanently by following these steps.
Its issue with emulator version.
https://github.com/firebase/flutterfire/issues/9607#issuecomment-1263065653

Unable to install firebase in expo

I using expo 3.27.10 and node v12.18.4 below is package info I tried to install firebase using expo and npm both fails then how I initialize firebase config file
firebase.initializeApp(firebaseConfig);
firebase.analytics();
and package.json is
"dependencies": {
"#react-native-community/masked-view": "0.1.10",
"#react-native-firebase/analytics": "^7.6.4",
"#react-native-firebase/app": "^8.4.3",
"#react-native-firebase/auth": "^9.2.3",
"#react-navigation/native": "^5.7.4",
"#react-navigation/stack": "^5.9.1",
"expo": "~39.0.2",
"expo-status-bar": "~1.0.2",
"react": "16.13.1",
"react-dom": "16.13.1",
"react-native": "https://github.com/expo/react-native/archive/sdk-39.0.2.tar.gz",
"react-native-gesture-handler": "~1.7.0",
"react-native-reanimated": "~1.13.0",
"react-native-safe-area-context": "3.1.4",
"react-native-screens": "~2.10.1",
"react-native-web": "~0.13.12",
"firebase": "7.9.0"
},
For me I have to change node version current 14.13 to LTS 12.18 and this allows me to install firebase
If: expo install firebase
isn't work for you and you got an Error,
That maybe you are having an old npm version uou need to update your npm
npm update
Or you got error for installation that because FIREBASE made update so to fix it use
yarn add firebase
see more: https://www.npmjs.com/package/firebase
I had a similar issue. What I did:
- remove firebase from the package.json.
- npm update
- npm install
- npm install --save firebase
afterwards had to change import * as firebase from 'firebase' to
import firebase from 'firebase'
if(firebase.apps.length === 0){
firebase.initializeApp(firebaseConfig)
}
p.s: working with VSCode, node v14.15.1, firebase 8.2.7
Downloading 2019 visual studio tools solved the error for me. You can scroll down and download only 2019 tools if you don't Want Visual Studio.
Click the link to download here

React Native unable to pod install Firebase Crashlytics

During the Invertase Firebase Crashlytics setup (https://rnfirebase.io/crashlytics/ios-setup) , I continuously get the the following error:
CocoaPods could not find compatible versions for pod "Firebase/Crashlytics"
Or other variant relating to Firebase/Core or Firebase/CoreOnly
Podfile
pod 'Firebase/Core'
pod 'Firebase/CoreOnly'
pod 'Firebase/Analytics'
pod 'Firebase/Crashlytics'
Even if I try to set each package to a specific version with ~> 6.x.x
related node modules
"#react-native-firebase/app": "^6.7.1",
"#react-native-firebase/crashlytics": "^6.7.1",
"#react-navigation/native": "^5.1.6",
react-native-firebase supports lib auto-link, which means you don't need to add
Firebase pods in Podfile manually
duan response worked for me, at least i have no errors
also, i linked this manually:
react-native link #react-native-firebase/crashlytics

How to fix Firebase Analytics Plugin install error

I am trying to install firebase analytics plugin in my ionic project using
sudo ionic cordova plugin add cordova-plugin-firebase-analytics
But i get this as my error and the plugin isnt installed. I have tried pod install and pod update but it still gives the same error
> cordova plugin add cordova-plugin-firebase-analytics
Installing "cordova-plugin-firebase-analytics" for ios
Failed to install 'cordova-plugin-firebase-analytics': undefined
CordovaError: Promise rejected with non-error: '/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/villifixinc/Documents/TravelApp in PATH, mode 040777\n/Library/Ruby/Gems/2.3.0/gems/claide-1.0.3/lib/claide/command.rb:439:in `help!\': \u001b[31m[!] You cannot run CocoaPods as root.\u001b[39m (CLAide::Help)\n\n\u001b[4mUsage:\u001b[24m\n\n $ \u001b[32mpod\u001b[39m \u001b[32mCOMMAND\u001b[39m\n\n CocoaPods, the Cocoa library package manager.\n\n\u001b[4mCommands:\u001b[24m\n\n \u001b[32m+ cache\u001b[39m Manipulate the CocoaPods cache\n \u001b[32m+ env\u001b[39m Display pod environment\n \u001b[32m+ init\u001b[39m Generate a Podfile for the current directory\n \u001b[32m+ install\u001b[39m Install project dependencies according to versions from a\n Podfile.lock\n \u001b[32m+ ipc\u001b[39m Inter-process communication\n \u001b[32m+ lib\u001b[39m Develop pods\n \u001b[32m+ list\u001b[39m List pods\n \u001b[32m+ outdated\u001b[39m Show outdated project dependencies\n \u001b[32m+ repo\u001b[39m Manage spec-repositories\n \u001b[32m+ setup\u001b[39m Setup the CocoaPods environment\n \u001b[32m+ spec\u001b[39m Manage pod specs\n \u001b[32m+ update\u001b[39m Update outdated project dependencies and create new Podfile.lock\n\n\u001b[4mOptions:\u001b[24m\n\n \u001b[34m--silent\u001b[39m Show nothing\n \u001b[34m--version\u001b[39m Show the version of the tool\n \u001b[34m--verbose\u001b[39m Show more debugging information\n \u001b[34m--no-ansi\u001b[39m Show output without ANSI codes\n \u001b[34m--help\u001b[39m Show help banner of specified command\n\tfrom /Library/Ruby/Gems/2.3.0/gems/cocoapods-1.8.4/lib/cocoapods/command.rb:47:in `run\'\n\tfrom /Library/Ruby/Gems/2.3.0/gems/cocoapods-1.8.4/bin/pod:55:in `<top (required)>\'\n\tfrom /usr/local/bin/pod:22:in `load\'\n\tfrom /usr/local/bin/pod:22:in `<main>\'\n'
at cli.catch.err (/usr/local/lib/node_modules/cordova/bin/cordova:29:15)
at process._tickCallback (internal/process/next_tick.js:68:7)
[ERROR] An error occurred while running subprocess cordova.
cordova plugin add cordova-plugin-firebase-analytics exited with exit
code 1.
Re-running this command with the --verbose flag may provide more
information.
try installing the older version of the plugin. version 2.0.3 should fix your problem.

react-native link gives error for react-native-firebase

I am trying to link react-native-firebase library based on the tutorial, and as soon as I run the command:
react-native link react-native-firebase
I get the following error:
Scanning folders for symlinks in
/Users/christkhodabakhshi/projects/FlashCard/node_modules (18ms)
rnpm-install info Linking react-native-firebase ios dependency
rnpm-install WARN ERRGROUP Group 'Libraries' does not exist in your
Xcode project. We have created it automatically for you.
rnpm-install ERR! Something went wrong while linking. Error: Cannot
read property 'children' of null
Please file an issue here: https://github.com/facebook/react-native/issues
Cannot read property 'children' of null
and the following is my package.json
"expo": "^29.0.0",
"expokit": "^1.5.0",
"firebase": "^5.3.0",
"react": "16.3.1",
"react-native": "https://github.com/expo/react-native/archive/sdk-29.0.0.tar.gz",
"react-native-firebase": "^4.3.1",

Resources