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.
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!.

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

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
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.
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!.

Thanks