Help me this for this issue. I have implemented whole process according to process.
when import this
I got a isuue.
Undefined symbols for architecture x86_64:
"_OBJC_CLASS_$_RNFirebaseMessaging", referenced from:
objc-class-ref in AppDelegate.o
"_OBJC_CLASS_$_RNFirebaseNotifications", referenced from:
objc-class-ref in AppDelegate.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
@ravivaishnav123 did you follow the instructions for setting up Messaging as well as Notifications?
@chrisbianca I'm getting this same issue. I have followed the setup instructions for messaging and notifications in the links below.
https://rnfirebase.io/docs/v4.2.x/notifications/ios
https://rnfirebase.io/docs/v4.2.x/messaging/ios
Generally this happens when your XCode workspace is out of sync with the pod files.
Please follow the steps here to attempt to resolve your issues: https://rnfirebase.io/docs/v4.2.x/troubleshooting/ios#Duplicate-Symbols-/-Undefined-Symbols-(build-time-error)
If this does not fix the problem, please feel free to re-open
Having slightly similar issue. @chrisbianca suggested solution did not help unfortunately.
If you've imported the RNFirebase.xcodeproj
into your Libraries
folder then you can click on it and make sure RNFirebase
is selected under TARGETS
, go to Build Settings
and search for "other linker flags", double click the field and add -ObjC
. I had similar issues with undefined symbols and this seemed to be the only thing that fixed it.
Most helpful comment
If you've imported the
RNFirebase.xcodeproj
into yourLibraries
folder then you can click on it and make sureRNFirebase
is selected underTARGETS
, go toBuild Settings
and search for "other linker flags", double click the field and add-ObjC
. I had similar issues with undefined symbols and this seemed to be the only thing that fixed it.