Skip to content
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

Undefined symbols for architecture x86_64 #1082

Closed
ravivaishnav123 opened this issue May 14, 2018 · 5 comments
Closed

Undefined symbols for architecture x86_64 #1082

ravivaishnav123 opened this issue May 14, 2018 · 5 comments

Comments

@ravivaishnav123
Copy link

ravivaishnav123 commented May 14, 2018

Help me this for this issue. I have implemented whole process according to process.
when import this
#import "RNFirebaseNotifications.h"
I got a isuue.

Issue

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)

Environment

  1. Application Target Platform: ios os
  1. Development Operating System:ios
  1. Build Tools:xcode 9.3/9.2
  1. React Native version:53.3
  1. RNFirebase Version:4.1.0
  1. Firebase Module:
@chrisbianca
Copy link
Contributor

@ravivaishnav123 did you follow the instructions for setting up Messaging as well as Notifications?

@jnrepo
Copy link

jnrepo commented May 25, 2018

@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

@chrisbianca
Copy link
Contributor

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

@muhammadsr
Copy link

Having slightly similar issue. @chrisbianca suggested solution did not help unfortunately.

screen shot 2018-08-22 at 2 46 20 pm

@JMV2112
Copy link

JMV2112 commented Jan 24, 2019

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants