-
Notifications
You must be signed in to change notification settings - Fork 2.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
🔥 library not found for -lRNFirebase #1978
Comments
@danielmartinprieto I'm also getting this error. Did you find any solution? |
No, sorry, @aryalprakash. I’m waiting for the maintainers to give some clues, maybe they know what’s going on here. |
@danielmartinprieto I removed |
Just removing @aryalprakash apart from removing the library from |
I am having the same problem, nothing I have tried so far works |
It seems there are more people with the same problem: https://stackoverflow.com/questions/53617257/library-not-found-for-lrnfirebase-react-native |
I had the exact same error and I noticed something. in xCode, under Pods > Pods, the libraries were invisible. I went and checked if they were actually there, and yes, they were. I restarted XCode and the folders were there this time, and stopped giving the error. Weird... |
I was able to resolve this by restarting XCode, deleting my node_modules folder and running yarn (or npm install). Clean and Build...error gone |
I think these two last comment weren't the same problem, as I'm not even using Xcode to compile the project, but react-native cli. Also, I can reproduce it in my CI setup, where things are not cached. |
Hello 👋, this issue has been automatically marked as stale because it has not had activity for quite some time. Has the issue been fixed, or does it still require the community's attention? This issue may be closed if no further activity occurs. Thank you for your contributions. |
Oh 😢 |
FWIW I have this working well in Android and iOS, so know that it is possible. Also worth mentioning that I had to do a search through my linking search paths and make sure they were correct, during install. There were some entries duplicated, recursion where it shouldn't be etc. You mention you are experienced with pods + xcode, so if you hunt down your linker paths and make sure they are perfect this should work. You may also look at the react-native-firebase starter project and see how it works, as it will work out of the box |
Thanks, @mikehardy. Could you please share your search paths configuration to see if we're doing something wrong? We have integrated some other native libraries like this and they all work, so I'm wondering if there is something in particular I should pay attention to integrating this library's bridge in an iOS app. I will also take a look at the Xcode's config of the react-native-firebase starter project to see if I can find something. |
bulid settings -> other linker flags -> 2 entries, I don't think there is anything else going on for my project, but I recall that it was a mess before I stripped it down to that and put the inherited in there. I am actually pretty novice at XCode/iOS so if there is a better way to get that info I won't know. Perhaps there is a chunk of raw plist or project file that is good |
I've confirmed I have those as well. There must be something else (or something missing) in my project and I get that error. |
Do you have any other build configurations apart from Develop and Release ? |
I'm able to reproduce on App Center CI but not on development machine. I am a bit perplexed. |
Creation of functioning (archivable) react-native-firebase app, from init to running: https://github.com/mikehardy/rnfbdemo/blob/master/make-demo.sh |
As I was scanning through this might be the best place to focus for that #1667 @testshallpasswork |
in my case when i try to build in xcode it's giving me above error
|
Oh boy, I fixed this because I selected the wrong file to open.
|
that didn't solve my problem. using EDIT: I added libRNFirebase.a to link with binary libraries, now i'm getting this error |
Check mikehardy/rnfbdemo repo on github. Make-demo-rrn59.sh script shows how to make it work |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This is clearly attracting low-quality comments. My comment above for RN59 contains the canonical example of how to integrate react-native-firebase with a react-native 0.59 project, which was the original bug. Should you need to, there's a script in that repo that does the same for RN60. Follow those steps exactly and it works. |
Issue
I can't get Firebase Analytics on iOS working because the project doesn't compile. I get this error:
library not found for -lRNFirebase
.Some notes:
Firebase/Core
via Cocoapods and before integratingreact-native-firebase
, the app was compiling and I could see my project in the Firebase dashboard.react-native link react-native-firebase
and the changes applied to my Xcode project makes sense, basically it has added bothRNFirebase.xcodeproj
andlibRNFirebase.a
to my project.react-native run-ios
.It seems
libRNFirebase.a
can't be built because it doesn't detect the libraries installed via Cocoapods.Project Files
iOS
ios/Podfile
:I'm using Cocoapods only for Firebase/Core and this is properly working. The compilation problem appears when I link the React Native library via
react-native link
.AppDelegate.m
:// N/A
Android
android/build.gradle
:// N/A
android/app/build.gradle
:// N/A
android/settings.gradle
:// N/A
MainApplication.java
:// N/A
AndroidManifest.xml
:<!-- N/A -->
Environment
Mojave
N/A
N/A
React Native
version:React Native Firebase
library version:Firebase
module(s) you're using that has the issue:TypeScript
?N/A
ExpoKit
?ExpoKit
N/A
Think
react-native-firebase
is great? Please consider supporting the project with any of the below:React Native Firebase
andInvertase
on TwitterThe text was updated successfully, but these errors were encountered: