New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Using realm-dart
alongside RealmSwift
#1195
Comments
I must admit this was not a use-case we anticipated. I will investigate. |
Apparently this should be possible, but right now the name clash prevents it. We will fix this in a coming release. Be aware that the different realm SDKs will still need to agree on the core file format version. |
A few more caveats..
|
@nielsenko Thank you for the quick reply, that sounds great! |
@nielsenko Are there any plans on how (and when) to address the naming conflict with |
@putnokiabel This did not make it into 1.1.0, I'm sorry |
@nielsenko , Thank you for the above update. any idea when can we expect the above change? |
Same usecase here. Maybe the podspec name should be changed. |
Is there any plan to solve this issue? |
Yes, we do intend to provide guidance on how to use Realm from multiple languages in the same app, but don't have timeframe for when that'll be available. |
@nielsenko This is a show-stopper for us. Please update ASAP. Any app with extension + realm will face this issue without a workaround. Just need a name change to remove the naming conflict. Rest should be fine for now. |
@rjeprasad I'm sorry to hear that. However, the original Dart team was laid of as part of a restructuring of Realm in September, and I no longer have any say in this, as I'm currently on garden leave. I see my old colleague @nirinchev, who is the lead on the .NET SDK, and who was helping out on the Dart team previously, has already commented on the road map. |
We have this scheduled for later this year. |
Is there any progress on this issue? |
@ViolyCodevB We are waiting for flutter/flutter#63240 to be resolved, or native-assets to land. It looks like the latter will happen first. As is, we would have to have to rename the |
I created a branch with the needed changes, but alas it won't work until flutter/flutter#63240 is resolved. |
@nielsenko @nirinchev @rjeprasad is there any solution for this, I'm facing this issue exactly ? |
What happened?
We're working on a production Flutter app (on iOS) that's currently using
RealmSwift
, and we'd would like to migrate to usingrealm
instead for the main app.However, we need to be able to use both of these side-by-side, since we have native code supporting the home screen widgets and lock screen widgets on iPhone as well as our Apple Watch companion app (which currently also use
RealmSwift
).It does not seem possible to compile an iOS app using both, as
pod install
throws the following exception:The 'Pods-Runner' target has frameworks with conflicting names: realm.
Is there a way to run both
RealmSwift
andrealm-dart
together?Repro steps
flutter create -t app --platforms ios test
).flutter add realm
from the app directory to add therealm
package.pod 'RealmSwift', '10.36.0'
toios/Podfile
(or any other version of the pod for that matter).pod install
from theios
folder.The 'Pods-Runner' target has frameworks with conflicting names: realm.
.The issue persists regardless of the versions of
realm
orRealmSwift
.Version
1.0.2
What Atlas Services are you using?
Local Database only
What type of application is this?
Flutter Application
Client OS and version
iOS 16
Code snippets
No response
Stacktrace of the exception/crash you're getting
The 'Pods-Runner' target has frameworks with conflicting names: realm.
Relevant log output
No response
The text was updated successfully, but these errors were encountered: