问题
Soo I am continuously getting this error after doing all available solutions here such as this one: Error: RNFirebase core module was not found natively on iOS. I already followed that step by step. I updated my pod using pod update, installed my pods using pod install, all was successful but after running the app again with react-native run-ios, I still get that error after building. Do you guys have any idea as to why it doesn't get fixed?
Edit This is the exact error I get from terminal:
回答1:
Thats really weird. I would try and do these things:
Have you tried looking at your xcode project's: Target > Your app > Build Settings > Header Search Paths to check if there is something like this:
${PODS_ROOT}/Firebase/Core/Sources
or similar, that is pointing to theFirebase/Core
?Also, if that is already present, try and remove your
Podfile.lock
and/orios/Pods
and then runpod install --repo-update
again.Also, if that does not work, try and remove the library from your
node_modules
by removing it frompackage.json
and then runningyarn install
ornpm install
again. Then, remove all yournode_modules
path and runyarn install
ornpm install
again. Then, add thereact-native-firebase
library, link it with react native, and reinstall the pods.
These are the steps I would try and do to fix it. I hope it helps you. :)
来源:https://stackoverflow.com/questions/52840872/rnfirebase-core-module-was-not-found-natively-on-ios-not-fixed