react-native-fcm: Linker command failed with exit code 1
Versions RN 0.44 react-native-fcm 6.2.3 What device are you using? iOS 10
Problem
When I build the project after linking manually without cocoapods I got Linker command failed with exit code 1 . I can inspect the report navigator and then I can see an extra warning 1 duplicate symbol for architecture x86_64 so as I have react-native-firebase library also linked in my project I think that there may be some conflicts. Any clue?
About this issue
- Original URL
- State: closed
- Created 7 years ago
- Reactions: 11
- Comments: 15 (6 by maintainers)
if you are using latest fcm repo, you need V4.0.0 SDK for IOS
have same error while build. this is detailed info:
For those using CocoaPods, the problem was solved using a fixed version of Firebase in the Podfile
pod 'Firebase/Core', '4.0.0'pod updatewas downgrading to a previous version of the Firebase pods.In my case i had to use the non cocoa approach, but the SDK available to download on firebase doc is v3, https://firebase.google.com/docs/ios/setup#frameworks.
I created another clone of my own project, initialized
podon it then i put these linesin my
Podfileand ranpod install. So i imported the SDK from thePodfolder to my project onXCodeAnd it has worked for me.
These are my dependencies:
Ok, I got it to build by adding in Build Settings > Framework Search Paths > + > $(inherited) for a second time. Don’t know why that didn’t work the first, but XCode is still a maze to me.
Shouldn’t this be in the docs?