React-native-onesignal: Undefined symbols for architecture x86_64

Created on 25 Jan 2017  路  8Comments  路  Source: OneSignal/react-native-onesignal

Hi I got this error when building iOS with cocoa pods:

Undefined symbols for architecture x86_64:
"_OBJC_CLASS_$_RCTOneSignal", referenced from:
objc-class-ref in AppDelegate.o
ld: symbol(s) not found for architecture x86_64

I use RN 0.40, one-singal pod v2.3.5 and react-native-onesignal v3.0.0 and follow the installation guide.

Most helpful comment

Finally It's working now. I look into the example projects with cocoa pod and found that it has react native onesignal xcode project under libraries and add libRCTOneSignal.a under Link binary with Libraries.

This is my config. Hope this help others!.
onesignal

Thanks

All 8 comments

Could you please share your repo so we can test it closely and figure out what the issue is?
Similar issue:
https://github.com/geektimecoil/react-native-onesignal/issues/18

Finally It's working now. I look into the example projects with cocoa pod and found that it has react native onesignal xcode project under libraries and add libRCTOneSignal.a under Link binary with Libraries.

This is my config. Hope this help others!.
onesignal

Thanks

Great! Just for you to know, react-native link should do the trick for you.

screen shot 2018-09-27 at 10 22 26 am

similar issue after adding pod install for some other plugin and opening project with project.xcworkspace, Please help me in solving this issue. Trying to resolve this error from couple of days

screen shot 2018-09-27 at 10 22 26 am

similar issue after adding pod install for some other plugin and opening project with project.xcworkspace, Please help me in solving this issue. Trying to resolve this error from couple of days

+1

@MuhammadSNajib did you happen so find a solution?

@j-schuster @msnajib Did either one of you resolve this issue? If so, it would be greatly appreciated if you could tell me. I have the same exact errors.

+@3

Was this page helpful?
0 / 5 - 0 ratings