Quantcast
Channel: Active questions tagged react-native+ios - Stack Overflow
Viewing all articles
Browse latest Browse all 16552

Using :modular_headers with RealmJS

$
0
0

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.


Viewing all articles
Browse latest Browse all 16552

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>