I am using both RealmJS and RealmSwift in my React Native project. I've previously been able to do this, but after upgrading to RealmJS 6.0.0, I am getting the error that I have multiple duplicate symbols:
// lots and lots of errors ...duplicate symbol 'realm::_impl::WeakRealmNotifier::~WeakRealmNotifier()' in: /Users/ericwiener/Library/Developer/Xcode/DerivedData/MyApp-dquwvaaenvelplfebdxfllgbnecd/Build/Products/Release-iphonesimulator/Realm/libRealm.a(weak_realm_notifier.o) /Users/ericwiener/Library/Developer/Xcode/DerivedData/MyApp-dquwvaaenvelplfebdxfllgbnecd/Build/Products/Release-iphonesimulator/RealmJS/libRealmJS.a(weak_realm_notifier.o)ld: 796 duplicate symbols for architecture i386
I believe the issue is coming from the fact that I needed to install the Realm
pod myself in order to use the RealmSwift
pod, but RealmJS
bundles both RealmJS
and Realm
together.
Here is where I include Realm
in my Podfile:
# realmpod 'RealmSwift', :modular_headers => truepod 'Realm', :modular_headers => true
Does anyone know a way to use both RealmSwift
and RealmJS
together for v6.0.0? This has been working perfectly for me before this upgrade.
Edit:
Also wanted to include that I've already tried clearing derived data, the build cache, and deleting Pods folder and reinstalling.