Reputation: 55
I have React Native app which is using Realm. After I added extern framework to my Xcode project through CocoaPods (there are Realm.framework and RealmSwift.framework in CocoaPods dependencies) and added ability to open Swift view controller from my app I started to get one of these errors:
or
Seems like Realm from React Native code conflicts with Swift Realm in extern framework. Is it possible to solve this problem or I have to use another database library in my app?
Upvotes: 1
Views: 245
Reputation: 1447
Using both realm react-native and realm-cocoa together is not officially supported. It does work though as long as the version of the two libraries you are using are using the same core version. To do this you may need to build each library from source, or figure out which version are compatible and be sure to use those.
Upvotes: 1